@font-face{font-family:Mark;src:url(assets/medium.otf);font-weight:400 600}@font-face{font-family:Mark;src:url(assets/heavy.otf);font-weight:700 950}*{box-sizing:border-box}body{margin:0;background:#f3f1fa;color:#24212f;font-family:Mark,system-ui,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #6355fd;outline-offset:4px}button:disabled{cursor:default}button svg{width:22px;height:22px;fill:currentColor}button{touch-action:manipulation}[hidden]{display:none!important}.site-head{max-width:1240px;margin:auto;padding:24px 22px;display:flex;align-items:center;gap:24px}.brand{font-size:32px;font-weight:950;letter-spacing:-1.8px;color:#24212f;text-decoration:none}.brand span{color:#4d55f7}.demo-tag{font-size:10px;font-weight:800;color:#807691;letter-spacing:1.3px}.about{margin-left:auto;border:0;background:none;font-size:12px;font-weight:800;display:flex;align-items:center;gap:10px}.about span{background:#e5e1f4;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;color:#6254df}main{max-width:1240px;margin:auto;padding:0 20px 22px}.game{border-radius:25px;overflow:hidden;border:1px solid #dcd6ee;box-shadow:0 16px 60px #7162ad16;background:#efecfb}.scene{position:relative;aspect-ratio:1.8;isolation:isolate;overflow:hidden;background:#bba4ee}.landscape{position:absolute;inset:0;background:url(assets/canyon.webp) center/100% 100%;z-index:-3}.scene::after{content:'';position:absolute;inset:0;background:linear-gradient(#5344a33d,transparent 35%,transparent 80%,#f4efff55);pointer-events:none;z-index:-1}.headline{position:absolute;left:3.2%;top:5%;color:white;text-shadow:0 2px 15px #57438a35}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:900;color:#6551ec}.headline .eyebrow{color:#f6f1ffb5}.headline h1{font-size:clamp(26px,4.6vw,54px);letter-spacing:-1.8px;line-height:1.1;margin:10px 0 9px}.headline p{font-size:clamp(11px,1.4vw,16px);margin:0}.hud{position:absolute;right:2.7%;top:5%;display:flex;align-items:center;gap:8px}.hud>span{padding:12px 17px;background:#ffffffeb;border-radius:16px;color:#3f32a1;font-weight:900;font-size:14px;box-shadow:0 3px 0 #b7a4dd}.hud>button{border:0;border-radius:13px;width:44px;height:44px;background:#4d55f7;color:white;display:grid;place-items:center;box-shadow:0 3px 0 #403ab0}.hud>button:hover,.primary:hover{background:#b4ff42;color:#24212f}.start-number,.goal-number{position:absolute;text-align:center;filter:drop-shadow(0 5px 4px #50357535)}.start-number{left:5%;top:57%}.goal-number{right:8%;top:25%}.start-number b,.goal-number b{display:block;background:linear-gradient(140deg,#fff,#e7ddfa);border:2px solid #fffc;color:#4c42cd;border-radius:20px;font-size:clamp(26px,4vw,46px);padding:8px 19px;box-shadow:0 5px 0 #a194c4}.start-number small,.goal-number small{font-size:9px;letter-spacing:1.8px;font-weight:900;display:block;margin-bottom:6px;color:#fff}.bridge{position:absolute;left:28%;right:26%;top:55%;height:14%;display:flex;gap:9px;perspective:900px;align-items:flex-start}.socket{position:relative;min-width:0;flex:1;height:73%;border:2px dashed #f8f4ffb5;border-radius:16px;background:#5e47984d;transform:rotateX(24deg);box-shadow:0 10px 0 #5e47866b,inset 0 2px 10px #40266830;color:#fff9;font-weight:900;font-size:22px;display:grid;place-items:center;transition:background .2s,transform .2s}.socket::after{content:'';position:absolute;bottom:-17px;width:14px;height:8px;background:#4f397575;border-radius:4px}.socket.filled{border:3px solid #fff;background:linear-gradient(135deg,#fff,#e7def6);box-shadow:0 9px 0 #9a88bb,0 17px 15px #49376b40;color:#4d45c6;font-size:clamp(19px,3.4vw,36px);text-shadow:0 2px white}.socket.filled::before{content:'';position:absolute;left:12%;right:12%;height:65%;top:17%;background:#eeebff;border-radius:9px;z-index:-1}.socket.drag-over{transform:rotateX(24deg) translateY(-7px);background:#b9f972a1;border-color:#c9ff76}.socket.passed{border-color:#b4ff42}.socket.passed::after{background:#b4ff42;box-shadow:0 0 15px #b4ff42}.socket:disabled{opacity:1}.robot{position:absolute;width:15%;left:18%;top:48%;transform:translate(-50%,-50%);z-index:3;pointer-events:none}.robot-body{position:relative;filter:drop-shadow(0 4px 5px #55377f50);transform:rotate(-7deg);animation:idle 3s ease-in-out infinite}.robot img{width:100%;display:block}.eyes{position:absolute;left:35%;top:45%;width:36%;height:20%;display:flex;gap:16%;align-items:center;justify-content:center;transform:rotate(0deg)}.eyes i{background:#fff;width:25%;height:65%;border-radius:25%;box-shadow:0 0 8px #ffffff55;animation:blink 6s infinite}.robot.error .eyes i{background:#ff526d}.robot-shadow{position:absolute;bottom:0;left:20%;width:67%;height:8%;border-radius:50%;background:#4c347c36;filter:blur(3px)}.number-bubble{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);background:#fff;color:#4d45c6;min-width:42px;height:35px;padding:7px 12px;border-radius:12px;font-size:18px;text-align:center;font-weight:900;box-shadow:0 4px 0 #c9bbe8;z-index:4}.robot.walking .robot-body{animation:walk .35s ease-in-out infinite}.robot.happy .robot-body{animation:celebrate .55s ease-in-out 2}.robot.error .robot-body{animation:shake .2s ease-in-out 3}.portal-aura{position:absolute;width:15%;height:30%;right:5.8%;top:29%;background:radial-gradient(ellipse,#7bf2ff40,transparent 67%);mix-blend-mode:screen;animation:pulse 3s infinite;z-index:-1}.water{position:absolute;left:65.6%;top:20%;width:7%;height:30%;background:repeating-linear-gradient(180deg,transparent 0 10px,#c8eeff33 12px 15px,transparent 28px 38px);filter:blur(3px);opacity:.45;mask-image:linear-gradient(transparent,#000,transparent);animation:water 1.5s linear infinite;pointer-events:none;mix-blend-mode:screen}.mist{position:absolute;bottom:-30%;left:-30%;width:150%;height:65%;background:radial-gradient(ellipse,#e7e2ff45,transparent 65%);animation:mist 18s ease-in-out infinite alternate;z-index:-2;pointer-events:none}.status{position:absolute;left:22%;right:22%;bottom:7%;background:#fffefb;box-shadow:0 8px 24px #5c41852b;border-radius:15px;padding:14px 18px;text-align:center;font-size:13px;line-height:1.5;color:#534368;z-index:5}.status b{color:#4d55f7}.finish-card{position:absolute;bottom:5%;left:19%;right:19%;display:flex;align-items:center;gap:16px;background:#fffef8f5;border:1px solid white;border-radius:20px;padding:18px 20px;box-shadow:0 10px 40px #634a7b35;z-index:5}.finish-card h2{font-size:22px;margin:0 0 5px}.finish-card p{font-size:12px;margin:0;color:#7c728b}.finish-card .primary{margin-left:auto;white-space:nowrap}.win-mark{width:38px;height:38px;background:#c4fb7e;display:grid;place-items:center;border-radius:50%;font-size:23px;color:#385113;flex:none}.primary{border:0;background:#4d55f7;color:#fff;border-radius:13px;min-height:46px;padding:12px 22px;font-size:15px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;gap:10px;transition:background .15s,transform .15s;box-shadow:0 4px 0 #413fbe}.primary:active{transform:translateY(2px);box-shadow:0 2px 0 #413fbe}.primary:disabled{background:#c4bedb;box-shadow:0 4px 0 #b0a8c9;color:#fff}.workbench{padding:20px 27px 25px;background:linear-gradient(135deg,#faf8ff,#ece5fc);position:relative;z-index:6;border-top:1px solid #fff;box-shadow:0 -10px 30px #f2eaf830}.bench-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.bench-label{font-size:9px;font-weight:900;letter-spacing:1.4px;color:#82738f}.bench-top p{font-size:13px;margin:5px 0 0;color:#776982}.bench-actions{display:flex;gap:6px}.bench-actions button{border:1px solid #ddd5eb;background:#fefcff;border-radius:9px;color:#796c91;font-size:22px;width:35px;height:34px;line-height:1}.bench-bottom{display:flex;align-items:center;gap:25px;justify-content:space-between}.pieces{display:flex;gap:14px;flex:1;justify-content:flex-start}.piece{width:100px;min-width:54px;height:56px;border:2px solid white;border-radius:14px;background:linear-gradient(130deg,#fff,#e9e0f7);box-shadow:0 6px 0 #b6a5d2,0 10px 10px #63557e17;color:#4d45c6;font-size:27px;font-weight:950;transform:perspective(500px) rotateX(10deg);touch-action:none;user-select:none;transition:transform .15s,opacity .15s}.piece:hover{transform:perspective(500px) rotateX(10deg) translateY(-4px);background:#fff}.piece.used{opacity:.25;box-shadow:0 3px 0 #c5bcd5}.check{min-height:56px;min-width:220px;font-size:18px}.drag-ghost{position:fixed;z-index:100;pointer-events:none;opacity:.9;transform:translate(-50%,-50%) rotate(-6deg);width:90px}footer{display:flex;justify-content:space-between;gap:20px;font-size:11px;color:#95899f;padding:18px 5px}footer b{color:#71647e}.pause-overlay{position:absolute;inset:0;background:#e8e1f17a;backdrop-filter:blur(7px);z-index:10;display:grid;place-items:center;padding:16px}.dialog{background:#fffc;border:1px solid #fff;border-radius:24px;width:min(380px,100%);padding:30px;text-align:center;box-shadow:0 20px 50px #503a8430}.dialog h2{font-size:26px;margin:14px 0}.dialog p{font-size:13px;line-height:1.65;color:#81738d}.dialog .primary{display:flex;margin:20px auto 0}.minor{border:0;background:none;color:#83748e;font-size:12px;margin-top:18px}.paused .robot-body,.paused .eyes i,.paused .water,.paused .mist,.paused .portal-aura{animation-play-state:paused!important}@keyframes idle{50%{transform:translateY(-3px) rotate(-4deg)}}@keyframes walk{50%{transform:translateY(-10px) rotate(5deg)}}@keyframes celebrate{50%{transform:translateY(-17px) rotate(9deg)}}@keyframes shake{25%{transform:translateX(-5px) rotate(-8deg)}75%{transform:translateX(5px) rotate(8deg)}}@keyframes blink{0%,43%,47%,100%{transform:scaleY(1)}45%{transform:scaleY(.12)}}@keyframes pulse{50%{opacity:.4;transform:scale(1.12)}}@keyframes water{to{background-position-y:76px}}@keyframes mist{to{transform:translateX(10%)}}@media(max-width:700px){.site-head{padding:17px 16px;gap:12px}.brand{font-size:27px}.demo-tag{display:none}main{padding:0 10px 15px}.game{border-radius:19px}.scene{aspect-ratio:1.13}.headline{top:5%;left:5%}.headline h1{font-size:29px;margin-top:7px;letter-spacing:-1px}.headline p{font-size:11px;max-width:220px;line-height:1.5}.headline .eyebrow{font-size:7px;letter-spacing:1px}.hud{top:28%;right:4%;gap:5px}.hud>span{font-size:10px;padding:8px 10px;border-radius:9px}.hud>button{width:31px;height:31px;border-radius:9px}.hud svg{width:17px}.bridge{left:28%;right:25%;top:58%;height:12%;gap:5px}.socket{border-radius:9px;font-size:15px}.socket.filled{font-size:18px;border-width:2px;box-shadow:0 5px 0 #9a88bb,0 10px 8px #49376b40}.socket::after{bottom:-11px;width:9px;height:5px}.socket.filled::before{border-radius:4px}.start-number{left:5%;top:63%}.goal-number{right:6%;top:38%}.start-number b,.goal-number b{font-size:24px;padding:5px 11px;border-radius:13px}.start-number small,.goal-number small{font-size:7px;letter-spacing:1px}.robot{width:19%;top:53%}.number-bubble{font-size:13px;min-width:29px;height:26px;padding:5px 8px;border-radius:9px}.workbench{padding:16px 14px 20px}.bench-top{margin-bottom:17px}.bench-top p{font-size:11px;line-height:1.5;max-width:220px}.bench-label{font-size:8px}.bench-actions button{width:30px;height:30px}.bench-bottom{flex-wrap:wrap;gap:19px}.pieces{gap:10px;justify-content:center;width:100%}.piece{height:47px;width:70px;font-size:22px;border-radius:11px}.check{width:100%;min-height:47px;font-size:16px}.status{left:4%;right:4%;bottom:3%;font-size:11px;padding:10px}.finish-card{left:4%;right:4%;bottom:3%;padding:12px;gap:9px;border-radius:15px}.finish-card h2{font-size:16px}.finish-card p{font-size:10px}.finish-card .primary{min-height:35px;padding:9px 12px;font-size:12px;border-radius:9px}.win-mark{width:28px;height:28px;font-size:17px}footer{font-size:9px;line-height:1.5;padding:15px 3px}footer span{max-width:50%}.dialog{padding:21px}.dialog h2{font-size:23px}.portal-aura{top:32%}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media(max-width:700px){.headline p{display:none}}

/* Clear starting value, grounded scale and portal teleport. */
.start-number{left:5%;top:54%;background:#fffffff2;border:2px solid white;border-radius:15px;padding:9px 12px;box-shadow:0 5px 0 #a99acb,0 8px 20px #58408c25;filter:none;min-width:115px}.start-number small{color:#6c5e85;font-size:9px;letter-spacing:1px;margin-bottom:4px}.start-number b{background:none;border:0;box-shadow:none;padding:0;font-size:37px;line-height:1.1;color:#4d45c6}
.robot{width:11%;top:51.3%}.primary,.hud>button,.bench-actions button,.piece,.socket{display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.15}.piece,.socket{padding:0 6px}.primary svg{flex:none}.primary span{display:block}.robot.teleporting{animation:teleport-out .7s ease-in forwards}.robot.teleporting .robot-body{animation:none;filter:drop-shadow(0 0 12px #c6a9ff);opacity:.75}.robot.teleported{opacity:0!important}.teleport-fx{position:absolute;left:87%;top:42%;width:1px;height:1px;pointer-events:none;z-index:5}.spark{position:absolute;width:10px;height:10px;background:#fff;box-shadow:0 0 14px #b5a0ff;clip-path:polygon(50% 0,61% 38%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 38%);animation:spark-out 1s ease-out both}.spark:nth-child(3n){background:#cbb0ff}.paused .spark,.paused .robot.teleporting{animation-play-state:paused!important}@keyframes teleport-out{0%{opacity:1;filter:none}35%{opacity:.45;filter:brightness(1.4) sepia(.3) hue-rotate(220deg)}100%{opacity:0;filter:brightness(2) blur(5px)}}@keyframes spark-out{0%{opacity:0;transform:scale(0)}25%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.15)}}
@media(max-width:700px){.start-number{left:4%;top:39%;min-width:82px;padding:6px 8px;border-radius:12px}.start-number small{font-size:6.5px;letter-spacing:.5px}.start-number b{font-size:27px}.robot{width:14%;top:56%}.headline p{display:block;max-width:235px;font-size:9px;line-height:1.3}.hud{top:31%}.teleport-fx{top:45%}.spark{width:7px;height:7px}}
.headline,.hud,.start-number,.goal-number,.bridge{z-index:2}
@media(max-width:700px){main{height:620px;display:flex;flex-direction:column;padding-bottom:0}.game{flex:1;min-height:0;display:flex;flex-direction:column}.scene{flex:1;min-height:0;aspect-ratio:auto}.workbench,footer{flex:none}.start-number{top:67%}.goal-number{top:44%;right:5%}}
.number-bubble{background:#4d55f7;color:#f6f5ff;box-shadow:0 4px 0 #3931b0;display:flex;align-items:center;justify-content:center;line-height:1;padding:5px 10px}
.robot.jumping .robot-body{animation:none;transform:rotate(-5deg)}
.robot.falling .robot-body{animation:tumble .38s ease-in forwards}.robot.falling .number-bubble{opacity:0}
.socket.collapsing{animation:bridge-fall .48s cubic-bezier(.45,0,.85,.4) var(--fall-delay) forwards}
.robot.teleporting{animation:portal-pull .85s ease-in forwards}
.portal-flash,.portal-ring{position:absolute;display:block;pointer-events:none;transform:translate(-50%,-50%)}
.portal-flash{width:140px;height:140px;background:radial-gradient(circle,#fff 0%,#dcf9ffbb 15%,#b5b5ff88 32%,transparent 67%);animation:portal-flash .85s ease-out both}
.portal-ring{width:70px;height:70px;border:3px solid #c2ff74;border-radius:50%;box-shadow:0 0 16px #c6d6ff,inset 0 0 14px #e5d9ff;animation:portal-ring .8s ease-out both}
.spark:nth-child(4n){background:#c5ff74}
.paused .collapsing,.paused .returning,.paused .falling .robot-body,.paused .portal-flash,.paused .portal-ring{animation-play-state:paused!important}
@keyframes bridge-fall{to{transform:translateY(420px) rotate(24deg);opacity:0}}
@keyframes tumble{to{transform:rotate(38deg) scale(.8)}}
@keyframes portal-pull{0%{opacity:1;transform:translate(-50%,-50%) scale(1)}35%{opacity:.5;filter:brightness(1.6) drop-shadow(0 0 12px #b2ceff)}100%{opacity:0;transform:translate(-40%,-55%) rotate(22deg) scale(.05);filter:brightness(2.1)}}

@keyframes portal-flash{0%,100%{opacity:0;transform:translate(-50%,-50%) scale(.4)}30%{opacity:.95;transform:translate(-50%,-50%) scale(1)}}
@keyframes portal-ring{from{opacity:1;transform:translate(-50%,-50%) scale(.25)}to{opacity:0;transform:translate(-50%,-50%) scale(1.8)}}
@media(max-width:700px){.portal-flash{width:80px;height:80px}.portal-ring{width:38px;height:38px}}
/* Falling pieces must clip without creating a scrollable scene. */
.scene{overflow:clip}

/* Broad lavender veil: strong behind the text and Kmin, smoothly clear at the portal. */
.scene::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;background:linear-gradient(100deg,rgba(242,238,253,.9) 0%,rgba(242,238,253,.9) 28%,rgba(238,232,251,.76) 45%,rgba(234,227,249,.35) 63%,rgba(234,227,249,0) 84%)}
.headline{color:#292438;text-shadow:none}.headline .eyebrow{color:#6254e9}
.number-bubble{white-space:nowrap;min-width:42px;width:max-content;font-size:15px;padding:7px 12px;gap:4px}
.goal-number{transition:opacity .28s ease,transform .28s ease}.goal-number.absorbed{opacity:0;transform:translateY(8px) scale(.85);pointer-events:none}
@media(max-width:700px){.number-bubble{font-size:10px;padding:5px 7px;min-width:28px}}
/* Keep the growing expression clear of mobile counters. */
@media(max-width:700px){.hud{top:auto;bottom:5%;right:4%}}
/* Embedded SG card: match the real rectangular cover; gameplay stays 620px. */
body{background:transparent}.cover{height:450px;position:relative;overflow:hidden;background:#eeebfc;color:#24212f}.cover-art{position:absolute;inset:0 0 62px;background:url(assets/cover.webp) center center/cover no-repeat;pointer-events:none}.cover-copy{position:absolute;top:26px;left:24px;z-index:1;width:46%;pointer-events:none}.cover-copy .eyebrow{font-size:9px;line-height:1.4;letter-spacing:.7px;margin:0 0 20px}.cover-copy h1{font-size:32px;line-height:1.04;letter-spacing:-.9px;margin:0 0 20px;font-weight:950}.cover-copy>p:last-child{font-size:13px;line-height:1.5;color:#777087;font-weight:600;margin:0;max-width:190px}.cover-bottom{position:absolute;bottom:10px;left:24px;right:24px;text-align:center;z-index:2}.cover-bottom>p:first-child{font-size:11px;color:#777087;margin:0 0 13px}.cover-actions{display:flex;gap:14px;align-items:stretch;height:44px}.cover-actions .primary{flex:1;min-width:0;min-height:0;height:44px;padding:0 16px;font-size:24px;font-weight:950;box-shadow:none;border-radius:12px;gap:10px}.cover-actions .primary svg{width:19px;height:19px}.language{display:flex;align-items:center;background:#e8e4fa;padding:4px;border-radius:12px;gap:3px;width:102px;height:44px;flex:none}.language button{border:0;color:#777087;background:none;flex:1;height:36px;border-radius:8px;font-size:12px;font-weight:800;padding:0}.language [aria-pressed=true]{color:#5b50ff;background:#fff;box-shadow:0 1px 4px #6256ba15}.cover-help{font-size:10px;line-height:1.7;color:#9087a3;margin:13px 0 0}.cover-actions button:focus:not(:focus-visible){outline:none}main{padding:0;margin:0;height:620px;max-width:none;display:flex;flex-direction:column}main .game{flex:1;min-height:0;display:flex;flex-direction:column;border:0;border-radius:0;box-shadow:none}.scene{flex:1;min-height:0;aspect-ratio:auto}.workbench,footer{flex:none}footer{padding:10px 16px;font-size:9px;line-height:1.5;gap:15px}.headline h1{font-size:29px}.headline p{font-size:10px}.help-button{font-size:16px;font-weight:900}.finish-card{flex-wrap:wrap}.save-game{border:0;background:#5350fc;color:white;border-radius:9px;padding:9px 12px;font:inherit;font-size:11px;font-weight:800}.finish-card #saveStatus{font-size:10px;flex-basis:100%;text-align:center}main .finish-card .primary{gap:5px}.cover #coverCount{user-select:none}
@media(max-width:400px){.cover-art{background-position:60% center;inset:0 0 75px;background-size:auto 100%}.cover-copy{top:23px;left:18px;width:52%}.cover-copy .eyebrow{font-size:7px;letter-spacing:.4px;margin-bottom:16px}.cover-copy h1{font-size:27px;max-width:190px;margin-bottom:14px}.cover-copy>p:last-child{font-size:11px;line-height:1.4;max-width:140px}.cover-bottom{left:18px;right:18px;bottom:12px}.cover-actions{gap:8px}.cover-actions .primary{font-size:20px}.language{width:90px}.cover-bottom>p:first-child{font-size:10px}.cover-help{font-size:9px;line-height:1.6;margin-top:13px}}


/* SG typography and compact, stable game controls. */
.cover-copy{width:75%}.cover-copy h1{max-width:none}.cover-title-first{font-size:1.2em;white-space:nowrap}.cover-bottom{bottom:22px}
.headline{left:24px;right:24px}.headline .eyebrow{font-size:11px;line-height:1.35}.headline p{font-size:13.5px;line-height:1.4;max-width:none}
.workbench{padding-top:15px;padding-bottom:17px}.bench-top{margin-bottom:11px;gap:14px}.bench-top>div:first-child{flex:1;min-width:0}.bench-label{font-size:11px;line-height:1.4;letter-spacing:1px}.bench-top p{font-size:13px;line-height:1.4;max-width:none;margin:5px 0 0}.bench-actions{flex:none}
.bench-bottom{flex-direction:column;gap:12px;justify-content:center;align-items:center;flex-wrap:nowrap}.pieces{width:max-content;max-width:100%;justify-content:center;gap:10px}.piece{position:relative;isolation:isolate;min-width:0;flex:0 1 70px;width:70px;font-size:22px;transform:perspective(500px) rotateX(10deg);transition:opacity .24s ease,box-shadow .24s ease,color .24s ease}.piece:hover{transform:perspective(500px) rotateX(10deg);background:linear-gradient(130deg,#fff,#e9e0f7)}.piece::after{content:"";position:absolute;inset:0;border-radius:inherit;background:#b4ff42;opacity:0;z-index:-1;pointer-events:none;transition:opacity .24s ease}.piece:hover:not(:disabled)::after{opacity:.38}.piece:hover:not(:disabled){color:#292438}.check{width:278px;max-width:100%;min-height:46px;align-self:center;font-size:16px}
.bench-actions button{transition:background-color .22s ease,color .22s ease,border-color .22s ease}.bench-actions button:hover:not(:disabled),.bench-actions button:focus-visible{background:#b4ff42;color:#24212f;border-color:#b4ff42}.primary{transition:background-color .24s ease,color .24s ease,box-shadow .24s ease}
footer{font-size:11px;line-height:1.45;padding:10px 14px;gap:16px}footer span{max-width:49%;min-width:0}
@media(max-width:400px){.cover-copy{width:82%}.cover-copy h1{max-width:none}.cover-bottom{bottom:24px}.headline{left:18px;right:18px}.headline .eyebrow{font-size:10px}.headline p{font-size:12px;max-width:none}.bench-label{font-size:10px}.bench-top p{font-size:12px}.workbench{padding:14px 14px 16px}.piece{font-size:19px}.check{font-size:15px}.bench-top{gap:9px}.bench-actions{gap:4px}.bench-actions button{width:28px;height:28px}footer{font-size:10.5px;gap:12px;padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.piece,.piece::after,.primary,.bench-actions button{transition:none}}

.bench-top{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:3px;margin-bottom:9px}.bench-top>div:first-child{display:contents}.bench-label{grid-column:1;grid-row:1;align-self:center}.bench-actions{grid-column:2;grid-row:1}.bench-top p{grid-column:1/-1;grid-row:2;margin:0}
.goal-number{display:flex;flex-direction:column;align-items:center}.goal-number small{display:inline-block;order:1;margin:7px 0 0;padding:3px 6px;border-radius:6px;background:#ffffffe0;color:#75669f;font-size:9px;line-height:1.1;letter-spacing:1px;text-shadow:none}
.bench-actions button:disabled{background:#eeeaf6;color:#aaa3b5;border-color:#e1dceb;opacity:.4;filter:grayscale(1);cursor:default;pointer-events:none}.bench-top{position:relative;top:-4px;margin-bottom:7px}.bench-bottom{gap:18px}.check{min-width:0;min-height:42px;height:42px;font-size:15px;padding:0 18px;box-shadow:0 3px 0 #413fbe}
.drag-ghost{position:fixed;display:flex;align-items:center;justify-content:center;min-width:64px;width:70px;height:47px;padding:0 6px;border:2px solid white;border-radius:11px;background:linear-gradient(130deg,#fff,#e9e0f7);box-shadow:0 5px 0 #b6a5d2,0 10px 20px #63557e35;color:#4d45c6;font:950 22px Mark,system-ui,sans-serif;z-index:100;pointer-events:none;opacity:.95;transform:translate(-50%,-50%) rotate(-5deg);user-select:none}
/* Preserve a clear HUD even when a round message is present. */
.finish-card,.status{bottom:calc(5% + 44px)}
/* Centre the two cover footer lines within their own equal-padding strip. */
.cover-bottom{bottom:74px}.cover-footer{position:absolute;left:0;right:0;bottom:0;height:64px;padding:0 16px;display:flex;align-items:center;justify-content:center;text-align:center;gap:0}.cover-footer .cover-help{margin:0;max-width:100%}
.exit-dialog{width:min(350px,calc(100% - 32px));max-height:calc(100% - 32px);padding:28px 24px 22px;border:1px solid #fff;border-radius:22px;background:#faf8ff;color:#292438;text-align:center;box-shadow:0 20px 60px #42306535;font-family:Mark,system-ui,sans-serif}.exit-dialog::backdrop{background:#e7e1f2b8;backdrop-filter:blur(6px)}.exit-dialog h2{font-size:27px;line-height:1.15;margin:13px 0}.exit-dialog .eyebrow{font-size:9px;line-height:1.3}.exit-dialog .primary{display:flex;width:100%;margin:19px 0 10px;font-size:16px;box-shadow:0 3px 0 #413fbe}.exit-close{position:absolute;right:12px;top:10px;width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:#817294;font-size:25px}.exit-discard{border:0;background:#e9e4f5;color:#6f628b;border-radius:10px;min-height:40px;width:100%;font-size:13px;font-weight:800}.exit-discard:hover{background:#b4ff42;color:#24212f}.exit-dialog .minor{margin-top:14px;font-size:12px}.exit-dialog #exitStatus{font-size:12px;line-height:1.5;margin:14px 0 0;color:#75678b;min-height:18px}.exit-dialog button:disabled{opacity:.4;cursor:default}.exit-dialog #exitScore{font-size:20px;font-weight:900;color:#5750df;margin:13px 0}
@media(max-width:400px){.goal-number small{font-size:8px;letter-spacing:.7px}.cover-bottom{bottom:78px}.cover-footer{height:68px}.check{font-size:14px;min-height:40px;height:40px}.exit-dialog{padding:24px 20px 18px}.exit-dialog h2{font-size:24px}.exit-dialog .primary{min-height:42px}}

/* Phone cover: fade the actual image edges, not an empty fixed-height background. */
@media(max-width:480px){.cover-art{inset:70px 0 auto;height:auto;aspect-ratio:3/2;background-size:100% 100%;background-position:center;background-repeat:no-repeat;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 38px,#000 calc(100% - 55px),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 38px,#000 calc(100% - 55px),transparent 100%)}}
