
:root{color-scheme:dark;font-family:Arial,Helvetica,sans-serif;color:#e9ede7;background:#11181f;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.35;cursor:default}button:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid #acd1ac;outline-offset:3px}header{height:88px;border-bottom:1px solid #303a40;padding:0 40px;display:flex;align-items:center;gap:28px}.brand{text-decoration:none;color:#f1f1e7;font-size:25px;font-weight:800;letter-spacing:4px;display:flex;align-items:center;gap:12px}.mark{color:#c4d8a1;font-size:40px;line-height:1}.edition{font-size:12px;letter-spacing:1px;font-weight:400;color:#89968f;align-self:flex-end;margin-bottom:6px}.subtitle,.badge,.eyebrow,h2,.signature,.geometry,.stats{font-size:10px;letter-spacing:1.8px}.subtitle{color:#8d9a9f;margin-left:16px}.badge{margin-left:auto;border:1px solid #465044;border-radius:20px;padding:9px 13px;color:#c8d6b9}main{display:grid;grid-template-columns:300px 1fr;min-height:calc(100dvh - 88px)}aside{border-right:1px solid #303a40;padding:36px 28px 22px;display:flex;flex-direction:column}.eyebrow{color:#bfd19d;margin-bottom:18px;font-size:9px}h1{font-family:Georgia,serif;font-size:32px;line-height:1.17;font-weight:400;letter-spacing:-.8px;margin:0 0 16px}.intro{font-size:13px;color:#9ba8af;line-height:1.7;margin:0 0 29px}section{margin-bottom:25px}h2{font-weight:400;color:#64737a;margin:0 0 14px;font-size:9px}h2 span{margin-left:10px;color:#b3bdbf}.shapes{display:grid;grid-template-columns:1fr 1fr;gap:10px}.shape{background:#182229;border:1px solid #34414a;border-radius:8px;padding:10px 7px 12px;display:flex;flex-direction:column;align-items:center;gap:5px}.shape.selected{border-color:#c4d8a1;background:#252f2c}.shape svg{width:80px;height:60px;fill:#8abbb0;stroke:#17251f;stroke-width:1.5}.shape[data-kind="1"] svg{fill:#b2a5cc}.shape .seam{fill:none;stroke:#344c43}.shape b{font-size:12px;font-weight:400}.shape small{font-size:10px;color:#879b9d}select{width:100%;border:1px solid #34414a;background:#182229;border-radius:5px;padding:12px;font-size:12px}.display{display:flex;flex-direction:column;gap:13px;font-size:12px;color:#a6b4b8}.display label{display:flex;align-items:center;gap:9px;cursor:pointer}input{accent-color:#c4d8a1;width:15px;height:15px}.actions{display:flex;gap:8px}.actions button{background:transparent;border:1px solid #34414a;border-radius:5px;padding:11px 9px;font-size:11px;flex:1}kbd{font-family:inherit;color:#7b898f;margin-left:7px;font-size:9px}.note{font-size:11px;line-height:1.7;color:#7f8f96;margin:18px 0 25px}.signature{margin-top:auto;padding-top:20px;color:#718087;font-size:9px;display:flex;justify-content:space-between}.workspace{display:flex;flex-direction:column;min-width:0;min-height:600px}.boardbar{padding:24px 30px;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#a7b5ba;gap:16px}.boardbar i{display:inline-block;background:#bdd39f;width:5px;height:5px;border-radius:50%;vertical-align:middle;margin-right:8px}.geometry{color:#65757d;font-size:9px;white-space:nowrap}.stage{position:relative;flex:1;min-height:400px;margin:0 16px}canvas{width:100%;height:100%;position:absolute;inset:0;touch-action:none;cursor:crosshair}.viewcontrols{position:absolute;bottom:12px;right:14px;display:flex;gap:1px;border:1px solid #38444c;border-radius:5px;overflow:hidden}.viewcontrols button{background:#1b252de8;border:0;min-width:38px;height:36px;font-size:12px}.viewcontrols button:hover,.actions button:hover{background:#2f3c41}footer{height:86px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 30px;border-top:1px solid #303a40}.stats{display:flex;gap:26px;font-size:9px;color:#85969b}.stats>span{display:flex;align-items:center;gap:9px}.stats strong{font-family:Georgia,serif;font-size:28px;color:#e5ebdf;font-weight:400;letter-spacing:-1px}footer p{font-size:10px;color:#7e8e95}footer p span{padding:0 7px;color:#a9b4b5}#boot{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#11181f;font:28px Georgia,serif;gap:16px}#boot span{font:12px Arial,sans-serif;color:#9eaead;max-width:80%;text-align:center;line-height:1.7}#boot[hidden]{display:none}@media(min-width:1600px){aside{padding:45px 36px}main{grid-template-columns:340px 1fr}h1{font-size:37px}}@media(max-width:850px){header{height:68px;padding:0 20px}.subtitle{display:none}main{grid-template-columns:235px 1fr;min-height:calc(100dvh - 68px)}aside{padding:24px 18px}h1{font-size:28px}.boardbar{padding:22px 20px}.geometry{display:none}footer{margin:0 20px;height:100px;flex-wrap:wrap;gap:0;padding:12px 0}footer p{margin:0}.stats{gap:16px}.stage{margin:0 8px}}@media(max-width:600px){main{display:flex;flex-direction:column}.workspace{order:-1;min-height:470px;height:62dvh}header{height:60px}.brand{font-size:20px}.mark{font-size:32px}.badge{font-size:8px}.boardbar{padding:15px 20px}.stage{min-height:300px}footer{height:76px;padding:10px 0}.stats strong{font-size:23px}footer p{width:100%;font-size:9px}aside{border-right:0;border-top:1px solid #303a40;display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:24px 20px}.eyebrow,h1,.intro,.note,.signature{display:none}section{margin:0}.display{grid-column:1/-1;flex-direction:row;justify-content:space-between;font-size:10px;gap:5px}.actions{grid-column:1/-1}.actions button{padding:14px}.shape svg{height:44px}.shape{padding:6px}h2{font-size:8px;letter-spacing:1px}h2 span{margin-left:5px}select{font-size:11px;padding:12px 7px}.viewcontrols{bottom:8px;right:8px}}

@media(min-width:601px) and (max-height:800px){header{height:68px}main{min-height:calc(100dvh - 68px)}aside{padding-top:24px;padding-bottom:16px}.eyebrow{margin-bottom:12px}h1{font-size:29px;margin-bottom:12px}.intro{margin-bottom:20px}section{margin-bottom:18px}.shape svg{height:48px}.note{margin:12px 0 8px}.signature{padding-top:12px}.workspace{min-height:540px}.stage{min-height:350px}}
.discoveries{border-top:1px solid #34414a;padding-top:18px}.discoveries p{font-size:11px;line-height:1.6;color:#9daaa6;margin:0 0 12px}#collection{max-height:210px;overflow:auto}#collection .shape svg{fill:#e7d08b}#ready-gaps{display:grid;gap:8px;margin-top:10px}.claim,#example{width:100%;border:1px solid #b8a166;border-radius:5px;background:#302e20;color:#f2d077;font:11px Arial,sans-serif;padding:12px;cursor:pointer}#example{background:transparent;border-color:#3d484c;color:#afbbb5;margin-top:10px}.claim:hover{background:#4e462a}@media(max-width:600px){.discoveries{grid-column:1/-1}.discoveries #collection{grid-template-columns:repeat(3,1fr)}.discoveries p{max-width:310px}}
#creature-example{width:100%;border:1px solid #3d484c;border-radius:5px;background:transparent;color:#afbbb5;font:11px Arial,sans-serif;padding:12px;cursor:pointer;margin-top:8px}
@media(min-width:601px){main{height:calc(100dvh - 88px)}aside{overflow-y:auto}.workspace{min-height:0}.stage{min-height:200px}.boardbar,footer{flex-shrink:0}}@media(min-width:601px) and (max-height:800px){main{height:calc(100dvh - 68px)}}
.score-stat{color:#efd088}.score-stat>span{display:flex;flex-direction:column;gap:5px}.score-stat small{font:9px Arial,sans-serif;letter-spacing:0;color:#8c9b96}.score-stat strong{color:#efd088}@media(max-width:850px){footer .stats{gap:12px;font-size:8px}.stats>span{gap:6px}.stats strong{font-size:23px}footer{height:98px}}@media(max-width:600px){footer .stats{gap:14px}.score-stat small{font-size:8px}}

#flood{width:100%;padding:13px;margin-bottom:18px;background:#24434d;border:1px solid #689da6;border-radius:5px;color:#d8f3ed;cursor:pointer}#flood:disabled{opacity:.4;cursor:default}

#grid.bucket{cursor:crosshair}#flood[aria-pressed="true"]{background:#477b80;border-color:#b4ebe1}#bucket-hint{position:absolute;top:12px;left:12px;right:12px;padding:10px;background:#24434de8;color:#d8f3ed;font:12px Arial,sans-serif;pointer-events:none;border-radius:5px}

#discovery-reveal{position:absolute;z-index:4;top:15%;left:50%;transform:translateX(-50%);width:min(320px,85%);padding:24px 16px;background:#1c202ef5;border:1px solid #c7b7ed;border-radius:12px;box-shadow:0 0 50px #bdadf755;color:#e6ddff;text-align:center;pointer-events:none;display:grid;gap:12px;font:12px Arial,sans-serif}#discovery-reveal[hidden]{display:none}.black-diamond{font-size:52px;color:#020305;text-shadow:0 0 3px #fff,0 0 18px #d6c8ff}#discovery-reveal.celebrate{animation:discovery-reveal 4s both}@keyframes discovery-reveal{0%{opacity:0;transform:translateX(-50%) scale(.65)}12%,80%{opacity:1;transform:translateX(-50%) scale(1)}100%{opacity:0;transform:translateX(-50%) scale(1.04)}}
