
:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #151c24;
  --panel-2: #1a232d;
  --line: #25303a;
  --ink: #f2f4f6;
  --muted: #9aa7b2;
  --faint: #677580;
  --acid: #e9a23b;
  --green: #20c77a;
  --red: #f05a67;
  --felt: #123a2b;
  --brass: #826334;
  --mono: "DM Mono", "Cascadia Code", Consolas, monospace;
  --sans: "Inter", "Segoe UI Variable", "Segoe UI", sans-serif;
  --serif: var(--sans);
  --radius: 8px;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: clip; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
[hidden] { display: none !important; }
.app-frame { min-height: 100vh; }
.topbar { height: 60px; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--bg); }
.wordmark { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.brand-glyph, .avatar-mark { display: grid; place-items: center; width: 24px; height: 24px; color: var(--acid); background: transparent; border-radius: 0; font: 600 19px/1 var(--sans); letter-spacing: 0; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.simulation-label, .scene-meta, .scene-foot, .scene-balance > span:first-child, .scene-status, .welcome-bottom, .eyebrow, .nav-caption, .sidebar-account strong, .fake-stamp, .main-topline, .game-footer, .table-head, .asset-symbol, .asset-price small, .section-kicker, .stat-label, .panel-label, .news-time, .game-kicker, .bet-label, .bankrupt-index { font: 10px/1.5 var(--mono); letter-spacing: 0; }
.simulation-label { color: var(--muted); display: flex; gap: 9px; align-items: center; }
.simulation-label span, .scene-status i, .market-clock i { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); display: inline-block; }
.top-metric { display: grid; gap: 1px; }
.top-metric small { color: var(--muted); font: 10px var(--sans); }
.top-balance, #topNetWorth { color: var(--ink); font: 12px var(--mono); font-variant-numeric: tabular-nums; }
.avatar-button { min-width: 48px; min-height: 30px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--acid); font: 10px var(--mono); }
.welcome-screen { min-height: calc(100vh - 70px); padding: 9vh 8vw 28px; display: grid; grid-template-columns: minmax(360px, .85fr) minmax(420px, 1.15fr); align-content: center; align-items: center; gap: 7vw; position: relative; }
.welcome-copy { padding-bottom: 3vh; }
.eyebrow { color: var(--muted); display: flex; align-items: center; gap: 10px; margin: 0 0 27px; }
.eyebrow-mark { width: 15px; height: 1px; background: var(--acid); }
.welcome-copy h1 { margin: 0; font-size: clamp(47px, 6vw, 84px); line-height: 1.05; font-weight: 600; letter-spacing: 0; }
.welcome-copy h1 span { color: #82857d; }
.welcome-deck { color: #b2b4ac; font-size: 15px; line-height: 1.8; max-width: 400px; margin: 27px 0 29px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 48px; padding: 0 19px; border: 0; border-radius: 3px; font: 11px var(--mono); letter-spacing: 0; }
.button-primary { color: #171a12; background: var(--acid); font-weight: 500; }
.button-primary:hover { background: #e2ff7b; transform: translateY(-1px); }
.button-start { min-width: 223px; }
.button span { font: 18px var(--sans); }
.welcome-disclaimer { color: var(--faint); font-size: 11px; margin: 15px 0 0; }
.welcome-scene { align-self: center; height: 410px; position: relative; padding: 18px 22px; border: 1px solid #ffffff16; background: radial-gradient(ellipse at 80% 20%, #292d211f, transparent 60%), #151713; overflow: hidden; }
.scene-meta, .scene-foot { color: #777b71; display: flex; justify-content: space-between; }
.scene-balance { position: absolute; z-index: 1; top: 81px; left: 36px; display: grid; gap: 3px; }
.scene-balance > span:first-child { color: var(--muted); }
.scene-balance strong { font: 38px var(--mono); letter-spacing: 0; }
.scene-status { color: #92958c; font-size: 9px; display: flex; align-items: center; gap: 7px; margin-top: 6px; }
.scene-status i { width: 5px; height: 5px; }
.scene-chart { position: absolute; inset: 105px 0 40px; width: 100%; height: 255px; overflow: visible; }
.scene-foot { position: absolute; left: 22px; right: 22px; bottom: 17px; }
.scene-foot span:last-child { color: var(--acid); }
.scene-caption { position: absolute; z-index: 1; right: 26px; top: 176px; color: #d4d5ce; font-size: 12px; line-height: 1.7; text-align: right; }
.scene-caption b { color: var(--acid); font-weight: 600; }
.welcome-bottom { position: absolute; bottom: 25px; left: 8vw; right: 8vw; display: flex; justify-content: space-between; color: #6f726a; }
.game-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 60px); max-width: 1600px; margin: auto; }
.sidebar { border-right: 1px solid var(--line); padding: 16px 14px; position: relative; display: flex; flex-direction: column; }
.sidebar-account { display: flex; gap: 9px; align-items: center; padding: 0 0 15px; border-bottom: 1px solid var(--line); }
.avatar-mark { flex: none; }
.sidebar-account strong { display: block; font-size: 9px; color: var(--ink); }
.sidebar-account small { color: var(--muted); font: 9px var(--mono); }
.nav-caption { color: #6d7168; margin: 26px 0 10px 10px; font-size: 9px; }
.side-nav { display: grid; gap: 3px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; min-height: 39px; width: 100%; text-align: left; padding: 0 10px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #afb1a9; font-size: 12px; }
.nav-item:hover { background: #ffffff08; color: var(--ink); }
.nav-item.is-active { border-color: #ffffff10; background: #ffffff0a; color: var(--ink); }
.nav-item.is-active::before { content: ""; position: absolute; width: 2px; top: 8px; bottom: 8px; left: -1px; background: var(--acid); }
.nav-icon { width: 16px; text-align: center; color: #96998f; font-size: 16px; }
.nav-item.is-active .nav-icon { color: var(--acid); }
.nav-count { margin-left: auto; color: #777a72; font: 10px var(--mono); }
.nav-live { margin-left: auto; color: var(--red); font: 9px var(--mono); }
.nav-caption-bottom { margin-top: 31px; }
.sidebar-foot { margin-top: auto; padding-top: 28px; }
.fake-stamp { display: inline-block; padding: 5px 7px; border: 1px solid #d5f36a44; color: var(--acid); font-size: 8px; }
.sidebar-foot p { color: #6f726a; font-size: 10px; line-height: 1.7; }
.main-column { min-width: 0; padding: 0 5.5vw 0 4vw; display: flex; flex-direction: column; }
.main-topline { min-height: 55px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ffffff12; color: #73766d; font-size: 9px; }
.breadcrumbs { display: flex; gap: 10px; align-items: center; }
.breadcrumbs b { font-weight: 400; color: var(--ink); }
.market-clock { display: flex; align-items: center; gap: 8px; color: #8e9188; }
.market-clock i { width: 5px; height: 5px; }
.market-clock .clock-divider { width: 1px; height: 10px; background: var(--line); margin: 0 3px; }
#pageContent { flex: 1; min-height: 0; padding: 31px 0 38px; animation: page-in .25s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.game-footer { min-height: 42px; margin-top: auto; border-top: 1px solid #ffffff12; display: flex; align-items: center; justify-content: space-between; color: #686b63; font-size: 8px; }
.game-footer b { color: var(--acid); font-weight: 400; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin: 0 0 22px; }
.section-kicker { color: #83867d; font-size: 9px; margin: 0 0 5px; }
.page-heading h1 { margin: 0; font-size: 27px; font-weight: 600; letter-spacing: 0; line-height: 1.25; }
.page-heading h1 span { color: #81847b; font-weight: 400; }
.heading-note { color: var(--muted); font-size: 11px; margin: 7px 0 0; }
.quiet-link { background: none; border: 0; color: #aeb1a7; font: 10px var(--mono); padding: 7px 0; }
.quiet-link:hover { color: var(--acid); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(235px, .85fr); gap: 13px; }
.panel { border: 1px solid #ffffff12; background: #171915; border-radius: var(--radius); }
.portfolio-panel { min-height: 285px; padding: 20px 22px 13px; position: relative; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.panel-label { display: block; color: #898c82; font-size: 9px; }
.portfolio-value { display: block; margin-top: 3px; font: 34px/1.3 var(--mono); letter-spacing: 0; }
.day-change { font: 11px var(--mono); margin-top: 8px; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.neutral { color: #afb1a9 !important; }
.chart-range { border: 1px solid #ffffff12; border-radius: 3px; padding: 4px 8px; color: #85887f; font: 9px var(--mono); }
.portfolio-chart { height: 137px; width: 100%; display: block; margin-top: 9px; overflow: visible; }
.chart-grid { stroke: #ffffff0e; stroke-dasharray: 3 6; }
.chart-fill { fill: url(#chart-area); }
.chart-line { fill: none; stroke: var(--acid); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-dot { fill: var(--acid); }
.chart-ticks { display: flex; justify-content: space-between; color: #70736a; font: 8px var(--mono); margin-top: -4px; }
.metrics-stack { display: grid; gap: 13px; }
.metric-card { padding: 17px 18px; min-height: 87px; }
.metric-top { display: flex; justify-content: space-between; align-items: center; }
.stat-label { color: #85887f; font-size: 9px; }
.metric-value { font: 22px var(--mono); letter-spacing: 0; margin-top: 7px; }
.metric-foot { display: flex; justify-content: space-between; margin-top: 6px; color: #73766d; font-size: 9px; }
.metric-mark { color: var(--acid); font: 12px var(--mono); }
.broke-card { background: #1b1e16; border-color: #d5f36a30; }
.broke-card .metric-value { background: transparent; color: var(--acid); }
.progress-track { height: 3px; margin-top: 10px; background: #ffffff16; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--acid); transition: width .5s ease; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .9fr); gap: 13px; margin-top: 13px; }
.activity-panel, .shortcut-panel { min-height: 200px; padding: 17px 18px; }
.subhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.subhead h2 { font-size: 12px; font-weight: 600; margin: 0; }
.subhead span { color: #777a71; font: 9px var(--mono); }
.transaction-list { display: grid; }
.transaction-row { display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #ffffff0c; }
.transaction-mark { width: 27px; height: 27px; display: grid; place-items: center; color: var(--acid); border: 1px solid #ffffff14; border-radius: 3px; font: 11px var(--mono); }
.transaction-row strong { display: block; font-size: 10px; font-weight: 600; }
.transaction-row small { display: block; color: #777a71; font-size: 9px; }
.transaction-amount { font: 10px var(--mono); }
.empty-activity { color: #777a71; font-size: 11px; padding: 23px 0; }
.shortcut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.shortcut { min-height: 105px; padding: 13px; border: 1px solid #ffffff12; border-radius: 3px; background: #1e201c; text-align: left; display: flex; flex-direction: column; justify-content: space-between; }
.shortcut:hover { border-color: #d5f36a55; background: #22251d; }
.shortcut-icon { color: var(--acid); font: 17px var(--mono); }
.shortcut strong { display: block; font-size: 11px; font-weight: 600; }
.shortcut small { color: #85887f; display: block; font-size: 9px; }
.event-strip { margin: 0 0 14px; border: 1px solid #ffffff12; background: #171915; padding: 10px 14px; display: flex; align-items: center; gap: 13px; border-radius: 3px; }
.milestone-band { min-height: 54px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .65fr); align-items: center; gap: 18px; margin: 0 0 13px; padding: 9px 12px; border-left: 2px solid var(--acid); background: #171815; }
.milestone-band .section-kicker { margin: 0 0 2px; font-size: 8px; }
.milestone-band strong { font-size: 10px; font-weight: 600; }
.milestone-meter { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; color: #a4a69d; font: 8px var(--mono); }
.milestone-meter i { height: 3px; background: #ffffff18; }
.milestone-meter b { display: block; height: 100%; background: var(--acid); }
.event-label { flex: none; font: 9px var(--mono); color: var(--acid); }
.event-copy { min-width: 0; flex: 1; font-size: 10px; color: #b1b3aa; }
.event-copy strong { color: var(--ink); font-weight: 600; }
.event-move { flex: none; font: 10px var(--mono); }
.market-summary { display: flex; align-items: center; gap: 15px; color: #85887f; font: 9px var(--mono); }
.market-summary strong { color: var(--ink); font-weight: 400; }
.market-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(275px, .8fr); gap: 13px; align-items: start; }
.market-panel { overflow: hidden; }
.table-head, .asset-row { display: grid; grid-template-columns: minmax(130px, 1.35fr) minmax(90px, .8fr) minmax(82px, .65fr) 92px; align-items: center; gap: 9px; padding: 0 15px; }
.table-head { min-height: 36px; color: #777a71; font-size: 8px; background: #ffffff04; border-bottom: 1px solid #ffffff10; }
.asset-row { min-height: 62px; border-bottom: 1px solid #ffffff0c; cursor: pointer; }
.asset-row:hover, .asset-row.is-selected { background: #ffffff07; }
.asset-row:last-child { border-bottom: 0; }
.asset-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.asset-logo { width: 27px; height: 27px; flex: none; display: grid; place-items: center; border: 1px solid #ffffff1b; border-radius: 3px; color: var(--acid); font: 10px var(--mono); }
.asset-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; }
.asset-symbol { display: block; color: #777a71; font-size: 8px; }
.asset-price { font: 10px var(--mono); }
.asset-price small { display: block; font-size: 8px; color: #777a71; }
.asset-change { font: 9px var(--mono); }
.sparkline { width: 77px; height: 27px; }
.sparkline path { fill: none; stroke: var(--green); stroke-width: 1.4; }
.sparkline.down path { stroke: var(--red); }
.trade-panel { padding: 17px; position: sticky; top: 15px; }
.trade-heading { display: flex; gap: 10px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid #ffffff12; }
.trade-heading .asset-logo { width: 34px; height: 34px; }
.trade-heading strong { display: block; font-size: 12px; }
.trade-heading small { color: #85887f; font: 9px var(--mono); }
.trade-current { margin-left: auto; text-align: right; font: 11px var(--mono); }
.trade-current small { display: block; margin-top: 2px; }
.trade-chart { display: block; width: 100%; height: 75px; margin: 13px 0; }
.trade-description { color: #9a9d94; font-size: 10px; line-height: 1.7; min-height: 50px; }
.holding-note { color: var(--acid); font: 9px var(--mono); padding: 9px 0 12px; }
.trade-toggle { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #ffffff12; margin-bottom: 13px; }
.trade-toggle button, .game-toggle button { padding: 9px; background: none; border: 0; border-bottom: 1px solid transparent; color: #777a71; font: 9px var(--mono); }
.trade-toggle button.is-active { color: var(--acid); border-color: var(--acid); }
.field-label { display: flex; justify-content: space-between; color: #93968d; font: 9px var(--mono); margin: 0 0 7px; }
.trade-input-wrap { height: 40px; display: flex; align-items: center; border: 1px solid #ffffff17; border-radius: 3px; background: #111310; padding: 0 10px; }
.trade-input-wrap span { color: #85887f; font: 11px var(--mono); }
.trade-input-wrap input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; text-align: right; font: 11px var(--mono); }
.quick-amounts { display: flex; gap: 7px; margin: 8px 0 13px; }
.quick-amounts button { padding: 4px 6px; border: 1px solid #ffffff14; border-radius: 2px; background: none; color: #85887f; font: 8px var(--mono); }
.quick-amounts button:hover { color: var(--acid); border-color: #d5f36a55; }
.trade-submit { width: 100%; min-height: 39px; justify-content: center; gap: 7px; }
.trade-feedback { min-height: 16px; margin: 8px 0 0; color: var(--red); font-size: 9px; }
.crypto-divider { padding: 10px 15px 7px; color: #85887f; font: 9px var(--mono); border-bottom: 1px solid #ffffff0c; }
.game-tabs { display: flex; gap: 5px; margin-bottom: 17px; border-bottom: 1px solid #ffffff14; }
.game-tabs button { padding: 10px 14px; border: 0; border-bottom: 1px solid transparent; color: #85887f; background: none; font-size: 11px; }
.game-tabs button.is-active { border-color: var(--acid); color: var(--ink); }
.casino-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: 13px; align-items: start; }
.game-table { min-height: 363px; overflow: hidden; position: relative; padding: 20px; background: #191b17; }
.roulette-scene { min-height: 322px; display: grid; grid-template-columns: minmax(190px, .9fr) minmax(200px, 1.1fr); align-items: center; gap: 16px; overflow: hidden; border: 1px solid #ffffff10; border-radius: 4px; padding: 18px; background: radial-gradient(ellipse at 30% 55%, #687a342c, transparent 60%), #141612; }
.wheel-wrap { position: relative; width: min(100%, 242px); aspect-ratio: 1; margin: auto; display: grid; place-items: center; }
.roulette-wheel { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 7px solid #292c25; outline: 1px solid #666b58; background: conic-gradient(from -4.865deg, #63784a 0deg 9.73deg, transparent 9.73deg), repeating-conic-gradient(from -5deg, #8e2925 0deg 9.73deg, #22241f 9.73deg 19.46deg); box-shadow: 0 8px 27px #0009, inset 0 0 0 5px #12130f; transition: transform 1.4s cubic-bezier(.11,.68,.19,1); display: grid; place-items: center; }
.roulette-wheel::before { content: ""; width: 36%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #d5f36a66; background: radial-gradient(circle, #282b23 0 52%, #b0c855 54% 59%, #1a1b16 61%); }
.roulette-pin { position: absolute; z-index: 1; top: -4px; left: 50%; transform: translateX(-50%); color: var(--acid); font-size: 18px; }
.roulette-result { position: absolute; display: grid; place-content: center; text-align: center; pointer-events: none; }
.roulette-result strong { font: 22px var(--mono); }
.roulette-result span { font: 8px var(--mono); color: #9a9d94; }
.roulette-controls { min-width: 0; }
.game-kicker { color: #8b8e85; font-size: 9px; }
.roulette-controls h2, .blackjack-heading h2 { margin: 4px 0 4px; font-size: 19px; font-weight: 600; }
.game-description { color: #8d9087; font-size: 10px; margin: 0 0 17px; }
.bet-label { display: flex; justify-content: space-between; color: #a0a298; font-size: 9px; margin: 12px 0 7px; }
.bet-options { display: flex; gap: 6px; margin: 7px 0 12px; }
.bet-options button { border: 1px solid #ffffff16; background: #1b1d19; color: #999c93; padding: 5px 8px; border-radius: 2px; font: 9px var(--mono); }
.bet-options button:hover { color: var(--acid); border-color: #d5f36a66; }
.bet-options button.selected { color: var(--acid); border-color: var(--acid); }
.bet-input { width: 100%; height: 38px; border: 1px solid #ffffff17; border-radius: 3px; background: #111310; padding: 0 10px; font: 11px var(--mono); }
.bet-colors { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; margin: 0 0 13px; }
.bet-colors button { height: 30px; border: 1px solid #ffffff16; border-radius: 2px; background: #20221e; font: 9px var(--mono); color: #9b9e95; }
.bet-colors button[data-bet="red"] { border-color: #8f4742; }
.bet-colors button[data-bet="black"] { border-color: #51534d; }
.bet-colors button[data-bet="green"] { border-color: #526c3e; }
.bet-colors button.selected { outline: 1px solid var(--acid); color: var(--ink); }
.game-feedback { min-height: 31px; color: #a6a99f; font-size: 10px; margin: 8px 0 0; }
.game-feedback strong { color: var(--acid); font-weight: 600; }
.casino-side { display: grid; gap: 13px; }
.house-rules { padding: 16px 17px; }
.rule-row { padding: 8px 0; display: flex; justify-content: space-between; border-bottom: 1px solid #ffffff0c; color: #93968d; font-size: 9px; }
.rule-row:last-child { border-bottom: 0; }
.rule-row strong { font: 9px var(--mono); color: #c8cac2; }
.casino-account { padding: 16px 17px; }
.casino-account strong { display: block; margin: 6px 0 0; font: 19px var(--mono); }
.blackjack-table { min-height: 375px; padding: 19px; background: radial-gradient(ellipse at 50% 54%, #4c5f3826, transparent 64%), #181b16; }
.blackjack-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.deck-count { font: 9px var(--mono); color: #85887f; }
.blackjack-felt { border: 1px solid #535b42; min-height: 235px; border-radius: 48% 48% 8px 8px / 21% 21% 6px 6px; background: #1d2b20; padding: 18px 24px; display: flex; flex-direction: column; justify-content: space-between; text-align: center; }
.hand-label { color: #b0b4a8; font: 9px var(--mono); }
.card-row { min-height: 72px; display: flex; justify-content: center; gap: 8px; align-items: center; }
.playing-card { width: 47px; height: 66px; border: 1px solid #d8d8cd; border-radius: 4px; background: #efeee6; color: #252720; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 5px; font: 11px var(--mono); box-shadow: 0 3px 7px #0004; }
.playing-card.red-suit { color: #b84c42; }
.playing-card span:last-child { align-self: center; margin: auto 0; font-size: 15px; }
.playing-card.is-hidden { background: repeating-linear-gradient(135deg, #474b3d 0 4px, #36392f 4px 8px); border-color: #92977f; }
.blackjack-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 14px; }
.button-secondary { border: 1px solid #ffffff1c; background: #22241f; color: var(--ink); min-height: 36px; padding: 0 13px; border-radius: 3px; font: 9px var(--mono); }
.button-secondary:hover { border-color: #d5f36a6b; color: var(--acid); }
.button-secondary:disabled { opacity: .4; cursor: not-allowed; }
.blackjack-status { min-height: 20px; margin: 9px 0 0; color: #b1b3aa; font-size: 10px; text-align: center; }
.profile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.profile-stat { min-height: 95px; padding: 14px 15px; }
.profile-stat .metric-value { font-size: 19px; }
.profile-section { margin-top: 14px; padding: 17px 18px; }
.profile-section .subhead { margin-bottom: 10px; }
.profile-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #ffffff0c; font-size: 10px; }
.profile-row span:first-child { color: #8d9087; }
.profile-row strong { text-align: right; font: 10px var(--mono); }
.broke-toast { position: fixed; z-index: 20; top: 84px; right: 5.5vw; color: #16190f; background: var(--acid); padding: 11px 15px; border-radius: 3px; font: 11px var(--mono); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s ease; }
.broke-toast.is-visible { transform: translateY(0); opacity: 1; animation: toast-pop .28s ease both; }
@keyframes toast-pop { 0% { transform: translateY(8px) scale(.96); } 70% { transform: translateY(-2px) scale(1.02); } 100% { transform: translateY(0) scale(1); } }
.modal-backdrop { position: fixed; z-index: 30; inset: 0; background: #080907e8; display: grid; place-items: center; padding: 18px; animation: fade-in .2s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.bankruptcy-dialog { width: min(100%, 530px); max-height: min(92vh, 780px); overflow: auto; border: 1px solid #ffffff20; border-top: 2px solid var(--red); background: #171915; padding: 23px clamp(20px, 5vw, 42px) 25px; box-shadow: 0 20px 80px #0009; animation: page-in .25s ease both; }
.bankrupt-index { display: flex; justify-content: space-between; color: #81847b; font-size: 8px; margin-bottom: 32px; }
.bankrupt-index b { color: var(--red); font-weight: 400; }
.bankruptcy-dialog .eyebrow { color: var(--red); margin-bottom: 6px; font-size: 8px; }
.bankruptcy-dialog .eyebrow-mark { background: var(--red); }
.bankruptcy-dialog h2 { font-size: clamp(54px, 12vw, 75px); line-height: 1; margin: 5px 0; font-weight: 600; letter-spacing: 0; }
.bankruptcy-dialog h2 span { color: var(--red); }
.bankrupt-line { color: #b6b8b0; font-size: 12px; margin: 12px 0 22px; }
.bankrupt-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #ffffff15; border-left: 1px solid #ffffff15; }
.bankrupt-stat { min-height: 65px; padding: 10px 12px; border-bottom: 1px solid #ffffff15; border-right: 1px solid #ffffff15; }
.bankrupt-stat span { display: block; color: #85887f; font: 8px var(--mono); }
.bankrupt-stat strong { display: block; margin-top: 4px; font: 13px var(--mono); }
.bankrupt-disclaimer { color: #92958c; font-size: 10px; margin: 17px 0 13px; }
.button-restart { width: 100%; }
.bankruptcy-dialog .welcome-disclaimer { text-align: center; font-size: 9px; }
.settings-button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); color: var(--muted); }
.settings-button:hover { color: var(--acid); border-color: #c8aa7055; }
.settings-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.settings-dialog { width: min(100%, 460px); border: 1px solid #ffffff20; border-top: 2px solid var(--acid); background: #171915; padding: 23px clamp(18px, 4vw, 32px) 25px; box-shadow: 0 20px 80px #0009; }
.settings-dialog .bankrupt-index { margin-bottom: 23px; align-items: center; }
.settings-dialog .bankrupt-index .quiet-link { color: var(--muted); font-size: 8px; }
.settings-dialog h2 { margin: 0; font: 32px/1.1 var(--serif); }
.settings-copy { color: #a6a99f; font-size: 11px; margin: 10px 0 20px; }
.settings-action { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border: 0; border-top: 1px solid #ffffff14; background: transparent; text-align: left; }
.settings-action strong, .settings-action small { display: block; }
.settings-action strong { font-size: 11px; font-weight: 600; }
.settings-action small { margin-top: 3px; color: #85887f; font-size: 9px; }
.settings-action b { color: var(--acid); font: 17px var(--mono); }
.settings-danger b, .settings-danger:hover strong { color: var(--red); }
.settings-dialog .welcome-disclaimer { margin-top: 16px; }
.portfolio-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); gap: 12px; margin-bottom: 13px; }
.portfolio-total, .allocation-panel { min-height: 130px; padding: 17px 19px; }
.portfolio-total > strong { display: block; margin-top: 7px; font: 31px var(--mono); font-variant-numeric: tabular-nums; }
.portfolio-return { margin-top: 7px; font: 11px var(--mono); }
.portfolio-return span { margin-left: 8px; color: var(--muted); font-size: 8px; }
.allocation-bar { display: flex; height: 8px; gap: 2px; margin: 19px 0 13px; background: #ffffff12; }
.allocation-bar i { min-width: 2px; background: var(--asset-color, var(--acid)); }
.allocation-bar .allocation-cash, .allocation-dot.allocation-cash { background: #92958c; }
.allocation-legend { display: flex; justify-content: space-between; gap: 12px; color: #92958c; font-size: 9px; }
.allocation-legend > span { display: flex; align-items: center; gap: 5px; }
.allocation-legend strong { color: var(--ink); font: 9px var(--mono); }
.allocation-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); }
.portfolio-table-panel { overflow: hidden; padding: 16px 18px; }
.portfolio-table-panel .subhead { margin-bottom: 9px; }
.portfolio-table-scroll { overflow-x: auto; }
.portfolio-table { width: 100%; border-collapse: collapse; font-size: 10px; white-space: nowrap; }
.portfolio-table th { height: 30px; color: #85887f; font: 8px var(--mono); text-align: right; border-bottom: 1px solid #ffffff14; }
.portfolio-table th:first-child, .portfolio-table td:first-child { text-align: left; }
.portfolio-table td { height: 49px; border-bottom: 1px solid #ffffff0c; text-align: right; font: 10px var(--mono); }
.portfolio-table tr:last-child td { border-bottom: 0; }
.portfolio-table td:first-child { display: flex; align-items: center; gap: 8px; }
.portfolio-asset-mark { width: 25px; height: 25px; display: grid; place-items: center; flex: none; border: 1px solid color-mix(in srgb, var(--asset-color), transparent 55%); border-radius: 50%; color: var(--asset-color); font: 12px var(--serif); }
.portfolio-asset strong, .portfolio-asset small { display: block; }
.portfolio-asset strong { font: 10px var(--sans); }
.portfolio-asset small { margin-top: 1px; color: #85887f; font: 8px var(--mono); }
.portfolio-empty { display: flex; align-items: center; gap: 12px; min-height: 76px; color: #a6a99f; font-size: 10px; }
.portfolio-empty strong { color: var(--ink); font-size: 11px; }
.portfolio-empty .quiet-link { margin-left: auto; color: var(--acid); }
.portfolio-cash-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; padding: 12px 4px; border-bottom: 1px solid #ffffff16; color: #85887f; font: 9px var(--mono); }
.portfolio-cash-row strong { color: var(--ink); font-size: 11px; }
.portfolio-cash-row span:last-child { text-align: right; }
.brokeprint-history { border-color: #c8aa7030; }
.brokeprint-history .subhead h2, .brokeprint-total strong { color: var(--acid); }
.brand-glyph { background: transparent; border: 0; color: var(--acid); }
.stats-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; }
.stats-group { min-width: 0; }
.stats-group h2 { margin: 0; padding: 0 0 7px; border-bottom: 1px solid var(--line); color: var(--muted); font: 10px var(--sans); }
.stats-group .profile-stat { border-bottom: 1px solid var(--line); }
.stats-group .profile-stat:last-child { border-bottom: 0; }
.level-title { margin-top: 2px; color: #c6b98f; font: 9px var(--serif); }
.market-event-log { margin-top: 12px; padding: 15px 17px; }
.event-history-list { display: grid; }
.event-history-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 54px; padding: 8px 0; border-top: 1px solid #ffffff0c; }
.event-history-copy strong, .event-history-copy small { display: block; }
.event-history-copy strong { font-size: 10px; font-weight: 500; }
.event-history-copy small { margin-top: 3px; color: #85887f; font: 9px var(--mono); }
.event-prices { margin-left: 7px; color: #a7aa9f; font: 9px var(--mono); white-space: nowrap; }
.event-history-empty { margin: 0; padding: 10px 0 2px; color: #85887f; font-size: 10px; }
.portfolio-asset-mark { color: var(--asset-color); }
@media (max-width: 760px) {
  .milestone-band { grid-template-columns: 1fr; gap: 5px; margin-bottom: 10px; }
  .milestone-meter { grid-template-columns: 64px 1fr 64px; }
  .event-history-row { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 8px; }
  .event-history-row .asset-symbol { font-size: 7px; }
  .event-history-copy strong { font-size: 9px; }
  .event-prices { display: block; margin: 3px 0 0; }
}

/* Compact application system. */
:root { --bg: #0d1117; --panel: #151c24; --panel-2: #1a232d; --line: #25303a; --ink: #f2f4f6; --muted: #9aa7b2; --faint: #677580; --acid: #e9a23b; --green: #20c77a; --red: #f05a67; --radius: 8px; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; }
h1, h2, h3, .welcome-copy h1, .page-heading h1, .blackjack-heading h2, .roulette-controls h2, .settings-dialog h2 { font-family: var(--sans); font-style: normal; letter-spacing: 0; }
.topbar { height: 58px; padding: 0 24px; background: var(--bg); border-color: var(--line); }
.wordmark { gap: 7px; font-size: 15px; font-weight: 700; text-transform: lowercase; }
.brand-glyph { width: 22px; height: 22px; color: var(--acid); font-size: 20px; font-weight: 600; }
.topbar-right { gap: 18px; }
.simulation-label { color: var(--muted); font: 10px var(--sans); }
.simulation-label span, .market-clock i { background: var(--green); }
.top-metric small { color: var(--muted); font: 10px var(--sans); }
.top-balance, #topNetWorth { font: 12px var(--mono); font-variant-numeric: tabular-nums; }
.avatar-button, .settings-button { border-radius: 6px; background: var(--panel); }
.game-shell { grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 58px); max-width: 1600px; }
.sidebar { padding: 16px 14px; border-color: var(--line); background: #10161d; }
.sidebar-account { min-width: 0; gap: 9px; padding-bottom: 14px; border-color: var(--line); }
.sidebar-account > div { min-width: 0; }
.sidebar-account strong { font: 11px var(--sans); }
.sidebar-account small { font: 10px var(--sans); }
.avatar-mark { width: 25px; height: 25px; font-size: 18px; }
.nav-caption { margin: 18px 0 8px 8px; color: var(--faint); font: 10px var(--sans); }
.side-nav { gap: 2px; }
.nav-item { min-height: 40px; padding: 0 9px; border-radius: 6px; gap: 9px; color: var(--muted); font-size: 13px; }
.nav-item.is-active { background: var(--panel-2); border-color: transparent; color: var(--ink); }
.nav-item.is-active::before { left: -1px; top: 8px; bottom: 8px; width: 2px; background: var(--acid); }
.nav-icon { width: 18px; font-size: 16px; }
.nav-icon { display: grid; place-items: center; flex: 0 0 18px; height: 18px; color: currentColor; }
.nav-icon svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-count, .nav-live { display: none; }
.sidebar-foot { padding-top: 14px; border-top: 1px solid var(--line); }
.sidebar-brokeprint { display: grid; gap: 4px; padding: 0 2px 14px; }
.sidebar-brokeprint > span { color: var(--muted); font: 10px var(--sans); }
.sidebar-brokeprint > strong { color: var(--acid); font: 18px var(--mono); font-variant-numeric: tabular-nums; }
.sidebar-brokeprint > small { color: var(--muted); font: 10px var(--sans); }
.sidebar-brokeprint > i { height: 3px; margin-top: 3px; background: var(--line); }
.sidebar-brokeprint > i b { display: block; height: 100%; background: var(--acid); }
.simulation-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font: 10px var(--sans); }
.simulation-note span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.main-column { padding: 0 24px; }
.main-topline { min-height: 48px; border-color: var(--line); color: var(--muted); font: 12px var(--sans); }
.breadcrumbs { gap: 8px; }
.breadcrumbs span:first-child { display: none; }
.market-clock { font: 11px var(--sans); color: var(--muted); }
#marketCountdown, .clock-divider { display: none; }
#pageContent { padding: 20px 0 24px; animation: none; }
.page-heading { margin-bottom: 14px; gap: 14px; }
.page-heading h1 { color: var(--ink); font-size: 24px; font-weight: 600; line-height: 1.25; }
.page-heading h1 span { color: var(--muted); font-weight: 400; }
.section-kicker { margin-bottom: 3px; color: var(--muted); font: 10px var(--sans); }
.heading-note { margin-top: 4px; font-size: 12px; color: var(--muted); }
.page-heading .market-summary { gap: 9px; font: 10px var(--sans); }
.panel { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.portfolio-panel { min-height: 0; padding: 16px; }
.portfolio-value { margin-top: 2px; font: 34px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.chart-range { display: none; }
.portfolio-chart { height: 150px; margin-top: 8px; }
.chart-grid { stroke: #25303a; stroke-dasharray: none; stroke-width: .6; }
.chart-fill { display: none; }
.chart-line { stroke: var(--green); stroke-width: 1.6; }
.chart-dot { fill: var(--green); }
.chart-ticks { font: 10px var(--mono); color: var(--muted); }
.overview-grid { grid-template-columns: minmax(0, 1.65fr) minmax(220px, .8fr); gap: 12px; }
.metrics-stack { gap: 0; padding: 4px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.metric-card { min-height: 70px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.metric-card:last-child { border-bottom: 0; }
.metric-top { gap: 10px; }
.stat-label, .panel-label { color: var(--muted); font: 10px var(--sans); }
.metric-mark { color: var(--muted); font: 14px var(--sans); }
.metric-value { margin-top: 4px; font: 18px var(--mono); font-variant-numeric: tabular-nums; }
.metric-foot { margin-top: 3px; color: var(--muted); font-size: 10px; }
.broke-card { padding-left: 9px; border-left: 2px solid var(--acid); background: transparent; }
.broke-card .metric-value { color: var(--acid); }
.level-title { color: var(--acid); font: 11px var(--sans); }
.progress-track { height: 3px; margin-top: 7px; background: var(--line); }
.progress-track span { background: var(--acid); }
.lower-grid { grid-template-columns: minmax(0, 1.4fr) minmax(230px, .85fr); gap: 12px; margin-top: 12px; }
.activity-panel, .shortcut-panel { min-height: 0; padding: 14px 16px; }
.subhead { margin-bottom: 8px; }
.subhead h2 { color: var(--ink); font: 14px var(--sans); font-weight: 600; }
.subhead span { color: var(--muted); font: 10px var(--sans); }
.transaction-row { grid-template-columns: 24px minmax(0,1fr) auto; gap: 9px; padding: 8px 0; border-color: var(--line); }
.transaction-mark { width: 24px; height: 24px; border-color: var(--line); border-radius: 6px; color: var(--muted); font-size: 10px; }
.transaction-row strong { font-size: 12px; font-weight: 500; }
.transaction-row small { color: var(--muted); font-size: 10px; }
.transaction-amount { font-size: 11px; font-variant-numeric: tabular-nums; }
.shortcut-grid { gap: 8px; }
.shortcut { min-height: 72px; padding: 10px 11px; border-color: var(--line); border-radius: 7px; background: var(--bg); }
.shortcut:hover { border-color: #43505b; background: var(--panel-2); }
.shortcut-icon { color: var(--muted); font: 14px var(--sans); }
.shortcut strong { font-size: 12px; font-weight: 600; }
.shortcut small { color: var(--muted); font-size: 10px; }
.event-strip { margin-bottom: 10px; padding: 9px 12px; border: 0; border-left: 2px solid var(--line); border-radius: 0; background: transparent; }
.event-label { color: var(--muted); font: 10px var(--sans); }
.event-copy { font-size: 12px; }
.event-move { font: 11px var(--mono); }
.milestone-band { min-height: 44px; margin-bottom: 10px; padding: 7px 10px; border-left-width: 2px; background: transparent; }
.milestone-band .section-kicker { font-size: 10px; }
.milestone-band strong { font-size: 11px; font-weight: 600; }
.milestone-meter { font-size: 10px; }
.game-footer { min-height: 34px; border-color: var(--line); color: var(--muted); font: 10px var(--sans); }
.broke-toast { top: 72px; padding: 10px 13px; background: #231d14; border: 1px solid #8b6029; border-radius: 7px; color: var(--acid); font: 12px var(--mono); }
.bankruptcy-dialog { border: 1px solid var(--line); border-top: 2px solid var(--red); border-radius: 10px; background: var(--panel); }
.bankrupt-index, .bankrupt-stat span { color: var(--muted); font: 10px var(--sans); }
.bankruptcy-dialog h2 { font: 600 56px/1 var(--sans); }
.settings-dialog { border: 1px solid var(--line); border-top: 2px solid var(--acid); border-radius: 10px; background: var(--panel); }
.settings-dialog h2 { font: 600 24px/1.2 var(--sans); }
.settings-action { border-color: var(--line); }
.settings-action strong { font-size: 13px; }
.settings-action small { color: var(--muted); font-size: 11px; }
.onboarding-backdrop { z-index: 25; background: rgb(7 10 14 / .72); backdrop-filter: none; }
.onboarding-panel { width: min(420px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--line); border-top: 2px solid var(--acid); border-radius: 10px; background: var(--panel); box-shadow: 0 18px 48px rgb(0 0 0 / .28); }
.onboarding-mark { display: block; margin-bottom: 14px; color: var(--acid); font-size: 23px; font-weight: 600; }
.onboarding-panel .section-kicker { margin: 0 0 10px; }
.onboarding-panel h1 { margin: 0; color: var(--ink); font: 600 28px/1.2 var(--sans); }
.onboarding-panel h1 span { color: var(--muted); font-weight: 400; }
.onboarding-copy { margin: 13px 0; color: var(--ink); font-size: 14px; }
.onboarding-rule { padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }
.onboarding-rule strong { color: var(--acid); font-weight: 600; }
.onboarding-start { width: 100%; min-height: 40px; justify-content: center; border-radius: 7px; background: var(--acid); color: #14191f; font: 600 13px var(--sans); }
.onboarding-panel .welcome-disclaimer { margin-top: 12px; color: var(--muted); text-align: center; font-size: 10px; }
.welcome-copy h1, .welcome-scene, .welcome-bottom { display: none; }
@media (max-width: 1050px) { .sidebar { padding-left: 14px; } }
@media (max-width: 760px) {
  .topbar { height: 56px; padding: 0 12px; }
  .topbar-right { gap: 9px; }
  .simulation-label { display: none; }
  .top-net-worth { display: none; }
  .game-shell { min-height: calc(100svh - 56px); }
  .main-column { padding: 0 16px; }
  .main-topline { min-height: 42px; }
  #pageContent { padding: 16px 0 22px; }
  .page-heading { margin-bottom: 10px; }
  .page-heading h1 { font-size: 22px; }
  .overview-grid { grid-template-columns: 1fr; gap: 9px; }
  .portfolio-panel { padding: 13px; }
  .portfolio-value { font-size: 28px; }
  .portfolio-chart { height: 112px; }
  .metrics-stack { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0 12px; }
  .metric-card { min-height: 62px; padding: 9px 0; }
  .broke-card { grid-column: 1 / -1; }
  .lower-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 9px; }
  .activity-panel, .shortcut-panel { padding: 12px; }
  .onboarding-panel { padding: 22px; }
  .onboarding-panel h1 { font-size: 25px; }
  .portfolio-overview { grid-template-columns: 1fr; }
  .profile-grid { display: block; padding: 0 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
  .profile-stat { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
  .profile-stat:last-child { border-bottom: 0; }
  .profile-stat .metric-value { margin: 0; font-size: 13px; text-align: right; }
  .profile-stat .metric-foot { display: none; }
  .profile-section { margin-top: 10px; padding: 12px; }
}
@media (min-width: 1440px) { .welcome-screen { max-width: 1460px; margin: auto; } .main-column { padding-right: max(5.5vw, calc((100vw - 1450px)/2)); } }
@media (max-width: 1050px) { .welcome-screen { gap: 4vw; padding-left: 6vw; padding-right: 6vw; grid-template-columns: minmax(320px, .9fr) minmax(350px, 1.1fr); } .welcome-copy h1 { font-size: clamp(47px, 6vw, 68px); } .game-shell { grid-template-columns: 185px minmax(0,1fr); } .sidebar { padding-left: 19px; } .main-column { padding-left: 25px; padding-right: 25px; } .overview-grid, .market-layout, .casino-layout { grid-template-columns: minmax(0, 1fr); } .metrics-stack { grid-template-columns: repeat(3, 1fr); } .market-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); } .trade-panel { position: static; } .profile-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 760px) { .topbar { height: 58px; padding: 0 18px; } .welcome-screen { min-height: calc(100svh - 58px); padding: 56px 21px 75px; display: flex; flex-direction: column; align-items: stretch; gap: 36px; } .welcome-copy { padding: 0; } .welcome-copy h1 { font-size: clamp(44px, 11vw, 67px); } .welcome-deck { max-width: 440px; font-size: 13px; margin: 19px 0 22px; } .welcome-scene { height: 280px; min-height: 0; } .scene-balance { top: 63px; left: 24px; } .scene-balance strong { font-size: 29px; } .scene-chart { top: 86px; height: 190px; } .scene-caption { top: 131px; right: 15px; font-size: 10px; } .scene-foot { left: 15px; right: 15px; bottom: 13px; font-size: 8px; } .welcome-bottom { bottom: 17px; left: 21px; right: 21px; gap: 12px; font-size: 7px; } .welcome-bottom span:last-child { text-align: right; } .game-shell { display: block; min-height: calc(100svh - 58px); padding-bottom: 58px; } .sidebar { position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; height: 58px; padding: 5px 9px max(5px, env(safe-area-inset-bottom)); background: #151713f5; border: 0; border-top: 1px solid #ffffff17; backdrop-filter: blur(12px); display: block; } .sidebar-account, .nav-caption, .sidebar-foot { display: none; } .side-nav { display: flex; justify-content: space-around; align-items: stretch; height: 100%; gap: 2px; } .nav-item { height: 100%; min-height: 0; max-width: 120px; padding: 5px 4px; justify-content: center; flex-direction: column; gap: 0; font-size: 9px; } .nav-icon { height: 20px; font-size: 15px; } .nav-item.is-active::before { top: 0; bottom: auto; left: 25%; right: 25%; width: auto; height: 2px; } .nav-count, .nav-live { position: absolute; top: 4px; right: 9px; font-size: 7px; } .main-column { padding: 0 17px; } .main-topline { min-height: 45px; font-size: 8px; } .market-clock { gap: 5px; font-size: 7px; } #pageContent { padding: 24px 0 25px; } .game-footer { display: none; } .page-heading { align-items: flex-start; } .page-heading h1 { font-size: 23px; } .page-heading .market-summary { display: none; } .overview-grid, .lower-grid { grid-template-columns: 1fr; gap: 10px; } .portfolio-panel { min-height: 267px; padding: 16px; } .portfolio-value { font-size: 29px; } .portfolio-chart { height: 132px; } .metrics-stack { grid-template-columns: 1fr 1fr; gap: 8px; } .metric-card { padding: 13px; min-height: 79px; } .metric-value { font-size: 19px; } .broke-card { grid-column: span 2; }
.lower-grid { margin-top: 10px; } .activity-panel, .shortcut-panel { min-height: auto; padding: 14px; } .shortcut { min-height: 92px; } .event-strip { align-items: flex-start; flex-wrap: wrap; gap: 5px 10px; } .event-copy { flex-basis: calc(100% - 78px); } .event-move { margin-left: auto; } .market-layout { display: flex; flex-direction: column; } .market-panel, .trade-panel { width: 100%; } .trade-panel { order: -1; } .table-head, .asset-row { grid-template-columns: minmax(112px, 1.35fr) minmax(72px, .7fr) 67px; padding: 0 10px; gap: 5px; } .table-head span:nth-child(4), .asset-row .sparkline { display: none; } .table-head { font-size: 7px; } .asset-row { min-height: 59px; } .asset-logo { width: 24px; height: 24px; } .asset-name { gap: 7px; } .asset-name strong { font-size: 9px; } .asset-price { font-size: 9px; } .asset-change { font-size: 8px; } .market-summary { font-size: 8px; } .casino-layout { display: flex; flex-direction: column; } .game-table, .casino-side { width: 100%; } .roulette-scene { grid-template-columns: 1fr; padding: 16px; gap: 18px; } .wheel-wrap { width: min(68vw, 225px); } .roulette-controls { width: min(100%, 390px); margin: 0 auto; } .casino-side { grid-template-columns: 1fr 1fr; } .game-table { min-height: auto; padding: 13px; } .blackjack-felt { padding: 15px; min-height: 210px; } .profile-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .profile-stat { padding: 12px; min-height: 87px; } .profile-stat .metric-value { font-size: 16px; } .profile-section { padding: 14px; } .broke-toast { top: 68px; right: 14px; } }
@media (max-width: 390px) { .simulation-label { font-size: 8px; } .topbar-right { gap: 10px; } .welcome-screen { padding-left: 16px; padding-right: 16px; } .scene-meta { font-size: 8px; } .main-column { padding-left: 12px; padding-right: 12px; } .main-topline { font-size: 7px; } .market-clock { font-size: 6px; } .overview-grid { gap: 8px; } .metrics-stack { gap: 6px; } .metric-card { padding: 11px; } .stat-label { font-size: 8px; } .metric-value { font-size: 17px; } .casino-side { grid-template-columns: 1fr; } .game-tabs button { padding: 9px 10px; } }
@media (max-width: 350px) { .topbar-right .simulation-label { font-size: 0; } .game-footer { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-height: 38px; padding: 7px 0; font-size: 7px; } .game-footer span:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Editorial type, quiet market chrome, and physical game-table details. */
.welcome-copy h1, .page-heading h1 { font-family: var(--serif); font-weight: 400; }
.welcome-copy h1 { font-size: clamp(58px, 7.2vw, 94px); line-height: .99; }
.page-heading h1 { font-size: 34px; }
.welcome-copy h1 span, .page-heading h1 span { color: #9a9b91; font-style: italic; }
.welcome-copy h1 span { color: #9c9b90; }
.brand-glyph, .avatar-mark { background: var(--acid); }
.button-primary { background: var(--acid); }
.button-primary:hover { background: #d9bd83; }
.metric-mark, .shortcut-icon, .asset-logo { color: var(--acid); }
.broke-card { background: #1a1a16; border-color: #c8aa7040; }
.broke-card .metric-value, .progress-track span { color: var(--acid); background-color: var(--acid); }
.nav-item.is-active::before { background: var(--acid); }
.nav-item.is-active .nav-icon, .game-tabs button.is-active, .trade-toggle button.is-active { color: var(--acid); }
.trade-toggle button.is-active { border-color: var(--acid); }
.panel { border-radius: 3px; background: #171815; }
.portfolio-panel, .activity-panel, .shortcut-panel { border-color: #ffffff12; }
.welcome-scene { background: linear-gradient(145deg, #1b1b17, #131411 70%); }
.portfolio-value, .metric-value, .casino-account strong { font-variant-numeric: tabular-nums; }
.quote-meta { display: flex; justify-content: space-between; color: #777a71; font: 8px var(--mono); }
.trade-chart { height: 86px; margin: 5px 0 8px; }
.holding-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; color: #999b91; font-size: 8px; }
.order-estimate { min-height: 19px; padding-top: 7px; color: #777a71; font: 8px var(--mono); }
.trade-input-wrap:focus-within, .bet-input:focus-visible { border-color: var(--acid); }
.asset-logo { border-color: #c8aa7040; border-radius: 50%; font-family: var(--serif); font-size: 14px; }
.crypto-divider { color: #b1a17d; background: #ffffff04; }
.event-label { color: var(--acid); }
.market-panel { border-radius: 3px; }
.asset-row { transition: background .18s ease; }
.asset-row.is-selected { box-shadow: inset 2px 0 var(--acid); }
.asset-price, .asset-change, .transaction-amount { font-variant-numeric: tabular-nums; }
.game-table { border: 1px solid #ffffff14; border-radius: 4px; }
.roulette-scene { grid-template-columns: minmax(220px, .95fr) minmax(260px, 1.05fr); min-height: 450px; padding: 19px; border: 1px solid #887044; border-radius: 3px; background: repeating-linear-gradient(116deg, #183829 0, #183829 2px, #193a2a 2px, #193a2a 5px); box-shadow: inset 0 0 0 5px #342619, inset 0 0 0 6px #a07b43, inset 0 0 24px #07160d66; }
.roulette-wheel { position: relative; overflow: hidden; border: 6px solid #312417; outline: 1px solid #c2a66f; background: #261e14; box-shadow: 0 8px 20px #0008, inset 0 0 0 2px #c4a66b; }
.roulette-pockets { position: absolute; inset: 0; width: 100%; height: 100%; }
.roulette-pockets .pocket-red { fill: #8e2825; }
.roulette-pockets .pocket-black { fill: #22221f; }
.roulette-pockets .pocket-green { fill: #24613b; }
.roulette-pockets text { fill: #f1e4c9; font: 500 10px var(--mono); text-anchor: middle; dominant-baseline: central; }
.roulette-wheel::before { position: absolute; z-index: 1; width: 36%; background: radial-gradient(circle, #453623 0 27%, #a78449 29% 32%, #262018 34% 52%, #c1a364 54% 58%, #30271b 60%); box-shadow: 0 1px 7px #0009; }
.roulette-pin { top: -9px; z-index: 3; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 13px solid #e1c27e; color: transparent; font-size: 0; filter: drop-shadow(0 1px 2px #000); }
.roulette-ball { position: absolute; z-index: 4; top: 50%; left: 50%; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, -50%) translateY(-108px); background: #f1ead7; box-shadow: 0 0 4px #fff8, 0 1px 3px #000a; }
.wheel-wrap.is-spinning .roulette-ball { animation: ball-orbit 1.55s cubic-bezier(.24,.05,.2,1) both; }
@keyframes ball-orbit { from { transform: translate(-50%, -50%) rotate(0deg) translateY(-108px); } to { transform: translate(-50%, -50%) rotate(1260deg) translateY(-108px); } }
.roulette-result { z-index: 2; width: 34%; aspect-ratio: 1; border: 1px solid #ad8b4d; border-radius: 50%; background: radial-gradient(circle, #292116 0 60%, #503d23 61% 64%, #251e16 66%); box-shadow: 0 2px 8px #0008; }
.roulette-result strong { color: #eddfc3; font: 24px var(--serif); }
.roulette-result span { margin-top: -3px; color: #c5aa75; font: 7px var(--mono); }
.roulette-controls h2 { font-family: var(--serif); font-size: 25px; font-weight: 400; }
.game-description { color: #c0c5b7; line-height: 1.6; }
.bet-options { gap: 8px; }
.bet-options button { position: relative; min-width: 48px; min-height: 39px; border: 0; border-radius: 50%; background: repeating-conic-gradient(#e5dfcf 0 8deg, #c8aa70 8deg 12deg, #e5dfcf 12deg 20deg); box-shadow: 0 2px 5px #0007; color: #24221c; font: 9px var(--mono); }
.bet-options button::before { content: ""; position: absolute; inset: 4px; border: 1px dashed #4f493d; border-radius: 50%; }
.bet-options button:hover { color: #111; border: 0; transform: translateY(-2px); }
.bet-colors { grid-template-columns: repeat(3, 1fr); margin: 8px 0 10px; }
.bet-colors button { min-height: 32px; border-radius: 2px; color: #e9e2d2; font: 8px var(--mono); letter-spacing: 0; }
.bet-colors button[data-bet="red"] { background: #842b27; border-color: #b05c50; }
.bet-colors button[data-bet="black"] { background: #262722; border-color: #68695e; }
.bet-colors button[data-bet="green"] { background: #23613b; border-color: #54815c; }
.bet-colors button.selected { outline: 1px solid #e2c57e; outline-offset: 1px; color: #fff7e4; }
.roulette-layout { display: grid; grid-template-columns: 27px minmax(0, 1fr) 54px; gap: 3px; margin: 5px 0 13px; padding: 5px; border: 1px solid #789077; background: #173224; }
.roulette-number-grid { display: grid; grid-template-columns: repeat(12, minmax(15px, 1fr)); grid-template-rows: repeat(3, 26px); gap: 2px; }
.roulette-cell { border: 1px solid #b79d6b; border-radius: 1px; color: #f0e8d6; font: 9px var(--mono); }
.roulette-cell.red { background: #862b27; }
.roulette-cell.black { background: #20211d; }
.roulette-zero { grid-row: 1 / 4; background: #23613b; }
.roulette-cell.selected { outline: 2px solid #e8c877; outline-offset: 1px; z-index: 1; }
.roulette-dozens { display: grid; grid-row: 1 / 4; grid-column: 3; grid-template-rows: repeat(3, 1fr); gap: 2px; }
.roulette-dozens button { padding: 0; border: 1px solid #819477; background: #1e4931; color: #d8e0cf; font: 7px var(--mono); }
.roulette-dozens button.selected { outline: 2px solid #e8c877; z-index: 1; }
.roulette-outside-bets { display: grid; grid-column: 1 / -1; grid-template-columns: 3fr 2fr; gap: 3px; }
.roulette-dozens, .roulette-parity { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 30px; gap: 3px; }
.roulette-dozens { grid-column: auto; grid-row: auto; }
.roulette-dozens button, .roulette-parity button { border: 1px solid #819477; background: #1e4931; color: #d8e0cf; font: 8px var(--mono); }
.roulette-parity { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.roulette-parity button.selected { outline: 2px solid #e8c877; z-index: 1; }
.roulette-history { min-height: 34px; display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 0 0; border-top: 1px solid #ffffff12; }
.roulette-history-label { margin-right: 4px; color: #85887f; font: 8px var(--mono); white-space: nowrap; }
.roulette-history-number { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #f0e8d6; font: 8px var(--mono); }
.roulette-history-number.red { background: #862b27; }
.roulette-history-number.black { background: #20211d; border: 1px solid #55564c; }
.roulette-history-number.green { background: #23613b; }
.roulette-history-empty { color: #777a71; font-size: 9px; }
.roulette-layout button:hover { filter: brightness(1.18); }
.blackjack-table { padding: 22px; background: #191a16; }
.blackjack-heading h2 { font-family: var(--serif); font-size: 26px; font-weight: 400; }
.blackjack-felt { position: relative; overflow: hidden; border: 1px solid #81936d; border-radius: 46% 46% 5px 5px / 17% 17% 3px 3px; background: repeating-linear-gradient(123deg, #16412c 0, #16412c 2px, #19472f 2px, #19472f 5px); box-shadow: inset 0 0 0 5px #0d261a, inset 0 0 0 6px #899369, inset 0 0 20px #05160c; }
.blackjack-felt::after { content: "BROKEPRINT · EUROPEAN BLACKJACK"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #e6e4c515; font: 8px var(--mono); letter-spacing: 0; white-space: nowrap; }
.blackjack-felt > div { position: relative; z-index: 1; }
.hand-label { color: #d2dac7; }
.card-row { min-height: 92px; gap: 8px; }
.playing-card { position: relative; flex: 0 0 59px; width: 59px; height: 84px; overflow: hidden; border: 1px solid #d6cdb9; border-radius: 4px; background: linear-gradient(135deg, #fffdf4, #e9e3d5); color: #24241f; box-shadow: 0 4px 8px #0005; font: 11px var(--mono); }
.playing-card.red-suit { color: #a4312d; }
.card-corner { z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0; line-height: .95; font-style: normal; }
.card-corner b { font: 12px/1 var(--mono); }
.card-corner i { font: normal 9px/1 var(--sans); }
.card-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font: 28px/1 var(--serif); }
.card-corner-bottom { position: absolute; right: 4px; bottom: 4px; transform: rotate(180deg); }
.face-portrait { width: 35px; height: 47px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 2px; background: repeating-linear-gradient(0deg, transparent 0 5px, currentColor 5px 6px, transparent 6px 11px); font-size: 20px; text-shadow: 0 1px #fff8; }
.playing-card.is-hidden { border: 3px solid #dfd3b8; background: repeating-linear-gradient(45deg, #263d32 0, #263d32 4px, #b79b63 4px, #b79b63 5px, #263d32 5px, #263d32 9px); box-shadow: inset 0 0 0 1px #243327, 0 4px 8px #0005; }
.blackjack-actions .button-primary { min-width: 160px; }
.casino-account strong { color: #e9e6dc; }
@media (max-width: 760px) {
  .welcome-copy h1 { font-size: clamp(55px, 12vw, 75px); }
  .page-heading h1 { font-size: 30px; }
  .roulette-scene { grid-template-columns: 1fr; gap: 19px; min-height: 0; padding: 17px; }
  .wheel-wrap { width: min(70vw, 256px); }
  .roulette-layout { grid-template-columns: 24px minmax(0, 1fr) 48px; }
  .roulette-number-grid { grid-template-rows: repeat(3, 24px); }
  .blackjack-table { padding: 15px; }
}
@media (max-width: 390px) {
  .roulette-layout { grid-template-columns: 21px minmax(0, 1fr) 42px; gap: 2px; padding: 4px; }
  .roulette-number-grid { grid-template-columns: repeat(12, minmax(13px, 1fr)); grid-template-rows: repeat(3, 22px); gap: 1px; }
  .roulette-cell { font-size: 8px; }
  .roulette-dozens button { font-size: 6px; }
  .playing-card { flex-basis: 51px; width: 51px; height: 74px; }
  .card-row { min-height: 82px; gap: 5px; }
}
/* Stable type sizes keep the compact layouts legible without viewport scaling. */
.welcome-copy h1 { font-size: 84px; }
.bankruptcy-dialog h2 { font-size: 72px; }
@media (max-width: 1050px) { .welcome-copy h1 { font-size: 68px; } }
@media (max-width: 760px) {
  .welcome-copy h1 { font-size: 60px; }
  .welcome-scene { align-self: stretch; width: 100%; }
  .bankruptcy-dialog h2 { font-size: 60px; }
}
@media (max-width: 390px) {
  .welcome-copy h1 { font-size: 48px; }
  .bankruptcy-dialog h2 { font-size: 52px; }
}
@media (max-width: 760px) {
  .portfolio-overview { grid-template-columns: 1fr; gap: 9px; }
  .portfolio-total, .allocation-panel { min-height: 108px; padding: 14px; }
  .portfolio-table-panel { padding: 13px 10px; }
  .portfolio-table th:nth-child(3), .portfolio-table td:nth-child(3), .portfolio-table th:nth-child(6), .portfolio-table td:nth-child(6) { display: none; }
  .portfolio-table td:first-child { min-width: 118px; }
  .portfolio-table th, .portfolio-table td { padding: 0 5px; }
  .portfolio-empty { flex-wrap: wrap; }
  .portfolio-empty .quiet-link { margin-left: 0; }
}
@media (max-width: 390px) {
  .topbar-right { gap: 7px; }
  .portfolio-total > strong { font-size: 26px; }
  .portfolio-cash-row { grid-template-columns: auto 1fr; }
  .portfolio-cash-row span:last-child { grid-column: 1 / -1; text-align: left; }
  .settings-action { min-height: 60px; }
  .roulette-history { flex-wrap: wrap; }
  .roulette-history-label { width: 100%; }
}

/* Product-wide polish tokens and compact component states. */
:root { --bg: #0d1117; --panel: #151c24; --panel-2: #1a232d; --line: #25303a; --ink: #f2f4f6; --muted: #9aa7b2; --faint: #677580; --acid: #e9a23b; --green: #20c77a; --red: #f05a67; --radius: 8px; }
* { text-rendering: optimizeLegibility; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; }
h1, h2, h3, .welcome-copy h1, .page-heading h1, .blackjack-heading h2, .roulette-controls h2, .settings-dialog h2, .roulette-result strong, .card-center { font-family: var(--sans); font-style: normal; letter-spacing: 0; }
.topbar { height: 58px; padding: 0 24px; background: var(--bg); border-color: var(--line); }
.wordmark { gap: 7px; font-size: 15px; font-weight: 700; }
.brand-glyph { width: 22px; height: 22px; color: var(--acid); font-size: 20px; font-weight: 600; }
.topbar-right { gap: 18px; }
.simulation-label { color: var(--muted); font: 10px var(--sans); }
.simulation-label span, .market-clock i { background: var(--green); }
.top-metric small { color: var(--muted); font: 10px var(--sans); }
.top-balance, #topNetWorth { color: var(--ink); font: 12px var(--mono); font-variant-numeric: tabular-nums; }
.avatar-button, .settings-button { min-width: 46px; border-radius: 6px; background: var(--panel); color: var(--acid); }
.game-shell { grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 58px); max-width: 1600px; }
.sidebar { padding: 16px 14px; border-color: var(--line); background: #10161d; }
.sidebar-account { min-width: 0; gap: 9px; padding: 0 0 14px; border-color: var(--line); }
.sidebar-account > div { min-width: 0; }
.sidebar-account strong { font: 11px var(--sans); }
.sidebar-account small { font: 10px var(--sans); }
.avatar-mark { width: 25px; height: 25px; font-size: 18px; }
.nav-caption { margin: 18px 0 8px 8px; color: var(--faint); font: 10px var(--sans); }
.side-nav { gap: 2px; }
.nav-item { min-height: 40px; padding: 0 9px; border-radius: 6px; gap: 9px; color: var(--muted); font-size: 13px; transition: background-color .14s ease, color .14s ease; }
.nav-item.is-active { background: var(--panel-2); border-color: transparent; color: var(--ink); }
.nav-item.is-active::before { left: -1px; top: 8px; bottom: 8px; width: 2px; background: var(--acid); }
.nav-icon { width: 18px; font-size: 16px; }
.nav-count, .nav-live { display: none; }
.sidebar-foot { padding-top: 14px; border-top: 1px solid var(--line); }
.sidebar-brokeprint { display: grid; gap: 4px; padding: 0 2px 14px; }
.sidebar-brokeprint > span { color: var(--muted); font: 10px var(--sans); }
.sidebar-brokeprint > strong { color: var(--acid); font: 18px var(--mono); font-variant-numeric: tabular-nums; }
.sidebar-brokeprint > small { color: var(--muted); font: 10px var(--sans); }
.sidebar-brokeprint > i { height: 3px; margin-top: 3px; background: var(--line); }
.sidebar-brokeprint > i b { display: block; height: 100%; background: var(--acid); }
.simulation-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font: 10px var(--sans); }
.simulation-note span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.main-column { min-width: 0; padding: 0 24px; }
.main-topline { min-height: 48px; border-color: var(--line); color: var(--muted); font: 12px var(--sans); }
.breadcrumbs { gap: 8px; }
.breadcrumbs span:first-child { display: none; }
.market-clock { font: 11px var(--sans); color: var(--muted); }
#marketCountdown, .clock-divider { display: none; }
#pageContent { padding: 18px 0 22px; animation: none; }
.page-heading { margin-bottom: 12px; gap: 14px; }
.page-heading h1 { color: var(--ink); font-size: 24px; font-weight: 600; line-height: 1.25; }
.page-heading h1 span { color: var(--muted); font-weight: 400; }
.page-heading .heading-note { margin-top: 4px; font-size: 12px; color: var(--muted); }
.page-heading .market-summary { gap: 8px; font: 10px var(--sans); }
.section-kicker, .panel-label, .stat-label { color: var(--muted); font: 10px var(--sans); }
.section-kicker { margin-bottom: 3px; }
.panel { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.portfolio-panel { min-height: 0; padding: 15px 16px 10px; }
.portfolio-value { margin-top: 2px; font: 32px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.chart-range { display: none; }
.portfolio-chart { height: 132px; margin-top: 8px; }
.chart-grid { stroke: #25303a; stroke-dasharray: none; stroke-width: .6; }
.chart-fill { display: none; }
.chart-line { stroke: var(--green); stroke-width: 1.6; }
.chart-dot { fill: var(--green); }
.chart-ticks { color: var(--muted); font: 9px var(--mono); }
.overview-grid { grid-template-columns: minmax(0, 1.6fr) minmax(225px, .8fr); gap: 12px; }
.metrics-stack { gap: 0; padding: 2px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.metric-card { min-height: 67px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.metric-card:last-child { border-bottom: 0; }
.metric-top { gap: 10px; }
.metric-mark { color: var(--muted); font: 13px var(--sans); }
.metric-value { margin-top: 3px; font: 18px var(--mono); font-variant-numeric: tabular-nums; }
.metric-foot { margin-top: 3px; color: var(--muted); font-size: 10px; }
.broke-card { padding-left: 9px; border-left: 2px solid var(--acid); background: transparent; }
.broke-card .metric-value, .brokeprint-total strong { color: var(--acid); }
.level-title { color: var(--acid); font: 11px var(--sans); }
.progress-track { height: 3px; margin-top: 6px; background: var(--line); }
.progress-track span { background: var(--acid); }
.lower-grid { grid-template-columns: minmax(0, 1.35fr) minmax(225px, .85fr); gap: 12px; margin-top: 12px; }
.activity-panel, .shortcut-panel { min-height: 0; padding: 13px 15px; }
.subhead { margin-bottom: 8px; }
.subhead h2 { color: var(--ink); font: 600 14px var(--sans); }
.subhead span { color: var(--muted); font: 10px var(--sans); }
.transaction-row { grid-template-columns: 24px minmax(0,1fr) auto; gap: 9px; padding: 7px 0; border-color: var(--line); }
.transaction-mark { width: 24px; height: 24px; border-color: var(--line); border-radius: 6px; color: var(--muted); font-size: 10px; }
.transaction-row strong { font-size: 12px; font-weight: 500; }
.transaction-row small { color: var(--muted); font-size: 10px; }
.transaction-amount { font-size: 11px; font-variant-numeric: tabular-nums; }
.shortcut-grid { gap: 8px; }
.shortcut { min-height: 68px; padding: 9px 10px; border-color: var(--line); border-radius: 7px; background: var(--bg); }
.shortcut:hover { border-color: #43505b; background: var(--panel-2); }
.shortcut-icon { color: var(--muted); font: 14px var(--sans); }
.shortcut strong { font-size: 12px; font-weight: 600; }
.shortcut small { color: var(--muted); font-size: 10px; }
.event-strip { margin-bottom: 8px; padding: 8px 10px; border: 0; border-left: 2px solid var(--line); border-radius: 0; background: transparent; }
.event-label { color: var(--muted); font: 10px var(--sans); }
.event-copy { font-size: 12px; }
.event-move { font: 11px var(--mono); }
.milestone-band { min-height: 42px; grid-template-columns: minmax(0,1fr) minmax(180px,.65fr); gap: 14px; margin-bottom: 9px; padding: 6px 10px; border-left: 2px solid var(--acid); background: transparent; }
.milestone-band > div:first-child { display: grid; gap: 3px; }
.milestone-band .section-kicker { margin: 0; }
.milestone-band strong { font-size: 11px; font-weight: 600; }
.milestone-meter { font: 9px var(--mono); }
.button, .button-secondary { min-height: 38px; border-radius: 7px; font: 600 12px var(--sans); }
.button-primary { background: var(--acid); color: #161a20; box-shadow: none; }
.button-primary:hover { background: #f0ae4e; transform: none; }
.button-secondary { border-color: var(--line); background: var(--panel-2); color: var(--ink); }
.button-secondary:hover { border-color: #43505b; color: var(--ink); }
.trade-submit { min-height: 40px; }
.trade-input-wrap, .bet-input { height: 40px; border: 1px solid var(--line); border-radius: 6px; background: #10161d; }
.trade-input-wrap:focus-within, .bet-input:focus-visible { border-color: var(--acid); box-shadow: none; }
.field-label, .bet-label { color: var(--muted); font: 10px var(--sans); }
.quick-amounts button, .bet-options button { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--muted); font: 11px var(--sans); }
.quick-amounts button:hover, .bet-options button:hover { border-color: #43505b; color: var(--ink); transform: none; }
.trade-panel { padding: 15px; border-radius: 8px; }
.trade-heading { padding-bottom: 12px; border-color: var(--line); }
.trade-heading strong { font-size: 14px; }
.trade-heading small { color: var(--muted); font: 10px var(--sans); }
.quote-meta, .holding-note, .order-estimate { color: var(--muted); font: 10px var(--sans); }
.holding-note { padding: 8px 0 10px; }
.trade-description { min-height: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.market-panel { border-color: var(--line); border-radius: 8px; }
.table-head { font: 10px var(--sans); color: var(--muted); }
.asset-row { border-color: var(--line); transition: background-color .14s ease; }
.asset-row:hover { background: var(--panel-2); }
.asset-row.is-selected { background: #1b2731; box-shadow: inset 2px 0 var(--acid); }
.asset-logo { color: var(--asset-color, var(--muted)); border-color: color-mix(in srgb, var(--asset-color, var(--line)), transparent 55%); border-radius: 50%; font: 600 12px var(--sans); }
.asset-name strong, .asset-price { font-size: 12px; }
.asset-symbol, .asset-price small { color: var(--muted); font: 10px var(--sans); }
.asset-change { font: 11px var(--mono); font-variant-numeric: tabular-nums; }
.sparkline { height: 24px; }
.crypto-divider { border-color: var(--line); color: var(--muted); font: 10px var(--sans); }
.market-event-log, .portfolio-table-panel, .profile-section { border-radius: 8px; padding: 14px 16px; }
.event-history-row, .profile-row { border-color: var(--line); }
.event-history-copy strong { font: 12px var(--sans); }
.event-history-copy small, .event-history-row .asset-symbol { color: var(--muted); font: 10px var(--sans); }
.portfolio-overview { gap: 10px; }
.portfolio-total, .allocation-panel { min-height: 100px; padding: 14px 16px; border-radius: 8px; }
.portfolio-total > strong { font: 30px var(--mono); font-variant-numeric: tabular-nums; }
.portfolio-return { font: 11px var(--mono); }
.portfolio-return span { font: 10px var(--sans); color: var(--muted); }
.portfolio-table { font-size: 12px; }
.portfolio-table th { color: var(--muted); font: 10px var(--sans); }
.portfolio-table td { font: 11px var(--mono); border-color: var(--line); }
.portfolio-asset strong { font: 12px var(--sans); }
.portfolio-asset small { font: 10px var(--mono); color: var(--muted); }
.portfolio-empty { min-height: 58px; font-size: 12px; }
.portfolio-cash-row { border-color: var(--line); color: var(--muted); font: 10px var(--sans); }
.portfolio-cash-row strong { font: 12px var(--mono); }
.profile-grid { display: block; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.profile-stat { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.profile-stat:last-child { border-bottom: 0; }
.profile-stat .metric-value { margin: 0; font-size: 13px; text-align: right; }
.profile-stat .metric-foot { display: none; }
.profile-section { margin-top: 10px; }
.profile-row { min-height: 38px; padding: 7px 0; font-size: 12px; }
.profile-row span:first-child { color: var(--muted); }
.profile-row strong { font: 12px var(--mono); }
.brokeprint-history { border-color: #e9a23b55; }
.brokeprint-history .subhead h2, .brokeprint-total strong { color: var(--acid); }
.level-title { color: var(--acid); font: 11px var(--sans); }
.broke-toast { top: 68px; right: 20px; padding: 9px 12px; border: 1px solid #e9a23b55; border-radius: 7px; background: #181e25; color: var(--acid); font: 12px var(--mono); box-shadow: none; }
.broke-toast.is-visible { animation: bp-toast-in .2s ease-out both; }
@keyframes bp-toast-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.game-tabs { display: flex; gap: 8px; margin-bottom: 12px; border: 0; }
.game-tabs button { position: relative; display: flex; min-width: 150px; min-height: 56px; align-items: flex-end; padding: 0 10px 8px 52px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--muted); font: 600 12px var(--sans); text-align: left; }
.game-tabs button::before { content: ""; position: absolute; left: 10px; bottom: 9px; width: 32px; height: 36px; border: 1px solid #43505b; border-radius: 6px; }
.game-tabs button[data-casino-game="roulette"]::before { border-radius: 50%; background: repeating-conic-gradient(#8a3037 0 10deg, #111820 10deg 20deg); box-shadow: inset 0 0 0 6px #191f25; }
.game-tabs button[data-casino-game="blackjack"]::before { background: linear-gradient(115deg, #edf0ed 0 42%, transparent 43%), linear-gradient(65deg, transparent 48%, #edf0ed 49% 88%, transparent 89%); }
.game-tabs button.is-active { border-color: #43505b; background: var(--panel-2); color: var(--ink); box-shadow: inset 0 -2px var(--acid); }
.casino-layout { gap: 10px; }
.game-table { min-height: 0; padding: 14px; border-radius: 8px; background: var(--panel); }
.roulette-scene { min-height: 360px; padding: 14px; grid-template-columns: minmax(210px, .9fr) minmax(240px, 1.1fr); border-radius: 8px; }
.roulette-controls h2, .blackjack-heading h2 { font: 600 18px var(--sans); }
.game-description { color: var(--muted); font-size: 11px; }
.roulette-wheel::before { border-color: #e9a23b88; }
.roulette-result { background: #151c24; box-shadow: none; }
.roulette-result strong { color: var(--ink); font: 600 22px var(--mono); }
.roulette-result span { color: var(--muted); font: 9px var(--sans); }
.roulette-cell, .roulette-dozens button, .roulette-parity button { min-height: 30px; border-color: #3a4a55; font: 10px var(--mono); }
.bet-colors button { min-height: 32px; border-radius: 6px; font: 11px var(--sans); }
.bet-colors button.selected, .roulette-cell.selected, .roulette-dozens button.selected, .roulette-parity button.selected { outline: 2px solid var(--acid); outline-offset: 1px; }
.roulette-history { border-color: var(--line); }
.roulette-history-label, .roulette-history-empty { color: var(--muted); font: 10px var(--sans); }
.blackjack-table { min-height: 0; padding: 16px; background: var(--panel); }
.blackjack-felt { min-height: 220px; border-radius: 130px 130px 8px 8px / 52px 52px 8px 8px; background-color: #153c2d; box-shadow: inset 0 0 0 4px #101c1a; }
.blackjack-felt::after { color: #edf3ec20; font: 9px var(--sans); }
.hand-label { color: #d6e1d9; font: 10px var(--sans); }
.playing-card { box-shadow: 0 2px 4px rgb(0 0 0 / .24); }
.casino-side { gap: 10px; }
.house-rules, .casino-account { padding: 13px 15px; border-radius: 8px; }
.rule-row { border-color: var(--line); color: var(--muted); font-size: 11px; }
.rule-row strong { color: var(--ink); font: 11px var(--mono); }
.game-feedback, .blackjack-status { color: var(--muted); font-size: 11px; }
.button, .button-secondary { min-height: 38px; border-radius: 7px; font: 600 12px var(--sans); }
.button-primary { background: var(--acid); color: #15191f; box-shadow: none; }
.button-primary:hover { background: #f0ae4e; transform: none; }
.button-secondary { border-color: var(--line); background: var(--panel-2); color: var(--ink); }
.button-secondary:hover { border-color: #43505b; color: var(--ink); }
.bankruptcy-dialog, .settings-dialog { border-color: var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 14px 36px rgb(0 0 0 / .24); }
.bankrupt-index, .bankrupt-stat span { color: var(--muted); font: 10px var(--sans); }
.bankruptcy-dialog h2 { font: 700 56px/1 var(--sans); }
.bankruptcy-dialog h2 span { color: var(--red); }
.settings-dialog h2 { font: 600 24px var(--sans); }
.settings-action { border-color: var(--line); }
.settings-action strong { font-size: 13px; }
.settings-action small { color: var(--muted); font-size: 11px; }
.settings-danger b, .settings-danger:hover strong { color: var(--red); }
.allocation-bar .allocation-cash, .allocation-dot.allocation-cash { background: #677580; }
@media (max-width: 1050px) { .sidebar { padding: 14px; } .main-column { padding: 0 18px; } }
@media (max-width: 860px) { .metrics-stack { grid-template-columns: repeat(2,minmax(0,1fr)); } .broke-card { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .topbar { height: 56px; padding: 0 12px; }
  .topbar-right { gap: 8px; }
  .simulation-label, .top-net-worth { display: none; }
  .game-shell { min-height: calc(100svh - 56px); }
  .sidebar { padding: 5px 8px max(5px, env(safe-area-inset-bottom)); background: #10161df5; border-top-color: var(--line); }
  .nav-item { max-width: none; min-width: 0; flex: 1 1 20%; border-radius: 5px; font-size: 10px; }
  .main-column { padding: 0 16px; }
  .main-topline { min-height: 42px; }
  #pageContent { padding: 15px 0 20px; }
  .page-heading { margin-bottom: 10px; }
  .page-heading h1 { font-size: 22px; }
  .overview-grid { grid-template-columns: 1fr; gap: 9px; }
  .portfolio-panel { padding: 12px; }
  .portfolio-value { font-size: 27px; }
  .portfolio-chart { height: 100px; }
  .metrics-stack { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0 11px; }
  .metric-card { min-height: 58px; padding: 8px 0; }
  .broke-card { grid-column: 1 / -1; }
  .lower-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 9px; }
  .activity-panel, .shortcut-panel { padding: 11px 12px; }
  .portfolio-overview { grid-template-columns: 1fr; }
  .profile-grid { display: block; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
  .stats-groups { grid-template-columns: 1fr; gap: 11px; }
  .profile-stat { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
  .profile-stat:last-child { border-bottom: 0; }
  .profile-stat .metric-value { margin: 0; font-size: 12px; text-align: right; }
  .profile-stat .metric-foot { display: none; }
  .profile-section { margin-top: 9px; padding: 11px 12px; }
  .game-tabs button { min-width: 128px; min-height: 49px; font-size: 11px; }
  .roulette-scene { grid-template-columns: 1fr; min-height: 0; padding: 11px; gap: 12px; }
  .wheel-wrap { width: min(58vw, 220px); }
  .roulette-layout { grid-template-columns: 22px minmax(0,1fr) 44px; gap: 2px; padding: 4px; }
  .roulette-number-grid { grid-template-rows: repeat(3, 22px); gap: 1px; }
  .roulette-outside-bets { grid-template-columns: 3fr 2fr; }
  .roulette-dozens, .roulette-parity { grid-template-rows: 26px; gap: 2px; }
  .roulette-dozens button, .roulette-parity button { font-size: 8px; }
  .game-table { padding: 10px; }
  .blackjack-table { padding: 12px; }
  .blackjack-felt { min-height: 198px; padding: 13px; }
  .card-row { min-height: 80px; gap: 5px; }
  .playing-card { flex-basis: 51px; width: 51px; height: 74px; }
  .broke-toast { top: 64px; right: 10px; }
}
@media (max-width: 390px) {
  .topbar-right { gap: 6px; }
  .top-balance, #topNetWorth { font-size: 11px; }
  .avatar-button { min-width: 42px; padding: 0 5px; font-size: 9px; }
  .main-column { padding: 0 12px; }
  .main-topline { font-size: 11px; }
  .market-clock { font-size: 10px; }
  .portfolio-total > strong { font-size: 24px; }
  .portfolio-table-panel { padding: 10px 8px; }
  .portfolio-table th:nth-child(3), .portfolio-table td:nth-child(3), .portfolio-table th:nth-child(6), .portfolio-table td:nth-child(6) { display: none; }
  .portfolio-empty { gap: 8px; flex-wrap: wrap; }
  .portfolio-empty .quiet-link { margin-left: 0; }
  .portfolio-cash-row { grid-template-columns: auto 1fr; }
  .portfolio-cash-row span:last-child { grid-column: 1 / -1; text-align: left; }
  .milestone-band { grid-template-columns: 1fr; gap: 5px; margin-bottom: 8px; }
  .milestone-meter { grid-template-columns: 64px 1fr 64px; }
  .roulette-history { flex-wrap: wrap; }
  .roulette-history-label { width: 100%; }
  .onboarding-panel { padding: 20px; }
  .onboarding-panel h1 { font-size: 24px; }
}
.game-tabs { width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.game-tabs::-webkit-scrollbar { display: none; }
.game-tabs button { flex: 0 0 142px; }
.game-tabs button[data-casino-game="plinko"]::before { background: radial-gradient(circle at 50% 18%, #e9a23b 0 2px, transparent 2.5px), radial-gradient(circle at 35% 38%, #74818a 0 1.5px, transparent 2px), radial-gradient(circle at 65% 38%, #74818a 0 1.5px, transparent 2px), radial-gradient(circle at 24% 59%, #74818a 0 1.5px, transparent 2px), radial-gradient(circle at 50% 59%, #74818a 0 1.5px, transparent 2px), radial-gradient(circle at 76% 59%, #74818a 0 1.5px, transparent 2px); }
.game-tabs button[data-casino-game="rocket"]::before { border: 0; background: none; }
.game-tabs button[data-casino-game="rocket"]::after { content: ""; position: absolute; left: 12px; bottom: 16px; width: 28px; height: 18px; border-left: 2px solid var(--acid); border-top: 2px solid var(--acid); transform: skew(-26deg,-24deg); }
.game-view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.game-view-heading h2 { margin: 3px 0 0; color: var(--ink); font: 600 16px var(--sans); }
.plinko-layout, .rocket-layout { grid-template-columns: minmax(0,1.5fr) minmax(260px,.72fr); gap: 10px; }
.plinko-table, .rocket-table { padding: 14px; }
.plinko-board { position: relative; width: min(100%, 520px); height: 360px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #10171e; }
.plinko-peg-rows { position: absolute; inset: 15px 8px 53px; display: flex; flex-direction: column; justify-content: space-between; }
.plinko-peg-row { display: flex; flex: 1; align-items: center; justify-content: center; gap: clamp(8px, 1.7vw, 18px); }
.plinko-peg-row i { width: 5px; height: 5px; border-radius: 50%; background: #8795a0; }
.plinko-ball { position: absolute; z-index: 2; top: 6px; left: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateX(-50%); background: var(--acid); }
.plinko-bins { position: absolute; right: 5px; bottom: 5px; left: 5px; display: grid; grid-template-columns: repeat(13,minmax(0,1fr)); gap: 2px; }
.plinko-bin { display: grid; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: #1a232d; color: var(--muted); font: 9px var(--mono); }
.plinko-bin.high-multiplier { border-color: #896127; color: var(--acid); }
.plinko-bin.is-result { border-color: var(--acid); background: #2b241a; color: var(--acid); }
.plinko-feedback { max-width: 520px; min-height: 17px; margin: 8px auto 0; }
.plinko-controls, .rocket-controls { align-self: start; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.risk-select { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin: 11px 0; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); }
.risk-select button { min-height: 32px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font: 10px var(--sans); }
.risk-select button.is-active { background: var(--panel-2); color: var(--ink); }
.plinko-drop, .rocket-action { width: 100%; justify-content: center; gap: 8px; }
.plinko-summary, .rocket-summary { display: grid; gap: 5px; margin-top: 10px; color: var(--muted); font: 10px var(--sans); }
.last-drop, .rocket-last-result { display: grid; gap: 4px; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line); }
.last-drop > span, .last-drop small, .rocket-last-result > span, .rocket-last-result small { color: var(--muted); font: 10px var(--sans); }
.last-drop strong, .rocket-last-result strong { color: var(--ink); font: 14px var(--mono); }
.rocket-last-result strong { color: var(--acid); }
.rocket-sky { position: relative; height: 290px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background-color: #10171e; background-image: repeating-linear-gradient(to bottom, transparent 0 57px, #25303a 58px); }
.rocket-grid-lines { position: absolute; inset: 0; opacity: .25; background-image: repeating-linear-gradient(to bottom, transparent 0 57px, #677580 58px); }
.rocket-trail { position: absolute; inset: 0; width: 100%; height: 100%; }
.rocket-trail path { fill: none; stroke: var(--green); stroke-width: 2; stroke-dasharray: 700; stroke-dashoffset: 700; }
.rocket-ship { position: absolute; left: 7%; bottom: 11%; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #172d29; color: var(--green); transition: left .8s linear, bottom .8s linear; }
.rocket-ship svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(35deg); }
.rocket-multiplier { position: absolute; top: 42%; left: 50%; transform: translate(-50%,-50%); color: var(--ink); font: 700 42px var(--mono); font-variant-numeric: tabular-nums; }
.rocket-caption { position: absolute; top: calc(42% + 34px); left: 50%; transform: translateX(-50%); color: var(--muted); font: 10px var(--sans); white-space: nowrap; }
.rocket-feedback { min-height: 18px; margin: 8px 0 0; }
.rocket-summary span { color: var(--muted); }
@media (max-width: 760px) {
  .plinko-layout, .rocket-layout { grid-template-columns: 1fr; }
  .plinko-board { height: 320px; }
  .rocket-sky { height: 255px; }
  .plinko-controls, .rocket-controls { width: 100%; }
}
@media (max-width: 390px) {
  .plinko-board { height: 285px; padding-right: 6px; padding-left: 6px; }
  .plinko-bin { height: 28px; font-size: 8px; }
  .rocket-multiplier { font-size: 34px; }
}
  .game-tabs { width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .game-tabs::-webkit-scrollbar { display: none; }
  .game-tabs button { flex: 0 0 142px; }
  .game-tabs button[data-casino-game="plinko"]::before { background: radial-gradient(circle at 50% 18%, #e9a23b 0 2px, transparent 2.5px), radial-gradient(circle at 35% 38%, #74818a 0 1.5px, transparent 2px), radial-gradient(circle at 65% 38%, #74818a 0 1.5px, transparent 2px), radial-gradient(circle at 24% 59%, #74818a 0 1.5px, transparent 2px), radial-gradient(circle at 50% 59%, #74818a 0 1.5px, transparent 2px), radial-gradient(circle at 76% 59%, #74818a 0 1.5px, transparent 2px); }
  .game-tabs button[data-casino-game="rocket"]::before { border: 0; background: none; }
  .game-tabs button[data-casino-game="rocket"]::after { content: ""; position: absolute; left: 12px; bottom: 16px; width: 28px; height: 18px; border-left: 2px solid var(--acid); border-top: 2px solid var(--acid); transform: skew(-26deg,-24deg); }
  .game-view-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .game-view-heading h2 { margin: 3px 0 0; font: 600 17px var(--sans); }
  .plinko-layout, .rocket-layout { grid-template-columns: minmax(0,1.5fr) minmax(260px,.72fr); }
  .plinko-table, .rocket-table { padding: 15px; }
  .plinko-board { position: relative; width: min(100%, 520px); height: 360px; margin: 0 auto; padding: 12px 12px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #10171e; }
  .plinko-peg-rows { position: absolute; inset: 18px 9px 58px; display: flex; flex-direction: column; justify-content: space-between; }
  .plinko-peg-row { display: flex; flex: 1; align-items: center; justify-content: center; gap: clamp(8px, 1.7vw, 18px); }
  .plinko-peg-row i { width: 5px; height: 5px; border-radius: 50%; background: #8795a0; box-shadow: 0 1px 2px #0006; }
  .plinko-ball { position: absolute; z-index: 2; top: 6px; left: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateX(-50%); background: var(--acid); box-shadow: 0 1px 5px #0008; }
  .plinko-bins { position: absolute; right: 5px; bottom: 5px; left: 5px; display: grid; grid-template-columns: repeat(13,minmax(0,1fr)); gap: 2px; }
  .plinko-bin { display: grid; height: 31px; place-items: center; border: 1px solid #34424d; border-radius: 4px; background: #1a242c; color: var(--muted); font: 9px var(--mono); }
  .plinko-bin.high-multiplier { color: var(--acid); border-color: #8b602955; }
  .plinko-bin.is-result { border-color: var(--acid); background: #2b241a; color: var(--acid); }
  .plinko-feedback { max-width: 520px; margin: 9px auto 0; }
  .plinko-controls, .rocket-controls { align-self: start; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
  .risk-select { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin: 12px 0; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); }
  .risk-select button { min-height: 31px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font: 10px var(--sans); }
  .risk-select button.is-active { background: var(--panel-2); color: var(--ink); }
  .risk-select button:disabled { opacity: .55; }
  .plinko-drop, .rocket-action { width: 100%; justify-content: center; gap: 8px; }
  .plinko-summary, .rocket-summary { display: grid; gap: 5px; margin-top: 11px; color: var(--muted); font: 10px var(--sans); }
  .last-drop, .rocket-last-result { display: grid; gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
  .last-drop > span, .rocket-last-result > span, .last-drop small, .rocket-last-result small { color: var(--muted); font: 10px var(--sans); }
  .last-drop strong, .rocket-last-result strong { color: var(--ink); font: 14px var(--mono); }
  .rocket-sky { position: relative; height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #10171e; }
  .rocket-grid-lines { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 59px, #25303a 60px); opacity: .55; }
  .rocket-trail { position: absolute; inset: 0; width: 100%; height: 100%; }
  .rocket-trail path { fill: none; stroke: var(--green); stroke-width: 2; stroke-dasharray: 700; stroke-dashoffset: 700; }
  .rocket-ship { position: absolute; left: 7%; bottom: 11%; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #172d29; color: var(--green); transition: left .8s linear, bottom .8s linear; }
  .rocket-ship svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(35deg); }
  .rocket-multiplier { position: absolute; top: 42%; left: 50%; transform: translate(-50%,-50%); color: var(--ink); font: 700 42px var(--mono); font-variant-numeric: tabular-nums; }
  .rocket-caption { position: absolute; top: calc(42% + 33px); left: 50%; transform: translateX(-50%); color: var(--muted); font: 10px var(--sans); white-space: nowrap; }
  .rocket-feedback { min-height: 20px; margin: 9px 0 0; }
  .rocket-last-result { display: flex; align-items: center; gap: 12px; }
  .rocket-last-result strong { color: var(--acid); }
  @media (max-width: 760px) {
    .plinko-layout, .rocket-layout { grid-template-columns: 1fr; }
    .plinko-board { height: 320px; }
    .rocket-sky { height: 255px; }
    .plinko-controls, .rocket-controls { width: 100%; }
  }
  @media (max-width: 390px) {
    .plinko-board { height: 285px; padding-right: 6px; padding-left: 6px; }
    .plinko-bin { height: 28px; font-size: 8px; }
    .rocket-multiplier { font-size: 34px; }
  }
.metrics-stack .broke-card .metric-value { background: transparent; color: var(--acid); }
.metrics-stack .broke-card .progress-track span { background: var(--acid); }
.wordmark .brand-glyph { background: transparent; color: var(--acid); }
.metric-value, .portfolio-value, .portfolio-total > strong { background: transparent; color: var(--ink); }
.broke-card .metric-value { color: var(--acid); }
.progress-track span { background: var(--acid); }
.page-heading h1 span, .welcome-copy h1 span { font-style: normal; }
.day-percent { margin-left: 5px; font: 10px var(--mono); font-variant-numeric: tabular-nums; }
.market-summary strong { color: var(--ink); font: 11px var(--mono); }
.broke-card { background: transparent; border-color: var(--line); }
.broke-card .metric-mark { color: var(--acid); }
.fake-stamp { display: none; }
.shortcut:hover, .quick-amounts button:hover, .bet-options button:hover, .button-secondary:hover { border-color: #43505b; color: var(--ink); transform: none; }
.roulette-wheel::before { border-color: #e9a23b88; }
.settings-button:hover { border-color: #e9a23b66; }
.game-footer { color: var(--muted); border-color: var(--line); font: 10px var(--sans); }
.simulation-note { color: var(--muted); }
.broke-card { border-left-color: var(--acid); }
.dashboard-breakdown strong { font-size: 11px; }
.page-heading h1 span, .welcome-copy h1 span { font-style: normal; }
.roulette-wheel::before { border-color: rgb(233 162 59 / .55); background: radial-gradient(circle, #3a3020 0 27%, #a87b36 29% 32%, #20252b 34% 52%, #bf9045 54% 58%, #24272a 60%); }
.roulette-result { border-color: #43505b; }
.roulette-result span { color: var(--muted); }
.blackjack-felt { background-image: repeating-linear-gradient(123deg, #153c2d 0 2px, #17412f 2px 5px); border-color: #426755; box-shadow: inset 0 0 0 4px #101c1a; }
.blackjack-felt::after { color: rgb(237 243 236 / .11); }
.playing-card { border-radius: 4px; }
.bet-options button { border-radius: 6px; }
.bet-colors button[data-bet="red"] { color: #fff; }
.bet-colors button[data-bet="black"] { color: #fff; }
.bet-colors button[data-bet="green"] { color: #fff; }
.progress-track span { background: var(--acid); }
@media (max-width: 860px) { .metrics-stack { grid-template-columns: repeat(2,minmax(0,1fr)); } .metrics-stack .broke-card { grid-column: 1 / -1; } }
@media (max-width: 860px) { .metrics-stack { grid-template-columns: repeat(2,minmax(0,1fr)); } .metrics-stack .broke-card { grid-column: 1 / -1; } }

/* Remove the prototype treatment left by earlier iterations. */
.welcome-screen, .welcome-copy, .welcome-scene, .welcome-bottom { display: none; }
.onboarding-backdrop { z-index: 25; background: rgb(7 10 14 / .72); backdrop-filter: none; }
.onboarding-panel { width: min(420px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--line); border-top: 2px solid var(--acid); border-radius: 10px; background: var(--panel); box-shadow: 0 18px 48px rgb(0 0 0 / .28); }
.onboarding-mark { display: block; margin-bottom: 14px; color: var(--acid); font-size: 22px; font-weight: 600; }
.onboarding-panel .section-kicker { margin: 0 0 10px; color: var(--muted); font: 10px var(--sans); }
.onboarding-panel h1 { margin: 0; color: var(--ink); font: 600 28px/1.2 var(--sans); }
.onboarding-panel h1 span { color: var(--muted); font-weight: 400; }
.onboarding-copy { margin: 13px 0; color: var(--ink); font-size: 14px; }
.onboarding-rule { padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }
.onboarding-rule strong { color: var(--acid); font-weight: 600; }
.onboarding-start { width: 100%; min-height: 40px; justify-content: center; border-radius: 7px; background: var(--acid); color: #15191f; font: 600 13px var(--sans); box-shadow: none; }
.onboarding-start:hover { background: #f0ae4e; transform: none; }
.onboarding-panel .welcome-disclaimer { margin-top: 12px; color: var(--muted); text-align: center; font-size: 10px; }



/* Brokeprint lounge — shared surfaces and control language. */
:root{color-scheme:dark;--bg:#141a17;--panel:#1e2621;--panel-2:#263129;--line:#354137;--ink:#eee9df;--muted:#a6b1a6;--faint:#849284;--acid:#d5b87e;--green:#93c8a5;--red:#e69a91;--sans:'Segoe UI',Arial,sans-serif;--serif:Georgia,'Times New Roman',serif;--radius:12px;}
body{background:var(--bg);font:16px/1.5 var(--sans);}.topbar{height:78px;padding:0 34px;background:#19201b;border-color:#354137;}.wordmark{font:600 27px var(--serif);letter-spacing:-.9px;gap:11px;color:var(--ink);}.brand-glyph{width:33px;height:33px;border:1px solid #a38b58;border-radius:10px;background:#302f22;color:#dfc78e;font:italic 27px var(--serif);}.topbar-right{gap:26px;}.simulation-label{font:11px var(--sans);letter-spacing:1px;color:#bbbfaa;}.simulation-label span{display:none;}.top-metric small{font:11px var(--sans);letter-spacing:.6px;color:#9dac9c;}.top-balance,#topNetWorth{font:600 15px var(--sans);color:#f1eadb;}.avatar-button{background:#302f22;border:1px solid #665c3f;color:#d9be86;font:600 12px var(--sans);padding:8px 12px;}.settings-button{background:#253027;border-color:#45513f;color:#c1c9b6;}
#game.game-shell{max-width:1600px;grid-template-columns:210px minmax(0,1fr);min-height:calc(100vh - 78px);}#game .sidebar{background:#19201b;border-right:1px solid #354137;padding:32px 16px;}.nav-caption{font:11px var(--sans);letter-spacing:1.3px;color:#7d907c;margin:0 16px 17px;}.side-nav{gap:6px;}#game .nav-item{min-height:48px;border-radius:8px;padding:0 15px;font:500 14px var(--sans);color:#aab6a7;gap:13px;border:0;}#game .nav-item:hover{background:#253027;color:#e5e7da;}#game .nav-item.is-active{background:#323b2b;color:#e7d2a4;box-shadow:none;}#game .nav-item.is-active:before{display:none;}.nav-icon,.nav-item.is-active .nav-icon{color:inherit;width:20px;}.sidebar-brokeprint{border:1px solid #3a4736;border-radius:10px;padding:16px;background:#212a22;}.sidebar-brokeprint span,.sidebar-brokeprint small{font:11px var(--sans);color:#a7b6a0;}.sidebar-brokeprint strong{color:#d7c08e;font-size:26px;}.sidebar-brokeprint i{background:#394534;}.sidebar-brokeprint i b{background:#c7a769;}.simulation-note{font:10px var(--sans);color:#8b9d87;}.simulation-note span{display:none;}
#game .main-column{padding:0 38px;min-width:0;}.main-topline{min-height:50px;border-color:#2b382e;color:#91a08c;font:11px var(--sans);}.market-clock{font:11px var(--sans);color:#91a08c;}.market-clock i{display:none;}#pageContent{padding:30px 0 40px;}.page-heading{margin-bottom:27px;}.page-heading h1{font:400 36px/1.15 var(--serif);color:#f0eadf;letter-spacing:-.6px;}.page-heading h1 span{color:#a9b7a3;}.section-kicker{font:11px var(--sans);letter-spacing:1.5px;color:#bfa779;margin-bottom:12px;}.heading-note{font:14px/1.5 var(--sans);color:#a5b29f;margin:10px 0 0;}.market-summary{font:12px var(--sans);color:#9aa994;}.market-summary strong{font-size:17px;color:#e4d7bb;}.game-footer{font:10px var(--sans);color:#83947d;border-color:#2b382e;}
.panel,.game-table,.house-rules,.casino-account,.trade-panel,.profile-stat,.stats-group,.plinko-controls,.rocket-controls{background:#1e2621;border:1px solid #354137;border-radius:12px;box-shadow:none;}.subhead h2{font:500 19px var(--sans);color:#ece7db;}.subhead>span,.panel-label,.stat-label{font:11px var(--sans);color:#a7b4a0;letter-spacing:.4px;}.metric-value{font:500 28px var(--sans);color:var(--ink);}.metric-foot{font:11px var(--sans);color:#94a38b;}.broke-card{background:#242d23;border-color:#3a4633;}.broke-card .metric-value,.broke-card .metric-mark{color:#d5b87e;}.progress-track{background:#394434;border-radius:4px;}.progress-track span{background:#bea16b;}.metric-card{padding:22px;}.level-title{color:#b7c1ac;font:14px var(--sans);}
.lobby-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;}.lobby-balance{background:#232c23;border:1px solid #46533a;border-radius:10px;padding:15px 24px;min-width:260px;display:grid;gap:3px;}.lobby-balance>span{font-size:12px;color:#adbaa3;}.lobby-balance strong{font:500 27px var(--sans);font-variant-numeric:tabular-nums;color:#e7c995;}.lobby-balance small{font-size:11px;color:#93a18b;}.lobby-section-title{display:flex;justify-content:space-between;align-items:center;margin:35px 0 18px;}.lobby-section-title h2{font:500 20px var(--sans);margin:0;}.lobby-section-title>span{font-size:12px;color:#95a28d;}.lobby-games{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;}.lobby-game{position:relative;display:flex;flex-direction:column;padding:0;text-align:left;border:1px solid #3a4739;border-radius:12px;background:#242d25;overflow:hidden;color:var(--ink);transition:border-color .18s,transform .18s;}.lobby-game:hover{border-color:#a78f5c;transform:translateY(-3px);}.lobby-art{height:205px;position:relative;display:flex;align-items:center;justify-content:center;width:100%;background:radial-gradient(ellipse at 50% 90%,#4b4830 0,transparent 68%),#202820;border-bottom:1px solid #3a4739;overflow:hidden;}.game-blackjack .lobby-art{background:radial-gradient(ellipse at 50% 90%,#354e3c,transparent 75%),#1b2923;}.game-plinko .lobby-art{background:radial-gradient(ellipse at 50% 80%,#504334,transparent 75%),#29271e;}.game-rocket .lobby-art{background:radial-gradient(ellipse at 75% 20%,#414732,transparent 75%),#202922;}.lobby-game-copy{display:grid;gap:6px;padding:21px 20px 15px;}.lobby-game-copy>small{font:11px var(--sans);color:#acb89f;}.lobby-game-copy>strong{font:400 26px var(--serif);letter-spacing:-.4px;}.lobby-game-copy>span{font:12px var(--sans);color:#a8b39d;}.lobby-game-go{display:flex;justify-content:space-between;align-items:center;margin:0 20px 20px;padding:11px 14px;border:1px solid #716343;border-radius:7px;color:#e5c993;background:#333224;font:600 13px var(--sans);}.lobby-game:hover .lobby-game-go{background:#cdb27b;color:#242b22;}.lobby-wheel{width:172px;height:172px;position:relative;transform:rotate(-14deg);filter:drop-shadow(0 12px 15px #0007);}.lobby-wheel svg{width:100%;height:100%;}.lobby-wheel i{position:absolute;inset:33%;border:2px solid #b79b5e;border-radius:50%;background:radial-gradient(circle at 40% 35%,#947544,#423420 65%,#261e15);box-shadow:0 3px 10px #0008;}.lobby-wheel .pocket-red{fill:#7e3430;}.lobby-wheel .pocket-black{fill:#18241e;}.lobby-wheel .pocket-green{fill:#4a6e43;}.lobby-wheel text{fill:#eee1ba;font:8px var(--sans);text-anchor:middle;dominant-baseline:middle;}.lobby-cards{display:flex;transform:rotate(-8deg);filter:drop-shadow(0 12px 12px #0007);}.lobby-cards .playing-card{width:83px;height:117px;background:#f6efdf;color:#263027;border:1px solid #dcd1b9;border-radius:7px;transform:none;}.lobby-cards .playing-card+ .playing-card{margin-left:-18px;transform:rotate(18deg) translateY(9px);}.lobby-cards .red-suit{color:#ad4e42;}.lobby-cards .card-center{font-size:45px;}.lobby-cards .card-corner{font-size:13px;}.lobby-plinko{position:relative;width:180px;padding-top:10px;}.lobby-plinko>div{display:flex;gap:19px;justify-content:center;margin-bottom:14px;}.lobby-plinko i{width:5px;height:5px;border-radius:50%;background:#9c9d79;box-shadow:0 1px 3px #0007;}.lobby-plinko b{position:absolute;width:13px;height:13px;border-radius:50%;background:#e9c781;left:58%;top:41px;box-shadow:0 0 20px #d8ac5677;}.lobby-plinko>span{display:block;text-align:center;font:12px var(--sans);color:#c7ad76;padding-top:5px;}.lobby-flight{width:100%;height:180px;}.lobby-bottom{display:grid;grid-template-columns:1.3fr 1fr;gap:24px;margin-top:32px;}.activity-panel{padding:23px;min-height:235px;}.lobby-empty{padding:35px 0;color:#b2bda8;}.lobby-empty strong{font:500 15px var(--sans);}.lobby-empty p{font-size:13px;color:#899b84;margin:8px 0;}.lobby-extras{display:grid;gap:16px;}.lobby-extras>button{display:flex;align-items:center;text-align:left;gap:14px;background:#202a21;border:1px solid #364532;border-radius:10px;padding:18px;color:#d6dec9;}.lobby-extras>button>span:nth-child(2){display:grid;gap:4px;}.lobby-extras small{font-size:12px;color:#9cab92;}.lobby-extras strong{font-weight:500;}.lobby-extras b{margin-left:auto;color:#c7b17e;}.extra-icon{font-size:30px;color:#c7b17e;}
.game-tabs{gap:4px;padding:5px;border-radius:10px;background:#1e2621;border:1px solid #354137;margin-bottom:22px;width:fit-content;max-width:100%;}.game-tabs button{flex:0 0 auto;min-width:110px;min-height:41px;align-items:center;justify-content:center;padding:10px 20px;border:0;border-radius:6px;background:none;color:#a7b29f;font:500 14px var(--sans);box-shadow:none;}.game-tabs button:before,.game-tabs button:after,.game-tab-art{display:none!important;}.game-tabs button.is-active{background:#3d4431;color:#edd3a1;box-shadow:none;border:0;}.casino-layout{grid-template-columns:minmax(0,1fr) 280px;gap:22px;}.casino-side{gap:18px;}.game-table{padding:22px;}.roulette-scene{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(300px,1fr);gap:24px;padding:26px;background:radial-gradient(ellipse at 25% 45%,#354b35,transparent 65%),#243d2c;border:1px solid #556044;border-radius:10px;box-shadow:inset 0 0 0 5px #1a2d22;}.wheel-wrap{width:min(100%,300px);}.roulette-controls h2{font:500 23px var(--sans);color:#ede8d8;}.roulette-controls .game-description{font:12px/1.6 var(--sans);color:#b7c4aa;margin-bottom:20px;}.roulette-controls .game-kicker{display:none;}.roulette-controls .bet-label{color:#b7c4aa;}.bet-label{font:12px var(--sans);margin:15px 0 8px;}.bet-input,.trade-input-wrap{background:#141d17;color:#eee8da;border:1px solid #526048;border-radius:7px;font:500 17px var(--sans);min-height:46px;}.bet-input:focus,.trade-input-wrap:focus-within{outline:2px solid #c7aa6d;outline-offset:2px;}.bet-options,.quick-amounts{gap:6px;margin-top:8px;}.bet-options button,.quick-amounts button{background:#2a3529;color:#c9d0bb;border:1px solid #48563f;border-radius:5px;min-height:32px;font:12px var(--sans);}.bet-options button:before,.bet-options button:after{display:none;}.bet-colors{gap:7px;}.bet-colors button{font:600 12px var(--sans);min-height:36px;border-radius:5px;}.roulette-layout{margin:14px 0;}.roulette-cell{font-size:11px;}.roulette-cell.selected,.roulette-dozens button.selected,.roulette-parity button.selected,.bet-colors button.selected{outline:2px solid #f1cd87;outline-offset:-2px;box-shadow:inset 0 0 0 2px #f1cd87;}.roulette-outside-bets button{font-size:10px;min-height:31px;}.button{min-height:46px;border-radius:7px;font:600 14px var(--sans);}.button-primary{background:#d0b27a;color:#20291f;}.button-primary:hover{background:#e1c68f;transform:none;}.button-secondary{background:#35432f;color:#e7e8d7;border:1px solid #66754f;border-radius:6px;min-height:43px;font:600 13px var(--sans);}.game-feedback{font:13px/1.6 var(--sans);color:#b5c1a9;min-height:36px;}.game-feedback strong{color:#dfc48c;}.house-rules,.casino-account{padding:20px;}.rule-row{font:13px var(--sans);padding:11px 0;border-color:#364433;}.rule-row strong{font-size:12px;}.casino-account strong{color:#e2c38d;font:500 26px var(--sans);}.casino-account .metric-foot{display:block;margin-top:15px;line-height:1.7;}.roulette-history{border-color:#394735;padding-top:17px;}.roulette-history-label,.roulette-history-empty{font-size:11px;color:#a2b197;}.blackjack-heading h2,.game-view-heading h2{font:500 24px var(--sans);color:#e6e8d9;}.blackjack-heading{margin-bottom:20px;}.blackjack-felt{min-height:330px;background:#28422f;background-image:radial-gradient(ellipse at 50% 40%,#35573b,transparent 75%);border:1px solid #68724d;border-radius:14px;box-shadow:inset 0 0 0 5px #1d3125;padding:28px;}.blackjack-felt:after{display:none;}.hand-label{font:12px var(--sans);color:#bfcdae;}.card-row{margin-top:10px;min-height:94px;}.playing-card{background:#f5eedf;border-radius:7px;}.blackjack-actions{margin-top:20px;}.blackjack-status{color:#c1c9b4;font:14px/1.6 var(--sans);}.game-kicker,.deck-count{font:11px var(--sans);color:#acb79e;}.plinko-layout,.rocket-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 280px;}.plinko-controls,.rocket-controls{padding:22px;}.plinko-board{border:1px solid #49553d;border-radius:10px;background:#18251c;background-image:none;height:420px;}.plinko-peg-row i{background:#819773;box-shadow:0 2px 3px #0009;}.plinko-ball{background:#e8c482;box-shadow:0 0 12px #dab36666;}.plinko-bin{background:#3c4932;color:#d3dcbf;border-color:#5c6b46;border-radius:4px;font-size:10px;}.plinko-bin.high-multiplier{background:#76603d;color:#f6ddb0;border-color:#a28b57;}.risk-select button{font:12px var(--sans);background:#273524;color:#b9c5a9;border-color:#46573b;min-height:38px;}.risk-select button.is-active{background:#4a5033;color:#e6d2a2;border-color:#a58d59;}.rocket-sky{height:340px;background:#17251b;border:1px solid #495a3e;border-radius:10px;}.rocket-trail path{stroke:#d5b87e;}.rocket-multiplier{color:#ead6ae;font:500 60px var(--sans);}.rocket-caption{color:#a3b394;font-size:11px;}.rocket-ship{color:#d9bb7d;}.rocket-summary,.plinko-summary,.last-drop,.rocket-last-result{font:12px/1.7 var(--sans);color:#b2c0a2;}
.asset-row:hover,.asset-row.is-selected{background:#2c3829;}.table-head{background:#253022;color:#9eae94;font-size:11px;}.asset-name strong{color:#e4e8d7;font-size:14px;}.asset-price{font-size:14px;}.asset-symbol,.asset-price small{color:#91a286;font-size:11px;}.asset-logo{background:#2e3b28;border-color:#4c5e40;border-radius:8px;color:#cfdbbe;}.trade-toggle button{background:#253022;color:#a2b594;font-size:13px;}.trade-toggle button.is-active{background:#414b31;color:#e6c992;}.trade-description,.trade-summary,.holding-note{font-size:13px;color:#a4b598;}.profile-row{font:14px var(--sans);border-color:#364433;}.profile-row span:first-child{color:#a5b39a;}.profile-row strong{color:#e0e5d2;}.stats-group h2{font:12px var(--sans);color:#cbb47e;}.portfolio-total>strong,.portfolio-value{color:#eadbb9;}.allocation-legend{font-size:13px;color:#a5b599;}.event-strip{background:#2b3524;border-color:#4b5535;}.event-copy,.event-history-copy strong{color:#ced8bf;}.neutral{color:#a5b39a!important;}.positive{color:var(--green)!important;}.negative{color:var(--red)!important;}
.modal-backdrop,.onboarding-backdrop{background:#0d160fd9;backdrop-filter:blur(7px);}.onboarding-panel,.settings-dialog,.bankruptcy-dialog{background:#222d23;border:1px solid #596044;border-radius:16px;color:#ece8db;box-shadow:0 25px 100px #0007;}.onboarding-panel{padding:36px;max-width:460px;}.onboarding-mark{border:1px solid #a28b55;border-radius:10px;background:#3c3b29;color:#debf81;font:italic 36px var(--serif);}.onboarding-panel h1{font:400 39px/1.15 var(--serif);color:#f1e9d8;}.onboarding-panel h1 span{color:#b8bd9f;}.onboarding-copy{font-size:15px;color:#b8c2a9;}.onboarding-rule{font:14px/1.7 var(--sans);border-color:#47533b;color:#aebda0;}.onboarding-rule strong{color:#d4be88;}.welcome-disclaimer{font-size:12px;color:#92a486;}.settings-dialog h2,.bankruptcy-dialog h2{color:#ead9b6;}.settings-action{border-color:#4b593e;}.settings-action strong{color:#e0e5d1;}.settings-action small{font-size:12px;}.broke-toast{background:#3d462f;border:1px solid #83915c;border-radius:8px;color:#e5d4a5;}.settings-copy{color:#aebb9c;}
@media(max-width:1200px){.lobby-games{grid-template-columns:repeat(2,minmax(0,1fr));}.lobby-art{height:195px;}.casino-layout{grid-template-columns:1fr;}.casino-side{grid-template-columns:1fr 1fr;}.plinko-layout,.rocket-layout{grid-template-columns:minmax(0,1fr) 260px;}#game .main-column{padding:0 26px;}}
@media(max-width:760px){.topbar{height:66px;padding:0 16px;}.wordmark{font-size:23px;}.topbar-right{gap:12px;}.topbar .simulation-label,.top-net-worth,.avatar-button{display:none!important;}.top-metric small{font-size:10px;}.top-balance{font-size:13px;}#game.game-shell{display:block;padding-bottom:82px;}#game .sidebar{position:fixed;z-index:10;left:0;right:0;bottom:0;height:74px;padding:8px 6px max(8px,env(safe-area-inset-bottom));background:#19231bf5;border-top:1px solid #445139;}#game .side-nav{display:flex;justify-content:space-around;gap:2px;}#game .nav-item{font-size:11px;padding:6px 9px;gap:4px;min-height:0;}#game .main-column{padding:0 16px;}.main-topline{min-height:42px;font-size:10px;}.market-clock{font-size:9px;}#pageContent{padding-top:24px;}.page-heading h1{font-size:31px;}.lobby-heading{display:block;}.lobby-balance{margin-top:20px;min-width:0;padding:15px 18px;grid-template-columns:1fr auto;align-items:center;}.lobby-balance strong{font-size:23px;grid-row:span 2;}.lobby-balance small{grid-row:2;}.lobby-section-title{margin-top:26px;}.lobby-section-title>span{font-size:11px;}.lobby-games{gap:12px;}.lobby-art{height:145px;}.lobby-wheel{width:125px;height:125px;}.lobby-cards .playing-card{width:58px;height:83px;}.lobby-cards .card-center{font-size:28px;}.lobby-cards .card-corner{font-size:10px;}.lobby-plinko{transform:scale(.75);}.lobby-game-copy{padding:16px 13px 12px;}.lobby-game-copy strong{font-size:24px;}.lobby-game-copy small{font-size:10px;}.lobby-game-copy>span{font-size:11px;min-height:32px;}.lobby-game-go{margin:0 13px 14px;font-size:12px;padding:9px 11px;}.lobby-bottom{grid-template-columns:1fr;gap:18px;margin-top:24px;}.activity-panel{min-height:190px;}.game-tabs{width:100%;}.game-tabs button{flex:1;min-width:0;padding:10px 8px;font-size:12px;}.casino-layout,.plinko-layout,.rocket-layout{display:grid!important;grid-template-columns:1fr;gap:16px;}.casino-side{grid-template-columns:1fr;}.game-table{padding:14px;}.roulette-scene{grid-template-columns:1fr;padding:22px 15px;gap:24px;}.wheel-wrap{width:230px;}.roulette-controls{width:100%;max-width:430px;margin:auto;}.roulette-controls .bet-label{font-size:11px;}.roulette-cell{min-width:0;font-size:10px;}.roulette-controls .game-description{margin-bottom:16px;}.plinko-board{height:330px;}.rocket-sky{height:260px;}.rocket-multiplier{font-size:46px;}.asset-name strong,.asset-price{font-size:12px;}.profile-row{font-size:12px;}.stats-groups{grid-template-columns:1fr;}.subhead>span{font-size:10px;}.onboarding-panel{padding:28px;}.onboarding-panel h1{font-size:34px;}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition:none!important;}}

.broke-card .metric-value{background:transparent;}.profile-stat .metric-value{font-size:24px;text-align:left;margin-top:9px;}.game-view-heading{margin-bottom:18px;}.bet-options button::before,.bet-options button::after{display:none;}.roulette-controls .roulette-result{color:var(--ink);}

.casino-account .metric-foot{display:flex;flex-direction:column;align-items:flex-start;gap:4px;}.game-tabs button:focus-visible{outline:2px solid var(--acid);outline-offset:1px;}.lobby-extras .broke-card{grid-column:auto;}

/* Outcome-led game motion. */
.roulette-pin{display:none;}.roulette-wheel{transition:none!important;}.wheel-wrap.is-spinning .roulette-ball{animation:none!important;}.roulette-ball{top:50%;left:50%;width:9px;height:9px;background:radial-gradient(circle at 30% 25%,#fff,#d4d0be);box-shadow:0 2px 4px #000b;transition:none;}.roulette-result{pointer-events:none;}.roulette-result strong{font-size:33px;}.roulette-result span{font-size:10px;}
.plinko-peg-rows{inset:18px 10px 54px;}.plinko-peg-row{gap:calc((100% - 20px)/13 - 5px);}.plinko-ball{transform:translate(-50%,-50%);width:11px;height:11px;pointer-events:none;}.plinko-bin.is-result{border-color:#e8c782;background:#9a7743;color:#fff0ce;animation:pocket-flash .6s ease-out;}
.rocket-ship{bottom:auto;top:89.23%;left:2.86%;background:none;transition:none!important;transform-origin:center;}.rocket-ship svg{transform:none;width:32px;height:32px;}.rocket-ship.is-crashed{color:#ee9c77;filter:drop-shadow(0 0 9px #ef7147);opacity:.65;}.rocket-trail{stroke-dasharray:none;}.rocket-multiplier{pointer-events:none;}.game-outcome{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:18px;padding:17px 20px;margin-bottom:20px;border:1px solid #6f8052;border-left:4px solid #a5c28c;background:#293926;border-radius:9px;color:#dcebd0;animation:outcome-in .25s ease-out;}.game-outcome strong{font-size:19px;white-space:nowrap;}.game-outcome span{font:14px/1.6 var(--sans);}.outcome-loss{background:#3a2823;border-color:#805447;border-left-color:#e19986;color:#f0c8b8;}.outcome-push{background:#353324;border-color:#766b49;border-left-color:#d4bd7a;color:#e4d7ad;}
.blackjack-felt .playing-card{position:relative;perspective:500px;}.card-revealing{animation:card-reveal .55s ease-out both;}.card-revealing:after{content:"";position:absolute;inset:0;border:4px solid #eee4cc;border-radius:6px;background:repeating-linear-gradient(45deg,#3e5144 0 3px,#546c58 3px 5px);animation:card-back .55s step-end both;animation-delay:inherit;z-index:5;}.playing-card.is-hidden:after{display:none;}.blackjack-actions button:disabled{opacity:.45;cursor:wait;}.blackjack-status{min-height:44px;}
@keyframes card-reveal{0%{opacity:0;transform:translate(70px,-35px) rotateY(90deg) rotate(8deg);}45%{opacity:1;transform:translate(0,0) rotateY(88deg);}100%{opacity:1;transform:translate(0,0) rotateY(0);}}
@keyframes card-back{0%{opacity:1;}50%{opacity:0;}100%{opacity:0;}}
@keyframes pocket-flash{0%{box-shadow:0 0 18px #e9c78788;}100%{box-shadow:none;}}
@keyframes outcome-in{from{opacity:0;transform:translateY(5px);}to{opacity:1;transform:translateY(0);}}
@media(max-width:760px){.game-outcome{grid-template-columns:1fr;gap:5px;padding:14px 16px;}.game-outcome strong{font-size:18px;}.game-outcome span{font-size:13px;}}
@media(prefers-reduced-motion:reduce){.card-revealing{animation:none;}.card-revealing:after{display:none;}}

/* Progressive games */
.game-tabs{overflow-x:auto;max-width:100%;scrollbar-width:thin}.game-tabs button{flex:0 0 auto;min-width:108px}
.adventure-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px}.adventure-controls{padding:26px}.adventure-controls h2{font:32px Georgia,serif;margin:8px 0 26px}.adventure-controls .button{width:100%;margin-top:12px}.adventure-controls select{width:100%;height:48px;border:1px solid #3c5045;background:#17291f;border-radius:8px;color:#ece6d7;padding:0 12px;font:inherit;margin-bottom:8px}.adventure-controls .field-label{margin-top:20px}.adventure-cashout{background:#314e3c;color:#e6d2a9;border:1px solid #5a765f}.adventure-rules{border-top:1px solid #354b3c;padding-top:24px;margin-top:28px;font-size:13px;line-height:1.7;color:#a8b6aa}.adventure-rules strong{color:#e4dccb}.adventure-rules small{font-size:11px}.adventure-error{color:#e9a699;min-height:18px;font-size:12px}.adventure-wallet{font-size:12px;color:#a7b7aa;display:flex;justify-content:space-between}.adventure-stage{padding:28px;background:radial-gradient(ellipse at 50% 25%,#284935,#192e23 70%);min-width:0}.adventure-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.adventure-top span{font-size:11px;letter-spacing:1.2px;color:#b6c1ad}.adventure-top strong{font:36px Georgia,serif;color:#ead3a3}.mines-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;max-width:510px;margin:auto}.mine-tile{aspect-ratio:1;border-radius:12px;background:linear-gradient(145deg,#35523d,#293f30);border:1px solid #4c6651;box-shadow:0 5px 0 #14251b;color:#9dad86;display:grid;place-items:center;transition:transform .15s,background .2s;min-width:0;padding:8px}.mine-tile:not(:disabled):hover{background:#486448;transform:translateY(-3px)}.tile-seal{font-size:26px;opacity:.65}.mine-tile svg{width:70%;height:70%}.mine-tile.is-gem{background:#244d3d;border-color:#5b997e;box-shadow:none;animation:gemReveal .3s ease-out}.mine-tile.is-mine{background:#54342c;border-color:#b87160;box-shadow:none}.mine-tile.is-unpicked{opacity:.38}.mine-tile:disabled{cursor:default}.adventure-bottom{display:flex;justify-content:space-around;gap:10px;margin-top:30px;color:#9aac9c;font-size:12px}.adventure-bottom b{color:#e7ddc6}.stage-instruction{text-align:center;color:#adb8a4;font-size:13px;margin:24px 0 0}.lobby-mines{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:150px;margin:auto;transform:rotate(-8deg)}.lobby-mines i{display:grid;place-items:center;aspect-ratio:1;border:1px solid #50614a;background:#30452f;border-radius:7px;font-style:normal;color:#c6b07d}.lobby-mines svg{width:34px}.lobby-chicken svg{height:125px;width:125px;filter:drop-shadow(0 8px 10px #0c1b1699)}.lobby-chicken{text-align:center}.lobby-chicken span{display:block;color:#bdae84;font-size:9px;letter-spacing:2px;margin-top:6px}.chicken-road-scroll{overflow-x:auto;scrollbar-width:thin;border:1px solid #496047;border-radius:12px}.chicken-road{display:flex;position:relative;width:1040px;height:285px;background:#29312c;overflow:hidden}.road-bank{width:80px;flex:none;background:repeating-linear-gradient(0deg,#39573b 0px,#39573b 20px,#3c5d40 21px);color:#c9cbaa;display:flex;align-items:flex-end;justify-content:center;padding-bottom:25px;font-size:10px;letter-spacing:1px}.chicken-lane{width:88px;flex:none;position:relative;border-right:2px dashed #7b806e66}.chicken-lane>span{position:absolute;top:18px;width:100%;text-align:center;font-size:13px;color:#ddd4b6}.chicken-lane>small{position:absolute;bottom:24px;width:100%;text-align:center;color:#878f81}.chicken-lane.is-cleared{background:#31533b80}.chicken-lane.is-cleared>span{color:#a9d4ad}.chicken-lane.is-cleared .road-car{display:none}.road-car{position:absolute;left:25px;width:36px;height:67px;border-radius:9px;background:#987a51;border:2px solid #bb9d6e;animation:roadTraffic 5s linear infinite;animation-delay:var(--car-delay);box-shadow:-5px 11px 0 -2px #172119,5px 11px 0 -2px #172119,-5px -11px 0 -2px #172119,5px -11px 0 -2px #172119}.road-car:before{content:"";position:absolute;inset:12px 4px 28px;background:#263b36;border-radius:4px}.chicken-bird{position:absolute;top:117px;left:calc(var(--bird-column)*88px - 38px);width:65px;height:65px;z-index:2;filter:drop-shadow(0 4px 3px #0008)}.chicken-bird svg{width:100%;height:100%}.chicken-bird.is-hopping{animation:chickenHop .85s ease-in-out}.chicken-bird.is-hit{filter:grayscale(1);transform:rotate(-45deg);opacity:.65}.chicken-lane.is-collision{background:#7d423466}.chicken-lane.is-collision .road-car{animation:none;top:110px}.chicken-next{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-top:26px;color:#9eb49f}.chicken-next strong{display:block;margin-top:6px;color:#ecd6aa;font-size:20px;font-weight:500}
@keyframes gemReveal{from{transform:scale(.8)}to{transform:scale(1)}}@keyframes roadTraffic{from{transform:translateY(-85px)}to{transform:translateY(380px)}}@keyframes chickenHop{0%{left:calc(var(--bird-from)*88px - 38px);transform:translateY(0)}50%{transform:translateY(-28px)}100%{left:calc(var(--bird-column)*88px - 38px);transform:translateY(0)}}
@media(max-width:1000px){.adventure-layout{grid-template-columns:255px minmax(0,1fr)}.adventure-stage{padding:20px}.adventure-controls{padding:20px}.mines-grid{gap:7px}}@media(max-width:700px){.adventure-layout{display:flex;flex-direction:column}.adventure-stage{order:-1}.adventure-controls h2{margin-bottom:14px}.adventure-rules{margin-top:20px;padding-top:18px}.adventure-top{margin-bottom:18px}.chicken-road{height:235px}.chicken-bird{top:98px}.adventure-bottom{font-size:11px}.game-tabs button{min-width:93px}.chicken-next{margin-top:18px}.lobby-games{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.road-car{animation:none;top:20px}.chicken-bird.is-hopping{animation:none}.mine-tile.is-gem{animation:none}}

/* The supplied Brokeprint identity and vintage deck. */
.wordmark{display:flex;align-items:center;gap:0}.wordmark>img{display:block;width:220px;height:56px;object-fit:contain;mix-blend-mode:screen}.onboarding-mark{background:none!important;border:0!important;box-shadow:none!important;width:70px!important;height:84px!important}.onboarding-mark img{width:100%;height:100%;object-fit:contain;mix-blend-mode:screen}.playing-card.supplied-card{padding:0;background:#f3eedc;overflow:hidden;aspect-ratio:1/2;height:auto;border:1px solid #b8ad8c;border-radius:5px}.playing-card.supplied-card>img{display:block;width:100%;height:100%;object-fit:fill}.playing-card.is-hidden{aspect-ratio:1/2;height:auto;background:repeating-linear-gradient(45deg,#14231b 0,#14231b 5px,#1a2c21 5px,#1a2c21 6px);border:2px solid #b39965;border-radius:5px;display:grid;place-items:center}.playing-card.is-hidden:before{content:"";position:absolute;inset:6px;border:1px solid #a58b57;border-radius:2px}.playing-card.is-hidden:after{content:none}.card-back-mark{width:58%;height:auto;mix-blend-mode:screen}.lobby-cards .playing-card{width:65px!important;height:132px!important}.lobby-cards{height:150px}.card-revealing:before{background:#17291e!important}
@media(max-width:600px){.wordmark>img{width:165px;height:42px}.playing-card.supplied-card,.playing-card.is-hidden{width:58px!important;min-width:58px!important;height:116px!important}}

@media(min-width:1100px){.lobby-games{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Standard poker-card proportions, shared by all card games. */
.playing-card.supplied-card,.playing-card.is-hidden{flex:0 0 72px;width:72px;min-width:72px;height:101px;aspect-ratio:5/7;border-radius:6px}
.card-row{flex-wrap:wrap;min-height:108px}.playing-card.supplied-card>img{object-fit:fill}.lobby-cards{height:auto;align-items:center}.lobby-cards .playing-card{flex-basis:83px;width:83px!important;min-width:83px;height:116px!important}
@media(max-width:600px){.playing-card.supplied-card,.playing-card.is-hidden{flex-basis:58px;width:58px!important;min-width:58px!important;height:81px!important}.card-row{min-height:88px}.lobby-cards .playing-card{flex-basis:68px;width:68px!important;min-width:68px!important;height:95px!important}}

/* Transparent brand assets retain their true colors without background blending. */
.wordmark>img,.onboarding-mark img,.card-back-mark{mix-blend-mode:normal}.wordmark>img{width:220px;height:56px}.onboarding-mark{width:80px!important;height:80px!important}.onboarding-mark img{object-fit:contain}.card-back-mark{width:74%;height:auto;object-fit:contain}
@media(max-width:600px){.wordmark>img{width:165px;height:42px}}

#pageContent:fullscreen{background:#0b1020;padding:20px;overflow:auto;max-width:none}#pageContent:fullscreen>.page-heading,#pageContent:fullscreen>.game-tabs{display:none}#pageContent:fullscreen .game-workspace{min-height:calc(100dvh - 104px)}
