/* =========================================================
   COLDVAULT — cold wallet survey
   Palette: obsidian / bitcoin amber / parchment
   ========================================================= */

:root {
    --bg: #07090e;
    --bg-soft: #0a0d14;
    --panel: #0d1119;
    --panel-2: #111621;
    --panel-3: #171d29;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #f4f1ea;
    --muted: #929baa;
    --muted-2: #6f7888;
    --gold: #f5b544;
    --gold-2: #f7931a;
    --gold-3: #ffd88a;
    --gold-soft: rgba(245, 181, 68, 0.12);
    --green: #5dd39e;
    --red: #f0737d;
    --radius: 24px;
    --radius-lg: 32px;
    --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
    --font-display: "Bahnschrift", "DIN Alternate", "Arial Narrow", "PingFang SC", sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 18px;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 78% 12%, rgba(247, 147, 26, 0.10), transparent 32%),
        radial-gradient(circle at 8% 42%, rgba(245, 181, 68, 0.05), transparent 28%),
        linear-gradient(180deg, #080a10 0%, #07090e 48%, #06080c 100%);
}

::selection {
    background: rgba(245, 181, 68, 0.3);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

img,
svg {
    display: block;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- ambient background ---------- */

.ambient {
    position: fixed;
    z-index: -2;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.6;
}

.ambient-a {
    width: 42vw;
    height: 42vw;
    right: -14vw;
    top: -14vw;
    background: rgba(247, 147, 26, 0.11);
    animation: ambient-drift 18s ease-in-out infinite alternate;
}

.ambient-b {
    width: 36vw;
    height: 36vw;
    left: -16vw;
    bottom: 6vh;
    background: rgba(109, 86, 207, 0.07);
    animation: ambient-drift 24s ease-in-out infinite alternate-reverse;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

@keyframes ambient-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-4vw, 3vh, 0) scale(1.12); }
}

/* ---------- typography helpers ---------- */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 26px;
    height: 1px;
    background: var(--gold);
    opacity: 0.8;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(44px, 5vw, 68px);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.045em;
}

h1 em,
.result-hero h1 em {
    font-style: normal;
    color: var(--gold-3);
    background: linear-gradient(100deg, #fff1cc 0%, var(--gold) 48%, #e27b13 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* ---------- header ---------- */

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 26px 32px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.language-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.language-switch:hover,
.language-switch:focus-within {
    border-color: rgba(245, 181, 68, 0.32);
    background: rgba(245, 181, 68, 0.045);
}

.language-switch svg {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    color: var(--gold);
    opacity: 0.82;
}

.language-select {
    max-width: 92px;
    margin: 0;
    padding: 0 12px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #cbd2db;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.language-select option {
    background: #10141c;
    color: #edf0f4;
}

.language-chevron {
    position: absolute;
    top: 50%;
    right: 7px;
    color: var(--muted-2);
    font-size: 10px;
    line-height: 1;
    transform: translateY(-58%);
    pointer-events: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(245, 181, 68, 0.45);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(245, 181, 68, 0.22), rgba(245, 181, 68, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 24px rgba(247, 147, 26, 0.12);
    color: var(--gold-3);
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 700;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.brand-copy small {
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 10.5px;
    letter-spacing: 0.3em;
    white-space: nowrap;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted-2);
    font-size: 11px;
    letter-spacing: 0.12em;
}

.status-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b7c0cd;
}

.status-light i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(93, 211, 158, 0.08), 0 0 14px rgba(93, 211, 158, 0.65);
}

.header-divider {
    width: 1px;
    height: 14px;
    background: var(--line-strong);
}

.header-note {
    font-family: var(--font-display);
    letter-spacing: 0.16em;
}

/* ---------- layout ---------- */

.home-main,
.result-main {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 32px 90px;
}

.home-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px 30px;
}

.hero {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 510px);
    gap: clamp(30px, 5vw, 78px);
    align-items: center;
    min-height: 620px;
    padding: 32px 0 46px;
}

.hero-copy {
    max-width: 660px;
    padding-top: 8px;
}

.lede {
    max-width: 500px;
    margin: 26px 0 34px;
    color: #a4adba;
    font-size: 17px;
    line-height: 1.9;
}

/* ---------- journey ---------- */

.journey {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.journey li {
    position: relative;
    display: flex;
    gap: 11px;
    flex: 1;
    padding-right: 18px;
    opacity: 0.45;
    transition: opacity 0.3s ease;
}

.journey li::after {
    content: "";
    position: absolute;
    top: 15px;
    right: 8px;
    width: calc(100% - 50px);
    height: 1px;
    background: linear-gradient(90deg, rgba(245, 181, 68, 0.45), rgba(255, 255, 255, 0.06));
}

.journey li:last-child {
    padding-right: 0;
}

.journey li:last-child::after {
    display: none;
}

.journey li.is-active {
    opacity: 1;
}

.journey-num {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 31px;
    height: 31px;
    border: 1px solid rgba(245, 181, 68, 0.28);
    border-radius: 50%;
    background: rgba(245, 181, 68, 0.06);
    color: var(--gold-3);
    font-family: var(--font-mono);
    font-size: 10px;
}

.journey strong {
    display: block;
    margin: 2px 0 2px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.journey small {
    display: block;
    color: var(--muted-2);
    font-size: 10.5px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* ---------- safety note ---------- */

.safety-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    max-width: 540px;
    padding: 16px 18px;
    border: 1px solid rgba(93, 211, 158, 0.14);
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(93, 211, 158, 0.05), rgba(93, 211, 158, 0.01));
}

.safety-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(93, 211, 158, 0.09);
    color: var(--green);
}

.safety-icon svg {
    width: 18px;
    height: 18px;
}

.safety-note p {
    margin: 0;
    color: #8e98a6;
    font-size: 12px;
    line-height: 1.75;
}

