@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650;700&family=Libre+Caslon+Display&display=swap');
:root{--paper:#f6f5ef;--ink:#203c33;--green:#163e33;--muted:#677265;--line:#d9ddcf;--coral:#c96f63;--honey:#e3b456;--moss:#728a68;--serif:'Libre Caslon Display',Georgia,serif;--sans:'DM Sans',system-ui,sans-serif;--clue-width:105px;--clue-height:112px;color-scheme:light}
*{box-sizing:border-box}html{background:var(--paper);touch-action:manipulation;scrollbar-color:#9ca990 var(--paper)}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.6 var(--sans);padding-top:env(safe-area-inset-top)}::selection{background:#e3b456;color:#163e33}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;cursor:pointer}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #ba8331;outline-offset:4px}button{color:inherit}a{color:inherit;text-decoration:none}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{border:0;background:transparent}h1,h2,h3{font-family:var(--serif);font-weight:400;text-wrap:balance}p{margin:0 0 18px}button:hover:not(:disabled){filter:brightness(.94)}[hidden]{display:none!important}
.topbar{height:90px;max-width:1320px;padding:0 56px;margin:auto;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:10px;align-items:center;font-size:29px;font-weight:700;letter-spacing:-1px}.brand svg{width:30px;height:30px;stroke:none}.brand>span{color:#899f80;margin-left:-9px}.header-actions{display:flex;align-items:center;gap:12px}.daily-label{font-size:10px;letter-spacing:1.7px;margin-right:14px;color:var(--muted)}.icon-button{height:36px;width:36px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;font-size:20px}.icon-button svg{width:19px;height:19px}main{max-width:1144px;margin:auto;padding:30px 0 0}.family{display:flex;align-items:center;gap:8px;margin-bottom:28px;flex-wrap:wrap}.family>span{font-size:9px;letter-spacing:1.5px;margin-right:10px;color:var(--muted)}.family a{border:1px solid var(--line);border-radius:20px;padding:6px 16px;font-size:12px;font-weight:600}.family a[aria-current]{color:var(--paper);background:var(--green);border-color:var(--green)}.family a:hover{border-color:#819374}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;gap:24px}.intro h1{font-size:52px;line-height:1.03;letter-spacing:-1px;margin:0 0 17px}.intro p{color:var(--muted);font-size:14px;margin:0}.edition{display:flex;flex-direction:column;align-items:flex-end;gap:5px;color:var(--muted);font-size:11px}.edition>span:first-child{font-size:9px;letter-spacing:1.5px}.edition strong{font:24px var(--serif);color:var(--ink)}.layout{display:grid;grid-template-columns:minmax(0,760px) 290px;gap:40px;align-items:start}.game{background:var(--green);border-radius:14px;overflow:hidden;min-width:0;box-shadow:0 12px 34px #183d3212}.game-heading{display:flex;align-items:center;justify-content:space-between;padding:19px 26px;color:#f5f0de}.game-heading>div{display:flex;align-items:center;gap:11px}.game-heading strong{font-weight:500;font-size:13px}.mini-mark{width:14px;height:14px;background:conic-gradient(var(--coral) 25%,var(--honey) 0 50%,var(--moss) 0 75%,#f0ebdb 0)}.difficulty{font-size:10px;border:1px solid #667c64;border-radius:4px;padding:1px 7px;color:#cfdbc1}.game-heading time{font-size:13px;font-variant-numeric:tabular-nums;color:#dce0c8}.canvas{padding:0 28px 16px;max-width:660px;margin:auto}.board-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;color:#bdcbb4;font-size:9px;letter-spacing:1.3px;gap:12px}.board-meta button{color:#e6e9d5;border-bottom:1px solid #6d826c;font-size:10px;letter-spacing:0;padding:2px 0}.board-meta button[aria-pressed=true]{color:#edc57d}.board{display:grid;grid-template-columns:var(--clue-width) repeat(10,minmax(0,1fr));grid-template-rows:var(--clue-height) repeat(10,1fr);width:100%;aspect-ratio:1/1.02;user-select:none;-webkit-user-select:none;touch-action:none;position:relative;isolation:isolate}.corner{align-self:end;justify-self:end;padding:0 12px 12px 0;line-height:1.2;color:#c0cdb8}.corner strong{display:block;font:34px/1 var(--serif);color:#f3e9c9}.corner small{font-size:9px;letter-spacing:1px}.clues{display:flex;gap:3px;align-items:center;justify-content:flex-end;position:relative}.row-clue{padding-right:9px}.col-clue{flex-direction:column;justify-content:flex-end;padding-bottom:9px}.clue{display:inline-flex;align-items:center;justify-content:center;gap:1px;min-width:21px;height:22px;border-radius:3px;font-size:12px;font-weight:700;color:#1b3028;line-height:1}.clue small{font-size:7px;align-self:flex-end;margin-bottom:3px;font-weight:600}.c1{background:var(--coral)}.c2{background:var(--honey)}.c3{background:var(--moss);color:#fff}.clues.done{opacity:.4}.clues.done:after{content:'✓';color:#d7e4c6;position:absolute;font-size:10px}.row-clue.done:after{right:0}.col-clue.done:after{bottom:-3px}.empty-clue{color:#cbd5be;font-size:12px}.cell{border:0;border-right:1px solid #c4c8b5;border-bottom:1px solid #c4c8b5;background:#eeeee4;color:var(--green);border-radius:0;padding:0;min-width:0;min-height:0;position:relative;aspect-ratio:1;line-height:1;font-weight:600;font-size:14px;touch-action:none;cursor:crosshair}.cell[data-col="0"]{border-left:2px solid #91a18b}.cell[data-row="0"]{border-top:2px solid #91a18b}.cell[data-col="4"],.cell[data-col="9"]{border-right:2px solid #91a18b}.cell[data-row="4"],.cell[data-row="9"]{border-bottom:2px solid #91a18b}.cell.c1{background:var(--coral);color:#182d25}.cell.c2{background:var(--honey);color:#182d25}.cell.c3{background:var(--moss);color:#fff}.cell.cross{background:#e3e5d9;color:#7b8876;font-size:19px;font-weight:400}.cell.given:after{content:'';position:absolute;bottom:4px;right:4px;width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.8}.cell:focus-visible{outline:3px solid #fff;outline-offset:-3px;z-index:2}.cell:hover:not(:disabled){filter:brightness(1.06);box-shadow:inset 0 0 0 2px #203c3355}.cell.error{box-shadow:inset 0 0 0 3px #ab302a!important}.canvas-foot{display:flex;align-items:center;justify-content:space-between;color:#c9d3bd;font-size:10px;padding:14px 0 0 0;gap:8px}.canvas-foot>span:first-child{display:flex;align-items:center;gap:6px}.lock-dot{width:4px;height:4px;border-radius:50%;background:#c9d3bd}.studio{background:#f0f0e5;padding:19px 26px 15px}.palette-header{display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:1.4px;color:#5e6e5b;margin-bottom:10px}.palette-header>span:last-child{font-size:11px;letter-spacing:0}.palette{display:flex;align-items:center;justify-content:center;gap:9px}.swatch{display:flex;align-items:center;flex-direction:column;position:relative;padding:7px 10px 5px;min-width:65px;border:1px solid transparent;border-radius:8px;gap:3px}.swatch[aria-pressed=true]{border-color:#49634a;background:#e1e7d8}.swatch>i{display:grid;place-items:center;width:33px;height:33px;border-radius:5px;font-size:13px;font-style:normal;font-weight:600}.swatch>span{font-size:10px}.swatch kbd{position:absolute;right:3px;top:1px;font:8px var(--sans);color:#52634e}.tool>i{border:1px solid #abb6a0;color:#455e43;font-size:25px}.tool svg{width:20px;height:20px}.palette-divider{height:42px;width:1px;background:#cdd3c3;margin:0 3px}.toolbar{margin-top:17px;padding-top:14px;border-top:1px solid #d0d7c6;display:flex;align-items:center;justify-content:space-between;gap:6px}.toolbar button{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;padding:5px 7px;min-height:34px}.toolbar svg{width:17px;height:17px}.toolbar small{border-radius:50%;border:1px solid #b6c3aa;width:17px;height:17px;display:grid;place-items:center;font-size:9px}#status{margin:10px 0 0;color:#586c52;font-size:11px;line-height:1.6;min-height:18px;text-align:center}.result-again{display:block;margin:12px auto 0;border-bottom:1px solid #63785b;font-size:12px}.aside-heading{display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:1.6px;color:#5b7053;margin-bottom:19px}.small-square{width:9px;height:9px;background:var(--coral)}.howto{padding-top:16px}.howto h2{font-size:37px;line-height:1.05;letter-spacing:-.5px;margin:0 0 21px}.howto p,.daily-note p{color:#5e6c58;font-size:12px;line-height:1.85}.clue-demo{border-top:1px solid var(--line);padding-top:16px}.demo-clues{display:flex;align-items:center;gap:5px;margin-bottom:10px}.demo-clues svg{width:17px;margin-left:5px}.demo-cells{display:flex;gap:3px}.demo-cells>i{width:32px;height:32px;display:grid;place-items:center;font-style:normal;border-radius:3px}.demo-cells>i:last-child{border:1px solid #c7d0bd;color:#7a8a6b}.howto .demo-note{font-size:10px;margin-top:9px}.howto ol{list-style:none;counter-reset:how;padding:0;margin:24px 0 18px}.howto li{counter-increment:how;position:relative;padding-left:29px;font-size:12px;line-height:1.7;margin-bottom:14px;color:#52644b}.howto li:before{content:counter(how);position:absolute;left:0;width:19px;height:19px;border:1px solid #c4ceba;border-radius:50%;text-align:center;font-size:10px;line-height:18px}.text-button{font-size:11px;border-bottom:1px solid #aab99c;padding:0 0 3px}.text-button span{margin-left:12px}.daily-note{margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}.daily-note h3{font-size:25px;margin:0 0 10px}.next{display:flex;justify-content:space-between;align-items:center;padding-top:18px;border-top:1px solid var(--line);color:#627359;font-size:10px}.next strong{display:block;font-size:20px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--ink);margin-top:2px}.next>span:last-child{text-align:right;font-size:8px;letter-spacing:1px}.family-footer{display:flex;align-items:center;gap:22px;margin:36px 0 0;padding:25px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.family-footer>div{flex:1}.family-footer h3{font-size:25px;margin:0 0 2px}.family-footer p{font-size:11px;color:var(--muted);margin:0}.family-footer>a{font-size:11px;border:1px solid #c6cebc;padding:9px 14px;border-radius:6px}footer{padding:24px 0 30px;display:flex;align-items:center;gap:22px;font-size:10px;color:var(--muted)}.footer-brand{font-size:16px;font-weight:700;color:var(--ink)}footer>span{flex:1}dialog{width:min(500px,calc(100% - 30px));max-height:calc(100dvh - 40px);overflow:auto;background:var(--paper);color:var(--ink);border:0;border-radius:14px;padding:36px;box-shadow:0 16px 80px #092c2855}dialog::backdrop{background:#0b2926b8}dialog h2{font-size:40px;line-height:1.05;margin:8px 0 22px;letter-spacing:-.5px}dialog p{font-size:13px;line-height:1.8;color:#52644d}dialog .close{position:absolute;right:10px;top:8px;font-size:26px;line-height:1;width:32px;height:32px}.primary{display:block;width:100%;padding:13px 20px;border-radius:7px;color:#f6f3e5;background:var(--green);font-size:13px;font-weight:500}.secondary{padding:12px;border:1px solid var(--line);border-radius:7px;font-size:12px}.dialog-actions{display:grid;gap:10px}.help-example{display:flex;gap:4px;align-items:center;margin-bottom:18px}.help-example>i{width:27px;height:27px;display:grid;place-items:center;font-style:normal;font-size:12px}.example-arrow{padding:0 4px}.result-art{display:grid;grid-template-columns:repeat(10,1fr);width:180px;height:180px;margin:0 auto 22px;image-rendering:pixelated}.result-art i{display:block}.result-art .blank{background:transparent}#resultDialog{text-align:center}#resultDialog h2{font-size:38px;margin:8px 0 15px}.result-caption{font-size:9px!important;letter-spacing:2px;color:#667e58!important;margin:0!important}.result-details{display:flex;justify-content:center;gap:24px;padding:14px 0;margin:16px 0 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:12px}.result-details strong{font-size:21px;display:block;font-weight:500}.result-details span{font-size:10px;color:#617357}#shareStatus{font-size:11px;min-height:20px;margin:10px 0}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;text-align:center;margin:24px 0}.stats-grid strong{display:block;font:36px var(--serif)}.stats-grid span{font-size:10px}.stats-recent{margin:0 0 20px;padding:0;list-style:none}.stats-recent li{display:flex;justify-content:space-between;gap:12px;font-size:12px;border-bottom:1px solid var(--line);padding:9px 0}.revealed .cell{border-color:transparent!important}.revealed .cross{color:transparent;background:#eeeee4}.revealed .cell.given:after{display:none}.revealed .cell{transition:border-color .7s cubic-bezier(.16,1,.3,1)}
@media(min-width:1500px){main{padding-top:40px}.intro{margin-bottom:36px}}
@media(max-width:1220px){main{margin:0 40px}.topbar{padding:0 40px}.layout{grid-template-columns:minmax(0,1fr) 260px;gap:30px}.intro h1{font-size:48px}.howto h2{font-size:34px}:root{--clue-width:100px;--clue-height:110px}.row-clue{padding-right:6px}.clue{min-width:18px;height:19px;font-size:11px}.clue small{font-size:6px}.canvas{padding-left:20px;padding-right:20px}}
@media(max-width:940px){.layout{grid-template-columns:minmax(0,1fr) 230px;gap:25px}main{margin:0 24px}.topbar{padding:0 24px}.canvas{padding-left:14px;padding-right:14px}.studio{padding:17px 15px 14px}.palette{gap:3px}.swatch{min-width:53px;padding-left:7px;padding-right:7px}.palette-divider{margin:0 2px}.howto h2{font-size:30px}.game-heading{padding:17px}.daily-label{display:none}:root{--clue-width:85px;--clue-height:100px}.clue{min-width:15px;height:17px;font-size:10px}.clue small{font-size:5px;margin-bottom:2px}.clues{gap:2px}.corner strong{font-size:28px}}
@media(max-width:740px){main{max-width:620px;margin:auto;padding:24px 20px 0}.topbar{height:74px}.layout{display:block}.intro{align-items:flex-start;margin-bottom:24px;gap:12px}.intro h1{font-size:41px}.intro p{font-size:12px;max-width:245px}.edition{padding-top:4px;font-size:9px;gap:4px;min-width:90px}.edition>span:first-child{font-size:8px;letter-spacing:.4px}.edition strong{font-size:19px}.edition>span:last-child{display:none}.family{margin-bottom:25px;gap:6px}.family>span{font-size:8px;margin-right:3px}.family a{font-size:11px;padding:5px 12px}.canvas{padding:0 20px 16px}.game-heading{padding:18px 20px}.studio{padding:17px 20px 13px}.palette{gap:9px}.swatch{min-width:58px}aside{display:grid;grid-template-columns:1.2fr 1fr;gap:30px;margin-top:32px}.howto{padding:0}.howto h2{font-size:31px}.aside-heading{font-size:8px;margin-bottom:15px}.daily-note{margin-top:0;padding-top:0;border-top:0}.family-footer{flex-wrap:wrap;gap:12px}.family-footer>div{flex-basis:100%}.family-footer h3{font-size:24px}footer{gap:14px;flex-wrap:wrap}footer>span{font-size:9px}:root{--clue-width:100px;--clue-height:108px}.clue{min-width:19px;height:20px;font-size:11px}.clue small{font-size:6px}.clues{gap:3px}}
@media(max-width:470px){main{padding:20px 12px 0}.topbar{padding:0 18px;height:67px}.brand{font-size:26px}.brand svg{width:26px;height:26px}.header-actions{gap:8px}.icon-button{width:34px;height:34px}.family{gap:6px;margin-bottom:23px}.family a{padding:5px 11px}.intro{display:block;position:relative;padding-right:55px}.intro h1{font-size:38px;line-height:1.05}.intro p{font-size:11px;max-width:265px}.edition{position:absolute;right:0;top:3px;min-width:0;writing-mode:vertical-rl;align-items:flex-start;gap:6px}.edition>span:first-child{font-size:7px;letter-spacing:1px}.edition strong{font:11px var(--sans);color:#5a6d52}.canvas{padding:0 10px 12px}.game-heading{padding:15px 14px}.game-heading strong{font-size:12px}.game-heading>div{gap:8px}.board-meta{font-size:8px;letter-spacing:.8px;margin-bottom:10px}.board-meta button{font-size:9px}.studio{padding:16px 11px 13px}.palette{gap:4px}.swatch{min-width:50px;padding:7px 7px 4px}.swatch>i{width:31px;height:31px}.swatch>span{font-size:9px}.palette-divider{margin:0 2px}.toolbar{margin-top:13px;padding-top:10px}.toolbar button{font-size:10px;padding:3px 5px}.toolbar svg{width:15px;height:15px}#status{font-size:10px;min-height:30px;margin-top:6px}.canvas-foot{font-size:9px;padding-top:10px}.canvas-foot>span:first-child{max-width:195px}.board{aspect-ratio:1/.99}:root{--clue-width:81px;--clue-height:94px}.clue{min-width:15px;height:16px;font-size:9px;border-radius:2px}.clue small{font-size:5px;margin-bottom:2px}.clues{gap:2px}.row-clue{padding-right:5px}.col-clue{padding-bottom:6px}.corner{padding:0 10px 8px 0}.corner strong{font-size:25px}.corner small{font-size:7px}.cell{font-size:10px}.cell.cross{font-size:15px}.cell.given:after{width:3px;height:3px;bottom:3px;right:3px}aside{display:block;margin:29px 8px 0}.howto h2{font-size:34px}.howto h2 br{display:none}.howto p{font-size:12px}.howto .aside-heading{font-size:8px}.howto ol{margin-top:20px}.daily-note{border-top:1px solid var(--line);margin-top:26px;padding-top:22px}.next{margin-top:17px}.family-footer{margin-top:27px;padding:22px 5px}.family-footer h3{font-size:24px}.family-footer>a{font-size:10px;padding:8px 12px}footer{padding:20px 5px 26px}footer>span{order:3;flex-basis:100%}footer>.text-button{margin-left:auto}dialog{padding:29px 23px}dialog h2{font-size:35px}.help-example{gap:3px}.help-example>i{width:24px;height:24px}.help-example .clue{min-width:22px;height:24px;font-size:12px}.help-example .clue small{font-size:7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* Clue gutters follow each motif, including dense seven-group lines. */
.board{aspect-ratio:auto;grid-template-rows:var(--clue-height) repeat(10,auto)}
:root{--clue-width:calc(var(--row-count,5)*23px + 12px);--clue-height:calc(var(--col-count,5)*25px + 9px)}
@media(max-width:1220px){:root{--clue-width:calc(var(--row-count,5)*21px + 9px);--clue-height:calc(var(--col-count,5)*22px + 9px)}}
@media(max-width:940px){:root{--clue-width:calc(var(--row-count,5)*17px + 7px);--clue-height:calc(var(--col-count,5)*19px + 7px)}}
@media(max-width:740px){:root{--clue-width:calc(var(--row-count,5)*22px + 9px);--clue-height:calc(var(--col-count,5)*23px + 9px)}}
@media(max-width:470px){:root{--clue-width:calc(var(--row-count,5)*15px + 6px);--clue-height:calc(var(--col-count,5)*18px + 6px)}.row-clue .clue{min-width:13px}.board{aspect-ratio:auto}}
/* Keep compact family typography readable and pigment labels high contrast. */
.clue,.cell.c1,.cell.c2,.cell.c3,.pigment{color:#102016}.c3{color:#102016}.demo-cells>i:last-child{color:#53664b}.result-caption{color:#52694a!important}
.daily-label,.family>span,.edition>span:first-child,.board-meta,.board-meta button,.canvas-foot,.palette-header,.palette-header>span:last-child,.swatch>span,.toolbar button,.aside-heading,.howto .demo-note,.next,.next>span:last-child,.family-footer>a,footer,footer>span,.result-caption{font-size:11px!important}
.clue{font-size:11px}.clue small{font-size:6px}.board-meta{letter-spacing:.6px}.palette-header{letter-spacing:.8px}.family>span{letter-spacing:.6px}.edition>span:first-child{letter-spacing:.6px}.canvas-foot{line-height:1.4}.cell.cross{color:#586b50}.cell{font-size:12px}
@media(max-width:470px){.family>span{display:none}.intro{padding-right:0}.edition{position:static;writing-mode:horizontal-tb;flex-direction:row;align-items:center;gap:8px;margin:14px 0 0}.edition>span:first-child{font-size:9px!important;letter-spacing:.3px}.edition strong{font-size:11px}.swatch kbd{display:none}.palette{gap:2px}.swatch{min-width:48px}.board-meta{font-size:10px!important;letter-spacing:0}.board-meta button{font-size:11px!important}.canvas-foot{font-size:10px!important}.canvas-foot>span:first-child{max-width:190px}.palette-header{font-size:10px!important}.toolbar{gap:1px}.toolbar button{font-size:11px;padding:4px 3px}.toolbar svg{width:14px;height:14px}.toolbar button:last-child{padding-right:0}.toolbar button:last-child>span{display:none}#status{font-size:11px}.clue small{font-size:5px}.col-clue .clue{font-size:11px}.row-clue .clue{font-size:11px}}
/* Chipvio inherits the Daily games visual system. */
.brand svg{stroke:var(--green);fill:none;stroke-width:2}.layout{grid-template-columns:minmax(0,760px) 290px}.signal-dot{width:9px;height:9px;border-radius:50%;background:var(--honey);display:inline-block}.board-meta{margin:0;padding:0 26px;min-height:28px}.board-meta>div{display:flex;gap:16px}.board-meta button{min-height:32px}.game-heading{padding-bottom:10px}#stage{height:425px;position:relative;touch-action:none;cursor:grab;outline-offset:-5px}#stage:active{cursor:grabbing}#stage canvas{width:100%;height:100%;display:block}#loading{position:absolute;inset:0;display:grid;place-items:center;color:#dfdfc6}#flat{position:absolute;inset:20px max(20px,calc((100% - 370px)/2));display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(5,1fr);gap:5px}#flat button{background:#315446;position:relative;border-radius:5px;padding:0;color:#e3b456;border:1px solid #68816b;min-width:0}#flat button.powered{background:#46654e;color:#ffe0a0}#flat button.locked:after{content:'•';position:absolute;right:5px;bottom:1px;color:#f6f5ef}#flat button.selected{outline:2px solid #f6e4b5;outline-offset:1px}#flat svg{width:100%;height:100%;stroke:currentColor;stroke-width:7;stroke-linecap:square}.canvas-foot{padding:0 26px 20px;font-size:11px}.canvas-foot>span:first-child{gap:7px}.canvas-foot i{height:6px;width:6px;background:var(--honey);border-radius:50%}.studio{padding:17px 26px 16px}.controls{display:flex;gap:7px;justify-content:center}.controls button{display:flex;gap:7px;align-items:center;justify-content:center;min-height:43px;padding:9px 18px;border:1px solid #d0d5c4;border-radius:6px;font-size:12px}.controls button svg{width:16px;height:16px}.controls small{border-radius:50%;background:#e0e4d5;min-width:17px}#status{font-size:11px;color:#51624e;text-align:center;margin:13px 0 0;min-height:18px}.legend{display:flex;gap:12px;flex-wrap:wrap;padding:15px 0 20px;font-size:10px;border-block:1px solid var(--line);margin:22px 0}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:9px;height:9px;border-radius:2px}.legend .live{background:#c7923b}.legend .off{background:#728a68}.legend .lock{border:1px solid #728a68;background:#e5e7da}.camera-note{font-size:12px!important}.howto ol{padding-left:20px}.howto li{padding-left:5px;margin-bottom:15px}dialog{max-width:490px;width:calc(100% - 32px);border:0;background:var(--paper);color:var(--ink);border-radius:14px;padding:34px}dialog::backdrop{background:#10281fcc}dialog h2{font-size:37px;margin:0 0 18px;line-height:1.1}dialog p{font-size:14px}dialog .close{position:absolute;right:12px;top:7px;font-size:28px;width:36px;height:36px}.primary{background:var(--green);color:var(--paper);padding:12px 22px;border-radius:6px;display:block;margin:14px auto 0}.result-nums{display:flex;justify-content:space-around;gap:12px;border-block:1px solid var(--line);padding:20px 0;margin:23px 0}.result-nums strong{font:30px var(--serif);display:block}.result-nums span{text-align:center;font-size:11px}.secondary{padding:12px;border:1px solid var(--line);border-radius:6px}.dialog-actions{display:flex;align-items:center;gap:12px}.dialog-actions .primary{margin:0}.toast-note{font-size:12px;color:var(--muted)}
@media(max-width:1100px){main{padding:25px 30px 0}.layout{grid-template-columns:minmax(0,1fr) 260px;gap:28px}.topbar{padding-inline:30px}#stage{height:395px}}
@media(max-width:760px){.topbar{height:60px;padding:0 20px}.daily-label{display:none}main{padding:18px 18px 0}.brand{font-size:25px}.family{gap:6px;margin-bottom:24px}.family>span{display:none}.family a{padding:5px 13px;font-size:11px}.intro{margin-bottom:24px;align-items:flex-start;gap:12px}.intro h1{font-size:38px;margin-bottom:12px;letter-spacing:-.8px}.intro p{font-size:12px;max-width:250px}.edition{padding-top:4px;min-width:70px}.edition>span:first-child{display:none}.edition strong{font-size:16px}.edition>span:last-child{max-width:78px;font-size:9px;text-align:right}.layout{display:block}.game{border-radius:12px}.game-heading{padding:16px 18px 8px}.board-meta{padding:0 18px;font-size:8px}.board-meta>div{gap:12px}.board-meta button{font-size:9px}#stage{height:355px}.canvas-foot{padding:0 18px 17px;font-size:10px}.studio{padding:13px 16px}.controls{gap:8px}.controls button{flex:1;padding:9px 8px}.howto{margin-top:30px}.howto h2{font-size:32px}.howto ol{font-size:13px}.daily-note{margin-top:25px}.family-footer{margin-top:30px}.family-footer a{font-size:11px}footer{gap:12px;flex-wrap:wrap;padding:24px 0}footer>span{font-size:10px}#flat{inset:16px max(16px,calc((100% - 320px)/2))}.intro br{display:block}}
@media(max-width:370px){.intro h1{font-size:33px}.edition{display:none}#stage{height:310px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.legend,.canvas-foot,.board-meta,.board-meta button,.difficulty,.edition>span,.next>span,.family>span,.daily-label,.aside-heading{font-size:11px!important}#status{font-size:12px}.controls button{min-height:44px}.board-meta button{min-height:40px}.icon-button{min-width:40px;min-height:40px}.board-meta{flex-wrap:wrap}.howto .aside-heading{display:none}
/* Physical component assembly */
#stage{height:475px;overflow:hidden}.assembly-studio{padding:18px 22px}.tray-heading{display:flex;justify-content:space-between;gap:12px;color:#5e6e5b;font-size:11px;margin-bottom:10px}.tray-heading>span:first-child{letter-spacing:1.3px}.parts-tray{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.part{border:1px solid #d1d7c6;border-radius:7px;background:#f8f8ef;min-width:0;min-height:83px;padding:5px 3px 7px;position:relative;display:flex;align-items:center;flex-direction:column;line-height:1.25}.part svg{width:64px;height:42px;max-width:95%;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5}.part strong{font-size:11px;font-weight:600}.part small{font-size:10px;color:#697363;margin-top:3px}.part[aria-pressed=true]{outline:2px solid var(--green);outline-offset:1px;background:#e0e6d5}.part.mounted{opacity:.46}.part.mounted:after{content:'✓';position:absolute;right:4px;top:2px;font-size:12px;color:var(--green)}.held-tools{display:flex;align-items:center;justify-content:center;gap:12px;border-bottom:1px solid #d5dcca;padding:12px 0}.held-tools button{display:flex;align-items:center;gap:5px;font-size:11px;min-height:40px}.held-tools button svg{width:16px;height:16px}.held-tools kbd{font-size:10px;color:#6c7765;margin-left:4px;border:1px solid #bbc6af;padding:1px 5px;border-radius:3px}.test-row{display:flex;align-items:center;gap:16px;padding-top:13px}.test-row #status{text-align:left;flex:1;margin:0;font-size:12px;line-height:1.5}.test-row .primary{margin:0;white-space:nowrap;display:flex;align-items:center;gap:9px;font-size:12px;min-height:45px;padding:11px 15px}.test-row svg{width:16px;height:16px}.build-sheet{padding-top:4px}.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.sheet-heading h2{font-size:29px;line-height:1.1;margin:0}.sheet-heading>span{font-size:10px;color:var(--muted)}.sheet-heading b{font-weight:500}.sheet-intro{font-size:12px;color:var(--muted);line-height:1.65;margin:16px 0 18px}.slot-detail{border-block:1px solid var(--line);padding:14px 0 0;margin-bottom:12px;min-height:112px}.slot-detail strong{font-size:12px;font-weight:600}.slot-detail p{font-size:12px;color:#5a6956;margin:7px 0 13px}.instructions{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:14px 0}.instructions button{padding:9px 5px;border:1px solid var(--line);border-radius:4px;font-size:11px;min-height:42px;display:flex;justify-content:center;gap:5px}.instructions button.active{background:#e4e8da;border-color:#93a18a}.instructions button.ok{color:#316049}.instructions button.error{border-color:#bf7163;color:#934234}.instructions button b{font-weight:500}.support-actions{display:flex;gap:15px;margin-top:18px}.support-actions button{font-size:11px;min-height:40px;text-decoration:underline;text-underline-offset:4px;color:#57694f}.board-meta{padding-top:2px}.board-meta button{min-height:38px}#flat{inset:15px 20px;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);gap:8px}#flat button{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#254d3f;border:1px dashed #819b7a;min-height:0;gap:3px;padding:5px}#flat button strong{font-size:12px;color:#f1f0d8}#flat button small{font-size:10px;color:#d4ddc5}#flat button svg{width:58px;height:29px;stroke-width:1.5}#flat button.selected{outline:2px solid #ebc17b}#flat button.ok{border-color:#d3db9d;background:#3c6048}#flat button.error{border-color:#f2a08c}.assembly-game .canvas-foot{padding-top:8px}.edition{min-width:100px}
@media(max-width:1100px){.parts-tray{grid-template-columns:repeat(4,minmax(0,1fr))}#stage{height:445px}}
@media(max-width:760px){#stage{height:395px}.assembly-studio{padding:15px 14px}.parts-tray{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.part{min-height:77px}.part svg{height:36px}.part strong{font-size:11px}.part small{font-size:10px}.held-tools{gap:15px}.held-tools kbd{display:none}.test-row{gap:10px}.test-row .primary{padding:11px;font-size:11px}.test-row #status{font-size:11px}.build-sheet{margin-top:28px}.sheet-heading h2{font-size:32px}.slot-detail{min-height:0}.instructions{grid-template-columns:repeat(6,1fr)}.instructions button{padding-inline:2px}.daily-note{margin-top:22px}.intro h1{font-size:38px}.intro p{max-width:240px}.edition{min-width:75px}#flat{inset:15px 16px}.game-heading strong{font-size:12px}.tray-heading{font-size:10px}.board-meta{font-size:10px!important}.board-meta button{font-size:10px!important}}
@media(max-width:370px){#stage{height:340px}.part strong{font-size:10px}.part small{font-size:9px}.held-tools{gap:9px}.intro h1{font-size:34px}}
.part small,.part strong,.sheet-heading>span,.tray-heading,.board-meta,.board-meta button,#flat button small{font-size:11px!important}.part small{max-width:100%;overflow-wrap:anywhere;text-align:center}.held-tools kbd{color:#53624e}.part strong{overflow-wrap:anywhere;max-width:100%}
/* A slower, guided building pause. */
.relaxed-label{font-size:11px;color:#dce0c8}.build-prompt{display:flex;align-items:center;gap:14px;margin:5px 22px 0;padding:11px 0;border-bottom:1px solid #66816b;color:#f2efda;font-size:12px;line-height:1.5}.build-prompt>span{flex:1}.build-prompt button{font-size:11px;white-space:nowrap;padding:8px 10px;min-height:40px;color:#f5e2b8;border:1px solid #7a937b;border-radius:5px}.learn-panel{padding:0 0 16px;margin-bottom:16px;border-bottom:1px solid #cfd7c3}.learn-panel h2{font-family:var(--sans);font-size:16px;font-weight:600;line-height:1.35;margin:0 0 7px}.learn-panel>p{font-size:13px;line-height:1.65;margin:0;color:#455c46;max-width:65ch}.learn-panel details{margin-top:8px;font-size:12px;color:#455c46}.learn-panel summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px;width:fit-content;padding:5px 0;min-height:32px}.learn-panel details p{margin:8px 0;line-height:1.65}.orient-help{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px;min-height:44px;margin-top:12px;cursor:pointer}.orient-help input{accent-color:var(--green);width:17px;height:17px;cursor:pointer}.orient-help>span{font-size:11px;color:#52664c;flex:1;min-width:160px}.part.suggested{border-color:#7d946d;background:#edf1e3}.instructions button.candidate{border-color:#8e7945;background:#f1e5c5}#flat button.candidate{border-color:#f1d18c;border-style:solid}.learning-recap{padding:16px 0;border-block:1px solid var(--line);margin:18px 0}.learning-recap h3{font-size:24px;margin:0 0 13px}.learning-recap p{margin-bottom:10px}.test-row #status{font-size:12px}.held-tools{padding:4px 0 10px}summary:focus-visible,input:focus-visible{outline:3px solid #ba8331;outline-offset:3px}
@media(max-width:760px){.build-prompt{margin-inline:16px;font-size:12px;gap:8px;align-items:flex-start}.build-prompt button{white-space:normal;max-width:90px;min-width:68px}.learn-panel h2{font-size:15px}.learn-panel>p{font-size:12px}.orient-help>span{flex-basis:100%;margin-left:24px}.relaxed-label{font-size:11px}.test-row{align-items:flex-start}.test-row .primary{white-space:normal;min-width:94px}.test-row #status{font-size:12px}}
/* Cartoon materials echo the playful physical components. */
.part{border:2px solid #c0cdb4;border-radius:12px;background:#fff9e8;transition:transform .14s ease-out,background .14s ease-out}.part:hover:not(:disabled){transform:translateY(-2px);filter:none;background:#fff3d4}.part[aria-pressed=true]{background:#f8e6b2;outline:2px solid #365442;border-color:#365442}.part.suggested{background:#eaf2d8;border-color:#91ae76}.part.mounted{opacity:.6}.part svg.toon-part{stroke-width:2.2;filter:drop-shadow(0 2px 1px #334d3022)}.learn-panel{background:#fff9e8;padding:13px 15px;border:1px solid #d9ddc7;border-radius:12px}.build-prompt button{border-radius:10px;background:#315747}.instructions button{border-radius:8px}.test-row .primary{border-radius:10px;background:#24523f}.orient-help input{accent-color:#397853}#flat button{border-radius:10px;background:#3b745b;border-width:2px}#flat button.candidate{border-width:2px;background:#497d5a}#flat button.ok{background:#47865b}.toon-part text{font-weight:600}.held-tools button{border-radius:7px}
@media(prefers-reduced-motion:reduce){.part{transition:none}.part:hover:not(:disabled){transform:none}}
/* The fallback is a circuit board, with the same layout as the 3D model. */
#stage .pcb-backdrop{display:none;position:absolute;inset:15px 20px;pointer-events:none}#stage.is-flat .pcb-backdrop{display:block}.pcb-underlay{display:block;width:100%;height:100%}#flat{inset:15px 20px;display:block;background:none}#flat button{position:absolute;transform:translate(-50%,-50%);width:18.5%;height:23%;border:1px dashed #35775488;border-radius:12px;background:#b7dfbc22;display:flex;flex-direction:column;gap:0;justify-content:center;align-items:center;padding:5px;color:#28583f;outline:none}#flat button strong{position:absolute;top:4px;left:7px;color:#234f37;font-size:12px;font-weight:700;line-height:1}#flat button small{color:#2c6145;font-size:10px!important;line-height:1.2;text-align:center;max-width:100%}#flat .socket-drawing{display:flex;justify-content:center;align-items:center;width:84%;height:65%;padding:0}#flat button svg{width:100%;height:100%;max-width:94px;stroke-width:2.2}#flat button.empty-socket svg{opacity:.28;filter:grayscale(.35)}#flat button:hover{background:#e6f1ce55;filter:none}#flat button.selected{outline:2px solid #fff3b0;outline-offset:3px;border-color:#6e7941;background:#e6e9ad44}#flat button.candidate{border:2px solid #fff0ad;background:#f6efb32b}#flat button.ok{background:#e1edc644;border:1px solid #3b8255}#flat button.error{background:#f3b8a955;border:2px solid #a35743}#flat button:focus-visible{outline:3px solid #213e34;outline-offset:2px}.game-heading .difficulty{background:#375f4b}.board-meta{color:#d6e1c5}
@media(max-width:760px){#stage .pcb-backdrop,#flat{inset:15px 12px}#flat button{width:19%;height:23%;border-radius:8px;padding:4px}#flat button strong{font-size:11px;left:5px;top:4px}#flat button small{font-size:9px!important}#flat .socket-drawing{height:60%;width:95%;padding-top:7px}.pcb-underlay text{font-weight:600}}

/* Keep status readable beside the action in the shared page width. */
.test-row .primary{width:auto;flex:0 0 auto}.test-row #status{min-width:0}
@media(max-width:540px){.test-row{flex-wrap:wrap}.test-row #status{flex:1 1 180px}}

/* The victory guide keeps the board's calm palette and readable mobile rhythm. */
dialog:has(.circuit-guide){max-width:720px;padding-top:48px}dialog:has(.circuit-guide) .close{position:sticky;top:0;float:right;background:var(--paper);border-radius:50%;z-index:1}.circuit-guide h3{font-size:25px;line-height:1.2;margin:28px 0 12px}.circuit-flow{padding-left:22px;font-size:14px;line-height:1.8;color:#52644d}.circuit-flow li{padding-left:5px;margin:12px 0}.circuit-model{margin:24px 0;padding:18px;background:#e6eadc;border-radius:10px}.circuit-model p{margin-bottom:0}.circuit-part{border-top:1px solid var(--line);padding:0 2px}.circuit-part:last-of-type{border-bottom:1px solid var(--line)}.circuit-part summary{cursor:pointer;padding:17px 0;min-height:44px;font-size:15px;line-height:1.5}.circuit-part summary span{display:block;font-size:12px;font-weight:700;color:#52644d}.circuit-part h4{font-size:14px;margin:18px 0 0}.circuit-part .circuit-location{font-size:12px;color:#52644d}.circuit-part button{margin:0 0 18px;min-height:44px}.circuit-part summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}@media(max-width:470px){dialog:has(.circuit-guide){padding:24px 20px}.circuit-guide h3{font-size:23px}dialog:has(.circuit-guide) h2{font-size:30px}}
.playground-entry{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 24px}.playground-entry span{font-size:12px;color:var(--muted)}#playground{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:24px}#playground[hidden],#dailyGame[hidden],.playground-entry[hidden]{display:none!important}.playground-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}.playground-heading h2{font-size:34px;margin:8px 0}.playground-heading p,.breadboard-explainer p{font-size:14px;line-height:1.7;color:#52644d}.playground-heading button{white-space:nowrap}.breadboard-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:20px 0}.breadboard-tools button{border:1px solid var(--line);padding:12px 16px;border-radius:8px;font-size:13px;min-height:44px}.breadboard-tools button[aria-pressed=true]{background:var(--green);color:var(--paper)}.breadboard-tools label{font-size:12px;display:flex;align-items:center;gap:8px}.breadboard-tools select{font:inherit;background:var(--paper);color:var(--ink);border:1px solid var(--line);padding:10px;border-radius:6px;min-height:44px}.breadboard-prompt{font-size:14px;line-height:1.6;min-height:45px}.breadboard-scroll{overflow-x:auto;padding:8px 0 16px}.breadboard-surface{width:600px;height:440px;position:relative;margin:auto}.breadboard-surface svg{width:100%;height:100%;position:absolute;inset:0;pointer-events:none;font-family:var(--sans);font-size:12px;fill:#344e40}.breadboard-hole{position:absolute;transform:translate(-50%,-50%);width:26px;height:26px;border-radius:50%;border:6px solid transparent;background:#4d564d;background-clip:padding-box;touch-action:manipulation}.breadboard-hole.connected{background-color:#d9ab46;box-shadow:0 0 0 2px #d9ab46}.breadboard-hole.occupied{background-color:#aab5a1}.breadboard-hole.chosen,.breadboard-hole:focus-visible{outline:3px solid #234f3e;outline-offset:2px}.breadboard-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.breadboard-actions .primary{width:auto;margin:0}.breadboard-actions button{min-height:44px}.breadboard-status{padding:16px;background:#e7ebdd;border-radius:8px;font-size:14px;line-height:1.7}.breadboard-explainer{display:grid;grid-template-columns:1fr 1fr;gap:32px}.breadboard-explainer h3{font-size:25px;margin:20px 0 10px}.breadboard-explainer summary{cursor:pointer;font-size:14px;padding:12px 0}#breadboardParts{list-style:none;margin:16px 0;padding:0}#breadboardParts li{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);padding:12px 0;font-size:13px}#breadboardParts li>div{flex:1}#breadboardParts span{display:block;font-size:12px;line-height:1.6;margin-top:5px;color:#52644d}#breadboardParts button{padding:10px;min-height:44px}@media(max-width:760px){#playground{padding:18px 12px}.playground-heading{flex-direction:column}.breadboard-explainer{grid-template-columns:1fr;gap:0}.breadboard-scroll:before{content:'Skub til siden for at se hele pladen ↔';display:block;font-size:12px;color:#52644d;margin-bottom:10px}.breadboard-surface{margin:0}.breadboard-tools{gap:6px}.breadboard-tools button{padding:10px 12px}}
