/* ============================================================
   Arcade — game hub and mini-game styles
   ============================================================ */

/* ── Hub ─────────────────────────────────────────────────── */

.arcade-hub {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

.arcade-hub-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.arcade-hub-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.3rem;
    letter-spacing: -0.5px;
}

.arcade-hub-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── Sport sections ──────────────────────────────────────── */

.arcade-sport-section {
    margin-bottom: 2.5rem;
}

.arcade-sport-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-default);
}

.arcade-sport-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.arcade-sport-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}

.arcade-sport-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
    background: var(--bg-interactive);
    border: 1px solid var(--border-default);
    border-radius: 20px;
    padding: 0.15rem 0.6rem;
}

.arcade-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* ── Game cards ──────────────────────────────────────────── */

.arcade-game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    position: relative;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    overflow: hidden;
}

/* Colored left accent per game */
.arcade-game-card--shuffle::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #6366f1, #818cf8);
    border-radius: 14px 0 0 14px;
}

.arcade-game-card--trade::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #f59e0b, #fbbf24);
    border-radius: 14px 0 0 14px;
}

.arcade-game-card:not(.arcade-game-card--soon):hover {
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.arcade-game-card--soon {
    opacity: 0.5;
}

.arcade-game-card--done {
    border-color: rgba(52, 211, 153, 0.22);
    opacity: 0.65;
    transition: opacity 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.arcade-game-card--done:hover {
    opacity: 0.88;
}

/* Badges */

.arcade-game-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    width: fit-content;
    text-transform: uppercase;
}

.arcade-badge--mlb {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.arcade-badge--nba {
    background: rgba(6, 182, 212, 0.13);
    color: #22d3ee;
}

.arcade-badge--soon {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
}

.arcade-completed-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 20px;
    padding: 0.15rem 0.55rem;
}

.arcade-game-icon {
    font-size: 2.4rem;
    line-height: 1;
    margin-top: 0.25rem;
}

.arcade-game-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.arcade-game-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
    margin: 0;
}

.arcade-game-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.73rem;
    color: var(--text-subtle);
}

.arcade-play-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(99,102,241,0.28), rgba(99,102,241,0.15));
    color: #a5b4fc;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    font-family: inherit;
    text-align: center;
}

.arcade-play-btn:not(:disabled):hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.45), rgba(99,102,241,0.28));
    color: #e0e7ff;
}

.arcade-play-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.arcade-play-btn--secondary {
    background: var(--bg-interactive);
    color: var(--text-muted);
    border-color: var(--border-default);
}
.arcade-play-btn--secondary:hover {
    background: var(--bg-interactive-hov);
    color: var(--text-secondary);
}

/* ── Shared game wrapper ─────────────────────────────────── */

.arcade-game-wrap {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.arcade-back-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.arcade-back-btn {
    background: none;
    border: 1px solid var(--border-default);
    border-radius: 7px;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.18s, color 0.18s;
    white-space: nowrap;
}

.arcade-back-btn:hover {
    border-color: #818cf8;
    color: #818cf8;
}

.arcade-game-title-inline {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.arcade-date-badge {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-left: auto;
}

.arcade-loading { padding: 2rem 0; }

.arcade-error {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.arcade-submit-btn {
    padding: 0.75rem 2.5rem;
    border-radius: 8px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(99,102,241,0.35), rgba(99,102,241,0.2));
    color: #a5b4fc;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s, color 0.18s;
}

.arcade-submit-btn:not(.arcade-submit-btn--disabled):hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.5), rgba(99,102,241,0.32));
    color: #e0e7ff;
}

.arcade-submit-btn--disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.arcade-back-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
    padding: 0.25rem 0.5rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Hub header redesign ─────────────────────────────────── */

.arcade-hub-header-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    justify-content: space-between;
}

.arcade-streak {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}
.arcade-streak-fire { line-height: 1; }
.arcade-streak-num  { color: var(--text-secondary); }

/* ── Daily progress row ─────────────────────────────────── */

.arcade-progress-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.9rem;
    flex-wrap: wrap;
}

