@font-face{font-family:Chain;src:url('assets/number-demi.woff') format('woff');font-display:swap;font-weight:600 900}
:root{--teal:#087e80;--dark:#064f55;--deep:#03494d;--yellow:#ffdf58;--cream:#fff8e8;--muted:#bbe2d9;font-family:Arial,Helvetica,sans-serif;font-size:16px;color:var(--cream);background:var(--teal);color-scheme:light}
*{box-sizing:border-box}body{margin:0;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 70% 20%,#25aaa383,transparent 60%),linear-gradient(135deg,#ffffff03 25%,transparent 25%) -80px 0/160px 160px,linear-gradient(225deg,#ffffff03 25%,transparent 25%) -80px 0/160px 160px,linear-gradient(315deg,#ffffff03 25%,transparent 25%) 0 0/160px 160px,linear-gradient(45deg,#ffffff03 25%,transparent 25%) 0 0/160px 160px,var(--teal)}
button,select{font:inherit}button{cursor:pointer;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible{outline:3px solid white;outline-offset:5px}button:hover:not(:disabled){filter:brightness(1.04)}button:active:not(:disabled){translate:0 2px}button svg{pointer-events:none}svg{width:23px;height:23px;flex-shrink:0;display:block}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Chain,'Trebuchet MS',Arial,sans-serif}p{line-height:1.6}main{width:min(1220px,92%);margin:0 auto;padding:30px 0;flex:1}main:focus{outline:none}footer{padding:20px 12px;text-align:center;font-size:12px;color:#d1ebe0}.site-header{width:min(1400px,93%);margin:0 auto;min-height:90px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dcffee24;gap:16px}.brand{display:flex;gap:13px;align-items:center;background:none;border:0;padding:0;text-align:left;font:700 17px Chain,sans-serif;letter-spacing:1px}.brand small{display:block;font:10px Arial;letter-spacing:1.5px;color:#c3e3d8;margin-top:6px}.brand-icon{display:block;position:relative;color:var(--dark);background:var(--yellow);width:44px;height:44px;border-radius:13px;font:800 30px/47px Chain;text-align:center;letter-spacing:-3px;box-shadow:0 4px 0 #034a5166;flex-shrink:0}.brand-icon span{font:900 20px Arial;position:absolute;right:-6px;bottom:-1px;border:3px solid var(--teal);border-radius:50%;background:#ccebd6;width:26px;height:26px;line-height:20px;letter-spacing:0}.header-actions{display:flex;gap:10px}.icon-button{display:grid;place-items:center;width:44px;height:44px;border:1px solid #cbf9de66;background:#ffffff07;border-radius:14px;font:700 23px Chain;flex-shrink:0}.icon-button:hover{background:#ffffff18}.icon-button[aria-pressed=true]{color:var(--yellow);border-color:var(--yellow)}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:var(--yellow);line-height:1.5;margin:0 0 17px}.welcome{display:grid;grid-template-columns:1.05fr 1fr;gap:70px;align-items:center;min-height:calc(100svh - 220px);padding:15px 0}.welcome h1{font-size:clamp(66px,6.5vw,96px);line-height:.98;letter-spacing:-5px;margin:0 0 25px;color:var(--cream);text-shadow:0 5px 0 #005b6280}.welcome h1 span{color:var(--yellow)}.intro{font-size:18px;line-height:1.6;color:#e6f4e7;margin:0}.sample-chain{display:flex;align-items:center;margin:38px 0 28px;gap:10px;position:relative}.sample-tile{width:68px;height:68px;display:grid;place-items:center;border-radius:17px;background:var(--cream);color:var(--dark);font:700 39px Chain;box-shadow:0 7px 0 #03595d}.sample-chain i{font:700 24px Chain;color:#a6dfcf;font-style:normal}.sample-chain b{font:700 28px Chain;margin:0 4px}.sample-result{border:3px solid var(--yellow);width:80px;height:80px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--yellow);font:700 39px/1 Chain}.sample-result small{font:700 8px Arial;letter-spacing:1px;margin-top:5px}.welcome-note{font-size:13px;color:#cfecdf;display:flex;align-items:center;gap:9px}.welcome-note>span{font:700 20px Chain;color:var(--yellow)}.welcome-note i{font-style:normal;color:#7ad6c3}.mode-panel{background:#005a606e;border:1px solid #d9ffed3d;border-radius:25px;padding:33px;box-shadow:0 18px 35px #004b5d1a}.mode-panel h2{font-size:28px;line-height:1.2;margin:0 0 26px;letter-spacing:-1px}.mode-panel .eyebrow{font-size:10px;color:#b9e8d7;letter-spacing:1.8px;margin-bottom:9px}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.mode-card{border:2px solid #ffffff19;border-radius:17px;background:#fff8e810;position:relative;min-height:149px;display:flex;flex-direction:column;align-items:flex-start;padding:18px;text-align:left;transition:background .18s,transform .18s}.mode-card.active{background:var(--cream);color:var(--dark);border-color:var(--yellow);box-shadow:0 6px 0 #003d4740}.mode-card strong{font:700 17px Chain;margin:11px 0 5px}.mode-card small{font-size:11px;opacity:.7}.op-symbol{font:700 32px/1 Chain;width:43px;height:40px;display:grid;place-items:center;border-radius:10px;background:#ffe27726;color:var(--yellow)}.active .op-symbol{background:#f5dd92;color:#075863}.mode-card .sub{color:#cfbfff;background:#c1b3fe25}.mode-card .mul{color:#ffbd9b;background:#ffc5a226}.mode-card .div{color:#abeacf;background:#b4ffe526}.mode-card.active .sub{color:#7951b9;background:#e1d4fc}.mode-card.active .mul{color:#b4462d;background:#ffd1b7}.mode-card.active .div{color:#176644;background:#c0e4c8}.selected-check{position:absolute;right:17px;top:17px;font-weight:700;font-size:17px;display:none}.active .selected-check{display:block}.btn{min-height:48px;padding:12px 20px;border-radius:12px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:15px;font-weight:700}.btn.primary{background:var(--yellow);color:var(--deep);box-shadow:0 5px 0 #b49b3870;font-family:Chain,Arial}.btn.secondary{background:#dcece0;color:var(--dark);border-color:#a2c1b7}.btn.ghost{background:#00525936;border-color:#c2f4db42}.start-btn{width:100%;margin:27px 0 16px;min-height:59px;justify-content:space-between;font-size:18px;padding:15px 21px}.panel-bottom{display:flex;justify-content:space-between;gap:14px}.text-button{background:none;border:0;color:inherit;font-size:13px;padding:7px 0;display:inline-flex;align-items:center;gap:7px;text-decoration:underline;text-underline-offset:5px}.text-button svg{width:16px;height:16px}.page-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:8px 0 29px}.page-title h1{font-size:40px;line-height:1.1;letter-spacing:-1.6px;margin-bottom:10px}.page-title .eyebrow{margin-bottom:10px}.page-title p:not(.eyebrow){margin:0;color:#cae8df;font-size:14px}.operation-tabs{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #ffffff30;gap:10px;margin-bottom:22px;padding-bottom:20px}.operation-tabs button{border-radius:11px;border:1px solid #d8ffe345;padding:12px;font-weight:700;background:#00626540;font-size:15px}.operation-tabs button span{font:700 23px Chain;margin-right:9px;vertical-align:middle}.operation-tabs button.active{background:var(--yellow);border-color:var(--yellow);color:var(--dark)}.level-summary{display:flex;align-items:center;justify-content:space-between;margin:0 0 20px;font-size:14px;color:#cde8dc}.level-summary strong{font:700 21px Chain;color:var(--cream)}.level-sections{display:grid;gap:20px}.level-section{border-radius:17px;padding:17px 21px 20px;border:1px solid #d4ffeb2d;background:#00566126}.tier-heading{display:flex;align-items:center;gap:10px;margin-bottom:15px}.tier-heading>span{font:700 12px Chain;color:var(--yellow);border:1px solid #ead88a61;border-radius:5px;padding:4px 5px}.tier-heading h2{font-size:17px;margin:0}.tier-heading small{margin-left:auto;color:#b4dfd0;font-size:12px}.level-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:20px}.level-btn{border:2px solid #d3f5e5a6;border-radius:50%;width:56px;height:56px;justify-self:center;background:#057174;font:700 24px/1 Chain;position:relative;box-shadow:0 4px 0 #00545b}.level-btn.done{background:var(--yellow);color:var(--dark);border-color:var(--yellow)}.level-btn small{position:absolute;right:-2px;bottom:-3px;background:var(--dark);border-radius:50%;width:20px;height:20px;color:var(--yellow);font:700 13px/20px Arial}.levels-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:22px;font-size:12px;color:#cde8dc}.game-top{display:flex;justify-content:space-between;align-items:center;min-height:56px}.game-title{display:flex;align-items:center;gap:17px}.game-title h1{font-size:27px;margin:0;line-height:1}.game-title small{font:13px Arial;color:#afd9ca}.mode-chip{border:1px solid #d8ffe845;border-radius:8px;font-size:12px;padding:7px 10px;color:#def0e5}.targets{display:flex;justify-content:center;gap:22px;margin:15px 0 23px}.target{display:flex;flex-direction:column;align-items:center;min-width:92px;position:relative}.target-label{font-size:9px;letter-spacing:1.3px;font-weight:bold;color:#cce8dc}.target strong{width:64px;height:64px;display:grid;place-items:center;font:700 31px Chain;color:var(--dark);background:var(--target);border-radius:50%;box-shadow:0 5px 0 #003d5555;margin:8px 0 11px}.target-state{font-size:10px;color:#c7e5d8}.target.hit strong{box-shadow:0 0 0 4px #e3ffef80,0 6px 0 #003d5555}.target.hit .target-state{color:var(--target);font-weight:700}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 263px;gap:35px;align-items:center;min-height:310px}.board-well{display:grid;place-items:center;min-width:0;min-height:310px;align-self:stretch;background:radial-gradient(ellipse at center,#41a99720,transparent 75%);border:1px solid #d6fff216;border-radius:28px;padding:0}.board{position:relative;aspect-ratio:var(--cols)/var(--rows);width:100%;max-width:100%;--cell:90px}.connections{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.connections line{stroke-width:12;stroke-linecap:round;opacity:.8}.cell{position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;padding:0;width:calc(var(--cell)*.94);height:calc(var(--cell)*.94);border:0;background:none;border-radius:19px;transition:filter .15s}.cell:active:not(:disabled){translate:0 0}.cell:focus-visible{outline-offset:0;outline:3px dashed var(--yellow)}.knob{display:block;width:19%;height:19%;border-radius:6px;background:#6bdec599;box-shadow:0 3px 0 #004e5b66,inset 0 2px 0 #baffd836;border:1px solid #8eedce40}.cell:hover .knob{background:#b4f4dc}.occupied .knob{display:none}.block{position:absolute;inset:8%;display:flex;align-items:center;justify-content:center;background:var(--cream);color:var(--dark);border-radius:19%;box-shadow:0 6px 0 #034a516e,inset 0 -3px 0 #dcd8bd,inset 0 2px 0 white;border:2px solid #fff9e8;transition:background .18s,box-shadow .18s,scale .18s}.block:before{content:'';position:absolute;inset:14%;border:1px solid #00747411;border-radius:50%;pointer-events:none}.number{font:700 clamp(18px,calc(var(--cell)*.34),36px)/1 Chain;letter-spacing:-1px;position:relative;padding-top:5px}.number.long{font-size:clamp(15px,calc(var(--cell)*.27),29px);letter-spacing:-1.7px}.selected .block{background:var(--yellow);border-color:var(--yellow);box-shadow:0 0 0 4px #ffdf5855,0 8px 0 #034a516e;scale:1.06}.matched .block{border-color:var(--chain-color);box-shadow:0 0 0 3px var(--chain-color),0 6px 0 #0041534d}.order{position:absolute;left:-5px;top:-5px;background:#155f64;color:white;border:2px solid #a5cfc1;border-radius:50%;width:20px;height:20px;display:grid;place-items:center;font:700 10px Arial}.order.start{background:var(--yellow);color:var(--dark);border-color:var(--yellow)}.chain-panel{background:#004d576b;border:1px solid #c8f9de29;border-radius:17px;padding:18px;align-self:stretch;display:flex;flex-direction:column;max-height:570px;overflow:auto}.chain-heading{display:flex;justify-content:space-between;align-items:center;font-size:10px;font-weight:bold;letter-spacing:1.3px;color:#c6e5d7;margin-bottom:15px;padding-bottom:14px;border-bottom:1px solid #d9ffe326}.chain-heading #chain-counter{background:#d4ffe516;border-radius:5px;padding:5px 7px;color:var(--yellow);font-size:12px;letter-spacing:1px}#chain-list{flex:1;min-height:110px}.empty-chain{text-align:center;padding:5px 0 6px}.empty-symbol{display:grid;place-items:center;width:47px;height:47px;margin:0 auto 15px;border:1px solid #bbecc347;border-radius:14px;font:700 31px Chain;color:var(--yellow)}.empty-chain strong{font:700 17px Chain;display:block;margin:0 0 8px}.empty-chain p{font-size:13px;line-height:1.6;color:#b6dfd1;margin:0}.singles{font-size:11px;text-align:center;color:#b1d7c9;margin:14px 0 7px}.chain-receipt{background:#dffbe709;border-radius:8px;padding:11px 12px;margin-bottom:9px;border-left:3px solid #dffbe72b}.chain-receipt.correct{border-left-color:var(--chain-color);background:#e0fde614}.receipt-title{display:flex;justify-content:space-between;color:#c5e7d7;font-size:10px;letter-spacing:.3px;font-weight:bold}.correct .receipt-title{color:var(--chain-color)}.chain-receipt p{font-size:12px;line-height:1.5;margin:8px 0 0}.chain-receipt p.equation{font-size:15px;overflow-wrap:anywhere;line-height:1.6}.equation b{color:var(--yellow);white-space:nowrap}.chain-receipt small{font-size:10px;line-height:1.5;display:block;color:#bdd8c9;margin-top:5px}.chain-receipt.invalid{border-left-color:#ffb59f}.invalid .receipt-title{color:#ffd0b3}.play-stats{display:flex;justify-content:space-around;margin:14px 0 16px;border-top:1px solid #dbffe62b;padding-top:14px;gap:12px}.play-stats div{text-align:center}.play-stats strong{font:700 24px Chain;display:block;margin-bottom:4px;font-variant-numeric:tabular-nums}.play-stats span{font-size:10px;color:#b5d9ca}.tools{display:grid;grid-template-columns:1fr 1fr;gap:9px}.btn.small{font-size:11px;padding:9px 8px;gap:5px;min-height:39px;border-color:#dcffe53d;background:#fff6d40a;white-space:nowrap}.btn.small svg{width:16px;height:16px}.btn:disabled{opacity:.35}.btn.hint{grid-column:1/-1;font-size:13px;background:var(--yellow);color:var(--dark);min-height:43px;padding:10px}.btn.hint svg{width:19px;height:19px}.game-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:24px;min-height:38px}.game-bottom p{margin:0;font-size:14px;color:#eef8e7;flex:1}.game-bottom .text-button{font-size:12px;flex-shrink:0}.game-bottom .btn.primary{background:var(--yellow);color:var(--dark)}.order-note{font-size:11px;line-height:1.7;color:#b9dfcf;margin:6px 0 0}.game-bottom p:before{content:'';display:inline-block;width:6px;height:6px;background:var(--yellow);border-radius:50%;margin-right:10px;vertical-align:middle}body[data-screen=game] .site-header{min-height:70px}body[data-screen=game] main{padding:18px 0 8px}body[data-screen=game] footer{padding:13px 12px 16px}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:var(--cream);color:var(--dark);border-radius:11px;padding:14px 21px;max-width:min(90vw,550px);width:max-content;font-size:14px;line-height:1.5;box-shadow:0 8px 25px #003d5777;opacity:0;pointer-events:none;transition:.18s;z-index:50}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{color:var(--dark);background:var(--cream);border:0;border-radius:24px;padding:32px;max-width:610px;width:calc(100% - 32px);max-height:90svh;overflow:auto;box-shadow:0 15px 65px #00272c88}dialog::backdrop{background:#002f39d9;backdrop-filter:blur(5px)}dialog h2{font-size:32px;line-height:1.2;margin:0 28px 16px 0;letter-spacing:-1px}dialog p{font-size:15px;line-height:1.6}.dialog-close{position:absolute;right:14px;top:14px;color:var(--dark);border:0;width:34px;height:34px}.dialog-close svg{width:20px;height:20px}.dialog-lead{color:#466c63}.dialog-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}.dialog-actions .btn{font-size:14px}.help-steps{padding:0;list-style:none;counter-reset:step;display:grid;gap:16px;margin:24px 0}.help-steps li{position:relative;padding-left:39px;font-size:14px;line-height:1.6}.help-steps li:before{counter-increment:step;content:counter(step);position:absolute;left:0;top:0;width:27px;height:27px;background:var(--dark);color:var(--yellow);border-radius:9px;font:700 15px/29px Chain;text-align:center}.help-examples{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:15px;border-radius:12px;background:#e6ecd4;color:#345c50;font-size:14px}.help-examples b{color:var(--dark)}.muted{font-size:12px!important;color:#658172;margin:17px 0 0}.modal-eyebrow{color:#4b8374;font-size:10px;margin:0 0 14px}.win-stats{display:grid;grid-template-columns:repeat(3,1fr);background:#e6edd8;border-radius:13px;padding:16px;margin:22px 0}.win-stats div{text-align:center}.win-stats div+div{border-left:1px solid #064f5521}.win-stats strong{font:700 28px Chain;display:block}.win-stats span{font-size:11px;color:#5b7d6a;display:block;margin-top:5px}.win-equations{display:grid;gap:9px}.win-equations>div{display:flex;align-items:center;gap:13px;background:#ffffff60;border:1px solid #184f5121;border-radius:9px;padding:10px 13px}.win-equations>div>span{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;font-size:12px;font-weight:bold;flex-shrink:0}.win-equations p{margin:0;flex:1;font-size:16px}.win-equations svg{width:19px;height:19px;color:#44836b}.noscript{text-align:center;padding:25px}
@media(min-width:1500px){main{max-width:1350px}.welcome{gap:110px}.welcome h1{font-size:112px}.mode-panel{padding:40px}.mode-card{min-height:172px;padding:22px}.mode-card strong{font-size:20px}.play-layout{grid-template-columns:minmax(0,1fr) 280px}.chain-panel{padding:22px}.target strong{width:75px;height:75px;font-size:36px}}
@media(max-width:1050px){.welcome{gap:35px}.welcome h1{font-size:77px}.sample-chain{gap:8px}.sample-tile{width:53px;height:57px;font-size:32px;border-radius:14px}.sample-result{width:67px;height:67px;font-size:33px}.sample-chain i{font-size:19px}.mode-panel{padding:26px}.mode-card{padding:16px 12px;min-height:140px}.mode-card strong{font-size:15px}.level-grid{gap:9px}.play-layout{gap:20px;grid-template-columns:minmax(0,1fr) 230px}.chain-panel{padding:15px}.chain-receipt p.equation{font-size:14px}.target strong{width:58px;height:58px;font-size:29px}.targets{margin:15px 0 20px}.page-title h1{font-size:34px}}
@media(max-width:760px){.site-header{min-height:76px}.brand{font-size:14px}.brand small{font-size:8px;letter-spacing:1px}.brand-icon{width:38px;height:38px;font-size:27px;line-height:40px}.header-actions{gap:7px}.icon-button{width:39px;height:39px;border-radius:12px}.welcome{grid-template-columns:1fr;min-height:0;gap:27px;max-width:510px;margin:0 auto;padding:2px 0}.welcome h1{font-size:66px;letter-spacing:-3px;line-height:1;margin-bottom:16px}.welcome h1 br{display:none}.welcome-copy .eyebrow{margin-bottom:13px;font-size:10px}.intro{font-size:15px}.sample-chain{position:absolute;display:none}.welcome-note{margin-top:16px;font-size:12px}.welcome-note>span{font-size:18px}.mode-panel{padding:24px}.mode-panel h2{font-size:25px;margin-bottom:22px}.mode-card strong{font-size:16px}.mode-card{min-height:139px;padding:17px}.start-btn{margin-top:23px;min-height:54px}.page-title h1{font-size:29px;letter-spacing:-1px}.page-title .eyebrow{font-size:10px}.page-title p:not(.eyebrow){font-size:13px}.page-title .btn{padding:10px;font-size:12px}.operation-tabs{gap:7px}.operation-tabs button{font-size:11px;padding:9px 5px}.operation-tabs button span{font-size:20px;display:block;margin:0 0 3px}.level-grid{grid-template-columns:repeat(5,1fr);gap:18px}.level-section{padding:16px 14px 20px}.tier-heading small{font-size:10px}.tier-heading h2{font-size:15px}.level-btn{width:53px;height:53px}.game-title{flex-direction:column;gap:8px}.game-title h1{font-size:24px}.mode-chip{font-size:11px;padding:5px 9px}.game-top .back-levels{padding:9px 10px;font-size:12px;min-height:40px}.game-top .back-levels svg{width:18px}.play-layout{grid-template-columns:1fr;gap:18px;min-height:0}.board-well{min-height:0;border-radius:18px}.chain-panel{max-height:none;display:grid;grid-template-columns:minmax(0,1fr) 174px;gap:12px 15px;align-items:start;padding:16px}.chain-heading{grid-column:1/-1;margin:0;padding-bottom:10px}.chain-panel #chain-list{grid-column:1;grid-row:2/4;min-height:0}.tools{grid-column:2;grid-row:3}.play-stats{grid-column:2;grid-row:2;margin:0;border-top:0;padding-top:3px;padding-bottom:7px}.play-stats strong{font-size:23px}.empty-chain{padding:0;text-align:left}.empty-chain .empty-symbol{display:none}.empty-chain strong{font-size:16px}.empty-chain p{font-size:12px}.singles{text-align:left;font-size:10px}.targets{gap:13px;margin:18px 0}.target{min-width:63px}.target strong{width:53px;height:53px;font-size:26px;margin:6px 0 9px}.target-label{font-size:8px;letter-spacing:1px}.target-state{font-size:9px}.game-bottom{margin-top:16px;gap:12px;flex-wrap:wrap}.game-bottom p{font-size:13px;min-width:70%}.order-note{font-size:10px}.chain-receipt{padding:9px}.chain-receipt p.equation{font-size:13px}.chain-receipt small{font-size:9px}body[data-screen=game] main{padding-top:14px}footer{font-size:11px}}
@media(max-width:420px){main{width:92%;padding:23px 0}.site-header{width:92%;min-height:71px}.brand{font-size:12px;gap:8px;letter-spacing:.4px}.brand small{font-size:7px;letter-spacing:.5px}.brand-icon{width:32px;height:32px;border-radius:9px;font-size:23px;line-height:35px}.brand-icon span{width:22px;height:22px;line-height:17px;font-size:16px}.header-actions{gap:5px}.icon-button{width:34px;height:34px;border-radius:10px;font-size:20px}.icon-button svg{width:18px;height:18px}.welcome h1{font-size:55px;letter-spacing:-2.7px}.welcome h1 br{display:block}.welcome-copy .eyebrow{font-size:9px;letter-spacing:1.4px}.welcome-note{font-size:10px;gap:7px}.mode-panel{padding:20px}.mode-panel h2{font-size:23px}.mode-grid{gap:11px}.mode-card{padding:13px 10px;min-height:128px}.mode-card strong{font-size:14px;letter-spacing:-.3px}.mode-card small{font-size:10px}.op-symbol{width:36px;height:35px;font-size:28px}.selected-check{right:10px;top:12px;font-size:14px}.mode-panel .eyebrow{font-size:9px}.start-btn{min-height:51px;font-size:16px}.panel-bottom .text-button{font-size:12px}.page-title{gap:10px;margin-top:0}.page-title h1{font-size:26px}.page-title p:not(.eyebrow){font-size:12px}.page-title .btn{font-size:0;min-width:38px;padding:9px}.page-title .btn svg{width:18px}.operation-tabs button{font-size:10px;letter-spacing:-.3px}.level-summary{font-size:12px}.level-grid{gap:15px 8px}.level-btn{width:44px;height:44px;font-size:21px}.tier-heading{gap:7px}.tier-heading h2{font-size:13px}.tier-heading small{font-size:9px}.game-top .back-levels span{display:none}.game-top .back-levels{padding:7px;min-height:35px}.game-top{min-height:52px}.game-title h1{font-size:23px}.targets{gap:8px}.target{min-width:62px}.target strong{width:49px;height:49px;font-size:25px}.target-state{font-size:8px}.chain-panel{grid-template-columns:1fr;padding:14px;gap:9px}.chain-heading{grid-column:1}.chain-panel #chain-list{grid-row:2;grid-column:1;display:flex;flex-wrap:wrap;gap:8px}.chain-receipt{flex:1 1 44%;margin:0}.empty-chain p{font-size:12px}.empty-chain strong{font-size:14px}.singles{width:100%;margin:0}.play-stats{grid-column:1;grid-row:3;justify-content:flex-start;gap:25px;border-top:1px solid #ddffeb26;padding-top:10px;margin-top:1px}.play-stats div{display:flex;align-items:center;gap:7px}.play-stats strong{font-size:20px;margin:0}.tools{grid-column:1;grid-row:4;grid-template-columns:1fr 1fr 1fr;gap:6px}.tools .btn.hint{grid-column:3;font-size:10px;padding:8px 5px;min-height:37px;gap:4px}.tools .btn.hint svg{width:15px;height:15px}.tools .btn.small{font-size:9px;padding:8px 4px;min-height:37px}.tools .btn.small svg{width:13px;height:13px}.order{width:17px;height:17px;font-size:9px;left:-4px;top:-4px;border-width:1px}.number{letter-spacing:-.5px}.block{border-width:1px}.game-bottom .text-button{font-size:11px}.game-bottom p{font-size:12px}.help-examples{font-size:11px;padding:13px;gap:10px}dialog{padding:25px 21px;border-radius:19px}dialog h2{font-size:26px}.help-steps li{font-size:12px}.dialog-actions .btn{font-size:12px}.win-equations p{font-size:13px}.win-equations>div{padding:10px;gap:9px}.win-stats strong{font-size:24px}.win-stats span{font-size:10px}.dialog-lead{font-size:13px}dialog p{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

@media(min-width:761px){.chain-panel{height:var(--play-height,470px);max-height:none;overflow:hidden}.chain-heading,.play-stats,.tools{flex-shrink:0}#chain-list{min-height:0;overflow:auto}.board-well{height:var(--play-height,470px);min-height:310px}}

#chain-list{scrollbar-width:thin;scrollbar-color:#6cb6a1 transparent}

@media(min-width:761px) and (max-height:850px){.empty-symbol{display:none}}
