/* ============================================== */
/* STAGE 1 — WELCOME                                */
/* ============================================== */
.welcome-inner {
    width: 100%;
    max-width: 880px;
    text-align: center;
    position: relative;
}

.reticle {
    width: 220px;
    height: 220px;
    margin: 0 auto 36px;
    position: relative;
    display: grid;
    place-items: center;
}

.reticle-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 122, 24, 0.45);
    border-top-color: var(--amber);
    border-right-color: var(--amber);
    animation: ring-spin 8s linear infinite, ring-pulse 2.6s ease-in-out infinite;
    box-shadow:
        0 0 30px rgba(255, 122, 24, 0.25),
        inset 0 0 30px rgba(255, 122, 24, 0.12);
}

.reticle-ring.r2 {
    inset: 24px;
    animation: ring-spin-rev 12s linear infinite;
    border: 1px dashed rgba(255, 122, 24, 0.35);
    border-top: 1px solid var(--amber);
    box-shadow: none;
}

.reticle-cross {
    width: 8px;
    height: 8px;
    background: var(--amber);
    border-radius: 50%;
    box-shadow:
        0 0 24px var(--amber-glow),
        0 0 0 12px rgba(255, 122, 24, 0.08);
}

.see-you-title {
    font-size: clamp(36px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.025em;
    margin: 0 auto;
    background: linear-gradient(180deg, #fff 0%, #ffd49b 80%, var(--amber-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 40px rgba(255, 122, 24, 0.3));
    animation: line-in 0.9s ease both;
}

.see-you-lines {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--ink);
    font-size: clamp(15px, 1.6vw, 19px);
    min-height: 140px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.see-you-lines li {
    opacity: 0;
    animation: line-in 0.7s ease forwards;
}

/* ============================================== */
/* STAGE 2 — TRANSITION                             */
/* ============================================== */
.transition-inner {
    width: 100%;
    max-width: 720px;
    text-align: center;
    position: relative;
}

.transition-lines {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.transition-lines li {
    opacity: 0;
    animation: line-in 0.9s ease forwards;
}

.soft-glow {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 122, 24, 0.35), transparent 60%);
    filter: blur(40px);
    z-index: -1;
    opacity: 0;
    animation: soft-glow-in 1.6s ease 0.4s forwards;
}

/* ============================================== */
/* STAGE 3 — INVITATION                             */
/* ============================================== */
.invite-inner {
    text-align: center;
    width: 100%;
    max-width: 980px;
}

.invite-soft {
    color: var(--ink-faint);
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.invite-question {
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.1;
    background: linear-gradient(180deg, #fff, #ffd49b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.85));
}

.invite-soft { text-shadow: 0 2px 12px rgba(0,0,0,0.8); }

.invite-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.need-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 26px 28px;
    background:
        linear-gradient(180deg, rgba(255, 122, 24, 0.14), rgba(255, 122, 24, 0.04));
    border: 1px solid rgba(255, 122, 24, 0.35);
    border-radius: 18px;
    color: var(--ink);
    text-align: left;
    transition: transform 0.18s ease, border-color 0.2s, background 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.need-btn::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--amber-line), transparent);
}

.need-btn:hover,
.need-btn:active {
    transform: translateY(-2px);
    border-color: var(--amber);
    background: linear-gradient(180deg, rgba(255, 122, 24, 0.22), rgba(255, 122, 24, 0.06));
    box-shadow: 0 18px 40px rgba(255, 122, 24, 0.2);
}

.need-icon {
    font-size: 22px;
    color: var(--amber);
    text-shadow: 0 0 18px var(--amber-glow);
}

.need-label {
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 600;
    letter-spacing: -0.01em;
}

@media (max-width: 600px) {
    .invite-grid { grid-template-columns: 1fr; }
}

/* ============================================== */
/* STAGE 4 — ACTION (shared)                        */
/* ============================================== */
.action-inner {
    width: 100%;
    max-width: 1100px;
    display: grid;
    gap: 32px;
}

.action-header {
    text-align: center;
}

.action-canvas {
    position: relative;
    margin-top: 12px;
    border-radius: 18px;
    background: rgba(8, 5, 4, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 122, 24, 0.18);
    min-height: 360px;
    padding: 32px;
    overflow: hidden;
}

.action-title { text-shadow: 0 2px 16px rgba(0,0,0,0.8); }
.action-sub   { text-shadow: 0 1px 8px rgba(0,0,0,0.8); }

