:root{font-family:Arial Rounded MT Bold,Trebuchet MS,Microsoft JhengHei,system-ui,sans-serif;color:#192a3d;background:#dceef4;font-synthesis:none;font-weight:800;--ink: #192a3d;--yellow: #ffcf32;--blue: #48baf0;--red: #f26743}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:var(--ink);cursor:pointer;border:3px solid var(--ink);border-radius:12px;background:#fffdf5;min-width:44px;min-height:44px;padding:7px 13px;box-shadow:0 4px 0 var(--ink);transition:transform .1s,box-shadow .1s,background .1s}@media(hover:hover)and (pointer:fine){button:hover:not(:disabled){background:#ffedaa}}button:active:not(:disabled){transform:translateY(4px);box-shadow:0 0 0 var(--ink)}button:focus-visible,a:focus-visible{outline:4px solid #008cd0;outline-offset:4px}button:disabled{color:#718491;background:#d7e1e4;border-color:#8396a0;box-shadow:0 3px #8396a0;cursor:default}[hidden]{display:none!important}main{height:100dvh;height:100svh;max-width:1180px;margin:auto;padding:14px 28px calc(14px + env(safe-area-inset-bottom));display:grid;grid-template-rows:54px minmax(0,1fr);gap:10px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);white-space:nowrap}.brand-icon{width:36px;height:38px;transform:rotate(-7deg);fill:var(--yellow);stroke:var(--ink);stroke-width:3;stroke-linejoin:round}.brand strong{font-size:25px;letter-spacing:-1.2px;font-weight:1000}.brand small{font-size:11px;display:block;letter-spacing:3px;margin-top:0}.hud{display:flex;align-items:center;gap:8px}.hud button{font-size:13px;padding:7px 11px}.hud #menu{background:var(--blue)}#menu b{display:inline-block;background:var(--ink);color:#fff;min-width:23px;border-radius:5px;padding:1px 3px;margin-left:5px}#lit{background:var(--yellow);border:3px solid var(--ink);border-radius:10px;padding:10px 13px;white-space:nowrap;font-size:14px;font-variant-numeric:tabular-nums}.icon{font-size:22px;line-height:1;vertical-align:-1px}.game{min-height:0;display:grid;grid-template-rows:48px minmax(0,1fr) 50px auto;gap:8px}.objective{display:flex;align-items:center;justify-content:center;gap:18px}.level-title{display:flex;align-items:center;gap:9px;white-space:nowrap}.level-title>span{font-size:11px;background:var(--ink);color:#fff;padding:5px 7px;transform:rotate(-4deg);border-radius:4px}h1{margin:0;font-size:21px;letter-spacing:-.5px}#hint{font-size:13px;font-weight:700;margin:0;line-height:1.5;color:#3d5b70}.board{min-height:0;position:relative;display:flex;align-items:center;justify-content:center;background:#f7fbf9;border:3px solid var(--ink);border-radius:25px;box-shadow:6px 6px #192a3d;overflow:hidden}.stage-label{position:absolute;top:15px;left:20px;font-size:10px;letter-spacing:2px;color:#637e8e;pointer-events:none}.stage-corner{position:absolute;bottom:15px;right:20px;font-size:10px;color:#637e8e;pointer-events:none}canvas{display:block;touch-action:none;-webkit-user-select:none;user-select:none;flex:none}.feedback{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:0 4px}#status{margin:0;font-size:13px;font-weight:800;text-align:center;line-height:1.4}#status.error{color:#b33725;animation:notice .16s ease-out}#status.ok{color:#147d64}#remove{background:var(--red);white-space:nowrap;font-size:13px;padding:5px 12px;min-height:44px}.tray{position:relative;background:var(--blue);border:3px solid var(--ink);border-radius:18px;box-shadow:0 5px 0 var(--ink);padding:12px 16px 15px;min-width:0}.tray-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 10px}.tray h2{font-size:14px;margin:0;letter-spacing:1px}.tray-heading>span{font-size:11px;font-weight:800}#wires{display:grid;grid-template-columns:repeat(var(--cards),minmax(0,136px));justify-content:center;gap:10px}.wire{position:relative;min-width:0;display:grid;grid-template-columns:42px auto;column-gap:8px;align-items:center;padding:9px 12px;text-align:left;min-height:70px;background:#fffdf5;box-shadow:0 4px 0 var(--ink)}.wire svg{width:42px;height:28px;grid-row:span 2;overflow:visible}.wire strong{font-size:22px;line-height:1.1;font-weight:1000}.wire small{font-size:11px;white-space:nowrap}.wire .check{display:none;position:absolute;right:-7px;top:-9px;border:2px solid var(--ink);border-radius:50%;width:22px;height:22px;background:var(--ink);color:#fff;font-size:14px;text-align:center;line-height:18px}.wire.selected{background:var(--yellow);transform:translateY(-4px);box-shadow:0 8px 0 var(--ink)}.wire.selected .check{display:block}.wire.used{background:#b2c5cf;color:#465f70;border-color:#496779;box-shadow:0 4px #496779}.wire.used svg{opacity:.45}.wire.used.selected{border-color:var(--ink);box-shadow:0 8px 0 var(--ink)}.wire.selected:active{transform:translateY(0);box-shadow:0 4px 0 var(--ink)}dialog{border:4px solid var(--ink);border-radius:22px;background:#f7fbf9;color:var(--ink);box-shadow:8px 8px 0 var(--ink);padding:24px;width:min(500px,92vw);max-height:90svh}dialog::backdrop{background:#192a3d88}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px}dialog h2{font-size:23px;margin:0}.dialog-head button{padding:5px 10px}dialog p{font-size:13px;color:#3d5b70;line-height:1.6}#level-list{display:grid;gap:10px;margin-top:20px}#level-list button{display:flex;align-items:center;gap:13px;text-align:left;min-height:50px}#level-list span{background:var(--blue);border:2px solid var(--ink);border-radius:5px;padding:2px 5px;font-size:13px}#level-list strong{flex:1;font-size:15px}#level-list small{font-size:11px}.note{border-top:2px solid #c6d8df;padding-top:14px}#success{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(340px,88%);padding:23px 20px 22px;text-align:center;border:4px solid var(--ink);border-radius:22px;box-shadow:8px 8px 0 var(--ink);background:#fffdf5;z-index:3;animation:card-in .18s ease-out}.success-mark{display:inline-grid;place-items:center;width:54px;height:54px;border:3px solid var(--ink);border-radius:17px;background:var(--yellow);font-size:35px;transform:rotate(-8deg);box-shadow:3px 3px 0 var(--ink)}#success h2{margin:16px 0 8px;font-size:29px;letter-spacing:-1px}#success p{font-size:13px;margin:0 0 18px;color:#3d5b70}#next{background:var(--yellow);min-width:160px;font-size:17px}.quiet{display:block;margin:12px auto 0;font-size:13px;min-height:44px;padding:5px 14px;background:#e3f2f7}#burst{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;display:none;z-index:2}#burst i{position:absolute;top:50%;left:50%;width:13px;height:20px;background:var(--yellow);border:2px solid var(--ink);--x: 100px;--y: -100px;animation:confetti .6s ease-out forwards}#burst i:nth-child(2n){background:var(--blue)}#burst i:nth-child(3n){background:var(--red)}#burst i:nth-child(1){--x: -150px;--y: -120px}#burst i:nth-child(2){--x: 160px;--y: -140px}#burst i:nth-child(3){--x: -110px;--y: 120px}#burst i:nth-child(4){--x: 140px;--y: 110px}#burst i:nth-child(5){--x: -190px;--y: 5px}#burst i:nth-child(6){--x: 190px;--y: -10px}.board.complete #burst{display:block}@keyframes confetti{0%{transform:translate(-50%,-50%) rotate(0);opacity:0}15%{opacity:1}to{transform:translate(var(--x),var(--y)) rotate(160deg);opacity:0}}@keyframes card-in{0%{opacity:0;transform:translate(-50%,-50%) scale(.88)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@keyframes notice{0%{transform:translateY(3px);opacity:.3}to{transform:translateY(0);opacity:1}}@media(max-width:760px){main{padding:8px 12px calc(12px + env(safe-area-inset-bottom));grid-template-rows:104px minmax(0,1fr);gap:4px}.topbar{flex-direction:column;gap:7px;align-items:stretch}.brand{justify-content:center;gap:7px;height:43px}.brand strong{font-size:22px;letter-spacing:-1px}.brand small{display:none}.brand-icon{width:25px;height:29px}.hud{justify-content:space-between;gap:6px;height:48px}.hud button{padding:6px;flex:none;font-size:13px;border-radius:10px;min-width:44px}#lit{padding:10px 7px;font-size:12px;flex:1;text-align:center;border-radius:10px}#menu{min-width:72px}#menu b{font-size:12px;min-width:18px;padding:1px 2px;margin-left:3px}.control-label{display:none}.game{grid-template-rows:61px minmax(0,1fr) 48px auto;gap:7px}.objective{flex-direction:column;gap:3px;justify-content:center}h1{font-size:20px}.level-title>span{font-size:10px;padding:4px 6px}#hint{font-size:12px;text-align:center;max-width:100%;line-height:1.4}.board{border-radius:19px;box-shadow:4px 4px 0 var(--ink)}.stage-label{top:12px;left:12px;font-size:9px;letter-spacing:1px}.stage-corner{display:none}.feedback{gap:7px;padding:0}#status{font-size:12px;flex:1}#remove{font-size:12px;padding:5px 8px}.tray{padding:10px 10px 12px;border-radius:16px}.tray-heading{margin-bottom:9px}.tray h2{font-size:13px}.tray-heading>span{font-size:10px}#wires{grid-template-columns:repeat(min(var(--cards),3),minmax(0,1fr));gap:8px}.wire{padding:7px 6px;grid-template-columns:29px auto;gap:0 5px;min-height:61px;border-radius:10px}.wire svg{width:29px}.wire strong{font-size:20px}.wire small{font-size:10px}.wire .check{width:20px;height:20px;top:-7px;right:-5px;font-size:12px;line-height:16px}#success{padding:20px 16px}#success h2{font-size:27px;margin-top:12px}#success p{font-size:12px}.success-mark{width:48px;height:48px;font-size:30px}.quiet{margin-top:10px}dialog{padding:18px}dialog h2{font-size:20px}}@media(max-height:650px)and (min-width:761px){main{grid-template-rows:48px minmax(0,1fr);padding-top:6px;padding-bottom:10px;gap:6px}.game{grid-template-rows:35px minmax(0,1fr) 44px auto;gap:5px}.tray{padding:8px 12px 10px}.tray-heading{margin-bottom:7px}.wire{min-height:58px;padding:5px 10px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.board.complete #burst{display:none}}button,.hud button,.quiet,#remove{font-size:16px}.brand small,.level-title>span,#menu b,#lit,.tray-heading>span,dialog p,#level-list span,#level-list small,#success p{font-size:14px}h1{font-size:26px}#hint,#status{font-size:17px}#hint{line-height:1.4}.game{grid-template-rows:56px minmax(0,1fr) minmax(56px,auto) auto}.feedback{min-height:56px}.status-copy{min-width:0;text-align:center}#length-help{font-size:16px;line-height:1.4;margin:4px 0;color:#3d5b70;max-width:620px}.tray h2{font-size:16px}#wires{grid-template-columns:repeat(var(--cards),minmax(0,160px))}.wire{grid-template-columns:28px 1fr;gap:3px 6px;min-height:104px;padding:9px 10px}.wire svg{width:28px;height:24px;grid-row:1}.wire-name{font-size:17px;font-weight:900;line-height:1.25}.wire-length{grid-column:1/-1;white-space:nowrap;font-size:14px;line-height:1.2;text-align:center}.wire strong{font-size:25px}.wire small{grid-column:1/-1;text-align:center;font-size:14px;line-height:1.3}#level-list strong{font-size:17px}@media(max-width:760px){main{padding:6px 10px calc(10px + env(safe-area-inset-bottom));grid-template-rows:90px minmax(0,1fr)}.brand{height:34px}.brand strong{font-size:22px}.brand-icon{height:26px}.topbar{gap:5px}.hud{gap:5px;height:46px}.hud button{font-size:16px;padding:5px}.hud #menu{min-width:73px}#menu b{font-size:14px}#lit{font-size:14px;padding:9px 5px}.hud #sound{min-width:44px}.game{grid-template-rows:65px minmax(0,1fr) minmax(60px,auto) auto;gap:6px}h1{font-size:23px}.level-title>span{font-size:14px}#hint{font-size:16px;line-height:1.35}.objective{gap:4px}#status{font-size:16px;line-height:1.35}.feedback{min-height:60px;gap:6px}#remove{font-size:16px;padding:5px 7px}.tray{padding:8px 8px 10px}.tray-heading{margin-bottom:9px}.tray h2{font-size:16px;letter-spacing:0}.tray-heading>span{font-size:14px}#wires{grid-template-columns:repeat(min(var(--cards),3),minmax(0,1fr));gap:8px}.wire{min-height:99px;padding:7px 5px;grid-template-columns:22px 1fr;gap:3px 3px}.wire svg{width:22px;height:23px}.wire-name{font-size:16px}.wire-length{font-size:14px}.wire strong{font-size:24px}.wire small{font-size:14px}#success{padding:16px 12px;max-height:96%;overflow:auto}#success h2{font-size:26px;margin:10px 0 6px}#success p{font-size:14px;margin-bottom:12px}.success-mark{width:40px;height:40px;font-size:28px}.quiet{font-size:16px;margin-top:8px}dialog h2{font-size:23px}#level-list,#level-list button{gap:9px}#level-list strong{font-size:16px}}#color-help{font-size:16px;line-height:1.4;margin:4px 0;color:#3d5b70}.wire{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px}.wire-length{display:flex;align-items:baseline;justify-content:center;gap:4px;width:100%}.wire-name{font-size:17px}.wire-detail{display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}.wire-detail svg{width:24px;height:24px;flex:none}.wire-detail small{display:inline-block}@media(max-width:760px){.wire{gap:8px}.wire-name{font-size:16px}.wire-detail{gap:4px}.wire-detail svg{width:20px;height:22px}}@media(max-width:760px){#wires{grid-template-columns:repeat(var(--columns-mobile),minmax(0,1fr))}}.brand-title{display:inline-flex;align-items:baseline;gap:0}.brand .brand-title small{display:inline;font-size:14px;letter-spacing:0;margin:0}.brand-divider{font-size:16px;font-weight:800}.hud{flex-shrink:0}dialog[open]{display:flex;flex-direction:column;overflow:hidden}.dialog-head{flex-shrink:0}#level-list{overflow-y:auto;overscroll-behavior:contain;padding:4px 8px 10px 2px;min-height:0}#level-list button{flex-shrink:0}#level-list small{white-space:nowrap}dialog .note{flex-shrink:0;margin-bottom:0}.game{grid-template-rows:48px 44px minmax(0,1fr) 50px auto}#challenge{position:relative;z-index:5;min-width:0}#challenge summary{height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 10px;border:3px solid var(--ink);border-radius:11px;background:#fffdf5;cursor:pointer;font-size:14px;list-style:none;box-shadow:0 3px 0 var(--ink)}#challenge summary::-webkit-details-marker{display:none}#challenge summary:focus-visible{outline:4px solid #008cd0;outline-offset:3px}.usage{display:flex;gap:12px;font-variant-numeric:tabular-nums;white-space:nowrap}.usage b{display:inline-block;min-width:2ch;text-align:right;font-size:16px}#used-length{min-width:4ch}#rating-badge{white-space:nowrap;font-size:14px}.challenge-copy{position:absolute;top:48px;left:0;right:0;padding:12px;border:3px solid var(--ink);border-radius:12px;background:#fffdf5;box-shadow:4px 4px 0 var(--ink);font-size:16px}.challenge-copy p{margin:6px 0;line-height:1.4}.challenge-copy p:has(>span){display:flex;justify-content:space-between;gap:12px}.challenge-copy span{flex:none;font-size:14px}#challenge-state{font-size:14px;color:#3d5b70;border-top:2px solid #c6d8df;padding-top:8px}#rating-intro{background:#ffedaa;border-radius:6px;padding:8px}#view-result{white-space:nowrap;font-size:16px;padding:5px 9px;background:var(--yellow)}.result-stars{display:flex;justify-content:center;gap:8px;font-size:40px;line-height:1;color:#becbd1;-webkit-text-stroke:2px var(--ink)}.result-stars .earned{color:var(--yellow);animation:star-pop .18s ease-out both;animation-delay:calc(var(--i) * 70ms)}@keyframes star-pop{0%{transform:scale(.6) rotate(-12deg)}to{transform:scale(1) rotate(0)}}#success{padding:18px;max-height:calc(100% - 12px);overflow-y:auto}#success h2{margin:8px 0;font-size:26px}#success p{margin:5px 0;font-size:14px;line-height:1.35}#result-usage{font-variant-numeric:tabular-nums;font-weight:900}#result-goals{text-align:left;background:#edf4f4;border-radius:8px;padding:8px;margin:10px 0}#success #next{margin-top:4px;font-size:17px}.result-secondary{display:flex;justify-content:center;gap:10px;margin-top:8px}.result-secondary .quiet{margin:0;font-size:16px}#level-list small{display:flex;flex-direction:column;gap:2px;align-items:flex-end}#level-list .menu-stars{background:transparent;border:0;padding:0;color:#a66300;font-size:21px;letter-spacing:2px}#level-list .level-state{background:transparent;border:0;padding:0;font-size:14px}#level-list button:disabled .menu-stars{color:#718491}@media(max-width:760px){.game{grid-template-rows:65px 44px minmax(0,1fr) minmax(56px,auto) auto}#challenge summary{gap:5px;padding:5px 8px}.usage{gap:8px}.challenge-copy{font-size:16px}.challenge-copy p:has(>span){flex-wrap:wrap;gap:3px}#success{padding:12px 10px}.result-stars{font-size:34px}#success h2{font-size:24px}#view-result{font-size:14px}}@media(min-width:600px)and (max-height:600px)and (orientation:landscape){main{padding:6px 14px 10px;grid-template-rows:48px minmax(0,1fr);gap:8px}.brand strong{font-size:22px}.brand-icon{width:28px;height:32px}.brand{gap:6px}.hud{gap:5px}.hud button{font-size:16px;padding:5px 8px}.game{grid-template-columns:minmax(0,1fr) 270px;grid-template-rows:44px minmax(0,1fr) 54px;gap:8px 12px}.objective{grid-column:1;grid-row:1;gap:10px}#hint{font-size:14px}h1{font-size:22px}#challenge{grid-column:2;grid-row:1}#challenge summary{padding:4px 6px;gap:4px}.usage{gap:5px}.board{grid-column:1;grid-row:2/4}.tray{grid-column:2;grid-row:2;align-self:start;padding:9px}.tray-heading{margin-bottom:8px}.tray h2,.tray-heading>span{font-size:14px}#wires{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.wire{min-height:82px;padding:6px;gap:7px}.wire-name{font-size:16px}.wire strong{font-size:24px}.wire-detail{gap:3px}.wire-detail svg{width:19px}.wire small{font-size:14px}.feedback{grid-column:2;grid-row:3;min-height:0;gap:6px}#status{font-size:14px;line-height:1.25}#remove,#view-result{font-size:14px;padding:4px 5px}#success{max-width:96%}}@media(prefers-reduced-motion:reduce){.result-stars .earned{animation:none}}#success{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:25;width:min(420px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100svh - 32px)}#rating-badge{min-width:3em;text-align:right}@media(max-width:760px){#success{padding:16px 12px}}@media(min-width:600px)and (max-height:600px)and (orientation:landscape){.challenge-copy{left:auto;right:calc(100% + 12px);top:0;width:min(440px,calc(100vw - 310px))}}@media(min-width:600px)and (max-height:600px)and (orientation:landscape){.feedback{position:relative}#color-help,#length-help{position:absolute;right:0;bottom:calc(100% + 8px);width:270px;padding:8px;border:2px solid var(--ink);border-radius:9px;background:#fffdf5;font-size:14px;line-height:1.35}}@media(max-width:760px)and (orientation:portrait){main{padding:max(4px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));grid-template-rows:74px minmax(0,1fr);gap:4px}.topbar{gap:2px}.brand{height:26px}.brand strong{font-size:22px}.brand-icon{height:24px}.hud{height:44px}.game{grid-template-rows:auto 44px minmax(0,1fr) 44px auto;gap:6px}.objective{gap:2px;padding:2px 0}h1{font-size:22px}#hint{font-size:16px;line-height:1.3}.board{border-radius:16px;box-shadow:3px 3px 0 var(--ink)}.feedback{min-height:44px;position:relative}#status{margin:0;font-size:16px;line-height:1.25}#color-help,#length-help{position:absolute;left:0;right:0;bottom:calc(100% + 8px);z-index:6;margin:0;padding:8px;border:2px solid var(--ink);border-radius:9px;background:#fffdf5;font-size:16px;line-height:1.35;pointer-events:none}.tray{padding:6px 7px 9px;border-radius:14px}.tray-heading{margin-bottom:7px}.tray h2{font-size:16px}#wires{gap:8px}.wire{min-height:64px;padding:5px;gap:2px}.wire-length{gap:3px}.wire-name{font-size:16px}.wire strong{font-size:24px}.wire-detail{gap:3px}.wire-detail svg{width:24px;height:19px}.wire small{font-size:14px}}@media(min-width:600px)and (max-width:760px)and (orientation:landscape){main{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}.topbar{flex-direction:row;gap:8px}.brand{justify-content:flex-start;height:auto}.brand-title{display:block}.brand strong{font-size:20px}.brand-divider,.brand small{display:none}.hud{height:44px;gap:4px}#lit{padding:9px 5px}.game{grid-template-columns:minmax(0,1fr) 240px}.objective{flex-direction:row;gap:7px}#hint{display:none}.challenge-copy{width:min(380px,calc(100vw - 270px))}}@media(min-width:600px)and (max-height:430px)and (orientation:landscape){.game{position:relative}.objective{display:none}.board{grid-row:1 / 4}.tray{padding:6px}.tray-heading{margin-bottom:6px}#wires{gap:7px}.wire{min-height:58px;padding:3px;gap:0}.wire-detail svg{height:18px}.wire strong{font-size:24px}.brand .brand-title small{display:none}}.goal-toggle{display:inline-flex;align-items:center;gap:5px;flex:none;font-size:16px}.goal-chevron{width:30px;height:30px;padding:2px;border:2px solid var(--ink);border-radius:7px;background:var(--yellow);fill:var(--ink);flex:none;transition:transform .12s}#challenge[open] .goal-chevron{transform:rotate(180deg)}.stock-compact{display:none}main{height:100dvh}@media(max-width:760px)and (orientation:portrait){#wires{grid-template-columns:repeat(var(--cards),minmax(0,1fr));gap:6px}.tray{padding:5px 5px 8px}.tray-heading{margin-bottom:6px}.wire{min-width:0;min-height:88px;padding:4px 2px;gap:1px}.wire-length{flex-direction:column;align-items:center;gap:0}.wire-name{font-size:16px;line-height:1.1}.wire strong{font-size:26px;line-height:1.15}.wire-detail{gap:2px}.wire-detail svg{width:23px;height:20px}.wire small{font-size:14px}.stock-full{display:none}.stock-compact{display:inline}#challenge summary{padding:3px 5px;gap:3px}.usage{gap:5px}}@media(max-width:760px)and (max-height:760px)and (orientation:portrait){main{grid-template-rows:44px minmax(0,1fr)}.topbar>.brand{display:none}}@media(min-width:600px)and (max-height:600px)and (orientation:landscape){#challenge summary{padding:3px;gap:2px}.goal-toggle,.usage{gap:2px}#rating-badge{min-width:0}}@media(min-width:600px)and (max-width:760px)and (orientation:landscape){.goal-toggle{font-size:0;gap:0}}#wires{touch-action:manipulation}.wire{touch-action:manipulation;user-select:none;-webkit-user-select:none}#success .close-result{position:absolute;top:10px;right:10px;width:44px;height:44px;padding:0;font-size:30px;line-height:1;z-index:1}#success .result-stars{margin-top:32px}