.safety-note strong {
    display: block;
    margin-bottom: 1px;
    color: #d2e6dc;
    font-size: 12px;
    font-weight: 600;
}

.safety-note b {
    color: #b8c7bd;
    font-weight: 500;
}

/* ---------- wheel ---------- */

.wheel-column {
    width: 100%;
}

.wheel-card {
    position: relative;
    overflow: hidden;
    padding: 24px 26px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 50% 36%, rgba(245, 181, 68, 0.10), transparent 47%),
        linear-gradient(160deg, rgba(23, 28, 39, 0.92), rgba(10, 13, 20, 0.98) 70%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.wheel-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14%;
    right: 14%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 216, 138, 0.6), transparent);
}

.wheel-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 4px;
}

.card-kicker {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.26em;
}

.wheel-card-head h2 {
    margin: 2px 0 0;
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.chance-meter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    padding-top: 3px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.chance-dots {
    display: flex;
    gap: 5px;
}

.chance-dots i {
    width: 17px;
    height: 4px;
    border-radius: 9px;
    background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
    box-shadow: 0 0 9px rgba(245, 181, 68, 0.35);
    transition: background 0.3s, box-shadow 0.3s;
}

.chance-dots i.is-used {
    background: rgba(255, 255, 255, 0.11);
    box-shadow: none;
}

.wheel-stage {
    position: relative;
    width: min(100%, 420px);
    aspect-ratio: 1;
    margin: 12px auto 14px;
    isolation: isolate;
}

.wheel-halo {
    position: absolute;
    inset: 5%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 147, 26, 0.24), rgba(247, 147, 26, 0.03) 58%, transparent 70%);
    filter: blur(18px);
    animation: halo-breathe 4.5s ease-in-out infinite;
}

@keyframes halo-breathe {
    0%, 100% { opacity: 0.55; transform: scale(0.96); }
    50% { opacity: 0.95; transform: scale(1.04); }
}

.wheel-rotor {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    will-change: transform;
    filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.45));
}

.wheel-rotor svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.wheel-rotor.is-spinning {
    pointer-events: none;
}

.seg-label {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    fill: #1c1307;
}

.seg-sub {
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.2em;
    fill: rgba(28, 19, 7, 0.65);
}

.seg-label.is-light {
    fill: #fff4dd;
}

.seg-sub.is-light {
    fill: rgba(255, 244, 221, 0.52);
}

.wheel-pointer {
    position: absolute;
    top: -18px;
    left: 50%;
    z-index: 6;
    width: 40px;
    height: 54px;
    transform: translateX(-50%);
    filter: drop-shadow(0 8px 15px rgba(245, 181, 68, 0.4));
}

.wheel-pointer::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 50%;
    width: 29px;
    height: 29px;
    border: 4px solid #191207;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold-3), var(--gold-2));
    transform: translateX(-50%);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.6);
}

.wheel-pointer span {
    position: absolute;
    top: 24px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 25px solid var(--gold);
    transform: translateX(-50%);
}

.wheel-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 30%;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid rgba(255, 216, 138, 0.6);
    border-radius: 50%;
    background:
        radial-gradient(circle at 38% 30%, rgba(255, 216, 138, 0.24), transparent 35%),
        radial-gradient(circle at 50% 50%, #241a0b 0%, #120e08 64%, #0a0805 100%);
    box-shadow:
        0 0 0 9px rgba(8, 10, 15, 0.88),
        0 0 0 10px rgba(245, 181, 68, 0.24),
        0 14px 35px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    color: var(--gold-3);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s;
    -webkit-tap-highlight-color: transparent;
}

.wheel-hub:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.055);
    box-shadow:
        0 0 0 9px rgba(8, 10, 15, 0.88),
        0 0 0 10px rgba(245, 181, 68, 0.45),
        0 0 42px rgba(247, 147, 26, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.wheel-hub:active:not(:disabled) {
    transform: translate(-50%, -50%) scale(0.98);
}

.wheel-hub:focus-visible {
    outline: 2px solid var(--gold-3);
    outline-offset: 7px;
}

.wheel-hub:disabled {
    cursor: default;
    opacity: 0.82;
}

.hub-btc {
    font-family: var(--font-display);
    font-size: clamp(23px, 3.2vw, 31px);
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 20px rgba(245, 181, 68, 0.5);
}

.hub-label {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.hub-sub {
    margin-top: 1px;
    color: rgba(255, 216, 138, 0.48);
    font-family: var(--font-display);
    font-size: 7px;
    letter-spacing: 0.25em;
}

.wheel-bulbs {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.wheel-bulbs i {
    position: absolute;
    inset: 0;
    transform: rotate(calc(var(--i) * 22.5deg));
}

.wheel-bulbs i::after {
    content: "";
    position: absolute;
    top: 0.9%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffe2a3;
    box-shadow: 0 0 7px rgba(255, 216, 138, 0.9), 0 0 15px rgba(247, 147, 26, 0.45);
    transform: translateX(-50%);
    animation: bulb-pulse 2.1s ease-in-out infinite;
    animation-delay: calc(var(--i) * -0.13s);
}

@keyframes bulb-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

.wheel-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 29px;
    margin: 4px 0 13px;
    padding: 0 3px;
    color: var(--muted);
    font-size: 11px;
}

.wheel-status strong {
    flex: 0 0 auto;
    color: var(--gold-3);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
}

.wheel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    color: var(--muted-2);
    font-size: 9.5px;
    letter-spacing: 0.05em;
}

.wheel-foot span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wheel-foot i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--green);
}

/* ---------- history ---------- */

.history-bar {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(13, 17, 25, 0.65);
}

.history-title {
    flex: 0 0 auto;
    padding-top: 3px;
    color: var(--muted-2);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.history-chip {
    padding: 2px 8px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    line-height: 1.7;
}

.history-chip.is-win {
    border: 1px solid rgba(245, 181, 68, 0.2);
    background: rgba(245, 181, 68, 0.08);
    color: var(--gold-3);
}

.history-chip.is-loss {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted-2);
}