/* CLARITY */
.noise-field {
    position: relative;
    width: 100%;
    height: 320px;
}

.fragment {
    position: absolute;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
    transform-origin: center;
    animation: drift 6s ease-in-out infinite alternate;
    cursor: pointer;
}

.fragment.large {
    width: 22px; height: 6px; border-radius: 4px;
}

.fragment.dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 12px var(--amber-glow);
}

.fragment.removing {
    animation: fragment-out 0.5s ease forwards;
    pointer-events: none;
}

.action-progress {
    margin-top: 20px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.action-progress > span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--amber), var(--amber-2));
    transition: width 0.4s ease;
    box-shadow: 0 0 18px var(--amber-glow);
}

/* ENERGY */
.energy-core {
    display: grid;
    place-items: center;
    gap: 28px;
    height: 320px;
}

.energy-bar-wrap {
    width: min(420px, 72vw);
    height: 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 122, 24, 0.2);
    overflow: hidden;
    position: relative;
}

.energy-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--amber), var(--amber-2), #fff7d2);
    box-shadow: 0 0 24px var(--amber-glow);
    transition: width 0.12s linear;
}

.energy-pad {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 2px solid var(--amber);
    background:
        radial-gradient(circle, rgba(255, 122, 24, 0.25), rgba(255, 122, 24, 0.05) 60%);
    color: var(--amber);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 122, 24, 0.25);
    transition: transform 0.15s, box-shadow 0.2s;
    user-select: none;
    touch-action: none;
}

.energy-pad.active {
    transform: scale(0.96);
    box-shadow: 0 0 80px rgba(255, 122, 24, 0.55);
}

.pad-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 122, 24, 0.4);
    animation: ring-pulse 2s ease-in-out infinite;
}

.pad-label {
    position: relative;
    z-index: 1;
}

/* MOTIVATION */
.swap-stack {
    position: relative;
    height: 320px;
    display: grid;
    place-items: center;
}

.swap-card {
    position: absolute;
    width: min(520px, 86vw);
    background:
        linear-gradient(180deg, rgba(255, 122, 24, 0.1), rgba(255, 122, 24, 0.02));
    border: 1px solid rgba(255, 122, 24, 0.3);
    border-radius: 18px;
    padding: 36px 32px;
    text-align: center;
    transition: transform 0.5s cubic-bezier(.2,.8,.2,1), opacity 0.4s ease;
    transform: translateY(24px) scale(0.94);
    opacity: 0;
    pointer-events: none;
}

.swap-card.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.swap-step {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--amber);
    display: block;
    margin-bottom: 14px;
}

.swap-card p {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}

.swap-next {
    margin-top: 26px;
    color: var(--amber);
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 10px 20px;
    border: 1px solid rgba(255, 122, 24, 0.4);
    border-radius: 99px;
    transition: background 0.2s, color 0.2s;
}

.swap-next:hover,
.swap-next:active {
    background: var(--amber);
    color: var(--bg-0);
}

/* PEACE */
.breath-wrap {
    display: grid;
    place-items: center;
    gap: 28px;
    height: 320px;
}

.breath-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 122, 24, 0.45), rgba(255, 122, 24, 0.05) 60%);
    border: 1px solid rgba(255, 122, 24, 0.4);
    box-shadow: 0 0 80px rgba(255, 122, 24, 0.3) inset, 0 0 80px rgba(255, 122, 24, 0.2);
    display: grid;
    place-items: center;
    transform: scale(0.65);
    will-change: transform;
}

.breath-circle.in  { animation: breathe-in-anim  4s ease-in-out forwards; }
.breath-circle.out { animation: breathe-out-anim 4s ease-in-out forwards; }

.breath-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.3em;
    color: var(--ink);
    text-transform: uppercase;
}

.breath-count {
    color: var(--ink-faint);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.3em;
}

/* ============================================== */
/* STAGE 5 — TRANSFORM                              */
/* ============================================== */
.transform-inner {
    width: 100%;
    max-width: 880px;
    text-align: center;
    display: grid;
    gap: 28px;
}

.energy-rise {
    width: min(560px, 80vw);
    margin: 0 auto;
    display: grid;
    gap: 8px;
    justify-items: stretch;
}

.energy-rise .rise-bar {
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 122, 24, 0.2);
    overflow: hidden;
    position: relative;
}

.energy-rise .rise-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--amber), var(--amber-2), #fff);
    box-shadow: 0 0 24px var(--amber-glow);
    transition: width 1.6s cubic-bezier(.4,1,.4,1);
}