.arc-pip {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-subtle);
    background: var(--bg-raised);
    border: 1px solid var(--border-default);
    border-radius: 20px;
    padding: 0.18rem 0.55rem 0.18rem 0.42rem;
    transition: color 0.15s, border-color 0.15s;
}
.arc-pip::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border-mid);
    flex-shrink: 0;
    transition: background 0.15s;
}
.arc-pip--done { color: #34d399; border-color: rgba(52,211,153,0.28); }
.arc-pip--done::before { background: #34d399; }

/* ── Game icon wrapper ───────────────────────────────────── */

.arcade-game-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 0.15rem;
}

/* Per-game accent colors — icon tint */
.arcade-game-card[data-game="otd"]       .arcade-game-icon-wrap { background: rgba(245,158,11,0.13);  color: #f59e0b; }
.arcade-game-card[data-game="statdle"]   .arcade-game-icon-wrap { background: rgba(99,102,241,0.13);  color: #818cf8; }
.arcade-game-card[data-game="shuffle"]   .arcade-game-icon-wrap { background: rgba(34,211,238,0.13);  color: #22d3ee; }
.arcade-game-card[data-game="blueprint"] .arcade-game-icon-wrap { background: rgba(16,185,129,0.13);  color: #10b981; }
.arcade-game-card[data-game="trade"]     .arcade-game-icon-wrap { background: rgba(249,115,22,0.13);  color: #f97316; }

/* Accent stripes — missing 3 (shuffle + trade already defined above) */
.arcade-game-card--otd::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #f59e0b, #fbbf24);
    border-radius: 14px 0 0 14px;
}
.arcade-game-card--statdle::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #6366f1, #818cf8);
    border-radius: 14px 0 0 14px;
}
.arcade-game-card--blueprint::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #10b981, #34d399);
    border-radius: 14px 0 0 14px;
}

/* ── Featured card (first unplayed) ─────────────────────── */

.arcade-game-card--featured {
    border-color: rgba(99,102,241,0.38);
    background: linear-gradient(160deg, var(--bg-card) 55%, rgba(99,102,241,0.05) 100%);
}
.arcade-game-card--featured .arcade-play-btn {
    background: linear-gradient(135deg, rgba(99,102,241,0.5), rgba(99,102,241,0.3));
    color: #e0e7ff;
}

/* ── Replay button (completed cards) ────────────────────── */

.arcade-play-btn--replay {
    background: none;
    border-color: var(--border-default);
    color: var(--text-subtle);
    font-weight: 500;
}
.arcade-play-btn--replay:not(:disabled):hover {
    background: none;
    border-color: var(--border-mid);
    color: var(--text-muted);
}

.arcade-back-link:hover { color: var(--text-secondary); }

/* ── Statline Shuffle ────────────────────────────────────── */

.shuffle-instructions {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.shuffle-layout {
    display: grid;
    grid-template-columns: 1fr 210px;
    gap: 1.1rem;
    align-items: start;
}

@media (max-width: 580px) {
    .shuffle-layout { grid-template-columns: 1fr; }
}

/* Slots */

.shuffle-slots {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.shuffle-slot {
    background: var(--bg-card);
    border: 2px solid var(--border-default);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.shuffle-slot:not(.shuffle-slot--correct):not(.shuffle-slot--wrong):hover {
    border-color: rgba(99, 102, 241, 0.35);
}

.shuffle-slot--filled {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.03);
}

.shuffle-slot--ready {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.shuffle-slot--correct {
    border-color: #34d399;
    background: rgba(52, 211, 153, 0.05);
    cursor: default;
}

.shuffle-slot--wrong {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.05);
    cursor: default;
}

.shuffle-slot-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.shuffle-slot-num {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: var(--bg-subtle);
    border: 1px solid var(--border-default);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shuffle-slot-type {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.2px;
    flex: 1;
}

.shuffle-statline {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.55rem;
    letter-spacing: -0.2px;
    font-variant-numeric: tabular-nums;
}

.shuffle-slot-answer {
    min-height: 1.7rem;
    display: flex;
    align-items: center;
}

.shuffle-assigned-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #a5b4fc;
}

.shuffle-slot-answer--empty .shuffle-placeholder {
    font-size: 0.78rem;
    color: #334155;
    font-weight: 400;
}

.shuffle-clear-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #475569;
    font-size: 1rem;
    cursor: pointer;
    padding: 0 0.2rem;
    line-height: 1;
    transition: color 0.15s;
}

.shuffle-clear-btn:hover { color: #f87171; }

.shuffle-reveal-row {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
}

.shuffle-reveal--correct {
    color: #34d399;
    background: rgba(52, 211, 153, 0.08);
}

.shuffle-reveal--wrong {
    color: #f87171;
    background: rgba(248, 113, 113, 0.07);
}

/* Name pool */

.shuffle-name-pool {
    background: var(--bg-subtle);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: sticky;
    top: 1rem;
}

.shuffle-pool-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.shuffle-name-btn {
    width: 100%;
    text-align: left;
    padding: 0.42rem 0.65rem;
    border-radius: 7px;
    border: 1px solid var(--border-default);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.13s, border-color 0.13s, color 0.13s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shuffle-name-btn:not(:disabled):hover {
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.06);
}

.shuffle-name-btn--selected {
    background: rgba(99, 102, 241, 0.22) !important;
    border-color: #818cf8 !important;
    color: #c7d2fe !important;
}

.shuffle-name-btn--used {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Shuffle actions / result */

.shuffle-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.shuffle-result {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.shuffle-result-score {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.shuffle-result-emoji {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.shuffle-result--perfect {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.shuffle-result--good {
    background: rgba(251, 191, 36, 0.08);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.shuffle-result--miss {
    background: rgba(248, 113, 113, 0.07);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.18);
}

.shuffle-share-btn {
    padding: 0.55rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: transparent;
    color: #a5b4fc;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}

.shuffle-share-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #c7d2fe;
}

/* ── Trade Tree Tracker ──────────────────────────────────── */

.trade-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.1rem;
}

.trade-year-badge {
    display: inline-block;
    padding: 0.18rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    margin-bottom: 0.75rem;
}

.trade-headline {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
    margin: 0 0 1.25rem;
}

/* Two-column diagram */

.trade-diagram {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.trade-team-col {
    flex: 1;
    background: var(--bg-subtle);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-height: 110px;
}

.trade-team-logo-wrap {
    height: 36px;
    display: flex;
    align-items: center;
    margin-bottom: 0.2rem;
}

.trade-team-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.trade-team-logo-fallback {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.trade-team-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.trade-team-received {
    font-size: 0.67rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.trade-mystery-slot {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.75rem;
    border-radius: 7px;
    background: rgba(99, 102, 241, 0.08);
    border: 2px dashed rgba(99, 102, 241, 0.4);
    width: fit-content;
}

.trade-mystery-mark {
    font-size: 1rem;
    font-weight: 800;
    color: #818cf8;
    letter-spacing: 3px;
}

.trade-mystery-slot--revealed {
    border-style: solid;
    padding: 0.38rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.trade-mystery-slot--correct {
    background: rgba(52, 211, 153, 0.1);
    border-color: #34d399;
    color: #34d399;
}

.trade-mystery-slot--wrong {
    background: rgba(248, 113, 113, 0.08);
    border-color: #f87171;
    color: #f87171;
}

.trade-also {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.trade-star-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Center arrow column */

.trade-diagram-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding-top: 2rem;
    flex-shrink: 0;
    color: #475569;
}

.trade-arrow-line {
    width: 1px;
    height: 18px;
    background: #334155;
}

.trade-arrow-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #475569;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .trade-diagram {
        flex-direction: column;
    }
    .trade-diagram-arrow {
        flex-direction: row;
        padding-top: 0;
    }
    .trade-arrow-line {
        width: 24px;
        height: 1px;
    }
}

.trade-question {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
    line-height: 1.45;
}

/* Options grid */

.trade-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}

@media (max-width: 400px) {
    .trade-options { grid-template-columns: 1fr; }
}

.trade-option-btn {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 9px;
    border: 1px solid var(--border-default);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.87rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background 0.13s, border-color 0.13s, color 0.13s;
    line-height: 1.3;
}

.trade-option-btn:not(:disabled):hover {
    border-color: rgba(245, 158, 11, 0.4);
    color: var(--text-primary);
    background: rgba(245, 158, 11, 0.05);
}

.trade-option-btn--selected {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: #f59e0b !important;
    color: #fbbf24 !important;
    font-weight: 600;
}

.trade-option-btn--correct {
    background: rgba(52, 211, 153, 0.1) !important;
    border-color: #34d399 !important;
    color: #34d399 !important;
    font-weight: 700;
}

.trade-option-btn--wrong {
    background: rgba(248, 113, 113, 0.07) !important;
    border-color: #f87171 !important;
    color: #f87171 !important;
}

.trade-option-btn--dim {
    opacity: 0.35;
}

.trade-option-btn:disabled { cursor: not-allowed; }

/* Actions area */

.trade-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.trade-pick-hint {
    font-size: 0.8rem;
    color: #334155;
    margin: 0;
    font-style: italic;
}

.trade-reveal-banner {
    width: 100%;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-sizing: border-box;
}

.trade-reveal--correct {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.trade-reveal--wrong {
    background: rgba(248, 113, 113, 0.07);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.18);
}

.trade-context {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
    text-align: center;
    max-width: 520px;
    padding: 0 0.5rem;
}

.trade-end-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

/* ── Ballpark Blueprint ──────────────────────────────────── */

/* Hub card accent */
.arcade-game-card--blueprint::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #10b981, #34d399);
    border-radius: 14px 0 0 14px;
}

/* Clue cards */

.bp-clues {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
}

.bp-clue {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-default);
    transition: border-color 0.15s, background 0.15s;
}

.bp-clue--revealed {
    background: var(--bg-card);
    border-color: rgba(52, 211, 153, 0.25);
}

.bp-clue--hidden {
    background: var(--bg-subtle);
    opacity: 0.45;
}

.bp-clue-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 1.6rem;
    text-align: center;
}

.bp-clue-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

.bp-clue-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.2px;
}

/* Action row with submit + reveal */

.bp-action-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
}

.bp-reveal-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(52, 211, 153, 0.3);
    background: transparent;
    color: #34d399;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bp-reveal-btn:hover {
    background: rgba(52, 211, 153, 0.08);
}

.bp-cost {
    font-size: 0.72rem;
    color: #f87171;
    font-weight: 700;
}

/* Score row after reveal */

.bp-score-row {
    font-size: 1.35rem;
    text-align: center;
    letter-spacing: 2px;
    margin: 0.3rem 0;
    color: #fbbf24;
}

/* Reveal logo */

.bp-reveal-logo {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin: 0.5rem auto;
}


/* ── Who Am I? hub card accent ───────────────────────────── */

.arcade-game-card--whoami::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #06b6d4, #22d3ee);
    border-radius: 14px 0 0 14px;
}

/* ── Who Am I? game ─────────────────────────────────────── */

.arcade-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 4rem 1rem;
    color: var(--text-muted);
    font-size: var(--text-base);
}

.arcade-loading-spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border-mid);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.wam-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wam-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.wam-back-btn {
    background: var(--bg-interactive);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-sans);
    padding: 0.4rem 0.875rem;
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast);
    flex-shrink: 0;
}
.wam-back-btn:hover { color: var(--text-secondary); border-color: var(--border-strong); }

