:root {
    --ink: #f4f5ef;
    --muted: #8f948f;
    --black: #090a0d;
    --panel: #111318;
    --panel-2: #171a20;
    --line: rgba(255, 255, 255, .11);
    --acid: #c9ff35;
    --acid-soft: #e2ff92;
    --orange: #ff6b35;
    --red: #ff3d5a;
    --cyan: #5ce9ff;
    --radius: 18px;
    --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Gameplay readability baseline for desktop, tablet, and mobile. */
.game-screen .challenge-instruction {
    color: #c5c0d3;
    font-size: clamp(18px, 1.55vw, 22px);
    line-height: 1.5;
}
.game-screen .cause-mapper-context span,
.game-screen .evidence-claim span,
.game-screen .confidence-rating > div:first-child span,
.game-screen .machine-section-label,
.game-screen .machine-transfer > div > span,
.game-screen .allocator-brief > span,
.game-screen .team-need span,
.game-screen .remix-ingredients > span strong,
.game-screen .remix-constraint span,
.game-screen .risk-context span,
.game-screen .forge-situation span,
.game-screen .opportunity-scene span,
.game-screen .forge-stage > header span,
.game-screen .forge-feedback strong,
.game-screen .opportunity-constraints > span,
.game-screen .strategy-game-head span,
.game-screen .strategy-game-head small,
.game-screen .river-bank > span,
.game-screen .river-boat span,
.game-screen .tower-peg > span {
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: .45px;
}
.game-screen .strategy-game-head strong {
    font-size: 17px;
    line-height: 1.35;
}
/* Communication games use the same readable type scale as the other skill tests. */
.game-screen .communication-prompt span,
.game-screen .message-slot small,
.game-screen .relay-speaker small,
.game-screen .relay-slots small,
.game-screen .audience-target b small {
    color: #bcb6cf;
    font-size: 13px !important;
    line-height: 1.4;
    letter-spacing: .45px;
}
.game-screen .communication-prompt p {
    color: #f5f2fb;
    font-size: 18px !important;
    line-height: 1.45 !important;
}
.game-screen .message-slot span,
.game-screen .message-piece,
.game-screen .relay-speaker b,
.game-screen .relay-message-card.is-hidden blockquote,
.game-screen .relay-slots span,
.game-screen .relay-option span,
.game-screen .audience-message > span,
.game-screen .audience-target > span,
.game-screen .audience-target b em {
    color: #f3effa;
    font-size: 16px !important;
    line-height: 1.45 !important;
}
.game-screen .communication-prompt,
.game-screen .audience-message,
.game-screen .audience-target,
.game-screen .relay-message-card,
.game-screen .relay-options,
.game-screen .message-piece,
.game-screen .message-slot {
    gap: 14px;
}
.game-screen .audience-message {
    min-height: 96px;
    padding: 16px 20px;
}
.game-screen .audience-message > i { font-size: 32px; }
.game-screen .audience-target {
    min-height: 132px;
    gap: 8px 16px;
    padding: 17px 20px;
}
.game-screen .audience-target > i { font-size: 40px; }
.game-screen .audience-target b { gap: 4px; padding: 10px 14px; }
.game-screen .eq-lock-button,
.game-screen .communication-undo,
.game-screen .relay-message-card > button {
    min-height: 56px;
    padding-inline: 20px;
    font-size: 15px !important;
    line-height: 1.3;
}
.game-screen .message-piece { min-height: 76px; padding: 14px 16px; }
.game-screen .message-slot { min-height: 92px; padding: 14px 16px; }
.game-screen .relay-speaker > i { width: 56px; height: 56px; font-size: 32px; }
.game-screen .relay-message-card blockquote { font-size: 19px; }
.game-screen .relay-slots > div { min-height: 82px; padding: 12px 16px; }
.game-screen .relay-option { min-height: 84px; padding: 12px 14px; }

@media (max-width: 700px) {
    .game-screen .audience-message-bank,
    .game-screen .audience-grid,
    .game-screen .message-slots,
    .game-screen .message-piece-bank { grid-template-columns: 1fr; }
    .game-screen .relay-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .game-screen .audience-message,
    .game-screen .audience-target { min-height: 108px; }
}
.game-screen .cause-mapper-context p,
.game-screen .evidence-claim p,
.game-screen .allocator-brief > p,
.game-screen .team-need p,
.game-screen .remix-constraint p,
.game-screen .risk-context p,
.game-screen .forge-situation p,
.game-screen .opportunity-scene p,
.game-screen .forge-feedback p {
    color: #eeeaf7;
    font-size: 17px !important;
    line-height: 1.5 !important;
}
.game-screen .cause-mapper-card,
.game-screen .cause-chain-step span,
.game-screen .evidence-card p,
.game-screen .confidence-answer span,
.game-screen .allocator-choice > b,
.game-screen .allocator-mix strong,
.game-screen .team-person b,
.game-screen .team-person strong,
.game-screen .team-pair-choice b,
.game-screen .remix-choice > span,
.game-screen .risk-item > p,
.game-screen .risk-item strong,
.game-screen .risk-action > span,
.game-screen .opportunity-choice > span,
.game-screen .forge-initial-choice > span,
.game-screen .forge-revision-choice > span,
.game-screen .river-passenger span,
.game-screen .strategy-feedback {
    color: #f0edf8;
    font-size: 16px !important;
    line-height: 1.45;
}
.game-screen .evidence-card small,
.game-screen .confidence-rating > div:first-child small,
.game-screen .confidence-level span,
.game-screen .machine-transfer > div > small,
.game-screen .machine-output-button small,
.game-screen .allocator-mix small,
.game-screen .allocator-mix em,
.game-screen .team-person small,
.game-screen .team-pair-choice > small,
.game-screen .risk-item small,
.game-screen .forge-stage > header small,
.game-screen .opportunity-constraints > b,
.game-screen .river-boat small {
    color: #bcb6cf;
    font-size: 13px !important;
    line-height: 1.4;
}
.game-screen .cause-mapper-controls button,
.game-screen .confidence-lock-button,
.game-screen .strategy-reset,
.game-screen .river-alone,
.game-screen .river-cross {
    min-height: 48px;
    font-size: 14px;
}
.game-screen .remix-ingredients > b {
    min-height: 104px;
    padding: 18px;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.25;
}
.game-screen .remix-ingredients > span i {
    width: 48px;
    height: 48px;
    font-size: 24px;
}
.game-screen .remix-constraint {
    min-height: 62px;
    padding: 13px 16px;
}
.game-screen .remix-choice {
    min-height: 122px;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 16px 18px;
}
.game-screen .remix-choice > b,
.game-screen .risk-action > b,
.game-screen .opportunity-choice > b,
.game-screen .forge-initial-choice > b,
.game-screen .forge-revision-choice > b,
.game-screen .evidence-card > b,
.game-screen .confidence-answer b {
    width: 38px;
    height: 38px;
    font-size: 14px;
}
.game-screen .evidence-card,
.game-screen .confidence-answer,
.game-screen .risk-action,
.game-screen .opportunity-choice,
.game-screen .forge-initial-choice,
.game-screen .forge-revision-choice {
    gap: 13px;
    padding: 15px;
}
.game-screen .team-person { min-height: 144px; }
.game-screen .risk-item { min-height: 150px; }
.game-screen .tower-theme-crystal .tower-disk { color: #17334c; background: linear-gradient(90deg,#5ce9ff,#c4fbff,#7d8cff); box-shadow: 0 0 18px rgba(92,233,255,.35); }
.game-screen .tower-theme-rocket .tower-disk { color: #401419; background: linear-gradient(90deg,#ff765e,#ffd84a,#ff8a5b); border-radius: 7px 7px 16px 16px; }
.game-screen .tower-theme-chai .tower-disk { color: #4b250d; background: linear-gradient(90deg,#b56b32,#f1bd73,#9a5125); border-radius: 7px 7px 18px 18px; }
.game-screen .tower-theme-temple .tower-disk { color: #263424; background: linear-gradient(90deg,#86947f,#d8d1ad,#75866f); border-radius: 4px; }
.game-screen .tower-theme-rainbow .tower-disk-1 { color: #571d40; background: linear-gradient(90deg,#ff76a8,#ffadd0); }
.game-screen .tower-theme-rainbow .tower-disk-2 { color: #133f48; background: linear-gradient(90deg,#5ce9ff,#9ff7ff); }
.game-screen .tower-theme-rainbow .tower-disk-3 { color: #4e3600; background: linear-gradient(90deg,#ffd84a,#efff83); }

@media (max-width: 700px) {
    .game-screen .remix-choices,
    .game-screen .evidence-options,
    .game-screen .allocator-choices,
    .game-screen .risk-actions,
    .game-screen .opportunity-choices,
    .game-screen .forge-revision-choices { grid-template-columns: 1fr; }
    .game-screen .team-people,
    .game-screen .team-pair-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .game-screen .risk-list { grid-template-columns: 1fr; }
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--black); }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 80% 16%, rgba(201, 255, 53, .07), transparent 26rem),
        radial-gradient(circle at 15% 85%, rgba(92, 233, 255, .04), transparent 24rem),
        var(--black);
    font-family: var(--sans);
    overflow-x: hidden;
}

button, input, select { font: inherit; }
button { color: inherit; }

button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--acid);
    outline-offset: 3px;
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .055;
    z-index: 50;
    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='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.ambient {
    position: fixed;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    opacity: .08;
}

.ambient-one { top: -20rem; right: -8rem; background: var(--acid); }
.ambient-two { bottom: -25rem; left: -10rem; background: var(--cyan); }

.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.shell-wide { width: min(1440px, calc(100% - 48px)); margin-inline: auto; }

.screen {
    position: relative;
    display: none;
    min-height: 100vh;
    animation: screen-in .5s cubic-bezier(.2, .75, .25, 1) both;
}

.screen.is-active { display: block; }

@keyframes screen-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.nav {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--display);
    font-size: 22px;
    letter-spacing: .7px;
    line-height: 1;
}

.brand > span:last-child > span { color: var(--acid); }
.brand.compact { font-size: 18px; gap: 8px; }
.brand:hover { filter: brightness(1.12); }
.brand:focus-visible { outline: 3px solid var(--acid); outline-offset: 5px; border-radius: 10px; }

.brand-mark {
    display: grid;
    grid-template-columns: repeat(3, 5px);
    align-items: end;
    gap: 2px;
    width: 19px;
    height: 20px;
    transform: skew(-8deg);
}

.brand-mark i { display: block; background: var(--acid); border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 11px; }
.brand-mark i:nth-child(2) { height: 19px; }
.brand-mark i:nth-child(3) { height: 15px; }

.nav-status, .server-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #abb0aa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.pulse-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 0 0 rgba(201, 255, 53, .5);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(201, 255, 53, .5); }
    70%, 100% { box-shadow: 0 0 0 8px rgba(201, 255, 53, 0); }
}

/* Lobby */
.lobby-screen { overflow: hidden; }

.lobby-layout {
    min-height: calc(100vh - 158px);
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 6vw;
    padding: 55px 0 45px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.eyebrow span { padding-right: 12px; border-right: 1px solid var(--line); }
.eyebrow b { color: var(--acid); font-size: 10px; }

.hero-copy h1, .final-summary h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(65px, 7.1vw, 112px);
    font-weight: 900;
    line-height: .83;
    letter-spacing: -2.7px;
    text-transform: uppercase;
}

.hero-copy h1 em, .final-summary h1 em {
    color: var(--acid);
    font-style: normal;
    text-shadow: 0 0 35px rgba(201, 255, 53, .14);
}

.hero-lede {
    max-width: 570px;
    margin: 28px 0 34px;
    color: #afb3ad;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.65;
}

.join-form { max-width: 610px; }
.join-form > label {
    display: block;
    margin-bottom: 10px;
    color: #c9ccc6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.join-control {
    height: 68px;
    display: flex;
    align-items: center;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 13px;
    background: rgba(20, 23, 27, .92);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
    transition: border-color .2s, box-shadow .2s;
}

.join-control:focus-within {
    border-color: rgba(201, 255, 53, .65);
    box-shadow: 0 0 0 4px rgba(201, 255, 53, .06), 0 20px 50px rgba(0, 0, 0, .22);
}

.input-prompt { margin-left: 16px; color: var(--acid); font-weight: 900; }

.join-control input {
    min-width: 0;
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 12px 0 6px;
    color: var(--ink);
    background: transparent;
    font-size: 17px;
    font-weight: 700;
}

.join-control input::placeholder { color: #5f645f; }

.primary-button {
    min-width: 190px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 19px 0 23px;
    border: 0;
    border-radius: 9px;
    color: #11150b;
    background: var(--acid);
    box-shadow: 0 8px 28px rgba(201, 255, 53, .12);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .18s, filter .18s;
}

.primary-button:hover { transform: translateY(-2px); filter: brightness(1.07); }
.primary-button:active { transform: translateY(0); }
.primary-button:disabled { cursor: wait; filter: saturate(.2); }
.button-arrow { font-size: 22px; font-weight: 500; }

.form-message { min-height: 20px; margin: 10px 0 0; color: #737872; font-size: 12px; }
.form-message.is-error { color: #ff8296; }

.proof-row { display: flex; align-items: center; margin-top: 34px; }
.proof-row div { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 6px; padding: 0 25px; border-right: 1px solid var(--line); }
.proof-row div:first-child { padding-left: 0; }
.proof-row div:last-child { border: 0; }
.proof-row strong { font-family: var(--display); font-size: 23px; letter-spacing: 1px; }
.proof-row span { color: #696e69; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }

.lobby-visual { position: relative; display: grid; place-items: center; min-height: 580px; perspective: 1000px; }

.orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 50%;
}

.orbit::after { content: ""; position: absolute; top: 12%; left: 10%; width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 18px var(--acid); }
.orbit-one { width: 570px; height: 570px; animation: spin 25s linear infinite; }
.orbit-two { width: 430px; height: 430px; border-style: dashed; animation: spin 18s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.preview-card {
    position: relative;
    z-index: 2;
    width: min(460px, 90%);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(27, 30, 35, .96), rgba(13, 15, 18, .98));
    box-shadow: 0 45px 100px rgba(0, 0, 0, .52), inset 0 1px rgba(255, 255, 255, .05);
    transform: rotateY(-7deg) rotateX(3deg);
}

.preview-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.preview-head > div:first-child { display: flex; flex-direction: column; gap: 6px; }
.micro-label { color: #6e746e; font-size: 9px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; }
.preview-head strong { font-size: 15px; }
.preview-count b { font-family: var(--display); color: var(--acid); font-size: 38px; letter-spacing: 1px; }
.preview-count span { color: #626761; font-size: 12px; }

.preview-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; }
.preview-grid i {
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 4px;
    background: rgba(255, 255, 255, .045);
    transition: background .25s, transform .25s;
}
.preview-grid i.ready { border-color: rgba(201, 255, 53, .25); background: rgba(201, 255, 53, .28); box-shadow: inset 0 0 8px rgba(201, 255, 53, .18); }
.preview-grid i.you { position: relative; border-color: var(--ink); background: var(--ink); box-shadow: 0 0 16px rgba(255, 255, 255, .2); transform: scale(1.2); }

.preview-callout {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 22px;
    padding: 14px;
    border: 1px solid rgba(201, 255, 53, .16);
    border-radius: 10px;
    background: rgba(201, 255, 53, .055);
}

.callout-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 8px; color: #111; background: var(--acid); }
.preview-callout div { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.preview-callout b { font-size: 12px; }
.preview-callout small { color: #70756f; font-size: 10px; }
.callout-live { color: var(--acid); font-size: 9px; font-weight: 900; letter-spacing: 1.2px; }

.floating-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 9px;
    background: rgba(15, 17, 20, .9);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .32);
    font-size: 10px;
    font-weight: 800;
    backdrop-filter: blur(12px);
    animation: float 4s ease-in-out infinite;
}
.floating-chip b { margin-left: 7px; color: var(--acid); font-size: 8px; letter-spacing: 1px; }
.chip-top { top: 80px; right: 0; }
.chip-bottom { bottom: 90px; left: 4px; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-8px); } }

.lobby-footer {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: #555a55;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.lobby-footer > div { display: flex; align-items: center; gap: 9px; }
.keycap { padding: 4px 7px; border: 1px solid #30342f; border-radius: 4px; color: #868b85; background: #151715; }

/* Game */
.game-screen { padding-bottom: 34px; }
.game-nav { height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.round-stage { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid rgba(201, 255, 53, .14); border-radius: 20px; background: rgba(201, 255, 53, .035); color: var(--acid); font-size: 9px; letter-spacing: 1.25px; }
.round-stage.is-hot { color: #ff9d73; border-color: rgba(255, 107, 53, .2); background: rgba(255, 107, 53, .05); }
.round-stage.is-hot .pulse-dot { background: var(--orange); }
.round-stage.is-elite { color: #ff7890; border-color: rgba(255, 61, 90, .24); background: rgba(255, 61, 90, .05); }
.round-stage.is-elite .pulse-dot { background: var(--red); }
.game-nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; color: #929791; background: #121418; cursor: pointer; }
.icon-button[aria-pressed="false"] { color: #555; text-decoration: line-through; }
.server-chip { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 9px; }
.server-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); }

.game-stats {
    height: 103px;
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    align-items: center;
    gap: 30px;
}

.stat-block { display: flex; align-items: baseline; gap: 8px; }
.stat-block > span { margin-right: 7px; color: #6f746f; font-size: 9px; font-weight: 900; letter-spacing: 1.3px; text-transform: uppercase; }
.stat-block strong { font-family: var(--display); font-size: 34px; letter-spacing: 1px; }
.stat-block small { color: #5e635e; font-size: 9px; font-weight: 900; }
.score-stat { justify-content: flex-end; }
.score-stat strong { color: var(--acid); }

.round-meter { display: grid; gap: 10px; }
.round-copy { display: flex; justify-content: space-between; font-size: 9px; font-weight: 900; letter-spacing: 1.2px; }
.round-copy span { color: #b9bdb7; }
.round-copy b { color: #656a65; }
.round-track { height: 3px; overflow: hidden; border-radius: 3px; background: #20231f; }
.round-track i { display: block; width: 9%; height: 100%; border-radius: inherit; background: var(--acid); box-shadow: 0 0 10px rgba(201, 255, 53, .3); transition: width .4s ease; }

.arena-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; }
.question-panel, .roster-panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(20, 23, 28, .96), rgba(14, 16, 19, .97)); box-shadow: 0 25px 70px rgba(0, 0, 0, .24); }

.question-panel { position: relative; min-height: 650px; padding: 31px 37px 25px; overflow: hidden; scroll-margin-top: 96px; }
.question-panel::before { content: ""; position: absolute; width: 320px; height: 320px; top: -220px; left: 20%; border-radius: 50%; background: var(--acid); filter: blur(100px); opacity: .045; }
.question-meta { position: relative; display: flex; align-items: center; justify-content: space-between; }
.challenge-tags { display: flex; align-items: center; gap: 8px; }
.category-badge { padding: 7px 10px; border: 1px solid rgba(92, 233, 255, .16); border-radius: 5px; color: var(--cyan); background: rgba(92, 233, 255, .05); font-size: 9px; font-weight: 900; letter-spacing: 1.5px; }
.skill-badge { padding: 7px 10px; border: 1px solid rgba(201, 255, 53, .13); border-radius: 5px; color: #aeb99a; background: rgba(201, 255, 53, .035); font-size: 9px; font-weight: 800; letter-spacing: .5px; }
.question-meta-right { display: flex; align-items: center; gap: 13px; }
.recovery-chip { padding: 6px 9px; border: 1px solid rgba(255,107,53,.25); border-radius: 5px; color: #ff9d73; background: rgba(255,107,53,.055); font-size: 8px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; }
.recovery-chip[hidden] { display: none; }
.miss-meter { display: flex; align-items: center; gap: 5px; }
.miss-meter span { margin-right: 3px; color: #5f645f; font-size: 8px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.miss-meter i { width: 8px; height: 8px; border: 1px solid #424742; border-radius: 2px; background: transparent; transition: background .2s, border-color .2s, box-shadow .2s; }
.miss-meter i.is-hit { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 9px rgba(255,107,53,.3); }
.difficulty { display: flex; align-items: center; gap: 5px; }
.difficulty span { margin-right: 4px; color: #5f645f; font-size: 8px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.difficulty i { width: 14px; height: 4px; border-radius: 3px; background: #2b2f2b; }
.difficulty i.is-on { background: var(--acid); }

.timer-wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 25px; padding: 12px 0 4px; border-top: 1px solid rgba(255,255,255,.07); }
.timer-readout { display: flex; align-items: baseline; gap: 8px; }
.timer-readout span { color: #666b66; font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.timer-readout strong { min-width: 62px; color: #f3f5ef; font-family: var(--display); font-size: 26px; letter-spacing: 1px; }
.skip-question-button { min-height: 40px; padding: 0 15px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; color: #aeb3ad; background: rgba(255,255,255,.035); font-size: 9px; font-weight: 900; letter-spacing: .55px; text-transform: uppercase; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.skip-question-button:hover { border-color: rgba(92,233,255,.35); color: #fff; background: rgba(92,233,255,.06); }
.skip-question-button:disabled { opacity: .45; cursor: wait; }

.question-copy { position: relative; max-width: 900px; margin: 24px 0 20px; }
.question-number { display: block; margin-bottom: 13px; color: #686d68; font-size: 9px; font-weight: 900; letter-spacing: 1.45px; }
.question-copy h2 { margin: 0; font-size: clamp(27px, 2.4vw, 39px); line-height: 1.18; letter-spacing: -.7px; }
.challenge-instruction { margin: 8px 0 0; color: #7e837d; font-size: 12px; line-height: 1.5; }

.challenge-surface {
    position: relative;
    min-height: 285px;
    display: grid;
    place-items: center;
    margin-top: 8px;
    padding: 13px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 13px;
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        rgba(7, 9, 11, .52);
    background-size: 24px 24px;
}
.challenge-surface.is-empty { min-height: 0; height: 0; margin: 0; padding: 0; border: 0; }
.challenge-surface.challenge-cleared { border-color: rgba(201, 255, 53, .35); box-shadow: inset 0 0 45px rgba(201,255,53,.035); }
.challenge-surface.challenge-failed { border-color: rgba(255, 61, 90, .35); box-shadow: inset 0 0 45px rgba(255,61,90,.035); }
.challenge-surface.challenge-recovery { display: grid; place-items: center; }
.challenge-recovery-card { width: min(430px, 100%); display: grid; place-items: center; gap: 9px; padding: 24px; text-align: center; }
.challenge-recovery-card > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #372607; background: var(--acid); font-size: 24px; font-weight: 900; }
.challenge-recovery-card h3 { margin: 3px 0 0; color: #fff; font-family: var(--display); font-size: 24px; }
.challenge-recovery-card p { max-width: 36ch; margin: 0; color: #a49dbc; font-size: 10px; line-height: 1.5; }
.challenge-recovery-card button { min-height: 44px; margin-top: 4px; padding: 0 18px; border: 0; border-radius: 11px; color: #342405; background: var(--acid); font-size: 8px; font-weight: 950; letter-spacing: .6px; text-transform: uppercase; cursor: pointer; }

.canvas-wrap { position: relative; width: 100%; }
.puzzle-canvas { display: block; width: 100%; height: 280px; touch-action: none; cursor: crosshair; }
.puzzle-progress { position: absolute; top: 9px; right: 10px; display: flex; align-items: baseline; gap: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(9,10,13,.8); }
.puzzle-progress span { margin-right: 4px; color: #606560; font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.puzzle-progress b { color: var(--acid); font-family: var(--display); font-size: 20px; }
.puzzle-progress small { color: #606560; font-size: 8px; font-weight: 900; }

/* Maze */
.maze-layout { width: 100%; display: grid; grid-template-columns: minmax(240px, 350px) 90px; align-items: center; justify-content: center; gap: 28px; }
.maze-grid { width: min(350px, 100%); display: grid; aspect-ratio: 1; padding: 7px; border: 1px solid rgba(201,255,53,.13); border-radius: 10px; background: #0e1113; }
.maze-cell { position: relative; min-width: 0; padding: 0; border: 2px solid #555c54; background: transparent; cursor: pointer; }
.maze-cell.is-visited { background: rgba(201,255,53,.035); }
.maze-cell.is-start::before { content: "S"; position: absolute; top: 4px; left: 5px; color: #737a72; font-size: 7px; font-weight: 900; }
.maze-cell.is-goal { display: grid; place-items: center; color: var(--acid); background: rgba(201,255,53,.08); font-size: 7px; font-weight: 900; letter-spacing: .5px; }
.maze-runner { position: absolute; z-index: 2; inset: 24%; border-radius: 50%; background: var(--acid); box-shadow: 0 0 14px rgba(201,255,53,.75); animation: maze-pulse .8s ease-in-out infinite alternate; }
@keyframes maze-pulse { to { transform: scale(.7); opacity: .7; } }
.maze-controls { display: grid; grid-template-columns: repeat(3, 28px); grid-template-rows: repeat(2, 36px); justify-content: center; gap: 5px; }
.maze-controls button { border: 1px solid var(--line); border-radius: 6px; color: #bfc4bd; background: #171a1e; cursor: pointer; }
.maze-controls button[data-move="u"] { grid-column: 2; }
.maze-controls button[data-move="l"] { grid-column: 1; grid-row: 2; }
.maze-controls button[data-move="d"] { grid-column: 2; grid-row: 2; }
.maze-controls button[data-move="r"] { grid-column: 3; grid-row: 2; }
.maze-controls button:hover { border-color: var(--acid); color: var(--acid); }

/* Number links */
.link-grid-wrap { position: relative; width: min(355px, 100%); aspect-ratio: 1; }
.link-canvas { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.link-grid { position: relative; z-index: 2; width: 100%; height: 100%; display: grid; touch-action: none; user-select: none; }
.link-cell { position: relative; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.055); color: #111; font-family: var(--display); font-size: 20px; }
.link-cell.is-endpoint::before { content: ""; position: absolute; width: 44%; height: 44%; border: 4px solid currentColor; border-radius: 50%; background: #111317; box-shadow: 0 0 16px currentColor; }
.link-cell.is-endpoint { z-index: 3; }
.link-cell.is-endpoint { text-shadow: none; }
.link-cell.is-endpoint::after { content: attr(data-label); position: relative; z-index: 2; color: currentColor; font-family: var(--display); font-size: 16px; }
.link-cell.is-endpoint { font-size: 0; }
.link-color-1 { color: var(--acid); }
.link-color-2 { color: var(--cyan); }
.link-color-3 { color: var(--orange); }

/* Word builder */
.word-builder { width: min(720px, 100%); display: grid; gap: 19px; }
.word-clue { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 13px; padding: 14px 17px; border: 1px solid rgba(103,232,225,.22); border-radius: 14px; background: rgba(103,232,225,.07); }
.word-clue span { color: var(--cyan); font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.word-clue p { margin: 0; color: #e7e3fa; font-size: 14px; line-height: 1.45; }
.word-answer, .letter-bank { display: flex; align-items: center; justify-content: center; gap: 9px; }
.word-slot, .letter-tile { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; font-family: var(--display); font-size: 26px; }
.word-slot { border: 1px dashed rgba(255,255,255,.22); color: #746ba9; background: rgba(255,255,255,.035); }
.word-slot.is-filled { border-style: solid; border-color: rgba(255,216,74,.45); color: #503700; background: var(--acid); box-shadow: 0 8px 22px rgba(255,216,74,.16); }
.letter-tile { border: 1px solid rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.08); cursor: pointer; transition: transform .12s, opacity .12s, border-color .12s; }
.letter-tile:hover { border-color: var(--cyan); transform: translateY(-2px); }
.letter-tile:disabled { opacity: .2; cursor: default; transform: scale(.92); }
.word-controls { display: flex; justify-content: center; gap: 9px; }
.word-controls button { min-height: 42px; padding: 0 18px; border-radius: 12px; font-size: 9px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; cursor: pointer; }
.word-undo { border: 1px solid rgba(255,255,255,.18); color: #d7d1ef; background: rgba(255,255,255,.05); }
.word-lock { border: 0; color: #503700; background: var(--acid); }
.word-controls button:disabled { opacity: .35; cursor: default; }

/* Emotional-intelligence games */
.challenge-emotion_detective, .challenge-empathy_choice, .challenge-perspective_taking { min-height: 325px; }
.eq-mini-game { width: min(800px, 100%); display: grid; gap: 12px; }
.eq-token-bank { display: flex; align-items: center; justify-content: center; gap: 10px; }
.eq-token { min-width: 145px; min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; color: #f2efff; background: rgba(255,255,255,.07); cursor: pointer; transition: transform .12s, border-color .12s, opacity .12s; }
.eq-token i { font-size: 25px; font-style: normal; }
.eq-token span { font-size: 11px; font-weight: 900; }
.eq-token:hover, .eq-token.is-selected { border-color: var(--acid); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,216,74,.1); }
.eq-token.is-used:not(.is-selected) { opacity: .42; }
.eq-match-grid, .thought-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.eq-match-target { min-height: 112px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 6px 12px; padding: 15px; border: 1px dashed rgba(103,232,225,.3); border-radius: 17px; color: #f6f3ff; background: rgba(103,232,225,.055); text-align: left; cursor: pointer; }
.eq-target-number { color: var(--cyan); font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.eq-match-target p { grid-column: 1; margin: 0; align-self: center; font-size: 12px; line-height: 1.4; }
.eq-match-target b { grid-column: 2; grid-row: 1 / 3; min-width: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; border-radius: 13px; color: #aaa3d0; background: rgba(255,255,255,.06); text-align: center; }
.eq-match-target b i { font-size: 27px; font-style: normal; }
.eq-match-target b span { font-size: 8px; line-height: 1.25; }
.eq-match-target.is-filled { border-style: solid; border-color: rgba(255,216,74,.42); background: rgba(255,216,74,.08); }
.eq-match-target.is-filled b { color: #503700; background: var(--acid); }
.eq-context-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 12px 15px; border: 1px solid rgba(255,216,74,.24); border-radius: 15px; background: linear-gradient(145deg, rgba(255,216,74,.1), rgba(103,232,225,.06)); }
.eq-context-card span { color: var(--acid); font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.eq-context-card p { margin: 0; color: #f3efff; font-size: 13px; line-height: 1.4; }
.kindness-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kindness-action { min-height: 92px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px 8px; padding: 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; color: #eeeaff; background: rgba(255,255,255,.055); text-align: left; cursor: pointer; }
.kindness-action i { grid-row: 1 / 3; font-size: 25px; font-style: normal; }
.kindness-action span { font-size: 10px; font-weight: 800; line-height: 1.3; }
.kindness-action small { color: #948bc4; font-size: 7px; font-weight: 900; letter-spacing: .5px; }
.kindness-action.is-selected { border-color: var(--acid); transform: translateY(-2px); }
.kindness-action.is-helps { border-color: rgba(103,232,225,.45); background: rgba(103,232,225,.12); }
.kindness-action.is-helps small { color: var(--cyan); }
.kindness-action.is-hurts { border-color: rgba(255,102,133,.45); background: rgba(255,102,133,.11); }
.kindness-action.is-hurts small { color: #ff9caf; }
.kindness-bins { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.kindness-bin { min-height: 55px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; cursor: pointer; }
.kindness-bin i { font-size: 22px; font-style: normal; }
.kindness-bin span { font-size: 11px; font-weight: 900; letter-spacing: .7px; }
.kindness-bin small { font-size: 7px; font-weight: 800; }
.kindness-bin.is-helps { border: 1px solid rgba(103,232,225,.4); color: #b8fff9; background: rgba(103,232,225,.1); }
.kindness-bin.is-hurts { border: 1px solid rgba(255,102,133,.4); color: #ffc0cd; background: rgba(255,102,133,.1); }
.thought-person { min-height: 105px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 3px 10px; padding: 13px; border: 1px dashed rgba(103,232,225,.3); border-radius: 17px; color: #f5f2ff; background: rgba(103,232,225,.05); text-align: left; cursor: pointer; }
.thought-person > i { grid-row: 1 / 3; align-self: center; font-size: 37px; font-style: normal; }
.thought-person > span { font-size: 11px; font-weight: 900; }
.thought-person b { display: flex; align-items: center; gap: 7px; min-height: 43px; padding: 7px 9px; border-radius: 12px 12px 12px 4px; color: #aba4d1; background: rgba(255,255,255,.06); }
.thought-person b em { font-size: 21px; font-style: normal; }
.thought-person b small { font-size: 8px; line-height: 1.25; }
.thought-person.is-filled { border-style: solid; border-color: rgba(255,216,74,.42); background: rgba(255,216,74,.07); }
.thought-person.is-filled b { color: #503700; background: var(--acid); }
.eq-lock-button { min-height: 43px; padding: 0 20px; border: 0; border-radius: 13px; color: #503700; background: var(--acid); font-size: 9px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; cursor: pointer; }
.eq-lock-button:disabled { opacity: .32; cursor: default; }

/* Odd-one-out */
.odd-grid { width: min(480px, 100%); display: grid; gap: 7px; }
.odd-tile { aspect-ratio: 1.25; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; color: #a8aea6; background: rgba(255,255,255,.025); font-size: 25px; cursor: pointer; transition: transform .12s, border-color .12s, color .12s; }
.odd-tile:hover { border-color: var(--acid); color: var(--acid); transform: scale(.95); }
.odd-tile.is-correct { border-color: var(--acid); color: #111; background: var(--acid); }
.odd-tile.is-wrong { border-color: var(--red); color: #fff; background: var(--red); }
.odd-tile.is-muted { opacity: .25; }

/* Mental math */
.math-game { width: min(720px, 100%); display: grid; grid-template-columns: 1fr auto 125px 130px; align-items: center; gap: 16px; }
.math-expression { color: var(--ink); font-family: var(--display); font-size: clamp(42px, 5vw, 68px); letter-spacing: 1px; text-align: right; }
.math-game > span { color: #5c625b; font-family: var(--display); font-size: 42px; }
.math-game input { width: 100%; height: 80px; border: 1px solid rgba(201,255,53,.35); border-radius: 10px; outline: 0; color: var(--acid); background: #11150f; font-family: var(--display); font-size: 44px; text-align: center; }
.math-game button { height: 54px; border: 0; border-radius: 8px; color: #111; background: var(--acid); font-size: 10px; font-weight: 900; letter-spacing: .8px; cursor: pointer; }

/* Stroop */
.challenge-stroop { grid-template-columns: minmax(220px, 1fr) minmax(280px, 1fr); gap: 30px; }
.stroop-word { font-family: var(--display); font-size: clamp(65px, 7vw, 102px); letter-spacing: 2px; text-align: center; text-shadow: 0 0 30px currentColor; }
.stroop-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.stroop-button { min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; color: #b8bdb6; background: rgba(255,255,255,.025); cursor: pointer; }
.stroop-button i { width: 27px; height: 27px; border-radius: 50%; background: var(--choice-color); box-shadow: 0 0 12px color-mix(in srgb, var(--choice-color), transparent 60%); }
.stroop-button span { font-size: 10px; font-weight: 900; letter-spacing: .8px; }
.stroop-button:hover, .stroop-button.is-correct { border-color: var(--choice-color); color: var(--choice-color); }
.stroop-button.is-wrong { border-color: var(--red); background: rgba(255,61,90,.08); }
.stroop-button.is-muted { opacity: .3; }

/* Reaction */
.reaction-pad { position: relative; width: min(650px, 100%); height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; color: #777c76; background: #15181c; cursor: pointer; transition: border-color .1s, background .1s, transform .1s; }
.reaction-pad::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 16px, rgba(255,255,255,.018) 16px 18px); }
.reaction-pad span, .reaction-pad b { position: relative; z-index: 2; }
.reaction-pad span { font-size: 9px; font-weight: 900; letter-spacing: 1.7px; }
.reaction-pad b { font-family: var(--display); font-size: 38px; letter-spacing: 1px; }
.reaction-pad i { position: absolute; width: 10px; height: 10px; bottom: 25px; border-radius: 50%; background: #3e433e; }
.reaction-pad.is-ready { border-color: var(--acid); color: #111; background: var(--acid); box-shadow: 0 0 70px rgba(201,255,53,.18); transform: scale(.985); }
.reaction-pad.is-ready i { background: #111; }
.reaction-pad.is-false-start { border-color: var(--red); color: #fff; background: rgba(255,61,90,.2); }

/* Mental rotation */
.shape-spinner-game { width: min(800px, 100%); display: grid; grid-template-columns: 210px 1fr; align-items: stretch; gap: 18px; }
.shape-spinner-source { display: grid; place-items: center; gap: 9px; padding: 16px; border: 1px solid rgba(103,232,225,.28); border-radius: 17px; background: rgba(103,232,225,.07); }
.shape-spinner-source > span, .shape-spinner-source > small { color: var(--cyan); font-size: 8px; font-weight: 900; letter-spacing: 1px; text-align: center; }
.shape-spinner-source > small { color: #8880b7; font-size: 7px; }
.shape-spinner-grid { width: 124px; display: grid; gap: 4px; padding: 8px; border-radius: 13px; background: rgba(8,7,31,.5); }
.shape-spinner-grid i { aspect-ratio: 1; border: 1px solid rgba(255,255,255,.045); border-radius: 5px; background: rgba(255,255,255,.018); }
.shape-spinner-grid i.is-filled { border-color: rgba(103,232,225,.55); background: linear-gradient(145deg, #9bfff8, #45cfc9); box-shadow: 0 4px 12px rgba(103,232,225,.18); }
.shape-spinner-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shape-spinner-choice { position: relative; min-height: 132px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; color: #d9d4ef; background: rgba(255,255,255,.045); cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.shape-spinner-choice > b { position: absolute; top: 9px; left: 10px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: #aaa2d0; background: rgba(255,255,255,.07); font-size: 9px; }
.shape-spinner-choice .shape-spinner-grid { width: 96px; padding: 6px; gap: 3px; background: transparent; }
.shape-spinner-choice:hover { border-color: var(--acid); transform: translateY(-2px); }
.shape-spinner-choice.is-correct { border-color: var(--acid); background: rgba(201,255,53,.13); }
.shape-spinner-choice.is-correct .shape-spinner-grid i.is-filled { border-color: var(--acid); background: var(--acid); box-shadow: 0 4px 15px rgba(201,255,53,.2); }
.shape-spinner-choice.is-wrong { border-color: var(--red); background: rgba(255,61,90,.1); }
.shape-spinner-choice.is-muted { opacity: .3; }

/* Sustained attention */
.signal-watch-game { width: min(790px, 100%); display: grid; grid-template-columns: 155px 1fr; gap: 13px; }
.signal-watch-target { display: grid; place-items: center; align-content: center; gap: 8px; padding: 14px; border: 1px solid rgba(255,216,74,.3); border-radius: 17px; background: rgba(255,216,74,.08); text-align: center; }
.signal-watch-target span, .signal-watch-target small { color: #c9bf8f; font-size: 7px; font-weight: 900; letter-spacing: .9px; line-height: 1.35; }
.signal-watch-target b { color: var(--acid); font-family: var(--display); font-size: 59px; line-height: 1; text-shadow: 0 0 22px rgba(201,255,53,.22); }
.signal-watch-target small { color: #8e86b5; letter-spacing: 0; }
.signal-watch-pad { position: relative; min-height: 212px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 17px; color: #aaa2cf; background: rgba(12,9,43,.68); cursor: pointer; transition: border-color .12s ease, background .12s ease, transform .12s ease; }
.signal-watch-pad::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(103,232,225,.08), transparent 56%); }
.signal-watch-cue { position: relative; z-index: 1; font-family: var(--display); font-size: clamp(44px, 7vw, 82px); letter-spacing: 2px; }
.signal-watch-progress { position: absolute; bottom: 0; left: 0; width: 0; height: 6px; background: linear-gradient(90deg, var(--cyan), var(--acid)); transition: width .18s linear; }
.signal-watch-pad.is-running { color: #f5f2ff; }
.signal-watch-pad.is-caught { border-color: var(--acid); color: #17103b; background: var(--acid); transform: scale(.985); }
.signal-watch-pad.is-false-tap { border-color: var(--red); color: #fff; background: rgba(255,61,90,.24); }
.signal-watch-pad.is-complete { color: var(--cyan); cursor: default; }
.signal-watch-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.signal-watch-stats span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; color: #8881b0; background: rgba(255,255,255,.035); font-size: 8px; font-weight: 900; letter-spacing: .7px; text-align: center; }
.signal-watch-stats b { color: #fff; font-family: var(--display); font-size: 15px; }

/* Cause mapping */
.challenge-cause_mapper, .challenge-evidence_detective { min-height: 380px; }
.cause-mapper-game, .evidence-detective-game { width: min(850px, 100%); display: grid; gap: 12px; }
.cause-mapper-context, .evidence-claim { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 13px; padding: 12px 15px; border: 1px solid rgba(103,232,225,.23); border-radius: 15px; background: rgba(103,232,225,.07); }
.cause-mapper-context span, .evidence-claim span { color: var(--cyan); font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.cause-mapper-context p, .evidence-claim p { margin: 0; color: #f4f1ff; font-size: 13px; font-weight: 800; line-height: 1.4; }
.cause-mapper-workspace { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 12px; }
.cause-mapper-bank { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cause-mapper-card { min-height: 82px; padding: 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; color: #eeeaff; background: rgba(255,255,255,.055); font-size: 10px; font-weight: 800; line-height: 1.35; text-align: left; cursor: pointer; transition: opacity .15s ease, transform .15s ease, border-color .15s ease; }
.cause-mapper-card:hover { border-color: var(--acid); transform: translateY(-2px); }
.cause-mapper-card.is-used { opacity: .22; transform: scale(.96); }
.cause-mapper-chain { display: grid; grid-template-columns: 1fr; gap: 4px; }
.cause-chain-step { min-height: 43px; display: grid; grid-template-columns: 29px 1fr; align-items: center; gap: 9px; padding: 7px 10px; border: 1px dashed rgba(255,255,255,.13); border-radius: 12px; color: #766f9e; background: rgba(255,255,255,.025); }
.cause-chain-step b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: #77709e; background: rgba(255,255,255,.06); font-size: 8px; }
.cause-chain-step span { font-size: 9px; font-weight: 800; line-height: 1.3; }
.cause-chain-step.is-filled { border-style: solid; border-color: rgba(201,255,53,.3); color: #f4f0ff; background: rgba(201,255,53,.075); }
.cause-chain-step.is-filled b { color: #392705; background: var(--acid); }
.cause-mapper-chain > i { height: 8px; color: #746da0; font-size: 13px; font-style: normal; line-height: 8px; text-align: center; transform: rotate(90deg); }
.cause-mapper-controls { display: flex; justify-content: flex-end; gap: 8px; }
.cause-mapper-controls button { min-height: 40px; padding: 0 15px; border-radius: 11px; font-size: 8px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; }
.cause-control-button { border: 1px solid rgba(255,255,255,.13); color: #bbb4da; background: rgba(255,255,255,.045); }
.cause-lock-button { border: 0; color: #483100; background: var(--acid); }
.cause-mapper-controls button:disabled { opacity: .3; cursor: default; }

/* Evidence evaluation */
.evidence-claim { border-color: rgba(255,216,74,.25); background: rgba(255,216,74,.075); }
.evidence-claim span { color: var(--acid); }
.evidence-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.evidence-card { min-height: 116px; display: grid; grid-template-columns: 31px 1fr; align-items: start; gap: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; color: #efecff; background: rgba(255,255,255,.045); text-align: left; cursor: pointer; transition: border-color .15s ease, transform .15s ease, background .15s ease; }
.evidence-card > b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #aaa2d0; background: rgba(255,255,255,.07); font-size: 9px; }
.evidence-card > span { display: grid; gap: 6px; }
.evidence-card small { color: var(--cyan); font-size: 7px; font-weight: 900; letter-spacing: .8px; }
.evidence-card p { margin: 0; color: #c7c1e1; font-size: 9px; font-weight: 750; line-height: 1.45; }
.evidence-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.evidence-card.is-correct { border-color: var(--acid); background: rgba(201,255,53,.12); }
.evidence-card.is-correct > b { color: #3a2803; background: var(--acid); }
.evidence-card.is-wrong { border-color: var(--red); background: rgba(255,61,90,.1); }
.evidence-card.is-muted { opacity: .3; }

/* Confidence calibration */
.challenge-confidence_check, .challenge-learn_machine { min-height: 375px; }
.confidence-check-game { width: min(820px, 100%); display: grid; gap: 11px; }
.confidence-answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.confidence-answer { min-height: 67px; display: grid; grid-template-columns: 31px 1fr; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; color: #eae6fb; background: rgba(255,255,255,.045); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.confidence-answer b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #aaa2d0; background: rgba(255,255,255,.07); font-size: 9px; }
.confidence-answer span { font-size: 10px; font-weight: 800; line-height: 1.35; }
.confidence-answer:hover, .confidence-answer.is-selected { border-color: var(--cyan); background: rgba(103,232,225,.1); transform: translateY(-1px); }
.confidence-answer.is-selected b { color: #18212c; background: var(--cyan); }
.confidence-answer.is-correct { border-color: var(--acid); background: rgba(201,255,53,.13); }
.confidence-answer.is-correct b { color: #382600; background: var(--acid); }
.confidence-answer.is-wrong { border-color: var(--red); background: rgba(255,61,90,.11); }
.confidence-answer.is-muted { opacity: .3; }
.confidence-rating { display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid rgba(255,216,74,.2); border-radius: 15px; background: rgba(255,216,74,.06); }
.confidence-rating > div:first-child { display: grid; gap: 3px; }
.confidence-rating > div:first-child span { color: var(--acid); font-size: 8px; font-weight: 900; letter-spacing: .9px; }
.confidence-rating > div:first-child small { color: #8f87b6; font-size: 8px; line-height: 1.35; }
.confidence-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.confidence-level { min-height: 48px; display: grid; place-items: center; gap: 4px; padding: 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; color: #b9b3d5; background: rgba(255,255,255,.045); cursor: pointer; }
.confidence-level i { width: 34px; height: 5px; border-radius: 9px; background: currentColor; opacity: .25; }
.confidence-level:nth-child(2) i { height: 9px; opacity: .55; }
.confidence-level:nth-child(3) i { height: 13px; opacity: .9; }
.confidence-level span { font-size: 7px; font-weight: 900; letter-spacing: .3px; }
.confidence-level:hover, .confidence-level.is-selected { border-color: var(--acid); color: var(--acid); background: rgba(201,255,53,.09); }
.confidence-lock-button { min-height: 43px; border: 0; border-radius: 12px; color: #443000; background: var(--acid); font-size: 9px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; cursor: pointer; }
.confidence-lock-button:disabled { opacity: .3; cursor: default; }

/* Rule learning */
.learn-machine-game { width: min(850px, 100%); display: grid; grid-template-columns: 1.25fr .75fr; gap: 12px; }
.machine-training, .machine-transfer { display: grid; align-content: start; gap: 9px; padding: 13px; border: 1px solid rgba(103,232,225,.18); border-radius: 16px; background: rgba(103,232,225,.05); }
.machine-section-label, .machine-transfer > div > span { color: var(--cyan); font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.machine-example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.machine-example { min-height: 83px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 7px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.045); }
.machine-example > b { color: #77709d; font-size: 14px; }
.machine-example > strong { padding: 8px 6px; border-radius: 9px; color: #3a2803; background: var(--acid); font-size: 8px; letter-spacing: .4px; text-align: center; }
.machine-input { min-height: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; padding: 6px; border: 1px solid color-mix(in srgb, var(--machine-color), transparent 65%); border-radius: 10px; background: color-mix(in srgb, var(--machine-color), transparent 91%); }
.machine-input i { color: var(--machine-color); font-size: 18px; font-style: normal; line-height: .9; text-shadow: 0 0 10px color-mix(in srgb, var(--machine-color), transparent 65%); }
.machine-transfer { border-color: rgba(255,216,74,.23); background: rgba(255,216,74,.055); }
.machine-transfer > div:first-child { display: grid; place-items: center; gap: 5px; text-align: center; }
.machine-transfer > div > span { color: var(--acid); }
.machine-transfer > div > small { color: #9189b8; font-size: 8px; }
.machine-transfer .machine-input { width: min(155px, 100%); min-height: 72px; margin-top: 4px; }
.machine-transfer .machine-input i { font-size: 26px; }
.machine-output-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.machine-output-button { min-height: 64px; display: grid; place-items: center; gap: 3px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; color: #f0ecff; background: rgba(255,255,255,.05); cursor: pointer; }
.machine-output-button small { color: #8c84b4; font-size: 6px; font-weight: 900; letter-spacing: .7px; }
.machine-output-button strong { font-family: var(--display); font-size: 18px; }
.machine-output-button:hover { border-color: var(--cyan); color: var(--cyan); }
.machine-output-button.is-correct { border-color: var(--acid); color: #382600; background: var(--acid); }
.machine-output-button.is-wrong { border-color: var(--red); color: #fff; background: var(--red); }
.machine-output-button.is-muted { opacity: .3; }

/* Resource optimization */
.challenge-resource_allocator, .challenge-team_builder, .challenge-idea_remix { min-height: 410px; }
.resource-allocator-game, .team-builder-game, .idea-remix-game { width: min(880px, 100%); display: grid; gap: 11px; }
.allocator-brief { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid rgba(255,216,74,.24); border-radius: 15px; background: rgba(255,216,74,.065); }
.allocator-brief > span { color: var(--acid); font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.allocator-brief > strong { padding: 6px 9px; border-radius: 9px; color: #3f2d05; background: var(--acid); font-size: 10px; }
.allocator-brief > p { margin: 0; color: #ded9f0; font-size: 9px; font-weight: 750; line-height: 1.4; }
.allocator-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.allocator-choice { min-height: 122px; display: grid; align-content: start; gap: 8px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; color: #f1edff; background: rgba(255,255,255,.045); text-align: left; cursor: pointer; transition: border-color .15s ease, transform .15s ease, background .15s ease; }
.allocator-choice > b { color: var(--cyan); font-size: 9px; letter-spacing: .25px; }
.allocator-mix { display: grid; gap: 5px; }
.allocator-mix > i { display: grid; grid-template-columns: 70px 18px 1fr; align-items: center; gap: 6px; font-style: normal; }
.allocator-mix small { color: #948db7; font-size: 7px; font-weight: 850; }
.allocator-mix strong { color: #fff; font-size: 9px; text-align: right; }
.allocator-mix em { overflow: hidden; color: var(--acid); font-size: 7px; font-style: normal; letter-spacing: 2px; white-space: nowrap; }
.allocator-choice:hover { border-color: var(--cyan); transform: translateY(-2px); }
.allocator-choice.is-correct { border-color: var(--acid); background: rgba(201,255,53,.12); }
.allocator-choice.is-wrong { border-color: var(--red); background: rgba(255,61,90,.1); }
.allocator-choice.is-muted { opacity: .3; }

/* Complementary team judgment */
.team-need { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 10px 13px; border: 1px solid rgba(103,232,225,.22); border-radius: 14px; background: rgba(103,232,225,.065); }
.team-need span { color: var(--cyan); font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.team-need p { margin: 0; color: #eeeaff; font-size: 10px; font-weight: 800; line-height: 1.4; }
.team-people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.team-person { min-height: 112px; display: grid; grid-template-columns: 31px 1fr; align-items: start; gap: 8px; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.035); }
.team-person > i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #352606; background: var(--acid); font-size: 10px; font-style: normal; font-weight: 950; }
.team-person > div { min-width: 0; display: grid; gap: 3px; }
.team-person b { color: #fff; font-size: 9px; }
.team-person strong { color: var(--cyan); font-size: 7px; line-height: 1.25; }
.team-person small { color: #8e87b3; font-size: 7px; line-height: 1.35; }
.team-pair-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.team-pair-choice { min-height: 67px; display: grid; place-items: center; gap: 5px; padding: 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; color: #eae6fb; background: rgba(255,255,255,.045); cursor: pointer; }
.team-pair-choice > small { color: #827aa9; font-size: 6px; font-weight: 900; letter-spacing: .7px; }
.team-pair-choice > span { display: flex; align-items: center; justify-content: center; gap: 5px; }
.team-pair-choice b { font-size: 8px; }
.team-pair-choice i { color: var(--cyan); font-size: 10px; font-style: normal; }
.team-pair-choice:hover { border-color: var(--cyan); color: var(--cyan); }
.team-pair-choice.is-correct { border-color: var(--acid); color: #332505; background: var(--acid); }
.team-pair-choice.is-wrong { border-color: var(--red); color: #fff; background: var(--red); }
.team-pair-choice.is-muted { opacity: .3; }

/* Creative synthesis */
.remix-ingredients { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.remix-ingredients > b { min-height: 70px; display: grid; place-items: center; padding: 12px; border: 1px solid rgba(103,232,225,.24); border-radius: 15px; color: #effcff; background: rgba(103,232,225,.07); font-family: var(--display); font-size: 14px; text-align: center; }
.remix-ingredients > span { display: grid; place-items: center; gap: 2px; }
.remix-ingredients > span i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #392805; background: var(--acid); font-size: 17px; font-style: normal; font-weight: 950; }
.remix-ingredients > span strong { color: var(--acid); font-size: 6px; letter-spacing: .7px; }
.remix-constraint { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; padding: 9px 12px; border: 1px dashed rgba(255,216,74,.28); border-radius: 12px; background: rgba(255,216,74,.045); }
.remix-constraint span { color: var(--acid); font-size: 7px; font-weight: 900; letter-spacing: .8px; }
.remix-constraint p { margin: 0; color: #c9c3df; font-size: 9px; font-weight: 750; line-height: 1.35; }
.remix-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.remix-choice { min-height: 82px; display: grid; grid-template-columns: 29px 1fr; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; color: #e9e5f8; background: rgba(255,255,255,.04); text-align: left; cursor: pointer; }
.remix-choice > b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #aaa2cf; background: rgba(255,255,255,.07); font-size: 8px; }
.remix-choice > span { font-size: 8px; font-weight: 750; line-height: 1.45; }
.remix-choice:hover { border-color: var(--cyan); transform: translateY(-1px); }
.remix-choice.is-correct { border-color: var(--acid); background: rgba(201,255,53,.12); }
.remix-choice.is-correct > b { color: #392805; background: var(--acid); }
.remix-choice.is-wrong { border-color: var(--red); background: rgba(255,61,90,.1); }
.remix-choice.is-muted { opacity: .3; }

/* Risk judgment */
.challenge-risk_radar, .challenge-feedback_forge, .challenge-opportunity_spotter { min-height: 420px; }
.risk-radar-game, .feedback-forge-game, .opportunity-spotter-game { width: min(900px, 100%); display: grid; gap: 10px; }
.risk-context, .forge-situation, .opportunity-scene { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 10px 13px; border: 1px solid rgba(103,232,225,.22); border-radius: 14px; background: rgba(103,232,225,.06); }
.risk-context span, .forge-situation span, .opportunity-scene span { color: var(--cyan); font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.risk-context p, .forge-situation p, .opportunity-scene p { margin: 0; color: #f0ecff; font-size: 10px; font-weight: 800; line-height: 1.4; }
.risk-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.risk-item { min-height: 107px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 7px 9px; padding: 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; background: rgba(255,255,255,.035); }
.risk-item > b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: #9c95c2; background: rgba(255,255,255,.07); font-size: 7px; }
.risk-item > p { margin: 0; color: #ddd8ed; font-size: 8px; font-weight: 750; line-height: 1.35; }
.risk-item > span { display: grid; gap: 2px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.07); }
.risk-item > span:nth-of-type(1) { grid-column: 1 / 2; }
.risk-item > span:nth-of-type(2) { grid-column: 2 / 3; }
.risk-item small { color: #77709d; font-size: 5px; font-weight: 900; letter-spacing: .4px; }
.risk-item strong { color: #ddd8ef; font-size: 7px; }
.risk-item.impact-severe { border-color: rgba(255,61,90,.27); background: rgba(255,61,90,.055); }
.risk-item.impact-high { border-color: rgba(255,216,74,.25); background: rgba(255,216,74,.045); }
.risk-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.risk-action, .opportunity-choice { min-height: 72px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; color: #eae6fa; background: rgba(255,255,255,.045); text-align: left; cursor: pointer; }
.risk-action > b, .opportunity-choice > b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: #aaa3cc; background: rgba(255,255,255,.07); font-size: 7px; }
.risk-action > span, .opportunity-choice > span { font-size: 8px; font-weight: 760; line-height: 1.4; }
.risk-action:hover, .opportunity-choice:hover { border-color: var(--cyan); transform: translateY(-1px); }
.risk-action.is-correct, .opportunity-choice.is-correct { border-color: var(--acid); background: rgba(201,255,53,.12); }
.risk-action.is-correct > b, .opportunity-choice.is-correct > b { color: #3a2804; background: var(--acid); }
.risk-action.is-wrong, .opportunity-choice.is-wrong { border-color: var(--red); background: rgba(255,61,90,.1); }
.risk-action.is-muted, .opportunity-choice.is-muted { opacity: .3; }

/* Feedback and revision */
.forge-situation { border-color: rgba(255,216,74,.25); background: rgba(255,216,74,.055); }
.forge-situation span { color: var(--acid); }
.forge-stages { display: grid; gap: 8px; }
.forge-stage { display: grid; gap: 8px; padding: 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 14px; background: rgba(255,255,255,.03); }
.forge-stage > header { display: grid; grid-template-columns: 29px 1fr; align-items: center; gap: 9px; }
.forge-stage > header > b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: #342405; background: var(--acid); font-size: 8px; }
.forge-stage > header > div { display: grid; gap: 1px; }
.forge-stage > header span { color: var(--acid); font-size: 7px; font-weight: 900; letter-spacing: .8px; }
.forge-stage > header small { color: #8e87b3; font-size: 7px; }
.forge-initial-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.forge-initial-choice, .forge-revision-choice { min-height: 73px; display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; color: #e8e4f7; background: rgba(255,255,255,.04); text-align: left; cursor: pointer; }
.forge-initial-choice > b, .forge-revision-choice > b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: #aaa3cb; background: rgba(255,255,255,.07); font-size: 7px; }
.forge-initial-choice > span, .forge-revision-choice > span { font-size: 7px; font-weight: 760; line-height: 1.4; }
.forge-initial-choice:hover { border-color: var(--cyan); }
.forge-initial-choice.is-selected { border-color: var(--cyan); background: rgba(103,232,225,.1); }
.forge-initial-choice.is-selected > b { color: #14252c; background: var(--cyan); }
.forge-stage.is-complete { padding-block: 7px; opacity: .66; }
.forge-stage.is-complete .forge-initial-choices { display: none; }
.forge-revision-stage { display: none; border-color: rgba(103,232,225,.2); background: rgba(103,232,225,.035); }
.forge-revision-stage.is-active { display: grid; animation: screen-in .3s ease both; }
.forge-feedback { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid rgba(255,216,74,.22); border-radius: 11px; background: rgba(255,216,74,.06); }
.forge-feedback strong { color: var(--acid); font-size: 6px; letter-spacing: .7px; }
.forge-feedback p { margin: 0; color: #d7d1e8; font-size: 8px; font-weight: 750; line-height: 1.4; }
.forge-revision-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.forge-revision-choice:hover { border-color: var(--cyan); }
.forge-revision-choice.is-correct { border-color: var(--acid); background: rgba(201,255,53,.12); }
.forge-revision-choice.is-correct > b { color: #382604; background: var(--acid); }
.forge-revision-choice.is-wrong { border-color: var(--red); background: rgba(255,61,90,.1); }
.forge-revision-choice.is-muted { opacity: .3; }

/* Opportunity recognition */
.opportunity-scene { align-items: start; border-color: rgba(255,118,168,.23); background: rgba(255,118,168,.055); }
.opportunity-scene span { color: #ff9cc0; }
.opportunity-constraints { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 8px 10px; border: 1px dashed rgba(255,255,255,.13); border-radius: 12px; }
.opportunity-constraints > span { margin-right: 3px; color: #8c85b1; font-size: 6px; font-weight: 900; letter-spacing: .7px; }
.opportunity-constraints > b { padding: 6px 8px; border-radius: 99px; color: #382604; background: var(--acid); font-size: 7px; }
.opportunity-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opportunity-choice { min-height: 83px; }

/* Sequence reasoning */
.sequence-game { width: min(760px, 100%); display: grid; gap: 30px; }
.sequence-strip { display: flex; align-items: center; justify-content: center; gap: 10px; }
.sequence-strip span { min-width: 67px; height: 67px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; color: #d8ddd5; background: #171a1e; font-family: var(--display); font-size: 31px; }
.sequence-strip i { color: #565d57; font-family: var(--display); font-size: 25px; font-style: normal; }
.sequence-strip .is-unknown { border-color: rgba(201,255,53,.4); color: var(--acid); background: rgba(201,255,53,.07); box-shadow: 0 0 25px rgba(201,255,53,.07); }
.sequence-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sequence-option { min-height: 70px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; color: #b9beb7; background: rgba(255,255,255,.025); cursor: pointer; }
.sequence-option small { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 5px; color: #747a74; background: rgba(255,255,255,.055); font-size: 8px; font-weight: 900; }
.sequence-option strong { font-family: var(--display); font-size: 25px; }
.sequence-option:hover { border-color: var(--acid); color: var(--acid); }
.sequence-option.is-correct { border-color: var(--acid); color: #10140b; background: var(--acid); }
.sequence-option.is-correct small { color: var(--acid); background: #151a0e; }
.sequence-option.is-wrong { border-color: var(--red); color: #fff; background: var(--red); }
.sequence-option.is-muted { opacity: .25; }

/* Alternating switch trail */
.trail-switch-wrap { width: min(760px, 100%); display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 28px; }
.trail-status { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.trail-status span { color: #6b716b; font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.trail-status b { margin: 4px 0; color: var(--acid); font-family: var(--display); font-size: 58px; line-height: 1; }
.trail-status small { color: #656b65; font-size: 9px; font-weight: 800; }
.trail-grid { display: grid; gap: 10px; }
.trail-target { position: relative; min-width: 0; aspect-ratio: 1.25; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; color: #ccd1c9; background: #171a1e; font-family: var(--display); font-size: 30px; cursor: pointer; transition: transform .12s, border-color .12s, background .12s; }
.trail-target.is-number::before, .trail-target.is-letter::before { content: "NUM"; position: absolute; top: 6px; left: 7px; color: #59605a; font-family: var(--sans); font-size: 6px; font-weight: 900; letter-spacing: .5px; }
.trail-target.is-letter::before { content: "ABC"; }
.trail-target:hover { border-color: var(--acid); color: var(--acid); transform: translateY(-2px); }
.trail-target.is-done { border-color: rgba(201,255,53,.25); color: #111; background: var(--acid); cursor: default; transform: scale(.92); }
.trail-target.is-done::after { content: "✓"; position: absolute; right: 7px; bottom: 5px; font-family: var(--sans); font-size: 8px; font-weight: 900; }
.trail-target.is-wrong { border-color: var(--red); color: #fff; background: var(--red); }

/* Skill profile */
.skill-profile { display: flex; flex-wrap: wrap; gap: 8px; max-width: 570px; margin-top: 20px; }
.skill-chip { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: #777c76; background: rgba(255,255,255,.02); font-size: 9px; }
.skill-chip i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; color: #989d96; background: #1c1f1c; font-style: normal; }
.skill-chip b { color: #a6aba4; }
.skill-chip.is-cleared { border-color: rgba(201,255,53,.2); color: #c8d1bb; }
.skill-chip.is-cleared i, .skill-chip.is-cleared b { color: var(--acid); }
.share-skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 10px; max-height: 38px; margin: -7px auto 14px; overflow: hidden; color: #646a63; font-size: 7px; font-weight: 800; text-transform: uppercase; }

.answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.answer-button {
    position: relative;
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 14px 21px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 11px;
    color: #e3e5df;
    background: rgba(255, 255, 255, .025);
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
}
.answer-button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent, rgba(255,255,255,.025), transparent); transform: translateX(-100%); }
.answer-button:hover { border-color: rgba(201, 255, 53, .5); background: rgba(201, 255, 53, .045); transform: translateY(-2px); }
.answer-button:hover::after { transform: translateX(100%); transition: transform .7s; }
.answer-button:disabled { cursor: default; transform: none; }
.answer-key { flex: 0 0 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .14); border-radius: 7px; color: #929791; background: #111317; font-size: 11px; font-weight: 900; }
.answer-text { font-size: clamp(14px, 1.2vw, 17px); font-weight: 750; line-height: 1.35; }
.answer-button.is-selected { border-color: var(--acid); background: rgba(201, 255, 53, .09); }
.answer-button.is-selected .answer-key, .answer-button.is-correct .answer-key { border-color: var(--acid); color: #111; background: var(--acid); }
.answer-button.is-correct { border-color: rgba(201, 255, 53, .65); background: rgba(201, 255, 53, .08); }
.answer-button.is-wrong { border-color: rgba(255, 61, 90, .65); background: rgba(255, 61, 90, .075); }
.answer-button.is-wrong .answer-key { border-color: var(--red); color: #fff; background: var(--red); }
.answer-button.is-muted { opacity: .38; }

.question-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 25px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); color: #5e635e; font-size: 9px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.question-footer > span:first-child { display: flex; align-items: center; gap: 8px; }
.status-light { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); }
.status-light.is-busy { animation: pulse 1.2s infinite; }

.roster-panel { min-height: 650px; padding: 25px 22px; }
.friends-progress > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.roster-panel h2 { margin: 4px 0 0; font-family: var(--display); font-size: 25px; letter-spacing: .5px; text-transform: uppercase; }
.roster-live { display: flex; align-items: center; gap: 6px; color: var(--acid); font-size: 8px; font-weight: 900; letter-spacing: 1px; }
.roster-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); }

.player-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 21px 0; }
.player-dot {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid hsla(var(--hue), 65%, 70%, .18);
    border-radius: 4px;
    background: hsla(var(--hue), 55%, 53%, .13);
    color: hsla(var(--hue), 75%, 78%, .72);
    font-size: 6px;
    font-weight: 900;
    transition: opacity .35s, transform .35s, filter .35s, background .2s;
}
.player-dot::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 3px; height: 3px; border-radius: 50%; background: var(--acid); }
.player-dot.is-you { z-index: 2; border-color: var(--ink); color: #111; background: var(--acid); transform: scale(1.17); box-shadow: 0 0 12px rgba(201, 255, 53, .3); }
.player-dot.is-you::after { display: none; }
.player-dot.is-locked { animation: lock-flash .4s both; }
@keyframes lock-flash { 50% { transform: scale(1.18); background: hsla(var(--hue), 70%, 58%, .4); } }
.player-dot.is-out { opacity: .14; filter: grayscale(1); transform: scale(.68); background: transparent; }
.player-dot.is-out::after { background: #555; }

.roster-key { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.08); color: #656a65; font-size: 8px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.roster-key span { display: flex; align-items: center; gap: 5px; }
.roster-key i { width: 7px; height: 7px; border-radius: 2px; }
.key-you { background: var(--acid); }
.key-live { border: 1px solid #647066; background: #253127; }
.key-out { background: #292929; opacity: .5; }

.elimination-feed { display: grid; gap: 8px; margin-top: 17px; }
.feed-empty { padding: 18px 0; color: #555a55; font-size: 9px; text-align: center; text-transform: uppercase; }
.feed-empty span { margin-right: 7px; }
.feed-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 6px; background: rgba(255,255,255,.025); font-size: 9px; animation: feed-in .35s both; }
.feed-row i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.feed-row b { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row span { margin-left: auto; color: #656a65; }
@keyframes feed-in { from { opacity: 0; transform: translateX(8px); } }

.live-capability { margin-top: 19px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.08); }
.live-capability > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.live-capability h3 { margin: 3px 0 0; font-family: var(--display); font-size: 17px; letter-spacing: .5px; text-transform: uppercase; }
.live-capability > header > strong { color: var(--acid); font-family: var(--display); font-size: 29px; line-height: 1; }
.live-capability > header > strong::after, .current-profile-panel > header > strong::after { content: "/100"; margin-left: 3px; color: #565d57; font-family: var(--sans); font-size: 7px; letter-spacing: .2px; }
.capability-bars { display: grid; gap: 13px; }
.capability-bars.is-compact { gap: 8px; }
.capability-row > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.capability-row span { overflow: hidden; color: #a6aba5; font-size: 10px; font-weight: 750; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.capability-row b { color: #dfe4db; font-size: 9px; }
.capability-track { height: 6px; overflow: hidden; border-radius: 2px; background: rgba(255,255,255,.065); }
.capability-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7aa21b, var(--acid)); box-shadow: 0 0 12px rgba(201,255,53,.13); animation: bar-grow .55s var(--bar-delay, 0ms) cubic-bezier(.2,.7,.2,1) both; transform-origin: left; }
.is-compact .capability-row span { font-size: 8px; }
.is-compact .capability-track { height: 4px; }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.analytics-empty { margin: 0; color: #626862; font-size: 10px; line-height: 1.55; }

.live-aura { margin: 0; padding: 0; }
.live-aura > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.live-aura h3 { margin: 3px 0 0; font-family: var(--display); font-size: 17px; letter-spacing: .4px; text-transform: uppercase; }
.live-aura-status { padding: 7px 10px; border: 1px solid rgba(103,232,225,.22); border-radius: 99px; color: var(--cyan); background: rgba(103,232,225,.1); font-size: 10px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; }
.live-aura canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; border: 1px solid rgba(103,232,225,.18); border-radius: 14px; background: #17103b; box-shadow: 0 14px 32px rgba(7,5,30,.3); }
.live-aura button { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 48px; margin-top: 11px; border: 0; border-radius: 14px; color: #3c2907; background: linear-gradient(135deg, var(--acid), #ffe66d); box-shadow: 0 10px 24px rgba(255,200,87,.14); font-size: 12px; font-weight: 950; letter-spacing: .55px; text-transform: uppercase; cursor: pointer; }
.live-aura button:disabled { color: #7770a1; background: rgba(255,255,255,.07); cursor: not-allowed; }
.live-aura button b { font-size: 16px; }
.live-aura > p { margin: 10px 4px 0; color: #a9a3c8; font-size: 11px; line-height: 1.5; text-align: center; }
.friends-progress { margin-top: 19px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.1); }

/* Round result */
.round-result { position: fixed; inset: 0; z-index: 40; display: none; place-items: center; padding: 20px; }
.round-result.is-visible { display: grid; }
.result-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 8, .83); backdrop-filter: blur(10px); animation: fade-in .25s both; }
@keyframes fade-in { from { opacity: 0; } }
.result-card {
    position: relative;
    width: min(520px, 100%);
    padding: 37px;
    overflow: hidden;
    border: 1px solid rgba(201, 255, 53, .25);
    border-radius: 20px;
    background: linear-gradient(155deg, #1c201b, #101215 65%);
    box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 80px rgba(201,255,53,.05);
    animation: result-in .4s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes result-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.result-flare { position: absolute; width: 300px; height: 300px; top: -220px; left: 20%; border-radius: 50%; background: var(--acid); filter: blur(80px); opacity: .13; }
.result-card.is-loss { border-color: rgba(255, 61, 90, .28); background: linear-gradient(155deg, #21181b, #101215 65%); }
.result-card.is-loss .result-flare { background: var(--red); }
.result-card.is-warning { border-color: rgba(255, 107, 53, .32); background: linear-gradient(155deg, #211b17, #101215 65%); }
.result-card.is-warning .result-flare { background: var(--orange); }
.result-close { position: absolute; top: 18px; right: 18px; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.03); cursor: pointer; }
.result-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 12px; color: #12150d; background: var(--acid); box-shadow: 0 0 25px rgba(201,255,53,.15); font-size: 26px; font-weight: 900; }
.is-loss .result-icon { color: #fff; background: var(--red); box-shadow: 0 0 25px rgba(255,61,90,.15); }
.is-warning .result-icon { color: #fff; background: var(--orange); box-shadow: 0 0 25px rgba(255,107,53,.18); font-size: 15px; }
.result-kicker, .final-kicker { color: var(--acid); font-size: 9px; font-weight: 900; letter-spacing: 1.7px; }
.is-loss .result-kicker { color: #ff8396; }
.is-warning .result-kicker { color: #ff9d73; }
.result-card h2 { margin: 8px 0 5px; font-family: var(--display); font-size: 48px; letter-spacing: .5px; line-height: 1; }
.result-card > p { margin: 0 0 23px; color: #929791; font-size: 14px; }
.answer-reveal { padding: 15px 17px; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; background: rgba(255,255,255,.025); }
.answer-reveal span { display: block; margin-bottom: 5px; color: #666b66; font-size: 8px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.answer-reveal strong { color: var(--acid-soft); font-size: 14px; }
.answer-reveal p { margin: 7px 0 0; color: #787d77; font-size: 11px; line-height: 1.5; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; }
.result-stats div { padding: 14px; border-right: 1px solid rgba(255,255,255,.08); }
.result-stats div:last-child { border: 0; }
.result-stats span { display: block; margin-bottom: 5px; color: #646964; font-size: 8px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.result-stats b { font-family: var(--display); font-size: 21px; letter-spacing: .7px; }
.continue-button { width: 100%; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 9px 0 19px; border: 0; border-radius: 9px; color: #111; background: var(--acid); font-size: 11px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.continue-button b { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 7px; color: var(--acid); background: #11150d; }
.is-loss .continue-button { color: #fff; background: var(--red); }
.is-loss .continue-button b { color: #fff; background: rgba(0,0,0,.3); }
.is-warning .continue-button { color: #15100b; background: var(--orange); }
.is-warning .continue-button b { color: var(--orange); background: #15100b; }

/* Final */
.final-screen { overflow-x: hidden; }
.final-layout { min-height: calc(100vh - 90px); display: grid; grid-template-columns: 1fr .83fr; align-items: center; gap: 8vw; padding-block: 55px; }
.final-kicker { display: block; margin-bottom: 20px; }
.final-summary h1 { font-size: clamp(63px, 6.5vw, 102px); }
.final-summary > p { max-width: 550px; margin: 25px 0 28px; color: #979c96; font-size: 16px; line-height: 1.65; }
.final-stat-row { display: flex; max-width: 550px; border-block: 1px solid var(--line); }
.final-stat-row div { flex: 1; padding: 18px 20px; border-right: 1px solid var(--line); }
.final-stat-row div:first-child { padding-left: 0; }
.final-stat-row div:last-child { border: 0; }
.final-stat-row span { display: block; margin-bottom: 5px; color: #626762; font-size: 8px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.final-stat-row strong { font-family: var(--display); font-size: 28px; letter-spacing: .8px; }
.final-actions { display: flex; gap: 11px; margin-top: 27px; }
.final-actions [hidden] { display: none !important; }
.share-button { min-width: 205px; }
.ghost-button { min-width: 160px; height: 54px; padding: 0 18px; border: 1px solid var(--line); border-radius: 9px; color: #c7cac4; background: rgba(255,255,255,.025); font-size: 11px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; cursor: pointer; }
.ghost-button span { margin-left: 13px; color: var(--acid); font-size: 17px; }
.final-actions button:disabled { opacity: .42; cursor: wait; filter: grayscale(.25); }
.share-hint { margin-top: 10px !important; color: #555a55 !important; font-size: 10px !important; }

.share-card-wrap { position: relative; width: min(430px, 90%); justify-self: center; transform: rotate(2deg); }
.aura-share-wrap { width: min(510px, 100%); transform: none; }
.aura-preview-frame { position: relative; padding: 17px; border: 1px solid rgba(103,232,225,.28); border-radius: 27px; background: linear-gradient(145deg, rgba(103,232,225,.11), rgba(255,216,74,.055)); box-shadow: 0 35px 90px rgba(8,5,34,.42), inset 0 1px rgba(255,255,255,.1); }
.aura-preview-frame::before { content: ""; position: absolute; z-index: -1; inset: 16px -17px -17px 16px; border: 1px solid rgba(201,255,53,.13); border-radius: 27px; background: rgba(20,14,57,.75); transform: rotate(-3deg); }
.aura-preview-label { display: block; margin: 3px 3px 14px; color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: 1.35px; line-height: 1.35; text-align: center; }
.aura-canvas-wrap { position: relative; display: grid; gap: 13px; }
.aura-preview-frame canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 19px; background: #17103b; box-shadow: 0 18px 50px rgba(7,5,29,.35); }
.aura-overlay-share { position: static; display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 54px; padding: 0 21px; border: 1px solid rgba(255,255,255,.3); border-radius: 16px; color: #2c1b03; background: linear-gradient(135deg, #ffe76f, #c9ff35); box-shadow: 0 13px 32px rgba(5,3,25,.34), 0 0 0 4px rgba(201,255,53,.08); font-size: 12px; font-weight: 950; letter-spacing: .45px; text-transform: uppercase; cursor: pointer; transition: transform .2s ease, filter .2s ease; }
.aura-overlay-share:hover { transform: translateY(-2px); filter: brightness(1.08); }
.aura-overlay-share b { font-size: 19px; }
.aura-preview-frame p { max-width: 430px; margin: 15px auto 3px; color: #c6c0df; font-size: 12px; font-weight: 750; line-height: 1.5; text-align: center; }
.share-card { position: relative; z-index: 2; padding: 27px; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: linear-gradient(160deg, #20231e, #101215 65%); box-shadow: 0 40px 100px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.05); }
.share-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(135deg, rgba(201,255,53,.06), transparent 40%); }
.share-card header { position: relative; display: flex; align-items: center; justify-content: space-between; }
.share-card header > span { color: #646964; font-size: 8px; font-weight: 900; letter-spacing: 1.4px; }
.share-rank { position: relative; display: flex; align-items: baseline; justify-content: center; margin: 39px 0 31px; }
.share-rank > span { position: absolute; top: -9px; color: #6a6f69; font-size: 8px; font-weight: 900; letter-spacing: 1.35px; }
.share-rank strong { color: var(--acid); font-family: var(--display); font-size: 93px; letter-spacing: -1px; line-height: 1; }
.share-rank small { margin-left: 7px; color: #666b66; font-size: 12px; font-weight: 900; }
.share-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 11px; }
.share-divider i { height: 1px; background: var(--line); }
.share-divider span { color: #666b66; font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.share-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; max-width: 290px; margin: 23px auto; }
.run-tile { position: relative; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; background: rgba(255,255,255,.03); color: #4c514c; font-family: var(--display); font-size: 13px; }
.run-tile.is-clear { border-color: rgba(201,255,53,.25); color: #10140b; background: var(--acid); box-shadow: 0 0 18px rgba(201,255,53,.08); }
.run-tile.is-wrong { border-color: rgba(255,61,90,.4); color: white; background: var(--red); }
.run-tile.is-slow { border-color: rgba(255,107,53,.4); color: white; background: var(--orange); }
.run-tile.is-timeout { border-color: rgba(255,255,255,.2); color: #aaa; background: #30332f; }
.share-legend { display: flex; justify-content: center; gap: 17px; color: #5f645f; font-size: 7px; font-weight: 900; letter-spacing: .6px; }
.share-legend span { display: flex; align-items: center; gap: 5px; }
.share-legend i { width: 5px; height: 5px; border-radius: 2px; }
.share-legend .green { background: var(--acid); }
.share-legend .orange { background: var(--orange); }
.share-legend .red { background: var(--red); }
.share-card footer { position: relative; display: flex; align-items: center; justify-content: space-between; margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); }
.share-card footer span { color: #90958f; font-size: 10px; font-weight: 800; }
.share-card footer b { color: var(--acid); font-size: 10px; letter-spacing: .8px; }
.card-shadow { position: absolute; z-index: 0; inset: 20px -20px -20px 20px; border: 1px solid rgba(201,255,53,.08); border-radius: 20px; background: #0d0f11; transform: rotate(-5deg); }

/* Performance analytics */
.performance-lab { padding: 36px 0 90px; border-top: 1px solid var(--line); }
.lab-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 27px; }
.lab-heading .final-kicker { margin-bottom: 10px; }
.lab-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(38px, 5vw, 68px); letter-spacing: .4px; text-transform: uppercase; }
.lab-heading p { max-width: 700px; margin: 10px 0 0; color: #767c76; font-size: 11px; line-height: 1.55; }
.analytics-status { flex: 0 0 auto; padding: 8px 11px; border-radius: 6px; color: #9da49d; background: rgba(255,255,255,.04); font-size: 8px; font-weight: 850; letter-spacing: .6px; text-transform: uppercase; }
.analytics-grid { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(420px, 1.28fr); gap: 16px; align-items: start; }
.analytics-panel { padding: 24px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(17,19,24,.78); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.analytics-panel > header { min-height: 49px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.analytics-panel > header span, .select-label, .compare-controls label { color: #656b65; font-size: 8px; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }
.analytics-panel h3 { margin: 5px 0 0; font-family: var(--display); font-size: 24px; letter-spacing: .5px; text-transform: uppercase; }
.current-profile-panel > header > strong { color: var(--acid); font-family: var(--display); font-size: 42px; line-height: 1; }
.domain-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 24px; }
.domain-summary div { padding: 10px; border-radius: 6px; background: rgba(255,255,255,.035); }
.domain-summary span { display: block; overflow: hidden; margin-bottom: 3px; color: #626862; font-size: 7px; font-weight: 850; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.domain-summary strong { color: #dce1d8; font-family: var(--display); font-size: 20px; }
.select-label { display: grid; gap: 5px; }
select { min-height: 33px; padding: 0 30px 0 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; color: #d7dcd4; background: #171a1e; font-size: 9px; font-weight: 750; text-transform: none; cursor: pointer; }
.chart-wrap { position: relative; width: 100%; overflow: hidden; }
.chart-wrap canvas { display: block; width: 100%; }
.run-timeline { display: flex; gap: 7px; overflow-x: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); scrollbar-width: thin; }
.run-timeline div { flex: 0 0 68px; padding: 9px; border-radius: 6px; background: rgba(255,255,255,.035); }
.run-timeline span, .run-timeline small { display: block; color: #646b65; font-size: 7px; font-weight: 850; letter-spacing: .5px; }
.run-timeline strong { display: block; margin: 3px 0; color: var(--acid); font-family: var(--display); font-size: 21px; }
.comparison-panel { grid-column: 1 / -1; }
.compare-controls { display: flex; align-items: flex-end; gap: 9px; }
.compare-controls label { display: grid; gap: 5px; }
.compare-controls > span { padding-bottom: 10px; color: #5c625d !important; font-size: 8px !important; }
.compare-controls select { min-width: 150px; }
.comparison-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: center; }
.comparison-summary { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.08); }
.comparison-score span, .comparison-score small { display: block; color: #686f69; font-size: 8px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }
.comparison-score strong { display: block; margin: 7px 0 9px; color: var(--acid); font-family: var(--display); font-size: 60px; line-height: .9; }
.comparison-score.is-negative strong { color: var(--red); }
.comparison-legend { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 23px; color: #858b85; font-size: 9px; font-weight: 750; }
.comparison-legend span { display: flex; align-items: center; gap: 6px; }
.comparison-legend i { width: 12px; height: 4px; border-radius: 1px; }
.comparison-legend .baseline { background: #6d7771; }
.comparison-legend .comparison { background: var(--acid); }
.comparison-note { margin: 16px 0 0; color: #868c86; font-size: 10px; line-height: 1.55; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; padding: 12px 18px; border: 1px solid rgba(201,255,53,.25); border-radius: 8px; color: #111; background: var(--acid); box-shadow: 0 16px 35px rgba(0,0,0,.4); font-size: 11px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .25s, transform .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
    .lobby-layout { gap: 30px; }
    .orbit-one { width: 490px; height: 490px; }
    .floating-chip { display: none; }
    .arena-layout { grid-template-columns: 1fr 300px; }
    .player-grid { gap: 4px; }
    .question-panel { padding-inline: 28px; }
    .game-stats { grid-template-columns: 200px 1fr 200px; }
}

@media (max-width: 820px) {
    .shell, .shell-wide { width: min(100% - 30px, 680px); }
    .nav { height: 74px; }
    .nav-status { font-size: 8px; }
    .lobby-layout { min-height: auto; grid-template-columns: 1fr; padding-top: 55px; }
    .hero-copy { text-align: center; }
    .hero-lede, .join-form { margin-inline: auto; }
    .proof-row { justify-content: center; }
    .lobby-visual { min-height: 520px; }
    .lobby-footer { margin-top: 30px; }
    .game-nav { grid-template-columns: 1fr auto; }
    .game-nav > .round-stage { display: none; }
    .game-stats { height: auto; grid-template-columns: 1fr 1fr; gap: 10px; padding-block: 18px; }
    .round-meter { grid-column: 1 / -1; grid-row: 2; }
    .score-stat { justify-content: flex-end; }
    .arena-layout { grid-template-columns: 1fr; }
    .question-panel { min-height: auto; }
    .roster-panel { min-height: auto; }
    .player-grid { grid-template-columns: repeat(20, 1fr); }
    .elimination-feed { grid-template-columns: repeat(2, 1fr); }
    .challenge-stroop { grid-template-columns: 1fr; gap: 15px; }
    .trail-switch-wrap { grid-template-columns: 1fr; gap: 16px; }
    .trail-status { flex-direction: row; align-items: baseline; justify-content: center; gap: 9px; text-align: center; }
    .trail-status b { font-size: 38px; }
    .stroop-word { font-size: 64px; }
    .skill-profile { margin-inline: auto; justify-content: center; }
    .final-layout { grid-template-columns: 1fr; text-align: center; padding-top: 65px; }
    .final-summary > p, .final-stat-row { margin-inline: auto; }
    .final-actions { justify-content: center; }
    .share-card-wrap { margin: 20px auto 50px; }
    .analytics-grid { grid-template-columns: 1fr; }
    .comparison-panel { grid-column: auto; }
    .comparison-layout { grid-template-columns: 1fr; }
    .comparison-summary { padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.08); border-left: 0; }
}

@media (max-width: 560px) {
    .shell, .shell-wide { width: calc(100% - 24px); }
    .brand { font-size: 18px; }
    .nav-status { max-width: 120px; justify-content: flex-end; text-align: right; line-height: 1.3; }
    .hero-copy h1 { font-size: clamp(58px, 19vw, 84px); }
    .hero-lede { margin-top: 22px; font-size: 15px; }
    .join-control { height: auto; flex-wrap: wrap; padding: 9px; }
    .join-control input { height: 50px; }
    .join-control .primary-button { width: 100%; }
    .input-prompt { margin-left: 10px; }
    .proof-row div { display: flex; flex-direction: column; gap: 2px; padding-inline: 18px; }
    .lobby-visual { min-height: 410px; margin-inline: -8px; }
    .orbit-one { width: 390px; height: 390px; }
    .orbit-two { width: 310px; height: 310px; }
    .preview-card { width: 94%; padding: 18px; transform: rotateY(-3deg) rotateX(1deg); }
    .preview-grid { gap: 5px; }
    .lobby-footer { justify-content: center; }
    .lobby-footer > div { display: none; }
    .game-nav { height: 61px; }
    .server-chip { display: none; }
    .game-stats { padding-block: 13px; }
    .stat-block > span { display: none; }
    .stat-block strong { font-size: 29px; }
    .question-panel { padding: 20px 17px; border-radius: 13px; }
    .question-copy { margin: 49px 0 16px; }
    .question-copy h2 { font-size: 26px; }
    .challenge-tags { max-width: 70%; flex-wrap: wrap; }
    .skill-badge { display: none; }
    .question-meta-right { gap: 7px; }
    .miss-meter span, .difficulty span { display: none; }
    .recovery-chip { padding-inline: 6px; font-size: 7px; }
    .challenge-surface { min-height: 265px; padding: 9px; }
    .puzzle-canvas { height: 255px; }
    .maze-layout { grid-template-columns: 1fr; gap: 12px; }
    .maze-grid { width: 270px; }
    .maze-controls { grid-template-columns: repeat(3, 35px); grid-template-rows: repeat(2, 34px); }
    .link-grid-wrap { width: 270px; }
    .word-slot, .letter-tile { width: 43px; height: 48px; border-radius: 11px; font-size: 21px; }
    .word-answer, .letter-bank { gap: 5px; }
    .word-clue { grid-template-columns: 1fr; gap: 5px; text-align: center; }
    .eq-token { min-width: 0; flex: 1; padding-inline: 9px; }
    .eq-match-target { min-height: 118px; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; padding: 11px; }
    .eq-match-target p { grid-column: 1; font-size: 10px; }
    .eq-match-target b { grid-column: 1; grid-row: 3; min-width: 0; flex-direction: row; }
    .eq-context-card { grid-template-columns: 1fr; gap: 4px; text-align: center; }
    .eq-context-card p { font-size: 11px; }
    .kindness-action { min-height: 100px; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 3px; padding: 8px; text-align: center; }
    .kindness-action i { grid-row: auto; font-size: 22px; }
    .kindness-action span { font-size: 8px; }
    .kindness-bin { min-height: 50px; }
    .kindness-bin small { display: none; }
    .thought-person { padding: 10px; }
    .odd-grid { width: 300px; gap: 5px; }
    .odd-tile { font-size: 20px; }
    .math-game { grid-template-columns: 1fr auto 90px; gap: 9px; }
    .math-expression { font-size: 37px; }
    .math-game > span { font-size: 30px; }
    .math-game input { height: 64px; font-size: 34px; }
    .math-game button { grid-column: 1 / -1; width: 100%; }
    .challenge-stroop { grid-template-columns: 1fr; }
    .stroop-word { font-size: 54px; }
    .stroop-button { min-height: 56px; }
    .reaction-pad { height: 220px; }
    .sequence-strip { gap: 2px; }
    .sequence-strip span { min-width: 0; width: 30px; height: 43px; border-radius: 7px; font-size: 16px; }
    .sequence-strip i { width: 8px; font-size: 13px; text-align: center; }
    .sequence-options { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .sequence-option { min-height: 58px; }
    .trail-grid { gap: 6px; }
    .trail-target { border-radius: 7px; font-size: 24px; }
    .trail-target.is-number::before, .trail-target.is-letter::before { top: 4px; left: 5px; font-size: 5px; }
    .answer-grid { grid-template-columns: 1fr; gap: 9px; }
    .answer-button { min-height: 70px; padding: 11px 14px; }
    .answer-key { flex-basis: 34px; height: 34px; }
    .question-footer > span:last-child { display: none; }
    .roster-panel { padding: 20px 17px; border-radius: 13px; }
    .player-grid { grid-template-columns: repeat(10, 1fr); }
    .elimination-feed { grid-template-columns: 1fr; }
    .result-card { padding: 28px 20px 22px; }
    .result-card h2 { font-size: 41px; }
    .result-stats div { padding: 11px 8px; }
    .result-stats b { font-size: 18px; }
    .final-summary h1 { font-size: 60px; }
    .final-stat-row div { padding-inline: 12px; }
    .final-stat-row strong { font-size: 23px; }
    .final-actions { flex-direction: column; }
    .final-actions button { width: 100%; }
    .share-card-wrap { width: 96%; transform: none; }
    .share-card { padding: 22px 19px; }
    .share-rank strong { font-size: 78px; }
    .performance-lab { padding-bottom: 60px; }
    .lab-heading { align-items: flex-start; flex-direction: column; }
    .analytics-panel { padding: 18px 14px; }
    .analytics-panel > header { align-items: flex-start; flex-direction: column; }
    .trend-panel > header .select-label { width: 100%; }
    .trend-panel > header select { width: 100%; }
    .domain-summary { gap: 4px; }
    .domain-summary div { padding: 8px 6px; }
    .compare-controls { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
    .compare-controls select { width: 100%; min-width: 0; }
    .comparison-chart-wrap { margin-inline: -6px; width: calc(100% + 12px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* FIT eChai theme */
:root {
    --ink: #fffdf6;
    --muted: #c4d2df;
    --black: #08192b;
    --panel: #142d4c;
    --panel-2: #1b4563;
    --line: rgba(255, 255, 255, .16);
    --acid: #ffc857;
    --acid-soft: #ffe7ad;
    --orange: #ff805f;
    --red: #ff6685;
    --cyan: #66e3d3;
    --radius: 24px;
    --display: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
    --sans: "Trebuchet MS", ui-rounded, system-ui, sans-serif;
}

body {
    background:
        radial-gradient(circle at 12% 12%, rgba(255,200,87,.22), transparent 24rem),
        radial-gradient(circle at 88% 22%, rgba(102,227,211,.18), transparent 28rem),
        radial-gradient(circle at 48% 100%, rgba(255,102,133,.16), transparent 30rem),
        linear-gradient(145deg, #08192b, #142d4c 55%, #173f56);
}
.noise { opacity: .025; }
.ambient { opacity: .16; }
.ambient-one { background: #ffc857; }
.ambient-two { background: #66e3d3; }
.brand { letter-spacing: -.3px; }
.brand > span:last-child > span { color: var(--acid); }
.brand > span:last-child > small { display: block; margin-top: 4px; color: #94c8c3; font-family: var(--sans); font-size: 6.5px; font-weight: 900; letter-spacing: 1.15px; text-transform: uppercase; }
.brand-crown { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; color: #5a3b05; background: linear-gradient(145deg, #ffe4a0, var(--acid)); box-shadow: 0 8px 20px rgba(255,200,87,.24); font-size: 22px; }
.brand.compact .brand-crown { width: 31px; height: 31px; border-radius: 10px; font-size: 18px; }
.lobby-nav-actions { display: flex; align-items: center; gap: 13px; }
.leaderboard-button { min-height: 40px; padding: 0 15px; border: 1px solid rgba(255,216,74,.34); border-radius: 14px; color: #fff7d1; background: rgba(255,216,74,.10); font-size: 10px; font-weight: 900; cursor: pointer; }
.leaderboard-button:hover { color: #4c3304; background: var(--acid); }
.nav-status, .server-chip { color: #c5bee7; }
.hero-copy h1, .final-summary h1 { line-height: .9; letter-spacing: -3px; text-transform: none; }
.hero-copy h1 em, .final-summary h1 em { color: var(--acid); text-shadow: 0 8px 28px rgba(255,216,74,.2); }
.hero-lede { color: #d6d0f3; }
.eyebrow b { color: var(--acid); }
.family-signin { max-width: 610px; margin: 0 0 24px; padding: 16px 18px; border: 1px solid rgba(103,232,225,.25); border-radius: 20px; background: rgba(48,37,112,.78); box-shadow: 0 18px 45px rgba(12,8,48,.2); }
.family-signin-copy { display: flex; align-items: flex-start; gap: 11px; }
.family-signin-copy > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,216,74,.15); }
.family-signin h2 { margin: 0; color: #fff; font-size: 15px; }
.family-signin p { margin: 4px 0 0; color: #bfb7e6; font-size: 10px; line-height: 1.45; }
.google-button-wrap { min-height: 43px; margin-top: 12px; }
.google-button-wrap[hidden] { display: none; }
.auth-message { color: #aaa1d6 !important; }
.auth-message.is-error { color: #ffb1c0 !important; }
.signed-in-panel { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.signed-in-panel[hidden] { display: none; }
.signed-in-panel > div { display: flex; align-items: center; gap: 10px; }
.signed-in-star { font-size: 27px; }
.signed-in-panel p { margin: 0; color: #eeeaff; font-size: 11px; }
.signed-in-panel strong { color: var(--acid); }
.signed-in-panel button { padding: 8px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: #d9d2f4; background: rgba(255,255,255,.06); font-size: 9px; font-weight: 900; cursor: pointer; }
.join-form > label { color: #eeeaff; }
.join-form > label small { color: #aaa2d3; font-size: 9px; text-transform: none; }
.join-control { border-color: rgba(255,255,255,.22); border-radius: 19px; background: rgba(39,29,92,.93); box-shadow: 0 20px 50px rgba(8,5,35,.24); }
.join-control:focus-within { border-color: var(--acid); box-shadow: 0 0 0 4px rgba(255,216,74,.12), 0 20px 50px rgba(8,5,35,.24); }
.primary-button, .continue-button { border-radius: 14px; color: #503700; background: linear-gradient(135deg, #ffe66d, #ffc83d); box-shadow: 0 9px 25px rgba(255,200,61,.18); }
.form-message { color: #aaa3d0; }
.proof-row span, .lobby-footer { color: #a69fcb; }
.orbit { border-color: rgba(255,255,255,.10); }
.preview-card { border-color: rgba(255,255,255,.22); background: linear-gradient(145deg, rgba(69,49,145,.96), rgba(36,29,94,.98)); box-shadow: 0 45px 100px rgba(7,5,34,.38), inset 0 1px rgba(255,255,255,.09); }
.preview-grid i { border-radius: 7px; background: rgba(255,255,255,.08); }
.preview-grid i.ready { border-color: rgba(255,216,74,.35); background: rgba(255,216,74,.43); }
.preview-callout { border-color: rgba(103,232,225,.25); background: rgba(103,232,225,.08); }
.callout-icon { color: #523800; background: var(--acid); }
.preview-callout small, .micro-label { color: #b0a8da; }
.floating-chip { border-color: rgba(255,255,255,.18); border-radius: 14px; background: rgba(49,37,112,.92); }
.question-panel, .roster-panel { border-color: rgba(255,255,255,.18); background: linear-gradient(145deg, rgba(48,38,109,.97), rgba(29,25,76,.98)); box-shadow: 0 25px 70px rgba(7,5,34,.26); }
.challenge-surface { border-radius: 19px; background-color: rgba(13,11,52,.48); }
.answer-button, .sequence-option, .trail-target, .odd-tile, .stroop-button { border-radius: 14px; background-color: rgba(255,255,255,.07); }
.round-stage, .category-badge, .skill-badge, .recovery-chip { border-radius: 12px; }
.result-card, .share-card, .analytics-panel { border-radius: 24px; background: linear-gradient(155deg, #3b2d80, #201b56 70%); }
.final-summary > p, .lab-heading p { color: #c4bce4; }
.ghost-button { border-radius: 14px; background: rgba(255,255,255,.07); }
.final-actions { flex-wrap: wrap; }

/* Daily leaderboard */
.modal-open { overflow: hidden; }
.leaderboard-modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 18px; }
.leaderboard-modal.is-visible { display: grid; }
.leaderboard-backdrop { position: absolute; inset: 0; background: rgba(18,11,55,.82); backdrop-filter: blur(10px); }
.leaderboard-sheet { position: relative; width: min(760px, 100%); max-height: min(820px, calc(100vh - 36px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.25); border-radius: 28px; background: linear-gradient(160deg, #4b35a2, #271c6a 48%, #172b63); box-shadow: 0 45px 120px rgba(7,4,35,.55); }
.leaderboard-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 25px 17px; }
.leaderboard-head > div { display: flex; align-items: center; gap: 13px; }
.leaderboard-crown { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: var(--acid); font-size: 24px; }
.leaderboard-head small { color: #c3bbe8; font-size: 8px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.leaderboard-head h2 { margin: 3px 0 0; font-family: var(--display); font-size: 27px; }
.leaderboard-head button { width: 39px; height: 39px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; color: #fff; background: rgba(255,255,255,.07); font-size: 24px; cursor: pointer; }
.leaderboard-meta { display: flex; align-items: center; gap: 13px; padding: 10px 25px; border-block: 1px solid rgba(255,255,255,.11); color: #c0b8e3; font-size: 9px; font-weight: 800; }
.leaderboard-meta > span:nth-child(2) { flex: 1; }
.leaderboard-live { display: flex; align-items: center; gap: 6px; }
.leaderboard-live i { width: 7px; height: 7px; border-radius: 50%; background: #67e8e1; box-shadow: 0 0 10px #67e8e1; }
.leaderboard-live b { color: #b8fff9; font-size: 8px; letter-spacing: .6px; text-transform: uppercase; }
.my-daily-score { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 25px; }
.my-daily-score div { padding: 13px 15px; border-radius: 14px; background: rgba(255,216,74,.11); }
.my-daily-score span { display: block; color: #c8bfe9; font-size: 8px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.my-daily-score strong { display: block; margin-top: 4px; color: var(--acid); font-family: var(--display); font-size: 20px; }
.leaderboard-columns { display: grid; grid-template-columns: 58px 1fr 100px; padding: 0 30px 8px; color: #9389c7; font-size: 7px; font-weight: 900; letter-spacing: .9px; text-transform: uppercase; }
.leaderboard-columns span:last-child { text-align: right; }
.leaderboard-list { min-height: 250px; flex: 1; overflow-y: auto; margin: 0; padding: 0 18px 15px; list-style: none; scrollbar-color: #7563c3 transparent; }
.leaderboard-row { display: grid; grid-template-columns: 48px 1fr 92px; align-items: center; gap: 10px; min-height: 52px; padding: 7px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.leaderboard-row.is-you { margin-block: 4px; border: 1px solid rgba(255,216,74,.45); border-radius: 14px; background: rgba(255,216,74,.12); }
.leaderboard-rank { color: #d9d3f2; font-family: var(--display); font-size: 17px; }
.leaderboard-row:nth-child(-n+3) .leaderboard-rank { color: var(--acid); font-size: 21px; }
.leaderboard-player { min-width: 0; display: flex; align-items: center; gap: 9px; }
.leaderboard-avatar { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px; color: #433006; background: var(--acid); font-weight: 900; }
.leaderboard-row.is-bot .leaderboard-avatar { color: #143d4a; background: var(--cyan); }
.leaderboard-name { min-width: 0; }
.leaderboard-name b { display: block; overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-name small { display: block; margin-top: 2px; color: #a69dd2; font-size: 7px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; }
.leaderboard-score { color: #fff; font-family: var(--display); font-size: 18px; text-align: right; }
.leaderboard-score small { margin-left: 3px; color: #8f86bf; font-family: var(--sans); font-size: 7px; }
.leaderboard-loading { padding: 55px 20px; color: #b8b0dc; text-align: center; }
.leaderboard-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 13px 25px 17px; border-top: 1px solid rgba(255,255,255,.1); color: #aaa2d2; font-size: 8px; }
.leaderboard-footer span { display: flex; align-items: center; gap: 6px; font-weight: 850; text-transform: uppercase; }
.leaderboard-footer i { width: 8px; height: 8px; border-radius: 3px; }
.leaderboard-footer .real-dot { background: var(--acid); }
.leaderboard-footer .bot-dot { background: var(--cyan); }
.leaderboard-footer p { flex-basis: 100%; margin: 0; line-height: 1.45; }

@media (max-width: 820px) {
    .lobby-nav-actions .nav-status { display: none; }
    .family-signin { margin-inline: auto; text-align: left; }
    .leaderboard-sheet { max-height: calc(100vh - 20px); }
}

@media (max-width: 560px) {
    .brand-crown { width: 32px; height: 32px; border-radius: 10px; font-size: 19px; }
    .leaderboard-button { padding-inline: 10px; font-size: 8px; }
    .family-signin { padding: 14px; }
    .signed-in-panel { align-items: flex-start; flex-direction: column; }
    .leaderboard-modal { padding: 8px; }
    .leaderboard-sheet { max-height: calc(100vh - 16px); border-radius: 20px; }
    .leaderboard-head { padding: 17px 15px 13px; }
    .leaderboard-head h2 { font-size: 20px; }
    .leaderboard-crown { width: 39px; height: 39px; }
    .leaderboard-meta { flex-wrap: wrap; padding-inline: 15px; }
    .leaderboard-meta > span:nth-child(2) { order: 3; flex-basis: 100%; }
    .my-daily-score { margin: 12px 15px; }
    .leaderboard-columns { grid-template-columns: 48px 1fr 76px; padding-inline: 19px; }
    .leaderboard-row { grid-template-columns: 38px 1fr 72px; gap: 6px; padding-inline: 5px; }
    .leaderboard-list { padding-inline: 10px; }
    .leaderboard-avatar { width: 29px; height: 29px; }
    .leaderboard-score { font-size: 15px; }
    .leaderboard-footer { padding-inline: 15px; }
}

/* Mobile play layout */
@media (max-width: 820px) {
    html { scroll-padding-top: 64px; }
    body { -webkit-text-size-adjust: 100%; }

    .lobby-layout { padding-top: 34px; }
    .hero-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-copy .eyebrow { order: 1; }
    .hero-copy h1 { order: 2; }
    .hero-copy .hero-lede { order: 3; }
    .hero-copy .join-form { order: 4; width: 100%; }
    .hero-copy .family-signin { order: 5; width: 100%; margin-top: 20px; margin-bottom: 0; }
    .hero-copy .proof-row { order: 6; }

    .game-screen { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
    .game-nav {
        position: sticky;
        top: 0;
        z-index: 24;
        width: 100%;
        padding-inline: 15px;
        border-bottom-color: rgba(255,255,255,.12);
        background: rgba(29, 22, 73, .94);
        box-shadow: 0 10px 28px rgba(7,5,34,.22);
        backdrop-filter: blur(15px);
    }
    .game-stats {
        grid-template-columns: minmax(72px, .8fr) minmax(130px, 1.4fr) minmax(72px, .8fr);
        gap: 12px;
        padding-block: 12px;
    }
    .round-meter { grid-column: 2; grid-row: 1; }
    .players-stat { justify-content: flex-start; }
    .score-stat { justify-content: flex-end; }
    .arena-layout { gap: 14px; }
    .question-panel { overflow: visible; }
    .question-panel::before { display: none; }
    .timer-wrap { position: static; margin: 17px 0 0; padding: 12px 0 4px; border-radius: 0; background: transparent; box-shadow: none; }
    .question-copy { margin-top: 19px; }
    .roster-panel { order: 2; }
    .friends-progress > header { padding-bottom: 13px; }

    .result-card {
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .leaderboard-sheet { max-height: calc(100dvh - 20px); }
}

@media (max-width: 560px) {
    .nav { height: 64px; }
    .lobby-screen .nav { width: 100%; padding-inline: 12px; }
    .lobby-screen .brand { gap: 7px; font-size: 15px; }
    .leaderboard-button { min-height: 42px; padding-inline: 11px; gap: 6px; }
    .leaderboard-button-label { font-size: 0; }
    .leaderboard-button-label::after { content: "Ranks"; font-size: 9px; }

    .lobby-layout { padding: 25px 0 28px; }
    .eyebrow { margin-bottom: 16px; font-size: 9px; }
    .hero-copy h1 { font-size: clamp(48px, 16vw, 68px); line-height: .92; }
    .hero-lede { max-width: 34ch; margin: 16px auto 21px; font-size: 14px; line-height: 1.5; }
    .join-form > label { text-align: left; }
    .join-control { display: grid; grid-template-columns: auto 1fr; gap: 0; }
    .join-control .primary-button { grid-column: 1 / -1; min-height: 52px; }
    .family-signin { margin-top: 16px !important; }
    .auth-message { display: none; }
    .proof-row { width: 100%; justify-content: space-around; margin-top: 22px; }
    .proof-row div { flex: 1; padding-inline: 8px; }
    .proof-row strong { font-size: 20px; }
    .proof-row span { font-size: 7px; }
    .lobby-visual { display: none; }
    .lobby-footer { min-height: 52px; margin-top: 0; }

    .game-nav { height: 56px; padding-inline: 12px; }
    .game-nav .brand.compact { font-size: 14px; }
    .game-nav .brand-crown { width: 30px; height: 30px; font-size: 17px; }
    .icon-button { width: 42px; height: 42px; }
    .game-stats {
        width: 100%;
        grid-template-columns: minmax(66px, .8fr) minmax(125px, 1.45fr) minmax(66px, .8fr);
        gap: 8px;
        padding: 9px 12px 11px;
        border-bottom: 1px solid rgba(255,255,255,.10);
        background: rgba(27,20,68,.70);
    }
    .stat-block { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 4px; }
    .stat-block strong { font-size: 23px; }
    .stat-block small { font-size: 7px; }
    .round-copy { font-size: 7px; }
    .round-track { height: 5px; }
    .arena-layout { width: 100%; gap: 12px; }
    .question-panel { padding: 16px 12px 15px; border-inline: 0; border-radius: 0 0 19px 19px; }
    .question-meta { gap: 8px; }
    .category-badge { max-width: 135px; overflow: hidden; padding: 7px 8px; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
    .question-meta-right { margin-left: auto; }
    .difficulty { display: none; }
    .timer-wrap { margin: 13px 0 0; padding: 12px 0 4px; }
    .timer-readout strong { font-size: 32px; }
    .question-copy { margin: 16px 0 13px; }
    .question-number { margin-bottom: 7px; font-size: 8px; }
    .question-copy h2 { font-size: clamp(22px, 6.6vw, 27px); line-height: 1.15; }
    .challenge-instruction { margin-top: 6px; font-size: 11px; }
    .challenge-surface { min-height: 238px; border-radius: 15px; }

    .answer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .answer-button { min-height: 66px; gap: 8px; padding: 9px 10px; border-radius: 12px; }
    .answer-key { flex-basis: 30px; height: 30px; border-radius: 8px; }
    .answer-text { font-size: 12px; line-height: 1.25; }
    .question-footer { margin-top: 15px; padding-top: 12px; }
    .question-footer > span:first-child { width: 100%; justify-content: center; }

    .roster-panel { margin-inline: 12px; padding: 16px 13px; }
    .roster-panel h2 { font-size: 20px; }
    .player-grid { grid-template-columns: repeat(20, 1fr); gap: 3px; margin: 14px 0; }
    .player-dot { border-radius: 3px; font-size: 0; }
    .player-dot::after { right: 1px; bottom: 1px; width: 2px; height: 2px; }
    .roster-key { justify-content: flex-start; flex-wrap: wrap; gap: 9px 16px; padding-bottom: 12px; }
    .elimination-feed { display: none; }
    .live-capability { margin-top: 12px; padding-top: 12px; }

    .round-result { padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); }
    .result-card { max-height: calc(100dvh - 16px); padding: 22px 16px 16px; border-radius: 19px; }
    .result-icon { width: 44px; height: 44px; margin-bottom: 12px; }
    .result-card h2 { font-size: 34px; }
    .result-card > p { margin-bottom: 14px; font-size: 12px; }
    .answer-reveal { padding: 11px 12px; }
    .result-stats { margin: 13px 0; }
    .result-stats div { padding: 9px 5px; }
    .continue-button { min-height: 52px; }

    .final-layout { min-height: auto; padding: 36px 0 22px; }
    .final-kicker { margin-bottom: 13px; }
    .final-summary h1 { font-size: clamp(48px, 15vw, 64px); }
    .final-summary > p { margin: 18px auto 21px; font-size: 14px; }
    .final-stat-row div { padding: 14px 7px; }
    .skill-profile { gap: 7px; }
    .final-actions { gap: 9px; margin-top: 20px; }
    .share-card-wrap { margin-bottom: 30px; }
    .performance-lab { padding-top: 28px; }
    .lab-heading h2 { font-size: 35px; }
    .analytics-grid { gap: 12px; }
    .domain-summary { grid-template-columns: repeat(2, 1fr); }
    .compare-controls { grid-template-columns: 1fr; gap: 8px; }
    .compare-controls > span { display: none; }
    .chart-wrap canvas { max-height: 280px; }

    .toast { bottom: max(14px, env(safe-area-inset-bottom)); width: calc(100% - 24px); text-align: center; }
}

@media (max-width: 380px) {
    .lobby-screen .brand > span:last-child { display: none; }
    .game-nav .brand > span:last-child { display: none; }
    .answer-button { min-height: 62px; padding-inline: 8px; }
    .answer-key { flex-basis: 27px; height: 27px; }
    .answer-text { font-size: 11px; }
    .maze-grid, .link-grid-wrap, .odd-grid { width: min(270px, 100%); }
    .word-slot, .letter-tile { width: 39px; height: 44px; }
}

@media (max-width: 700px) {
    .shape-spinner-game { grid-template-columns: 1fr; gap: 10px; }
    .shape-spinner-source { grid-template-columns: 1fr 96px 1fr; padding: 10px 13px; }
    .shape-spinner-source .shape-spinner-grid { width: 88px; }
    .shape-spinner-options { gap: 7px; }
    .shape-spinner-choice { min-height: 108px; }
    .shape-spinner-choice .shape-spinner-grid { width: 78px; }
    .signal-watch-game { grid-template-columns: 112px 1fr; gap: 8px; }
    .signal-watch-target { padding: 9px; }
    .signal-watch-target b { font-size: 45px; }
    .signal-watch-target small { display: none; }
    .signal-watch-pad { min-height: 180px; }
    .cause-mapper-workspace { grid-template-columns: 1fr; }
    .cause-mapper-card { min-height: 66px; }
    .cause-mapper-controls { display: grid; grid-template-columns: repeat(2, 1fr); }
    .cause-lock-button { grid-column: 1 / -1; }
    .evidence-options { grid-template-columns: 1fr; }
    .evidence-card { min-height: 92px; }
    .confidence-rating { grid-template-columns: 1fr; }
    .confidence-answer { min-height: 61px; }
    .learn-machine-game { grid-template-columns: 1fr; }
    .machine-example { min-height: 70px; }
    .allocator-brief { grid-template-columns: auto auto; }
    .allocator-brief > p { grid-column: 1 / -1; }
    .allocator-choice { min-height: 112px; }
    .team-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-person { min-height: 94px; }
    .team-pair-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .remix-ingredients > b { min-height: 60px; font-size: 11px; }
    .remix-choice { min-height: 76px; }
    .risk-list { grid-template-columns: 1fr; }
    .risk-item { min-height: 78px; }
    .forge-initial-choices { grid-template-columns: 1fr; }
    .forge-initial-choice { min-height: 57px; }
    .opportunity-scene { grid-template-columns: 1fr; gap: 5px; }
}

@media (hover: none) {
    .primary-button:hover, .answer-button:hover { transform: none; }
}

/* Private five-game eChai Challenges */
.royal-invite-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 17px;
    margin-top: 18px;
    padding: 15px 18px;
    border: 1px solid rgba(92, 233, 255, .28);
    border-radius: 16px;
    background: linear-gradient(115deg, rgba(92, 233, 255, .12), rgba(158, 123, 255, .12));
    box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
}
.royal-invite-banner[hidden] { display: none; }
.royal-invite-banner.is-closed { border-color: rgba(255, 255, 255, .12); filter: saturate(.55); }
.royal-invite-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #181126; background: var(--cyan); font-size: 25px; box-shadow: 0 8px 25px rgba(92, 233, 255, .18); }
.royal-invite-copy span { display: block; margin-bottom: 4px; color: var(--cyan); font-size: 8px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.royal-invite-copy h2 { margin: 0; font-family: var(--display); font-size: 24px; letter-spacing: .3px; }
.royal-invite-copy p { margin: 4px 0 0; color: #c1badf; font-size: 11px; }
.royal-invite-code { min-width: 110px; padding: 10px 14px; border: 1px solid rgba(201, 255, 53, .24); border-radius: 12px; text-align: center; background: rgba(9, 10, 13, .42); }
.royal-invite-code small, .royal-code small { display: block; color: #8b849e; font-size: 7px; font-weight: 900; letter-spacing: 1.2px; }
.royal-invite-code strong, .royal-code strong { color: var(--acid); font-family: var(--display); font-size: 25px; letter-spacing: 3px; }
.royal-invite-safety { grid-column: 2 / -1; margin: -9px 0 0; color: #7c7692; font-size: 8px; font-weight: 750; letter-spacing: .4px; text-transform: uppercase; }

.challenge-create-button { min-width: 235px; }
.royal-challenge-panel {
    max-width: 610px;
    margin-top: 23px;
    padding: 20px;
    border: 1px solid rgba(92, 233, 255, .23);
    border-radius: 17px;
    text-align: left;
    background: linear-gradient(145deg, rgba(92, 233, 255, .085), rgba(158, 123, 255, .065));
    box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.royal-challenge-panel[hidden] { display: none; }
.royal-challenge-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.royal-challenge-panel > header span, .royal-board-head span { color: var(--cyan); font-size: 8px; font-weight: 900; letter-spacing: 1.15px; text-transform: uppercase; }
.royal-challenge-panel h2 { margin: 5px 0 0; font-family: var(--display); font-size: 27px; line-height: 1; letter-spacing: .35px; }
.royal-challenge-panel > p { margin: 13px 0 15px; color: #bcb5d8; font-size: 11px; line-height: 1.5; }
.royal-code { flex: 0 0 auto; min-width: 108px; padding: 8px 11px; border: 1px dashed rgba(201, 255, 53, .35); border-radius: 11px; text-align: center; background: rgba(0,0,0,.2); }
.royal-share-button { width: 100%; min-height: 50px; }
.royal-board-head { display: flex; justify-content: space-between; gap: 12px; margin: 20px 0 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.royal-board-head span:last-child { color: #756f8a; font-size: 7px; }
.royal-challenge-board { max-height: 370px; overflow-y: auto; display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; scrollbar-width: thin; }
.royal-challenge-board li { min-height: 60px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; background: rgba(0,0,0,.16); }
.royal-challenge-board li.is-you { border-color: rgba(201, 255, 53, .38); background: rgba(201, 255, 53, .075); }
.royal-board-rank { color: var(--acid); font-family: var(--display); font-size: 23px; }
.royal-board-player, .royal-board-stats { min-width: 0; display: grid; gap: 3px; }
.royal-board-player b { overflow: hidden; color: #f5f3ff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.royal-board-player small, .royal-board-stats small { overflow: hidden; color: #7d7790; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.royal-board-stats { justify-items: end; text-align: right; }
.royal-board-stats b { color: var(--cyan); font-size: 11px; }
.royal-board-empty { display: block !important; padding: 18px !important; color: #8a849a; text-align: center; font-size: 10px; }
.royal-challenge-panel > footer { margin-top: 12px; color: #777184; font-size: 8px; line-height: 1.5; text-align: center; text-transform: uppercase; }

@media (max-width: 820px) {
    .royal-invite-banner { width: min(100% - 30px, 680px); }
    .royal-challenge-panel { margin-inline: auto; }
}

@media (max-width: 560px) {
    .royal-invite-banner { width: calc(100% - 24px); grid-template-columns: 40px minmax(0, 1fr); gap: 11px; margin-top: 12px; padding: 12px; }
    .royal-invite-icon { width: 40px; height: 40px; border-radius: 11px; font-size: 21px; }
    .royal-invite-copy h2 { font-size: 20px; }
    .royal-invite-copy p { font-size: 10px; line-height: 1.45; }
    .royal-invite-code { grid-column: 1 / -1; width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 12px; }
    .royal-invite-code small { margin-top: 2px; }
    .royal-invite-safety { grid-column: 1 / -1; margin: -2px 0 0; text-align: center; }
    .challenge-create-button { min-width: 0; }
    .royal-challenge-panel { padding: 15px 12px; }
    .royal-challenge-panel > header { align-items: flex-start; }
    .royal-challenge-panel h2 { font-size: 23px; }
    .royal-code { min-width: 98px; }
    .royal-challenge-board li { grid-template-columns: 34px minmax(0, 1fr); }
    .royal-board-stats { grid-column: 2; justify-items: start; text-align: left; }
    .royal-board-head span:last-child { display: none; }
}

/* Problem-solving mini games */
.challenge-target_builder, .challenge-star_switch { min-height: 325px; }
.target-builder { width: min(720px, 100%); display: grid; gap: 18px; }
.target-goal { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 11px; padding: 14px 17px; border: 1px solid rgba(103,232,225,.24); border-radius: 16px; background: rgba(103,232,225,.07); }
.target-goal span, .target-status span, .star-switch-status span { color: var(--cyan); font-size: 8px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.target-goal strong { color: var(--acid); font-family: var(--display); font-size: 38px; line-height: 1; }
.target-goal small { color: #c9c1ee; font-size: 11px; }
.target-pieces { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.target-piece { min-height: 70px; border: 1px solid rgba(255,255,255,.18); border-radius: 17px; color: #fff; background: rgba(255,255,255,.07); font-family: var(--display); font-size: 29px; cursor: pointer; transition: transform .12s, border-color .12s, background .12s; }
.target-piece:hover { border-color: var(--cyan); transform: translateY(-2px); }
.target-piece.is-selected { border-color: var(--acid); color: #513700; background: var(--acid); box-shadow: 0 10px 25px rgba(255,216,74,.18); transform: translateY(-3px); }
.target-status { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.09); }
.target-status > div { display: flex; align-items: baseline; gap: 5px; }
.target-status strong { color: #fff; font-family: var(--display); font-size: 29px; }
.target-status strong.is-match { color: var(--acid); }
.target-status small { color: #8e85bc; font-size: 10px; font-weight: 900; }
.target-lock { min-width: 155px; min-height: 48px; border: 0; border-radius: 14px; color: #513700; background: var(--acid); font-size: 10px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; cursor: pointer; }
.target-lock:disabled { color: #8e85bc; background: rgba(255,255,255,.07); cursor: default; }

.star-switch-game { width: min(660px, 100%); display: grid; grid-template-columns: minmax(180px, .8fr) minmax(240px, 1fr); align-items: center; gap: 30px; }
.star-switch-status { display: grid; align-content: center; gap: 9px; }
.star-switch-status > div { display: flex; align-items: baseline; gap: 5px; }
.star-switch-status strong { color: var(--acid); font-family: var(--display); font-size: 39px; line-height: 1; }
.star-switch-status small { color: #8e85bc; font-size: 10px; font-weight: 900; }
.star-switch-status p { margin: 0; color: #cbc4eb; font-size: 11px; line-height: 1.5; }
.star-switch-status button { width: max-content; min-height: 42px; padding: 0 17px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #e8e3fb; background: rgba(255,255,255,.06); font-size: 9px; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.star-switch-status button:disabled { opacity: .35; cursor: default; }
.star-grid { width: min(280px, 100%); display: grid; gap: 9px; justify-self: center; }
.star-cell { aspect-ratio: 1; min-height: 70px; border: 1px solid rgba(255,255,255,.16); border-radius: 17px; color: #756ca7; background: rgba(255,255,255,.055); font-size: 32px; cursor: pointer; transition: transform .14s, color .14s, background .14s, box-shadow .14s; }
.star-cell:hover { transform: scale(1.04); }
.star-cell.is-lit { border-color: rgba(255,216,74,.50); color: #5a3b05; background: linear-gradient(145deg, #ffe872, #ffc93f); box-shadow: 0 8px 22px rgba(255,216,74,.17); }

/* Clearer capability profile */
.current-profile-panel, .trend-panel { grid-column: 1 / -1; }
.current-profile-panel { overflow: hidden; }
.current-profile-panel > header { align-items: center; margin-bottom: 18px; }
.profile-score-ring { --profile-score: 0; position: relative; width: 104px; height: 104px; flex: 0 0 104px; display: grid; place-content: center; border-radius: 50%; background: conic-gradient(var(--acid) calc(var(--profile-score) * 1%), rgba(255,255,255,.09) 0); text-align: center; isolation: isolate; }
.profile-score-ring::before { content: ""; position: absolute; inset: 9px; z-index: -1; border-radius: 50%; background: #2b2268; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.profile-score-ring strong { color: #fff; font-family: var(--display); font-size: 34px; line-height: 1; }
.profile-score-ring strong::after { content: "/100"; margin-left: 2px; color: #938abc; font-family: var(--sans); font-size: 7px; }
.profile-score-ring small { margin-top: 4px; color: var(--acid); font-size: 8px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }
.profile-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
.profile-stat-grid > div { padding: 14px 15px; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; background: rgba(255,255,255,.045); }
.profile-stat-grid span, .profile-section-title { display: block; color: #9990c3; font-size: 8px; font-weight: 900; letter-spacing: .9px; text-transform: uppercase; }
.profile-stat-grid strong { display: block; margin-top: 6px; color: #fff; font-family: var(--display); font-size: 25px; }
.profile-stat-grid small { display: block; margin-top: 2px; color: #7770a5; font-size: 8px; }
.profile-insight { display: flex; align-items: center; gap: 13px; margin-bottom: 23px; padding: 14px 16px; border: 1px solid rgba(255,216,74,.23); border-radius: 16px; background: linear-gradient(100deg, rgba(255,216,74,.12), rgba(255,216,74,.035)); }
.profile-insight > span { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 13px; color: #543900; background: var(--acid); font-size: 20px; }
.profile-insight div { min-width: 0; }
.profile-insight small { display: block; color: #a69bcc; font-size: 7px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.profile-insight strong { display: block; margin-top: 4px; color: #fff4bd; font-size: 14px; }
.profile-insight p { margin: 4px 0 0; color: #b9b1dd; font-size: 10px; line-height: 1.45; }
.profile-section-title { margin: 0 0 9px; }
.domain-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 23px; }
.domain-summary .domain-card { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.04); }
.domain-card > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #453006; background: var(--acid); font-style: normal; font-weight: 900; }
.domain-card > div { min-width: 0; }
.domain-summary .domain-card span { margin: 0; color: #a59dcc; font-size: 7px; }
.domain-summary .domain-card strong { margin-top: 4px; color: #fff; font-size: 17px; }
.domain-summary .domain-card small { display: block; margin-top: 2px; color: #8e85bb; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.current-profile-panel > .capability-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
.current-profile-panel .capability-row { padding: 11px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; background: rgba(255,255,255,.035); }
.capability-name { min-width: 0; }
.capability-name span { display: block; }
.capability-name small { display: block; margin-top: 2px; color: #736b9e; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.capability-row b { display: flex; align-items: baseline; gap: 5px; }
.capability-row b strong { color: #fff; font-size: 11px; }
.capability-row b small { color: #8c83b7; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.capability-track { height: 7px; border-radius: 8px; }
.capability-row.band-standout .capability-track i { background: linear-gradient(90deg, #48cbbf, var(--cyan)); }
.capability-row.band-strong .capability-track i { background: linear-gradient(90deg, #d9ad28, var(--acid)); }
.capability-row.band-building .capability-track i { background: linear-gradient(90deg, #d96744, var(--orange)); }
.capability-row.band-growing .capability-track i { background: linear-gradient(90deg, #b74c68, var(--red)); }
.is-compact .capability-name small, .is-compact .capability-row b small { display: none; }

@media (max-width: 820px) {
    .target-pieces { grid-template-columns: repeat(3, 1fr); }
    .star-switch-game { grid-template-columns: 1fr; gap: 16px; }
    .star-switch-status { grid-template-columns: auto 1fr auto; align-items: center; }
    .star-switch-status p { text-align: center; }
    .domain-summary { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
    .challenge-target_builder, .challenge-star_switch { min-height: 280px; }
    .target-builder { gap: 12px; }
    .target-goal { grid-template-columns: auto auto 1fr; padding: 10px 12px; }
    .target-goal strong { font-size: 31px; }
    .target-goal small { font-size: 9px; }
    .target-pieces { gap: 7px; }
    .target-piece { min-height: 55px; border-radius: 13px; font-size: 24px; }
    .target-status { gap: 9px; padding-top: 9px; }
    .target-status strong { font-size: 24px; }
    .target-lock { min-width: 132px; min-height: 45px; font-size: 8px; }
    .star-switch-status { grid-template-columns: auto 1fr auto; gap: 8px; }
    .star-switch-status strong { font-size: 31px; }
    .star-switch-status p { font-size: 9px; }
    .star-switch-status button { min-height: 40px; padding-inline: 12px; }
    .star-grid { width: min(245px, 100%); gap: 7px; }
    .star-cell { min-height: 62px; border-radius: 14px; font-size: 28px; }

    .current-profile-panel > header { align-items: center; flex-direction: row; }
    .profile-score-ring { width: 88px; height: 88px; flex-basis: 88px; }
    .profile-score-ring strong { font-size: 28px; }
    .profile-stat-grid { gap: 5px; }
    .profile-stat-grid > div { padding: 10px 7px; }
    .profile-stat-grid span { font-size: 6px; }
    .profile-stat-grid strong { font-size: 20px; }
    .profile-stat-grid small { font-size: 6px; }
    .profile-insight { align-items: flex-start; padding: 12px; }
    .profile-insight p { font-size: 9px; }
    .domain-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .domain-summary .domain-card { padding: 9px; }
    .domain-card > i { width: 28px; height: 28px; }
    .current-profile-panel > .capability-bars { grid-template-columns: 1fr; }
}

/* Chai Circles */
.crew-nav-button { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border: 1px solid rgba(103,232,225,.34); border-radius: 14px; color: #cafffb; background: rgba(103,232,225,.10); font-size: 10px; font-weight: 900; cursor: pointer; }
.crew-nav-button:hover { color: #173d47; background: var(--cyan); }
.crew-invite-banner { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px; margin-top: 18px; padding: 15px 18px; border: 1px solid rgba(255,216,74,.28); border-radius: 18px; background: linear-gradient(115deg, rgba(255,216,74,.13), rgba(103,232,225,.10)); box-shadow: 0 18px 50px rgba(7,4,35,.15); }
.crew-invite-banner[hidden] { display: none; }
.crew-invite-mascot { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(255,255,255,.13); font-size: 31px; }
.crew-invite-copy span { display: block; margin-bottom: 3px; color: var(--acid); font-size: 8px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.crew-invite-copy h2 { margin: 0; font-family: var(--display); font-size: 23px; }
.crew-invite-copy p { margin: 4px 0 0; color: #c8c0e8; font-size: 11px; }
.crew-invite-code { min-width: 116px; padding: 10px 13px; border: 1px dashed rgba(103,232,225,.42); border-radius: 13px; text-align: center; background: rgba(12,8,45,.25); }
.crew-invite-code small { display: block; color: #a59cd0; font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.crew-invite-code strong { color: var(--cyan); font-family: var(--display); font-size: 25px; letter-spacing: 3px; }
.crew-invite-safety { grid-column: 2 / -1; margin: -8px 0 0; color: #8f86b7; font-size: 8px; font-weight: 800; letter-spacing: .35px; text-transform: uppercase; }

.crew-modal { position: fixed; inset: 0; z-index: 95; display: none; place-items: center; padding: 18px; }
.crew-modal.is-visible { display: grid; }
.crew-modal-backdrop { position: absolute; inset: 0; background: rgba(14,8,50,.86); backdrop-filter: blur(11px); }
.crew-sheet { position: relative; width: min(880px,100%); max-height: min(900px,calc(100vh - 36px)); overflow-y: auto; overscroll-behavior: contain; border: 1px solid rgba(255,255,255,.24); border-radius: 29px; background: linear-gradient(155deg,#4b35a2,#281c6c 55%,#163467); box-shadow: 0 45px 130px rgba(6,3,30,.6); scrollbar-color: #7563c3 transparent; }
.crew-sheet-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px 16px; border-bottom: 1px solid rgba(255,255,255,.11); background: rgba(64,45,145,.96); backdrop-filter: blur(10px); }
.crew-sheet-head > div { display: flex; align-items: center; gap: 12px; }
.crew-sheet-crown { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 15px; background: var(--cyan); font-size: 24px; }
.crew-sheet-head small, .crew-create-card > span, .crew-dashboard-copy > span, .crew-goal-card header span, .crew-members-card header span { color: #b8fff9; font-size: 8px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.crew-sheet-head h2 { margin: 3px 0 0; font-family: var(--display); font-size: 28px; }
.crew-sheet-head button { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; color: #fff; background: rgba(255,255,255,.07); font-size: 24px; cursor: pointer; }
.crew-setup, .crew-dashboard { padding: 23px 24px 26px; }
.crew-intro { text-align: center; }
.crew-intro h3 { margin: 0; font-family: var(--display); font-size: 34px; }
.crew-intro p { max-width: 610px; margin: 8px auto 19px; color: #c7bfe9; font-size: 11px; line-height: 1.55; }
.crew-nickname-field { max-width: 520px; display: grid; gap: 7px; margin: 0 auto 15px; color: #e9e5ff; font-size: 9px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
.crew-nickname-field small { color: #aaa1d3; text-transform: none; }
.crew-nickname-field input, .crew-join-card input { min-height: 48px; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; outline: 0; padding: 0 14px; color: #fff; background: rgba(16,11,54,.38); font-weight: 800; }
.crew-create-card, .crew-join-card, .crew-goal-card, .crew-members-card { border: 1px solid rgba(255,255,255,.13); border-radius: 20px; background: rgba(255,255,255,.055); }
.crew-create-card { padding: 18px; }
.crew-create-card h3 { margin: 5px 0 14px; font-family: var(--display); font-size: 21px; }
.crew-mascot-picker { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.crew-mascot-picker button { min-height: 92px; display: grid; place-items: center; gap: 3px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; color: #ddd7f3; background: rgba(13,9,48,.26); cursor: pointer; }
.crew-mascot-picker button b { font-size: 31px; }
.crew-mascot-picker button span { font-size: 9px; font-weight: 900; }
.crew-mascot-picker button.is-selected { border-color: var(--acid); color: #fff3bc; background: rgba(255,216,74,.13); box-shadow: 0 0 0 3px rgba(255,216,74,.08); }
.crew-create-action { width: 100%; min-height: 51px; margin-top: 13px; }
.crew-or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 16px 0; color: #9b92c7; font-size: 8px; font-weight: 900; letter-spacing: 1px; }
.crew-or i { height: 1px; background: rgba(255,255,255,.1); }
.crew-join-card { padding: 15px 17px; }
.crew-join-card label { display: block; margin-bottom: 8px; color: #dcd6f4; font-size: 9px; font-weight: 900; }
.crew-join-card > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.crew-join-card input { letter-spacing: 3px; text-transform: uppercase; }
.crew-join-card button { min-height: 48px; padding: 0 17px; border: 0; border-radius: 13px; color: #133f49; background: var(--cyan); font-size: 10px; font-weight: 900; cursor: pointer; }
.crew-form-message { margin: 12px 0 0; color: #aaa1d3; font-size: 9px; text-align: center; }
.crew-form-message.is-error { color: #ffb0c0; }

.crew-hero-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 18px; border: 1px solid rgba(103,232,225,.25); border-radius: 22px; background: linear-gradient(120deg,rgba(103,232,225,.12),rgba(255,216,74,.08)); }
.crew-mascot-stage { position: relative; width: 92px; height: 92px; display: grid; place-items: center; border-radius: 25px; background: rgba(255,255,255,.11); }
.crew-mascot-stage > b { font-size: 48px; }
.crew-mascot-stage > span { position: absolute; top: -8px; right: -5px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--acid); font-size: 17px; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.crew-mascot-stage > small { position: absolute; bottom: -9px; padding: 5px 8px; border-radius: 10px; color: #4e3600; background: var(--acid); font-size: 7px; font-weight: 900; white-space: nowrap; text-transform: uppercase; }
.crew-dashboard-copy h3 { margin: 5px 0 3px; font-family: var(--display); font-size: 31px; }
.crew-dashboard-copy p { margin: 0; color: #c2bbe4; font-size: 10px; }
.crew-dashboard-code { min-width: 123px; padding: 11px; border: 1px dashed rgba(255,216,74,.42); border-radius: 14px; text-align: center; }
.crew-dashboard-code small { display: block; color: #aca4d2; font-size: 7px; font-weight: 900; }
.crew-dashboard-code strong { display: block; margin-top: 2px; color: var(--acid); font-family: var(--display); font-size: 26px; letter-spacing: 3px; }
.crew-goal-card { margin-top: 13px; padding: 17px 18px; }
.crew-goal-card header, .crew-members-card header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.crew-goal-card h3, .crew-members-card h3 { margin: 4px 0 0; font-family: var(--display); font-size: 21px; }
.crew-goal-card header > strong { color: var(--acid); font-family: var(--display); font-size: 31px; }
.crew-progress-track, .crew-result-track { height: 13px; overflow: hidden; margin-top: 14px; border-radius: 99px; background: rgba(8,5,35,.38); }
.crew-progress-track i, .crew-result-track i { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--cyan),var(--acid)); box-shadow: 0 0 18px rgba(103,232,225,.28); transition: width .5s ease; }
.crew-progress-labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: #a9a0d1; font-size: 8px; font-weight: 800; }
.crew-milestones { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-top: 14px; }
.crew-milestones span { display: grid; place-items: center; gap: 2px; min-height: 49px; border-radius: 12px; opacity: .34; background: rgba(255,255,255,.05); font-size: 18px; filter: grayscale(1); }
.crew-milestones span.is-unlocked { opacity: 1; filter: none; background: rgba(255,216,74,.10); }
.crew-milestones small { color: #a9a1d0; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.crew-dashboard-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 13px 0; }
.crew-dashboard-actions .primary-button { flex: 1 1 280px; min-height: 52px; }
.crew-dashboard-actions .ghost-button { flex: 1 1 145px; min-width: 0; }
.crew-members-card { padding: 17px 18px; }
.crew-members-card header > strong { color: var(--cyan); font-size: 11px; }
.crew-member-list, .crew-result-members { display: grid; gap: 7px; margin-top: 13px; }
.crew-member-row { min-height: 61px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: rgba(10,7,42,.2); }
.crew-member-row.is-you { border-color: rgba(255,216,74,.4); background: rgba(255,216,74,.08); }
.crew-member-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: #173e47; background: var(--cyan); font-size: 13px; font-weight: 900; }
.crew-member-copy, .crew-member-score { min-width: 0; display: grid; gap: 3px; }
.crew-member-copy b { overflow: hidden; color: #fff; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.crew-member-copy small, .crew-member-score small { overflow: hidden; color: #9990c4; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.crew-member-score { justify-items: end; text-align: right; }
.crew-member-score b { color: var(--acid); font-family: var(--display); font-size: 20px; }
.crew-privacy { margin-top: 13px; color: #9188b9; font-size: 8px; font-weight: 800; text-align: center; text-transform: uppercase; }

.crew-result-panel { max-width: 610px; margin-top: 22px; padding: 18px; border: 1px solid rgba(103,232,225,.26); border-radius: 20px; background: linear-gradient(125deg,rgba(103,232,225,.10),rgba(255,216,74,.08)); text-align: left; }
.crew-result-panel[hidden] { display: none; }
.crew-result-panel > header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; }
.crew-result-mascot { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: rgba(255,255,255,.12); font-size: 30px; }
.crew-result-panel header small { color: var(--cyan); font-size: 8px; font-weight: 900; letter-spacing: .9px; }
.crew-result-panel h2 { margin: 4px 0 0; font-family: var(--display); font-size: 23px; }
.crew-result-panel header > strong { color: var(--acid); font-family: var(--display); font-size: 28px; }
.crew-result-panel > p { margin: 11px 0; color: #bdb5dc; font-size: 10px; line-height: 1.5; }
.crew-result-panel .crew-member-row { min-height: 54px; }
.crew-result-panel > button { width: 100%; min-height: 49px; margin-top: 12px; }

@media (max-width: 820px) {
    .crew-invite-banner { width: min(100% - 30px,680px); }
    .crew-result-panel { margin-inline: auto; }
}

@media (max-width: 560px) {
    .crew-nav-button { min-height: 42px; padding-inline: 10px; }
    .crew-nav-button span:last-child { font-size: 0; }
    .crew-nav-button span:last-child::after { content: "Circles"; font-size: 9px; }
    .crew-invite-banner { width: calc(100% - 24px); grid-template-columns: 42px minmax(0,1fr); gap: 10px; margin-top: 12px; padding: 12px; }
    .crew-invite-mascot { width: 42px; height: 42px; border-radius: 13px; font-size: 26px; }
    .crew-invite-copy h2 { font-size: 19px; }
    .crew-invite-copy p { font-size: 9px; line-height: 1.45; }
    .crew-invite-code { grid-column: 1 / -1; width: 100%; min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 7px; }
    .crew-invite-safety { grid-column: 1 / -1; margin: -2px 0 0; text-align: center; }
    .crew-modal { padding: 7px; }
    .crew-sheet { max-height: calc(100dvh - 14px); border-radius: 21px; }
    .crew-sheet-head { padding: 14px 13px 11px; }
    .crew-sheet-head h2 { font-size: 21px; }
    .crew-sheet-crown { width: 39px; height: 39px; }
    .crew-setup, .crew-dashboard { padding: 15px 12px 18px; }
    .crew-intro h3 { font-size: 27px; }
    .crew-mascot-picker { grid-template-columns: repeat(2,1fr); }
    .crew-mascot-picker button { min-height: 72px; }
    .crew-join-card > div { grid-template-columns: 1fr; }
    .crew-join-card button { width: 100%; }
    .crew-hero-card { grid-template-columns: 70px minmax(0,1fr); gap: 12px; padding: 14px 11px 18px; }
    .crew-mascot-stage { width: 68px; height: 68px; border-radius: 19px; }
    .crew-mascot-stage > b { font-size: 37px; }
    .crew-dashboard-copy h3 { font-size: 23px; }
    .crew-dashboard-code { grid-column: 1 / -1; min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 7px; }
    .crew-dashboard-code strong { margin: 0; font-size: 22px; }
    .crew-goal-card, .crew-members-card { padding: 14px 12px; }
    .crew-goal-card h3, .crew-members-card h3 { font-size: 18px; }
    .crew-member-row { grid-template-columns: 35px minmax(0,1fr); }
    .crew-member-score { grid-column: 2; justify-items: start; text-align: left; }
    .crew-result-panel { padding: 14px 11px; }
    .crew-result-panel > header { grid-template-columns: 45px minmax(0,1fr) auto; }
    .crew-result-mascot { width: 43px; height: 43px; font-size: 25px; }
}

/* Communication capability games */
.challenge-clear_message, .challenge-listen_relay, .challenge-audience_switch { min-height: 330px; }
.communication-game { width: min(780px, 100%); display: grid; gap: 12px; }
.communication-prompt { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 13px; padding: 12px 15px; border: 1px solid rgba(103,232,225,.25); border-radius: 15px; background: linear-gradient(120deg,rgba(103,232,225,.10),rgba(255,216,74,.06)); }
.communication-prompt span { color: var(--cyan); font-size: 7px; font-weight: 900; letter-spacing: 1px; white-space: nowrap; }
.communication-prompt p { margin: 0; color: #f2efff; font-size: 13px; font-weight: 800; line-height: 1.4; }
.message-slots { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.message-slot { min-height: 72px; display: grid; align-content: center; gap: 5px; padding: 10px 12px; border: 1px dashed rgba(255,255,255,.20); border-radius: 14px; background: rgba(255,255,255,.035); }
.message-slot small { color: #8d84ba; font-size: 7px; font-weight: 900; letter-spacing: .8px; }
.message-slot span { color: #70689e; font-size: 10px; font-weight: 800; line-height: 1.3; }
.message-slot.is-filled { border-style: solid; border-color: rgba(255,216,74,.43); background: rgba(255,216,74,.09); }
.message-slot.is-filled small { color: var(--acid); }
.message-slot.is-filled span { color: #fff5cb; }
.message-piece-bank { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.message-piece { min-height: 57px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 14px; color: #f6f3ff; background: rgba(255,255,255,.065); font-size: 11px; font-weight: 850; line-height: 1.3; cursor: pointer; transition: transform .12s,border-color .12s,opacity .12s; }
.message-piece:hover { border-color: var(--cyan); transform: translateY(-2px); }
.message-piece.is-used { opacity: .24; transform: scale(.96); }
.communication-actions { display: grid; grid-template-columns: auto minmax(150px,1fr); justify-content: end; gap: 8px; }
.communication-undo { min-height: 43px; padding: 0 17px; border: 1px solid rgba(255,255,255,.17); border-radius: 13px; color: #d8d2ef; background: rgba(255,255,255,.055); font-size: 8px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; }
.communication-undo:disabled { opacity: .3; cursor: default; }

.relay-message-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 17px; border: 1px solid rgba(255,216,74,.34); border-radius: 18px; background: linear-gradient(120deg,rgba(255,216,74,.13),rgba(255,255,255,.045)); transition: padding .2s,opacity .2s,background .2s; }
.relay-speaker { display: flex; align-items: center; gap: 9px; }
.relay-speaker > i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--acid); font-size: 27px; font-style: normal; }
.relay-speaker span { display: grid; gap: 3px; }
.relay-speaker small { color: #aaa1d0; font-size: 6px; font-weight: 900; letter-spacing: .8px; }
.relay-speaker b { color: #fff; font-size: 11px; }
.relay-message-card blockquote { margin: 0; color: #fff5c5; font-size: 17px; font-weight: 850; line-height: 1.35; }
.relay-message-card > button { min-height: 41px; padding: 0 13px; border: 1px solid rgba(255,216,74,.38); border-radius: 12px; color: #fff1ad; background: rgba(255,216,74,.10); font-size: 8px; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.relay-message-card.is-hidden { grid-template-columns: auto 1fr; padding: 9px 12px; opacity: .72; background: rgba(255,255,255,.035); }
.relay-message-card.is-hidden .relay-speaker > i { width: 36px; height: 36px; font-size: 21px; }
.relay-message-card.is-hidden blockquote { color: #a79fcf; font-size: 10px; }
.relay-recall[hidden] { display: none; }
.relay-recall { display: grid; gap: 10px; opacity: 0; transform: translateY(4px); transition: opacity .16s,transform .16s; }
.relay-recall.is-ready { opacity: 1; transform: none; }
.relay-slots { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 9px; }
.relay-slots > b { color: var(--cyan); font-size: 20px; }
.relay-slots > div { min-height: 62px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 2px 8px; padding: 8px 12px; border: 1px dashed rgba(103,232,225,.30); border-radius: 14px; background: rgba(103,232,225,.055); }
.relay-slots small { grid-column: 2; color: #8e85ba; font-size: 6px; font-weight: 900; letter-spacing: .7px; }
.relay-slots strong { grid-row: 1 / 3; font-size: 25px; }
.relay-slots span { grid-column: 2; color: #aaa2cf; font-size: 9px; font-weight: 800; }
.relay-slots > div.is-filled { border-style: solid; border-color: rgba(255,216,74,.42); background: rgba(255,216,74,.08); }
.relay-slots > div.is-filled span { color: #fff3bc; }
.relay-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.relay-option { min-height: 62px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; color: #eeeaff; background: rgba(255,255,255,.055); text-align: left; cursor: pointer; }
.relay-option i { font-size: 24px; font-style: normal; }
.relay-option span { font-size: 9px; font-weight: 850; line-height: 1.25; }
.relay-option.is-selected { border-color: var(--acid); color: #fff3b7; background: rgba(255,216,74,.11); }

.audience-message-bank, .audience-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.audience-message { min-height: 64px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; color: #f5f1ff; background: rgba(255,255,255,.055); text-align: left; cursor: pointer; transition: transform .12s,border-color .12s,opacity .12s; }
.audience-message > i { font-size: 24px; font-style: normal; }
.audience-message > span { font-size: 10px; font-weight: 800; line-height: 1.35; }
.audience-message.is-selected { border-color: var(--acid); transform: translateY(-2px); background: rgba(255,216,74,.10); }
.audience-message.is-used:not(.is-selected) { opacity: .45; }
.audience-target { min-height: 89px; display: grid; grid-template-columns: auto minmax(0,1fr); grid-template-rows: auto 1fr; align-items: center; gap: 3px 10px; padding: 11px 13px; border: 1px dashed rgba(103,232,225,.31); border-radius: 16px; color: #f6f3ff; background: rgba(103,232,225,.05); text-align: left; cursor: pointer; }
.audience-target > i { grid-row: 1 / 3; font-size: 32px; font-style: normal; }
.audience-target > span { font-size: 10px; font-weight: 900; }
.audience-target b { min-width: 0; display: grid; gap: 2px; padding: 6px 8px; border-radius: 10px; color: #aaa2cf; background: rgba(255,255,255,.055); }
.audience-target b small { color: #8279ad; font-size: 6px; letter-spacing: .7px; }
.audience-target b em { overflow: hidden; font-size: 8px; font-style: normal; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.audience-target.is-filled { border-style: solid; border-color: rgba(255,216,74,.42); background: rgba(255,216,74,.075); }
.audience-target.is-filled b { color: #4e3600; background: var(--acid); }
.audience-target.is-filled b small { color: #735100; }

@media (max-width: 820px) {
    .domain-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 560px) {
    .challenge-clear_message, .challenge-listen_relay, .challenge-audience_switch { min-height: 285px; }
    .communication-game { gap: 8px; }
    .communication-prompt { grid-template-columns: 1fr; gap: 3px; padding: 9px 10px; text-align: center; }
    .communication-prompt p { font-size: 10px; }
    .message-slots, .message-piece-bank { gap: 5px; }
    .message-slot { min-height: 61px; padding: 7px; }
    .message-slot span { font-size: 8px; }
    .message-piece { min-height: 54px; padding: 7px; font-size: 9px; }
    .communication-actions { grid-template-columns: .75fr 1.25fr; }
    .relay-message-card { grid-template-columns: auto 1fr; gap: 9px; padding: 12px; }
    .relay-speaker > i { width: 39px; height: 39px; font-size: 22px; }
    .relay-message-card blockquote { grid-column: 1 / -1; font-size: 14px; text-align: center; }
    .relay-message-card > button { grid-column: 1 / -1; min-height: 36px; }
    .relay-message-card.is-hidden { grid-template-columns: auto 1fr; }
    .relay-message-card.is-hidden blockquote { grid-column: 2; text-align: left; }
    .relay-slots > div { min-height: 53px; padding: 6px 8px; }
    .relay-slots strong { font-size: 20px; }
    .relay-slots span { font-size: 7px; }
    .relay-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
    .relay-option { min-height: 49px; }
    .relay-option i { font-size: 20px; }
    .audience-message-bank, .audience-grid { gap: 5px; }
    .audience-message { min-height: 70px; grid-template-columns: 1fr; gap: 2px; padding: 7px; text-align: center; }
    .audience-message > i { font-size: 19px; }
    .audience-message > span { font-size: 8px; }
    .audience-target { min-height: 86px; grid-template-columns: 30px 1fr; gap: 2px 7px; padding: 8px; }
    .audience-target > i { font-size: 26px; }
    .audience-target b em { font-size: 7px; }
}

/* One-minute strategy games */
.challenge-river_crossing, .challenge-tower_transfer { min-height: 410px; }
.strategy-game { width: min(820px,100%); display: grid; gap: 12px; }
.strategy-game-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 15px; border: 1px solid rgba(255,216,74,.25); border-radius: 15px; background: linear-gradient(110deg,rgba(255,216,74,.11),rgba(103,232,225,.06)); }
.strategy-game-head > div:first-child { display: grid; gap: 3px; }
.strategy-game-head span { color: var(--acid); font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.strategy-game-head strong { color: #fff; font-size: 13px; }
.strategy-game-head > div:last-child { display: flex; align-items: baseline; gap: 4px; }
.strategy-game-head small { color: #9289bc; font-size: 7px; font-weight: 900; letter-spacing: .8px; }
.strategy-game-head b { color: var(--cyan); font-family: var(--display); font-size: 27px; }
.strategy-game-head em { color: #8e85b8; font-size: 8px; font-style: normal; font-weight: 900; }
.strategy-feedback { min-height: 17px; margin: 0; color: #b9b1da; font-size: 9px; font-weight: 750; line-height: 1.4; text-align: center; }
.strategy-reset { min-height: 43px; padding: 0 15px; border: 1px solid rgba(255,255,255,.17); border-radius: 13px; color: #d9d3ef; background: rgba(255,255,255,.055); font-size: 8px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; }
.strategy-reset:disabled { opacity: .3; cursor: default; }

.river-scene { display: grid; grid-template-columns: minmax(150px,1fr) minmax(170px,.8fr) minmax(150px,1fr); gap: 8px; min-height: 220px; }
.river-bank { display: grid; grid-template-rows: auto 1fr; gap: 9px; padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: linear-gradient(145deg,rgba(137,188,81,.17),rgba(68,102,46,.10)); }
.river-bank-goal { background: linear-gradient(145deg,rgba(255,216,74,.15),rgba(139,100,40,.08)); }
.river-bank > span { color: #b9d999; font-size: 7px; font-weight: 900; letter-spacing: .9px; text-align: center; }
.river-bank-goal > span { color: #ffe783; }
.river-bank > div { display: grid; align-content: center; gap: 7px; }
.river-passenger { min-height: 47px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; color: #f5f1ff; background: rgba(17,13,54,.28); text-align: left; cursor: pointer; }
.river-passenger i { font-size: 23px; font-style: normal; }
.river-passenger span { font-size: 9px; font-weight: 900; }
.river-passenger.is-selected { border-color: var(--acid); color: #fff0a8; background: rgba(255,216,74,.14); transform: translateY(-1px); }
.river-passenger:disabled { opacity: .48; cursor: default; }
.river-water { display: flex; align-items: center; padding: 12px; overflow: hidden; border: 1px solid rgba(103,232,225,.25); border-radius: 17px; background: repeating-linear-gradient(165deg,rgba(103,232,225,.18) 0 9px,rgba(64,112,178,.13) 10px 20px); }
.river-boat { width: 112px; min-height: 112px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 8px; border: 1px solid rgba(255,216,74,.34); border-radius: 50% 50% 19px 19px; background: rgba(25,19,70,.82); box-shadow: 0 14px 30px rgba(5,6,35,.30); transition: margin .35s ease,transform .35s ease; }
.river-boat.is-right { margin-left: auto; transform: scaleX(-1); }
.river-boat.is-right > * { transform: scaleX(-1); }
.river-boat span { color: var(--acid); font-size: 7px; font-weight: 900; letter-spacing: .7px; }
.river-boat b { font-size: 35px; }
.river-boat small { max-width: 96px; color: #c4bde2; font-size: 7px; font-weight: 800; line-height: 1.25; text-align: center; }
.river-controls { display: grid; grid-template-columns: .75fr 1.5fr .65fr; gap: 8px; }
.river-alone, .river-cross { min-height: 47px; border-radius: 14px; font-size: 9px; font-weight: 900; cursor: pointer; }
.river-alone { display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255,255,255,.17); color: #e6e0f7; background: rgba(255,255,255,.055); }
.river-alone i { font-size: 18px; font-style: normal; }
.river-alone.is-selected { border-color: var(--cyan); color: #c9fffb; background: rgba(103,232,225,.11); }
.river-cross { border: 0; color: #4e3600; background: var(--acid); letter-spacing: .4px; text-transform: uppercase; }
.river-alone:disabled, .river-cross:disabled { opacity: .32; cursor: default; }
.river-scene.is-warning { animation: strategy-warning .26s ease; }
@keyframes strategy-warning { 35% { transform: translateX(-5px); } 70% { transform: translateX(5px); } }

.tower-board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.tower-peg { position: relative; min-height: 230px; overflow: hidden; padding: 12px 8px 15px; border: 1px solid rgba(255,255,255,.13); border-radius: 17px; color: #eeeaff; background: rgba(255,255,255,.045); cursor: pointer; }
.tower-peg > span { position: relative; z-index: 4; color: #9d94c5; font-size: 8px; font-weight: 900; letter-spacing: 1px; }
.tower-peg > i { position: absolute; z-index: 1; width: 8px; height: 150px; bottom: 24px; left: calc(50% - 4px); border-radius: 8px 8px 2px 2px; background: #6b628d; }
.tower-peg::after { content: ""; position: absolute; z-index: 3; right: 8%; bottom: 18px; left: 8%; height: 9px; border-radius: 8px; background: #7f759f; }
.tower-peg.is-goal { border-color: rgba(255,216,74,.28); background: rgba(255,216,74,.055); }
.tower-peg.is-goal > span { color: var(--acid); }
.tower-peg.is-selected { border-color: var(--cyan); box-shadow: inset 0 0 35px rgba(103,232,225,.08); transform: translateY(-2px); }
.tower-peg.is-warning { animation: strategy-warning .26s ease; border-color: rgba(255,102,133,.60); }
.tower-stack { position: absolute; z-index: 2; right: 5%; bottom: 25px; left: 5%; height: 150px; display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-start; gap: 4px; }
.tower-disk { height: 31px; flex: 0 0 31px; display: grid; place-items: center; border-radius: 10px; color: #3d2b04; background: linear-gradient(90deg,#f3bd2d,var(--acid),#edae20); font-family: var(--display); font-size: 10px; box-shadow: 0 4px 10px rgba(7,5,35,.24); }
.tower-disk-2 { color: #133f48; background: linear-gradient(90deg,#38bfc7,var(--cyan),#37b7cd); }
.tower-disk-1 { color: #491b46; background: linear-gradient(90deg,#e751bb,#ff8cdd,#dc4fae); }
.tower-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.tower-footer .strategy-feedback { text-align: left; }

@media (max-width: 560px) {
    .challenge-river_crossing, .challenge-tower_transfer { min-height: 390px; }
    .strategy-game { gap: 8px; }
    .strategy-game-head { padding: 8px 10px; }
    .strategy-game-head strong { font-size: 10px; }
    .strategy-game-head b { font-size: 23px; }
    .river-scene { grid-template-columns: minmax(94px,1fr) minmax(104px,.8fr) minmax(94px,1fr); min-height: 205px; gap: 4px; }
    .river-bank { gap: 5px; padding: 7px 5px; border-radius: 13px; }
    .river-passenger { min-height: 43px; grid-template-columns: 1fr; gap: 0; padding: 4px; text-align: center; }
    .river-passenger i { font-size: 20px; }
    .river-passenger span { font-size: 7px; }
    .river-water { padding: 5px; border-radius: 13px; }
    .river-boat { width: 86px; min-height: 98px; padding: 5px; }
    .river-boat b { font-size: 29px; }
    .river-boat small { font-size: 6px; }
    .river-controls { grid-template-columns: .85fr 1.35fr .65fr; gap: 5px; }
    .river-alone, .river-cross, .strategy-reset { min-height: 43px; padding-inline: 7px; font-size: 7px; }
    .river-alone { gap: 3px; }
    .river-alone i { font-size: 14px; }
    .strategy-feedback { font-size: 8px; }
    .tower-board { gap: 5px; }
    .tower-peg { min-height: 207px; padding-inline: 3px; border-radius: 13px; }
    .tower-peg > i, .tower-stack { height: 132px; }
    .tower-stack { gap: 3px; }
    .tower-disk { height: 28px; flex-basis: 28px; }
    .tower-footer { grid-template-columns: 1fr auto; gap: 6px; }
}
/* Mobile question typography enlarged to 200% for comfortable reading. */
@media (max-width: 560px) {
    .game-screen .stat-block > span,
    .game-screen .stat-block small,
    .game-screen .round-copy { font-size: 14px; letter-spacing: .45px; }
    .game-screen .round-stage,
    .game-screen .category-badge,
    .game-screen .skill-badge,
    .game-screen .recovery-chip,
    .game-screen .miss-meter span { font-size: 16px; letter-spacing: .45px; }
    .game-screen .question-meta { align-items: flex-start; flex-wrap: wrap; }
    .game-screen .challenge-tags { flex-wrap: wrap; }
    .game-screen .question-meta-right { width: 100%; margin: 5px 0 0; justify-content: space-between; }
    .game-screen .timer-readout span { font-size: 16px; }
    .game-screen .timer-readout strong { font-size: 32px; }
    .game-screen .skip-question-button { min-height: 48px; padding-inline: 16px; font-size: 16px; }
    .game-screen .question-number { font-size: 16px; }
    .game-screen .question-copy h2 { font-size: clamp(44px, 12vw, 54px); line-height: 1.08; letter-spacing: -1px; }
    .game-screen .challenge-instruction { font-size: 22px; line-height: 1.45; }
    .game-screen .answer-button { min-height: 92px; gap: 14px; padding: 16px 18px; }
    .game-screen .answer-key { flex-basis: 48px; height: 48px; font-size: 18px; }
    .game-screen .answer-text { font-size: 24px; line-height: 1.35; }
    .game-screen .challenge-surface p { font-size: 20px !important; line-height: 1.5 !important; }
    .game-screen .challenge-surface small { font-size: 14px !important; line-height: 1.4 !important; }
    .game-screen .challenge-surface button span { font-size: 16px !important; line-height: 1.4 !important; }
    .game-screen .challenge-surface input,
    .game-screen .challenge-surface label { font-size: 18px; }
    .game-screen .cause-mapper-card,
    .game-screen .cause-chain-step span,
    .game-screen .confidence-answer span,
    .game-screen .team-person b,
    .game-screen .team-person strong,
    .game-screen .team-pair-choice b,
    .game-screen .remix-choice > span,
    .game-screen .risk-action > span,
    .game-screen .opportunity-choice > span,
    .game-screen .forge-initial-choice > span,
    .game-screen .forge-revision-choice > span { font-size: 18px !important; line-height: 1.45; }
    .game-screen .question-footer { font-size: 18px; line-height: 1.35; letter-spacing: .25px; }
    .game-screen .result-card > p,
    .game-screen .answer-reveal p { font-size: 18px; line-height: 1.5; }
    .game-screen .answer-reveal span,
    .game-screen .result-stats span { font-size: 14px; }
    .game-screen .continue-button { font-size: 16px; }
}

/* Desktop and tablet game readability pass. Keep supporting text comfortably legible. */
@media (min-width: 561px) {
    .game-screen .round-stage,
    .game-screen .stat-block > span,
    .game-screen .stat-block small,
    .game-screen .round-copy { font-size: 12px; letter-spacing: .65px; }

    .game-screen .category-badge,
    .game-screen .skill-badge { padding: 9px 13px; font-size: 12px; letter-spacing: .7px; }
    .game-screen .recovery-chip { padding: 8px 11px; font-size: 11px; }
    .game-screen .miss-meter span,
    .game-screen .difficulty span { color: #aaa3ca; font-size: 11px; letter-spacing: .65px; }
    .game-screen .miss-meter i { width: 11px; height: 11px; }
    .game-screen .difficulty i { width: 18px; height: 5px; }

    .game-screen .timer-wrap { margin-top: 28px; padding-top: 17px; }
    .game-screen .timer-readout span { color: #aaa3ca; font-size: 12px; letter-spacing: .8px; }
    .game-screen .timer-readout strong { min-width: 76px; font-size: 32px; }
    .game-screen .skip-question-button { min-height: 48px; padding-inline: 19px; color: #ded8f2; font-size: 13px; }

    .game-screen .question-copy { margin-block: 28px 24px; }
    .game-screen .question-number { margin-bottom: 15px; color: #aaa3ca; font-size: 13px; letter-spacing: 1px; }
    .game-screen .question-copy h2 { font-size: clamp(36px, 2.85vw, 48px); line-height: 1.13; }
    .game-screen .challenge-instruction { margin-top: 11px; color: #d3cde3; font-size: 20px; }
    .game-screen .challenge-surface { padding: 18px; font-size: 14px; }

    .game-screen .eq-token span { font-size: 15px; }
    .game-screen .eq-target-number { font-size: 11px; }
    .game-screen .eq-match-target p { font-size: 16px; }
    .game-screen .eq-match-target b span { font-size: 14px; }
    .game-screen .eq-context-card { gap: 15px; padding: 15px 18px; }
    .game-screen .eq-context-card span { font-size: 12px; }
    .game-screen .eq-context-card p { font-size: 17px; }
    .game-screen .kindness-action span { font-size: 15px; }
    .game-screen .kindness-action small { font-size: 12px; }
    .game-screen .kindness-bin span { font-size: 15px; }
    .game-screen .kindness-bin small { font-size: 12px; }
    .game-screen .thought-person { min-height: 124px; padding: 16px; }
    .game-screen .thought-person > span { font-size: 15px; }
    .game-screen .thought-person b { min-height: 55px; padding: 10px 13px; }
    .game-screen .thought-person b small { font-size: 14px; }
    .game-screen .eq-lock-button { min-height: 54px; font-size: 15px; }

    .game-screen .word-clue span,
    .game-screen .puzzle-progress span,
    .game-screen .puzzle-progress small,
    .game-screen .trail-status span,
    .game-screen .trail-status small { font-size: 12px; }
    .game-screen .word-controls button,
    .game-screen .math-game button,
    .game-screen .target-lock,
    .game-screen .star-switch-status button { min-height: 48px; font-size: 14px; }
    .game-screen .stroop-button span,
    .game-screen .reaction-pad span { font-size: 14px; }

    .game-screen .question-footer { color: #a9a2c7; font-size: 12px; line-height: 1.4; letter-spacing: .45px; }
}

@media (min-width: 1200px) {
    .game-screen .arena-layout { grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; }
}

/* Live Strength Spotlight remains readable even when it moves below the game on phones. */
.game-screen .micro-label { color: #bbb4dc; font-size: 11px; letter-spacing: 1px; }
.game-screen .live-aura h3,
.game-screen .live-capability h3 { font-size: 20px; line-height: 1.2; }
.game-screen .live-aura-status { padding: 8px 11px; font-size: 11px; }
.game-screen .live-aura button { min-height: 54px; font-size: 14px; }
.game-screen .live-aura > p { color: #c4bddc; font-size: 13px; }
.game-screen .live-capability > header > strong { font-size: 34px; }
.game-screen .live-capability > header > strong::after { color: #9b93bd; font-size: 10px; }
.game-screen .capability-row span,
.game-screen .is-compact .capability-row span { color: #d0cae2; font-size: 12px; line-height: 1.35; }
.game-screen .capability-row b { font-size: 12px; }
.game-screen .capability-row b strong { font-size: 13px; }
.game-screen .capability-row b small { color: #aaa2cb; font-size: 10px; }
.game-screen .is-compact .capability-track { height: 6px; }
.game-screen .analytics-empty { color: #b8b1d2; font-size: 13px; }