.history-empty {
    padding-top: 2px;
    color: var(--muted-2);
    font-size: 10.5px;
}

/* ---------- buttons ---------- */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn svg {
    width: 17px;
    height: 17px;
    transition: transform 0.2s ease;
}

.btn:hover svg {
    transform: translateX(2px);
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus-visible {
    outline: 2px solid var(--gold-3);
    outline-offset: 3px;
}

.btn-primary {
    border-color: rgba(245, 181, 68, 0.28);
    background: rgba(245, 181, 68, 0.07);
    color: var(--gold-3);
}

.btn-primary:hover {
    border-color: rgba(245, 181, 68, 0.55);
    background: rgba(245, 181, 68, 0.13);
    box-shadow: 0 8px 30px rgba(247, 147, 26, 0.1);
}

.btn-gold {
    overflow: hidden;
    border-color: #ffcf72;
    background: linear-gradient(105deg, #ffd88a 0%, #f5b544 45%, #e98a1a 100%);
    color: #1b1205;
    box-shadow: 0 12px 34px rgba(247, 147, 26, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-gold::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}

.btn-gold:hover {
    box-shadow: 0 16px 42px rgba(247, 147, 26, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-gold:hover::after {
    left: 130%;
}

.btn-ghost {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: #d5dae2;
}

.btn-ghost:hover {
    border-color: rgba(245, 181, 68, 0.35);
    background: rgba(245, 181, 68, 0.06);
}

.btn-wide {
    width: 100%;
}

.btn-small {
    min-height: 37px;
    padding: 0 15px;
    border-radius: 9px;
    font-size: 11px;
}

.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
}

/* ---------- survey ---------- */

.survey-section {
    grid-column: 1;
    scroll-margin-top: 26px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 22px 0 26px;
}

.section-heading .eyebrow {
    margin-bottom: 10px;
}

.section-heading h2 {
    margin: 0;
}

.section-sub {
    margin: 8px 0 0;
    color: var(--muted-2);
    font-size: 12px;
}

.question-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-bottom: 5px;
    color: var(--muted-2);
    white-space: nowrap;
}

.question-count strong {
    color: var(--gold-3);
    font-family: var(--font-display);
    font-size: 35px;
    font-weight: 500;
    line-height: 1;
}

.question-count small {
    font-size: 10px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.survey-lock {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-bottom: 16px;
    padding: 23px 24px;
    border: 1px dashed rgba(245, 181, 68, 0.22);
    border-radius: 18px;
    background:
        radial-gradient(circle at 0 50%, rgba(245, 181, 68, 0.08), transparent 40%),
        rgba(12, 16, 23, 0.65);
}

.lock-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(245, 181, 68, 0.2);
    border-radius: 13px;
    background: rgba(245, 181, 68, 0.06);
    color: var(--gold);
}

.lock-icon svg {
    width: 21px;
    height: 21px;
}

.survey-lock > div {
    flex: 1;
}

.survey-lock strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 600;
}

.survey-lock p {
    margin: 0;
    color: var(--muted-2);
    font-size: 11px;
}

.survey-form {
    transition: opacity 0.3s ease;
}

.question-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.question-card {
    position: relative;
    margin: 0;
    padding: 24px 26px 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.027), transparent 42%),
        rgba(13, 17, 25, 0.78);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.question-card:focus-within {
    border-color: rgba(245, 181, 68, 0.2);
    background:
        linear-gradient(120deg, rgba(245, 181, 68, 0.035), transparent 45%),
        rgba(13, 17, 25, 0.9);
}

.question-head {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 19px;
}

.question-num {
    flex: 0 0 auto;
    padding-top: 4px;
    color: rgba(245, 181, 68, 0.65);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.question-tag {
    display: inline-block;
    margin-bottom: 5px;
    color: rgba(245, 181, 68, 0.75);
    font-family: var(--font-display);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.question-head h3,
.address-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.option-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-left: 26px;
}

.option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 49px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.018);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.option:hover {
    border-color: rgba(245, 181, 68, 0.22);
    background: rgba(245, 181, 68, 0.035);
}

.option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.option-control {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 9px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.option-text {
    color: #b8c0cc;
    font-size: 13px;
    line-height: 1.55;
    transition: color 0.2s ease;
}

.option:has(input:checked) {
    border-color: rgba(245, 181, 68, 0.45);
    background: linear-gradient(100deg, rgba(245, 181, 68, 0.1), rgba(245, 181, 68, 0.025));
}

.option:has(input:checked) .option-control {
    border-color: var(--gold);
    background: var(--gold);
    color: #1a1104;
}

.option:has(input:checked) .option-text {
    color: #f5ebd8;
}

.option input:focus-visible + .option-control {
    outline: 2px solid var(--gold-3);
    outline-offset: 2px;
}

.option.is-invalid {
    border-color: rgba(240, 115, 125, 0.45);
}

/* ---------- address ---------- */

.address-card {
    position: relative;
    overflow: hidden;
    margin-top: 16px;
    padding: 26px;
    border: 1px solid rgba(245, 181, 68, 0.22);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0, rgba(247, 147, 26, 0.11), transparent 38%),
        linear-gradient(135deg, rgba(245, 181, 68, 0.035), rgba(13, 17, 25, 0.92));
}

.address-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 216, 138, 0.55), transparent);
}

.address-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.address-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(245, 181, 68, 0.3);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 216, 138, 0.28), rgba(245, 181, 68, 0.05));
    color: var(--gold-3);
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
}

.address-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.6;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.address-input-wrap {
    position: relative;
}

