:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #101329;
  color: #f6f6fb;
  --page: #101329;
  --panel: #191e3b;
  --panel-bright: #222849;
  --line: #373c62;
  --muted: #b2bad7;
  --gold: #fbd477;
  --purple: #b7a8fb;
  --ink: #1a2640;
  --copper: #e1a36b;
  --sky: #78c0ef;
  --rose: #df90bf;
  --amber: #f3a376;
  --red: #ef8088;
  --green: #72cf9c;
  --violet: #aa96f5;
  --station: #7fc9c6;
  --utility: #aeb7e2;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 300px; min-height: 100vh; margin: 0; background: radial-gradient(ellipse at 25% -18%, #303960 0, #181c38 36%, var(--page) 72%); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
button, a, input, select, canvas { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--purple); color: #151731; }
.shell { width: min(1490px, calc(100% - 72px)); margin-inline: auto; }
.topbar { background: #12162de8; border-bottom: 1px solid #3a4065; }
.navbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1.33rem; font-weight: 790; letter-spacing: -.045em; color: #fff; text-decoration: none; white-space: nowrap; }
.brand b { color: var(--gold); font-weight: inherit; }
.brand-die { width: 28px; height: 28px; transform: rotate(-12deg); border-radius: 7px; background: #ffd787; box-shadow: 0 3px 0 #c3954d; display: grid; grid-template: repeat(2, 4px) / repeat(2, 4px); gap: 5px; place-content: center; }
.brand-die i { background: #212549; border-radius: 50%; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.quiet { border: 0; background: transparent; color: #c0c6e0; border-radius: 6px; padding: 5px 3px; font-weight: 650; font-size: .875rem; text-align: left; }
.quiet:hover { color: var(--gold); }
.nav-actions .quiet span { display: inline-grid; place-items: center; margin-right: 5px; font-weight: 700; width: 17px; height: 17px; border: 1px solid #c0c6e0; border-radius: 50%; font-size: .72rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid transparent; border-radius: 8px; min-height: 39px; padding: 9px 13px; font-weight: 730; font-size: .9rem; line-height: 1.16; color: #f5f4fe; transition: background .15s, border-color .15s, box-shadow .15s; }
.primary { color: #282133; background: #fbd477; border-color: #ffe19b; box-shadow: 0 2px 0 #c48d45; }
.primary:hover { background: #ffe8a5; }
.secondary, .subtle { background: #292e51; border-color: #484f79; }
.secondary:hover, .subtle:hover { background: #3a416c; border-color: #777db0; }
.danger { background: #573549; border-color: #865368; color: #ffe0e9; }
.intro { padding: 21px 0 15px; }
.intro h1 { margin: 0; font-size: clamp(1.95rem, 3.6vw, 3.05rem); font-weight: 830; letter-spacing: -.063em; line-height: 1.02; }
.intro h1 span { color: var(--gold); }
.intro p { color: #c1c9e1; max-width: 42rem; margin: 8px 0 0; font-size: 1rem; line-height: 1.45; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 316px); align-items: start; gap: 20px; }
.workspace.in-room { margin-top: 19px; }
.table-section, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 28px #090b1a40; }
.table-header { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 51px; padding: 0 15px; }
.table-header > div { display: flex; gap: 8px; align-items: center; }
.table-icon { color: #d3b7ff; font-size: 21px; }
.table-header h2 { margin: 0; font-size: 1.06rem; font-weight: 770; }
.table-meta { text-align: right; color: #bcc4e1; font-size: .875rem; font-variant-numeric: tabular-nums; }
.board-frame { padding: 0 10px; }
.board { --spaces: 9; position: relative; isolation: isolate; container-type: inline-size; display: grid; aspect-ratio: 1.76; min-width: 0; border: 1px solid #8190af; border-radius: 9px; overflow: hidden; background: #697798; gap: 1px;
  grid-template-columns: 1.34fr repeat(var(--spaces), minmax(0, 1fr)) 1.34fr;
  grid-template-rows: 1.12fr repeat(var(--spaces), minmax(0, 1fr)) 1.12fr; }
.board.is-legacy { aspect-ratio: 1.38; }
.board-center { position: relative; isolation: isolate; overflow: hidden; background: #c4e3e8; grid-column: 2 / -2; grid-row: 2 / -2; }
.geographic, .city-art { position: absolute; inset: 0; }
.city-art { display: grid; place-items: end center; padding-bottom: 7%; background: #080f22 url('/city.png') 50% 42% / contain no-repeat; }
.city-art span { text-align: center; color: #dcf3ee; text-shadow: 0 3px 10px #050c1c; font: 700 clamp(1rem, 5cqw, 3.2rem) Georgia, serif; letter-spacing: .05em; }
.map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.map-canvas:focus-visible { outline-offset: -3px; }
.map-canvas[data-cursor="pin"] { cursor: pointer; }
.map-canvas[data-cursor="grabbing"] { cursor: grabbing; }
.map-chip { position: absolute; display: grid; place-items: center; top: 11px; left: 12px; min-height: 26px; background: #f5f9f385; border: 1px solid #6c8a9255; padding: 3px 9px; border-radius: 5px; color: #233d55; font-size: .83rem; font-weight: 800; pointer-events: none; }
.map-compass { position: absolute; right: 15px; top: 11px; color: #405f72; display: grid; place-items: center; gap: 0; line-height: 1; pointer-events: none; }
.map-compass b { font-size: 10px; }
.map-compass span { font-size: 21px; }
.map-tools { position: absolute; display: flex; gap: 3px; align-items: center; right: 9px; bottom: 9px; padding: 3px; border: 1px solid #7397a487; border-radius: 8px; background: #e9f5f0e8; box-shadow: 0 3px 10px #1b4e6530; }
.map-btn { display: grid; place-items: center; border: none; border-radius: 5px; width: 28px; height: 28px; padding: 0; background: transparent; color: #233b54; font-weight: 770; font-size: 18px; line-height: 1; }
.map-btn:hover { background: #c5e1e6; }
.map-btn:focus-visible { outline-color: #435681; outline-offset: 1px; }
.map-btn:last-child[data-map-command="expand"] { width: auto; padding: 0 6px; gap: 4px; display: flex; font-size: .76rem; }
.map-btn[data-map-command="expand"] span { font-size: 17px; }
.map-status { margin: 0; position: absolute; max-width: 70%; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 8px 12px; border-radius: 6px; color: #253c59; background: #eff8f1eb; font-size: .875rem; text-align: center; pointer-events: none; }
.tile { --band: #9aa8c9; position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: .2em; min-width: 0; min-height: 0; width: 100%; border: 0; padding: 3px 2px; text-align: center; color: #1b2945; background: #f1f0fa; line-height: 1; overflow: hidden; }
.tile[data-kind="property"] { background: color-mix(in srgb, var(--band) 20%, #fffdfa); }
.tile[data-kind="station"] { background: #dcf1ef; }
.tile[data-kind="utility"] { background: #e7e7f6; }
.tile[data-kind="start"] { background: #a8e1ae; color: #153e2e; }
.tile[data-kind="hall"] { background: #f9d398; color: #573915; }
.tile[data-kind="park"] { background: #c0ddf8; color: #223f65; }
.tile[data-kind="detour"] { background: #f2bec7; color: #631f3e; }
.tile[data-kind="chance"] { background: #e9dcfa; color: #472e62; }
.tile[data-kind="tax"] { background: #f6e3e0; color: #6b343c; }
.tile[data-kind="grant"] { background: #e3ebc9; color: #3e5125; }
.tile:is(:hover, :focus-visible) { z-index: 3; box-shadow: inset 0 0 0 2px #2e3e73; filter: brightness(1.06); }
.tile:focus-visible { outline: 0; }
.tile[data-current="true"] { box-shadow: inset 0 0 0 2px #2a315b, inset 0 0 0 4px #fff1ac; z-index: 2; }
.tile[data-highlight="true"] { box-shadow: inset 0 0 0 2px #51488c; filter: brightness(1.11); }
.tile[data-mortgaged="true"] { filter: saturate(.36); }
.tile-name { flex-shrink: 0; line-height: 1.1; font-size: clamp(.49rem, 1.29cqw, .84rem); font-weight: 780; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.tile-note { font-size: clamp(.45rem, 1.14cqw, .74rem); color: #384e69; font-weight: 650; }
.tile-icon { font-size: clamp(.62rem, 1.75cqw, 1.17rem); line-height: .92; font-weight: 750; }
.tile[data-corner="true"] .tile-name { font-weight: 830; }
.tile-band { position: absolute; background: var(--band); }
.tile[data-side="top"][data-ownable="true"] { padding-bottom: 7px; }
.tile[data-side="bottom"][data-ownable="true"] { padding-top: 7px; }
.tile[data-side="left"][data-ownable="true"] { padding-right: 7px; }
.tile[data-side="right"][data-ownable="true"] { padding-left: 7px; }
.tile[data-side="top"] .tile-band { inset: auto 0 0; height: 5px; }
.tile[data-side="bottom"] .tile-band { inset: 0 0 auto; height: 5px; }
.tile[data-side="left"] .tile-band { inset: 0 0 0 auto; width: 5px; }
.tile[data-side="right"] .tile-band { inset: 0 auto 0 0; width: 5px; }
.tile-owner { position: absolute; top: 4px; right: 4px; color: #242744; border-radius: 4px; background: var(--owner); padding: 1px 3px; font-weight: 850; font-size: clamp(.4rem, .98cqw, .64rem); line-height: 1.15; }
.tile-owner:empty { display: none; }
.tokens { position: absolute; display: flex; flex-wrap: wrap; left: 2px; bottom: 2px; max-width: calc(100% - 4px); gap: 1px; }
.token { width: clamp(8px, 1.75cqw, 18px); height: clamp(8px, 1.75cqw, 18px); display: grid; place-items: center; border-radius: 4px; border: 1px solid #3a3d65; background: var(--piece); color: #212742; font-size: clamp(.32rem, 1.13cqw, .70rem); font-weight: 850; }
.board-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 33px; padding: 3px 12px; color: #bdc7e2; font-size: .8125rem; }
.map-credit { font-size: .76rem; white-space: nowrap; }
.atlas-picker { border-bottom: 1px solid var(--line); padding: 0 10px 10px; margin-bottom: 10px; }
.atlas-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.atlas-title h2 { margin: 0; font-size: .98rem; font-weight: 780; }
.atlas-title span { color: #b7c0df; font-size: .81rem; }
.map-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.map-option { min-width: 0; border: 1px solid #444a72; border-radius: 8px; background: #252b4c; color: #eff2f9; overflow: hidden; text-align: left; padding: 4px; }
.map-option:hover { background: #373d65; }
.map-option[aria-pressed="true"] { border-color: #f8d67d; box-shadow: inset 0 0 0 1px #f8d67d; background: #3b3550; }
.map-option canvas { width: 100%; height: 35px; display: block; border-radius: 4px; background: #c1dce3; }
.map-option span { display: block; padding: 4px 4px 2px; min-height: 24px; font-size: clamp(.70rem, 1.1vw, .9rem); line-height: 1.1; font-weight: 750; overflow-wrap: anywhere; }
.sidebar { display: grid; gap: 12px; }
.panel { background: linear-gradient(150deg, #222749, var(--panel) 72%); padding: 19px; }
.panel h2, .dialog h2 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -.035em; font-weight: 790; }
.panel p { margin: 6px 0 16px; color: #c2c9df; font-size: .95rem; line-height: 1.45; }
.form-message, .panel p.form-message, .dialog p.form-message { color: #ffc2d3; margin: 10px 0 0; font-size: .875rem; }
form label, .field-label { display: block; color: #e7e9f7; font-size: .875rem; font-weight: 650; }
input, select { width: 100%; min-width: 0; display: block; color: #f3f4fc; background: #121831; border: 1px solid #484f7a; border-radius: 7px; min-height: 40px; padding: 9px 10px; }
input::placeholder { color: #9faac9; }
select { appearance: none; padding-right: 24px; background-image: linear-gradient(45deg, transparent 50%, #cdd1eb 50%), linear-gradient(135deg, #cdd1eb 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }
#player-form { display: grid; gap: 8px; }
#player-form > .button { min-height: 42px; }
.selected-map { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; margin: 5px 0; padding: 8px; border: 1px solid #434a73; border-radius: 7px; font-weight: 700; font-size: .92rem; background: #161c37; }
.selected-map > span:first-child { color: #d1bdfa; font-size: 1.1rem; }
.selected-map small { color: #b2bddc; font-weight: 550; font-size: .78rem; white-space: nowrap; }
.practice-panel { overflow: hidden; position: relative; }
.practice-panel h2 { max-width: calc(100% - 52px); font-size: 1.12rem; }
.practice-panel p { max-width: 13rem; margin-bottom: 12px; }
.practice-panel .button { width: 100%; }
.practice-dice { position: absolute; top: 14px; right: 15px; display: flex; gap: 1px; color: #c3abfa; font-size: 25px; opacity: .9; pointer-events: none; }
.practice-dice span:first-child { transform: rotate(-13deg) translateY(-3px); }
.practice-dice span:last-child { transform: rotate(14deg) translateY(6px); }
.status-row, .turn-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status-row h2 { font-size: 1.25rem; overflow-wrap: anywhere; }
.room-code { color: #ffdd89; font: 750 .875rem ui-monospace, Consolas, monospace; letter-spacing: .07em; white-space: nowrap; }
.panel p.game-note { font-size: .88rem; margin: 8px 0 11px; }
.action-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.action-row > .button { flex: 1 1 auto; }
.turn-box { border: 1px solid #535d89; background: #171d3a; border-radius: 10px; padding: 12px; margin: 12px 0; }
.turn-box[data-mine="true"] { border-color: #a98858; background: linear-gradient(110deg, #343047, #1e2443 80%); }
.turn-top strong { font-size: .99rem; overflow-wrap: anywhere; }
.turn-time { font-size: .875rem; color: #c7cfea; font-variant-numeric: tabular-nums; }
.turn-time[data-low="true"] { color: #ffc19b; }
.turn-dice { display: flex; gap: 4px; margin: 10px 0 6px; }
.dice { width: 33px; height: 33px; line-height: 1; display: grid; place-items: center; border-radius: 6px; font-size: 26px; background: #f5ecf8; color: #34345a; box-shadow: 0 2px 0 #aaa3c1; }
.panel .turn-box p { font-size: .88rem; margin: 5px 0 0; }
.turn-box .quiet { margin: 4px 4px 0 0; }
.player-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 5px; }
.player-row { min-height: 37px; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 4px 6px; border: 1px solid #353b61; border-radius: 7px; background: #171c36; font-size: .875rem; }
.player-row[data-current="true"] { border-color: #958558; background: #2b2a45; }
.player-row[data-out="true"] { opacity: .58; }
.player-row .token { width: 22px; height: 22px; font-size: 13px; }
.player-row .name { overflow-wrap: anywhere; }
.player-row small { color: #b5bedb; margin-left: 4px; }
.balance { color: #f9dd90; font-variant-numeric: tabular-nums; }
.game-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px; margin-top: 10px; }
.activity { padding: 11px 13px; }
.comm-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid #42486f; }
.comm-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 4px 9px 7px; color: #b5bedc; background: none; font-size: .9rem; font-weight: 710; }
.comm-tabs button[aria-pressed="true"] { color: #f6db8b; border-color: #f6db8b; }
.event-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 164px; overflow: auto; gap: 4px; }
.event-list li { padding: 5px 0 5px 9px; border-left: 1px solid #4d547d; color: #c2cbe3; font-size: .84rem; line-height: 1.3; overflow-wrap: anywhere; }
.event-list li[data-kind="accent"] { color: #b8e7d3; border-color: #72b39b; }
.event-list li[data-kind="danger"] { color: #ffc2c9; border-color: #ae7286; }
.chat-list strong { color: #dac8ff; }
.chat-form { margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; }
.chat-form input { min-height: 36px; font-size: .875rem; }
.chat-form .button { min-height: 36px; padding: 5px 9px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 47px; margin-top: 17px; border-top: 1px solid #363d62; color: #a9b2d0; font-size: .82rem; }
.dialog { width: min(475px, calc(100% - 26px)); max-height: calc(100% - 26px); overflow: auto; background: #1c2241; color: #f2f4fa; border: 1px solid #515984; border-radius: 14px; padding: 18px; box-shadow: 0 18px 65px #090914bd; }
.dialog::backdrop { background: #070b1bc2; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 12px; }
.dialog h2 { font-size: 1.43rem; }
.dialog p { line-height: 1.5; color: #c3cbe4; }
.dialog p:first-child { margin-top: 0; }
.dialog a { color: #e6d8ff; }
.dialog form { display: grid; gap: 10px; }
.dialog form input, .dialog form select { margin-top: 5px; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid #535b87; border-radius: 7px; background: #2e355b; color: #f0effb; padding: 0; font-size: 21px; }
.icon-button:hover { background: #464d7a; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; margin: 0 !important; min-height: 0; accent-color: var(--gold); }
.room-list, .portfolio-list { display: grid; gap: 7px; }
.room-line, .portfolio-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #475079; border-radius: 8px; background: #171d36; padding: 7px 9px; }
.room-line strong, .portfolio-line strong { display: block; overflow-wrap: anywhere; }
.room-line small, .portfolio-line small { color: #b6bfdc; }
.rule-list { padding-left: 22px; color: #d3dbec; line-height: 1.47; }
.rule-list li + li { margin-top: 8px; }
.tile-detail { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 11px; }
.tile-detail dt { color: #b5bedc; }
.tile-detail dd { margin: 0; text-align: right; color: #f4f5fa; }
.trade-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.map-dialog { width: min(1330px, calc(100% - 24px)); padding: 13px; }
.large-map { height: min(72vh, 790px); width: 100%; position: relative; overflow: hidden; border: 1px solid #7e9caa; border-radius: 7px; background: #c4e3e8; }
.large-map .map-btn { width: 34px; height: 34px; }
.map-dialog .map-help { margin: 7px 1px 1px; font-size: .85rem; }
.toast { position: fixed; inset: auto 13px 13px auto; z-index: 5; max-width: min(340px, calc(100% - 26px)); padding: 10px 13px; border: 1px solid #706992; background: #292548; color: #fbf4ff; border-radius: 8px; box-shadow: 0 6px 20px #06061388; }
.workspace.in-room { grid-template-areas: "activity board seats"; grid-template-columns: minmax(160px, .78fr) minmax(0, 3.25fr) minmax(200px, .96fr); }
.workspace.in-room .table-section { grid-area: board; }
.workspace.in-room .sidebar { grid-area: seats; }
.workspace.in-room .activity { grid-area: activity; }
.workspace.in-room .board { aspect-ratio: 1.19; }
.workspace.in-room .board-frame { padding: 0 6px; }
.workspace.in-room .event-list { max-height: 42vh; }
.workspace.in-room .panel { padding: 13px; }
.board, .board-center, .large-map, .map-option canvas { background: #1b2441; }
.board { border-color: #646e9e; }
.tile { background: #232a46; color: #f0f1fb; }
.tile[data-kind="property"] { background: color-mix(in srgb, var(--band) 15%, #242945); }
.tile[data-kind="start"] { background: #284b46; color: #baf3ce; }
.tile[data-kind="hall"] { background: #4b3940; color: #ffdb92; }
.tile[data-kind="park"] { background: #263e62; color: #c2e0ff; }
.tile[data-kind="detour"] { background: #503348; color: #ffbdd0; }
.tile[data-kind="chance"] { background: #382e50; color: #decaff; }
.tile[data-kind="tax"] { background: #453244; color: #f5bdd0; }
.tile[data-kind="grant"] { background: #394840; color: #d9edb8; }
.tile[data-kind="station"] { background: #263e4c; color: #c5efe9; }
.tile[data-kind="utility"] { background: #303858; color: #dce4ff; }
.tile-note { color: #d1d8ee; }
.tile:is(:hover, :focus-visible) { box-shadow: inset 0 0 0 2px #e1d4ff; }
.tile[data-current="true"] { box-shadow: inset 0 0 0 2px #fbd477; }
.tile[data-highlight="true"] { box-shadow: inset 0 0 0 2px #cab9ff; }
.map-chip { background: #171f38c9; border-color: #6d7a9f; color: #edf0ff; }
.map-compass { color: #c1cce4; }
.in-room .geographic .map-tools { bottom: auto; top: 8px; }
.in-room .map-compass { display: none; }
.table-actions { position: absolute; z-index: 2; bottom: 8px; inset-inline: 0; display: grid; justify-items: center; pointer-events: none; }
.table-actions .turn-box { pointer-events: auto; min-width: min(200px, 88%); max-width: min(390px, 94%); margin: 0; padding: 8px 10px; background: #161b35ed; box-shadow: 0 5px 20px #0a112788; }
.table-actions .turn-box[data-mine="true"] { border-color: #cfab6d; }
.table-actions .turn-dice { position: absolute; bottom: calc(100% - 1px); justify-content: center; margin: 0 0 5px; inset-inline: 0; pointer-events: none; }
.table-actions .action-row { margin-top: 6px; }
.roll-effect { display: flex; gap: 12px; justify-content: center; align-items: center; position: absolute; inset: 28% 0 auto; z-index: 3; pointer-events: none; }
.dice { display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 2px; padding: 6px; border: 1px solid #f8efdd; background: linear-gradient(145deg,#fff9e8,#e3ddd9); box-shadow: 0 3px 0 #aaa1ad, 0 5px 9px #06092485; }
.dice i { place-self: center; width: 90%; aspect-ratio: 1; border-radius: 50%; background: #302842; visibility: hidden; }
.dice:is([data-face="1"],[data-face="3"],[data-face="5"]) i:nth-child(5),
.dice:not([data-face="1"]) i:is(:first-child,:last-child),
.dice:is([data-face="4"],[data-face="5"],[data-face="6"]) i:is(:nth-child(3),:nth-child(7)),
.dice[data-face="6"] i:is(:nth-child(4),:nth-child(6)) { visibility: visible; }
.roll-effect .dice { width: clamp(39px, 8cqw, 80px); height: auto; aspect-ratio: 1; padding: clamp(7px, 1.6cqw, 14px); border-radius: 17%; }
.moving-piece { position: absolute; top: 0; left: 0; width: clamp(17px, 3cqw, 31px); aspect-ratio: 1; border: 2px solid white; border-radius: 36%; background: var(--piece); color: #161b31; box-shadow: 0 5px 8px #0008; font-size: clamp(.72rem, 2cqw, 1.2rem); font-weight: 900; display: grid; place-items: center; z-index: 5; pointer-events: none; }
@media (max-width: 980px) {
  .workspace.in-room { grid-template-areas: "board seats" "board activity"; grid-template-columns: minmax(0, 1fr) minmax(220px, 265px); grid-template-rows: auto 1fr; }
}
@media (max-width: 850px) {
  .workspace.in-room { grid-template-areas: "board" "seats" "activity"; grid-template-columns: minmax(0, 1fr); }
  .workspace.in-room .sidebar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 580px) {
  .workspace.in-room .board { aspect-ratio: 1.03; }
  .table-actions { bottom: 4px; }
  .table-actions .turn-box { padding: 5px 7px; min-width: 130px; }
  .table-actions .turn-box strong, .table-actions .turn-box p, .table-actions .turn-time { font-size: .77rem; }
  .table-actions .button { min-height: 31px; padding: 5px 7px; font-size: .78rem; }
  .table-actions .dice { width: 25px; height: 25px; padding: 4px; }
}
@media (max-width: 1190px) {
  .shell { width: calc(100% - 44px); }
  .workspace { grid-template-columns: minmax(0, 1fr) minmax(240px, 285px); gap: 13px; }
  .board { aspect-ratio: 1.48; }
  .panel { padding: 16px; }
  .activity { padding: 10px 12px; }
}
@media (max-width: 850px) {
  .shell { width: min(720px, calc(100% - 26px)); }
  .workspace { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 15px; }
  .activity { padding: 10px 12px; }
  .intro { padding: 18px 0 13px; }
  .board { aspect-ratio: 1.30; }
  .table-header { min-height: 43px; padding-inline: 8px; }
  .board-frame { padding: 0 5px; }
  .navbar { min-height: 56px; }
  .nav-actions { gap: 10px; }
}
@media (max-width: 580px) {
  .sidebar { grid-template-columns: 1fr; }
  .map-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .map-option canvas { height: 28px; }
  .map-option span { font-size: .77rem; }
  .board { aspect-ratio: 1.07; }
  .intro p { max-width: 27rem; font-size: .93rem; }
  .nav-actions { gap: 7px; }
  .brand { font-size: 1.1rem; gap: 8px; }
  .brand-die { width: 24px; height: 24px; }
  .nav-actions .quiet { display: none; }
  .table-meta { font-size: .74rem; }
  .table-header h2 { font-size: .94rem; }
  .map-chip { display: none; }
  .map-compass { top: 5px; right: 6px; }
  .map-tools { bottom: 4px; right: 4px; padding: 2px; gap: 1px; }
  .map-btn { width: 27px; height: 27px; font-size: 15px; }
  .map-expand-text { display: none; }
  .tile[data-side="top"] .tile-band, .tile[data-side="bottom"] .tile-band { height: 3px; }
  .tile[data-side="left"] .tile-band, .tile[data-side="right"] .tile-band { width: 3px; }
  .tile[data-side="top"][data-ownable="true"] { padding-bottom: 4px; }
  .tile[data-side="bottom"][data-ownable="true"] { padding-top: 4px; }
  .tile[data-side="left"][data-ownable="true"] { padding-right: 4px; }
  .tile[data-side="right"][data-ownable="true"] { padding-left: 4px; }
  .tile-owner { position: absolute; top: 1px; right: 1px; padding: 0 1px; }
  .tile[data-kind="station"] .tile-icon, .tile[data-kind="utility"] .tile-icon { display: none; }
}
