:root{font-family:ui-sans-serif,system-ui,sans-serif;color:#edf5f6;background:#102633;font-size:16px;--ink:#edf5f6;--muted:#afc9d0;--blue:#89d3ea;--ring:#f3b29b;--panel:#173541;--line:#36525b}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 46% 35%,#234c59 0,transparent 60%),#102633;min-height:100dvh}main{min-height:100dvh;max-width:1500px;margin:auto;display:flex;flex-direction:column;padding:env(safe-area-inset-top) max(1.2rem,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(1.2rem,env(safe-area-inset-left))}header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.5rem 0;border-bottom:1px solid var(--line)}.wordmark{font-size:.875rem;letter-spacing:.14em;font-weight:750;text-decoration:none;color:var(--ink)}.wordmark span{display:block;color:var(--muted);font-size:.875rem;letter-spacing:0;font-weight:450;margin-top:.35rem}button{font:inherit;font-weight:600;min-height:44px;padding:.7rem 1rem;border:1px solid #67909b;border-radius:8px;background:#e1f1f5;color:#122c37;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}button:hover:not(:disabled){background:#fff}button:disabled{cursor:default;opacity:.35}button.quiet{color:var(--ink);background:transparent;border-color:#5c7b85}button.quiet:hover:not(:disabled){background:#2b4a55}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #ffd580;outline-offset:5px}.game-layout{display:grid;grid-template-columns:minmax(180px,1fr) minmax(330px,1.8fr) minmax(210px,1fr);gap:clamp(1.6rem,4vw,4.5rem);align-items:center;flex:1;padding:2.5rem 1.3rem}.eyebrow{font-size:.875rem;text-transform:uppercase;letter-spacing:.1em;color:var(--blue);font-weight:650}.score h1{font:clamp(2rem,4vw,3.7rem)/1.05 Georgia,serif;margin:.6rem 0}.score>p:not(.eyebrow){color:var(--muted);line-height:1.5}.mini-board{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;width:132px;margin:1.6rem 0}.mini-board span{aspect-ratio:1;background:#294a56;border-radius:3px;display:grid;place-items:center}.mini-board svg{width:66%;height:66%}.mark-x{stroke:var(--blue)}.mark-o{stroke:var(--ring)}.mini-board .any-mark{color:var(--muted);font-size:.875rem}.path-count strong{font:2.5rem Georgia,serif;display:block;color:var(--ink);font-variant-numeric:tabular-nums}.path-count span{display:block;font-size:.875rem;margin-top:.3rem}.table{align-self:center;width:100%;max-width:550px;justify-self:center}.turn{display:flex;justify-content:center;align-items:center;gap:.7rem;min-height:50px;font-size:1.125rem;font-weight:600;margin-bottom:1rem}.turn svg{width:25px;height:25px}.board{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(8px,1.3vw,14px);padding:14px;background:#0c222b;border:1px solid #4c6b75;border-radius:24px;box-shadow:0 20px 50px #06172066,0 2px 0 #597481;aspect-ratio:1}.cell{padding:0;aspect-ratio:1;min-height:0;display:grid;place-items:center;background:#234550;border:1px solid #3e6571;border-radius:13px;box-shadow:inset 0 -6px 0 #092d3822}.cell svg{width:62%;height:62%;stroke-width:9;filter:drop-shadow(0 3px 1px #10263366)}.cell.available{background:#e2edf0;border-color:#b5d8e2;box-shadow:inset 0 -5px 0 #a8c8d266}.cell.available:hover{background:#fff}.cell.available::after{content:'';width:9px;height:9px;border-radius:50%;background:#4f6c77}.cell:disabled{opacity:1}.cell.unavailable{background:#193843;border-color:#294d5a}.cell.occupied{background:#294b58;border-color:#4f7481}.cell.last{border-color:#f9db90;box-shadow:inset 0 0 0 2px #f9db90}.instruction{text-align:center;min-height:2.8em;line-height:1.5;color:var(--muted);margin:1rem 0}.controls{display:flex;flex-wrap:wrap;justify-content:center;gap:.65rem}.controls button{font-size:.875rem}.route h2{font:1.8rem/1.2 Georgia,serif;margin:.5rem 0 1rem}.route p{line-height:1.6;color:var(--muted)}#move-list{display:flex;list-style:none;flex-wrap:wrap;padding:0;gap:.45rem;margin:1.4rem 0;min-height:40px}#move-list li{border:1px solid #59717b;border-radius:5px;display:flex;align-items:center;gap:.3rem;padding:.3rem .5rem;font-size:.875rem;color:var(--muted)}#move-list svg{width:15px;height:15px}#move-list .upcoming{opacity:.35}.route-actions{display:flex;gap:.6rem;flex-wrap:wrap}.route-actions button{font-size:.875rem}.status{font-size:.875rem;min-height:3em}#share-box{margin-top:1rem}label{display:block;font-size:.875rem;margin:.4rem 0}input{width:100%;min-height:44px;font:inherit;font-size:.875rem;background:#0e2631;border:1px solid #789ba7;border-radius:6px;color:#edf5f6;padding:.6rem;margin-bottom:.5rem}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0;color:var(--muted);font-size:.875rem}.text-button{background:transparent;border:0;color:var(--muted);font-size:.875rem;text-decoration:underline;text-underline-offset:4px}.text-button:hover:not(:disabled){background:#203d49;color:white}dialog{color:var(--ink);background:#18343f;border:1px solid #7c9ba6;border-radius:18px;max-width:650px;width:calc(100% - 2rem);max-height:85dvh;padding:0;box-shadow:0 25px 90px #0008}dialog::backdrop{background:#071820cc;backdrop-filter:blur(4px)}.dialog-inner{padding:clamp(1.3rem,5vw,2.5rem)}dialog h2{font:2rem/1.1 Georgia,serif;margin:.3rem 0 1.3rem}dialog p{line-height:1.65}a{color:var(--blue);text-underline-offset:3px}.pieces{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin:1.5rem 0}.piece{background:#214653;color:var(--ink);text-align:left;padding:1rem}.piece:hover:not(:disabled){background:#315966}.piece .mini-board{width:90px;margin:.8rem 0}.piece strong,.piece small{display:block}.piece small{font-weight:400;font-size:.875rem;color:var(--muted);margin-top:.4rem}.skip{position:absolute;left:1rem;top:-100px;background:white;color:#102633;padding:1rem;z-index:10}.skip:focus{top:1rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.noscript{padding:2rem;background:#fff;color:#102633}.noscript a{color:#07558a}[hidden]{display:none!important}@media(max-width:950px){.game-layout{grid-template-columns:155px minmax(280px,1fr);gap:1.8rem;padding:1.8rem 0}.route{grid-column:1/-1;border-top:1px solid var(--line);padding-top:1.2rem}.route h2{display:inline}.route>p:not(.eyebrow){max-width:65ch}.route .eyebrow{margin-top:0}#move-list{margin:.7rem 0;min-height:0}.status{min-height:0}.table{max-width:470px}}@media(max-width:560px){header{padding:1rem 0}.wordmark{font-size:.75rem}.wordmark span{font-size:.875rem}header button{padding:.6rem .8rem;font-size:.875rem}.game-layout{display:flex;flex-direction:column;gap:1.3rem;padding:1rem 0}.score{display:grid;grid-template-columns:1fr 78px;column-gap:1rem;width:100%;align-items:center}.score .eyebrow{margin:.3rem 0}.score h1{font-size:2rem;margin:.2rem 0}.score #piece-description{margin:.3rem 0;font-size:.875rem}.score .mini-board{grid-column:2;grid-row:1/5;width:78px;margin:0}.score .path-count{grid-column:1/-1;display:flex;gap:.6rem;align-items:baseline;margin:.2rem 0 .7rem}.path-count strong{font-size:1.5rem}.path-count span{display:inline;margin:0}.score>button{grid-column:1/-1;justify-self:start;font-size:.875rem;padding:.5rem .7rem}.table{max-width:440px}.turn{margin:0 0 .5rem;min-height:38px}.board{border-radius:19px;padding:10px;gap:9px}.cell{border-radius:10px}.instruction{margin:.7rem 0;font-size:.875rem;min-height:2.8em}.route{width:100%;padding-top:1.2rem}.route>.eyebrow{font-size:.875rem}.route h2{font-size:1.5rem}.route>p{margin:.6rem 0}footer{align-items:flex-start}.pieces{gap:.55rem}.piece{padding:.7rem}}@media(orientation:landscape) and (max-height:550px){header{padding:.6rem 0}.game-layout{display:grid;grid-template-columns:150px minmax(230px,1fr) 185px;gap:1rem;padding:1rem 0;align-items:start}.table{max-width:clamp(180px,calc(100dvh - 170px),300px)}.turn{font-size:1rem;margin:0 0 .4rem;min-height:32px}.score h1{font-size:2rem}.score .mini-board{width:80px;margin:.7rem 0}.path-count strong{font-size:1.6rem}.score .eyebrow{margin:.3rem 0}.route{grid-column:auto;border:0;padding:0}.route h2{font-size:1.4rem;display:block}.route p{font-size:.875rem}.route-actions{gap:.4rem}.route-actions button{padding:.4rem .6rem}.board{padding:9px;gap:8px}.controls{gap:.4rem}.controls button{padding:.45rem .6rem}.instruction{margin:.6rem 0;min-height:2em}footer{padding:.5rem 0}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

@media(orientation:landscape) and (max-height:550px){.game-layout{padding:.5rem 0}.turn{min-height:24px}.instruction{min-height:0;margin:.4rem 0}}
