.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid var(--border);border-radius:6px;background:var(--raised);color:var(--text);flex-shrink:0;cursor:pointer}.theme-toggle:hover{border-color:var(--green);color:var(--green)}.theme-toggle svg{width:18px;height:18px}
:root[data-theme="light"]{color-scheme:light;--bg:#f1f5f3;--surface:#fff;--raised:#e7eeea;--border:#142e242b;--text:#152b21;--muted:#586d61;--green:#007c40;--red:#c9153e;--amber:#976500;--cyan:#007b98}
[data-theme="light"] .topbar{background:#fff}
[data-theme="light"] .auth-page{background:radial-gradient(ellipse at 75% 20%,#b9f0cc77,transparent 55%),var(--bg)}
[data-theme="light"] :is(.market-card,.market-card.settled,.coin-picker,.benchmark,.budget-input,.chart-plot,.auth-card input,.market-status-strip,.outcome,.history-filters button,.stake-presets button,dialog){background:var(--surface);color:var(--text);border-color:var(--border)}
[data-theme="light"] .market-card:hover{background:#eef7f1}
[data-theme="light"] .market-card.selected{background:#e6f7ed}
[data-theme="light"] :is(.ticket-market p,.duration-label,.workspace-label,.card-time,.card-bottom,.rules-strip,.rules-strip strong,.rules-strip button,.side-label>span,.ticket-rule p,.empty-state strong,.order-math>div,.ticket-market>div,.chart-toolbar button,dialog p,.snapshot strong,.positions-heading>.muted){color:var(--muted)}
[data-theme="light"] :is(.order-math strong,.price-clock strong,#selected-time){color:var(--text)}
[data-theme="light"] .chance-down{color:var(--red)}
[data-theme="light"] .coin-button{color:var(--muted)}
[data-theme="light"] .coin-button:hover{background:var(--raised);color:var(--text)}
[data-theme="light"] .coin-button[aria-pressed=true]{background:#e2f4e9;border-color:#007c4066;color:var(--green)}
[data-theme="light"] .green{color:var(--green);border-color:#007c4055;background:#007c400c}
[data-theme="light"] .amber{color:var(--amber);border-color:#97650055;background:#9765000c}
[data-theme="light"] .neutral{color:var(--muted);background:#152b2108;border-color:var(--border)}
[data-theme="light"] .red{color:var(--red);border-color:#c9153e55;background:#c9153e0c}
[data-theme="light"] .chart-grid path{stroke:#152b2115}
[data-theme="light"] #btc-line{stroke:var(--green)}
[data-theme="light"] .chart-price-tag{background:#ecf9f1;color:var(--green);border-color:#007c4066}
[data-theme="light"] .chart-price-scale{color:var(--muted)}
[data-theme="light"] .outcome.up[aria-pressed=true]{background:#e2f4e9;color:var(--green);border-color:var(--green)}
[data-theme="light"] .outcome.down[aria-pressed=true]{background:#fff0f3;color:var(--red);border-color:var(--red)}
[data-theme="light"] :is(.submit-prediction,.primary-link){background:#007c40;color:white}
[data-theme="light"] .submit-prediction.bear{background:var(--red)}
[data-theme="light"] .submit-prediction:disabled{background:#dbe4de;color:#596e61}
[data-theme="light"] :is(.auth-card p,.portfolio-heading p,.portfolio-footnote){color:var(--muted);border-color:var(--border)}
[data-theme="light"] :is(th){background:var(--raised);color:var(--muted)}
[data-theme="light"] .floating-coin{background:#fff;border-color:var(--border);box-shadow:0 10px 30px #152b2122}
[data-theme="light"] .playfield-thumbnail{box-shadow:0 24px 65px #152b2122,0 0 0 1px #007c4030}
[data-theme="light"] .history-filters button[aria-pressed=true]{background:#e2f4e9;color:var(--green);border-color:var(--green)}
[data-theme="light"] #notification{background:#e2f4e9;border-color:var(--green);color:var(--text)}
[data-theme="light"] footer{color:var(--muted)}
[data-theme="light"] footer>span:first-child{color:var(--text)}
[data-theme="light"] .positions-heading h2 span{background:var(--raised);color:var(--text)}
[data-theme="light"] .tier[data-duration="60"]{--tier-color:#b88400}
[data-theme="light"] .tier[data-duration="30"]{--tier-color:#00829c}
[data-theme="light"] .tier[data-duration="15"]{--tier-color:#7950bf}
[data-theme="light"] .tier[data-duration] .market-card{border-color:color-mix(in srgb,var(--tier-color) 60%,transparent)}
[data-theme="light"] .tier[data-duration] .market-card.selected{border-color:var(--green)}

[data-theme="light"] .market-card.settled{background:#b8bfbc;color:#26342d}[data-theme="light"] .market-card.settled:hover{background:#c1c8c4}

[data-theme="light"] .market-card.queued{background:#fff0b3;color:#51451c}[data-theme="light"] .market-card.queued:hover{background:#ffe89a}

[data-theme="light"] .market-card [data-remaining]{color:#805500}

.submit-prediction.pick-direction,
[data-theme="light"] .submit-prediction.pick-direction{background:#2563eb;color:#fff}

/* One white pulse guides the Pick Up or Down action to its direction choices. */
.outcome.direction-hint{position:relative;isolation:isolate}
.outcome.direction-hint::after{content:'';position:absolute;inset:0;border-radius:inherit;background:#fff;pointer-events:none;opacity:0;animation:direction-hint-flash 1s ease-out}
@keyframes direction-hint-flash{0%{opacity:0}25%{opacity:.8}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.outcome.direction-hint::after{animation:none;opacity:.18}.outcome.direction-hint{outline:2px solid #fff;outline-offset:3px}}