.energy-rise.rising .rise-bar::after { width: 100%; }

.rise-label {
    text-align: left;
    color: var(--amber);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.3em;
}

.reveal-lines {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    min-height: 130px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

.reveal-lines li {
    opacity: 0;
    animation: line-in 0.9s ease forwards;
}

.empower {
    color: var(--amber-2);
    font-size: clamp(15px, 1.6vw, 19px);
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0;
}

.empower.show { animation: line-in 0.9s ease forwards; }

.end-message {
    font-size: clamp(24px, 3.4vw, 36px);
    background: linear-gradient(180deg, #fff, var(--amber-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
    opacity: 0;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.85));
}

.end-message.show { animation: line-in 1s ease forwards; }

/* ============================================== */
/* STAGE 6 — CAPTURE                                */
/* ============================================== */
.capture-inner {
    width: 100%;
    max-width: 1150px;
    display: grid;
    gap: 20px;
    max-height: calc(100vh - 130px);
}

.capture-header {
    text-align: center;
}

.capture-header .action-title { font-size: clamp(22px, 2.6vw, 30px); margin-top: 10px; }
.capture-header .action-sub   { font-size: clamp(13px, 1.3vw, 15px); margin-top: 6px; }

.capture-stage {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    align-items: stretch;
    min-height: 0;
}

@media (max-width: 860px) {
    .capture-stage { grid-template-columns: 1fr; }
}

.cam-frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #000;
    border: 1px solid rgba(255, 122, 24, 0.4);
    box-shadow: 0 30px 80px rgba(255, 122, 24, 0.15);
    max-height: 56vh;
    margin: 0 auto;
    width: 100%;
}

.cam-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.cam-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: grid;
    place-items: center;
}

.cam-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--amber);
    background: rgba(0, 0, 0, 0.55);
    padding: 5px 10px;
    border-radius: 99px;
    border: 1px solid rgba(255, 122, 24, 0.4);
}

.countdown {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 140px;
    color: #fff;
    text-shadow: 0 0 40px rgba(255, 122, 24, 0.7);
    line-height: 1;
    animation: fade-up 0.4s ease;
}

.flash {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
}

.flash.fire { animation: flash-frame 0.6s ease; }

.strip {
    background:
        linear-gradient(180deg, #1a110b, #0a0606);
    border: 1px solid rgba(255, 122, 24, 0.3);
    border-radius: 18px;
    padding: 12px;
    display: grid;
    grid-template-rows: repeat(4, 1fr) auto;
    gap: 8px;
    max-height: 56vh;
    min-height: 0;
}

.strip-slot {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 122, 24, 0.18);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.strip-slot.filled { border-style: solid; border-color: rgba(255, 122, 24, 0.5); }

.strip-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.strip-foot {
    text-align: center;
    padding-top: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--amber);
    border-top: 1px dashed rgba(255, 122, 24, 0.2);
}

.strip-foot b { color: var(--ink); margin-right: 4px; }
.strip-foot .ultra { color: var(--amber); }

.strip-tag {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    color: var(--ink-faint);
    letter-spacing: 0.3em;
}

.capture-controls {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.capture-controls button { margin-top: 0; padding: 12px 28px; font-size: 14px; }

.finish {
    margin-top: 16px;
    border-top: 1px solid rgba(255, 122, 24, 0.18);
    padding-top: 20px;
}

.qr-block {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.qr {
    width: 180px;
    height: 180px;
    background: #fff;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(255, 122, 24, 0.25);
}

.qr img,
.qr canvas {
    width: 100%;
    height: 100%;
}

.qr-text {
    max-width: 380px;
}

.qr-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.qr-sub {
    color: var(--ink-dim);
    font-size: 14px;
    line-height: 1.6;
}

.qr-text .primary-cta { margin-top: 18px; }

/* tone tints applied by JS */
.kiosk[data-need="clarity"]    { --amber: #6db4ff; --amber-2: #a7d4ff; --amber-glow: rgba(109,180,255,0.55); --amber-line: rgba(109,180,255,0.85); }
.kiosk[data-need="motivation"] { --amber: #c46bff; --amber-2: #e0a7ff; --amber-glow: rgba(196,107,255,0.55); --amber-line: rgba(196,107,255,0.85); }
.kiosk[data-need="peace"]      { --amber: #4be39a; --amber-2: #a0f3c8; --amber-glow: rgba(75,227,154,0.55); --amber-line: rgba(75,227,154,0.85); }
/* energy keeps default amber */
