/* ORIGINAL BASEMENT A — single presentation layer.
   Asphalt, cyan tubes, red neon and gunmetal. Structural/game rules remain unchanged.
   retro-theme remains a stable CSS hook, not an old visual mode. */
:root{color-scheme:dark;--retro-paper:#0a0c10;--retro-panel:#151d26;--retro-ink:#e7eef4;--retro-muted:#b6c4ce;--retro-line:#546572;--retro-coral:#ff0055;--retro-mint:#00ffff;--retro-deep:#101820;--bg:var(--retro-paper);--panel:var(--retro-panel);--text:var(--retro-ink);--muted:var(--retro-muted);--teal:#00ffff;--purple:#ff0055;--line:var(--retro-line);--coral:#ff0055}

body.retro-theme .header{background:transparent}
body.retro-theme .header .pro-gambler-logo img{mix-blend-mode:normal;filter:none;object-fit:contain}
body.retro-theme .header .world-setting{color:var(--retro-ink)}
body.retro-theme .header .wallet{background:var(--retro-panel);border-color:var(--retro-ink);color:var(--retro-ink);box-shadow:2px 2px 0 #00000066}
body.retro-theme .header .wallet>span{color:#e7eef4}
body.retro-theme .button.primary,body.retro-theme .button.accent{background:linear-gradient(#00e5e5,#00b9c2);border-color:#63ffff;color:#061419;box-shadow:inset 0 2px 0 #baffff88,0 4px 0 #064955,0 6px 8px #0008}
body.retro-theme .button.secondary{background:linear-gradient(#303d4b,#19222d);border-color:#71899d;color:#e7eef4;box-shadow:inset 0 2px 0 #a6c4d333,0 3px 0 #080c12}
body.retro-theme .button.quiet{background:#1b2530;border-color:#607586;color:#e7eef4;box-shadow:inset 0 1px 0 #91b3c433,0 2px 0 #070a0e}
body.retro-theme .button.danger{background:#3e1724;border-color:#ff5788;color:#ffd8e5}
body.retro-theme button:disabled{opacity:.55}
body.retro-theme :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #00ffff;outline-offset:3px}
body.retro-theme input,body.retro-theme select,body.retro-theme textarea{background-color:#151d26;color:var(--retro-ink);border-color:#546572;accent-color:#00ffff}
body.retro-theme input[type=range]{accent-color:#00ffff}
body.retro-theme .section-heading h2,body.retro-theme .eyebrow{color:#baffff;text-shadow:0 0 10px #00ffff35}
body.retro-theme .section-heading>span,body.retro-theme .fineprint,body.retro-theme .cosmetic-note{color:var(--retro-muted)}
body.retro-theme #homeView .arcade-card{background:linear-gradient(135deg,#29343d22,transparent 55%),repeating-linear-gradient(110deg,#8eaab205 0 1px,transparent 1px 5px),#121b23;border-color:#6a7e8b;border-radius:9px;box-shadow:inset 0 1px 0 #b4cad65c,inset 0 -3px 0 #020507,0 4px 8px #0009}
body.retro-theme #homeView .arcade-card h2{color:var(--retro-ink);text-shadow:0 0 8px #00ffff22}
body.retro-theme #homeView .arcade-card p{color:var(--retro-muted)}
body.retro-theme #homeView .arcade-card .button{background:linear-gradient(#2b2530,#121820);border-color:#ef4864;color:#fff1f4;border-radius:7px;box-shadow:inset 0 1px 0 #ffb5b844,inset 0 -2px 0 #090c12,0 0 7px #ff315433;text-shadow:0 0 6px #ff234955}
body.retro-theme .card-art{background:radial-gradient(ellipse,#30404b66,transparent 75%),#111a22;border-color:#354b59;border-radius:8px}
body.retro-theme .home-game-icon,body.retro-theme .poker-home-icon{filter:drop-shadow(1px 2px 0 #00000066)}
body.retro-theme .reward-card,body.retro-theme .settings-card,body.retro-theme .shop-card,body.retro-theme .record-card,body.retro-theme .game-stat-card{background:var(--retro-panel);border-color:var(--retro-line);color:var(--retro-ink);box-shadow:2px 3px 0 #00000066}
body.retro-theme .reward-card strong{color:#e7eef4}
body.retro-theme .reward-icon{background:#151d26;color:#e7eef4}
body.retro-theme .settings-card p,body.retro-theme .settings-card li,body.retro-theme .shop-card p,body.retro-theme .record-card p{color:var(--retro-muted)}
body.retro-theme .profile-card{background:linear-gradient(135deg,#151d26,#202b35);border-color:#546572;box-shadow:3px 4px 0 #00000066}
body.retro-theme .profile-card>p,body.retro-theme .stats span{color:var(--retro-muted)}
body.retro-theme #profileTitle{color:#e7eef4}
body.retro-theme .profile-tabs [aria-pressed=true],body.retro-theme .shop-categories [aria-pressed=true]{background:#151d26;color:#e7eef4;border-color:#546572}
body.retro-theme .achievement-card{background:#151d26;border-color:var(--retro-line);color:var(--retro-ink)}
body.retro-theme .achievement-card h3{color:#e7eef4}
body.retro-theme .achievement-card .achievement-status{color:#e7eef4}
body.retro-theme .achievement-card.is-unlocked{background:linear-gradient(135deg,#151d26,#202b35);border-color:#546572}
body.retro-theme .achievement-card.is-unlocked .achievement-status{color:#e7eef4}
body.retro-theme .achievement-card button{background:#151d26;border-color:#546572;color:#e7eef4}
body.retro-theme .progress-notes,body.retro-theme .profile-ledger,body.retro-theme .share-card-section,body.retro-theme .avatar-credits,body.retro-theme .cosmetic-preview{background:#151d26;border-color:#546572;color:var(--retro-ink)}
body.retro-theme .progress-notes p,body.retro-theme .game-stat-card details p,body.retro-theme .game-stat-card dt{color:var(--retro-muted)}
body.retro-theme .game-stat-card dd,body.retro-theme .game-stat-card h3{color:var(--retro-ink)}
body.retro-theme .share-card-section>summary,body.retro-theme .cosmetic-price{color:#e7eef4}
body.retro-theme .share-card-section select,body.retro-theme .collection-filters select,body.retro-theme .feedback-template textarea{background:#151d26;color:var(--retro-ink);border-color:#546572}
body.retro-theme #shareCardImage{background:#151d26}
body.retro-theme .collection-star[aria-pressed=true],body.retro-theme #collectionFavourites[aria-pressed=true]{background:#151d26;color:#e7eef4}
body.retro-theme .history li,body.retro-theme .shop-categories{border-color:#546572}
body.retro-theme .bottom-nav{background:#151d26f5;border-color:#546572;box-shadow:0 -3px 0 #00000066}
body.retro-theme .bottom-nav button{color:#e7eef4}
body.retro-theme .bottom-nav button[aria-current=page]{color:#00ffff;text-shadow:0 0 8px #00ffff44}
body.retro-theme footer{color:#e7eef4;border-color:#546572}
body.retro-theme .welcome-card{background:linear-gradient(135deg,#151d26,#202b35);border-color:#546572;color:var(--retro-ink)}
body.retro-theme .resume-banner{background:#151d26;border-color:#546572;color:#e7eef4}
body.retro-theme .toast{background:#151d26;color:#e7eef4;border:1px solid #72997c}
body.retro-theme .save-warning{background:#151d26;color:#e7eef4}
body.retro-theme .practice-intro{background:#151d26;border-color:#546572;color:#e7eef4}
body.retro-theme .practice-intro strong{color:#e7eef4}
body.retro-theme .practice-guide-section summary{color:#e7eef4}
body.retro-theme .practice-guide .practice-help{background:#151d26;color:#e7eef4}
body.retro-theme .practice-guide-section{border-color:#546572}

body.retro-theme .game-help,body.retro-theme dialog,body.retro-theme .poker-review-dialog,body.retro-theme .roulette-picker-dialog{background:#151d26;color:var(--retro-ink);border-color:#546572}
body.retro-theme dialog::backdrop{background:#151d26b3}
body.retro-theme .poker-review-dialog select,body.retro-theme .poker-review-action{background:#151d26;color:#e7eef4;border-color:#546572}
body.retro-theme .poker-review-dialog dt,body.retro-theme #pokerReviewPosition{color:#e7eef4}
body.retro-theme .poker-review-dialog .poker-card-empty{background:#151d26;border-color:#546572}

body.retro-theme .game-top h2,body.retro-theme[data-practice=true] #gameTitle{color:#e7eef4}
body.retro-theme[data-game-open=true] #gameView .casino-table{background:linear-gradient(145deg,#151d26,#202b35);border-color:#546572;color:#e7eef4}
body.retro-theme #gameView #betArea,body.retro-theme #gameView #pokerActions,body.retro-theme #gameView .session-controls{background:#151d26;border-color:#546572;color:#e7eef4}
body.retro-theme #gameView #gameMessage,body.retro-theme #gameView .game-notes,body.retro-theme #gameView #stakeInfo,body.retro-theme #gameView #gameCoinDetail{color:#e7eef4}
body.retro-theme #gameView #gameCoinSummary{background:#151d26;border-color:#546572;color:#e7eef4}
body.retro-theme #gameView #gameCoinSummary strong{color:#e7eef4}
body.retro-theme #gameView #roundResult{background:#151d26;border-color:#546572;color:#e7eef4;box-shadow:none}
body.retro-theme #gameView #roundResult[data-outcome=win]{background:linear-gradient(120deg,#151d26,#202b35);border-color:#546572;color:#e7eef4}
body.retro-theme #gameView #roundResult[data-outcome=loss]{background:#151d26;border-color:#546572;color:#e7eef4}
body.retro-theme #gameView #roundResult[data-outcome=draw]{background:#151d26;border-color:#546572;color:#e7eef4}
body.retro-theme #gameView:not([data-game=slot]) #roundResult[data-outcome=pending]{background:transparent;border-color:transparent;box-shadow:none}
body.retro-theme #gameView .dice-owner,body.retro-theme #gameView .dice-role{color:#e7eef4!important}
body.retro-theme #gameView .dice-bowl{background:radial-gradient(ellipse,#151d26 0%,#202b35 58%,#151d26 88%);border-color:#546572;box-shadow:inset 0 7px 9px #00000066,inset 0 -3px 0 #00000066,0 4px 0 #00000066}
body.retro-theme #gameView[data-game=blackjack] .bj-felt-table{background:radial-gradient(ellipse,#151d26,#202b35);border-color:#546572;box-shadow:inset 0 0 22px #00000066}
body.retro-theme #gameView[data-game=blackjack] .bj-hand-zone{background:#151d2655;border-color:#546572}
body.retro-theme #gameView[data-game=blackjack] .bj-hand-zone .hand-label{color:#e7eef4}
body.retro-theme #gameView[data-game=blackjack] .bj-result-brand{color:#e7eef4}
body.retro-theme #gameView[data-game=blackjack] #roundResult[data-outcome=win] .dice-result-net{color:#e7eef4}
body.retro-theme #gameView[data-game=slot] #leverPanel{background:#151d26;border-color:#546572}
body.retro-theme #gameView[data-game=slot] .v5-reels{background:#151d26;border-color:#546572;box-shadow:inset 0 0 0 2px #00000066}
body.retro-theme #gameView[data-game=slot] .lamp{background:#151d26;color:#e7eef4;border-color:#546572}
body.retro-theme #gameView[data-game=slot] .lamp.lit{background:#102c34;color:#00ffff;border-color:#9dffff;box-shadow:0 0 12px #00ffff55,inset 0 0 10px #00ffff22}
body.retro-theme .slot-meters>div,body.retro-theme .slot-stats>span{background:#151d26;border-color:#546572}
body.retro-theme .slot-meters strong,body.retro-theme .slot-stats b{color:#e7eef4}
body.retro-theme .slot-meters small,body.retro-theme .slot-meters span,body.retro-theme #slotBetHelp,body.retro-theme .v5-line-label{color:#e7eef4}
body.retro-theme .machine-lever{background:linear-gradient(90deg,#151d26,#202b35,#151d26);border-color:#546572;color:#e7eef4}
body.retro-theme .lever-knob{background:radial-gradient(circle at 32% 27%,#ff98b6,#c51c53 48%,#601b34 82%)}

body.retro-theme [data-game=poker] .poker-table{background:radial-gradient(ellipse,#151d26,#202b35);border-color:#546572;color:#e7eef4}
body.retro-theme [data-game=poker] .poker-seat.is-turn{outline-color:#546572;background:#151d26}
body.retro-theme [data-game=poker] .poker-seat-name span,body.retro-theme [data-game=poker] .poker-seat-role,body.retro-theme [data-game=poker] .poker-raise-row label{color:#e7eef4}
body.retro-theme [data-game=poker] .poker-result{color:#e7eef4}
body.retro-theme [data-game=poker] .poker-result.is-positive .poker-net{color:#e7eef4}
body.retro-theme [data-game=poker] .poker-contribution,body.retro-theme [data-game=poker] .poker-street-bet{background:#151d26;color:#e7eef4;border-color:#546572}
body.retro-theme [data-game=poker] .poker-action-badge{background:#151d26;color:#e7eef4;border-color:#546572}
body.retro-theme [data-game=poker] .poker-call,body.retro-theme #pokerSessionInfo,body.retro-theme #pokerRaiseHelp{color:#e7eef4}
body.retro-theme [data-game=roulette] .roulette-rim{fill:#263340;stroke:#8baab6}
body.retro-theme [data-game=roulette] .roulette-felt{fill:#152b30;stroke:#55848c}
body.retro-theme [data-game=roulette] .roulette-wheel-caption{fill:#d3faff}
body.retro-theme [data-game=roulette] .roulette-picker-hint,body.retro-theme [data-game=roulette] .roulette-inside-explainer{color:#e7eef4}
body.retro-theme [data-game=roulette] .roulette-placement-panel{background:#151d26;border-color:#546572;color:#e7eef4}
body.retro-theme [data-game=roulette] .roulette-chip-controls{background:#151d26;border-color:#546572;color:#e7eef4}
body.retro-theme [data-game=roulette] .roulette-result-detail{color:#e7eef4}


body.retro-theme .hl-table,body.retro-theme #plBoard,body.retro-theme #rcBoard,body.retro-theme #crBoard{background:radial-gradient(ellipse,#151d26,#202b35);border-color:#546572;color:#e7eef4}
body.retro-theme .hl-table-info,body.retro-theme .hl-card-pair small{color:#e7eef4}
body.retro-theme .hl-record span{background:#151d26;border-color:#546572;color:#e7eef4}
body.retro-theme .pl-pin{fill:#d3faff}
body.retro-theme .pl-ball{fill:#00ffff;stroke:#e4ffff}
body.retro-theme .pl-bucket{fill:#182b35;stroke:#598490}
body.retro-theme .pl-landed{fill:#6d1837;stroke:#ff75a3}
body.retro-theme .pl-bucket-text{fill:#d3faff}
body.retro-theme .cr-live-value{color:#e7eef4}
body.retro-theme .cr-live-value small{color:#e7eef4}
body.retro-theme .rc-picks [aria-pressed=true]{background:#151d26;color:#e7eef4;border-color:#546572}
body.retro-theme .challenge-opponents b{color:#e7eef4}
body.retro-theme .challenge-page #challengeResult,body.retro-theme.challenge-page #challengeResult{color:#e7eef4}
body.retro-theme.challenge-page .poker-result{color:#e7eef4}
body.retro-theme.challenge-page .poker-result.is-positive .poker-net{color:#e7eef4}
body.retro-theme .challenge-complete{color:#e7eef4}
@media(prefers-reduced-motion:reduce){body.retro-theme .button{transition:none}}

body.retro-theme #gameView[data-game=roulette] .roulette-placement-panel>.help-heading{background:#151d26;color:#e7eef4}
body.retro-theme #gameView[data-game=roulette] .roulette-placement-panel .roulette-chip-controls{background:#151d26;color:#e7eef4;border-color:#546572}
body.retro-theme #gameView[data-game=roulette] #rouletteDraftSummary,body.retro-theme #gameView[data-game=roulette] #rouletteCoveragePreview{color:#e7eef4}
body.retro-theme [data-game=roulette] .roulette-focus-range{background:#151d26;color:#e7eef4;border-color:#546572}
body.retro-theme [data-game=roulette] .roulette-mini-inside-bet{background:#151d26;color:#e7eef4;border-color:#546572}
body.retro-theme [data-game=roulette] .roulette-mini-inside-bet.placed-win{background:#123e46;color:#c5ffff;border-color:#00ffff;box-shadow:0 0 8px #00ffff44}
body.retro-theme #gameView[data-game=roulette] .roulette-bet-modes button[aria-pressed=true]{background:#151d26;color:#e7eef4;border-color:#546572}
body.retro-theme .shop-card h3,body.retro-theme .shop-card strong,body.retro-theme .stats strong{color:#e7eef4}
body.retro-theme .avatar-credits a{color:#e7eef4}
body.retro-theme .hl-card-back{background:repeating-linear-gradient(45deg,#151d26,#202b35 8px,#151d26 8px,#202b35 10px);border-color:#546572;color:#e7eef4}
body.retro-theme #rcBoard svg>text,body.retro-theme #crBoard svg text{fill:#d3faff}
body.retro-theme #crBoard svg>path:first-child{stroke:#90c9cf}

body.retro-theme .game-help .rules-card{background:#151d26;border-color:#546572;color:#e7eef4}
body.retro-theme .game-help .rules-card summary{color:#e7eef4}
body.retro-theme .game-help .rules-card p,body.retro-theme .game-help .rules-card li{color:#e7eef4}
body.retro-theme #gameView .game-help .game-notes,body.retro-theme .game-help .game-notes,body.retro-theme .game-help .roll-history{color:#e7eef4}
body.retro-theme .swatch{background:#151d26;color:#e7eef4}
body.retro-theme #gameView #fundingNotice.fineprint{color:#e7eef4}


.retro-theme #profileView > .section-heading > .pill{background:#151d26;color:#e7eef4;border-color:#546572;}
/* Original basement A environment. Shared clean artwork, no baked heading or interface. */
body.retro-theme,
body.retro-theme.hl-page,body.retro-theme.pl-page,body.retro-theme.rc-page,
body.retro-theme.cr-page,body.retro-theme.challenge-page{
 background-color:#0a0c10;
 background-image:linear-gradient(rgba(10,12,16,.85),rgba(10,12,16,.85)),url("assets/original-basement-a.webp");
 background-size:100% 100%,max(100vw,178vh) auto;
 background-size:100% 100%,max(100vw,178svh) auto;
 background-position:center top,60% top;
 background-repeat:no-repeat;
 background-attachment:scroll;
 color:#e7eef4;
}
body.retro-theme .header{
 background-color:#101820;
 background-image:linear-gradient(180deg,#0a0c1033,#0a0c10df),url("assets/original-basement-a.webp");
 background-size:cover;
 background-position:60% 48%;
 border-bottom-color:#375462;
 box-shadow:inset 0 -1px 0 #00ffff33;
}
body.retro-theme .header .brand{background:transparent;border-radius:0;box-shadow:none}
body.retro-theme .header .world-setting{color:#effaff;text-shadow:0 2px 3px #000,0 0 8px #000;background:transparent;box-shadow:none}
body.retro-theme .header .wallet{background:#101820ee;border-color:#6e949f;box-shadow:inset 0 1px 0 #a1c7d533,0 3px 0 #020507}
body.retro-theme .header .wallet>span{color:#00ffff}
body.retro-theme #homeView>.section-heading,body.retro-theme #profileView,body.retro-theme #settingsView,body.retro-theme footer{background:#101820ed;color:#e7eef4;box-shadow:0 2px 12px #0008;border-radius:10px}
body.retro-theme #gameView,body.retro-theme.hl-page main,body.retro-theme.pl-page main,body.retro-theme.rc-page main,body.retro-theme.cr-page main,body.retro-theme.challenge-page main{background:#101820f5;box-shadow:0 0 24px #0008}
/* Opaque fallback first; blur only a few surfaces, never a full-screen filter. */
body.retro-theme dialog,body.retro-theme .game-help,body.retro-theme .poker-review-dialog,body.retro-theme .roulette-picker-dialog{background:#151d26;border-color:#607c8c;color:#e7eef4;box-shadow:0 12px 40px #000b,inset 0 1px 0 #b4d4df22}
@supports(backdrop-filter:blur(6px)){
 body.retro-theme dialog,body.retro-theme .game-help{background:rgba(15,22,30,.94);backdrop-filter:blur(6px)}
 body.retro-theme .header .wallet{background:rgba(15,22,30,.92);backdrop-filter:blur(4px)}
}
body.retro-theme .profile-photo-editor,body.retro-theme .photo-editor{background:#151d26;color:#e7eef4}
body.retro-theme #photoCropCanvas{outline-color:#00ffff}
body.retro-theme .button:active:not(:disabled){box-shadow:inset 0 2px 5px #0009,0 1px 0 #04080d}
@media(hover:hover){body.retro-theme .button:hover:not(:disabled){filter:brightness(1.12);outline-color:#00ffff}}
body.retro-theme .button:focus-visible{outline-color:#00ffff;box-shadow:0 0 10px #00ffff55}
body.retro-theme h2{ text-shadow:0 0 10px #00ffff22 }
body.retro-theme .profile-tabs [aria-pressed=true],body.retro-theme .shop-categories [aria-pressed=true],body.retro-theme .rc-picks [aria-pressed=true]{background:#12343d;color:#baffff;border-color:#00ffff}
body.retro-theme #gameView #roundResult[data-outcome=win]{background:linear-gradient(120deg,#12343d,#14232d);border-color:#72e8e6;color:#e4ffff}
body.retro-theme #gameView #roundResult[data-outcome=loss]{background:#301c29;border-color:#ed6a96;color:#ffe0eb}
body.retro-theme #gameView #roundResult[data-outcome=draw]{background:#242c38;border-color:#9eafc1;color:#e7eef4}
body.retro-theme .slot-meters strong,body.retro-theme .slot-stats b,body.retro-theme .cr-live-value{color:#00ffff}
body.retro-theme #gameView[data-game=blackjack] .bj-result-brand,body.retro-theme .challenge-opponents b,body.retro-theme #profileTitle{color:#9cffff}
body.retro-theme [data-game=poker] .poker-contribution,body.retro-theme [data-game=poker] .poker-street-bet{background:#12343d;color:#baffff;border-color:#72e8e6}
body.retro-theme [data-game=poker] .poker-seat.is-turn{outline-color:#00ffff;background:#13313a}
body.retro-theme #gameView[data-game=roulette] .roulette-bet-modes button[aria-pressed=true]{background:#12343d;color:#baffff;border-color:#00ffff}
@media(max-width:600px){body.retro-theme dialog,body.retro-theme .game-help,body.retro-theme .header .wallet{backdrop-filter:none;background-color:#151d26}}
@media(prefers-reduced-motion:reduce){body.retro-theme .button{transition:none;filter:none}}

/* Small functional accents: retained result hierarchy, no new animation. */
body.retro-theme #gameView #gameCoinLabel,body.retro-theme .hl-arrow{color:#9cffff}
body.retro-theme #gameView[data-game=blackjack] #roundResult[data-outcome=win]::before{background:linear-gradient(115deg,transparent 35%,#9dffff28 49%,transparent 63%)}
body.retro-theme [data-game=poker] .poker-chip-stack{color:#9cffff;border-color:#c5ffff;box-shadow:0 2px 0 #28505d}
body.retro-theme .hl-header h1,body.retro-theme .pl-header h1,body.retro-theme .rc-header h1,body.retro-theme .cr-header h1{color:#e7faff;text-shadow:0 0 8px #00ffff33}

/* The basement lamp is warm amber; the interface stays dark, not cream/gold. */
body.retro-theme .header .wallet>span{color:#f3ba80}
body.retro-theme #homeView .arcade-card .button:focus-visible{outline-color:#a4ffff;box-shadow:0 0 9px #ff315477}
body.retro-theme #homeView .arcade-card .button:active:not(:disabled){background:#171820;box-shadow:inset 0 2px 5px #000b,0 0 5px #ff315455}
/* Only visible while another normal tab owns the cooperative wallet lease. */
body.retro-theme[data-wallet-pending=true]>main,body.retro-theme[data-wallet-pending=true]>.bottom-nav{visibility:hidden}
body.retro-theme .wallet-lock-notice{background:#151d26;color:#e7eef4;border:1px solid #6b8996}
