:root{color-scheme:light;--ink:#424c46;--green:#517363;--paper:#fffdf5;--line:#e2ddcc;--gold:#e9ca75}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{margin:0;color:var(--ink);background:radial-gradient(ellipse at 15% 0,#fff0c6,transparent 60%),#eff3e9;font-family:ui-rounded,'Trebuchet MS',Arial,sans-serif}html,body,button,a,dialog,dialog *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}button,select{font:inherit;color:inherit}button,a,select{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer;background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:11px 16px;min-height:45px;font-weight:800;appearance:none;-webkit-appearance:none}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #8d6aaa;outline-offset:3px}body.pointer button:focus,body.pointer a:focus{outline:none}a{color:inherit}.shell{width:min(1080px,100%);margin:auto;padding:24px}header{display:flex;justify-content:space-between;align-items:center;gap:12px}header a{font-size:13px;font-weight:800;text-decoration:none}.brand{font-size:24px;font-weight:900}.brand span{color:#8f71ad}.tools{display:flex;gap:7px}.tools button{width:45px;padding:8px;font-size:22px}.heading{text-align:center;margin:32px 0 24px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:900;color:#88927a}h1{font-size:clamp(28px,5vw,44px);letter-spacing:-1.4px;margin:10px 0}h1 em{font-style:normal;color:#a27a43}.heading>p:last-child{font-size:13px;color:#8e9581;margin:10px 0}.workshop{border:6px solid var(--paper);border-radius:26px;overflow:hidden;background:var(--paper);box-shadow:0 18px 45px #4c68481a}.workshop-top{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 23px;background:#e9eedc;font-size:21px;font-weight:900}.workshop-top>:last-child{font-size:10px;background:var(--paper);padding:7px 12px;border-radius:25px;color:#8b8e75}.hud{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 23px;font-size:12px;color:#899078;font-weight:800}.workspace{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;padding:10px 23px 24px}.board-area,.tray-area{min-width:0}.board-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:14px}.board-heading h2{font-size:16px;margin:0;letter-spacing:-.4px}.board-heading span{font-size:9px;color:#9c9e87}.board{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));gap:3px;padding:8px;border-radius:18px;background:#e5decd;border:1px solid #d5ccb7;box-shadow:inset 0 3px 8px #60563614;max-width:450px;margin:auto;touch-action:manipulation}.cell{position:relative;aspect-ratio:1;min-height:0;padding:0;border-radius:6px;border:1px dashed #c3b89e;background:#f5efde;box-shadow:inset 0 2px 0 #fff8;transition:background-color .12s}.cell.void{visibility:hidden;pointer-events:none}.cell.filled{border:1px solid #00000012;background:var(--block-colour);box-shadow:inset 0 3px 0 #ffffff48,inset 0 -4px 0 #00000012,0 2px 2px #0000000d}.cell.preview{outline:3px solid #699e75;outline-offset:-3px;background:#cde1b9}.cell.invalid{outline-color:#c98670;background:#f3d6c0}.board.completed{box-shadow:0 0 0 4px #e7ce8b,0 8px 20px #d7c27b33}.board-instruction{font-size:11px;line-height:1.6;color:#969981;text-align:center;margin:13px 2px}.board-actions{display:flex;gap:7px;justify-content:center;flex-wrap:wrap}.board-actions button{font-size:11px;min-height:40px;padding:9px 12px}.board-actions>#hint{background:#fff0c9;border-color:#e4cf92}.text-button{border:0;background:transparent;font-size:11px;text-decoration:underline;display:block;margin:9px auto 0;padding:8px}.tray{display:grid;grid-template-columns:repeat(auto-fit,minmax(98px,1fr));gap:10px;align-items:stretch;background:#f2e9d5;border:1px solid #e6dac0;border-radius:18px;padding:12px;min-height:150px}.tile-button{min-width:0;padding:10px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#fffaf0;border-color:#e5d6b8;touch-action:none;overscroll-behavior:none;cursor:grab}.tile-button.selected{outline:3px solid #668a6d;outline-offset:-3px;background:#f4f8e8}.tile-label{font-size:9px;color:#9b8d6f}.shape{display:grid;gap:2px;pointer-events:none;flex-shrink:0}.mini-cell{border-radius:3px;background:var(--block-colour);box-shadow:inset 0 2px 0 #ffffff55,inset 0 -2px 0 #00000014;border:1px solid #0000000a}.mini-cell.empty{visibility:hidden}.tray-empty{grid-column:1/-1;text-align:center;align-self:center;font-size:13px;color:#8f936e;line-height:1.6}.builder-note{display:flex;align-items:center;gap:12px;margin-top:15px;padding:14px;border-radius:16px;background:#eef3e3}.builder-note>span{font-size:28px}.builder-note p{font-size:11px;line-height:1.6;color:#909b7e;margin:0}.message{margin:0;background:#f3f0e3;padding:15px 22px;text-align:center;min-height:48px;font-size:12px;font-weight:800;color:#7f8c70}footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 3px;font-size:11px;color:#8e987f}footer button{border:0;background:transparent;font-size:11px;padding:8px}.footnote{font-size:10px;text-align:center;color:#a3a88f;margin:0}.drag-ghost{position:fixed;z-index:1000;pointer-events:none;opacity:.86;filter:drop-shadow(0 6px 6px #38493225);will-change:transform}.drag-ghost .shape{gap:3px}.drag-ghost .mini-cell{border-radius:6px}.primary{display:block;width:100%;min-height:50px;margin-top:14px;background:var(--green);color:white;border-color:var(--green)}dialog{position:fixed;inset:auto;margin:0;left:calc(var(--dialog-left,0px) + var(--dialog-width,100vw)/2);top:calc(var(--dialog-top,0px) + var(--dialog-height,100dvh)/2);transform:translate(-50%,-50%);width:min(500px,calc(var(--dialog-width,100vw) - 28px));max-width:calc(var(--dialog-width,100vw) - 28px);max-height:calc(var(--dialog-height,100dvh) - 28px);overflow:auto;overscroll-behavior:contain;border:0;border-radius:25px;padding:28px;background:var(--paper);box-shadow:0 20px 65px #4051383d;color:var(--ink)}dialog::backdrop{background:#334f40a1;backdrop-filter:blur(5px)}dialog h2{font-size:27px;letter-spacing:-.7px;margin:12px 0}dialog h2:focus{outline:none}dialog p{font-size:14px;line-height:1.6}dialog label{font-size:12px;font-weight:900}dialog select{display:block;width:100%;font-size:16px;line-height:1.4;padding:11px;border:1px solid #d6dccb;border-radius:12px;margin:8px 0 16px;background:white}dialog ol{padding-left:23px;font-size:14px;line-height:1.7}dialog li{margin:10px 0}.big-icon{font-size:57px;text-align:center;margin:12px 0}.hint{background:#fff0c9;color:#96804b;font-size:12px;line-height:1.6;padding:13px 15px;border-radius:13px}.small{font-size:11px!important;color:#98a083}.exit{display:block;text-align:center;font-size:12px;margin-top:18px}.question{font-size:clamp(19px,4.5vw,26px);font-weight:900;background:#edf1e4;border-radius:16px;padding:16px;text-align:center}.answers{display:grid;grid-template-columns:1fr 1fr;gap:10px}.answers button{font-size:21px;min-height:55px}.answers .wrong{background:#fff0db;border-color:#d8b57c}.answers .correct{background:#e2efcc;border-color:#95b777}.feedback{font-size:13px;min-height:36px;font-weight:800;color:#75966a}[hidden]{display:none!important}@media(max-width:650px){.shell{padding:12px 10px}header a{font-size:11px}.brand{font-size:19px}.tools button{width:39px;min-height:40px;font-size:21px}.heading{margin:25px 0 20px}h1{font-size:29px}.heading .eyebrow{font-size:8px;letter-spacing:1.6px}.heading>p:last-child{font-size:11px}.workshop{border-width:4px;border-radius:21px}.workshop-top{padding:14px;font-size:18px}.workshop-top>:last-child{font-size:9px;padding:6px 9px}.hud{padding:12px 14px;font-size:10px;gap:8px}.workspace{grid-template-columns:1fr;padding:7px 13px 18px;gap:18px}.board-heading{margin-bottom:11px}.board-heading h2{font-size:15px}.board-heading span{font-size:9px}.board{max-width:390px}.board-instruction{font-size:10px}.board-actions button{font-size:10px;min-height:42px;padding:9px 11px}.tray{padding:10px;gap:8px}.builder-note{display:none}.message{font-size:11px;padding:13px 14px}footer{font-size:10px}dialog{padding:23px}dialog h2{font-size:24px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.mini-cell{position:relative}.mini-cell.anchor:after{content:'';position:absolute;width:4px;height:4px;border-radius:50%;background:#fff8ee;left:50%;top:50%;transform:translate(-50%,-50%)}.drag-ghost .mini-cell.anchor:after{width:7px;height:7px}
