/* Owns the paper workbench and connected-square visual language. */
:root{font-family:ui-rounded,'Avenir Next',system-ui,sans-serif;color:#273c48;background:#fff8e9;font-synthesis:none}*{box-sizing:border-box}body{margin:0}main{max-width:1080px;margin:auto;padding:24px}header{display:flex;justify-content:space-between;gap:16px;align-items:center;font-size:12px;letter-spacing:.1em;font-weight:800}a{color:#365a70;letter-spacing:0;font-size:15px;min-height:44px;display:inline-flex;align-items:center}h1{font-size:clamp(30px,5vw,48px);letter-spacing:-.04em;margin:24px 0 8px}.intro{font-size:19px;line-height:1.5;margin:0 0 24px}.workbench{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:24px;align-items:start}.board-scroll{overflow:auto;padding:10px;border:2px solid #e4d6bc;border-radius:22px;background:#f4ead4}#board{display:grid;grid-template-columns:repeat(8,minmax(44px,1fr));min-width:352px;gap:0;border:2px solid #c8bda7;background:#c8bda7}.square{aspect-ratio:1;min-width:44px;min-height:44px;border:1px solid #c8bda7;border-radius:0;background:#fffcf5;position:relative;padding:0;touch-action:manipulation;cursor:pointer}.square.filled{background:var(--paint);border-color:#0002}.square.filled.top{border-top:4px solid #273c48}.square.filled.bottom{border-bottom:4px solid #273c48}.square.filled.left{border-left:4px solid #273c48}.square.filled.right{border-right:4px solid #273c48}.badge{font-size:clamp(15px,2.2vw,23px);font-weight:900;color:#192a36;background:#fffc;padding:0 4px;border-radius:6px;position:absolute;top:2px;left:2px;line-height:1.15}.eyes{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);font-size:13px;letter-spacing:2px;color:#182f3d;white-space:nowrap}.square:focus-visible,button:focus-visible,a:focus-visible{outline:4px solid #245cb5;outline-offset:3px;z-index:1}aside{padding:20px;background:#fffdf7;border-radius:20px;border:2px solid #e4d6bc}h2{font-size:20px;margin:0 0 12px}#summary{line-height:1.5}#friends{display:flex;flex-wrap:wrap;gap:8px}.friend{border:3px solid #273c48;border-radius:10px;background:var(--paint);min-width:52px;min-height:60px;display:grid;place-items:center;font-size:23px;font-weight:900;color:#192a36;box-shadow:0 4px 0 #273c4820}.friend span{font-size:13px;line-height:1}.hint{font-size:14px;line-height:1.7;margin:22px 0 0}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}button{font:inherit;font-weight:750;min-height:48px;border:2px solid #273c48;border-radius:14px;padding:10px 18px;background:#fffdf7;color:#273c48;cursor:pointer}button:disabled{opacity:.4;cursor:default}#example{background:#dceee4}.footer{font-size:12px;color:#53636c;margin-top:28px}#save-note{font-size:14px;line-height:1.5}@media(max-width:700px){main{padding:16px}.workbench{grid-template-columns:1fr}aside{padding:16px}.hint{margin-top:12px}header span{display:none}.board-scroll{padding:5px;border-radius:12px}#board{min-width:352px}.intro{font-size:17px}h1{margin-top:16px}}@media(prefers-reduced-motion:no-preference){.friend{animation:hello .2s ease-out}@keyframes hello{from{transform:translateY(4px)}to{transform:translateY(0)}}}
/* Keep large cubes as the canvas expands; scroll within the workbench. */
.board-scroll{max-height:65vh;overscroll-behavior:contain;scrollbar-gutter:stable}#board{width:max-content;grid-auto-rows:44px;grid-template-columns:repeat(8,44px)}.square{width:44px;height:44px}.square.filled.top{border-top-color:var(--cube-edge)}.square.filled.bottom{border-bottom-color:var(--cube-edge)}.square.filled.left{border-left-color:var(--cube-edge)}.square.filled.right{border-right-color:var(--cube-edge)}#board-size{font-size:14px;font-weight:750;margin:0 0 10px;color:#365a70}
.workbench>div{min-width:0}.board-scroll{max-width:100%}
