:root{font-family:system-ui,sans-serif;color:#fbefda;background:#3a5063;color-scheme:dark;--line:#8fa2b0;--paper:#edc398;--pale:#dceac0;--mono:ui-monospace,SFMono-Regular,Consolas,monospace}*{box-sizing:border-box}body,#root{width:100%;height:100%;margin:0;overflow:hidden}button{min-height:44px;font:inherit;color:inherit;background:#526d80;border:1px solid #a0b0b7;border-radius:5px;cursor:pointer}button:not(:disabled):hover{filter:brightness(1.14)}button:disabled{opacity:.49;cursor:default}button:focus-visible{outline:3px solid #fff3b1;outline-offset:2px}.game{height:100vh;height:100dvh;width:100%;display:grid;grid-template-rows:auto minmax(0,1fr);padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overflow:hidden;background:#486478}header{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#66586a;border-bottom:1px solid #b9a2ab;padding:10px clamp(9px,2vw,22px);z-index:1}.brand{display:flex;align-items:center;gap:9px;min-width:0}.seal{display:grid;place-content:center;flex:none;width:45px;height:45px;background:#e9be99;color:#524d5d;border-radius:6px;font-size:32px}.brand p,.mono,.strip,.stamp,.legend,.limits,.bounds,.results{font:700 10px/1.25 var(--mono);letter-spacing:.079em}.brand p{color:#efd1ac;margin:0 0 3px}.brand h1{margin:0;font-size:clamp(21px,4vw,34px);line-height:1;letter-spacing:-.055em}.full{flex:none;background:#5e5366;border-color:#bcabb1;padding:0 8px;font-size:13px;font-weight:750}.full i{font-style:normal;color:var(--paper);font-size:16px}.layout{display:grid;min-height:0;grid-template-columns:minmax(0,1fr) clamp(310px,34vw,460px)}.lab{display:grid;min-width:0;min-height:0;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;padding:clamp(8px,2vw,22px)}.strip,.legend{display:flex;justify-content:space-between;align-items:center;gap:5px;color:#eae8d5}.strip b{background:#ebc69e;color:#4a5060;margin-right:4px;padding:3px 5px;border-radius:3px}.legend{border-top:1px solid var(--line);padding-top:4px;flex-wrap:wrap}.legend button{font-size:11px;font-weight:740;padding:0 8px}.case{position:relative;min-height:0;overflow:hidden;border:1px solid #8aa5b5;border-radius:8px;background:radial-gradient(ellipse at 45% 44%,#7590a0,#4e6981 75%);box-shadow:inset 0 0 34px #3f566d}.canvas,.plan{position:absolute;inset:0;width:100%;height:100%}.canvas canvas{width:100%;height:100%;display:block}.plan{padding:clamp(10px,3vw,39px)}.stamp{position:absolute;color:#eee9d2;pointer-events:none}.stamp b{width:6px;height:6px;display:inline-block;background:var(--paper);border-radius:2px}.stamp.top{top:11px;left:11px}.stamp.bottom{bottom:11px;right:11px}.desk{min-height:0;overflow:auto;overscroll-behavior:contain;background:#5a7486;border-left:1px solid #9cafb6;padding:clamp(8px,2vw,19px);scrollbar-color:#abbcc2 #5a7486}.readout{min-height:79px;border-bottom:1px solid var(--line);padding:0 0 7px;margin:0 0 6px}.readout .mono{margin:0;color:#f1caa5}.readout h2{font-size:clamp(21px,2.8vw,29px);letter-spacing:-.05em;line-height:1.06;margin:3px 0 4px}.readout p{font-size:12px;line-height:1.35;color:#eceee5;margin:0}.slots,.rack,.row,.results{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:6px 0}.slots button,.rack button,.row button,.fullwidth{font-size:12px;font-weight:745}.slots small,.rack small{display:block;font-size:9px;margin-top:3px}.rack button b{font-size:15px}[aria-pressed=true]{background:#dce9c3;color:#475b5f;border-color:#eff4da;box-shadow:inset 0 -3px #b9c5aa}kbd{font:750 10px var(--mono);margin-left:3px;padding:1px 4px;border:1px solid #aab8b7;border-radius:3px}.gold{background:var(--paper);border-color:#ffdab7;color:#4e5260}.wide{grid-column:1/-1}.fullwidth{width:100%;display:block;text-align:left;padding:0 7px;margin:5px 0}.limits,.bounds{display:flex;justify-content:space-between;gap:4px;background:#4b677b;border:1px solid #94a8b4;border-radius:4px;padding:5px;margin:5px 0;color:#e4eadb;font-size:9px}.bounds b{color:#f2cea6}.results{grid-template-columns:1fr;font-size:9px}.results article{padding:5px;border:1px solid #9aaeb8;border-radius:4px;background:#4e6a7f}.results .good{border-color:#c0d3a7}.results .bad{background:#735e64;border-color:#d1a89d}.results p{display:flex;justify-content:space-between;gap:4px;margin:0;color:#f4e5c9}.results strong{display:block;margin-top:3px;color:#e5edcc}.notice{font-size:12px;color:var(--paper)}@media(orientation:portrait)and (max-width:740px){header{padding:6px 8px}.seal{width:34px;height:34px;font-size:23px}.brand{gap:6px}.brand p{font-size:8px}.brand h1{font-size:clamp(20px,5vw,24px)}.full{font-size:12px;padding-inline:5px}.layout{grid-template-columns:1fr;grid-template-rows:minmax(145px,42%) minmax(0,1fr)}.lab{padding:6px 7px;gap:4px}.desk{padding:6px 7px 10px;border-left:0;border-top:1px solid #9aafb8}.strip,.stamp,.legend{font-size:8px}.stamp.top{top:6px;left:6px}.stamp.bottom{bottom:6px;right:6px}.readout{min-height:0}}@media(orientation:landscape)and (max-height:445px){header{padding:3px 8px}.seal{width:34px;height:34px;font-size:22px}.brand p{font-size:8px}.brand h1{font-size:22px}.layout{grid-template-columns:minmax(0,1fr) minmax(253px,41%)}.lab{padding:5px;gap:4px}.desk{padding:6px 7px}.strip,.stamp,.legend{font-size:8px}.readout{min-height:0}.legend button{font-size:10px}}@media(max-width:350px){.full i{display:none}.legend{font-size:7px}}
