@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--navy:#101f3e;--blue:#245ce3;--red:#e95163;--ink:#192a47;--muted:#62718a;--line:#dce3ee;--surface:#f2f5fa;--white:#fff;font-family:'DM Sans',system-ui,sans-serif;color:var(--ink);font-size:16px;background:var(--surface)}*{box-sizing:border-box}body{margin:0}button,a,input,select{-webkit-tap-highlight-color:transparent}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:10px;padding:10px 15px;background:white;color:var(--ink);font-weight:600}button:hover{border-color:#92a7cb;background:#edf2fc}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #e95163;outline-offset:3px}button:disabled{cursor:wait;opacity:.55}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}[hidden]{display:none!important}.topbar{height:88px;background:var(--navy);display:flex;justify-content:space-between;align-items:center;padding:0 max(24px,calc((100vw - 1180px)/2));color:white}.brand{display:flex;align-items:center;gap:13px;color:white;font-weight:700;font-size:23px;letter-spacing:-.7px}.brandmark{display:grid;place-content:center;background:#fff;color:var(--navy);height:39px;width:39px;border-radius:10px;font-weight:800;font-size:32px;line-height:1;display:block;text-align:center}.brandmark span{color:var(--red)}.brandlight{font-weight:400;color:#a1b2d0}.account{display:flex;align-items:center;gap:16px;font-size:14px}.account a{color:#e3ebfc}.account button{background:#243754;color:#fff;border-color:#40516c}.account #accountName{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}main{max-width:1180px;margin:auto;padding:40px 24px 24px}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:27px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:2px;margin:0 0 10px;color:var(--muted)}h1,h2,h3{font-family:'Manrope',system-ui,sans-serif}h1{font-size:52px;letter-spacing:-2px;line-height:1.1;margin:0;font-weight:800}h1 span{color:var(--red)}h2{font-size:23px;line-height:1.35;letter-spacing:-.7px;margin:0 0 14px}p{line-height:1.65}.primary{background:var(--blue);color:#fff;border-color:var(--blue);padding:14px 21px;box-shadow:0 5px 12px #245ce31a}.primary:hover{background:#1747bd;color:white;border-color:#1747bd}.tabs{display:flex;gap:30px;border-bottom:1px solid var(--line);margin-bottom:30px}.tabs button{border:0;border-radius:0;background:none;padding:0 0 16px;color:var(--muted);position:relative}.tabs button.active{color:var(--blue)}.tabs button.active:after{content:'';position:absolute;bottom:-1px;height:3px;left:0;right:0;background:var(--blue);border-radius:3px}#message:empty{display:none}#message{padding:12px 16px;background:#e5edff;color:#163c86;border:1px solid #bdd0fc;border-radius:10px;margin-bottom:20px}#message.error{background:#fff1f2;border-color:#f4bbc3;color:#8f2033}.playLayout{display:grid;grid-template-columns:minmax(0,610px) minmax(260px,1fr);gap:48px}.boardMeta{display:flex;align-items:center;justify-content:space-between;padding:0 0 14px;font-size:14px}.boardMeta>div{display:flex;gap:12px;align-items:center}.pill{border-radius:6px;padding:6px 9px;background:#e2eafa;color:#2e528f;font-size:12px;font-weight:800;letter-spacing:1px}.clockWrap #clock{font-family:'Manrope',sans-serif;font-variant-numeric:tabular-nums;font-size:23px;font-weight:700;letter-spacing:.8px}.clockWrap button{padding:4px 9px;font-size:14px;background:transparent}.boardFrame{position:relative;border:2px solid var(--navy);border-radius:12px;overflow:hidden;box-shadow:0 12px 32px #1426490c;background:white}#board{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));aspect-ratio:1}.cell{border:0;border-radius:0;border-right:1px solid #d5ddeb;border-bottom:1px solid #d5ddeb;padding:0;background:#fff;color:var(--blue);display:flex;align-items:center;justify-content:center;aspect-ratio:1;font-family:'Manrope',sans-serif;font-size:clamp(20px,2.6vw,31px);font-weight:600;position:relative;min-width:0}.cell:nth-child(3n){border-right:2px solid #23395d}.cell:nth-child(9n){border-right:0}.cell:nth-child(n+19):nth-child(-n+27),.cell:nth-child(n+46):nth-child(-n+54){border-bottom:2px solid #23395d}.cell:nth-child(n+73){border-bottom:0}.cell.fixed{color:var(--navy);font-weight:800;background:#fafbfd}.cell.peer{background:#edf2fc}.cell.same{background:#dce7fd}.cell.selected{background:#c9dbff;box-shadow:inset 0 0 0 2px var(--blue);z-index:1}.cell.wrong{color:#bd203e;background:#ffe4e9}.cell:hover{background:#dbe7ff}.cellNotes{display:grid;grid-template-columns:repeat(3,1fr);width:90%;height:90%;font-family:system-ui;font-size:clamp(9px,1.1vw,13px);font-weight:500;color:#566a8c}.cellNotes span{display:flex;justify-content:center;align-items:center}#cover{position:absolute;inset:0;background:#f7fafff5;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:22px;backdrop-filter:blur(12px)}.coverIcon{font-family:'Manrope',sans-serif;color:#b6caef;font-size:64px;letter-spacing:5px;font-weight:800;margin-bottom:18px}#cover h2{font-size:27px}#cover p{color:var(--muted);margin:0 0 25px}.boardFooter{display:flex;justify-content:space-between;margin:13px 0 20px;font-size:12px;color:var(--muted);gap:12px}.digits{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:7px}.digits button{font-size:25px;color:var(--blue);padding:10px 0;border-color:#cddaf0;box-shadow:0 2px 0 #dfe7f3;border-radius:9px;position:relative}.digits small{display:block;font-size:10px;color:#7385a3;font-weight:400}.tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:20px}.tools button{background:none;border-color:transparent;font-weight:500;font-size:14px;padding:8px 3px}.tools button span{display:block;font-size:24px;margin-bottom:4px}.tools button:last-child{color:#bd3550}.tools button[aria-pressed=true]{background:#dce8ff;color:var(--blue)}.keyboardHint{text-align:center;color:var(--muted);font-size:12px;margin:18px 0 0}.sideCard{background:white;border:1px solid var(--line);border-radius:14px;padding:25px;margin-bottom:18px}.sideCard p{font-size:14px;color:var(--muted)}.sideCard h2{font-size:20px}.currentCard{background:var(--navy);color:white;border-color:var(--navy);padding:28px}.currentCard h2{font-size:27px}.currentCard .eyebrow{color:#8eabd9}.currentCard p{color:#b7c6df}.progressTrack{height:5px;background:#324566;border-radius:10px;margin:22px 0}#progressBar{width:0;height:100%;background:#709eff;transition:width .2s;border-radius:10px}.eligibility{font-size:13px;line-height:1.6;color:#b8d0fd;border-top:1px solid #344763;padding-top:16px}.cardTitle{display:flex;justify-content:space-between;align-items:start}.redStar{color:var(--red);font-size:27px}.helpAction{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left;padding:13px 0;border:0;border-top:1px solid #edf0f5;border-radius:0;font-size:14px;font-weight:500}.helpAction span{color:#a0b0ca}.rules summary{cursor:pointer;font-weight:600;font-size:14px}.mobileTip{font-size:12px;color:var(--muted);line-height:1.7;padding:0 6px}.sectionIntro h2{font-size:32px}.sectionIntro>p:not(.eyebrow){color:var(--muted)}.filters{display:flex;gap:20px;margin:24px 0}.filters label{min-width:200px}.leaderCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.leaderCard{background:white;border:1px solid var(--line);border-radius:14px;padding:24px}.leaderCard h3{font-size:23px;margin:10px 0}.leaderCard>p{font-size:14px;color:var(--muted)}.leaderNumber{font-size:12px;font-weight:800;color:var(--red);letter-spacing:2px}.leaderRow{display:grid;grid-template-columns:25px minmax(0,1fr) auto;gap:9px;padding:16px 0;border-top:1px solid var(--line);font-size:14px}.leaderRow span:nth-child(2){overflow-wrap:anywhere}.empty{padding:30px;background:white;border:1px dashed #bdcde4;border-radius:12px;color:var(--muted)}.leaderCard .empty{font-size:14px;padding:20px 0;border:0}.muted{font-size:14px;color:var(--muted)}.historyItem{border:1px solid var(--line);background:white;border-radius:12px;padding:20px;margin-bottom:12px}.historyTop{display:flex;justify-content:space-between;gap:15px;align-items:center}.historyTop h3{margin:0 0 5px;font-size:17px}.historyItem p{font-size:14px;color:var(--muted);margin:8px 0}.historyItem details{font-size:14px;margin-top:12px}.historyItem li{margin:8px 0}.historyStatus{color:var(--blue);font-size:14px;font-weight:600}footer{border-top:1px solid var(--line);margin-top:45px;padding-top:22px;display:flex;gap:20px;justify-content:space-between;font-size:12px;color:var(--muted);align-items:center}footer a{font-size:14px;font-weight:700;color:var(--ink)}footer button{background:none;border:0;font-size:12px;padding:0}dialog{border:1px solid var(--line);border-radius:20px;max-width:480px;width:calc(100% - 28px);padding:30px;color:var(--ink);box-shadow:0 25px 80px #0510244d;max-height:90dvh;overflow:auto}dialog::backdrop{background:#101f3e85;backdrop-filter:blur(4px)}.dialogHeader{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.dialogHeader .close{border:0;padding:0 5px;font-size:27px;color:var(--muted)}dialog h2{font-size:27px}dialog p{font-size:14px;color:var(--muted)}label{display:block;font-size:14px;font-weight:600}select,input:not([type=radio]):not([type=checkbox]){display:block;background:#f8faff;color:var(--ink);border:1px solid #cbd7e8;border-radius:9px;padding:12px;width:100%;margin:8px 0 16px}fieldset{border:0;margin:20px 0;padding:0}legend{font-size:14px;font-weight:600;margin-bottom:10px}.modeChoice{border:1px solid var(--line);border-radius:10px;padding:13px;display:flex;gap:12px;align-items:center;margin:8px 0}.modeChoice:has(input:checked){border-color:var(--blue);background:#eef4ff}.modeChoice small{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:4px}.modeChoice input,.checkLabel input{accent-color:var(--blue);width:18px;height:18px}.wide{width:100%;margin-top:14px}.dialogActions{display:flex;gap:12px;justify-content:end;margin-top:25px}.checkLabel{display:flex;align-items:center;gap:10px}.busy .boardColumn{cursor:progress}@media(min-width:1500px){main{padding-top:50px}.playLayout{gap:64px}}@media(max-width:850px){.playLayout{grid-template-columns:minmax(0,1fr) 260px;gap:25px}.currentCard,.sideCard{padding:20px}.leaderCards{grid-template-columns:1fr}.cell{font-size:24px}}@media(max-width:680px){.topbar{height:68px;padding:0 18px}.brand{font-size:20px}.brandmark{width:32px;height:32px;font-size:27px}.account{gap:10px;font-size:12px}.account #accountName{display:none}.account button{padding:8px 10px;font-size:12px}main{padding:26px 16px 20px}.heading{margin-bottom:25px}h1{font-size:41px}.heading .primary{font-size:14px;padding:12px 15px}.eyebrow{font-size:11px;letter-spacing:1.7px}.tabs{gap:24px;margin-bottom:24px;overflow:auto}.tabs button{font-size:14px;white-space:nowrap}.playLayout{grid-template-columns:1fr;gap:28px}.boardColumn{width:100%;max-width:520px;margin:auto}.boardMeta{padding-bottom:12px}.cell{font-size:clamp(21px,6vw,29px)}.cellNotes{font-size:11px}.digits{gap:5px}.digits button{font-size:25px;padding:9px 0}.tools{margin-top:13px;gap:5px}.keyboardHint{display:none}.boardFooter{margin-bottom:17px}.sideCard{padding:22px}.currentCard h2{font-size:24px}.currentCard h2 br{display:none}.mobileTip{display:none}.filters{display:block}.filters label{min-width:0}.sectionIntro h2{font-size:27px}footer{flex-wrap:wrap;gap:14px;margin-top:25px}footer span{order:3;width:100%}dialog{padding:24px}.historyTop{align-items:start}.historyTop button{padding:8px;font-size:12px}.coverIcon{font-size:50px}#cover h2{font-size:23px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}@media(display-mode:standalone){.topbar{padding-top:env(safe-area-inset-top);height:calc(68px + env(safe-area-inset-top))}body{padding-bottom:env(safe-area-inset-bottom)}}
@media(max-width:680px){.tabs{overflow-x:auto;overflow-y:hidden}.digits small{display:none}}

