/* Staged local 海戦ゲーム. These selectors never change the shared shell. */
.duel-sea{width:100%;min-width:0;max-width:380px;margin-inline:auto;color:var(--ink,#24382e)}
.duel-sea *{box-sizing:border-box}
.duel-sea button{min-width:44px;min-height:44px;font:inherit;line-height:1.4;touch-action:manipulation;-webkit-tap-highlight-color:transparent;cursor:pointer}
.duel-sea button:focus-visible,.duel-sea-scroll:focus-visible,.duel-sea-rules summary:focus-visible{outline:3px solid #775b24;outline-offset:2px}
.duel-sea button:disabled{cursor:default}
.duel-sea-primary,.duel-sea-secondary{border:1px solid #a9bba0;border-radius:11px;background:#dce9d2;color:#315542;padding:10px 12px;font-weight:800!important}
.duel-sea-primary:not(:disabled):hover{background:#cddfc0;border-color:#6b895f}
.duel-sea-secondary{background:#f4e6c8;color:#795536;border-color:#c7b48c}
.duel-sea-secondary:not(:disabled):hover{background:#ecdbb5;border-color:#aa8a55}
.duel-sea-primary:disabled,.duel-sea-secondary:disabled{opacity:.45}
.duel-sea-private{margin:0 0 8px;font-size:12px;line-height:1.6;text-align:center;color:#66563d}
.duel-sea-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.duel-sea-topline p{margin:0;font-size:14px;font-weight:750}
.duel-sea-scroll{max-width:100%;max-height:300px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch;border:1px solid #afc4bb;border-radius:8px;padding:0;background:#e7efe5}
.duel-sea-grid{display:grid;grid-template-columns:28px repeat(10,44px);grid-template-rows:28px repeat(10,44px);width:468px;background:#e7efe5}
.duel-sea-axis{display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:750;line-height:1;background:#dae5d8;color:#425e51;z-index:2}
.duel-sea-axis-top{position:sticky;top:0;border-bottom:1px solid #a7bdae}
.duel-sea-axis-left{position:sticky;left:0;border-right:1px solid #a7bdae}
.duel-sea-corner{position:sticky;left:0;top:0;z-index:3}
.duel-sea-cell{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px!important;min-height:44px!important;padding:0;margin:0;border:1px solid #c6d8cd;border-radius:0;background:#eff5ea;color:#3e5e51;position:relative;opacity:1!important;font-size:16px!important;font-weight:750!important}
.duel-sea-cell:not(:disabled):hover{background:#e1ecd6}
.duel-sea-ship{background:#d2dfc3;color:#34543d;border-color:#a8bea0}
.duel-sea-preview{background:#f1eac7}
.duel-sea-selected{outline:2px dashed #7b6424;outline-offset:-4px;background:#f4e1a6!important}
.duel-sea-hit{background:#f0ddc7;color:#804730}
.duel-sea-miss{background:#e1ecdf;color:#526e65;font-size:30px!important;font-weight:900!important}
.duel-sea-sunk{border:2px solid #936b45;background:#e6c7a8}
.duel-sea-confirm{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,auto);gap:8px;align-items:center;margin-top:10px}
.duel-sea-selection{margin:0;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.duel-sea-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.duel-sea-tools button:last-child{grid-column:1/-1}
.duel-sea-fleet{display:grid;grid-template-columns:1fr 1fr;gap:6px;list-style:none;margin:12px 0 0;padding:0;font-size:12px;line-height:1.6}
.duel-sea-fleet li{padding:6px 8px;border:1px solid #d5dfcc;border-radius:8px;background:#f4f5eb}
.duel-sea-small{display:block;font-size:11px}
.duel-sea-placed{color:#35573e}
.duel-sea-unplaced{color:#686c5b}
.duel-sea-caption{text-align:center;font-size:13px;font-weight:750;line-height:1.6;margin:0 0 8px}
.duel-sea-legend{font-size:12px;line-height:1.7;text-align:center;margin:10px 0 8px}
.duel-sea-progress{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 12px;list-style:none;margin:0;padding:0;font-size:11px;line-height:1.6}
.duel-sea-rules{font-size:12px;line-height:1.8;margin-top:10px;border-top:1px solid #d9dfcf;color:var(--muted,#617267)}
.duel-sea-rules summary{min-height:44px;padding:10px 8px;cursor:pointer}
.duel-sea-rules p{margin:0 8px 10px}
.duel-sea-handoff,.duel-sea-feedback,.duel-sea-finished{padding:24px 14px;border:1px solid #ccd7c1;border-radius:16px;background:#f4f5e9;text-align:center;font-size:14px;line-height:1.8}
.duel-sea-handoff p,.duel-sea-feedback p,.duel-sea-finished p{margin:0 0 16px}
.duel-sea-handoff button,.duel-sea-feedback button{width:100%;min-height:52px}
.duel-sea-report{font-size:18px;font-weight:800;color:#3f6045}
@media(max-width:360px){.duel-sea-confirm{grid-template-columns:1fr}.duel-sea-fleet{grid-template-columns:1fr}.duel-sea-topline{gap:6px}}
@media(prefers-reduced-motion:reduce){.duel-sea-scroll{scroll-behavior:auto}}