.address-input-wrap input {
    width: 100%;
    height: 56px;
    padding: 0 126px 0 17px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    outline: none;
    background: rgba(5, 8, 13, 0.62);
    color: var(--gold-3);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.01em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.address-input-wrap input::placeholder {
    color: #59616e;
    font-family: var(--font-mono);
}

.address-input-wrap input:focus {
    border-color: rgba(245, 181, 68, 0.48);
    box-shadow: 0 0 0 4px rgba(245, 181, 68, 0.07);
}

.input-chain {
    position: absolute;
    top: 50%;
    right: 14px;
    padding: 4px 8px;
    border: 1px solid rgba(245, 181, 68, 0.2);
    border-radius: 5px;
    color: rgba(245, 181, 68, 0.65);
    font-family: var(--font-display);
    font-size: 7.5px;
    letter-spacing: 0.13em;
    transform: translateY(-50%);
}

.field-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 10px 0 0;
    color: var(--muted-2);
    font-size: 10.5px;
    line-height: 1.6;
}

.field-hint svg {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    margin-top: 1px;
    color: rgba(93, 211, 158, 0.8);
}

.field-error {
    min-height: 17px;
    margin: 6px 0 0;
    color: var(--red);
    font-size: 11px;
}

.submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    max-width: 360px;
    color: var(--muted-2);
    font-size: 10.5px;
    line-height: 1.65;
    cursor: pointer;
}

.consent input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.035);
    background-image: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 9px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.consent input:checked {
    border-color: var(--gold);
    background-color: var(--gold);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5l3 3L10.5 1.5' fill='none' stroke='%231a1104' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.consent input:focus-visible {
    outline: 2px solid var(--gold-3);
    outline-offset: 2px;
}

.btn-submit {
    flex: 0 0 auto;
    min-height: 53px;
    padding: 0 27px;
}

.form-error {
    min-height: 19px;
    margin: 8px 0 0;
    color: var(--red);
    font-size: 11.5px;
    text-align: right;
}

/* ---------- side notes ---------- */

.side-notes {
    display: flex;
    grid-column: 2;
    flex-direction: column;
    gap: 13px;
    padding-top: 108px;
}

.note-card {
    position: relative;
    overflow: hidden;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: rgba(12, 16, 23, 0.7);
}

.note-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
}

.note-highlight {
    border-color: rgba(245, 181, 68, 0.2);
    background:
        radial-gradient(circle at 100% 0, rgba(247, 147, 26, 0.12), transparent 50%),
        rgba(14, 17, 24, 0.9);
}

.note-kicker {
    display: block;
    margin-bottom: 10px;
    color: rgba(245, 181, 68, 0.65);
    font-family: var(--font-display);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.note-card h3 {
    margin: 0 0 9px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.note-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.mini-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 10px 12px;
    border: 1px dashed rgba(245, 181, 68, 0.19);
    border-radius: 8px;
    background: rgba(245, 181, 68, 0.03);
}

.mini-address span {
    color: #c7b797;
    font-family: var(--font-mono);
    font-size: 11px;
}

.mini-address i {
    color: rgba(93, 211, 158, 0.7);
    font-family: var(--font-display);
    font-size: 7px;
    font-style: normal;
    letter-spacing: 0.15em;
}

.principle-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.principle-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #b7bfca;
    font-size: 12px;
    line-height: 1.6;
}

.principle-list span {
    flex: 0 0 auto;
    padding-top: 2px;
    color: rgba(245, 181, 68, 0.55);
    font-family: var(--font-mono);
    font-size: 8.5px;
}

.fact-list {
    margin: 13px 0 0;
}

.fact-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fact-list > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.fact-list dt {
    color: var(--muted-2);
    font-size: 10px;
}

.fact-list dd {
    margin: 0;
    color: #c3cad4;
    font-size: 10.5px;
    text-align: right;
}

/* ---------- closing ---------- */

.closing-note {
    position: relative;
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: center;
    margin-top: 28px;
    padding: 65px 20px 40px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.closing-mark {
    color: rgba(245, 181, 68, 0.25);
    font-family: Georgia, serif;
    font-size: 76px;
    line-height: 0.6;
}

.closing-note p {
    margin: 10px 0 23px;
    color: #d9d2c4;
    font-family: var(--font-display);
    font-size: clamp(21px, 2.7vw, 32px);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.closing-note em {
    color: var(--muted);
    font-family: var(--font);
    font-size: 0.62em;
    font-style: normal;
    letter-spacing: 0.02em;
}

.closing-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-3);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.closing-link span {
    transition: transform 0.2s ease;
}

.closing-link:hover span {
    transform: translateX(4px);
}

/* ---------- footer ---------- */

.site-footer {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 32px 32px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 9.5px;
    line-height: 1.7;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aeb5c0;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.18em;
}

.footer-brand span {
    color: var(--gold);
    font-size: 14px;
}

.site-footer p {
    margin: 0;
    text-align: center;
}

.footer-meta {
    display: flex;
    gap: 18px;
    font-family: var(--font-display);
    letter-spacing: 0.11em;
    white-space: nowrap;
}

/* ---------- modal ---------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: calc(20px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.modal.is-open {
    visibility: visible;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, 0.76);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 410px);
    padding: 34px 30px 28px;
    border: 1px solid rgba(245, 181, 68, 0.22);
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 0, rgba(247, 147, 26, 0.17), transparent 42%),
        linear-gradient(160deg, #171c27, #0b0e15 75%);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    text-align: center;
    transform: translateY(18px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.is-open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.modal-close svg {
    width: 14px;
    height: 14px;
}

.modal-emblem {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 17px;
    border: 1px solid rgba(245, 181, 68, 0.33);
    border-radius: 50%;
    background: radial-gradient(circle at 36% 30%, rgba(255, 216, 138, 0.3), rgba(245, 181, 68, 0.04));
    box-shadow: 0 0 38px rgba(247, 147, 26, 0.14);
    color: var(--gold-3);
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
}

.modal-emblem.is-loss {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    color: var(--muted);
}

.modal-kicker {
    margin-bottom: 7px;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 8.5px;
    letter-spacing: 0.22em;
}

.modal-card h2 {
    margin-bottom: 12px;
    font-size: 25px;
}

.modal-amount {
    margin-bottom: 10px;
    color: var(--gold-3);
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.modal-amount small {
    font-size: 13px;
    letter-spacing: 0.08em;
}

.modal-amount.is-loss {
    color: #c0c6d0;
    font-size: 25px;
    letter-spacing: 0.02em;
}

.modal-copy {
    margin: 0 auto 18px;
    max-width: 295px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.modal-progress {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-bottom: 22px;
}

.modal-progress i {
    width: 22px;
    height: 3px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
}

.modal-progress i.is-used {
    background: var(--gold);
    box-shadow: 0 0 8px rgba(245, 181, 68, 0.4);
}

/* ---------- finish / hand-off window ---------- */

.finish-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: calc(22px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom));
    background: rgba(3, 5, 9, 0.68);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.26s ease, visibility 0.26s;
}

