:root {
  --ink: #142033;
  --ink-soft: #4d5868;
  --navy: #111b2b;
  --navy-2: #18263a;
  --paper: #f3efe6;
  --paper-2: #ebe5d8;
  --card: #fffdf8;
  --line: #d8d0c1;
  --gold: #b78a3f;
  --gold-soft: #ead9b8;
  --green: #2e745e;
  --red: #a74940;
  --shadow: 0 18px 50px rgba(22, 30, 40, .13);
  --radius: 16px;
  --austria: #c7433e;
  --england: #334e9a;
  --france: #4a86c5;
  --germany: #31353b;
  --italy: #4b8f5d;
  --russia: #7f6f96;
  --turkey: #c99c37;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 15px/1.45 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h2 { margin-bottom: 0; font-size: 24px; letter-spacing: -.02em; }
label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 11px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(183, 138, 63, .16); }
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

.eyebrow { margin: 0 0 6px; color: var(--gold); font-size: 10px; line-height: 1; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.brand-lockup { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-lockup > span:last-child { display: grid; }
.brand-lockup strong { font: 500 24px/1 Georgia, serif; letter-spacing: .02em; }
.brand-lockup small { margin-top: 4px; color: #b9c1cd; font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); transform: rotate(45deg); color: #e9d4a4; font: 700 11px/1 Georgia, serif; }
.brand-mark::first-line { transform: rotate(-45deg); }
.compact .brand-mark { width: 34px; height: 34px; }
.compact strong { font-size: 18px; }

.primary-button, .quiet-button, .danger-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; border-radius: 9px; padding: 9px 15px; font-weight: 750; }
.primary-button { border: 1px solid #c29a50; background: linear-gradient(135deg, #c49a4c, #a97c31); color: #fff; box-shadow: 0 6px 16px rgba(126, 86, 25, .2); }
.primary-button:hover { filter: brightness(1.05); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.quiet-button { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.quiet-button:hover { border-color: #a99e8c; background: #faf8f2; }
.danger-button { border: 1px solid #d9aaa5; color: var(--red); background: #fff8f7; }
.small { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.compact-button { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: transparent; }
.icon-button.small { width: 31px; height: 31px; padding: 0; }
.text-button { border: 0; background: none; color: var(--gold); font-weight: 750; }
.fine-print { margin: 10px 0 0; color: #7a817f; font-size: 11px; line-height: 1.45; }

.welcome { position: relative; min-height: 100vh; overflow: hidden; background: var(--navy); color: #fff; }
.welcome::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 77% 45%, rgba(195,152,73,.12), transparent 35%), linear-gradient(115deg, rgba(255,255,255,.025), transparent 44%); }
.welcome-art { position: absolute; inset: 0; overflow: hidden; opacity: .42; }
.contour { position: absolute; display: block; width: 50vw; height: 50vw; border: 1px solid rgba(216,195,151,.18); border-radius: 45% 55% 65% 35%; transform: rotate(22deg); }
.contour::before, .contour::after { content: ""; position: absolute; inset: 6%; border: inherit; border-radius: 55% 40% 63% 38%; }
.contour::after { inset: 13%; }
.contour-a { left: -25vw; top: 35%; }
.contour-b { right: -28vw; top: -20%; transform: rotate(100deg); }
.compass { position: absolute; left: 5%; bottom: 9%; color: rgba(230,207,157,.24); font-size: 100px; }
.welcome-header, .welcome-footer { position: relative; z-index: 1; max-width: 1260px; margin: 0 auto; }
.welcome-header { display: flex; justify-content: space-between; align-items: center; padding: 34px 40px; }
.private-pill { border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 8px 13px; color: #c3cad3; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.welcome-main { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 490px); align-items: center; gap: 8vw; min-height: calc(100vh - 190px); max-width: 1180px; margin: 0 auto; padding: 30px 40px 70px; }
.welcome-copy { max-width: 590px; }
.welcome-copy h1 { margin: 12px 0 24px; font-size: clamp(52px, 6vw, 84px); line-height: .96; letter-spacing: -.05em; }
.welcome-lede { max-width: 520px; color: #c4cbd4; font: 18px/1.65 Georgia, serif; }
.next-deadline-card { display: inline-grid; margin-top: 22px; border-left: 2px solid var(--gold); padding: 5px 0 5px 18px; }
.next-deadline-card span { color: #919dab; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.next-deadline-card strong { margin-top: 3px; font: 500 19px Georgia, serif; color: #f1e2be; }
.next-deadline-card small { margin-top: 2px; color: #8f9baa; }
.join-card { color: var(--ink); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: rgba(250,247,239,.97); box-shadow: 0 30px 80px rgba(0,0,0,.32); padding: 30px; }
.join-heading, .panel-heading, .workspace-heading, .modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.seat-count, .micro-stat { color: #7b817f; font-size: 11px; font-weight: 750; }
.seat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 22px; }
.seat-choice { position: relative; display: flex; align-items: center; gap: 10px; min-height: 53px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 12px; text-align: left; overflow: hidden; }
.seat-choice::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--power-color); }
.seat-choice:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--power-color); box-shadow: 0 5px 14px rgba(20,32,51,.09); }
.seat-choice:disabled { cursor: not-allowed; opacity: .56; }
.seat-choice .power-medallion { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--power-color); font: 700 13px Georgia, serif; }
.seat-choice.mystery-seat { --power-color: #b78a3f !important; }
.seat-choice.mystery-seat .power-medallion { border: 1px solid #d8be86; background: #f6eedc; color: #a1742e; }
.seat-choice span:last-child { display: grid; }
.seat-choice strong { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.seat-choice.roster-choice strong { font-size: 13px; letter-spacing: 0; text-transform: none; }
.seat-choice small { overflow: hidden; color: #818789; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.seat-choice:last-child:nth-child(odd) { grid-column: 1 / -1; }
.claim-form { display: grid; gap: 15px; margin-top: 22px; }
.chosen-power { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.chosen-power span { width: 9px; height: 9px; border-radius: 50%; }
.chosen-power .chosen-player { display: grid; width: auto; height: auto; border-radius: 0; }
.chosen-player strong { font-size: 13px; }
.chosen-player small { color: #858b8b; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.chosen-power button { margin-left: auto; border: 0; background: none; color: var(--gold); font-size: 11px; font-weight: 700; }
.key-entry { margin-top: 19px; border-top: 1px solid var(--line); padding-top: 15px; color: #6e7577; font-size: 12px; }
.key-entry summary { cursor: pointer; font-weight: 700; }
.key-entry form { display: grid; gap: 10px; margin-top: 13px; }
.welcome-footer { display: flex; gap: 35px; padding: 0 40px 28px; color: #747f8e; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.launch-view { position: relative; min-height: 100vh; overflow: hidden; background: #0c1626; color: #fff; }
.launch-view::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 72% 48%, rgba(189,139,54,.16), transparent 29%), radial-gradient(circle at 22% 72%, rgba(48,82,112,.3), transparent 34%), linear-gradient(125deg, #101d30 0%, #091321 58%, #121b29 100%); }
.launch-atmosphere { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.launch-atmosphere::before, .launch-atmosphere::after { content: ""; position: absolute; width: 58vw; height: 58vw; border: 1px solid rgba(221,192,134,.09); border-radius: 44% 56% 65% 35%; }
.launch-atmosphere::before { top: -38vw; right: -20vw; transform: rotate(28deg); }
.launch-atmosphere::after { bottom: -43vw; left: -25vw; transform: rotate(102deg); }
.launch-atmosphere > span { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #e6c987; box-shadow: 0 0 14px #d5ad59; animation: launch-star 4s ease-in-out infinite; }
.launch-atmosphere > span:nth-child(1) { top: 20%; left: 57%; }
.launch-atmosphere > span:nth-child(2) { top: 68%; left: 90%; animation-delay: -1.3s; }
.launch-atmosphere > span:nth-child(3) { top: 83%; left: 37%; animation-delay: -2.6s; }
@keyframes launch-star { 50% { opacity: .25; transform: scale(.55); } }
.launch-header, .launch-footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; max-width: 1320px; margin: 0 auto; }
.launch-header { padding: 28px 40px; }
.launch-sign-out { border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: transparent; padding: 8px 14px; color: #9aa5b3; font-size: 10px; font-weight: 750; }
.launch-main { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(300px, .8fr) minmax(440px, 1.2fr); align-items: center; gap: clamp(40px, 7vw, 100px); width: min(1160px, calc(100% - 80px)); min-height: calc(100vh - 185px); margin: 0 auto; padding: 22px 0 55px; }
.launch-intro { max-width: 460px; }
.launch-intro h1 { margin: 11px 0 20px; font-size: clamp(48px, 5.2vw, 76px); line-height: .98; letter-spacing: -.05em; }
.launch-intro > p:last-of-type { max-width: 430px; color: #a9b3c0; font: 16px/1.65 Georgia, serif; }
.launch-player-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.launch-player-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.035); padding: 7px 10px 7px 7px; color: #aeb8c5; font-size: 10px; }
.launch-player-chip::before { content: "?"; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid rgba(226,196,133,.28); border-radius: 50%; color: #d0ad67; font: 700 9px Georgia, serif; }
.launch-player-chip.revealed { border-color: color-mix(in srgb, var(--power-color), transparent 55%); color: #eef1f5; }
.launch-player-chip.revealed::before { content: attr(data-power-letter); border-color: var(--power-color); background: var(--power-color); color: #fff; }
.launch-card { position: relative; min-height: 540px; border: 1px solid rgba(232,209,162,.18); border-radius: 24px; background: linear-gradient(150deg, rgba(28,42,59,.96), rgba(13,25,41,.96)); box-shadow: 0 36px 100px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.05); overflow: hidden; }
.launch-card::before { content: ""; position: absolute; inset: 11px; border: 1px solid rgba(225,195,133,.08); border-radius: 17px; pointer-events: none; }
.launch-waiting-card { display: grid; justify-items: center; align-content: center; padding: 55px; text-align: center; }
.launch-seal { display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 35px; border: 1px solid rgba(226,197,139,.32); transform: rotate(45deg); color: #e3c47f; background: radial-gradient(circle, rgba(199,153,68,.18), transparent 68%); font-size: 30px; box-shadow: 0 0 55px rgba(191,143,54,.13); }
.launch-waiting-card h2 { margin: 2px 0 12px; color: #fff8e9; font-size: 39px; }
.launch-waiting-card > p:not(.eyebrow) { max-width: 360px; margin: 0; color: #a7b2bf; font: 15px/1.6 Georgia, serif; }
.launch-waiting-card small { max-width: 360px; margin-top: 18px; color: #687687; font-size: 9px; line-height: 1.5; }
.launch-button { min-width: 230px; margin-top: 28px; }
.launch-revealing-card { padding: 25px 28px 28px; }
.launch-progress-heading { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: #929eac; font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.launch-progress-heading strong { color: #d8bc7e; font-size: 11px; }
.launch-progress-track { position: relative; z-index: 1; height: 2px; margin-top: 11px; background: rgba(255,255,255,.09); }
.launch-progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #9e7129, #e0c27e); box-shadow: 0 0 10px rgba(217,180,103,.35); transition: width .5s ease; }
.launch-shuffle-stage { display: grid; justify-items: center; align-content: center; min-height: 410px; text-align: center; }
.shuffle-orbit { position: relative; width: 110px; height: 110px; margin-bottom: 32px; border: 1px solid rgba(219,187,124,.18); border-radius: 50%; animation: shuffle-spin 3s linear infinite; }
.shuffle-orbit::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(219,187,124,.12); border-radius: 50%; }
.shuffle-orbit span { position: absolute; color: #d5ad61; font-size: 14px; }
.shuffle-orbit span:nth-child(1) { top: -8px; left: 47px; }
.shuffle-orbit span:nth-child(2) { right: -5px; bottom: 18px; }
.shuffle-orbit span:nth-child(3) { bottom: 15px; left: -4px; }
@keyframes shuffle-spin { to { transform: rotate(360deg); } }
.launch-shuffle-stage h2 { margin: 0 0 9px; color: #fff4dd; font-size: 31px; }
.launch-shuffle-stage p { color: #758394; font: 13px Georgia, serif; }
.featured-reveal { position: relative; display: grid; justify-items: center; min-height: 345px; align-content: center; margin: 18px 0 12px; border-radius: 16px; text-align: center; animation: reveal-arrive .56s cubic-bezier(.2,.8,.2,1); }
.featured-reveal::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--power-color), transparent 68%), transparent 68%); filter: blur(2px); }
@keyframes reveal-arrive { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.reveal-number { position: relative; color: #708092; font-size: 9px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.featured-power-mark { position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin: 18px 0 20px; border: 1px solid color-mix(in srgb, var(--power-color), #fff 30%); border-radius: 50%; background: color-mix(in srgb, var(--power-color), #101a2a 30%); color: #fff; box-shadow: 0 12px 36px color-mix(in srgb, var(--power-color), transparent 62%); font: 500 37px Georgia, serif; }
.featured-reveal p { position: relative; margin: 0 0 2px; color: #cbd2da; font: 17px Georgia, serif; }
.featured-reveal h2 { position: relative; margin: 0; color: #fff7e8; font-size: 46px; letter-spacing: -.025em; }
.featured-reveal small { position: relative; min-height: 17px; margin-top: 9px; color: #d7b970; font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.revealed-assignments { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.revealed-mini { display: grid; justify-items: center; min-width: 0; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: rgba(255,255,255,.035); padding: 7px 3px; }
.revealed-mini span { display: grid; place-items: center; width: 20px; height: 20px; margin-bottom: 4px; border-radius: 50%; background: var(--power-color); color: #fff; font: 700 8px Georgia, serif; }
.revealed-mini strong, .revealed-mini small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.revealed-mini strong { color: #e5e9ee; font-size: 7px; }
.revealed-mini small { color: #778596; font-size: 6px; font-weight: 800; letter-spacing: .03em; }
.launch-footer { justify-content: center; gap: 38px; padding: 10px 40px 24px; color: #576575; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.game-view { min-height: 100vh; background: var(--paper); }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 78px; background: var(--navy); color: #fff; padding: 10px 24px; box-shadow: 0 4px 18px rgba(12,20,32,.2); }
.phase-lockup { display: grid; grid-template-columns: auto auto; column-gap: 13px; align-items: baseline; text-align: center; }
.phase-label { grid-column: 1 / -1; margin-bottom: 1px; color: #d4bc89; font: 500 17px Georgia, serif; }
.deadline-label { color: #8390a0; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.countdown { min-width: 132px; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: .04em; text-align: left; }
.deadline-exact { grid-column: 1 / -1; margin-top: 1px; color: #748193; font-size: 9px; }
.account-lockup { display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.account-lockup .icon-button { margin-left: 6px; border-color: #354155; color: #bec6d1; }
.power-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--power-color); box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.account-name { display: grid; }
.account-name strong { font-size: 12px; }
.account-name small { color: #7e8a9a; font-size: 9px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.paused-banner { background: #f8dfab; padding: 8px 20px; color: #70531d; text-align: center; font-size: 12px; font-weight: 700; }

.game-shell { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 15px; max-width: 1680px; height: calc(100vh - 78px); margin: 0 auto; padding: 15px; }
.panel, .board-column { min-height: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 6px 22px rgba(30,42,52,.06); }
.roster-panel { display: flex; flex-direction: column; padding: 20px 15px 15px; overflow: hidden; }
.panel-heading { padding: 0 5px 14px; border-bottom: 1px solid var(--line); }
.player-list { display: grid; gap: 4px; margin-top: 11px; overflow: auto; }
.player-row { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; align-items: center; gap: 9px; border-radius: 10px; padding: 9px 7px; }
.player-row.is-me { background: #f1ede3; }
.player-row.is-eliminated { opacity: .5; }
.power-medallion { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid color-mix(in srgb, var(--power-color), #fff 55%); border-radius: 50%; background: color-mix(in srgb, var(--power-color), #fff 87%); color: var(--power-color); font: 700 13px Georgia, serif; }
.player-meta { min-width: 0; display: grid; }
.player-meta strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.player-meta small { color: #89908f; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.ready-state { display: grid; justify-items: end; gap: 3px; color: #8a918f; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ready-state span { display: block; width: 7px; height: 7px; border-radius: 50%; background: #c5c3bc; }
.ready-state.ready { color: var(--green); }
.ready-state.ready span { background: var(--green); box-shadow: 0 0 0 3px rgba(46,116,94,.12); }
.rhythm-card { display: flex; gap: 10px; margin-top: auto; border: 1px solid var(--gold-soft); border-radius: 10px; background: #faf5e9; padding: 12px; }
.rhythm-icon { color: var(--gold); font-size: 20px; }
.rhythm-card strong { font: 500 12px Georgia, serif; }
.rhythm-card p { margin: 3px 0 0; color: #7c7467; font-size: 9px; line-height: 1.45; }

.board-column { display: flex; flex-direction: column; overflow: hidden; }
.board-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex: 0 0 auto; padding: 15px 18px 12px; }
.board-toolbar h2 { font-size: 20px; }
.board-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.map-mode-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: #eee9df; padding: 2px; }
.map-mode-switch button { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; border: 0; border-radius: 6px; background: transparent; padding: 4px 8px; color: #737a7c; font-size: 9px; font-weight: 800; letter-spacing: .035em; }
.map-mode-switch button::before { content: ""; width: 8px; height: 8px; border: 1px solid rgba(20,32,51,.2); border-radius: 50%; background: linear-gradient(135deg, #d7e6f1 50%, #eee4d2 50%); }
.map-mode-switch button[data-map-mode="political"]::before { background: conic-gradient(#d96761, #596fb5, #68a878, #d4aa43, #d96761); }
.map-mode-switch button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(20,32,51,.12); }
.desktop-workspace-button { min-width: 91px; padding-right: 8px; padding-left: 11px; }
.drawer-button-badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; border-radius: 999px; background: rgba(255,255,255,.2); padding: 0 5px; font-size: 8px; }
.overlay-toggle { display: flex; align-items: center; gap: 6px; width: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 6px 9px; color: #6d7476; font-size: 10px; cursor: pointer; }
.overlay-toggle input { width: auto; margin: 0; accent-color: var(--gold); }
.map-shell { position: relative; isolation: isolate; min-height: 300px; flex: 1 1 auto; overflow: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #a9cdd7; scrollbar-color: #668692 transparent; }
.map-shell::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 38px rgba(18,30,37,.18); }
.map-canvas { min-height: 100%; display: grid; place-items: center; }
.map-canvas svg { display: block; width: var(--map-width, 100%); max-width: calc(1040px * var(--map-scale, 1)); min-width: 720px; height: auto; }
.map-province-inspector { position: sticky; z-index: 4; top: 10px; left: 10px; display: flex; align-items: center; width: max-content; max-width: calc(100% - 20px); min-height: 45px; margin: 10px 0 -55px 10px; border: 1px solid rgba(27,44,54,.2); border-radius: 10px; background: rgba(255,253,248,.94); box-shadow: 0 8px 22px rgba(20,32,42,.18); padding: 7px 10px 7px 7px; backdrop-filter: blur(10px); }
.map-province-inspector > span:last-child { display: grid; min-width: 0; }
.map-province-inspector strong { overflow: hidden; color: var(--ink); font: 600 11px/1.2 Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.map-province-inspector small { overflow: hidden; margin-top: 3px; color: #687477; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.map-province-code { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; margin-right: 8px; border-radius: 7px; background: var(--navy); color: #f1dfb8; font-size: 8px; font-weight: 850; letter-spacing: .08em; }

/* The rules engine supplies topology and live ownership; this layer supplies the visual hierarchy. */
.map-canvas svg #MapLayer > rect { fill: #263940 !important; stroke: none !important; }
.map-canvas svg #MapLayer path,
.map-canvas svg #MapLayer polygon { stroke: #293940 !important; stroke-width: 1.6 !important; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map-canvas svg #MapLayer .water { fill: url(#mapWaterPattern) !important; stroke: #2f5966 !important; }
.map-canvas svg #MapLayer .nopower { fill: #f0e4d2 !important; }
.map-canvas svg #MapLayer .neutral,
.map-canvas svg #MapLayer .impassable { fill: #717b78 !important; stroke: #34423f !important; }

.map-canvas[data-map-mode="classic"] svg #MapLayer [data-province] { fill: #f0e4d2 !important; }
.map-canvas[data-map-mode="classic"] svg #MapLayer [data-home-power="austria"] { fill: #f2d4cf !important; }
.map-canvas[data-map-mode="classic"] svg #MapLayer [data-home-power="england"] { fill: #cbc6e7 !important; }
.map-canvas[data-map-mode="classic"] svg #MapLayer [data-home-power="france"] { fill: #d4e5f1 !important; }
.map-canvas[data-map-mode="classic"] svg #MapLayer [data-home-power="germany"] { fill: #dcd8d0 !important; }
.map-canvas[data-map-mode="classic"] svg #MapLayer [data-home-power="italy"] { fill: #d7eadb !important; }
.map-canvas[data-map-mode="classic"] svg #MapLayer [data-home-power="russia"] { fill: #e4dced !important; }
.map-canvas[data-map-mode="classic"] svg #MapLayer [data-home-power="turkey"] { fill: #f1e4bb !important; }
.map-canvas[data-map-mode="classic"] svg #MapLayer [data-province].water { fill: url(#mapWaterPattern) !important; }

.map-canvas[data-map-mode="political"] svg #MapLayer .austria { fill: #d96761 !important; }
.map-canvas[data-map-mode="political"] svg #MapLayer .england { fill: #465da7 !important; }
.map-canvas[data-map-mode="political"] svg #MapLayer .france { fill: #6da7d5 !important; }
.map-canvas[data-map-mode="political"] svg #MapLayer .germany { fill: #737579 !important; }
.map-canvas[data-map-mode="political"] svg #MapLayer .italy { fill: #68a878 !important; }
.map-canvas[data-map-mode="political"] svg #MapLayer .russia { fill: #9b89ae !important; }
.map-canvas[data-map-mode="political"] svg #MapLayer .turkey { fill: #d4aa43 !important; }

.map-canvas svg #BriefLabelLayer { pointer-events: none; }
.map-canvas svg #BriefLabelLayer text { fill: #15232d !important; stroke: rgba(255,253,248,.95) !important; stroke-width: 4.5 !important; paint-order: stroke fill; stroke-linejoin: round; font-family: Inter, ui-sans-serif, sans-serif !important; font-size: 25px !important; font-style: normal !important; font-weight: 850 !important; letter-spacing: 1.2px; }
.map-canvas svg #BriefLabelLayer text[data-terrain="water"] { fill: #1f5362 !important; stroke: rgba(222,241,245,.96) !important; letter-spacing: 1.7px; }
.map-canvas svg #BriefLabelLayer text.labeltext18 { font-size: 22px !important; }
.map-canvas svg .currentnotetext,
.map-canvas svg .currentphasetext { fill: #14232c !important; stroke: rgba(255,253,248,.9) !important; stroke-width: 3 !important; paint-order: stroke fill; font-family: Inter, ui-sans-serif, sans-serif !important; font-weight: 750; }
.map-canvas svg #SupplyCenterLayer use { filter: drop-shadow(0 1px 1px rgba(255,255,255,.95)) drop-shadow(0 1px 1px rgba(20,32,42,.42)); }
.map-canvas svg #SupplyCenter circle:first-child { fill: #fffdf8 !important; stroke: #15242c !important; stroke-width: 1.1 !important; }
.map-canvas svg #SupplyCenter circle:last-child { stroke: #15242c !important; stroke-width: 1.1 !important; }
.map-canvas svg #UnitLayer use,
.map-canvas svg #DislodgedUnitLayer use { cursor: pointer; filter: drop-shadow(0 0 2.2px rgba(255,255,255,.98)) drop-shadow(0 2.5px 2px rgba(14,24,31,.78)); }
.map-canvas svg .unit-piece-halo, .order-piece-icon .unit-piece-halo { fill: #172631; stroke: #fffdf7; stroke-width: 1.35; }
.map-canvas svg .unit-piece-back, .order-piece-icon .unit-piece-back { fill: #fffdf7; stroke: #d8cdb9; stroke-width: .8; }
.map-canvas svg .unit-piece-mark, .order-piece-icon .unit-piece-mark { fill: currentColor; stroke: #172631; stroke-width: 1.4; stroke-linejoin: round; paint-order: stroke fill; }
.map-canvas svg .unit-piece-detail, .order-piece-icon .unit-piece-detail { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map-canvas svg .unit-piece-detail.feathers, .order-piece-icon .unit-piece-detail.feathers { stroke-width: 2.2; }
.map-canvas svg .unit-piece-cutout, .order-piece-icon .unit-piece-cutout { fill: #fffaf0; }
.map-canvas svg .custom-unit-piece { overflow: visible; }
.map-canvas svg .dislodged-piece { filter: drop-shadow(0 0 3px #e5332a) drop-shadow(0 2px 2px rgba(14,24,31,.65)) !important; }
.map-canvas svg .unitaustria { fill: #c7433e !important; color: #c7433e; }
.map-canvas svg .unitengland { fill: #334e9a !important; color: #334e9a; }
.map-canvas svg .unitfrance { fill: #3389cc !important; color: #3389cc; }
.map-canvas svg .unitgermany { fill: #34383e !important; color: #34383e; }
.map-canvas svg .unititaly { fill: #3d8b55 !important; color: #3d8b55; }
.map-canvas svg .unitrussia { fill: #f7f2fb !important; color: #7f6f96; }
.map-canvas svg .unitturkey { fill: #e5bd32 !important; color: #c99c37; }
.map-canvas svg #OrderLayer path,
.map-canvas svg #HighestOrderLayer path { vector-effect: non-scaling-stroke; }
.map-canvas svg #OrderLayer .shadowdash { stroke-width: 5 !important; opacity: .55 !important; }
.map-canvas svg #OrderLayer .supportorder,
.map-canvas svg #OrderLayer .convoyorder { stroke-width: 3 !important; }
.map-canvas svg #MapLayer [data-map-region],
.map-canvas svg #MapLayer [data-province] { cursor: crosshair; transition: filter .14s ease; }
.map-canvas svg #MapLayer [data-province]:hover,
.map-canvas svg #MapLayer [data-map-region]:focus,
.map-canvas svg #MapLayer [data-map-region]:focus [data-province] { filter: brightness(1.08); stroke: #a9792e !important; stroke-width: 2.4 !important; outline: none; }
.map-canvas svg #MapLayer .is-orderable { cursor: pointer; }
.map-canvas svg #MapLayer .has-draft-order { filter: saturate(1.08); }
.map-canvas svg #MapLayer .is-proposed-destination { stroke: #b47e27 !important; stroke-width: 2.6 !important; }
.map-canvas svg #MapLayer .is-legal-destination { stroke: #237a68 !important; stroke-width: 2.5 !important; stroke-dasharray: 5 3; }
.map-canvas svg #MapLayer .is-selected-province { filter: brightness(1.08) drop-shadow(0 0 4px rgba(20,32,42,.42)); stroke: #fffdf8 !important; stroke-width: 4 !important; }
.map-loading { position: absolute; z-index: 2; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: #d8dfdc; color: #65716f; font: 500 13px Georgia, serif; }
.map-loading span { width: 15px; height: 15px; border: 2px solid #aab4b1; border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.board-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex: 0 0 auto; padding: 10px 16px; background: #fffdf8; }
.resolution-rule { display: flex; align-items: center; gap: 9px; max-width: 520px; }
.resolution-rule > span { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.resolution-rule p { margin: 0; color: #71787a; font-size: 9px; line-height: 1.45; }
.resolution-rule strong { color: var(--ink); }
.position-summary { flex: 0 0 auto; color: #777f80; font-size: 9px; font-weight: 750; letter-spacing: .06em; text-align: right; text-transform: uppercase; }

.workspace-drawer-backdrop { position: fixed; z-index: 17; inset: 78px 0 0; background: rgba(13,24,36,.34); backdrop-filter: blur(2px); }
.command-panel { position: fixed; z-index: 18; top: 93px; right: 15px; bottom: 15px; display: flex; width: min(430px, calc(100vw - 30px)); flex-direction: column; overflow: hidden; opacity: 0; pointer-events: none; visibility: hidden; transform: translateX(calc(100% + 30px)); box-shadow: -18px 24px 60px rgba(14,25,37,.25); transition: transform .24s ease, opacity .18s ease, visibility 0s linear .24s; }
body.workspace-drawer-open .command-panel { opacity: 1; pointer-events: auto; visibility: visible; transform: translateX(0); transition: transform .24s ease, opacity .18s ease; }
.workspace-drawer-heading { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--line); padding: 8px 13px 8px 19px; color: #737b7c; font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.workspace-drawer-heading .icon-button { color: #667074; font-size: 19px; }
.workspace-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); padding: 0 12px; }
.workspace-tab { position: relative; border: 0; background: transparent; padding: 15px 4px 12px; color: #8a8f8e; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.workspace-tab::after { content: ""; position: absolute; right: 12px; bottom: -1px; left: 12px; height: 2px; background: transparent; }
.workspace-tab.active { color: var(--ink); }
.workspace-tab.active::after { background: var(--gold); }
.workspace-tab span:not(:empty) { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 2px; border-radius: 99px; background: var(--gold-soft); color: #7f5b1f; font-size: 8px; }
.workspace { display: none; min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 19px; }
.workspace.active { display: block; }
.workspace-heading { align-items: center; margin-bottom: 12px; }
.workspace-heading h2 { font-size: 23px; }
.workspace-help { margin: 0 0 13px; color: #777e80; font-size: 11px; line-height: 1.55; }
.status-pill { border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; color: #7f8685; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.status-pill.saved { border-color: #b6d3c8; background: #f2faf7; color: var(--green); }
.status-pill.ready { border-color: #c8b27e; background: #fbf6e8; color: #8b6927; }
.order-progress { height: 4px; margin-bottom: 17px; border-radius: 4px; overflow: hidden; background: #e8e4da; }
.order-progress span { display: block; width: 0; height: 100%; background: var(--gold); transition: width .2s ease; }
.order-list { display: grid; gap: 9px; }
.order-card { border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 11px; }
.order-card.selected { border-color: #cbb071; box-shadow: 0 0 0 2px rgba(183,138,63,.08); }
.order-unit { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.unit-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: color-mix(in srgb, var(--my-power), #fff 89%); color: var(--my-power); font: 700 12px Georgia, serif; }
.order-piece-icon { display: block; width: 36px; height: 30px; overflow: visible; }
.order-unit span:last-child { display: grid; }
.order-unit strong { font-size: 11px; }
.order-unit small { color: #8b9190; font-size: 9px; }
.order-card select { padding: 9px 30px 9px 10px; color: #394556; font-size: 11px; }
.orders-footer { position: sticky; bottom: -19px; margin: 18px -19px -19px; border-top: 1px solid var(--line); background: rgba(255,253,248,.97); padding: 12px 19px 16px; backdrop-filter: blur(8px); }
.orders-footer > p { margin: 0 0 10px; color: #898e8d; font-size: 9px; }
.lock-icon { color: var(--green); font-size: 7px; }
.order-buttons { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; }
.empty-state { display: grid; place-items: center; min-height: 180px; color: #818887; text-align: center; }
.empty-state span { display: block; margin-bottom: 8px; color: var(--gold); font: 32px Georgia, serif; }
.empty-state p { max-width: 230px; font-size: 11px; }

.filter-label { grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin-bottom: 12px; }
.filter-label select { padding: 8px 9px; font-size: 11px; }
.message-list { display: grid; gap: 9px; }
.message-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 11px; }
.message-card.mine { background: #faf7ef; }
.message-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.message-meta .power-dot { width: 7px; height: 7px; box-shadow: none; }
.message-meta strong { font-size: 10px; }
.message-meta span:last-child { margin-left: auto; color: #969a98; font-size: 8px; }
.message-channel { display: inline-block; margin-bottom: 6px; color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.message-card p { margin: 0; color: #4c555f; font-size: 11px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-form { position: absolute; inset: 50px 0 0; z-index: 3; overflow-y: auto; background: var(--card); padding: 20px; }
.compose-heading { display: flex; justify-content: space-between; margin-bottom: 8px; }
.recipient-help { color: #818786; font-size: 10px; }
.recipient-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 13px 0 16px; }
.recipient-option { display: flex; align-items: center; gap: 7px; width: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px; color: #697171; font-size: 9px; cursor: pointer; }
.recipient-option:has(input:checked) { border-color: var(--power-color); background: color-mix(in srgb, var(--power-color), #fff 92%); color: var(--ink); }
.recipient-option input { width: auto; margin: 0; accent-color: var(--power-color); }
.message-form .primary-button { width: 100%; margin-top: 12px; }

.history-list { display: grid; gap: 9px; }
.history-item { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.history-summary { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: #fff; padding: 12px; text-align: left; }
.history-summary strong { font: 500 13px Georgia, serif; }
.history-summary small { color: #8d9290; font-size: 8px; }
.history-summary span { color: var(--gold); }
.history-detail { border-top: 1px solid var(--line); padding: 11px; background: #faf8f3; }
.history-power { margin-bottom: 12px; }
.history-power > strong { display: block; margin-bottom: 4px; color: var(--power-color); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.history-order { display: flex; justify-content: space-between; gap: 5px; border-bottom: 1px dotted #ddd6ca; padding: 5px 0; color: #4d5761; font-size: 9px; }
.result-code { color: var(--red); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.history-map-button { width: 100%; margin-top: 5px; }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; background: rgba(10,18,29,.68); padding: 20px; }
.modal { width: min(480px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 17px; background: var(--card); box-shadow: 0 28px 90px rgba(0,0,0,.4); padding: 24px; }
.modal-heading { margin-bottom: 18px; }
.access-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f5f1e8; padding: 11px; }
.access-card > div { display: grid; min-width: 0; }
.access-card small { color: #818784; font-size: 9px; }
.access-card code { max-width: 300px; overflow: hidden; color: #39424e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.session-card { justify-content: flex-start; }
.session-check { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: #e5f2ec; color: var(--green); font-weight: 900; }
.session-card strong { margin-top: 2px; font-size: 12px; }
.host-settings { display: grid; gap: 13px; }
.host-settings hr { margin-bottom: 4px; }
.two-fields, .host-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.small-heading { font-size: 18px; }
.host-roster { display: grid; gap: 6px; }
.host-roster-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 8px; }
.host-roster-row .power-dot { background: var(--power-color); }
.host-roster-row > span:nth-child(2) { display: grid; }
.host-roster-row strong { font-size: 10px; }
.host-roster-row small { color: #858b8b; font-size: 8px; font-weight: 800; letter-spacing: .08em; }

.toast-region { position: fixed; z-index: 50; top: 16px; right: 16px; display: grid; gap: 8px; }
.toast { max-width: 340px; border: 1px solid #d4c8b2; border-radius: 10px; background: #fffdf7; box-shadow: var(--shadow); padding: 11px 14px; color: #3e4853; font-size: 11px; animation: toast-in .2s ease; }
.toast.error { border-color: #d9aaa5; color: #8a342d; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-5px); } }
.mobile-nav { display: none; }

@media (max-width: 1220px) {
  .game-shell { grid-template-columns: 215px minmax(0, 1fr); }
  .resolution-rule { display: none; }
}

@media (max-width: 980px) {
  body.game-active { padding-bottom: 64px; }
  .launch-view { min-height: 100vh; }
  .launch-main { grid-template-columns: 1fr; align-items: start; width: min(680px, calc(100% - 40px)); padding-top: 40px; }
  .launch-intro { max-width: none; text-align: center; }
  .launch-intro > p:last-of-type { margin-right: auto; margin-left: auto; }
  .launch-player-list { justify-content: center; }
  .launch-card { min-height: 500px; }
  .launch-footer { display: none; }
  .topbar { grid-template-columns: 1fr auto; min-height: 68px; padding: 8px 14px; }
  .topbar .compact small, .account-name, .deadline-exact { display: none; }
  .phase-lockup { grid-row: 2; grid-column: 1 / -1; display: flex; justify-content: center; padding-top: 4px; }
  .phase-label { margin-right: 7px; font-size: 12px; }
  .deadline-label { display: none; }
  .countdown { min-width: 0; font-size: 12px; }
  .game-shell { display: block; height: calc(100vh - 68px); padding: 8px; }
  .workspace-drawer-backdrop, .desktop-workspace-button, .workspace-drawer-heading { display: none !important; }
  .mobile-panel { display: none; height: 100%; }
  body[data-mobile-view="board"] [data-mobile-view="board"],
  body[data-mobile-view="orders"] [data-mobile-view="orders"],
  body[data-mobile-view="messages"] [data-mobile-view="orders"],
  body[data-mobile-view="history"] [data-mobile-view="orders"],
  body[data-mobile-view="players"] [data-mobile-view="players"] { display: flex; }
  body[data-mobile-view="messages"] .workspace-tabs [data-tab="messages"],
  body[data-mobile-view="history"] .workspace-tabs [data-tab="history"] { color: var(--ink); }
  .board-column { min-height: 100%; }
  .roster-panel { min-height: 100%; }
  .command-panel, body.workspace-drawer-open .command-panel { position: relative; z-index: auto; inset: auto; width: auto; min-height: 100%; opacity: 1; pointer-events: auto; visibility: visible; transform: none; transition: none; box-shadow: 0 6px 22px rgba(30,42,52,.06); }
  body[data-mobile-view="messages"] .workspace, body[data-mobile-view="history"] .workspace { display: none; }
  body[data-mobile-view="messages"] #messagesWorkspace, body[data-mobile-view="history"] #historyWorkspace { display: block; }
  .mobile-nav { position: fixed; z-index: 15; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); min-height: 62px; border-top: 1px solid #344054; background: var(--navy); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav button { display: grid; place-items: center; gap: 2px; border: 0; background: transparent; color: #8996a6; padding: 6px 2px; font-size: 8px; font-weight: 750; }
  .mobile-nav button span { font-size: 17px; }
  .mobile-nav button.active { color: #e2c88f; }
  .workspace-tabs { display: none; }
  .map-canvas { justify-content: start; }
  .map-canvas svg { min-width: calc(820px * var(--map-scale, 1)); width: calc(820px * var(--map-scale, 1)); }
  .board-foot { min-height: 42px; }
  .position-summary { text-align: left; }
}

@media (max-width: 760px) {
  .welcome-header { padding: 23px 20px; }
  .private-pill { display: none; }
  .welcome-main { grid-template-columns: 1fr; gap: 35px; padding: 45px 20px 60px; }
  .welcome-copy h1 { font-size: 53px; }
  .welcome-lede { font-size: 16px; }
  .join-card { padding: 22px; }
  .welcome-footer { display: none; }
  .launch-header { padding: 22px 20px; }
  .launch-main { width: calc(100% - 28px); gap: 28px; padding: 28px 0 42px; }
  .launch-intro h1 { font-size: 50px; }
  .launch-card { min-height: 470px; border-radius: 18px; }
  .launch-waiting-card { padding: 34px 24px; }
  .launch-seal { width: 76px; height: 76px; margin-bottom: 28px; }
  .launch-waiting-card h2 { font-size: 33px; }
  .launch-revealing-card { padding: 22px 17px; }
  .featured-reveal { min-height: 320px; }
  .featured-reveal h2 { font-size: 39px; }
  .revealed-assignments { gap: 3px; }
  .revealed-mini { padding: 6px 1px; }
  .revealed-mini strong { font-size: 6px; }
  .revealed-mini small { display: none; }
  .board-toolbar { align-items: flex-start; flex-wrap: wrap; padding: 11px; }
  .board-toolbar > div:first-child { flex: 1 1 auto; }
  .board-actions { width: 100%; flex-wrap: wrap; justify-content: flex-end; }
  .map-mode-switch { margin-right: auto; }
  .overlay-toggle span { display: none; }
  .map-province-inspector { max-width: calc(100vw - 38px); }
  .board-foot { padding: 9px 12px; }
}

@media (max-width: 430px) {
  .seat-grid { grid-template-columns: 1fr; }
  .seat-choice:last-child:nth-child(odd) { grid-column: auto; }
  .welcome-copy h1 { font-size: 46px; }
  .launch-header .brand-lockup small { display: none; }
  .launch-intro h1 { font-size: 43px; }
  .launch-intro > p:last-of-type { font-size: 14px; }
  .launch-player-chip { font-size: 9px; }
  .topbar .brand-lockup strong { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
