:root{font-family:Arial,Helvetica,sans-serif;color:#f6eee4;background:#243043;color-scheme:dark;--line:#8b99a6;--gold:#ffd098;--dim:#dce6ec}*{box-sizing:border-box}html,body,#root{height:100%;margin:0;overflow:hidden}button,select{font:inherit}.game{height:100vh;height:100dvh;width:100%;display:flex;flex-direction:column;gap:11px;overflow:hidden;padding:max(12px,env(safe-area-inset-top)) max(15px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(15px,env(safe-area-inset-left));background:radial-gradient(ellipse at 10% 0,#545c68,#243043 65%)}.game:fullscreen{width:100%;height:100%}header{display:flex;justify-content:space-between;align-items:center;gap:7px;border-bottom:1px solid var(--line);padding:2px 2px 10px;flex:none}.kicker{font:700 10px/1.2 monospace;letter-spacing:.16em;color:var(--gold)}h1{font:400 clamp(26px,4.8vw,54px)/1.03 Georgia,serif;margin:3px 0 0}h1 i{color:var(--gold)}button,select{min-height:34px;border:1px solid #a2a7b0;border-radius:7px;background:#4c5b6c;color:#f9f3e6;padding:4px 6px;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}button:hover:not(:disabled){background:#607181}button:disabled{cursor:default;opacity:.45}button:focus-visible,select:focus-visible{outline:2px solid #ffd7a3;outline-offset:2px}button[aria-pressed=true]{background:#867563;border-color:#ffdc9f}header button{background:#3b485d}.primary{background:#e8bd95;color:#343842;border-color:#ffdfad}.primary:hover:not(:disabled){background:#ffd6a1}.work{display:grid;grid-template-columns:minmax(0,1fr) minmax(315px,409px);gap:11px;min-height:0;flex:1}.scene{position:relative;isolation:isolate;min-width:0;min-height:0;overflow:hidden;border:1px solid var(--line);border-radius:15px;background:#213043}.gl,.fallback{position:absolute;inset:0}.gl canvas{width:100%;height:100%;display:block}.fallback{display:grid;place-items:center;padding:13px}.fallback .sheet{width:min(97%,620px);max-height:85%}.scene-top,.scene-bottom{position:absolute;left:11px;right:11px;display:flex;justify-content:space-between;gap:5px;pointer-events:none;font:700 9px monospace;letter-spacing:.08em;color:#ffe4b9}.scene-top{top:11px}.scene-bottom{bottom:11px}.scene-top span,.scene-bottom span{padding:5px;border:1px solid #8b99a7;border-radius:4px;background:#425167}.desk{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#a6adb8 #46566b;border:1px solid var(--line);border-radius:15px;background:#425167;display:flex;flex-direction:column;gap:7px;padding:12px}.desk>*{flex:none}.desk-head strong{display:block;font:24px Georgia,serif;margin-top:2px}.intro,.result p{margin:0;color:var(--dim);font-size:12px;line-height:1.35}.two,.four,.actions{display:grid;gap:5px}.two{grid-template-columns:1fr 1fr}.four{grid-template-columns:repeat(4,1fr)}.actions{grid-template-columns:repeat(3,1fr)}.two select{min-width:0;width:100%}.four small{display:block;font:9px monospace;color:#ffe4c3}.joints>div{display:grid;gap:2px;background:#536175;border:1px solid #8d9ba8;border-radius:6px;padding:4px 3px;font:700 10px monospace;text-align:center}.joints>div[data-match=true]{border-color:#afebc5;background:#4a6b68}.result{background:#536376;border:1px solid #94a2af;border-left:4px solid #bbc2c6;border-radius:7px;padding:6px 8px}.result strong{font:700 16px Georgia,serif}.result[data-result=pass]{border-left-color:#b2edbe}.result[data-result=slip],.result[data-result=incomplete]{border-left-color:#ffab90}.sheet{display:block;width:100%;max-height:192px;background:#34475e;border:1px solid #8d99a7;border-radius:8px}.sheet text{font:700 8px monospace;fill:#ffe8c1}.sheet .letter{font-size:17px;fill:#372f37}.sheet .face{font-size:10px;fill:#333340}.notice{font-size:12px}.notice button{min-height:25px}@media(max-width:690px)and (orientation:portrait){.work{grid-template-columns:1fr;grid-template-rows:minmax(130px,37%) minmax(0,1fr);gap:7px}.game{gap:7px;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}.desk{padding:8px;gap:6px}}@media(max-height:485px)and (orientation:landscape){.game{gap:6px}.work{grid-template-columns:minmax(0,1fr) minmax(268px,45%);gap:7px}header{padding-bottom:5px}h1{font-size:26px}.desk{padding:8px;gap:6px}.desk-head strong{font-size:19px}}
