@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #111310;
  --panel: #181a17;
  --panel-2: #20221f;
  --line: #30332e;
  --ink: #f2f1e9;
  --muted: #92958c;
  --faint: #666a62;
  --acid: #c8aa70;
  --green: #83bc94;
  --red: #d77f78;
  --felt: #173526;
  --brass: #aa8a50;
  --mono: "DM Mono", "Cascadia Code", Consolas, monospace;
  --sans: "Manrope", "Segoe UI Variable", "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --radius: 5px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; 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: 70px; display: flex; justify-content: space-between; align-items: center; padding: 0 5.5vw; border-bottom: 1px solid #ffffff12; }
.wordmark { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: 0; }
.brand-glyph, .avatar-mark { display: grid; place-items: center; width: 29px; height: 29px; color: var(--bg); background: var(--acid); border-radius: 3px; font: 800 17px/1 var(--sans); letter-spacing: 0; }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.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-balance { color: var(--ink); font: 12px var(--mono); }
.avatar-button { border: 1px solid var(--line); border-radius: 3px; background: var(--panel); width: 30px; height: 30px; font: 11px 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: 222px minmax(0, 1fr); min-height: calc(100vh - 70px); max-width: 1600px; margin: auto; }
.sidebar { border-right: 1px solid #ffffff12; padding: 25px 14px 24px 5.5vw; position: relative; display: flex; flex-direction: column; }
.sidebar-account { display: flex; gap: 11px; align-items: center; padding: 0 0 27px; border-bottom: 1px solid #ffffff12; }
.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 { 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); }
.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; }
}
@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%; }
}