:root{font-family:system-ui,-apple-system,'Hiragino Kaku Gothic ProN',sans-serif;color:#2a2328;color-scheme:light;background:#fff}*{box-sizing:border-box}body{margin:0;height:100svh;height:100dvh;display:flex;flex-direction:column;-webkit-tap-highlight-color:transparent}.game-nav-header{flex-shrink:0}button{font:inherit;min-height:44px;border:1px solid #dfdce0;border-radius:8px;padding:8px 12px;color:inherit;background:#f3f4f6;touch-action:manipulation}button:disabled{opacity:.5}[hidden]{display:none!important}.shell{width:100%;max-width:450px;flex:1;min-height:0;margin:auto;padding:4px 6px max(5px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:5px}.field{flex:1;min-height:260px;position:relative;overflow:hidden;border:1px solid #dce3dd;border-radius:12px;background:#eef5ef}#scene{display:block;width:100%;height:100%}.hud{position:absolute;top:5px;left:8px;right:8px;display:flex;gap:8px;align-items:center;font-size:12px}.hud span{margin-left:auto}.hud button{font-size:12px}.panel{position:absolute;inset:0;display:flex;background:#fff;text-align:center;overflow:auto;padding:16px}.panel>div{margin:auto;width:100%;display:flex;flex-direction:column;align-items:center;gap:12px}.panel h2{font-size:19px;margin:0}.panel p{font-size:13px;line-height:1.6;margin:0}.panel button{width:100%;font-weight:700}.panel img,.companion img{object-fit:contain}#record{color:#6e626a}#unused{min-height:58px;touch-action:none;user-select:none;-webkit-user-select:none;font-weight:700}#unused[aria-pressed=true]{background:#e5efe8;border-color:#789c86}.companion{display:flex;gap:8px;align-items:center}.companion b{font-size:11px;color:#6e626a}.companion p{font-size:12px;line-height:1.5;margin:3px 0}#save-note{font-size:10px;color:#6e626a;margin:0}@media(max-height:650px){.companion img{width:42px;height:42px}.panel img{width:70px;height:70px}.panel>div{gap:7px}.field{min-height:220px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.field{background:#f5f4f0;border-color:#e2dfd8}#scene{touch-action:none;user-select:none}#control{height:62px;flex-shrink:0;position:relative;overflow:hidden;background:#f3f4f6;border:1px solid #dfdce0;border-radius:8px;touch-action:none;user-select:none;-webkit-user-select:none;text-align:center;font-size:13px;padding-top:8px;color:#6e626a}#control:before{content:"";position:absolute;left:22px;right:22px;bottom:15px;height:3px;background:#d8d6d8;border-radius:2px}#thumb{position:absolute;bottom:7px;left:50%;width:38px;height:20px;border-radius:8px;background:#b68b76;border:2px solid #fff;transform:translateX(-50%)}.hud{z-index:1}.panel{z-index:2}

/* 縦画面の短い端末でも盤面を優先する。 */
@media(max-height:700px){.shell{gap:3px}.companion img{width:42px;height:42px}.panel img{width:80px;height:80px}.panel>div{gap:8px}#control{height:56px}.field{min-height:220px}}

#control[aria-disabled="true"]{opacity:.55}
