@import url('/tokens.css');

* { box-sizing: border-box; }
html { min-width: 320px; color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 75% 5%, #31403319, transparent 58%); z-index: -1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button, input, select, textarea { border-radius: 10px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button { color: inherit; }
input, select, textarea { width: 100%; color: var(--text); background: var(--field); border: 1px solid var(--line); padding: 13px 14px; min-height: 48px; }
input::placeholder, textarea::placeholder { color: var(--quiet); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px #c5e5ae16; }
textarea { resize: vertical; min-height: 110px; }
label { display: block; font-size: 13px; font-weight: 560; margin: 0 0 8px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 550; line-height: 1.12; letter-spacing: -.045em; }
h1 { font-size: clamp(36px, 4.8vw, 60px); margin-bottom: 18px; }
h2 { font-size: 29px; }
h3 { font-size: 19px; letter-spacing: -.02em; }
p { margin-bottom: 18px; }
small, .small { font-size: 12px; }
[hidden] { display: none !important; }
.skip-link { opacity: 0; pointer-events: none; position: fixed; top: -100px; left: 20px; background: var(--accent); color: var(--accent-ink); padding: 12px 18px; z-index: 50; }
.skip-link:focus { top: 10px; opacity: 1; pointer-events: auto; }
.site-header { max-width: 1240px; margin: auto; padding: 30px 36px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 25px; font-weight: 620; letter-spacing: -.05em; line-height: 1.1; }
.brand-note { display: block; margin-top: 5px; font-size: 10px; font-weight: 450; letter-spacing: .015em; color: var(--muted); }
.brand-symbol { display: grid; grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); gap: 3px; transform: rotate(-7deg); }
.brand-symbol i { background: var(--accent); border-radius: 2px; }
.brand-symbol i:last-child { opacity: .5; }
.site-nav { display: flex; align-items: center; gap: 29px; color: var(--muted); font-size: 13px; }
.site-nav a { padding: 8px 0; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--text); }
.site-nav a[aria-current='page'] { box-shadow: 0 1px var(--accent); }
main { min-height: calc(100svh - 205px); max-width: 1168px; margin: 0 auto; padding: 30px 0 60px; }
main:focus { outline: none; }
.site-footer { max-width: 1240px; margin: auto; padding: 22px 36px 30px; display: flex; justify-content: space-between; gap: 24px; font-size: 11px; color: var(--quiet); }
.site-footer a:hover { color: var(--muted); }
.eyebrow { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: var(--accent); margin-bottom: 20px; }
.muted { color: var(--muted); }
.quiet { color: var(--quiet); }
.lead { font-size: 17px; max-width: 550px; color: var(--muted); line-height: 1.65; }
.text-link { text-decoration: underline; text-decoration-color: #858d8255; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: var(--accent); }
.button { border: 1px solid transparent; display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; background: var(--accent); color: var(--accent-ink); font-weight: 620; font-size: 13px; line-height: 1.3; transition: background .15s, transform .15s; text-align: center; }
.button:hover:not(:disabled) { background: #d4efbf; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button.secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.button.secondary:hover:not(:disabled) { background: var(--surface-hover); }
.button.ghost { background: transparent; color: var(--muted); padding-left: 0; padding-right: 0; }
.button.ghost:hover { background: transparent; color: var(--text); }
.button.danger { background: #5b3330; color: #ffd5cd; border: 1px solid #84544a; }
.button.small { min-height: 36px; padding: 8px 13px; font-size: 12px; }
.button.wide { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.field { margin-bottom: 20px; }
.field-help { margin: 7px 0 0; font-size: 12px; color: var(--quiet); }
.form-error { color: var(--error); font-size: 13px; margin-top: 14px; margin-bottom: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.settings-grid label { font-size: 11px; color: var(--muted); }
.settings-grid select { padding: 10px; min-height: 43px; font-size: 12px; }
summary { cursor: pointer; color: var(--muted); font-size: 12px; padding: 6px 0; }
summary:hover { color: var(--text); }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 90px; align-items: center; padding: 42px 26px 50px; }
.hero h1 { font-size: clamp(48px, 5.2vw, 72px); line-height: 1.035; letter-spacing: -.065em; margin-bottom: 26px; }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: 16px; max-width: 370px; }
.hero-illustration { width: 288px; margin: 36px 0 0 5px; transform: rotate(-6deg); position: relative; }
.hero-illustration::before { content: ''; position: absolute; inset: -14px; border: 1px solid #c5e5ae12; border-radius: 22px; transform: rotate(10deg); }
.hero-illustration .board { padding: 12px; gap: 7px; border-radius: 18px; background: #1f2520; box-shadow: 0 20px 70px #0003; }
.hero-illustration .tile { font-size: 26px; border-radius: 9px; }
.hero-illustration .board-path { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
.hero-illustration .tile.selected { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 -3px #8fae7966; }
.hero-illustration .board-path polyline { stroke: #8bb47099; }
.illustration-caption { transform: rotate(6deg); position: absolute; bottom: 16px; right: -96px; padding: 11px 18px; color: var(--accent); background: #293226; box-shadow: 0 10px 30px #0003; border-radius: 9px; font-size: 12px; letter-spacing: .12em; }
.create-panel { background: #20241f; border: 1px solid #343c30; border-radius: 22px; padding: 35px 36px 31px; }
.create-panel h2 { margin-bottom: 12px; font-size: 27px; }
.create-panel > p { font-size: 13px; margin-bottom: 28px; }
.create-panel .button.wide { margin-top: 14px; }
.create-panel .join-note { margin: 19px 0 0; font-size: 12px; line-height: 1.6; }
.join-note a { color: var(--accent); }
.home-bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 30px 26px 0; border-top: 1px solid var(--line); }
.home-bottom p { font-size: 13px; color: var(--muted); max-width: 270px; }
.home-bottom h3 { font-size: 15px; letter-spacing: -.01em; margin-bottom: 10px; }
.feature-number { font-size: 10px; color: var(--quiet); display: block; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.page-heading { margin: 20px 0 42px; }
.page-heading h1 { font-size: 45px; }
.page-heading .eyebrow { margin-bottom: 15px; }
.page-heading.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.page-heading.split p:last-child { margin-bottom: 0; }
.panel { background: var(--surface); padding: 28px; border: 1px solid var(--line); border-radius: 16px; }
.empty-state { padding: 65px 24px; text-align: center; border: 1px dashed #495043; border-radius: 18px; }
.empty-state h2 { font-size: 28px; }
.empty-state p { max-width: 450px; margin: 0 auto 24px; color: var(--muted); font-size: 14px; }
.room-list { display: grid; gap: 12px; }
.room-list-item { display: flex; align-items: center; gap: 25px; padding: 23px 26px; background: var(--surface); border-radius: 14px; border: 1px solid var(--line); }
.room-list-name { flex: 1; }
.room-list-name h2 { font-size: 22px; margin-bottom: 8px; }
.room-list-name p { font-size: 12px; color: var(--muted); margin: 0; }
.room-list-item:hover { border-color: #4c5c43; }
.join-link-form { display: flex; align-items: end; gap: 12px; max-width: 650px; margin-top: 45px; }
.join-link-form .field { flex: 1; margin: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 11px; white-space: nowrap; }
.status-pill::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status-pill.muted { color: var(--muted); }
.status-pill.warning { color: var(--warning); }
.invite-layout { max-width: 460px; margin: 55px auto; text-align: center; }
.invite-layout .brand-symbol { justify-content: center; margin-bottom: 30px; }
.invite-layout h1 { font-size: 43px; overflow-wrap: anywhere; }
.invite-layout form { text-align: left; margin-top: 32px; }
.invite-layout .field-help { text-align: center; margin-top: 18px; line-height: 1.7; }
.breadcrumb { font-size: 11px; color: var(--muted); margin-bottom: 17px; display: flex; align-items: center; gap: 12px; }
.breadcrumb span { color: var(--quiet); }
.room-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 8px 0 32px; }
.room-header h1 { font-size: 34px; margin: 0 0 9px; overflow-wrap: anywhere; }
.room-header p { margin: 0; font-size: 12px; color: var(--muted); }
.room-header-actions { display: flex; align-items: center; gap: 18px; }
.connection-state { font-size: 11px; }
.room-menu { position: relative; }
.room-menu summary { list-style: none; letter-spacing: .2em; padding: 10px 4px; font-size: 19px; }
.room-menu summary::-webkit-details-marker { display: none; }
.room-menu-content { z-index: 10; position: absolute; top: 45px; right: 0; width: 225px; box-shadow: 0 10px 35px #0005; background: #272b25; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.room-menu-content button, .room-menu-content a { padding: 12px; display: block; width: 100%; border: 0; background: transparent; text-align: left; font-size: 12px; border-radius: 6px; }
.room-menu-content button:hover, .room-menu-content a:hover { background: #373e31; }
.room-menu-content .danger-text { color: var(--error); }
.lobby-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; padding: 28px 0; }
.lobby-intro { padding: 16px 0; }
.lobby-intro h2 { font-size: 46px; line-height: 1.1; margin-bottom: 25px; }
.lobby-intro > p { color: var(--muted); max-width: 440px; }
.lobby-intro .button-row { margin-top: 30px; }
.lobby-preview { width: 248px; margin: 38px 0 0; opacity: .6; }
.lobby-preview .tile { font-size: 24px; }
.room-roster { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.player-chip { background: #ffffff05; border: 1px solid var(--line); border-radius: 24px; padding: 7px 13px 7px 7px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.player-chip.offline { opacity: .5; }
.player-avatar { width: 27px; height: 27px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 600; font-size: 10px; background: #3a4434; color: #d0dfbf; flex-shrink: 0; }
.player-avatar[data-color='1'] { background: #403c4b; color: #d6c6eb; }
.player-avatar[data-color='2'] { background: #49402f; color: #eddbb8; }
.player-avatar[data-color='3'] { background: #2e4249; color: #bbdce5; }
.player-chip .you-tag { color: var(--quiet); font-size: 10px; }
.lobby-settings { margin-top: 34px; padding-top: 25px; border-top: 1px solid var(--line); }
.lobby-settings h3 { font-size: 16px; margin-bottom: 13px; }
.lobby-settings .small { color: var(--muted); }
.lobby-settings .settings-grid { margin-bottom: 4px; }
.game-layout { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 80px; align-items: start; }
.game-main { max-width: 520px; }
.game-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.game-topline .eyebrow { margin: 0 0 5px; color: var(--muted); }
.game-topline h2 { margin: 0; font-size: 23px; }
.timer { font-size: 42px; font-weight: 540; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.timer.urgent { color: var(--warning); }
.timer-track { height: 3px; overflow: hidden; background: var(--line); margin-bottom: 24px; border-radius: 10px; }
.timer-track > span { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left; transition: transform .2s linear; }
.board-frame { position: relative; }
.board { display: grid; grid-template-columns: repeat(var(--size, 4), 1fr); gap: 10px; padding: 14px; background: #121512; border: 1px solid #2c3228; border-radius: 20px; position: relative; user-select: none; -webkit-user-select: none; touch-action: none; }
.board[data-feedback="accepted"] { --feedback-color: var(--accent); --feedback-tint: #b6d99514; }
.board[data-feedback="duplicate"] { --feedback-color: var(--warning); --feedback-tint: #e7c38914; }
.board[data-feedback="invalid"] { --feedback-color: var(--error); --feedback-tint: #e09b8e14; }
.board[data-feedback]::after { content: ''; position: absolute; inset: -1px; border: 2px solid var(--feedback-color); border-radius: inherit; background: var(--feedback-tint); pointer-events: none; z-index: 4; }
.tile { aspect-ratio: 1; padding: 0; border: 1px solid #3b4136; border-radius: 12px; background: linear-gradient(145deg, #343a30, #2a3027); box-shadow: inset 0 -4px #0002, 0 3px 3px #0002; font-size: clamp(23px, 3vw, 37px); font-weight: 610; color: #eef0e5; position: relative; z-index: 1; display: grid; place-items: center; line-height: 1; transition: background .08s, border-color .08s; }
.tile span { position: relative; z-index: 3; pointer-events: none; }
.tile:not(:disabled):hover { border-color: #7b8f68; }
.tile:disabled { opacity: 1; cursor: default; }
.tile.selected { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: inset 0 -4px #78936055; }
.tile.path-end { outline: 2px solid #e7f5dd; outline-offset: -4px; }
.tile.revealed { background: #404334; border-color: #959b6c; }
.board-path { pointer-events: none; position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); z-index: 2; overflow: visible; }
.board-path polyline { stroke: #8cab7377; stroke-width: 8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.board-path circle { fill: #c5e5ae; }
.board-overlay { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 20px; background: #171a18d9; backdrop-filter: blur(8px); }
.board-overlay span { font-size: 80px; font-weight: 550; letter-spacing: -.07em; line-height: 1.2; color: var(--accent); }
.board-overlay p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.selection-bar { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 4px; margin-top: 9px; }
.selected-word { flex: 1; font-size: 23px; font-weight: 570; letter-spacing: .1em; overflow-wrap: anywhere; line-height: 1.3; }
.selected-word.placeholder { font-size: 12px; letter-spacing: 0; font-weight: 400; color: var(--quiet); }
.selection-bar .button { padding: 10px 14px; min-height: 40px; }
.word-feedback { min-height: 24px; font-size: 12px; color: var(--accent); margin: 0 4px 12px; }
.word-feedback[data-outcome="duplicate"] { color: var(--warning); }
.word-feedback[data-outcome="invalid"] { color: var(--error); }
.word-feedback[data-outcome="pending"] { color: var(--muted); }
.input-hint { font-size: 11px; color: var(--quiet); margin: 0 4px 10px; }
.feedback-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; margin: 0 4px 20px; font-size: 11px; color: var(--muted); }
.feedback-legend li { display: inline-flex; align-items: center; gap: 6px; }
.feedback-legend li span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.feedback-legend [data-outcome="duplicate"] span { background: var(--warning); }
.feedback-legend [data-outcome="invalid"] span { background: var(--error); }
.typed-word-form { display: flex; gap: 8px; margin-top: 10px; }
.typed-word-form input { min-width: 0; font-size: 14px; }
.typed-word-form .button { padding: 10px 16px; }
.game-sidebar { padding-top: 8px; }
.score-heading { display: flex; align-items: end; gap: 12px; margin: 20px 0 27px; }
.score-heading strong { font-size: 60px; line-height: .9; letter-spacing: -.05em; font-weight: 500; }
.score-heading span { font-size: 13px; color: var(--muted); padding-bottom: 3px; }
.found-heading { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.found-heading h3 { margin: 0; font-size: 15px; }
.found-heading span { color: var(--quiet); font-size: 11px; }
.found-word-list { display: flex; flex-wrap: wrap; align-content: start; gap: 9px; margin: 18px 0 30px; max-height: 290px; min-height: 90px; overflow-y: auto; }
.word-chip { padding: 7px 11px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; color: var(--text); background: #24291f; }
.word-chip small { color: var(--accent); margin-left: 8px; font-size: 10px; }
.found-empty { color: var(--quiet); font-size: 13px; margin-top: 2px; }
.sidebar-note { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 30px; font-size: 12px; color: var(--muted); }
.sidebar-note p { margin-bottom: 10px; }
.result-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 10px 0 28px; }
.result-heading h2 { font-size: 39px; margin-bottom: 10px; }
.result-heading p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.result-round-switch { display: flex; align-items: center; gap: 10px; }
.result-round-switch select { width: 142px; min-height: 40px; padding: 9px 12px; font-size: 12px; }
.result-summary { display: flex; gap: 14px; overflow-x: auto; margin-bottom: 35px; padding-bottom: 5px; }
.result-player { min-width: 185px; flex: 1; max-width: 270px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.result-player.winner { border-color: #677956; background: #262f22; }
.result-player-top { display: flex; align-items: center; gap: 8px; margin-bottom: 17px; font-size: 12px; }
.result-player-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.result-player .points { font-size: 38px; line-height: 1; letter-spacing: -.04em; margin-right: 6px; }
.result-player .points-label { font-size: 11px; color: var(--muted); }
.result-player-bottom { display: flex; justify-content: space-between; margin-top: 12px; font-size: 10px; color: var(--muted); gap: 5px; }
.winner-tag { color: var(--accent); }
.results-layout { display: grid; grid-template-columns: minmax(0, 405px) minmax(0, 1fr); gap: 55px; align-items: start; }
.result-board-column { position: sticky; top: 25px; }
.result-board-column .board { gap: 8px; padding: 12px; border-radius: 18px; }
.result-board-column .tile { font-size: 30px; }
.result-board-column .board-path { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
.board-caption { display: flex; justify-content: space-between; gap: 12px; color: var(--quiet); font-size: 10px; margin: 13px 3px 0; }
.word-detail { margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.word-detail h3 { font-size: 30px; margin-bottom: 9px; letter-spacing: -.04em; }
.word-detail .detail-score { color: var(--accent); font-size: 12px; margin-bottom: 18px; }
.word-detail .definition { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 13px; }
.word-detail .definition-part { display: block; font-size: 10px; color: var(--quiet); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.word-detail .finders { font-size: 11px; color: var(--muted); margin-bottom: 16px; }
.word-detail .text-link { font-size: 10px; color: var(--quiet); }
.word-detail-empty { color: var(--quiet); font-size: 13px; margin: 0; }
.explorer-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.explorer-topline h3 { font-size: 22px; margin: 0; }
.explorer-topline span { font-size: 11px; color: var(--quiet); }
.filter-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-tab { background: transparent; border: 1px solid var(--line); color: var(--muted); min-height: 34px; padding: 7px 12px; font-size: 11px; border-radius: 20px; }
.filter-tab[aria-pressed='true'] { background: #c5e5ae; border-color: var(--accent); color: var(--accent-ink); }
.explorer-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.explorer-controls select, .explorer-controls input { min-height: 39px; font-size: 12px; padding: 9px 12px; }
.explorer-controls input { flex: 1; min-width: 100px; }
.explorer-controls select { width: 155px; }
.word-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.word-table th { color: var(--quiet); font-size: 10px; font-weight: 400; text-align: left; padding: 9px 12px 12px; border-bottom: 1px solid var(--line); }
.word-table th:nth-child(2) { width: 44%; }
.word-table th:last-child { text-align: right; width: 58px; }
.word-table td { padding: 0; border-bottom: 1px solid #333a2e77; font-size: 12px; }
.word-table td:nth-child(2) { padding: 8px 12px; color: var(--muted); font-size: 10px; }
.word-table td:last-child { text-align: right; color: var(--accent); padding: 10px 12px; }
.word-table button { padding: 12px; background: transparent; border: 0; text-align: left; width: 100%; border-radius: 4px; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.word-table tr.selected-row { background: #c5e5ae0b; }
.word-table tr:hover { background: #ffffff03; }
.word-table .empty-cell { padding: 25px 12px; color: var(--quiet); font-size: 12px; text-align: left; }
.explorer-note { font-size: 10px; color: var(--quiet); margin: 15px 0 0; }
.missed-prompt { border: 1px dashed var(--line); border-radius: 12px; padding: 25px; margin: 20px 0; }
.missed-prompt h3 { font-size: 19px; }
.missed-prompt p { color: var(--muted); font-size: 12px; }
.room-standings { margin-top: 55px; border-top: 1px solid var(--line); padding-top: 30px; }
.room-standings h3 { margin-bottom: 5px; }
.room-standings > p { font-size: 11px; color: var(--quiet); }
.standings-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.standings-table th { color: var(--quiet); font-size: 10px; font-weight: 400; text-align: right; padding: 10px; }
.standings-table th:first-child { text-align: left; }
.standings-table td { padding: 14px 10px; border-top: 1px solid var(--line); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.standings-table td:first-child { text-align: left; }
.standings-player { display: inline-flex; align-items: center; gap: 10px; }
.standings-table td:last-child { color: var(--accent); font-weight: 600; }
.result-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 42px; padding-top: 25px; }
.result-bottom p { font-size: 12px; color: var(--muted); margin: 0; }
.content-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: start; }
.content-section { margin-bottom: 35px; }
.content-section h2 { font-size: 25px; margin-bottom: 16px; }
.content-section p { color: var(--muted); font-size: 14px; }
.content-section ol { padding-left: 20px; color: var(--muted); font-size: 14px; }
.content-section li { padding: 0 0 13px 6px; }
.score-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.score-table th { font-size: 11px; color: var(--quiet); font-weight: 400; text-align: left; padding: 10px 0; }
.score-table td { border-top: 1px solid var(--line); padding: 12px 0; font-size: 14px; }
.score-table td:last-child { color: var(--accent); }
.callout { background: #293124; border-left: 2px solid var(--accent); padding: 18px 20px; border-radius: 0 9px 9px 0; font-size: 13px; color: #c5cebb; }
.vocabulary-form .button { margin-top: 4px; }
.admin-key-form { max-width: 480px; }
.admin-topline { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.admin-columns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 45px; }
.admin-suggestion { padding: 20px 0; border-bottom: 1px solid var(--line); }
.admin-suggestion:first-child { padding-top: 0; }
.admin-suggestion h3 { margin-bottom: 7px; font-size: 22px; }
.admin-suggestion p { font-size: 12px; margin-bottom: 12px; color: var(--muted); }
.admin-suggestion .metadata { color: var(--quiet); font-size: 10px; }
.override-list { display: flex; flex-direction: column; margin-top: 23px; }
.override-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 12px; }
.override-item strong { flex: 1; font-weight: 500; }
.override-item span { color: var(--muted); }
.loading-state { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 100px 0; color: var(--muted); font-size: 13px; }
.loading-dot { height: 7px; width: 7px; background: var(--accent); border-radius: 50%; animation: pulse 1s ease-in-out infinite alternate; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; background: #d5e8c6; border: 1px solid #c5e5ae; color: #24321f; padding: 13px 20px; border-radius: 12px; font-size: 13px; box-shadow: 0 10px 40px #0006; z-index: 40; }
.toast.error { background: #f0c7bb; border-color: #f0c7bb; color: #4c281e; }
.confirmation-dialog { width: min(450px, calc(100% - 36px)); background: #262b23; color: var(--text); border: 1px solid #48523f; border-radius: 20px; padding: 30px; box-shadow: 0 20px 80px #0008; }
.confirmation-dialog::backdrop { background: #0009; backdrop-filter: blur(4px); }
.confirmation-dialog h2 { font-size: 28px; }
.confirmation-dialog p { font-size: 13px; }
.confirmation-dialog .button-row { justify-content: end; margin-top: 28px; }
@keyframes pulse { to { opacity: .3; } }
@media (min-width: 1600px) { main { padding-top: 50px; } .hero { padding-top: 65px; padding-bottom: 75px; } }
@media (max-width: 1239px) { main { padding-left: 36px; padding-right: 36px; } .hero { padding-left: 0; padding-right: 0; gap: 65px; } .game-layout { gap: 55px; } }
@media (max-width: 950px) { .hero { gap: 38px; } .hero h1 { font-size: 56px; } .create-panel { padding: 28px; } .hero-illustration { width: 220px; } .illustration-caption { right: -80px; } .home-bottom { padding-left: 0; padding-right: 0; gap: 25px; } .game-layout { gap: 35px; grid-template-columns: 1.2fr 1fr; } .results-layout { grid-template-columns: .9fr 1.1fr; gap: 30px; } .content-layout { gap: 40px; } .lobby-layout { gap: 35px; } .result-board-column .tile { font-size: 25px; } }
@media (max-width: 720px) {
  .site-header { padding: 23px 22px; gap: 20px; }
  .brand { font-size: 23px; gap: 10px; }
  .brand-note { font-size: 9px; }
  .site-nav { font-size: 11px; gap: 17px; }
  .site-nav a:last-child { display: none; }
  main { padding: 20px 22px 40px; }
  .site-footer { padding: 22px; font-size: 10px; }
  .hero { grid-template-columns: 1fr; padding: 20px 0 34px; gap: 25px; position: relative; }
  .hero-copy { position: relative; padding-right: 90px; }
  .hero h1 { font-size: clamp(42px, 8vw, 58px); margin-bottom: 20px; }
  .hero .eyebrow { font-size: 9px; margin-bottom: 17px; }
  .hero .lead { font-size: 14px; max-width: 330px; margin-bottom: 0; }
  .hero-illustration { position: absolute; width: 113px; top: 24px; right: -3px; margin: 0; opacity: .7; }
  .hero-illustration::before { inset: -6px; border-radius: 8px; }
  .hero-illustration .board { padding: 5px; gap: 3px; border-radius: 7px; }
  .hero-illustration .tile { font-size: 12px; border-radius: 3px; box-shadow: none; }
  .hero-illustration .board-path { inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); }
  .hero-illustration .board-path polyline { stroke-width: 6; }
  .illustration-caption { display: none; }
  .create-panel { padding: 25px; border-radius: 17px; }
  .create-panel > p { margin-bottom: 23px; }
  .create-panel .field { margin-bottom: 17px; }
  .home-bottom { grid-template-columns: 1fr; gap: 22px; padding-top: 25px; }
  .home-bottom > div { display: grid; grid-template-columns: 24px 1fr; column-gap: 14px; }
  .feature-number { grid-row: span 2; margin-top: 4px; }
  .home-bottom h3 { margin-bottom: 6px; }
  .home-bottom p { max-width: none; margin: 0; font-size: 12px; }
  .page-heading { margin: 15px 0 28px; }
  .page-heading h1 { font-size: 36px; }
  .page-heading.split { display: block; }
  .page-heading.split .button { margin-top: 20px; }
  .lead { font-size: 15px; }
  .room-list-item { padding: 20px; gap: 15px; flex-wrap: wrap; }
  .room-list-name h2 { font-size: 21px; }
  .room-list-item > .status-pill { display: none; }
  .room-list-item .button { padding: 10px 15px; }
  .join-link-form { margin-top: 32px; }
  .room-header { align-items: flex-start; margin-bottom: 28px; gap: 13px; }
  .room-header h1 { font-size: 27px; }
  .room-header-actions { gap: 12px; }
  .room-header-actions > .button { min-height: 35px; padding: 8px 12px; font-size: 11px; }
  .connection-state { font-size: 10px; }
  .lobby-layout { grid-template-columns: 1fr; gap: 30px; padding-top: 5px; }
  .lobby-intro { padding: 0; }
  .lobby-intro h2 { font-size: 38px; }
  .lobby-intro p { font-size: 14px; }
  .lobby-preview { display: none; }
  .lobby-layout > aside { border-top: 1px solid var(--line); padding-top: 25px; }
  .lobby-settings { margin-top: 26px; }
  .game-layout { grid-template-columns: 1fr; gap: 25px; }
  .game-main { max-width: 480px; width: 100%; margin: auto; }
  .game-topline { margin-bottom: 13px; }
  .game-topline h2 { font-size: 20px; }
  .timer { font-size: 35px; }
  .timer-track { margin-bottom: 17px; }
  .board { padding: 11px; gap: 8px; border-radius: 17px; }
  .tile { border-radius: 10px; font-size: clamp(25px, 7vw, 36px); }
  .board-path { inset: 11px; width: calc(100% - 22px); height: calc(100% - 22px); }
  .selection-bar { min-height: 57px; gap: 10px; }
  .selection-bar .button { font-size: 11px; min-height: 36px; padding: 9px 12px; }
  .selected-word { font-size: 20px; }
  .selected-word.placeholder { font-size: 11px; }
  .word-feedback { margin-bottom: 3px; }
  .input-hint { font-size: 10px; margin-bottom: 10px; }
  .game-sidebar { border-top: 1px solid var(--line); padding-top: 22px; }
  .game-sidebar > .eyebrow { float: left; margin: 0; line-height: 25px; }
  .score-heading { justify-content: flex-end; margin: 0 0 25px; }
  .score-heading strong { font-size: 32px; }
  .score-heading span { font-size: 11px; padding-bottom: 0; }
  .found-word-list { min-height: 0; max-height: 200px; }
  .sidebar-note { margin-top: 20px; padding-top: 20px; }
  .result-heading { align-items: start; gap: 15px; flex-wrap: wrap; }
  .result-heading h2 { font-size: 31px; }
  .result-heading p { font-size: 12px; }
  .result-heading .button { font-size: 11px; padding: 11px 14px; min-height: 40px; }
  .result-round-switch { width: 100%; justify-content: space-between; }
  .result-round-switch select { flex: 1; max-width: 190px; }
  .result-summary { margin-bottom: 25px; gap: 10px; }
  .result-player { min-width: 155px; padding: 17px; }
  .result-player-top { margin-bottom: 13px; }
  .result-player .points { font-size: 32px; }
  .result-player-bottom { font-size: 9px; }
  .results-layout { display: block; }
  .result-board-column { position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 18px; align-items: start; padding: 12px 0 16px; background: var(--background); box-shadow: 0 12px 20px -12px #0008; }
  .result-board-column > div { max-width: 220px; }
  .word-explorer { margin-top: 24px; }
  .result-board-column .board { padding: 7px; gap: 4px; border-radius: 12px; }
  .result-board-column .tile { font-size: clamp(14px, 4vw, 24px); border-radius: 5px; box-shadow: inset 0 -2px #0002; }
  .result-board-column .board-path { inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); }
  .result-board-column .board-path polyline { stroke-width: 7; }
  .board-caption { font-size: 8px; gap: 5px; margin-top: 8px; }
  .word-detail { border: 0; padding: 2px 3px 0 0; margin: 0; max-height: 200px; max-height: min(220px, 30svh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .word-detail h3 { font-size: 24px; margin-bottom: 6px; }
  .word-detail .detail-score { font-size: 10px; margin-bottom: 10px; }
  .word-detail .definition { font-size: 11px; line-height: 1.6; }
  .word-detail .definition-part { font-size: 8px; }
  .word-detail .finders { font-size: 9px; margin-bottom: 10px; }
  .word-detail .text-link { font-size: 9px; }
  .word-detail-empty { font-size: 12px; padding-top: 8px; }
  .explorer-topline h3 { font-size: 23px; }
  .word-table th:nth-child(2) { width: 42%; }
  .room-standings { margin-top: 35px; }
  .result-bottom { margin-top: 30px; }
  .content-layout { grid-template-columns: 1fr; gap: 25px; }
  .content-section h2 { font-size: 23px; }
  .content-section p, .content-section ol { font-size: 13px; }
  .panel { padding: 23px; }
  .admin-columns { grid-template-columns: 1fr; gap: 35px; }
  .admin-topline { flex-wrap: wrap; }
  .invite-layout { margin-top: 30px; }
}
@media (max-width: 380px) { main { padding-left: 16px; padding-right: 16px; } .site-header { padding-left: 16px; padding-right: 16px; } .hero-copy { padding-right: 65px; } .hero h1 { font-size: 39px; } .hero-illustration { width: 90px; right: -4px; top: 35px; } .create-panel { padding: 22px; } .settings-grid { gap: 8px; } .settings-grid select { padding: 9px 6px; } .site-nav { gap: 13px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
