@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#172036;background:#fafbfd;--blue:#2750e8;--muted:#677187}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #92aaff;outline-offset:3px}[hidden]{display:none!important}header{max-width:1040px;margin:auto;padding:26px 32px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e7eaf1}.brand{text-decoration:none;color:inherit;font-family:Outfit,system-ui,sans-serif;font-size:26px;font-weight:700;display:flex;gap:9px;align-items:center;letter-spacing:-1px}.mark{color:var(--blue);font-size:43px;line-height:1}.version{font:12px 'DM Sans',sans-serif;color:var(--muted);letter-spacing:0;align-self:flex-end;margin:0 0 6px 4px}.icon-button{background:white;border:1px solid #dce1ed;border-radius:50%;width:34px;height:34px;color:#53617b;font-weight:700}main{max-width:960px;margin:36px auto 60px;padding:0 32px}.theme-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.eyebrow{font-size:12px;letter-spacing:1.8px;font-weight:700;color:var(--muted);margin:0 0 7px}h1,h2,p{margin-top:0}h1{font-family:Outfit,system-ui,sans-serif;font-size:36px;letter-spacing:-1px;margin-bottom:0;font-weight:600}.untimed{font-size:14px;color:var(--muted)}.scoreline{display:flex;gap:36px;align-items:start;margin-bottom:12px}.scoreline>div{display:flex;flex-direction:column;gap:4px;min-width:0}.scoreline span{font-size:14px;color:var(--muted);white-space:nowrap}.scoreline strong{font-family:Outfit,system-ui,sans-serif;font-size:32px;font-weight:500;line-height:1.2;white-space:nowrap}.scoreline .current{margin-right:0}.scoreline .current>span{color:var(--blue)}.scoreline .current strong{font-size:32px;font-weight:600;color:var(--blue)}.scoreline b{color:var(--blue);margin-left:4px}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:42px}.selection-row{height:38px;display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:16px;color:var(--muted)}#selection.active{letter-spacing:2px;font-weight:700;color:var(--blue)}#selectionPoints{font-size:14px;color:var(--blue)}.board-wrap{position:relative;background:#e7eaf2;padding:8px;border-radius:18px;box-shadow:0 12px 35px #24345b0b;touch-action:none;user-select:none}#board{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;touch-action:none}#board button{aspect-ratio:1;border:0;background:white;border-radius:8px;font-family:Outfit,system-ui,sans-serif;font-size:clamp(16px,2.2vw,23px);font-weight:500;color:#172036;touch-action:none;position:relative;z-index:1;padding:0}#board button.selected{background:#2750e8;color:white;box-shadow:0 2px 8px #2750e830}#board button.target-tile:not(.selected){background:#f7f9ff;color:#172036}#paths{position:absolute;inset:8px;width:calc(100% - 16px);height:calc(100% - 16px);pointer-events:none;z-index:2;overflow:visible}#paths polyline{fill:none;stroke-linecap:round;stroke-linejoin:round}.selection-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px}.text-button{background:none;border:0;color:var(--muted);padding:8px 0;font-size:14px}.gesture-note{font-size:12px;color:var(--muted)}.submit{background:#eef2ff;color:#2349ce;border:0;border-radius:8px;padding:9px 16px;font-weight:600;font-size:14px}#feedback{margin:14px 0 0;min-height:40px;font-size:14px;text-align:center;color:var(--muted)}#feedback.success{color:#2349ce}#feedback.error{color:#8d493b}aside{padding-top:8px}.list-heading,.bonus-heading{display:flex;align-items:center;justify-content:space-between}h2{font-size:17px;font-weight:700;letter-spacing:-.3px;margin-bottom:0}.list-heading>span,.bonus-heading>span{font-size:14px;color:var(--blue);font-weight:600}.aside-note{font-size:12px;color:var(--muted);margin:7px 0 16px}#targets{list-style:none;padding:0;margin:0 0 28px;display:grid;grid-template-columns:1fr 1fr;gap:12px 10px}#targets li{font-size:14px;font-weight:600;display:flex;align-items:center;gap:7px}#targets li::before{content:'';width:6px;height:6px;border-radius:50%;border:1px solid #b2bdd3;flex-shrink:0}#targets li.found{color:#8b95ac;text-decoration:line-through}#targets li.found::before{border:0;background:var(--blue)}#bonuses{display:flex;flex-wrap:wrap;gap:7px;max-height:130px;overflow:auto;margin-bottom:28px}.bonus-chip{font-size:12px;background:#edf0f4;color:#556176;padding:5px 7px;border-radius:5px}.empty{font-size:14px;color:#8992a5;line-height:1.6;margin:0}.finish{width:100%;border:1px solid #d5dceb;background:white;border-radius:10px;padding:13px;font-size:14px;font-weight:600;color:#4b5770}.finish:hover{border-color:var(--blue);color:var(--blue)}#loading{text-align:center;padding:90px 0}#loading h1{font-size:26px;margin-bottom:16px}#loading p{font-size:16px;color:var(--muted)}.loader{display:inline-block;border:3px solid #e4eaff;border-top-color:var(--blue);border-radius:50%;width:36px;height:36px;margin-bottom:24px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#results{max-width:460px;text-align:center;margin:0 auto;background:white;border:1px solid #e5e9f2;border-radius:24px;padding:32px}.result-mark{font-size:70px;color:var(--blue);line-height:1.2}#results h1{margin:12px 0}#resultTheme{color:var(--muted);font-size:16px}.final-score{display:flex;flex-direction:column;gap:6px;padding:22px 0}.final-score span{font-size:14px;color:var(--muted)}.final-score strong{font-family:Outfit,system-ui,sans-serif;font-size:64px;letter-spacing:-2px;color:var(--blue)}#resultGoals>div{padding:13px 0;border-bottom:1px solid #e8ecf3;display:flex;justify-content:space-between;font-size:14px}#resultGoals b{font-weight:600;color:var(--blue)}dl{margin:24px 0}dl>div{display:flex;justify-content:space-between;margin:14px 0;font-size:14px}dt{color:var(--muted)}dd{font-weight:600;margin:0}.primary{background:var(--blue);border:0;border-radius:11px;color:white;font-weight:700;width:100%;padding:15px}.result-note{font-size:12px;color:var(--muted);margin:18px 0 0;line-height:1.5}dialog{max-width:520px;width:calc(100% - 32px);border:1px solid #e2e6ef;border-radius:20px;padding:32px;color:#172036;max-height:90vh}dialog::backdrop{background:#101a3b66;backdrop-filter:blur(4px)}dialog h2{font-family:Outfit,sans-serif;font-size:25px;margin:12px 0 22px}dialog p{font-size:16px;line-height:1.6;color:#566078;margin:14px 0}.close{float:right;border:0;background:#eef1f7;border-radius:50%;font-size:22px;width:30px;height:30px}.point-table{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.point-table span{font-size:14px;background:#f3f5fb;padding:9px;border-radius:6px;display:flex;justify-content:space-between}.point-table b{color:var(--blue)}summary{font-size:14px;cursor:pointer;color:var(--blue)}@media(max-width:700px){header{padding:18px 20px}.brand{font-size:24px}main{padding:0 16px;margin-top:24px}.theme-row{margin-bottom:20px}h1{font-size:30px}.untimed{font-size:12px;max-width:100px;text-align:right;line-height:1.5}.scoreline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.scoreline span{font-size:12px}.scoreline strong{font-size:clamp(22px,6.5vw,28px)}.scoreline .current strong{font-size:clamp(22px,6.5vw,28px)}.play-layout{grid-template-columns:1fr;gap:16px}.board-column{width:100%;max-width:510px;margin:auto}#board button{font-size:clamp(16px,4.2vw,23px);border-radius:6px}#board{gap:3px}.board-wrap{padding:7px;border-radius:14px}#paths{inset:7px;width:calc(100% - 14px);height:calc(100% - 14px)}aside{border-top:1px solid #e5e9f2;padding-top:22px}#targets{grid-template-columns:repeat(2,1fr);gap:14px 12px;margin-bottom:24px}#targets li{font-size:14px}#bonuses{max-height:100px}.gesture-note{font-size:12px}#results{padding:24px}#feedback{min-height:24px}.point-table{grid-template-columns:repeat(2,1fr)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.theme-actions{display:flex;flex-direction:column;align-items:flex-end;gap:9px}.new-game{background:white;color:#2750e8;border:1px solid #d5dceb;border-radius:8px;padding:9px 16px;font-size:14px;font-weight:600}.new-game:hover{border-color:#2750e8;background:#f7f9ff}.new-game:disabled{cursor:default;opacity:.5}

