:root{color-scheme:light;--font: "Manrope Variable", "Aptos", "Segoe UI", system-ui, sans-serif;--page: #f8f7fa;--surface: #fff;--ink: #241e32;--secondary-text: #484155;--muted: #625b70;--disabled: #716a7b;--disabled-bg: #fbfafc;--border: #ebe7ee;--border-strong: #d9d2df;--hover: #f3f0f6;--accent: #c43e54;--accent-hover: #ad2941;--accent-text: #a62c44;--accent-soft: #fceef0;--accent-strong-soft: #f9e1e6;--accent-border: #f4dce2;--accent-border-strong: #d88596;--accent-shadow: #ab345225;--focus: #a14188;--warm-bg: #fff0e6;--warm-ink: #a74424;--green-bg: #e5f4ec;--green-ink: #236146;--amber-bg: #fff1da;--amber-ink: #815314;--lilac-bg: #f0eafa;--lilac-ink: #644291;--board-border: #e9e2ed;--board-bg: #f9f6fa;--tile: #ede8f1;--tile-border: #e8e1ed;--tile-filled: #f9e0e6;--tile-filled-border: #f1c8d1;--tile-start: #f8dce3;--tile-start-border: #efc4ce;--wall: #8b7899;--route: #d34c63;--route-end: #b84d93;--route-head: #a92747;--disc: #fff;--disc-border: #ded5e7;--disc-ink: #40344d;--start-halo: #df8e9e;--hint-bg: #fbe9a8;--shadow: 0 2px 3px #38264b07, 0 8px 30px #38264b06;--modal-shadow: 0 15px 80px #25102b50}:root[data-theme=dark]{color-scheme:dark;--page: #16131c;--surface: #211c2a;--ink: #f7edf8;--secondary-text: #ddd0e4;--muted: #b8a9c2;--disabled: #a491a9;--disabled-bg: #241f2d;--border: #3a3045;--border-strong: #695573;--hover: #2e2639;--accent: #cc455e;--accent-hover: #b7334d;--accent-text: #f19bb1;--accent-soft: #3c2435;--accent-strong-soft: #532d41;--accent-border: #553349;--accent-border-strong: #a2516d;--accent-shadow: #100a1470;--focus: #de9bd2;--warm-bg: #422d28;--warm-ink: #ffad82;--green-bg: #263d32;--green-ink: #9be2ba;--amber-bg: #433622;--amber-ink: #f3cc82;--lilac-bg: #382b4c;--lilac-ink: #cdb1fb;--board-border: #3a3046;--board-bg: #272031;--tile: #382e45;--tile-border: #41354e;--tile-filled: #533044;--tile-filled-border: #65384e;--tile-start: #552f45;--tile-start-border: #783f58;--wall: #ab97b9;--route: #ed7186;--route-end: #c871b1;--route-head: #f9a5b6;--disc: #524360;--disc-border: #6b587d;--disc-ink: #f7eef9;--start-halo: #bf7890;--hint-bg: #635125;--shadow: 0 2px 8px #10091429;--modal-shadow: 0 15px 75px #100a14a0}:root[data-theme=contrast]{--page: #fff;--surface: #fff;--ink: #130e1d;--muted: #251d2c;--secondary-text: #21192b;--border: #51445d;--border-strong: #3b2e46;--tile-border: #8b7899;--disc-border: #64536f;--wall: #4a3c56;--focus: #073b8a}:root{font-family:var(--font);color:var(--ink);background:var(--page);--thread:#a92d48;--thread-bg:#fae8ed}:root[data-theme=dark]{--thread:#ff9faf;--thread-bg:#4a2638}*{box-sizing:border-box}body{margin:0;min-width:280px}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{outline-offset:4px}:focus-visible{outline:2px solid var(--focus)}button{cursor:pointer}a{color:inherit}svg{display:block;width:1.2em;height:1.2em;flex:none}.skip{position:absolute;left:1rem;top:.5rem;z-index:2;background:var(--surface);padding:.6rem;transform:translateY(-200%)}.skip:focus{transform:none}.top{border-bottom:1px solid var(--border);background:var(--surface)}.nav-shell{max-width:1120px;min-height:70px;margin:auto;padding:0 24px;display:flex;align-items:center;gap:26px}.brand,.all-games{display:inline-flex;align-items:center;gap:9px;text-decoration:none}.brand{font-size:1.15rem;font-weight:840;letter-spacing:-.055em;white-space:nowrap}.domain{color:var(--accent-text)}.all-games{color:var(--muted);font-size:.875rem;font-weight:660;flex-shrink:0}.all-games:hover{color:var(--ink)}.top nav{display:flex;align-items:center;gap:5px;margin-left:auto}.icon-btn{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--ink)}.icon-btn:hover{background:var(--hover);border-color:var(--border)}.icon-btn svg{width:20px;height:20px}.game-shell{width:min(600px,calc(100% - 32px));margin:auto}.intro{text-align:center;padding:39px 0 23px}.edition{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin:0;color:var(--muted);font-size:.84rem;font-weight:650;line-height:1.4}.edition time:first-letter{text-transform:uppercase}.edition svg{color:var(--accent-text)}.mid-dot{color:var(--muted)}.intro h1{font-size:clamp(2.85rem,7.2vw,4.7rem);font-weight:850;letter-spacing:-.081em;line-height:1.03;margin:7px 0 8px}.intro h1 em{color:var(--thread);font-style:normal;display:inline-block;position:relative;isolation:isolate}.intro h1 em:after{content:"";position:absolute;bottom:.03em;left:.04em;right:-.02em;height:.11em;border-radius:55% 40% 55% 35%;background:var(--thread);opacity:.17;transform:rotate(-5deg);z-index:-1}.intro>p:not(.edition){color:var(--secondary-text);font-size:clamp(.95rem,2.4vw,1.08rem);margin:.65rem 0 1.2rem}.mode{display:inline-flex;padding:4px;gap:3px;background:var(--hover);border:1px solid var(--border);border-radius:100px}.mode button{border:0;border-radius:100px;background:transparent;color:var(--muted);min-height:34px;padding:0 16px;font-size:.875rem;font-weight:720}.mode button[aria-pressed=true]{color:var(--thread);background:var(--surface);box-shadow:0 1px 5px #1e0f2219}.game-card{background:var(--surface);border:1px solid var(--border);border-radius:22px;padding:20px;box-shadow:var(--shadow)}.board-caption,.board-info{display:flex;justify-content:space-between;align-items:center;gap:6px;color:var(--secondary-text);font-size:.86rem;font-weight:700}.board-caption{margin-bottom:13px;color:var(--ink)}.group-meter,.mistakes,.dots{display:inline-flex;align-items:center;gap:6px}.group-meter{color:var(--muted);font-variant-numeric:tabular-nums}.group-meter span{margin-left:3px}.group-meter i{width:7px;height:12px;border-radius:3px;background:var(--hover);border:1px solid var(--border-strong)}.group-meter .filled{background:var(--accent);border-color:var(--accent)}.board,.tiles{display:grid;gap:8px}.tiles{grid-template-columns:repeat(4,minmax(0,1fr))}.tile{min-width:0;height:65px;padding:7px 4px;overflow-wrap:anywhere;line-height:1.17;color:var(--ink);background:var(--tile);border:1px solid var(--tile-border);border-radius:11px;font-size:clamp(.75rem,2.45vw,1rem);font-weight:800;letter-spacing:.025em;transition:background .15s,transform .15s,border-color .15s}.tile.long{font-size:clamp(.705rem,2.2vw,.91rem);letter-spacing:0}.tile:hover{background:var(--hover);border-color:var(--border-strong)}.tile[aria-pressed=true]{background:var(--thread-bg);border-color:var(--thread);color:var(--thread);box-shadow:inset 0 0 0 1px var(--thread)}.tile[aria-disabled=true]:not([aria-pressed=true]){cursor:default}.tile:active{transform:scale(.97)}.solved{--fill:#f4df9b;display:grid;grid-template-columns:29px 1fr;align-items:center;gap:10px;padding:7px 12px;min-height:65px;background:var(--fill);color:#281d34;border-radius:11px;animation:arrive .24s ease-out both}.solved.green{--fill:#bfe4c8}.solved.blue{--fill:#bcd8f7}.solved.purple{--fill:#d9c7ef}[data-pattern=true] .solved{background:repeating-linear-gradient(45deg,transparent 0 8px,#33233f12 8px 10px),var(--fill)}[data-pattern=true] .green{background:repeating-linear-gradient(90deg,transparent 0 8px,#33233f16 8px 10px),var(--fill)}[data-pattern=true] .blue{background:repeating-linear-gradient(0deg,transparent 0 8px,#33233f16 8px 10px),var(--fill)}[data-pattern=true] .purple{background:radial-gradient(#33233f2a 1.2px,transparent 1.4px) 0 0/10px 10px,var(--fill)}.difficulty{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#fff8;border:1px solid #34283a35;font-weight:800}.solved h2{margin:0 0 2px;font-size:.93rem;font-weight:840;line-height:1.2}.solved p{margin:0;font-size:.8rem;font-weight:690;overflow-wrap:anywhere}.board-info{margin-top:15px}.mistakes{gap:10px}.dots i{width:9px;height:9px;border-radius:50%;border:1px solid var(--border-strong)}.dots .filled{background:var(--accent);border-color:var(--accent)}.picked{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}.feedback{color:var(--thread);font-size:.86rem;font-weight:750;text-align:center;min-height:1.25rem;margin:7px 0 6px}.feedback:empty:after{content:" "}.controls,.end-actions,.panel-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}.button,.reminder-signup .primary{display:inline-flex;min-height:42px;padding:8px 16px;justify-content:center;align-items:center;font-size:.88rem;font-weight:760;text-decoration:none;border:1px solid var(--border-strong);border-radius:11px;color:var(--ink);background:var(--surface)}.button:hover{background:var(--hover)}.primary,.reminder-signup .primary{background:#a92d48;border-color:#a92d48;color:#fff}.primary:hover,.reminder-signup .primary:hover{background:#8c2038;border-color:#8c2038}.button:disabled{color:var(--disabled);background:var(--disabled-bg);border-color:var(--border);cursor:default}.controls .primary{min-width:104px}.end-actions{margin-top:15px}.next-time{display:flex;justify-content:center;align-items:center;gap:6px;margin:16px 0 0;color:var(--muted);font-size:.85rem}.next-time time{font-weight:760;font-variant-numeric:tabular-nums}.empty{min-height:180px;text-align:center;display:grid;place-content:center;justify-items:center;gap:6px;color:var(--secondary-text)}footer{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 20px;margin:32px auto 16px;padding:0 12px;color:var(--muted);font-size:.78rem}.modal{background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:19px;width:min(510px,calc(100% - 24px));max-height:calc(100dvh - 28px);padding:0;box-shadow:var(--modal-shadow)}.modal::backdrop{background:#20162882}.modal article{padding:20px}.modal header{display:flex;justify-content:space-between;align-items:center;gap:8px}.modal h2{font-size:1.53rem;letter-spacing:-.04em;margin:0}.modal h3{margin:1rem 0 .45rem;font-size:1rem}.modal header .icon-btn{font-size:1.75rem;line-height:1;flex:none}.modal p,.modal li{color:var(--secondary-text);line-height:1.53}.modal ol{padding-left:1.35rem}.modal ol li+li{margin-top:.5rem}.field{display:grid;gap:6px;font-weight:680}input:not([type=checkbox]),select,textarea{color:var(--ink);background:var(--surface);border:1px solid var(--border-strong);border-radius:8px;padding:9px;width:100%;min-width:0}.check{display:flex;align-items:center;gap:6px;margin:14px 0}input[type=checkbox]{accent-color:#a92d48;width:18px;height:18px;flex:none}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.metrics div{display:flex;flex-direction:column-reverse;align-items:center;justify-content:center;gap:2px;padding:9px 3px;text-align:center;background:var(--hover);border-radius:9px;min-height:77px}.metrics dt{font-size:.75rem;color:var(--secondary-text)}.metrics dd{font-size:1.28rem;font-weight:800;margin:0}.distribution,.explanations{list-style:none;padding:0}.distribution li{display:grid;grid-template-columns:5rem 1fr 2rem;align-items:center;gap:6px;font-size:.84rem}.distribution meter{width:100%;height:13px;accent-color:#a92d48}.distribution strong{text-align:right}.explanations li{border-top:1px solid var(--border);padding:8px 0}.explanations p{margin:2px 0}.panel-actions{justify-content:flex-start}.share-options{margin:10px 0}.share-options .panel-actions{align-items:center;margin:10px 0}.text-button{border:0;background:transparent;color:inherit;padding:0;text-decoration:underline}.modal summary{cursor:pointer;font-weight:730}.portal-next,.reminder-signup{margin:14px 0 0;padding:13px;border:1px solid var(--border);border-radius:11px;background:var(--surface)}.portal-next{display:grid;gap:5px;font-size:.9rem}.reminder-signup h3{margin-top:0}.reminder-signup p{margin:.5rem 0}.reminder-signup .reminder-consent{display:flex;align-items:flex-start;gap:7px;font-size:.85rem;margin:.5rem 0}.reminder-signup .reminder-trap{position:absolute;height:1px;width:1px;overflow:hidden;clip-path:inset(50%)}.reminder-signup .fine-print{font-size:.82rem}.score-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin-top:12px}table{width:100%;border-collapse:collapse;text-align:left;font-size:.9rem}th,td{padding:7px 5px;border-bottom:1px solid var(--border);overflow-wrap:anywhere}tr[data-own=true]{background:var(--thread-bg);font-weight:750}[data-shake="1"]{animation:shake .23s ease}[data-shake="0"]{animation:shake-alternate .23s ease}@keyframes shake{30%{transform:translate(-4px)}70%{transform:translate(4px)}}@keyframes shake-alternate{30%{transform:translate(-4px)}70%{transform:translate(4px)}}@keyframes arrive{0%{transform:translateY(4px) scale(.985);opacity:.5}to{transform:none;opacity:1}}@media(max-width:570px){.nav-shell{min-height:55px;gap:8px;padding:0 12px}.brand{gap:5px;font-size:.98rem}.brand img{width:30px;height:30px}.all-games{width:29px;height:36px;justify-content:center;position:relative}.all-games span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.top nav{gap:1px}.icon-btn{width:40px;height:40px}.game-shell{width:calc(100% - 22px)}.intro{padding:25px 0 16px}.game-card{padding:12px;border-radius:16px}.board,.tiles{gap:5px}.tile,.solved{min-height:52px;height:auto}.solved{min-height:54px}.board-caption{margin-bottom:9px}.board-info{margin-top:12px}.controls .primary{min-width:72px}.button,.reminder-signup .primary{padding:7px 11px}}@media(max-width:355px){.brand img{width:26px;height:26px}.nav-shell{gap:3px;padding:0 8px}.top .icon-btn{width:36px}.tile{padding-inline:2px}.intro h1{font-size:2.68rem}.game-shell{width:calc(100% - 14px)}.game-card{padding:9px}.solved h2{font-size:.83rem}.solved p{font-size:.73rem}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}@media(max-width:355px){.brand .domain{display:none}}