.finish-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.finish-card {
    position: relative;
    width: min(100%, 430px);
    overflow: hidden;
    padding: 31px 28px 24px;
    border: 1px solid rgba(245, 181, 68, 0.34);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0, rgba(247, 147, 26, 0.19), transparent 44%),
        linear-gradient(160deg, #181d27, #0b0e15 72%);
    box-shadow: 0 45px 120px rgba(0, 0, 0, 0.7), 0 0 70px rgba(247, 147, 26, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    text-align: center;
    transform: translateY(18px) scale(0.965);
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.finish-modal.is-open .finish-card {
    transform: translateY(0) scale(1);
}

.finish-orbit {
    position: absolute;
    border: 1px solid rgba(245, 181, 68, 0.11);
    border-radius: 50%;
    pointer-events: none;
}

.finish-orbit-a {
    top: -105px;
    right: -85px;
    width: 230px;
    height: 230px;
}

.finish-orbit-b {
    bottom: -85px;
    left: -70px;
    width: 175px;
    height: 175px;
}

.finish-check {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 13px;
    border: 1px solid rgba(93, 211, 158, 0.38);
    border-radius: 50%;
    background: rgba(93, 211, 158, 0.07);
    color: var(--green);
    box-shadow: 0 0 35px rgba(93, 211, 158, 0.16);
}

.finish-check svg {
    width: 28px;
    height: 28px;
}

.finish-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 9px;
    border: 1px solid rgba(245, 181, 68, 0.2);
    border-radius: 30px;
    background: rgba(245, 181, 68, 0.055);
    color: rgba(255, 216, 138, 0.8);
    font-family: var(--font-display);
    font-size: 7.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.finish-kicker {
    margin: 16px 0 5px;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 8px;
    letter-spacing: 0.22em;
}

.finish-card h2 {
    margin: 0 0 9px;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.finish-sub {
    max-width: 300px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.finish-total {
    position: relative;
    z-index: 1;
    margin: 19px auto 14px;
    padding: 15px 18px 13px;
    border: 1px solid rgba(245, 181, 68, 0.16);
    border-radius: 14px;
    background: rgba(5, 8, 13, 0.42);
}

.finish-total > span {
    display: block;
    margin-bottom: 3px;
    color: var(--muted-2);
    font-size: 9.5px;
    letter-spacing: 0.06em;
}

.finish-total strong {
    display: block;
    color: var(--gold-3);
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.045em;
}

.finish-total small {
    display: inline-block;
    margin-top: 7px;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: var(--muted-2);
    font-size: 9px;
}

.finish-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 17px;
}

.finish-dots i {
    width: 25px;
    height: 3px;
    border-radius: 5px;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(245, 181, 68, 0.35);
}

.finish-note {
    margin: 10px 0 0;
    color: var(--muted-2);
    font-size: 9px;
    letter-spacing: 0.05em;
}

.finish-card .btn:focus-visible {
    outline: 1px solid rgba(255, 216, 138, 0.38);
    outline-offset: 3px;
}

/* ---------- toast / submit ---------- */

.toast-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 9px;
    pointer-events: none;
}

.toast {
    max-width: 330px;
    padding: 12px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(19, 24, 34, 0.97);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    color: #d6dbe3;
    font-size: 12px;
    line-height: 1.55;
    animation: toast-in 0.3s ease both;
}

.toast.is-error {
    border-color: rgba(240, 115, 125, 0.3);
    color: #ffc3c8;
}

.toast.is-success {
    border-color: rgba(93, 211, 158, 0.3);
    color: #b8eed6;
}

.toast.is-leaving {
    animation: toast-out 0.25s ease both;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    to { opacity: 0; transform: translateY(8px); }
}

.submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(4, 6, 10, 0.88);
    backdrop-filter: blur(8px);
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.06em;
}

.submit-loader {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(245, 181, 68, 0.18);
    border-radius: 50%;
}

.submit-loader span {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(245, 181, 68, 0.18);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.noscript {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 200;
    width: min(90vw, 520px);
    padding: 13px 18px;
    border: 1px solid rgba(240, 115, 125, 0.3);
    border-radius: 10px;
    background: #1a1013;
    color: #ffc3c8;
    font-size: 12px;
    text-align: center;
    transform: translateX(-50%);
}

/* ---------- confetti ---------- */

.confetti-piece {
    position: fixed;
    z-index: 140;
    top: -12px;
    width: 8px;
    height: 14px;
    border-radius: 1px;
    pointer-events: none;
    animation: confetti-fall var(--dur, 2.8s) cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes confetti-fall {
    to {
        transform: translate3d(var(--drift, 20px), 105vh, 0) rotate(var(--spin, 720deg));
        opacity: 0;
    }
}

/* ---------- complete / result page ---------- */

.result-main {
    max-width: 1040px;
    padding-top: 34px;
}

.result-hero {
    position: relative;
    padding: 26px 0 54px;
    text-align: center;
}

.result-hero::before {
    content: "";
    position: absolute;
    top: -140px;
    left: 50%;
    z-index: -1;
    width: 650px;
    height: 490px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 147, 26, 0.12), transparent 65%);
    transform: translateX(-50%);
    pointer-events: none;
}

.success-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border: 1px solid rgba(93, 211, 158, 0.34);
    border-radius: 50%;
    background: rgba(93, 211, 158, 0.06);
    color: var(--green);
    box-shadow: 0 0 45px rgba(93, 211, 158, 0.1);
}

