:root{font-family:system-ui,-apple-system,sans-serif;color:#17213b;background:#f5f6fb;font-size:16px}*{box-sizing:border-box}body{margin:0}header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px max(16px,calc((100vw - 1100px)/2));background:#fff;flex-wrap:wrap}header>a{font-weight:800}a{color:#3d358d}nav{display:flex;gap:16px;flex-wrap:wrap}nav a{padding:12px 0}main{max-width:1050px;margin:auto;padding:24px 16px}h1{font-size:clamp(1.8rem,5vw,3rem);margin:12px 0}.tagline{color:#51479d;font-weight:700}.setup,.meta,.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}button,select,summary{font:inherit;min-height:44px}button,select{padding:10px 14px;border:1px solid #b7becd;border-radius:9px;background:#fff;color:#17213b;cursor:pointer}button:disabled{opacity:.5;cursor:default}.primary{background:#4434a3;color:white}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible,#boardScroll:focus-visible{outline:3px solid #a35800;outline-offset:3px}.meta{justify-content:space-between;margin:20px 0}.play-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr);gap:26px}#boardScroll{overflow:auto;max-width:100%;padding:4px}#board{display:grid;grid-template-columns:repeat(9,1fr);min-width:414px;max-width:540px;border:4px solid #17213b;background:#17213b}.cell{min-width:46px;min-height:46px;aspect-ratio:1;padding:2px;border:0;border-radius:0;border-right:1px solid #bcc2cf;border-bottom:1px solid #bcc2cf;font-size:1.35rem;color:#234f99;position:relative}.cell.box-right{border-right:4px solid #17213b}.cell.box-bottom{border-bottom:4px solid #17213b}.cell.clue{font-weight:800;color:#17213b;background:#eff0f5}.cell.selected{background:#ddd7ff;box-shadow:inset 0 0 0 3px #6653c5}.cell.wrong{background:#ffdfd7}.cell.wrong:after{content:'!';position:absolute;right:2px;top:0;font-size:.75rem;color:#8f2400}.cell .pencil{display:block;font-size:.7rem;line-height:1.3;overflow-wrap:anywhere}#digits{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}#digits button{font-size:1.3rem;min-height:52px}.actions button{flex:1 1 110px}.muted{font-size:.9rem;color:#535e73;line-height:1.5}details{margin-top:28px;background:white;border-radius:12px;padding:16px}summary{cursor:pointer;font-weight:700}#paused{padding:40px;background:white;text-align:center}#saveStatus{color:#535e73;font-size:.9rem}[hidden]{display:none!important}@media(max-width:760px){.play-layout{grid-template-columns:minmax(0,1fr)}#digits{grid-template-columns:repeat(5,1fr)}.controls{max-width:540px}.cell{min-height:46px}header{padding:12px 16px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

input[type=file]{max-width:100%;min-height:44px;font:inherit}.restore{display:flex;flex-direction:column;gap:6px;max-width:100%}

/* Hint premise and target borders preserve board geometry. */
@keyframes br-legacy-hint-pulse{50%{outline-color:transparent}}
.br-legacy-hint-target{outline:3px solid #16b963;outline-offset:-3px;animation:br-legacy-hint-pulse 1s ease-in-out 3}.br-legacy-hint-support{outline:3px solid #e4b51e;outline-offset:-3px;animation:br-legacy-hint-pulse 1s ease-in-out 3}@media(prefers-reduced-motion:reduce){.br-legacy-hint-target,.br-legacy-hint-support{animation:none}}
