.sea-theory-lesson{border-radius:1rem;margin-block:1rem;padding:clamp(1rem,3vw,1.8rem);scroll-margin-top:1.5rem}.sea-theory-layout{grid-template-columns:minmax(0,1.2fr) minmax(16rem,.8fr);align-items:start;gap:clamp(1rem,3vw,2.5rem);display:grid}.sea-theory-layout>*{min-width:0}.sea-theory-lesson[data-sea-lesson=statistics] .sea-theory-layout{display:block}.sea-theory-visual{justify-self:center;width:100%;max-width:25rem}.sea-theory-visual .sea-board{max-width:23rem}.sea-theory-lesson[data-sea-lesson=joint]{grid-template-columns:minmax(0,1fr) minmax(28rem,1.1fr);gap:1rem 2.5rem;display:grid}.sea-theory-lesson[data-sea-lesson=joint] .sea-theory-layout{display:contents}.sea-theory-lesson[data-sea-lesson=joint] .sea-theory-layout>div:first-child{grid-area:1/1/span 2;min-width:0}.sea-theory-lesson[data-sea-lesson=joint] .sea-theory-visual{grid-area:1/2}.sea-theory-lesson[data-sea-lesson=joint] .sea-theory-arrangements{grid-area:2/2}.sea-theory-lesson [data-theory-statistics]:empty{display:none}.sea-theory-visual--comparison{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;max-width:none;display:grid}.sea-theory-visual--comparison>.sea-caption{grid-row:1;margin-block:0 .5rem!important}.sea-theory-visual--comparison>[data-theory-board]{grid-area:2/1}.sea-theory-visual--comparison>[data-theory-second-board]{grid-area:2/2}.sea-theory-visual>.sea-caption:not(:first-child){margin-top:1rem}.sea-theory-controls{margin-block:.8rem}.sea-theory-choice{flex-wrap:wrap;gap:.45rem;width:100%;display:flex}.sea-theory-choice legend{width:100%;font-size:.85rem}.sea-theory-choice .games-option{flex:8rem}.sea-theory-detail summary{cursor:pointer;min-height:44px;padding-block:.6rem;list-style-position:inside;display:list-item}.sea-theory-detail p{color:var(--muted);font-size:.9rem}.sea-theory-arrangements{grid-template-columns:repeat(4,minmax(0,1fr));gap:.9rem;display:grid}.sea-theory-arrangements>p{grid-column:1/-1}.sea-theory-arrangements figure{min-width:0;margin:0}.sea-theory-arrangements figcaption{color:var(--muted);text-align:center;margin-top:.3rem;font-size:.75rem}.sea-theory-arrangements .sea-board{--sea-axis:1rem;max-width:8rem}.sea-theory-arrangements .sea-cell{cursor:default}.sea-theory-arrangements .sea-axis,.sea-theory-arrangements .sea-row-label{font-size:.6rem}.sea-theory-arrangements .sea-board--discarded{opacity:.35}.sea-theory-arrangements .sea-board--discarded .sea-hull{background:var(--muted);border-color:var(--muted)}.sea-theory-fraction-label{font-size:.85rem}.sea-theory-counts{grid-template-columns:minmax(0,1fr) repeat(4,auto);align-items:center;gap:.45rem .7rem;width:100%;font-size:.85rem;display:grid}.sea-theory-counts b{font-variant-numeric:tabular-nums;font-size:1rem}.sea-theory-bucket{grid-template-columns:minmax(5rem,auto) minmax(3rem,1fr) auto;align-items:center;gap:.6rem;margin-block:.4rem;font-size:.9rem;display:grid}.sea-theory-bucket-meter{background:var(--shade);border:1px solid var(--control-edge);border-radius:1rem;height:.65rem;overflow:hidden}.sea-theory-bucket-meter i{background:var(--sea-water-color);height:100%;display:block}.sea-theory-statistics{border-collapse:collapse;width:100%;margin-top:1rem;font-size:.9rem}.sea-theory-statistics th,.sea-theory-statistics td{border-bottom:1px solid var(--control-edge);text-align:start;font-variant-numeric:tabular-nums;padding:.65rem}.sea-theory-statistics th:first-child{width:50%}.sea-theory-destinations{margin-block:1.5rem}@media (max-width:760px){.sea-theory-lesson[data-sea-lesson=joint]{display:block}.sea-theory-layout,.sea-theory-lesson[data-sea-lesson=joint] .sea-theory-layout{flex-direction:column;gap:.3rem;display:flex}.sea-theory-layout>div:first-child{display:contents}.sea-theory-layout>div:first-child>.games-intro-note{margin:0}.sea-theory-layout .sea-theory-controls{margin-block:.1rem .5rem}.sea-theory-layout .games-intro-note,.sea-theory-layout h2,.sea-theory-layout p,.sea-theory-controls{width:100%}.sea-theory-layout .sea-theory-visual{order:1;align-self:center}.sea-theory-layout .sea-feedback{order:2}.sea-theory-layout [data-theory-value]{order:3}.sea-theory-layout [data-theory-buckets]{order:4}.sea-theory-layout .sea-theory-detail{order:5}.sea-theory-visual{max-width:23rem}.sea-theory-visual--comparison{flex-direction:column;display:flex}.sea-theory-arrangements{grid-template-columns:repeat(2,minmax(0,1fr))}.sea-theory-statistics th,.sea-theory-statistics td{padding:.5rem .25rem}}.sea-play-toolbar{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.7rem;display:flex}.sea-play-toolbar>div{min-width:0}.sea-play-toolbar>button{flex-shrink:0}.sea-play-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:clamp(.7rem,2vw,1.5rem);display:grid}.sea-play-board-panel{min-width:0}.sea-board-heading{justify-content:space-between;align-items:baseline;gap:.5rem;display:flex}.sea-board-heading span{color:var(--muted);white-space:nowrap;font-size:.85rem}.sea-placement{gap:.7rem;min-width:0;display:grid}.sea-placement>.games-button--primary{justify-self:start}.sea-ship-tray{grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;display:grid}.sea-ship-piece{touch-action:none;flex-wrap:wrap}.sea-ship-piece>span:first-child{gap:2px;display:inline-flex}.sea-ship-piece i{background:var(--accent);border-radius:3px;width:.8rem;height:.8rem;display:inline-block}.sea-ship-piece:disabled{visibility:hidden}[data-sea-preview-valid=false] [data-sea-own-board] .sea-cell--selected:after{border-color:var(--games-x)}.sea-play-tabs{margin-block:.75rem}.sea-play-bot-controls{margin-block:.8rem}.sea-handoff{text-align:center;padding:2rem}.sea-handoff>svg{width:4rem;height:4rem;color:var(--accent)}.sea-handoff>p{max-width:36rem;margin-inline:auto}.sea-result{margin-bottom:1rem}.sea-live-feedback{min-height:1.5em}.sea-shot-history{flex-wrap:wrap;gap:.5rem 1.5rem;max-height:12rem;padding-left:1.8rem;font-size:.85rem;display:flex;overflow:auto}[data-sea-play][data-phase=setup] .sea-play-tabs{display:none}@media (min-width:761px){.sea-play-tabs{display:none}}@media (max-width:760px){.sea-play-toolbar{gap:.5rem}.sea-play-toolbar>button{min-width:44px;max-width:7rem;padding:.4rem}.sea-play-workspace{grid-template-columns:minmax(0,1fr)}[data-sea-play]:is([data-phase=battle],[data-phase=finished])[data-board-view=target] [data-sea-own-panel],[data-sea-play]:is([data-phase=battle],[data-phase=finished])[data-board-view=own] [data-sea-target-panel]{display:none}.sea-ship-tray{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:380px){.sea-ship-tray{grid-template-columns:repeat(2,minmax(0,1fr))}.sea-play-toolbar{flex-wrap:wrap}}@media (min-width:600px) and (max-width:760px) and (max-height:500px){[data-sea-play][data-phase=battle]{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;column-gap:1rem;display:grid}[data-sea-play][data-phase=battle] .sea-play-toolbar{grid-area:1/1;margin-bottom:0}[data-sea-play][data-phase=battle] .sea-live-feedback{grid-area:2/1}[data-sea-play][data-phase=battle] .sea-play-tabs{grid-area:3/1}[data-sea-play][data-phase=battle] .sea-play-bot-controls{grid-area:4/1}[data-sea-play][data-phase=battle] .sea-play-workspace{grid-area:1/2/span 4}[data-sea-play][data-phase=battle] .sea-play-workspace .sea-board{max-width:min(100%,100svh - 5.5rem)}[data-sea-play][data-phase=battle] .sea-board-heading h3{font-size:1rem}[data-sea-play][data-phase=battle]>:is(details,[data-sea-battle-help]){grid-column:1/-1}}.sea-lab-top{grid-template-columns:minmax(14rem,.7fr) minmax(0,1.8fr);align-items:start;gap:1.2rem;display:grid}.sea-lab-tools,.sea-lab-main{min-width:0}.sea-lab-tools .games-options{grid-template-columns:minmax(0,1fr);display:grid}.sea-lab-tools fieldset:last-of-type .games-options{grid-template-columns:repeat(2,minmax(0,1fr))}.sea-lab-tools .games-option{min-width:0}.sea-lab-tools .games-option span{overflow-wrap:anywhere}.sea-lab-boards{align-items:start;margin-top:0}.sea-lab-boards h2{min-height:2.7rem;font-size:1rem}.sea-lab-boards .sea-board{max-width:16rem}.sea-lab-history button:not([data-sea-lab-action=reset]){width:44px;padding:.4rem}.sea-lab-history{margin-top:.6rem}.sea-lab-main [data-sea-lab-feedback][data-result=neutral]{min-height:0;color:var(--muted);background:0 0;border:0;padding:0;font-size:.85rem}.sea-lab-simulation{margin-top:1rem}.sea-arrangement-view{max-width:25rem}.sea-bucket{grid-template-columns:7rem minmax(2rem,1fr) 4.5rem;align-items:center;gap:.5rem;margin-block:.5rem;font-size:.85rem;display:grid}.sea-bucket-track,.sea-stat-bar{background:var(--panel);border:1px solid var(--control-edge);border-radius:.3rem;height:.7rem;overflow:hidden}.sea-bucket-track i,.sea-stat-bar i{background:var(--sea-water-color);height:100%;display:block}.sea-stat-rows{grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin-block:1rem;display:grid}.sea-stat-row{border:1px solid var(--control-edge);border-radius:.7rem;gap:.45rem;padding:.85rem;display:grid}.sea-stat-row strong{font-variant-numeric:tabular-nums;font-size:1.8rem}.sea-stat-row span{font-size:.8rem}.sea-trial-table{max-width:100%;overflow:auto}.sea-trial-table table{border-collapse:collapse;width:100%;font-size:.85rem}.sea-trial-table th,.sea-trial-table td{border-bottom:1px solid var(--control-edge);text-align:start;padding:.5rem}@media (max-width:700px){.sea-lab-top{grid-template-columns:minmax(0,1fr)}.sea-lab-boards{grid-template-columns:repeat(2,minmax(0,1fr))}.sea-stat-rows{grid-template-columns:1fr}.sea-stat-row{grid-template-columns:1fr auto}.sea-stat-row h3,.sea-stat-row .sea-stat-bar{grid-column:1/-1}.sea-bucket{grid-template-columns:5.5rem minmax(1rem,1fr) 4rem}}
