:root {
  --bg: #030303;
  --bg-soft: #080a0e;
  --surface: #0b0d12;
  --surface-raised: #10151d;
  --ink: #edf1f3;
  --muted: #8e9aa8;
  --dim: #596575;
  --line: rgba(224, 235, 240, 0.12);
  --line-soft: rgba(224, 235, 240, 0.07);
  --accent: #ffdc08;
  --accent-ink: #171505;
  --danger: #f47d74;
  --radius: 10px;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-width: 320px; min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(ellipse at 50% 44%, rgba(22, 25, 32, .18), transparent 58%); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: not-allowed; }

.grain { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.app-shell { position: relative; z-index: 1; min-height: 100dvh; }
.lobby-view { min-height: 100dvh; max-width: 1320px; margin: 0 auto; padding: 7vh 5vw 5vh; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(42px, 8vw, 120px); align-items: center; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 700 12px/1 var(--mono); letter-spacing: .16em; }
.brand-lockup.compact { font-size: 11px; }
.brand-mark { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--accent); color: var(--accent); font: 400 18px/1 var(--mono); letter-spacing: 0; }
.eyebrow, .panel-label, .card-kicker, .room-label { color: var(--muted); font: 600 10px/1.2 var(--mono); letter-spacing: .16em; }
.eyebrow { margin: 52px 0 22px; }
.lobby-copy h1 { margin: 0; max-width: 620px; font-size: clamp(45px, 6vw, 84px); line-height: .98; letter-spacing: -.055em; font-weight: 750; }
.lobby-copy h1 em { color: var(--accent); font-style: normal; }
.lobby-lede { max-width: 420px; margin: 28px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.lobby-rule-strip { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 48px; color: var(--muted); font: 11px/1.4 var(--mono); }
.lobby-rule-strip span { display: inline-flex; align-items: center; gap: 8px; }
.rule-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.dot-yellow { background: var(--accent); }.dot-wall { background: #bcc5cd; }.dot-center { background: #f1ecb3; box-shadow: 0 0 0 3px rgba(234,216,91,.13); }
.lobby-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.identity-card { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr auto; align-items: end; gap: 24px; padding: 19px 22px; border: 1px solid rgba(234,216,91,.28); border-radius: var(--radius); background: linear-gradient(100deg, rgba(30,34,30,.92), rgba(19,27,39,.9)); }
.identity-card h2 { margin: 10px 0 5px; font-size: 18px; letter-spacing: -.03em; }
.identity-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.identity-form { min-width: 0; }.identity-form label { margin-bottom: 7px; }.identity-input-row { display: flex; gap: 8px; }.identity-input-row input { min-width: 0; margin: 0; }.identity-input-row .button { flex: 0 0 auto; min-width: 118px; }
.identity-signed-in { display: inline-flex; align-items: center; gap: 8px; align-self: center; color: var(--muted); font-size: 11px; white-space: nowrap; }.identity-signed-in strong { color: var(--accent); font-weight: 600; }.identity-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #7fda9e; box-shadow: 0 0 0 3px rgba(127,218,158,.12); }.text-button { padding: 4px 0; border: 0; background: transparent; color: var(--dim); font-size: 10px; }.text-button:hover { color: var(--accent); }
.entry-card { min-height: 470px; padding: clamp(24px, 3.3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(19, 27, 39, .84); box-shadow: 0 26px 70px rgba(0,0,0,.18); }
.primary-entry { border-color: rgba(234,216,91,.32); background: linear-gradient(145deg, rgba(47, 47, 32, .85), rgba(19, 27, 39, .93) 58%); }
.card-kicker { display: flex; justify-content: space-between; color: var(--accent); }
.card-kicker span { color: var(--dim); }
.entry-card h2 { margin: 50px 0 10px; font-size: 23px; letter-spacing: -.03em; }
.entry-card p { margin: 0; min-height: 52px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.entry-form { margin-top: 32px; }
label { display: block; margin-bottom: 8px; color: #bbc4cc; font-size: 12px; font-weight: 600; }
label .optional { color: var(--dim); font-weight: 400; }
input { width: 100%; height: 44px; margin-bottom: 18px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; background: rgba(7, 11, 17, .48); color: var(--ink); font-size: 14px; transition: border-color .2s, background .2s; }
input::placeholder { color: #647181; }
input:hover { border-color: rgba(224,235,240,.24); } input:focus { border-color: var(--accent); background: rgba(7,11,17,.7); outline: none; }
.room-code-input { font-family: var(--mono); letter-spacing: .22em; text-transform: uppercase; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 14px; }
.form-pair.single-setting { display: block; }
.switch-field { position: relative; display: flex; align-items: center; gap: 9px; height: 44px; margin: 0 0 18px; color: var(--muted); font-weight: 500; cursor: pointer; }
.switch-field input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.switch-ui { width: 35px; height: 20px; margin-left: auto; border-radius: 999px; background: #374352; transition: background .2s; }
.switch-ui::after { content: ""; display: block; width: 14px; height: 14px; margin: 3px; border-radius: 50%; background: #b6c0c7; transition: transform .2s; }
.switch-field input:checked + .switch-ui { background: var(--accent); }.switch-field input:checked + .switch-ui::after { transform: translateX(15px); background: var(--accent-ink); }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 15px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 700; transition: transform .2s cubic-bezier(.16,1,.3,1), background .2s, border-color .2s; }
.button:hover:not(:disabled) { transform: translateY(-2px); }.button-primary { background: var(--accent); color: var(--accent-ink); }.button-primary:hover:not(:disabled) { background: #f2e57a; }.button-secondary { border-color: rgba(234,216,91,.48); background: rgba(234,216,91,.06); color: var(--accent); }.button-secondary:hover:not(:disabled) { background: rgba(234,216,91,.13); }.button-quiet { border-color: var(--line); background: transparent; color: var(--muted); }.button-small { min-height: 36px; background: var(--surface-raised); border-color: var(--line); color: var(--ink); font-size: 11px; }.full-button { width: 100%; margin-top: 16px; }.entry-form .button { width: 100%; margin-top: 4px; }
.build-note { grid-column: 1 / -1; align-self: end; margin: -36px 0 0; color: var(--dim); font: 10px/1.4 var(--mono); }

.game-view { min-height: 100dvh; padding-bottom: 38px; }.topbar { height: 68px; display: flex; align-items: center; gap: 30px; padding: 0 clamp(18px, 4vw, 56px); border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.82); backdrop-filter: blur(12px); }.room-heading { display: flex; align-items: baseline; gap: 11px; }.room-heading strong { font: 700 14px/1 var(--mono); letter-spacing: .18em; color: var(--accent); }.room-name-label { color: var(--muted); font-size: 12px; }.topbar-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }.connection-state { display: inline-flex; align-items: center; gap: 7px; margin-right: 8px; color: #87cba6; font: 10px/1 var(--mono); }.connection-state i { width: 6px; height: 6px; border-radius: 50%; background: #7fda9e; box-shadow: 0 0 0 3px rgba(127,218,158,.1); }.connection-state.offline { color: var(--danger); }.connection-state.offline i { background: var(--danger); box-shadow: none; }.icon-button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink); font-size: 11px; }.icon-button:hover { border-color: var(--accent); }.muted-button { color: var(--muted); }
.ready-screen { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: clamp(40px, 7vh, 82px) 0 52px; }.ready-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); }.ready-heading h1 { margin: 13px 0 10px; font-size: clamp(42px, 6vw, 76px); line-height: .95; letter-spacing: -.06em; }.ready-heading p { max-width: 480px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }.ready-heading-status { display: grid; justify-items: end; gap: 12px; padding-bottom: 5px; }.ready-heading-status strong { color: var(--ink); font: 700 20px/1 var(--mono); }.ready-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .72fr); gap: 16px; margin-top: 22px; }.ready-seats-card, .ready-panel { border: 1px solid var(--line); border-radius: 9px; background: rgba(10,14,20,.84); }.ready-seats-card { min-height: 440px; padding: clamp(22px, 3vw, 34px); }.ready-seats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }.ready-seat { position: relative; display: grid; grid-template-columns: 35px 1fr; grid-template-rows: auto auto; column-gap: 13px; min-height: 128px; padding: 18px; border: 1px solid rgba(255,255,255,.11); border-radius: 7px; background: linear-gradient(145deg, rgba(21,29,41,.88), rgba(11,14,20,.88)); }.ready-seat.empty { border-style: dashed; opacity: .6; }.seat-side { grid-column: 1 / -1; margin-bottom: 15px; color: var(--dim); font: 9px/1 var(--mono); letter-spacing: .16em; }.seat-token { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--seat-color); color: #11161a; font: 700 12px/1 var(--mono); box-shadow: 0 0 0 5px color-mix(in srgb, var(--seat-color) 12%, transparent); }.seat-copy { display: grid; align-content: center; gap: 6px; min-width: 0; }.seat-copy strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.seat-copy small { color: var(--muted); font: 10px/1.2 var(--mono); }.seat-kick { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--dim); font-size: 18px; }.seat-kick:hover { background: rgba(244,125,116,.12); color: var(--danger); }.ready-seat-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; color: var(--muted); font-size: 11px; }.ready-seat-rule { color: var(--dim); font: 10px/1 var(--mono); }.ready-side-stack { display: grid; align-content: start; gap: 16px; }.ready-panel { padding: 22px; }.ready-room-code-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 22px; color: var(--muted); font: 10px/1 var(--mono); letter-spacing: .16em; }.ready-room-code-row strong { color: var(--accent); font: 700 26px/1 var(--mono); letter-spacing: .18em; }.ready-qr-frame { position: relative; display: grid; place-items: center; width: 150px; height: 150px; margin: 22px auto 8px; padding: 8px; background: #f0f0e6; border-radius: 4px; }.ready-qr-frame img { width: 100%; height: 100%; image-rendering: pixelated; }.ready-settings-panel .settings-form { margin-top: 17px; }.ready-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 20px 2px 0; border-top: 1px solid var(--line-soft); }.ready-actions p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }.ready-actions .button { min-width: 150px; }.board-screen { min-width: 0; }
.game-layout { display: grid; grid-template-columns: minmax(220px, 276px) minmax(420px, 680px) minmax(220px, 276px); justify-content: center; gap: clamp(14px, 2vw, 28px); padding: 28px clamp(16px, 3vw, 48px) 0; }.side-panel { min-width: 0; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: rgba(7,9,13,.84); }.panel-section { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.08); }.panel-section:last-child { border-bottom: 0; }.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.host-badge, .phase-pill { padding: 4px 7px; border: 1px solid rgba(255,220,8,.34); border-radius: 4px; color: var(--accent); font: 10px/1 var(--mono); }.phase-pill { border-color: var(--line); color: var(--muted); }.phase-pill.playing { border-color: rgba(127,218,158,.35); color: #94d9ae; }.phase-pill.won { border-color: rgba(255,220,8,.5); color: var(--accent); }.side-panel h2 { margin: 20px 0 6px; font-size: 17px; letter-spacing: -.025em; }.side-panel p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }.mono-count { color: var(--dim); font: 10px/1 var(--mono); }.players-list { display: grid; gap: 8px; margin-top: 16px; }.player-row { display: flex; align-items: center; gap: 9px; min-height: 37px; }.player-token { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #151a1d; font: 700 10px/1 var(--mono); }.player-meta { display: grid; gap: 3px; min-width: 0; }.player-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 12px; }.player-state { color: var(--dim); font: 9px/1 var(--mono); }.player-me { color: var(--accent); }.kick-button { margin-left: auto; padding: 5px 6px; border: 0; border-radius: 4px; background: transparent; color: var(--dim); font-size: 11px; }.kick-button:hover { color: var(--danger); background: rgba(244,125,116,.1); }.settings-form { margin-top: 18px; }.settings-form input { height: 37px; margin-bottom: 12px; font-size: 12px; }.settings-row { display: flex; align-items: center; gap: 12px; }.settings-row label { flex: 1; }.settings-row input { width: 70px; text-align: center; }.check-row { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; cursor: pointer; }.check-row input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }.activity-feed { display: grid; gap: 10px; margin-top: 14px; max-height: 200px; overflow: auto; }.activity-item { display: grid; grid-template-columns: 4px 1fr; gap: 9px; color: var(--muted); font-size: 10px; line-height: 1.45; }.activity-item::before { content: ""; width: 4px; height: 4px; margin-top: 5px; border-radius: 50%; background: var(--dim); }.activity-item:first-child { color: var(--ink); }.activity-item:first-child::before { background: var(--accent); }.activity-time { display: block; margin-top: 3px; color: var(--dim); font: 9px/1 var(--mono); }
.board-column { min-width: 0; }.video-scoreline { margin: -2px 0 22px; color: #f2f2f2; font-size: clamp(19px, 2.35vw, 29px); font-weight: 300; letter-spacing: -.04em; text-align: center; }.video-scoreline b { margin: 0 5px; color: #777; font-weight: 300; }.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 57px; padding: 0 4px 15px; }.toolbar-copy { display: grid; gap: 7px; }.toolbar-copy strong { font-size: 15px; }.tool-buttons { display: flex; gap: 6px; }.tool-button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 10px; }.tool-button:hover { color: var(--ink); border-color: rgba(255,220,8,.45); }.tool-button.is-active { border-color: var(--accent); background: rgba(255,220,8,.1); color: var(--accent); }.tool-icon { display: inline-grid; place-items: center; width: 14px; font-size: 16px; }.wall-icon { position: relative; display: inline-block; width: 13px; height: 13px; }.wall-icon::before { content: ""; position: absolute; background: currentColor; border-radius: 2px; }.wall-icon.horizontal::before { left: 0; right: 0; top: 5px; height: 3px; }.wall-icon.vertical::before { top: 0; bottom: 0; left: 5px; width: 3px; }
.board-wrap { position: relative; width: 100%; max-width: 680px; aspect-ratio: 1; padding: 20px; background: #020202; }.board-wrap::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 48%, rgba(22,25,32,.18), transparent 68%); }.board-coordinate { position: absolute; z-index: 2; color: #434d5b; font: 9px/1 var(--mono); pointer-events: none; }.top-coordinates { left: 20px; right: 20px; top: 7px; display: grid; grid-template-columns: repeat(11, 1fr); text-align: center; }.left-coordinates { top: 20px; bottom: 20px; left: 7px; display: grid; grid-template-rows: repeat(11, 1fr); align-items: center; }.board-wrap canvas { position: relative; z-index: 1; display: block; width: 100%; height: 100%; touch-action: none; }.board-helper { position: absolute; bottom: 28px; left: 50%; z-index: 3; transform: translateX(-50%); padding: 6px 9px; border: 1px solid var(--line); border-radius: 4px; background: rgba(2,2,2,.84); color: var(--muted); font: 9px/1 var(--mono); opacity: 0; pointer-events: none; transition: opacity .2s; white-space: nowrap; }.board-wrap:hover .board-helper { opacity: .9; }.board-footer { display: flex; justify-content: space-between; gap: 12px; padding: 13px 4px; color: var(--muted); font: 9px/1 var(--mono); }.legend { display: flex; gap: 14px; }.legend span { display: inline-flex; align-items: center; gap: 6px; }.legend-swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }.center-swatch { background: var(--accent); }.board-revision { color: var(--dim); }
.qr-section h2 { margin-top: 20px; }.qr-section p { max-width: 200px; }.qr-frame { position: relative; display: grid; place-items: center; width: 170px; height: 170px; margin: 20px auto 12px; padding: 9px; background: #f0f0e6; border-radius: 4px; }.qr-frame img { width: 100%; height: 100%; image-rendering: pixelated; }.qr-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 25px; color: #30362c; text-align: center; font: 10px/1.5 var(--mono); }.qr-frame img[src] + .qr-fallback { display: none; }.qr-scan-mark { color: var(--accent); font-size: 17px; }.rules-list { display: grid; gap: 14px; padding: 0; margin: 18px 0 0; list-style: none; }.rules-list li { display: grid; grid-template-columns: 22px 1fr; gap: 7px; color: var(--muted); font-size: 10px; line-height: 1.55; }.rules-list b { color: var(--dim); font: 10px/1.55 var(--mono); }.wall-inventory { display: grid; gap: 9px; margin-top: 16px; }.inventory-row { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }.inventory-dot { width: 9px; height: 9px; border-radius: 50%; }.inventory-name { min-width: 0; }.inventory-count { color: var(--ink); font: 11px/1 var(--mono); }.inventory-bar { grid-column: 2 / -1; height: 3px; margin-top: -4px; overflow: hidden; border-radius: 2px; background: #293340; }.inventory-bar span { display: block; height: 100%; border-radius: inherit; transition: width .3s cubic-bezier(.16,1,.3,1); }
.replay-controls { margin-top: 12px; padding: 16px; border: 1px solid rgba(255,220,8,.26); border-radius: 7px; background: rgba(12,14,18,.92); }.replay-head { display: flex; justify-content: space-between; align-items: center; }.replay-slider { display: block; width: 100%; height: 4px; margin: 16px 0 13px; accent-color: var(--accent); }.replay-actions { display: flex; align-items: center; gap: 7px; }.replay-button { min-height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-raised); color: var(--muted); font-size: 10px; }.replay-button:hover { border-color: var(--accent); color: var(--ink); }.replay-play-button { border-color: var(--accent); color: var(--accent); }.speed-select { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 auto; color: var(--muted); font: 10px/1 var(--mono); }.speed-select select { min-height: 30px; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-raised); color: var(--ink); font: 10px/1 var(--mono); }.winner-actions { display: grid; gap: 8px; }.winner-actions .button { width: 100%; text-decoration: none; }
.winner-banner { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(5,8,12,.78); backdrop-filter: blur(8px); }.winner-card { width: min(390px, 100%); padding: 34px; border: 1px solid rgba(234,216,91,.46); border-radius: 10px; background: #151b24; text-align: center; box-shadow: 0 30px 100px rgba(0,0,0,.4); }.winner-symbol { display: block; margin-bottom: 18px; color: var(--accent); font-size: 30px; }.winner-card h2 { margin: 16px 0 8px; font-size: 24px; letter-spacing: -.04em; }.winner-card p { margin: 0 0 23px; color: var(--muted); font-size: 12px; }.winner-card .button { width: 100%; }.toast { position: fixed; right: 22px; bottom: 22px; z-index: 30; max-width: min(360px, calc(100vw - 44px)); padding: 11px 14px; border: 1px solid rgba(244,125,116,.44); border-radius: 6px; background: #261b20; color: #ffd0cb; font-size: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.3); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; }.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) { .game-layout { grid-template-columns: 230px minmax(390px, 1fr); }.right-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; }.right-panel .panel-section { border-bottom: 0; border-right: 1px solid var(--line-soft); }.right-panel .panel-section:last-child { border-right: 0; }.qr-frame { width: 120px; height: 120px; margin: 12px 0; } }
@media (max-width: 800px) { .lobby-view { grid-template-columns: 1fr; padding-top: 42px; }.lobby-copy h1 { font-size: clamp(44px, 11vw, 72px); }.eyebrow { margin-top: 38px; }.lobby-panels { max-width: 620px; }.identity-card { grid-template-columns: 1fr; gap: 15px; align-items: stretch; }.identity-signed-in { justify-self: start; }.build-note { margin: 0; }.topbar { flex-wrap: wrap; height: auto; min-height: 68px; padding-top: 14px; padding-bottom: 14px; }.topbar-actions { margin-left: auto; }.ready-screen { width: min(680px, calc(100% - 32px)); padding-top: 38px; }.ready-grid { grid-template-columns: 1fr; }.ready-side-stack { grid-template-columns: 1fr 1fr; }.game-layout { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }.left-panel { display: grid; grid-template-columns: 1fr 1fr; }.left-panel .panel-section { border-right: 1px solid var(--line-soft); }.left-panel .panel-section:nth-child(2n) { border-right: 0; }.left-panel .activity-section { grid-column: 1 / -1; border-right: 0; }.right-panel { grid-column: auto; display: grid; grid-template-columns: 1fr; }.right-panel .panel-section { border-right: 0; border-bottom: 1px solid var(--line-soft); }.qr-frame { margin: 20px auto 12px; width: 170px; height: 170px; } }
@media (max-width: 560px) { .lobby-view { padding: 32px 18px 28px; }.lobby-panels { grid-template-columns: 1fr; }.identity-input-row { flex-direction: column; }.identity-input-row .button { width: 100%; }.entry-card { min-height: auto; }.entry-card h2 { margin-top: 34px; }.secondary-entry { min-height: 350px; }.game-view { padding-bottom: 20px; }.topbar { gap: 15px; }.brand-lockup.compact { flex: 1; }.room-heading { order: 3; width: 100%; }.topbar-actions { margin-left: 0; }.connection-state { margin-right: auto; }.ready-screen { width: calc(100% - 24px); padding-top: 28px; }.ready-heading { align-items: start; flex-direction: column; gap: 20px; }.ready-heading-status { justify-items: start; grid-auto-flow: column; align-items: center; }.ready-seats { grid-template-columns: 1fr; }.ready-seat { min-height: 108px; }.ready-side-stack { grid-template-columns: 1fr; }.ready-actions { align-items: stretch; flex-direction: column; gap: 16px; }.ready-actions .button { width: 100%; }.game-layout { padding: 15px 12px 0; }.board-toolbar { align-items: flex-start; flex-direction: column; padding: 8px 0 12px; }.tool-buttons { width: 100%; }.tool-button { flex: 1; justify-content: center; }.board-wrap { padding: 14px; }.top-coordinates { left: 14px; right: 14px; top: 4px; }.left-coordinates { top: 14px; bottom: 14px; left: 3px; }.board-helper { bottom: 18px; font-size: 8px; }.left-panel { display: block; }.left-panel .panel-section { border-right: 0; }.legend { gap: 8px; }.board-footer { font-size: 8px; }.replay-actions { flex-wrap: wrap; }.replay-button { flex: 1 1 28%; }.speed-select { margin-left: 0; } }
.mobile-action-confirm { display: flex; align-items: center; justify-content: center; gap: 7px; width: fit-content; margin: 9px auto 0; padding: 6px; border: 1px solid rgba(255,220,8,.38); border-radius: 7px; background: rgba(7,9,13,.93); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.mobile-action-confirm .button, .mobile-action-confirm .replay-button { min-height: 36px; white-space: nowrap; }
@media (min-width: 561px) { .mobile-action-confirm { display: none !important; } }
.turn-alert { display: flex; align-items: center; gap: 12px; min-height: 62px; margin: 0 0 12px; padding: 11px 14px; border: 1px solid rgba(132,153,173,.24); border-radius: 8px; background: rgba(8,12,18,.9); box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.turn-alert.is-your-turn { border-color: rgba(255,220,8,.86); background: linear-gradient(100deg, rgba(255,220,8,.18), rgba(12,16,22,.96) 58%); box-shadow: 0 0 0 1px rgba(255,220,8,.13), 0 0 30px rgba(255,220,8,.18); animation: turn-alert-pulse 1.8s ease-in-out infinite; }
.turn-alert.is-waiting { border-color: rgba(30,184,255,.35); }
.turn-alert.is-finished { border-color: rgba(127,218,158,.42); }
.turn-alert-pulse { flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; background: #6b7785; box-shadow: 0 0 0 0 rgba(107,119,133,.4); }
.is-your-turn .turn-alert-pulse { background: var(--accent); box-shadow: 0 0 0 7px rgba(255,220,8,.12), 0 0 18px rgba(255,220,8,.8); }
.is-waiting .turn-alert-pulse { background: #1eb8ff; }
.is-finished .turn-alert-pulse { background: #7fda9e; }
.turn-alert-copy { display: grid; gap: 4px; min-width: 0; }
.turn-alert-kicker { color: var(--dim); font: 9px/1 var(--mono); letter-spacing: .12em; }
.is-your-turn .turn-alert-kicker, .is-your-turn .turn-alert-copy strong { color: var(--accent); }
.turn-alert-copy strong { font-size: 16px; letter-spacing: -.02em; }
.turn-alert-hint { margin-left: auto; color: var(--muted); font: 10px/1.3 var(--mono); text-align: right; }
@keyframes turn-alert-pulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.probability-note { margin: 10px 0 15px; color: var(--dim); font-size: 10px; line-height: 1.5; }
.win-probabilities { display: grid; gap: 13px; }
.probability-row { display: grid; gap: 5px; }
.probability-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.probability-head > span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.probability-head strong { color: var(--ink); font: 12px/1 var(--mono); }
.probability-dot, .ranking-dot { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; }
.probability-track { height: 4px; overflow: hidden; border-radius: 3px; background: #252e39; }
.probability-track span { display: block; height: 100%; min-width: 4px; border-radius: inherit; transition: width .35s cubic-bezier(.16,1,.3,1); }
.ranking-list { display: grid; gap: 8px; margin: 15px 0 22px; text-align: left; }
.ranking-row { display: grid; grid-template-columns: 22px 10px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 8px 9px; border-radius: 5px; background: rgba(255,255,255,.045); color: var(--muted); font-size: 10px; }
.ranking-row:first-child { border: 1px solid rgba(255,220,8,.35); color: var(--ink); }
.ranking-number { color: var(--accent); font: 700 12px/1 var(--mono); }
.ranking-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; }
@media (max-width: 560px) { .turn-alert { min-height: 58px; margin-bottom: 9px; }.turn-alert-copy strong { font-size: 15px; }.turn-alert-hint { max-width: 115px; }.probability-section { padding-top: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
.button-danger { border-color: rgba(244,125,116,.48); background: rgba(244,125,116,.09); color: #ffb5ae; }.button-danger:hover:not(:disabled) { border-color: var(--danger); background: rgba(244,125,116,.16); color: #ffd0cb; }
.seat-action { position: absolute; right: 12px; bottom: 12px; min-height: 25px; padding: 0 8px; border: 1px solid rgba(255,220,8,.36); border-radius: 4px; background: rgba(255,220,8,.08); color: var(--accent); font: 10px/1 var(--mono); }.seat-action:hover { border-color: var(--accent); background: rgba(255,220,8,.16); }
.spectators-list { display: grid; gap: 8px; margin-top: 14px; }.spectator-row { display: flex; align-items: center; gap: 8px; min-height: 27px; color: var(--muted); font-size: 11px; }.spectator-row .kick-button { margin-left: auto; }.spectator-dot { width: 7px; height: 7px; flex: 0 0 auto; border: 1px solid #738193; border-radius: 50%; background: transparent; }.empty-note { color: var(--dim); font: 10px/1.4 var(--mono); }
.ready-spectators-panel { min-height: 88px; }
