:root { --paper:#f7f8f5; --panel:#fff; --ink:#182b38; --muted:#61717a; --blue:#216bdf; --line:#dfe5df; }
:root[data-theme="dark"] { --paper:#12181e; --panel:#1b252e; --ink:#e8edf4; --muted:#a1adbd; --blue:#7bb0ff; --line:#33404a; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--paper); color:var(--ink); font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.page { max-width:1100px; margin:auto; padding:0 36px; }
.game-nav { display:flex; justify-content:space-between; align-items:center; padding-top:24px; margin-bottom:32px; color:var(--muted); font-size:13px; }
.game-nav a { color:var(--blue); }
.game-heading { display:flex; gap:20px; align-items:center; margin-bottom:22px; font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; }
.game-heading__code { font:700 46px/1 ui-monospace,SFMono-Regular,Menlo,monospace; color:#1e70d8; letter-spacing:-2px; padding-right:20px; border-right:2px solid #d8dde5; }
.game-heading__text h1 { margin:0 0 2px; font-size:21px; font-weight:650; letter-spacing:-.2px; }
.game-heading__text p { margin:0; color:var(--muted); font-size:14px; }
:root[data-theme="dark"] .game-heading__code { color:#6da9ff; border-color:#2a323d; }
@media(max-width:560px) { .game-heading { gap:14px; }.game-heading__code { font-size:34px; padding-right:14px; } }
a { color:inherit; text-decoration:none; font-weight:650; }
button,select { font:inherit; cursor:pointer; }
button { padding:8px 18px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--ink); font-weight:650; }
button:disabled { opacity:.4; cursor:default; }
:focus-visible { outline:3px solid var(--blue); outline-offset:4px; }
.eyebrow,.record,.instructions>div>span { font-size:10px; font-weight:750; letter-spacing:1.8px; }
.eyebrow { color:var(--blue); margin:0 0 8px; }
.record { display:flex; justify-content:flex-end; align-items:baseline; gap:8px; margin-bottom:12px; }.record strong { font-size:18px; letter-spacing:-.5px; line-height:1.3; }.record span { color:var(--muted); font-weight:400; letter-spacing:0; }
.match-bar { display:flex; justify-content:space-between; align-items:center; padding:12px 22px; border:1px solid var(--line); border-bottom:0; background:var(--panel); border-radius:14px 14px 0 0; font-size:12px; font-weight:750; letter-spacing:1px; }
.match-bar>span { display:flex; align-items:center; gap:12px; }.match-bar strong { font-size:28px; font-variant-numeric:tabular-nums; }.rule { color:var(--muted); font-size:10px; }.dot { width:8px; height:8px; border-radius:50%; }.blue { background:#609fff; }.orange { background:#ffbe72; }
.court { position:relative; overflow:hidden; border-radius:0 0 14px 14px; background:#142c3b; }
canvas { display:block; width:100%; height:auto; touch-action:none; }canvas:focus-visible { outline-offset:-4px; }
.overlay { position:absolute; inset:0; display:grid; place-items:center; background:#102535b8; padding:16px; }.overlay[hidden] { display:none; }
.modal { color:#eef5fa; text-align:center; max-width:450px; }.modal .eyebrow { color:#95bcff; }.modal h2 { font-size:clamp(26px,4vw,40px); letter-spacing:-1px; line-height:1.1; margin:12px 0; }.modal p:not(.eyebrow) { color:#c0d1dd; font-size:14px; }.modal label { display:block; font-size:12px; margin:16px 0; }.modal select { margin-left:10px; border:1px solid #71899c; border-radius:6px; background:#183345; color:#fff; padding:5px 24px 5px 10px; }
.primary { display:inline-flex; justify-content:space-between; gap:40px; border:0; color:white; background:#216bdf; padding:12px 24px; }.primary:hover { background:#1558bd; }
.toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 0; }.toolbar p { margin:0; color:var(--muted); font-size:13px; }
.instructions { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin:12px 0 35px; padding-top:22px; border-top:1px solid var(--line); }.instructions>div>span { color:var(--blue); }.instructions p { color:var(--muted); font-size:12px; margin-bottom:0; }kbd { background:var(--panel); border:1px solid var(--line); border-radius:4px; padding:1px 5px; font:inherit; }
footer { border-top:1px solid var(--line); padding:20px 0 28px; color:var(--muted); font-size:11px; }
@media(max-width:600px) { .page { padding:0 16px; }.record { font-size:8px; }.court { min-height:320px; }canvas { height:320px; object-fit:fill; }.modal p:not(.eyebrow) { font-size:12px; }.modal .eyebrow { font-size:8px; }.instructions { gap:12px; }.instructions>div>span { font-size:8px; letter-spacing:1px; }.instructions p { font-size:11px; }.match-bar { padding:8px 14px; } }

.actions { display:flex; gap:8px; flex-shrink:0; }
#invite { margin:16px 0; }
#invite label { margin:4px 0; }
#room-link { width:100%; border:1px solid #71899c; border-radius:6px; background:#183345; color:#fff; padding:8px; font:12px system-ui; }
#copy-link { margin-top:8px; }
@media(max-width:600px) { .toolbar { align-items:flex-start; flex-wrap:wrap; }.modal label { margin:8px 0; }.modal h2 { margin:8px 0; }.modal p { margin:8px 0; } }
