:root{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#292638;background:#f5f2ec;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{border:1px solid #d9d3ca;background:#faf8f4;color:#3e3546;border-radius:9px;padding:.65rem .85rem;cursor:pointer}button:hover{background:#ebe4da}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ac7e53;outline-offset:2px}header{display:flex;justify-content:space-between;align-items:center;padding:22px 3vw;border-bottom:1px solid #ded7ce}.brand{font-weight:850;letter-spacing:.12em}.brand small{display:block;font-size:.6rem;margin-top:7px;color:#8d7f78;letter-spacing:.2em}header button{margin-left:8px}.intro{padding:35px 3vw 20px}.eyebrow{font-size:.65rem;letter-spacing:.21em;font-weight:700;color:#9b6f4e}h1{font-size:clamp(2rem,3.2vw,3.8rem);letter-spacing:-.055em;font-weight:500;margin:12px 0}h1 em{font-family:Georgia,serif;font-weight:400;color:#ad7049}.intro p{color:#80766e}.workspace{display:grid;grid-template-columns:280px 1fr;gap:24px;padding:0 3vw 30px;min-height:75vh}aside{background:#eae5dc;border-radius:18px;padding:21px;display:flex;flex-direction:column;gap:12px}label{display:block;font-size:.75rem;font-weight:650;color:#70675f}input,select{width:100%;padding:.55rem;border:1px solid #d2c8bc;border-radius:7px;background:#faf8f5;color:#3b3340;margin-top:5px}h2{font-size:.82rem;letter-spacing:.06em;margin:18px 0 3px}h2 span{float:right;color:#9a8270}.numbers{display:grid;grid-template-columns:1fr 1fr;gap:9px}.hint{font-size:.73rem;line-height:1.55;color:#8b8076}.primary{background:#352c40;color:#fff;border:none;padding:1rem}.primary:hover{background:#51415d}.stage{border:1px solid #ded7cd;border-radius:18px;background:#fcfaf6;overflow:hidden}.stagebar{display:flex;justify-content:space-between;padding:20px;border-bottom:1px solid #e6dfd5;font-size:.8rem}.stagebar span{color:#96887b}.mesh{height:400px;background:radial-gradient(ellipse,#f6e9d9,#eeeae3);display:flex;align-items:center;justify-content:center;color:#8d7e76}.mesh canvas{max-width:100%;height:100%;object-fit:contain}.camera-controls{display:flex;gap:25px;padding:0 25px}.camera-controls label{flex:1}.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:22px}.tiles figure{margin:0}.tiles canvas{width:100%;height:auto;background:repeating-conic-gradient(#ede8e0 0% 25%,#f9f5ef 0% 50%) 50%/16px 16px;border-radius:8px;image-rendering:pixelated}figcaption{font-size:.65rem;letter-spacing:.04em;color:#8c7b6d;margin-top:8px}.status,.warning{margin:0 22px 15px;font-size:.85rem}.warning{color:#a13e36}.exports{display:flex;gap:8px;flex-wrap:wrap;padding:0 22px}.stage>.hint{padding:0 22px 12px}.source{padding:20px 3vw;background:#e8e2d9}.source p{font-size:.8rem;color:#7b7067}.source textarea{width:100%;height:190px;resize:vertical;border:1px solid #cabfaf;border-radius:10px;background:#f9f5ef;padding:15px;font-family:monospace;font-size:.72rem}.source button{margin:12px 8px 0 0}footer{padding:20px 3vw;font-size:.72rem;color:#8a7b6e}footer button{font-size:.72rem;margin-right:8px}.focus .intro,.focus .source,.focus footer{display:none}.focus .workspace{padding-top:24px;min-height:calc(100vh - 90px)}.focus .mesh{height:45vh}@media(max-width:850px){.workspace{grid-template-columns:1fr}header{align-items:flex-start;gap:15px}.brand small{display:none}header>div:last-child{display:flex;flex-wrap:wrap;gap:4px}.tiles{grid-template-columns:repeat(2,1fr)}.stagebar{flex-direction:column;gap:8px}.mesh{height:300px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