.backToGames{display:inline-block;font-size:14px;margin-bottom:20px;color:var(--muted)}

.cellNotes span.noteMatch{background:#245ce3;color:#fff;font-weight:800;border-radius:3px;box-shadow:0 0 0 1px #1747bd}.digits button.numberSelected{background:#d4e2ff;border-color:#245ce3;box-shadow:inset 0 0 0 1px #245ce3}.noteActions{display:flex;justify-content:center;margin-top:10px}.noteActions button{font-size:12px;padding:8px 14px;color:var(--muted)}.game-focus .noteActions{margin:0;min-height:27px}.game-focus .noteActions button{font-size:11px;padding:5px 10px}.game-focus:has(#board) .boardFrame{width:min(100cqw,calc(100cqh - 240px))}@media(max-height:500px){.game-focus .noteActions{grid-column:2}.game-focus:has(#board) .boardFrame{width:min(100%,calc(100dvh - 20px))}.game-focus:has(#board) .boardColumn{grid-template-rows:32px 34px 26px minmax(0,1fr) 28px}.game-focus:has(#board) .boardFrame{grid-row:1/6}}
.journeyHero{display:flex;justify-content:space-between;align-items:center;gap:24px;background:var(--navy);color:white;border-radius:18px;padding:28px;margin:25px 0}.journeyHero .eyebrow{color:#a7c4fa}.journeyHero h2{font-size:32px;margin-bottom:8px}.journeyHero p{color:#b9cae7;font-size:14px;margin:8px 0}.journeyIcon{float:left;display:grid;place-items:center;width:68px;height:68px;border:1px solid #5272a4;background:#263f69;border-radius:20px;margin:0 20px 15px 0;font-size:36px;color:#f99cac}.journeyHero progress{display:block;width:100%;height:8px;margin-top:18px;accent-color:#82a9ff}.journeyPoints{text-align:right;white-space:nowrap}.journeyPoints b{display:block;font-size:38px;letter-spacing:-1px}.journeyPoints span{font-size:10px;letter-spacing:2px;color:#adc2e5}.levelGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:28px}.levelCard{border:1px solid var(--line);background:white;border-radius:15px;padding:23px;position:relative}.levelCard.current{border:2px solid var(--blue);box-shadow:0 8px 24px #245ce315}.levelTop{display:flex;justify-content:space-between;gap:10px;font-size:10px;font-weight:800;letter-spacing:1px;color:var(--muted)}.levelCard h3{font-size:25px;margin:16px 0}.levelDots{display:flex;gap:8px}.levelDots span{display:grid;place-items:center;border:1px solid #ccd8ec;background:#f0f4fb;color:#687c9b;border-radius:50%;width:32px;height:32px;font-size:12px}.levelDots .done{background:#245ce3;border-color:#245ce3;color:white}.levelCard p{font-size:13px}.levelCard .stars{float:right;color:#d38e20;font-size:20px;letter-spacing:2px}.levelCard.locked{background:#eaf0f7;color:#6b7c95}.levelCard.locked .levelDots{opacity:.6}.levelCard .helpBadge{color:#a62e48;background:#fff0f3;border-radius:6px;padding:6px 8px;font-size:11px}.levelSuccess{color:#2057bb;font-weight:700}.levelCard details{border-top:1px solid var(--line);padding-top:12px;font-size:12px}.levelCard summary{cursor:pointer}.scoreRules{margin-top:25px}.scoreRules summary{font-weight:700;cursor:pointer}@media(max-width:850px){.levelGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.levelGrid{grid-template-columns:1fr}.journeyHero{padding:22px;display:block}.journeyPoints{text-align:left;margin-top:20px}.journeyPoints b{font-size:30px}.journeyHero h2{font-size:25px}.journeyIcon{width:50px;height:50px;font-size:28px;margin-right:12px}.boardMeta>div{gap:7px}#modeLabel{font-size:12px}}

@media(max-width:540px){.tabs{gap:17px;scrollbar-width:none}.tabs button{font-size:12px}.tabs::-webkit-scrollbar{display:none}}

.cell.hasValue.hasNotes .cellValue{transform:translateY(-15%)}.cell.hasValue .cellNotes{position:absolute;bottom:3%;left:4%;width:92%;height:22%;display:flex;align-items:center;justify-content:center;gap:3px;font-size:clamp(7px,1vw,10px)}.cell.hasValue .cellNotes span:empty{display:none}.cell.hasValue .cellNotes span{min-width:8px;line-height:1.1}.game-focus .cell.hasValue .cellNotes{font-size:clamp(6px,1.3cqh,10px)}