.wam-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
}

.wam-title {
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.wam-score-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.wam-score-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.wam-stars { font-size: 1.1rem; letter-spacing: 1px; }
.wam-star { color: var(--text-subtle); }
.wam-star--lit { color: #fbbf24; }

.wam-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Clues list */
.wam-clues {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wam-clue {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.wam-clue--revealed {
    background: var(--bg-card);
    border-color: rgba(6,182,212,0.25);
    animation: fadeUp 0.22s var(--ease-out) both;
}

.wam-clue--hidden {
    background: var(--bg-subtle);
    opacity: 0.6;
    cursor: default;
}

.wam-clue-icon { font-size: 1.1rem; flex-shrink: 0; }

.wam-clue-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.wam-clue-label {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.wam-clue-value {
    font-size: var(--text-base);
    font-weight: 800;
    color: var(--text-primary);
}

.wam-clue-locked {
    font-size: var(--text-xs);
    color: var(--text-subtle);
    font-weight: 600;
}

/* Answer options */
.wam-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

.wam-option {
    padding: 0.875rem 0.75rem;
    background: var(--bg-interactive);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    line-height: 1.3;
}

.wam-option:not(:disabled):hover {
    background: var(--bg-interactive-hov);
    border-color: var(--border-mid);
    color: var(--text-primary);
}

.wam-option--selected {
    background: var(--accent-subtle) !important;
    border-color: var(--accent-border) !important;
    color: var(--accent-light) !important;
}

.wam-option--correct {
    background: rgba(34,211,160,0.12) !important;
    border-color: rgba(34,211,160,0.4) !important;
    color: var(--color-win) !important;
}

.wam-option--wrong {
    background: rgba(242,107,107,0.12) !important;
    border-color: rgba(242,107,107,0.35) !important;
    color: var(--color-loss) !important;
}

.wam-option:disabled { cursor: default; }

/* Action row */
.wam-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
}

.wam-reveal-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1px solid rgba(6,182,212,0.35);
    border-radius: var(--radius-sm);
    color: #22d3ee;
    font-size: var(--text-sm);
    font-weight: 700;
    font-family: var(--font-sans);
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.wam-reveal-btn:hover { background: rgba(6,182,212,0.07); border-color: rgba(6,182,212,0.55); }
.wam-cost { font-size: 0.72rem; color: #f87171; font-weight: 800; }

.wam-submit-btn {
    width: 100%;
    max-width: 280px;
    padding: 0.75rem 2rem;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: var(--text-base);
    font-weight: 800;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.wam-submit-btn:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); }
.wam-submit-btn--disabled,
.wam-submit-btn:disabled {
    background: var(--bg-interactive);
    color: var(--text-subtle);
    cursor: default;
    transform: none;
}

/* Result card */
.wam-result {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: scaleIn 0.28s var(--ease-spring) both;
}

.wam-result--correct {
    background: rgba(34,211,160,0.08);
    border-color: rgba(34,211,160,0.3);
}
.wam-result--wrong {
    background: rgba(242,107,107,0.07);
    border-color: rgba(242,107,107,0.25);
}

.wam-result-icon { font-size: 2rem; line-height: 1; }
.wam-result-headline { font-size: var(--text-xl); font-weight: 900; color: var(--text-primary); }
.wam-result-name { font-size: 1.05rem; font-weight: 800; color: var(--text-primary); }
.wam-result-meta { font-size: var(--text-sm); color: var(--text-muted); font-weight: 500; }
.wam-result-stars { font-size: 1.5rem; letter-spacing: 3px; margin: 0.4rem 0; }
.wam-result-actions {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ── Statdle ─────────────────────────────────────────────────── */

.arcade-game-card--statdle::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #f97316, #fb923c);
    border-radius: 14px 0 0 14px;
}

.statdle-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.statdle-sub {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Clue table */

.statdle-table {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    overflow: hidden;
}

.statdle-hdr,
.statdle-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr) 2rem;
    padding: 0.5rem 0.75rem;
    gap: 0.25rem;
    align-items: center;
    font-variant-numeric: tabular-nums;
}

.statdle-hdr {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-default);
    background: var(--bg-subtle);
}

.statdle-row {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-default);
}

.statdle-row:last-child { border-bottom: none; }

.statdle-row--locked {
    opacity: 0.28;
    color: var(--text-muted);
    filter: blur(3px);
    user-select: none;
}

.statdle-row--live {
    background: rgba(249, 115, 22, 0.05);
    border-color: rgba(249, 115, 22, 0.18);
}

.statdle-num {
    font-size: 0.68rem;
    color: var(--text-subtle);
    text-align: right;
    font-weight: 500;
}

/* Guess history */

.statdle-guesses {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.statdle-guess {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: 7px;
    border: 1px solid var(--border-default);
}

.statdle-guess--ok {
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.3);
    color: #34d399;
}

.statdle-guess--bad {
    background: rgba(248, 113, 113, 0.07);
    border-color: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.statdle-guess--skip {
    background: var(--bg-subtle);
    border-color: var(--border-default);
    color: var(--text-muted);
    font-style: italic;
}

/* Input section */

.statdle-input-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.statdle-prompt {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

.statdle-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.statdle-input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border-mid);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.15s;
    outline: none;
}

.statdle-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.12);
}

