:root{color-scheme:light;--practice-bg:#f3f6f6;--practice-danger:#a22d45;--practice-card:rgba(255,255,255,.89);--practice-ink:#192b35;--practice-muted:#596a72;--practice-line:#ccd7dc;--practice-accent:#1c7568;--practice-soft:#e3f1ed;--practice-shadow:0 14px 40px #142f3a0a}
:root[data-theme=dark]{color-scheme:dark;--practice-bg:#101b28;--practice-danger:#f4a8b7;--practice-card:rgba(25,39,56,.91);--practice-ink:#f0f5fa;--practice-muted:#b2bfce;--practice-line:#3b4d63;--practice-accent:#9ddbcc;--practice-soft:#203f42;--practice-shadow:0 14px 40px #0002}
:root[data-arena-color=blue]{--practice-accent:#245bb4;--practice-soft:#e6eefb}:root[data-arena-color=violet]{--practice-accent:#7043a6;--practice-soft:#f0eafa}:root[data-arena-color=rose]{--practice-accent:#a33968;--practice-soft:#fbe9f1}:root[data-arena-color=amber]{--practice-accent:#956020;--practice-soft:#faf0df}:root[data-arena-color=slate]{--practice-accent:#4b607e;--practice-soft:#e9eef5}
:root[data-theme=dark][data-arena-color=blue]{--practice-accent:#a9c9ff;--practice-soft:#243d60}:root[data-theme=dark][data-arena-color=violet]{--practice-accent:#d0b6fb;--practice-soft:#3a2c53}:root[data-theme=dark][data-arena-color=rose]{--practice-accent:#f1b7ce;--practice-soft:#4a293a}:root[data-theme=dark][data-arena-color=amber]{--practice-accent:#f1d097;--practice-soft:#463c27}:root[data-theme=dark][data-arena-color=slate]{--practice-accent:#bfcee4;--practice-soft:#2c3c53}
*{box-sizing:border-box}body{margin:0;color:var(--practice-ink);background:var(--practice-bg);font:500 16px/1.5 ui-rounded,system-ui,-apple-system,sans-serif}body::before{content:"";position:fixed;inset:0;z-index:-1;background:url('/doodle-bg.svg') center/850px;opacity:.24;pointer-events:none}button,input,select{font:inherit}button,select{min-height:44px;border:1px solid var(--practice-line);border-radius:14px;padding:10px 14px;background:var(--practice-card);color:var(--practice-ink)}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation;transition:background-color .16s ease,box-shadow .16s ease}button:hover{background:var(--practice-soft)}button:active{box-shadow:inset 0 2px 5px #0002}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid var(--practice-accent);outline-offset:3px}a{color:var(--practice-accent)}[hidden]{display:none!important}.practice-shell{max-width:850px;margin:auto;padding:calc(24px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom))}.practice-header,.practice-brand,.practice-appearance,.practice-status-row,.practice-game-heading{display:flex;align-items:center;gap:12px}.practice-header,.practice-game-heading{justify-content:space-between}.practice-brand{text-decoration:none;color:var(--practice-ink);font-weight:800}.practice-brand img{border-radius:50%;object-fit:contain}.practice-brand small{display:block;font-weight:500;font-size:.75rem;color:var(--practice-muted)}.practice-appearance{gap:8px}.practice-appearance button{font-size:.85rem}.practice-intro{padding:36px 0 20px}.practice-eyebrow{margin:0 0 8px;font-size:.7rem;font-weight:800;letter-spacing:.14em;color:var(--practice-accent)}h1{font-size:clamp(1.9rem,5vw,2.8rem);letter-spacing:-.04em;line-height:1.15;margin:0 0 12px;text-wrap:balance}h2{font-size:clamp(1.2rem,4vw,1.6rem);line-height:1.25;margin:0;text-wrap:balance}.practice-intro>p:not(.practice-eyebrow){max-width:520px;color:var(--practice-muted)}.practice-status-row{flex-wrap:wrap;font-size:.8rem;color:var(--practice-muted);gap:8px 12px}.practice-badge{display:inline-flex;background:var(--practice-soft);color:var(--practice-accent);padding:5px 10px;border-radius:99px;font-weight:750}.practice-status-row button{padding:7px 12px;font-size:.8rem}.practice-setup{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:18px;border:1px solid var(--practice-line);border-radius:20px;background:var(--practice-card);box-shadow:var(--practice-shadow)}.practice-setup label{display:flex;flex:1;min-width:150px;flex-direction:column;gap:6px;font-size:.8rem;font-weight:750;color:var(--practice-muted)}.practice-setup select{max-width:100%;width:100%;font-size:.9rem}.practice-primary{background:var(--practice-accent);color:var(--practice-bg);font-weight:750;border-color:transparent}.practice-primary:hover{background:var(--practice-accent);filter:brightness(1.08)}.practice-table{border:1px solid var(--practice-line);background:var(--practice-card);border-radius:24px;box-shadow:var(--practice-shadow);padding:24px;margin:20px 0}.practice-game-heading{align-items:start}.practice-game-heading .practice-eyebrow{font-size:.65rem}.practice-game-heading>span{font-size:1.15rem;font-weight:800;font-variant-numeric:tabular-nums}.practice-message{font-size:.9rem;color:var(--practice-muted);min-height:1.5em;margin:16px 0}.practice-footnote,.practice-nearby{font-size:.8rem;color:var(--practice-muted)}.practice-nearby summary{min-height:44px;cursor:pointer;display:flex;align-items:center;font-weight:700}.practice-nearby summary::before{content:"+";margin-right:8px;font-size:1.1rem}.practice-nearby[open] summary::before{content:"−"}.practice-sudoku{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));max-width:530px;margin:20px auto 16px;border:2px solid var(--practice-ink);border-radius:8px;overflow:hidden}.practice-sudoku button{border:0;border-right:1px solid var(--practice-line);border-bottom:1px solid var(--practice-line);padding:0;min-width:0;min-height:0;aspect-ratio:1;border-radius:0;font-size:clamp(1rem,4.8vw,1.6rem);font-variant-numeric:tabular-nums;color:var(--practice-accent);background:transparent}.practice-sudoku button.is-fixed{font-weight:750;color:var(--practice-ink);background:var(--practice-soft)}.practice-sudoku button.is-selected{background:var(--practice-accent);color:var(--practice-bg);outline-offset:-3px}.practice-sudoku button:nth-child(9n+3),.practice-sudoku button:nth-child(9n+6){border-right:2px solid var(--practice-ink)}.practice-sudoku button:nth-child(n+19):nth-child(-n+27),.practice-sudoku button:nth-child(n+46):nth-child(-n+54){border-bottom:2px solid var(--practice-ink)}.practice-number-pad{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;max-width:530px;margin:auto}.practice-number-pad button{padding:8px 0;border-radius:10px;font-weight:750;font-size:1.1rem}.practice-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:12px}.practice-actions button{font-size:.85rem}.practice-chess{max-width:530px;margin:20px auto}.practice-chess-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));border:2px solid var(--practice-ink);border-radius:8px;overflow:hidden}.practice-chess-board button{display:flex;align-items:center;justify-content:center;padding:0;min-height:0;aspect-ratio:1;min-width:0;border:0;border-radius:0;background:#f1f0e8;color:#15212f;position:relative}.practice-chess-board button.is-dark{background:#262a30}.practice-chess-board button.is-selected{box-shadow:inset 0 0 0 4px #f0b429}.practice-chess-board button.is-legal::after{content:"";width:22%;height:22%;position:absolute;border-radius:50%;background:#163b38a3;box-shadow:0 0 0 2px #e9f4f4aa}.practice-chess-board svg{width:94%;height:94%;max-height:100%}.practice-chess-board .practice-piece{font-family:serif;font-size:clamp(1.4rem,7vw,2.7rem);line-height:1}.practice-chess-files{display:grid;grid-template-columns:repeat(8,1fr);text-align:center;font-weight:700;font-size:.7rem;color:var(--practice-muted);margin-top:5px}.practice-promotion{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}.practice-promotion strong{flex-basis:100%;text-align:center}.practice-promotion button{min-width:62px}.practice-history{font-size:.85rem;color:var(--practice-muted);max-height:130px;overflow:auto;line-height:1.8;word-spacing:6px;margin:16px 0 0}.practice-table .wordhunt-board{padding:0}.practice-table .wordhunt-rack-tile,.practice-table .wordhunt-tile,.practice-table .wordhunt-block,.practice-table .wordhunt-five-cell{color:var(--practice-ink)}.practice-table .wordhunt-score,.practice-table .wordhunt-status,.practice-table .wordhunt-clue-legend{color:var(--practice-muted)}.practice-table .wordhunt-controls button{color:var(--practice-ink)}.practice-table .wordhunt-tile,.practice-table .wordhunt-rack-tile{background:var(--practice-soft);border-color:var(--practice-line)}.practice-table .wordhunt-keyboard button{border-radius:8px;min-height:44px;background:var(--practice-soft);color:var(--practice-ink)}.practice-table .wordhunt-five-cell{border-color:var(--practice-line);background:var(--practice-card)}.practice-table .wordhunt-five-cell.is-correct,.practice-table .wordhunt-keyboard .is-correct{background:#216d54;color:white}.practice-table .wordhunt-five-cell.is-present,.practice-table .wordhunt-keyboard .is-present{background:#806018;color:white}.practice-table .wordhunt-five-cell.is-absent,.practice-table .wordhunt-keyboard .is-absent{background:#556170;color:white}dialog{max-width:min(440px,calc(100vw - 32px));border:1px solid var(--practice-line);border-radius:22px;background:var(--practice-card);color:var(--practice-ink);padding:24px}dialog::backdrop{background:#06142699;backdrop-filter:blur(5px)}dialog p{color:var(--practice-muted)}dialog form>div{display:flex;flex-wrap:wrap;gap:8px;justify-content:end}
@media(max-width:540px){.practice-shell{padding-left:12px;padding-right:12px}.practice-header{align-items:start;flex-wrap:wrap}.practice-appearance{margin-left:auto}.practice-brand small{font-size:.65rem}.practice-intro{padding-top:28px}.practice-table{padding:16px 12px}.practice-setup{padding:12px;gap:10px}.practice-setup label{min-width:140px}.practice-setup>button{flex:1}.practice-number-pad{gap:3px}.practice-number-pad button{border-radius:8px}.practice-table .wordhunt-keyboard button{font-size:.8rem;padding-left:0;padding-right:0}.practice-table .wordhunt-rack{gap:5px}.practice-table .wordhunt-rack-tile{padding:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.practice-chess-board[data-palette=green] .is-dark{background:#578574}.practice-chess-board[data-palette=blue] .is-dark{background:#688dad}.practice-chess-board[data-palette=walnut] .is-dark{background:#947552}

@media(max-width:540px){.practice-number-pad{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}}
.practice-links{display:flex;gap:18px;flex-wrap:wrap;font-size:.9rem;font-weight:750}.practice-links a{min-height:44px;display:inline-flex;align-items:center}
.practice-mode-picker{margin:0 0 18px;padding:16px 18px;border:1px solid var(--practice-line);border-radius:20px;background:var(--practice-card);box-shadow:var(--practice-shadow)}.practice-mode-picker>p{margin:0 0 10px;font-size:.9rem;font-weight:800}.practice-mode-picker>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.practice-mode-picker button{text-align:left;font-weight:800}.practice-mode-picker button[aria-pressed=true]{border-color:var(--practice-accent);background:var(--practice-soft);box-shadow:inset 0 0 0 1px var(--practice-accent)}.practice-mode-picker button span{display:block;margin-top:2px;font-size:.75rem;font-weight:500;color:var(--practice-muted)}.practice-mode-picker #practiceModeNote{margin:10px 0 4px;color:var(--practice-muted);font-size:.8rem;font-weight:500}.practice-nearby-link{font-size:.8rem;font-weight:700}
.practice-setup>details{flex:1 1 100%;min-width:0}.practice-setup summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:.9rem;font-weight:800;color:var(--practice-ink)}.practice-setup summary::after{content:"⌄";margin-left:auto;color:var(--practice-accent);font-size:1.1rem}.practice-setup details[open] summary::after{transform:rotate(180deg)}.practice-option-fields{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding-top:8px}.practice-option-fields label{flex:1;min-width:150px}.practice-option-fields #practiceStart{margin-left:auto}.solo-active .practice-intro,.solo-active .practice-mode-picker,.solo-active .practice-footnote,.solo-active .practice-links{display:none}.solo-active .practice-setup{display:none}.solo-active.show-practice-options .practice-setup{display:flex;margin:8px 0;padding:12px}.solo-active.show-practice-options .practice-option-fields #practiceStart{min-height:44px;white-space:nowrap}.solo-active .practice-table{margin:10px 0;padding-top:12px}.solo-active .practice-game-heading{align-items:center;min-height:24px}.solo-active .practice-game-heading h2{display:none}.solo-active .practice-game-heading .practice-eyebrow{margin:0}.solo-active .practice-message{min-height:1.2em;margin:6px 0 8px;font-size:.8rem}.solo-active #practiceBoard{scroll-margin-top:76px}
.practice-option-fields label:has(>select:not(.arena-duration-picker-native)){position:relative}.practice-option-fields label:has(>select:not(.arena-duration-picker-native))>select{appearance:none;-webkit-appearance:none;padding-right:38px;background-image:none}.practice-option-fields label:has(>select:not(.arena-duration-picker-native))::after{content:"";position:absolute;right:17px;bottom:22px;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;color:var(--practice-muted);transform:translateY(50%) rotate(45deg);pointer-events:none}
@media(max-width:540px){.practice-option-fields{gap:10px}.solo-active .practice-shell{padding-top:calc(10px + env(safe-area-inset-top))}.solo-active .practice-header{min-height:48px}.solo-active .practice-brand small{font-size:.7rem}.solo-active.show-practice-options .practice-setup{align-items:center}.solo-active .practice-table{padding:14px 10px}}

/* Solo Five uses the whole width for letters; every guess belongs to you. */
.practice-table:has(.wordhunt-five-grid) .wordhunt-live:empty{display:none}
.practice-table:has(.wordhunt-five-grid) .practice-message{min-height:0;margin:8px 0;font-size:.8rem}
.practice-table .wordhunt-five-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;max-width:255px}
.practice-table .wordhunt-five-grid .wordhunt-guess-author{display:none}
.practice-table .wordhunt-five-cell{max-height:none}

.practice-conflict{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px;margin:12px 0;border:1px solid var(--practice-line);border-radius:14px;background:var(--practice-soft);font-size:.85rem;line-height:1.5;color:var(--practice-ink)}.practice-conflict[hidden]{display:none}.practice-conflict span{flex:1 1 180px}.practice-conflict button{flex:0 0 auto;min-height:44px;font-weight:750}
.practice-game-bar[hidden]{display:none}.practice-game-bar{position:sticky;z-index:10;top:calc(8px + env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0;padding:6px 8px 6px 12px;border:1px solid var(--practice-line);border-radius:14px;background:color-mix(in srgb,var(--practice-card) 92%,var(--practice-bg));backdrop-filter:blur(12px);box-shadow:var(--practice-shadow);font-size:.8rem;font-weight:800}.practice-game-bar>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--practice-muted)}.practice-game-bar>div{display:flex;flex:0 0 auto;gap:6px}.practice-game-bar button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;margin:0;padding:6px 10px;border-radius:10px;font-size:.78rem}.practice-game-bar button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.practice-game-bar #practiceLeave{color:var(--practice-danger)}.solo-active .practice-shell{padding-bottom:calc(32px + env(safe-area-inset-bottom))}
@media(max-width:390px){.practice-game-bar{padding-left:10px}.practice-game-bar button{width:44px;padding:0}.practice-game-bar button span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}}

/* Coordinates live outside the playing area, just as on live boards. */
.practice-chess-frame{position:relative;padding:0 0 20px 20px}
.practice-chess-ranks{position:absolute;left:0;top:0;bottom:20px;width:20px;display:grid;grid-template-rows:repeat(8,1fr);font:700 12px/1 ui-monospace,monospace;color:var(--practice-muted)}
.practice-chess-ranks span{display:grid;place-items:center}
.practice-chess-frame .practice-chess-files{margin:0;position:absolute;bottom:0;left:20px;right:0;height:20px;align-items:center;font:700 12px/1 ui-monospace,monospace}
.practice-chess-board button:focus-visible{z-index:3;outline:3px solid var(--practice-accent);outline-offset:-3px}

.practice-chess-appearance{display:flex;align-items:center;gap:12px;margin-top:12px;color:var(--practice-muted);font-size:.8rem;font-weight:700}.practice-chess-appearance select{min-height:44px;padding:6px 12px;flex:1;max-width:200px}

/* Match the room toolbar's circular game actions. */
.practice-game-bar button{position:relative;width:44px;height:44px;min-width:44px;padding:0;border-radius:50%;background:var(--practice-soft)}
.practice-game-bar button span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
