:root {
  --ink: #1c2824;
  --forest: #183c35;
  --forest-2: #244f45;
  --cream: #f3efe5;
  --paper: #fffdf7;
  --gold: #c3a15c;
  --gold-light: #e8d8b4;
  --red: #9b443d;
  --muted: #6d756f;
  --line: #d9d4c7;
  --shadow: 0 18px 60px rgba(21, 43, 36, .13);
  --radius: 18px;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(195,161,92,.55); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: 'Prata', serif; font-weight: 400; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.screen { min-height: 100vh; }

.home-screen {
  display: flex; flex-direction: column; padding: 0 clamp(24px, 5vw, 76px);
  background:
    radial-gradient(circle at 14% 30%, rgba(195,161,92,.14), transparent 30%),
    linear-gradient(125deg, #f7f3e9 0%, #efe9dc 100%);
  position: relative; overflow: hidden;
}
.home-screen::before {
  content: ''; position: absolute; width: 620px; height: 620px; right: -290px; top: -270px;
  border: 1px solid rgba(24,60,53,.12); border-radius: 50%; box-shadow: 0 0 0 55px rgba(24,60,53,.025), 0 0 0 110px rgba(24,60,53,.025);
  pointer-events: none;
}
.home-nav, .game-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--forest); text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-family: 'Prata', serif; font-size: 15px; transform: rotate(-3deg); }
.text-button { border: 0; background: transparent; color: var(--forest); font-weight: 700; padding: 10px 0; }
.text-button span { margin-left: 8px; color: var(--gold); }
.hero { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(350px, .75fr); align-items: center; gap: clamp(48px, 8vw, 130px); max-width: 1380px; width: 100%; margin: 0 auto; padding: 44px 0 70px; }
.eyebrow { color: var(--gold); font-size: 11px; line-height: 1.4; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 16px; }
.hero h1 { font-size: clamp(42px, 5.2vw, 75px); line-height: 1.13; letter-spacing: -.04em; color: var(--forest); margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lead { max-width: 600px; font-size: 17px; line-height: 1.75; color: #5f6862; }
.home-features { display: flex; gap: 28px; margin-top: 35px; color: var(--forest); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.home-features span { display: flex; align-items: center; gap: 9px; }
.home-features span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.entry-card { background: var(--paper); padding: clamp(30px, 4vw, 48px); box-shadow: var(--shadow); border: 1px solid rgba(195,161,92,.28); position: relative; }
.entry-card::after { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(195,161,92,.12); pointer-events: none; }
.entry-card > * { position: relative; z-index: 1; }
.entry-ornament { position: absolute; right: 30px; top: 22px; color: var(--gold); font-size: 25px; }
.entry-card h2 { font-size: 27px; line-height: 1.3; margin-bottom: 32px; color: var(--forest); }
.field-label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 9px; color: #525e57; }
.text-input { width: 100%; height: 50px; border: 1px solid var(--line); background: #fffefa; color: var(--ink); border-radius: 8px; padding: 0 15px; transition: border-color .2s, box-shadow .2s; }
.text-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(195,161,92,.1); outline: none; }
.entry-card > .text-input { margin-bottom: 15px; }
.button { min-height: 46px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; transition: transform .18s, background .18s, box-shadow .18s; }
.button:not(:disabled):hover { transform: translateY(-1px); }
.button-primary { background: var(--forest); color: white; box-shadow: 0 6px 18px rgba(24,60,53,.16); }
.button-primary:not(:disabled):hover { background: var(--forest-2); }
.button-secondary { background: transparent; color: var(--forest); border-color: #c9c7ba; }
.button-secondary:not(:disabled):hover { background: rgba(24,60,53,.045); border-color: var(--forest); }
.button-danger { background: #9c403a; color: white; }
.button-gold { background: var(--gold); color: #172d27; }
.button-wide { width: 100%; }
.divider { display: flex; align-items: center; gap: 12px; color: #8a8e87; font-size: 11px; margin: 23px 0; }
.divider::before, .divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.join-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.code-input { text-transform: uppercase; letter-spacing: .25em; font-weight: 800; }
.connection-status { min-height: 20px; margin: 16px 0 -15px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.connection-status.error { color: var(--red); }
.connection-status.success { color: #39765e; }
.home-footer { border-top: 1px solid rgba(24,60,53,.1); min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #788079; font-size: 11px; }

.game-header { padding: 0 28px; min-height: 70px; border-bottom: 1px solid rgba(195,161,92,.25); background: var(--forest); color: white; }
.game-header .brand { color: white; }
.game-header .brand-mark { width: 36px; height: 36px; }
.game-header-actions { display: flex; align-items: center; gap: 9px; }
.icon-button { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.25); background: transparent; border-radius: 50%; color: inherit; font-weight: 700; }
.network-badge { font-size: 11px; color: #d7e2da; margin-right: 10px; }
.network-badge::before { content: ''; display: inline-block; width: 6px; height: 6px; background: #77b596; border-radius: 50%; margin-right: 7px; }

.lobby-screen { background: radial-gradient(circle at top right, #e5ddca, var(--cream) 42%); }
.lobby-main { max-width: 1050px; padding: 70px 28px; margin: 0 auto; display: grid; grid-template-columns: .85fr 1.15fr; gap: 85px; align-items: start; }
.lobby-heading { padding-top: 35px; }
.lobby-heading h1 { color: var(--forest); font-size: 42px; line-height: 1.3; margin-bottom: 20px; }
.lobby-heading h1 span { color: var(--red); letter-spacing: .12em; white-space: nowrap; }
.lobby-heading > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.lobby-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 22px; color: var(--forest); }
.section-heading span { font-size: 12px; color: var(--muted); }
.lobby-players { display: grid; gap: 8px; margin-bottom: 24px; }
.lobby-player { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #f6f3eb; border-radius: 9px; }
.lobby-player .token-icon { width: 30px; height: 30px; }
.lobby-player strong { font-size: 13px; }
.lobby-player small { margin-left: auto; color: var(--gold); font-weight: 700; }
.lobby-card > .text-input { margin-bottom: 24px; }
.token-title { font-size: 12px; margin-bottom: 12px; }
.token-picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 26px; }
.token-choice { min-width: 0; height: 64px; border: 1px solid var(--line); background: white; border-radius: 9px; display: grid; place-items: center; position: relative; }
.token-choice.selected { border: 2px solid var(--gold); background: #faf4e7; }
.token-choice:disabled { opacity: .25; }
.token-choice .token-icon { width: 37px; height: 37px; }
.token-choice span:last-child { position: absolute; bottom: 3px; font-size: 8px; overflow: hidden; max-width: 95%; white-space: nowrap; text-overflow: ellipsis; }
#start-game { margin-top: 4px; }
#lobby-hint { font-size: 11px; margin: 12px 0 0; }

.game-screen { background: #e8e3d8; }
.game-layout { display: grid; grid-template-columns: minmax(520px, 1fr) 340px; gap: 20px; max-width: 1440px; margin: 0 auto; padding: 20px; align-items: start; }
.board-wrap { min-width: 0; display: flex; justify-content: center; }
.board { width: min(100%, calc(100vh - 110px)); min-width: 520px; aspect-ratio: 1; display: grid; grid-template-columns: repeat(11, 1fr); grid-template-rows: repeat(11, 1fr); background: #e8e0cf; border: 7px solid var(--forest); box-shadow: 0 16px 40px rgba(25,47,39,.18); position: relative; }
.board-cell { background: #f8f5ec; border: 1px solid #c9c5b8; min-width: 0; min-height: 0; position: relative; padding: 4px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: filter .2s; }
.board-cell:hover { filter: brightness(.96); z-index: 3; }
.board-cell.corner { justify-content: center; align-items: center; text-align: center; padding: 5px; background: #eee8d9; }
.board-cell.corner .cell-name { font-size: clamp(7px, .72vw, 11px); line-height: 1.25; }
.cell-band { flex: 0 0 22%; margin: -4px -4px 4px; border-bottom: 1px solid rgba(0,0,0,.15); }
.cell-name { font-size: clamp(6px, .65vw, 10px); line-height: 1.18; font-weight: 800; text-align: center; overflow-wrap: anywhere; }
.cell-price { font-size: clamp(6px, .6vw, 9px); text-align: center; margin-top: auto; color: #6e736d; }
.cell-symbol { font-family: 'Prata', serif; color: var(--forest); font-size: clamp(16px, 2vw, 29px); line-height: 1; margin-bottom: 5px; }
.cell-subtitle { font-size: clamp(5px, .5vw, 8px); color: var(--muted); margin-top: 4px; }
.cell-houses { position: absolute; top: 23%; left: 3px; right: 3px; display: flex; justify-content: center; gap: 1px; }
.house-dot { width: 8px; height: 6px; background: #3d835d; border: 1px solid white; }
.house-dot.hotel { width: 13px; height: 8px; background: var(--red); }
.owner-line { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; }
.mortgaged-label { position: absolute; inset: 45% -20% auto; transform: rotate(-28deg); background: rgba(151,62,55,.88); color: white; font-size: 7px; text-align: center; padding: 2px; z-index: 1; }
.cell-tokens { position: absolute; left: 2px; right: 2px; bottom: 5px; display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; z-index: 2; }
.board-cell:has(.cell-price) .cell-tokens { bottom: 14px; }
.mini-token { width: clamp(10px, 1.3vw, 18px); height: clamp(10px, 1.3vw, 18px); border-radius: 50%; color: white; border: 1px solid white; box-shadow: 0 1px 2px #0005; display: grid; place-items: center; font-size: 7px; font-weight: 800; }
.mini-token.current { animation: tokenPulse 1.4s infinite; }
.board-center { grid-area: 2 / 2 / 11 / 11; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; background: radial-gradient(circle, #f5f0e4 0%, #e9e1d0 75%); border: 1px solid #c9c5b8; }
.board-center::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border: 1px solid rgba(195,161,92,.38); transform: rotate(45deg); }
.board-center::after { content: ''; position: absolute; width: 54%; aspect-ratio: 1; border: 1px solid rgba(195,161,92,.24); transform: rotate(45deg); }
.center-brand { position: relative; z-index: 1; }
.center-brand .brand-seal { width: 65px; height: 65px; display: grid; place-items: center; margin: 0 auto 20px; border: 2px solid var(--gold); border-radius: 50%; color: var(--gold); font-family: 'Prata',serif; font-size: 22px; }
.center-brand h2 { color: var(--forest); font-size: clamp(20px, 3.1vw, 45px); line-height: 1.15; margin: 0; }
.center-brand p { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin: 12px 0 0; font-weight: 800; }
.center-event { position: relative; z-index: 1; margin-top: 25px; max-width: 300px; color: #6a716a; font-size: 11px; line-height: 1.5; }

.side-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 10px 30px rgba(25,47,39,.08); position: sticky; top: 20px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; }
.turn-card { text-align: center; padding: 3px 0 17px; border-bottom: 1px solid var(--line); }
.turn-card .eyebrow { margin-bottom: 10px; }
.current-player { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; }
.current-player strong { font-family: 'Prata',serif; font-size: 20px; color: var(--forest); }
.current-player .token-icon { width: 28px; height: 28px; }
.dice-pair { display: flex; justify-content: center; gap: 8px; margin: 14px 0 10px; min-height: 46px; }
.die { width: 43px; height: 43px; border-radius: 9px; background: white; border: 1px solid #c8c3b5; box-shadow: 0 4px 7px #233b311a; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 7px; }
.die.rolling { animation: diceRoll .55s ease-in-out; }
.pip { width: 7px; height: 7px; background: var(--forest); border-radius: 50%; place-self: center; }
.turn-message { min-height: 32px; margin: 0 0 10px; font-size: 11px; line-height: 1.45; color: var(--muted); }
.primary-actions { display: grid; gap: 7px; }
.primary-actions .button { min-height: 42px; }
.jail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 7px; }
.jail-actions .button { font-size: 10px; padding: 0 8px; }
.debt-card { background: #f9eae5; border: 1px solid #e4c3b9; border-radius: 9px; padding: 12px; margin-bottom: 10px; }
.debt-card strong { color: var(--red); display: block; margin-bottom: 5px; }
.debt-card p { font-size: 11px; line-height: 1.4; }
.panel-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin: 0 -18px; }
.panel-tab { border: 0; background: transparent; color: var(--muted); padding: 13px 3px; font-size: 10px; font-weight: 700; border-bottom: 2px solid transparent; }
.panel-tab.active { color: var(--forest); border-bottom-color: var(--gold); }
.panel-content { min-height: 150px; overflow-y: auto; padding: 12px 0; flex: 1; }
.player-row { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; padding: 9px 2px; border-bottom: 1px solid #eeeae0; }
.player-row.current { background: #faf6eb; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.player-row.bankrupt { opacity: .45; }
.player-row .token-icon { width: 29px; height: 29px; }
.player-row-name { min-width: 0; }
.player-row-name strong { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-row-name small { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; }
.money { font-size: 12px; font-weight: 800; white-space: nowrap; }
.assets-grid { display: grid; gap: 6px; }
.asset-row { width: 100%; display: grid; grid-template-columns: 7px 1fr auto; gap: 9px; align-items: center; text-align: left; padding: 9px 7px; border: 1px solid #e6e1d5; border-radius: 7px; background: #fffefa; }
.asset-color { width: 7px; height: 30px; border-radius: 3px; }
.asset-row strong { display: block; font-size: 10px; }
.asset-row small { font-size: 9px; color: var(--muted); }
.asset-row .money { font-size: 10px; }
.empty-state { text-align: center; color: var(--muted); font-size: 11px; line-height: 1.6; padding: 28px 12px; }
.log-list { display: grid; gap: 0; }
.log-entry { font-size: 10px; line-height: 1.5; color: #5c665f; padding: 8px 2px; border-bottom: 1px solid #eeeae0; }
.log-entry.important { color: var(--red); font-weight: 700; }
.log-entry.money { color: #397058; }
.log-entry.card { color: #775b28; }
.side-panel > .button { font-size: 11px; min-height: 38px; }
.mobile-actions { display: none; }

.dialog { border: 1px solid var(--gold-light); border-radius: 16px; padding: 30px; width: min(92vw, 520px); max-height: 88vh; overflow-y: auto; color: var(--ink); background: var(--paper); box-shadow: 0 30px 100px #10271e55; }
.dialog::backdrop { background: rgba(12,32,26,.66); backdrop-filter: blur(4px); }
.dialog[open] { animation: dialogIn .2s ease-out; }
.dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: var(--muted); font-size: 27px; line-height: 1; }
.dialog h2 { color: var(--forest); font-size: 26px; line-height: 1.3; margin-bottom: 12px; padding-right: 20px; }
.dialog p { font-size: 13px; line-height: 1.6; }
.dialog-actions { display: grid; gap: 8px; margin-top: 22px; }
.dialog-price { font-family: 'Prata',serif; color: var(--red); font-size: 28px; margin: 18px 0; }
.property-swatch { height: 10px; margin: -30px -30px 25px; }
.rent-table { width: 100%; border-collapse: collapse; font-size: 11px; margin: 15px 0; }
.rent-table td { padding: 7px 3px; border-bottom: 1px solid #ebe6da; }
.rent-table td:last-child { text-align: right; font-weight: 800; }
.property-stats { display: flex; gap: 12px; margin: 15px 0; }
.property-stat { flex: 1; background: #f3f0e8; border-radius: 8px; padding: 12px; }
.property-stat small { display: block; font-size: 9px; color: var(--muted); }
.property-stat strong { font-size: 15px; }
.card-modal { text-align: center; }
.card-emblem { width: 65px; height: 65px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--gold-light); font-family: 'Prata',serif; font-size: 25px; }
.card-modal .card-text { font-family: 'Prata',serif; font-size: 19px; line-height: 1.55; color: var(--forest); }
.auction-players { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.auction-player { font-size: 10px; padding: 5px 8px; border-radius: 20px; background: #eeeae0; }
.auction-player.active { background: var(--forest); color: white; }
.bid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 10px 0; }
.bid-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.trade-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.trade-column h3 { font-size: 11px; }
.trade-column .text-input { height: 40px; margin-bottom: 10px; }
.trade-properties { display: grid; gap: 4px; max-height: 150px; overflow-y: auto; }
.check-row { display: flex; align-items: center; gap: 6px; font-size: 9px; line-height: 1.3; padding: 5px; background: #f5f2e9; border-radius: 4px; }
.check-row input { flex: 0 0 auto; }
.trade-summary { background: #f4f0e6; border-radius: 9px; padding: 15px; margin: 15px 0; font-size: 12px; line-height: 1.7; }
.rules-dialog { width: min(92vw, 650px); }
.rules-content h3 { color: var(--forest); font-size: 13px; margin: 20px 0 5px; }
.rules-content p { color: #5d6861; margin: 0; font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 20px); z-index: 100; max-width: min(90vw, 480px); background: #243c34; color: white; border: 1px solid #60766b; border-radius: 9px; padding: 12px 18px; box-shadow: 0 10px 40px #0004; font-size: 12px; line-height: 1.5; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.winner-modal { text-align: center; }
.winner-crown { font-family: 'Prata',serif; font-size: 48px; color: var(--gold); }
.winner-modal h2 { font-size: 35px; }
.winner-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0; }
.winner-stats div { padding: 15px 6px; background: #f3efe5; border-radius: 8px; }
.winner-stats strong { display: block; font-size: 19px; }
.winner-stats small { color: var(--muted); font-size: 9px; }
.token-icon { display: inline-block; flex: 0 0 auto; }

@keyframes tokenPulse { 50% { transform: translateY(-3px); box-shadow: 0 4px 5px #0004; } }
@keyframes diceRoll { 0% { transform: rotate(0) scale(.8); } 45% { transform: rotate(160deg) scale(1.13); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 1050px) {
  .game-layout { grid-template-columns: minmax(480px, 1fr) 300px; padding: 12px; gap: 12px; }
  .side-panel { padding: 13px; top: 12px; }
  .panel-tabs { margin: 0 -13px; }
  .board { min-width: 480px; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 38px; padding-top: 30px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .home-features { justify-content: center; }
  .entry-card { width: min(100%, 480px); margin: 0 auto; }
  .home-footer { flex-direction: column; justify-content: center; padding: 18px 0; text-align: center; }
  .lobby-main { grid-template-columns: 1fr; gap: 25px; padding-top: 35px; }
  .lobby-heading { text-align: center; padding-top: 0; }
  .game-layout { display: flex; flex-direction: column; padding: 8px; }
  .board-wrap { width: 100%; }
  .board { min-width: 0; width: 100%; max-width: 690px; border-width: 4px; }
  .board-cell { padding: 2px; }
  .cell-band { margin: -2px -2px 3px; }
  .cell-name { font-size: clamp(5px, 1.25vw, 9px); }
  .cell-price { font-size: clamp(5px, 1vw, 8px); }
  .board-cell.corner .cell-name { font-size: clamp(5px, 1.3vw, 9px); }
  .cell-subtitle { display: none; }
  .center-brand .brand-seal { width: 45px; height: 45px; font-size: 16px; margin-bottom: 12px; }
  .center-brand p { font-size: 7px; }
  .center-event { display: none; }
  .side-panel { position: static; width: 100%; max-width: 690px; max-height: none; margin: 0 auto; }
  .turn-card { display: none; }
  .panel-content { min-height: 160px; max-height: 300px; }
  .mobile-actions { display: block; position: sticky; bottom: 0; z-index: 10; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,253,247,.97); border-top: 1px solid var(--line); box-shadow: 0 -5px 20px #183c3512; }
  .mobile-actions .mobile-turn { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; font-size: 11px; }
  .mobile-actions .primary-actions { display: flex; gap: 7px; }
  .mobile-actions .primary-actions > .button { flex: 1; }
  .mobile-actions .jail-actions { display: flex; }
  .mobile-actions .debt-card { margin: 0 0 7px; padding: 8px; }
  .mobile-actions .debt-card p { display: none; }
  .game-screen { padding-bottom: 0; }
}

@media (max-width: 520px) {
  .home-screen { padding: 0 20px; }
  .home-nav { min-height: 70px; }
  .home-nav .brand { font-size: 13px; }
  .home-nav .brand-mark { width: 34px; height: 34px; }
  .home-nav .text-button { font-size: 11px; }
  .hero { padding: 38px 0 45px; }
  .hero h1 { font-size: 39px; }
  .hero-lead { font-size: 14px; }
  .home-features { gap: 12px; font-size: 9px; }
  .entry-card { padding: 30px 24px; }
  .entry-card h2 { font-size: 23px; }
  .game-header { min-height: 56px; padding: 0 12px; }
  .game-header .brand { font-size: 12px; }
  .game-header .brand-mark { width: 30px; height: 30px; }
  .network-badge { display: none; }
  .lobby-main { padding: 32px 16px; }
  .lobby-heading h1 { font-size: 31px; }
  .lobby-card { padding: 20px; }
  .token-picker { gap: 5px; }
  .token-choice { height: 52px; }
  .token-choice .token-icon { width: 31px; height: 31px; }
  .board-center { padding: 6px; }
  .center-brand h2 { font-size: 20px; }
  .center-brand p { letter-spacing: .1em; }
  .center-brand .brand-seal { width: 35px; height: 35px; margin-bottom: 8px; }
  .side-panel { padding: 12px; }
  .panel-tabs { margin: 0 -12px; }
  .dialog { padding: 24px 20px; }
  .property-swatch { margin: -24px -20px 22px; }
  .trade-columns { gap: 8px; }
  .winner-stats { gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