.statdle-guess-btn {
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(249,115,22,0.35), rgba(249,115,22,0.2));
    color: #fb923c;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.statdle-guess-btn:hover {
    background: linear-gradient(135deg, rgba(249,115,22,0.5), rgba(249,115,22,0.32));
    color: #fdba74;
}

.statdle-skip-btn {
    background: none;
    border: 1px solid var(--border-default);
    border-radius: 7px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-family: inherit;
    padding: 0.25rem 0.65rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.statdle-skip-btn:hover {
    border-color: #fb923c;
    color: #fb923c;
}

/* Result card */

.statdle-result {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-mid);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    background: var(--bg-card);
}

.statdle-result-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
}

.statdle-result-title--win  { color: #34d399; }
.statdle-result-title--loss { color: #f87171; }

.statdle-result-player {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.statdle-hs {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-mid);
    flex-shrink: 0;
}

.statdle-result-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: left;
}

.statdle-result-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: left;
}

.statdle-emoji-row {
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.statdle-share-btn {
    padding: 0.5rem 1.4rem;
    border-radius: 8px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    background: transparent;
    color: #fb923c;
    font-weight: 600;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.statdle-share-btn:hover {
    background: rgba(249, 115, 22, 0.08);
    color: #fdba74;
}

/* ── Daily Quest ─────────────────────────────────────────────── */

.quest-wrap { max-width: 720px; margin: 0 auto; padding: 1.25rem 0; display: flex; flex-direction: column; gap: 1rem; }

.quest-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    padding: 1.5rem;
}
.quest-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.quest-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.quest-streak {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f97316;
    background: #f9731618;
    border: 1px solid #f9731630;
    border-radius: 20px;
    padding: 0.15rem 0.6rem;
}
.quest-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0 0 0.5rem;
}
.quest-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0 0 1.1rem;
}
.quest-search-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.quest-feedback {
    margin-top: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}