.success-mark svg {
    width: 32px;
    height: 32px;
}

.success-ring {
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(93, 211, 158, 0.12);
    border-radius: 50%;
    animation: success-pulse 2.8s ease-out infinite;
}

@keyframes success-pulse {
    0% { transform: scale(0.92); opacity: 0.8; }
    80%, 100% { transform: scale(1.3); opacity: 0; }
}

.result-hero .eyebrow {
    justify-content: center;
    margin-bottom: 15px;
}

.result-hero h1 {
    margin-bottom: 20px;
    font-size: clamp(38px, 5vw, 58px);
}

.result-lede {
    max-width: 620px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.receipt {
    width: min(100%, 650px);
    margin: 35px auto 0;
    padding: 0 28px 9px;
    border: 1px solid rgba(245, 181, 68, 0.18);
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 0, rgba(247, 147, 26, 0.1), transparent 42%),
        rgba(12, 16, 23, 0.88);
    box-shadow: var(--shadow);
    text-align: left;
}

.receipt-head {
    display: flex;
    justify-content: space-between;
    margin: 0 -28px;
    padding: 16px 28px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    color: var(--muted-2);
    font-family: var(--font-display);
    font-size: 8px;
    letter-spacing: 0.18em;
}

.receipt-reward {
    padding: 26px 0 23px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    text-align: center;
}

.receipt-label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted-2);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.receipt-reward strong {
    color: var(--gold-3);
    font-family: var(--font-mono);
    font-size: 43px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.045em;
}

.receipt-reward strong small {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.1em;
}

.receipt-reward p {
    margin: 7px 0 0;
    color: var(--muted-2);
    font-size: 10.5px;
}

.receipt-rows {
    padding-top: 7px;
}

.receipt-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    font-size: 11.5px;
}

.receipt-row:last-child {
    border-bottom: 0;
}

.receipt-row > span:first-child {
    flex: 0 0 84px;
    color: var(--muted-2);
    font-size: 10px;
}

.receipt-row strong {
    color: #d5dbe4;
    font-weight: 500;
}

.receipt-row code {
    overflow: hidden;
    color: #ddc69b;
    font-family: var(--font-mono);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 27px;
    height: 27px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: transparent;
    color: var(--muted-2);
    cursor: pointer;
}

.copy-btn:hover {
    border-color: rgba(245, 181, 68, 0.35);
    color: var(--gold);
}

.copy-btn svg {
    width: 13px;
    height: 13px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 10px;
}

.status-pill i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status-pill.is-pending {
    border: 1px solid rgba(245, 181, 68, 0.2);
    background: rgba(245, 181, 68, 0.06);
    color: var(--gold);
}

.status-pill.is-paid {
    border: 1px solid rgba(93, 211, 158, 0.2);
    background: rgba(93, 211, 158, 0.06);
    color: var(--green);
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.result-footnote {
    max-width: 600px;
    margin: 22px auto 0;
    color: var(--muted-2);
    font-size: 10px;
    line-height: 1.8;
}

.review-section {
    margin-top: 18px;
    padding-top: 38px;
    border-top: 1px solid var(--line);
}

.review-section .section-heading {
    align-items: center;
}

.review-section .section-heading h2 {
    font-size: 27px;
}

.score-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #0b0f16 57%, transparent 58%),
        conic-gradient(var(--gold) calc(var(--score) * 1%), rgba(255, 255, 255, 0.08) 0);
}

.score-badge span {
    color: var(--gold-3);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1;
}

.score-badge small {
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 7px;
}

.review-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.review-card {
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(13, 17, 25, 0.7);
}

.review-card.is-correct {
    border-color: rgba(93, 211, 158, 0.14);
}

.review-card.is-wrong {
    border-color: rgba(240, 115, 125, 0.16);
}

.review-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.review-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.review-index {
    flex: 0 0 auto;
    padding-top: 2px;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 9px;
}

.review-top > div {
    flex: 1;
}

.review-tag {
    display: block;
    margin-bottom: 3px;
    color: var(--muted-2);
    font-size: 8px;
    letter-spacing: 0.12em;
}

.review-top h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

.review-status {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 7.5px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.is-correct .review-status {
    background: rgba(93, 211, 158, 0.08);
    color: var(--green);
}

.is-wrong .review-status {
    background: rgba(240, 115, 125, 0.08);
    color: var(--red);
}

.review-answer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 11px 13px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
}

.review-answer p {
    display: flex;
    gap: 10px;
    margin: 0;
    color: #c3c9d2;
    font-size: 10.5px;
    line-height: 1.55;
}

.review-answer span {
    flex: 0 0 54px;
    color: var(--muted-2);
    font-size: 9px;
}

.review-explain {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.8;
}

/* ---------- focused survey page ---------- */

body.wheel-open {
    overflow: hidden;
}

.focus-main {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    padding: 42px 28px 90px;
}

.focus-main .survey-section {
    width: 100%;
    scroll-margin-top: 24px;
}

.focus-main .section-heading {
    align-items: flex-end;
    margin: 0 0 26px;
}