.scoreline{margin-bottom:28px}.play-modes{display:flex;gap:20px;margin-bottom:24px}.play-modes button{font:inherit;background:none;border:0;border-bottom:2px solid transparent;color:#687083;padding:6px 0;cursor:pointer}.play-modes button[aria-pressed="true"]{color:#2750e8;border-color:#2750e8}.play-modes button:focus-visible{outline:2px solid #2750e8;outline-offset:4px}#shareResults{margin:0 0 12px}#shareStatus{font-size:13px;color:#687083}#shareText{box-sizing:border-box;width:100%;min-height:180px;margin-bottom:16px;font:inherit;padding:12px;border:1px solid #dce1eb;border-radius:8px}

#shareDialog{max-width:390px}#shareDialog h2{margin-bottom:20px}.share-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.share-choices a,.share-choices button{display:block;text-align:center;border:1px solid #d5dceb;background:white;color:#2750e8;border-radius:10px;padding:12px 8px;text-decoration:none;font:inherit;font-size:14px;font-weight:600;cursor:pointer}.share-choices a:hover,.share-choices button:hover{border-color:#2750e8;background:#f7f9ff}.share-choices a:focus-visible,.share-choices button:focus-visible{outline:2px solid #2750e8;outline-offset:2px}#nativeShare{grid-column:1/-1}#shareDialog .share-note{font-size:13px;line-height:1.5;margin-bottom:0}#shareDialog #shareStatus{font-size:14px;margin-bottom:12px}

#finishDialog{max-width:390px}#finishDialog h2{margin-top:0}.finish-confirm{display:flex;gap:10px}.finish-confirm button{flex:1;padding:13px 9px;font-size:14px}

/* How to Play navigation and illustrative tiles. */
.play-modes{flex-wrap:nowrap;gap:clamp(16px,3vw,24px)}.play-modes button{white-space:nowrap}
#helpDialog h2{margin-top:0}#helpDialog h3{font-size:17px;letter-spacing:-.3px;margin:22px 0 8px}#helpDialog p{font-size:14px;line-height:1.55;margin:8px 0 14px}.help-board{width:260px;max-width:100%;position:relative;background:#e7eaf2;padding:7px;border-radius:14px;margin:14px 0 8px}.help-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.help-tile{aspect-ratio:1;background:white;border-radius:8px;display:grid;place-items:center;position:relative;font-family:Outfit,system-ui,sans-serif;font-size:23px;color:#172036}.help-tile.selected{background:#2750e8;color:white}.help-tile b{font-weight:500;position:relative;z-index:2}.help-tile small{position:absolute;right:5px;top:3px;font:12px 'DM Sans',sans-serif;z-index:2}.help-board svg{position:absolute;inset:7px;width:calc(100% - 14px);height:calc(100% - 14px);pointer-events:none;z-index:1}.help-board polyline{fill:none;stroke:#ffffff;stroke-width:5;stroke-opacity:.45;stroke-linecap:round;stroke-linejoin:round}#helpDialog .help-caption{font-size:12px;color:#677187;margin:0 0 18px}
@media(max-width:700px){.play-modes{gap:16px}.play-modes button{font-size:14px}}