.quest-feedback--win  { background: #14532d22; color: #4ade80; border: 1px solid #4ade8040; }
.quest-feedback--miss { background: #450a0a22; color: #f87171; border: 1px solid #f8717140; }

.quest-result {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
}
.quest-result--win  { background: #14532d22; color: #4ade80; border: 1px solid #4ade8040; }
.quest-result--miss { background: #450a0a22; color: #f87171; border: 1px solid #f8717140; }
.quest-result-icon  { font-size: 1.1rem; flex-shrink: 0; }

/* Qualifying players */
.quest-qualifiers-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    overflow: hidden;
}
.quest-qual-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-default);
}
.quest-qual-title { font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); }
.quest-qual-note  { font-size: 0.68rem; color: var(--text-muted); }

.quest-qual-list { display: flex; flex-direction: column; }
.quest-no-qual   { padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; font-style: italic; }

.quest-qual-row {
    display: grid;
    grid-template-columns: 1.5rem 32px 1fr auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.25rem;
    border-bottom: 1px solid var(--border-default);
    cursor: pointer;
    transition: background 0.12s;
}
.quest-qual-row:last-child { border-bottom: none; }
.quest-qual-row:hover { background: var(--bg-elevated); }
.quest-qual-rank  { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-align: center; }
.quest-qual-hs    { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.quest-qual-info  { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; }
.quest-qual-name  { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quest-qual-team  { font-size: 0.65rem; color: var(--text-muted); }
.quest-qual-val   { font-size: 0.88rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quest-qual-unit  { font-size: 0.62rem; font-weight: 600; color: var(--text-muted); margin-left: 0.15rem; }