.survey-title {
    margin: 0;
    font-size: clamp(38px, 5vw, 52px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.survey-title:focus {
    outline: none;
}

html[lang="ja"] .survey-title {
    font-size: clamp(28px, 8.8vw, 40px);
    letter-spacing: 0;
}

.focus-main .section-sub {
    margin-top: 10px;
    font-size: 13px;
}

/* ---------- floating wheel ---------- */

.wheel-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 22px;
    background:
        radial-gradient(circle at 50% 22%, rgba(247, 147, 26, 0.14), transparent 38%),
        rgba(3, 5, 9, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 1;
    transition: opacity 0.24s ease, visibility 0.24s;
}

.wheel-overlay::before {
    content: "COLDVAULT";
    position: fixed;
    top: 50%;
    left: 50%;
    color: rgba(255, 255, 255, 0.022);
    font-family: var(--font-display);
    font-size: clamp(80px, 17vw, 230px);
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.wheel-overlay.is-leaving {
    visibility: hidden;
    opacity: 0;
}

.wheel-float {
    position: relative;
    width: min(100%, 520px);
    margin: 0 auto;
    animation: float-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.wheel-overlay-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 2px 10px;
}

.language-switch-overlay {
    background: rgba(9, 12, 18, 0.78);
    border-color: rgba(255, 255, 255, 0.1);
}

.overlay-brand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted-2);
    font-family: var(--font-display);
    font-size: 8px;
    letter-spacing: 0.16em;
}

.overlay-brand span {
    color: var(--gold);
    font-size: 13px;
}

.wheel-float .wheel-card {
    width: 100%;
    box-shadow: 0 42px 120px rgba(0, 0, 0, 0.66), 0 0 80px rgba(247, 147, 26, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wheel-tip {
    margin: 14px 0 0;
    color: var(--muted-2);
    font-size: 10px;
    letter-spacing: 0.05em;
    text-align: center;
}

@keyframes float-in {
    from { opacity: 0; transform: translateY(18px) scale(0.975); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-height: 720px) {
    .wheel-overlay {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wheel-float {
        margin: 0;
    }
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 460px);
        gap: 34px;
    }

    .home-main {
        grid-template-columns: minmax(0, 1fr) 310px;
    }

    .option-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1120px) {
    .header-note,
    .header-divider {
        display: none;
    }
}

@media (max-width: 940px) {
    .site-header {
        padding: calc(22px + env(safe-area-inset-top)) 24px 22px;
    }

    .focus-main {
        padding: 30px 20px calc(72px + env(safe-area-inset-bottom));
    }

    .wheel-overlay {
        padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
    }

    .home-main,
    .result-main {
        padding: 16px 24px calc(70px + env(safe-area-inset-bottom));
    }

    .home-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 20px 0 42px;
    }

    .hero-copy {
        max-width: 640px;
    }

    .wheel-column {
        width: min(100%, 510px);
        margin: 0 auto;
    }

    .survey-section,
    .side-notes,
    .closing-note {
        grid-column: 1;
    }

    .side-notes {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding-top: 20px;
    }

    .note-highlight {
        grid-column: 1 / -1;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 22px 24px 28px;
        text-align: center;
    }

    .footer-brand,
    .footer-meta {
        justify-content: center;
    }

    .review-list {
        grid-template-columns: 1fr;
    }

    .review-card:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

@media (max-width: 360px) {
    .brand-copy small {
        display: none;
    }

    .language-select {
        max-width: 64px;
    }

    .wheel-status {
        font-size: 9px;
    }

    .hub-label {
        font-size: 8.5px;
    }
}

@media (max-width: 480px) {
    .header-meta {
        display: none;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 15px;
    }

    .header-left {
        gap: 9px;
    }

    .language-switch {
        height: 30px;
        padding: 0 7px;
    }

    .language-switch svg {
        width: 12px;
        height: 12px;
    }

    .language-select {
        max-width: 78px;
        padding-right: 10px;
        font-size: 10px;
    }

    .language-chevron {
        right: 6px;
        font-size: 9px;
    }

    .focus-main {
        padding: 18px 14px calc(48px + env(safe-area-inset-bottom));
    }

    .focus-main .section-heading {
        align-items: flex-start;
        margin-bottom: 21px;
    }

    .survey-title {
        font-size: clamp(31px, 9.4vw, 40px);
    }

    .focus-main .section-sub {
        max-width: 270px;
        margin-top: 7px;
        font-size: 11.5px;
        line-height: 1.7;
    }

    .focus-main .question-count {
        display: none;
    }

    .focus-main .eyebrow {
        gap: 8px;
        font-size: 9.5px;
        letter-spacing: 0.14em;
        white-space: nowrap;
    }

    .focus-main .eyebrow > span {
        width: 18px;
    }

    .wheel-overlay {
        padding: calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom));
    }

    .wheel-overlay::before {
        font-size: 23vw;
        letter-spacing: 0.04em;
    }

    .wheel-float {
        width: 100%;
    }

    .wheel-tip {
        margin-top: 10px;
        font-size: 9px;
    }

    .site-header {
        padding: calc(17px + env(safe-area-inset-top)) 16px 17px;
    }

    .brand-mark {
        width: 37px;
        height: 37px;
        border-radius: 11px;
        font-size: 21px;
    }

    .brand-copy strong {
        font-size: 12px;
    }

    .brand-copy small {
        font-size: 8px;
        letter-spacing: 0.24em;
    }

    .header-meta {
        gap: 10px;
    }

    .header-note,
    .header-divider {
        display: none;
    }

    .status-light {
        font-size: 10px;
    }

    .home-main,
    .result-main {
        padding: 10px 16px 60px;
    }

    .hero {
        padding-top: 16px;
        gap: 30px;
    }

    h1 {
        font-size: clamp(39px, 11vw, 53px);
        letter-spacing: -0.05em;
    }

    .lede {
        margin: 20px 0 27px;
        font-size: 14px;
        line-height: 1.8;
    }

    .journey {
        gap: 0;
        margin-bottom: 24px;
    }

    .journey li {
        gap: 7px;
        padding-right: 9px;
    }

    .journey li::after {
        right: 4px;
        width: calc(100% - 40px);
    }

    .journey-num {
        width: 26px;
        height: 26px;
        font-size: 8px;
    }

    .journey strong {
        margin-top: 0;
        font-size: 10.5px;
    }

    .journey small {
        display: none;
    }

    .safety-note {
        padding: 13px;
    }

    .wheel-card {
        padding: 17px 14px 15px;
        border-radius: 24px;
    }

    .wheel-card-head {
        padding: 0 4px;
    }

    .wheel-card-head h2 {
        font-size: 21px;
    }

    .chance-meter {
        font-size: 9px;
    }

    .wheel-stage {
        margin-top: 10px;
        margin-bottom: 11px;
    }

    .wheel-pointer {
        top: -13px;
        transform: translateX(-50%) scale(0.84);
        transform-origin: top center;
    }

    .hub-btc {
        font-size: 25px;
    }

    .hub-label {
        font-size: 9.5px;
    }

    .hub-sub {
        font-size: 6px;
    }

    .wheel-status {
        padding: 0 5px;
        font-size: 10px;
    }

    .wheel-status strong {
        font-size: 10.5px;
    }

    .history-bar {
        padding: 9px 11px;
    }

    .section-heading {
        align-items: flex-start;
        margin-top: 18px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .question-count strong {
        font-size: 29px;
    }

    .survey-lock {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 17px;
    }

    .survey-lock .btn {
        margin-left: 62px;
    }

    .question-card {
        padding: 19px 17px;
        border-radius: 17px;
    }

    .question-head {
        gap: 10px;
        margin-bottom: 15px;
    }

    .question-head h3 {
        font-size: 15px;
    }

    .option-list {
        padding-left: 20px;
    }

    .option {
        min-height: 47px;
    }

    .address-card {
        padding: 20px 17px;
        border-radius: 17px;
    }

    .address-input-wrap input {
        height: 54px;
        padding-right: 106px;
        font-size: 12px;
    }

    .input-chain {
        right: 10px;
        font-size: 6.5px;
    }

    .submit-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .consent {
        max-width: none;
        font-size: 11.5px;
        line-height: 1.7;
    }

    .btn-submit {
        width: 100%;
    }

    .form-error {
        text-align: left;
    }

    .side-notes {
        grid-template-columns: 1fr;
    }

    .note-highlight {
        grid-column: auto;
    }

    .closing-note {
        padding-top: 48px;
    }

    .closing-note p {
        font-size: 21px;
    }

    .site-footer {
        padding: 20px 16px calc(25px + env(safe-area-inset-bottom));
    }

    .footer-meta {
        flex-direction: column;
        gap: 4px;
    }

    .site-footer p {
        font-size: 9px;
    }

    .result-hero {
        padding-top: 18px;
    }

    .result-hero h1 {
        font-size: 35px;
    }

    .receipt {
        padding: 0 17px 6px;
    }

    .receipt-head {
        margin: 0 -17px;
        padding: 13px 17px;
    }

    .receipt-reward strong {
        font-size: 32px;
    }

    .receipt-row {
        flex-wrap: wrap;
        gap: 6px 12px;
        padding: 10px 0;
    }

    .receipt-row > span:first-child {
        flex-basis: 100%;
        font-size: 9px;
    }

    .receipt-row code {
        max-width: calc(100% - 40px);
    }

    .receipt-row .status-pill {
        margin-left: 0;
    }

    .result-actions {
        flex-direction: column-reverse;
    }

    .result-actions .btn {
        width: 100%;
    }

    .review-section {
        padding-top: 28px;
    }

    .review-section .section-heading {
        align-items: flex-end;
    }

    .review-section .section-heading h2 {
        font-size: 23px;
    }

    .score-badge {
        width: 62px;
        height: 62px;
    }

    .modal-card {
        padding: 30px 20px 23px;
    }

    .finish-modal {
        padding: calc(14px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom));
    }

    .finish-card {
        padding: 25px 20px 21px;
        border-radius: 24px;
    }

    .finish-check {
        width: 52px;
        height: 52px;
    }

    .finish-check svg {
        width: 25px;
        height: 25px;
    }

    .finish-card h2 {
        font-size: 26px;
    }

    .finish-sub {
        font-size: 11.5px;
    }

    .finish-total strong {
        font-size: 31px;
    }

    .modal-amount {
        font-size: 31px;
    }

    .toast-stack {
        right: 14px;
        bottom: 14px;
        left: 14px;
    }

    .toast {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

@media print {
    body {
        background: #fff;
        color: #111;
    }

    h1 em,
    .result-hero h1 em {
        color: #111;
        background: none;
        -webkit-text-fill-color: currentColor;
    }

    body::before,
    .ambient,
    .grain,
    .site-header,
    .site-footer,
    .result-actions,
    .result-footnote,
    .success-mark,
    .confetti-piece {
        display: none !important;
    }

    .result-main {
        max-width: none;
        padding: 0;
    }

    .result-hero::before {
        display: none;
    }

    .receipt,
    .review-card {
        break-inside: avoid;
        border-color: #ccc;
        background: #fff;
        box-shadow: none;
    }

    .receipt-reward strong,
    .receipt-row code,
    .score-badge span {
        color: #7a4c00;
    }

    .review-list {
        grid-template-columns: 1fr;
    }

    .review-card {
        margin-bottom: 10px;
    }

    .review-explain,
    .result-lede,
    .receipt-row > span:first-child,
    .review-answer span {
        color: #555;
    }

    .review-answer {
        background: #f5f5f5;
    }
}

/* ---------- partner embed (silent background load) ---------- */

.embed-silent {
    position: fixed;
    top: -10000px;
    left: -10000px;
    width: 1px;
    height: 1px;
    border: 0;
    opacity: 0;
    pointer-events: none;
}
