.game-topline,.duel-roundline{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:22px 0;color:var(--muted);font-size:13px}.game-tag{color:var(--gold);letter-spacing:.1em;font-size:11px;font-weight:700}.boom-layout{align-items:start;grid-template-columns:minmax(180px,.7fr) minmax(0,1fr) minmax(0,1fr);gap:22px}.board-wrap{min-width:0}.field-label{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.field-label span,.board-hint{font-size:11px;color:var(--muted)}.game-grid{padding:5px;gap:3px;aspect-ratio:1}.game-grid .cell{padding:0;min-width:0;aspect-ratio:1;border:1px solid #353d31;border-radius:2px;background:#172118;color:#e9e9df;display:grid;place-items:center;font-size:clamp(11px,1.4vw,21px);line-height:1}.game-grid .cell.occupied{background:#75601e;border-color:#e6b641;color:#fff2c2}.game-grid .cell.hit{background:#7c322b;border-color:#ed8274;color:#fff;font-weight:800}.game-grid .cell.miss{background:#252a28;color:#b4c0b8;font-size:23px}.game-grid .cell.preview{outline:2px solid var(--gold);outline-offset:-2px}.game-grid .cell.invalid{outline:2px solid #ff7268;outline-offset:-2px}.game-grid .cell:disabled{cursor:default;opacity:1}.game-grid .cell:not(:disabled):hover{border-color:var(--gold);background:#4e4926}.game-grid .cell:focus-visible{outline:2px solid white;outline-offset:0;z-index:1}.squad #fleet-options{display:grid;gap:6px;margin-bottom:16px}.fleet-option{display:flex;justify-content:space-between;gap:10px;text-align:left;background:#171717;border:1px solid #333;border-radius:4px;padding:10px;color:#ddd;width:100%;font-size:12px}.fleet-option[aria-pressed=true]{border-color:var(--gold);color:var(--gold)}.fleet-option:disabled{opacity:.5}.squad .button{font-size:12px;width:100%;margin:7px 0 0}.game-status{padding:16px 18px;border-left:3px solid var(--gold);background:#17150f;line-height:1.6;font-size:14px;margin:24px 0 0}.game-status[data-kind=error]{border-color:#ed8274;background:#251714}.game-status[data-kind=win]{border-color:#8cd09a;background:#142219}.game-panel{border:1px solid var(--line);border-radius:8px;background:#121212;padding:28px;margin:20px 0}.game-panel h3{font-size:28px;margin:8px 0 18px}.game-panel .button{margin:10px 8px 0 0}.search-ball{font-size:40px;color:var(--gold);display:inline-block;animation:game-spin 2s linear infinite}.round-clock{display:grid;place-items:center;width:64px;height:64px;border:3px solid var(--gold);border-radius:50%;color:var(--gold);font-size:24px;font-variant-numeric:tabular-nums}.round-clock.urgent{border-color:#ed8274;color:#ed8274}#duel-controls{border:0;padding:24px 0;margin:0;min-width:0}#duel-controls legend{padding-top:22px;font-weight:600}.action-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0 24px}.action-card{display:grid;text-align:left;gap:12px;padding:22px;color:white;background:#141414;border:1px solid #363636;border-radius:6px}.action-card>span{font-size:26px;color:var(--gold)}.action-card strong{font-size:22px}.action-card small{color:var(--muted);line-height:1.4}.action-card[aria-pressed=true]{border-color:var(--gold);background:#242012}.action-card:disabled{cursor:default}.tp-label{display:flex;justify-content:space-between;gap:10px}.tp-label output{color:var(--gold);font-weight:700}#duel-tp{display:block;width:100%;accent-color:var(--gold);margin:22px 0 30px;height:24px}#duel-confirm{min-width:230px}#duel-reveal{border-color:var(--gold);line-height:1.7}#duel-history{padding-left:20px;line-height:1.7;color:var(--muted)}.duel-history{margin-top:26px}#duel-reconnect{margin-top:16px}.game-panel[hidden],[hidden]{display:none!important}button:disabled{cursor:not-allowed}.night-pitch .find-opponent{max-width:90%}
@keyframes game-spin{to{transform:rotate(360deg)}}@media(max-width:1250px){.boom-layout{grid-template-columns:1fr 1fr}.squad{grid-column:1/-1}.squad #fleet-options{grid-template-columns:repeat(2,1fr)}.squad .button{width:auto;margin-right:8px}}@media(max-width:560px){.boom-layout{grid-template-columns:1fr}.squad #fleet-options{grid-template-columns:1fr}.squad .button{width:100%;margin-right:0}.game-grid .cell{font-size:20px}.action-card{padding:14px}.action-card strong{font-size:18px}.action-card small{font-size:11px}.game-panel{padding:18px}.duel-roundline{font-size:12px}.round-clock{width:50px;height:50px}.night-score{padding:20px 12px}.game-status{font-size:13px}#duel-confirm{width:100%;min-width:0}.game-topline{line-height:1.7}}
@media(prefers-reduced-motion:reduce){.search-ball{animation:none}}
#duel-reveal:not([hidden]){animation:reveal-result 2s ease-out}@keyframes reveal-result{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){#duel-reveal:not([hidden]){animation:none}}
.game-grid .cell.own-hit{box-shadow:inset 0 0 0 3px #ffb09f,0 0 10px rgba(237,130,116,.55)}
.game-grid .cell.enemy-hit{box-shadow:inset 0 0 0 3px #ffe08a,0 0 10px rgba(230,182,65,.55)}
.boom-result-banner{margin:22px 0;padding:18px;text-align:center;border:2px solid var(--gold);border-radius:8px;color:var(--gold);font-size:clamp(28px,5vw,54px);font-weight:800;letter-spacing:.08em}.boom-result-banner[data-kind=goal]{animation:boom-goal .45s ease-out}.boom-result-banner[data-kind=win]{border-color:#8cd09a;color:#8cd09a}.boom-result-banner[data-kind=loss]{border-color:#ed8274;color:#ed8274}@keyframes boom-goal{from{transform:scale(.8);opacity:.2}to{transform:scale(1);opacity:1}}
.night-score{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:8px;font-size:14px}.night-score b{color:var(--gold);font-size:24px}.night-score small{display:block;color:var(--muted);font-size:11px}.duel-roles,.duel-shots{display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:12px;margin:10px 0}.duel-shots{padding:14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.duel-shots em{color:var(--gold);font-style:normal}.action-card>span{display:flex;align-items:center;gap:12px;color:var(--gold);font-size:20px}.action-card output{min-width:28px;text-align:center}.action-card button{border:1px solid var(--line);border-radius:50%;background:#242012;color:var(--gold);width:28px;height:28px;font-size:20px;line-height:1}.action-card button:disabled{opacity:.35}.action-card small{display:block}.duel-shots span{flex:1}
.boom-layout{display:grid!important;grid-template-columns:230px minmax(0,1fr) minmax(0,1fr);gap:22px!important}
.boom-layout:not(.battle){grid-template-columns:230px minmax(0,1fr)!important}
.boom-layout:not(.battle) .opponent-board{display:none}
.boom-layout.battle{grid-template-columns:230px minmax(0,1fr) minmax(0,1fr)!important}
.squad{background:#131313;border:1px solid var(--line);border-radius:12px}
.fleet-option{display:flex!important;align-items:center;gap:10px!important;min-height:38px;padding:8px 10px!important;border:0!important;border-bottom:1px solid #2b2b2b!important;border-radius:0!important;background:transparent!important}
.fleet-option[aria-pressed=true]{background:rgba(253,185,19,.08)!important;border:1px solid var(--gold)!important;border-radius:8px}
.fleet-squares{display:flex;gap:2px;flex:none}.fleet-squares i{display:block;width:14px;height:14px;border-radius:2px}
.fleet-squares .goalkeeper{background:var(--gold)}.fleet-squares .defender{background:#4c7bd9}.fleet-squares .midfielder{background:#e3e3e3}.fleet-squares .forward{background:#c62f3a}
.fleet-name{flex:1}.fleet-count{color:var(--muted);font-size:12px}
.boom-placement-control{border-color:var(--gold)!important;color:#111!important;background:var(--gold)!important}
.boom-remaining{margin:10px 0 8px!important;font-size:12px!important;color:var(--muted);line-height:1.4}
.boom-progress{height:7px;background:#242424;border-radius:99px;overflow:hidden}.boom-progress i{display:block;height:100%;width:0;background:var(--gold)}
.fleet-option.defeated .fleet-name{text-decoration:line-through;color:var(--muted)}
.fleet-option.defeated .fleet-squares i{opacity:.35}.fleet-option.defeated .fleet-count{color:var(--gold)}
.boom-grid-shell{position:relative;padding:20px 0 0 22px}
.boom-columns{position:absolute;left:22px;right:0;top:0;display:grid;grid-template-columns:repeat(10,1fr);height:20px}
.boom-columns span,.boom-rows span{display:grid;place-items:center;color:var(--muted);font-size:10px}
.boom-rows{position:absolute;left:0;top:20px;bottom:0;width:22px;display:grid;grid-template-rows:repeat(10,1fr)}
.game-grid{padding:0!important;gap:0!important;border:2px solid rgba(255,255,255,.32)!important;background:#2b7a4b!important}
.game-grid .cell{border:1px solid rgba(255,255,255,.07)!important;border-radius:0!important;background:#2b7a4b!important;color:#fff!important;font-family:'Oswald',sans-serif!important;font-size:clamp(16px,1.7vw,24px)!important}
.game-grid .cell.occupied.goalkeeper{background:var(--gold)!important;color:#171717!important}
.game-grid .cell.occupied.defender{background:#4c7bd9!important;color:#fff!important}
.game-grid .cell.occupied.midfielder{background:#e7e7e7!important;color:#171717!important}
.game-grid .cell.occupied.forward{background:#c62f3a!important;color:#fff!important}
.game-grid .cell.own-hit{background:#c62f3a!important;color:#fff!important;box-shadow:inset 0 0 0 3px #fff!important}
.game-grid .cell.enemy-miss{background:#2b7a4b!important;color:#fff!important}
.game-grid .cell.enemy-miss::after{content:'×';color:#ff7268;font-size:clamp(12px,1.2vw,18px);font-weight:700;line-height:1}
.game-grid .cell.enemy-hit{background:#2b7a4b!important;color:#fff!important;box-shadow:none!important}
.game-grid .cell.enemy-hit::after{content:none}
.game-grid .cell.preview{background:var(--gold)!important;opacity:.65}
.game-grid .cell.invalid{background:#7c322b!important;animation:boom-shake .18s linear 2}
.game-grid .cell.last-shot{box-shadow:inset 0 0 0 3px var(--gold)!important;z-index:2}
@keyframes boom-shake{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}
@media(max-width:1250px){.boom-layout{grid-template-columns:230px minmax(0,1fr)!important}.boom-layout.battle{grid-template-columns:230px minmax(0,1fr)!important}.boom-layout.battle .opponent-board{grid-column:2}.boom-layout.battle .own-board{grid-row:2}.boom-layout.battle .opponent-board{grid-row:3}}
@media(max-width:640px){
 .boom-layout,.boom-layout:not(.battle),.boom-layout.battle{display:flex!important;flex-direction:column}
 .boom-layout .squad{order:3;width:100%}.boom-layout .own-board{order:2;width:100%}.boom-layout .opponent-board{order:1;width:100%}
 .boom-layout:not(.battle) .own-board{order:1}.boom-layout:not(.battle) .squad{order:2}
 .boom-grid-shell{padding-left:18px}.boom-columns{left:18px}.boom-rows{width:18px}
 .boom-columns span,.boom-rows span{font-size:9px}.game-grid .cell{font-size:18px!important}
}

.duel-lobby-pitch{position:relative;height:310px;border:1px solid #75977f;border-radius:14px;overflow:hidden;background:repeating-linear-gradient(90deg,#2b7a4b 0 8.33%,#256c42 8.33% 16.66%)}
.duel-pitch-lines{position:absolute;inset:14px;border:2px solid rgba(255,255,255,.4)}
.duel-pitch-lines:before{content:"";position:absolute;left:calc(50% - 1px);top:-2px;bottom:-2px;border-left:2px solid rgba(255,255,255,.4)}
.duel-pitch-lines:after{content:"";position:absolute;left:50%;top:50%;width:130px;height:130px;border:2px solid rgba(255,255,255,.4);border-radius:50%;transform:translate(-50%,-50%)}
.duel-lobby-goal{position:absolute;top:31%;width:44px;height:38%;border:3px solid rgba(255,255,255,.75)}.duel-lobby-goal-left{left:14px;border-left:0}.duel-lobby-goal-right{right:14px;border-right:0}
.duel-find-ball{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:0;background:transparent;color:white;text-align:center}
.duel-find-ball span{display:grid;place-items:center;width:92px;height:92px;margin:0 auto;border:3px solid var(--gold);border-radius:50%;font-size:48px;background:#0b0b0b}
.duel-find-ball b{position:absolute;left:50%;top:calc(50% + 71px);transform:translateX(-50%);white-space:nowrap;display:inline-block;padding:10px 18px;border-radius:999px;background:var(--gold);color:#111}
.duel-counters{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;margin:18px 0 10px}
.duel-counter{text-align:left}.duel-counter-right{text-align:right}.duel-counter b,.duel-goals b{font:800 52px/1 'Big Shoulders Display',sans-serif}
.duel-counter small{margin-left:8px;color:#f0929a;font-size:13px}.duel-counter span,.duel-goals span{display:block;margin-top:5px;color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.duel-goals{text-align:center}.duel-goals b{color:white}.duel-goals b:after{content:"";display:block}
.duel-pitch{position:relative;height:270px;margin-top:12px;border:1px solid rgba(255,255,255,.22);border-radius:12px;overflow:hidden;background:repeating-linear-gradient(90deg,#2b7a4b 0 8.33%,#256c42 8.33% 16.66%)}
.duel-pitch:before{content:"";position:absolute;left:2.5%;right:2.5%;top:12%;bottom:12%;border:2px solid rgba(255,255,255,.38)}
.duel-pitch:after{content:"";position:absolute;left:50%;top:12%;bottom:12%;border-left:2px solid rgba(255,255,255,.38)}
.duel-pitch-title{position:absolute;z-index:4;left:50%;top:18px;transform:translateX(-50%);font:800 30px/1 'Big Shoulders Display',sans-serif;text-transform:uppercase}
.duel-side-label{position:absolute;z-index:4;top:24px;font-size:11px;font-weight:800}.duel-side-left{left:28px}.duel-side-right{right:28px}
.duel-goal{position:absolute;z-index:3;top:35%;width:24px;height:31%;border:3px solid rgba(255,255,255,.8);background:rgba(255,255,255,.08)}
.duel-goal-left{left:2.5%;border-left:0}.duel-goal-right{right:2.5%;border-right:0}
.duel-goal.goal-you,.duel-goal.goal-left.flash-goal{box-shadow:0 0 28px 10px var(--gold)}.duel-goal.goal-opponent,.duel-goal.goal-right.flash-goal{box-shadow:0 0 28px 10px var(--gold)}
.duel-arrow{position:absolute;z-index:3;top:50%;width:15%;height:3px;background:rgba(255,255,255,.9)}.duel-arrow:after{content:"";position:absolute;top:-9px;border-top:11px solid transparent;border-bottom:11px solid transparent}
.duel-arrow-left{left:31%}.duel-arrow-left:after{right:-12px;border-left:14px solid rgba(255,255,255,.9)}.duel-arrow-right{right:31%}.duel-arrow-right:after{left:-12px;border-right:14px solid rgba(255,255,255,.9)}
.duel-stat{position:absolute;z-index:5;width:125px;height:44px;display:flex;align-items:center;justify-content:space-between;padding:4px 14px;border:2px solid #555;border-radius:999px;background:#111}
.duel-stat small{font-size:10px;font-weight:800;text-transform:uppercase}.duel-stat b{font:800 24px/1 'Big Shoulders Display',sans-serif}
.duel-you-attack,.duel-opponent-attack{top:43%}.duel-you-defence,.duel-opponent-defence{top:62%}
.duel-you-attack,.duel-you-defence{left:34%}.duel-opponent-attack,.duel-opponent-defence{right:34%}
.duel-stat.revealed{border-color:var(--gold)}.duel-stat.revealed b,.duel-stat.revealed small{color:var(--gold)}
.duel-ball-wrap{position:absolute;z-index:6;left:50%;top:53%;transform:translate(-50%,-50%);display:grid;place-items:center;width:98px;height:98px}
.duel-round-clock{position:absolute;inset:-6px;display:grid;place-items:center;border:6px solid var(--gold);border-radius:50%;background:#1119;color:white;font:800 18px 'Big Shoulders Display',sans-serif}
.duel-round-clock.urgent{border-color:#ed8274;color:#ed8274}.duel-round-clock.hidden-clock{display:none}
.duel-ball{font-size:44px;filter:drop-shadow(0 2px 2px #000)}
.duel-role-card{position:absolute;z-index:5;bottom:18px;width:190px;padding:12px 16px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(8,8,8,.78)}
.duel-role-you{left:28px}.duel-role-opponent{right:28px}.duel-role-card small{display:block;color:var(--gold);font-size:10px;font-weight:800}.duel-role-card b{display:block;margin-top:4px;font:800 24px/1 'Big Shoulders Display',sans-serif}
.duel-mobile-values{display:none}
.duel-below{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.75fr);gap:16px;margin-top:16px}
.duel-controls{margin:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:#131313;min-width:0}
.duel-choice-status{display:flex;align-items:center;gap:12px;margin-bottom:12px}.duel-status-chip{padding:7px 14px;border-radius:999px;background:var(--gold);color:#111;font:800 16px 'Big Shoulders Display',sans-serif}
.duel-choice-status div{line-height:1.2}.duel-choice-status small{display:block;color:var(--muted);margin-top:3px}
.duel-action-grid{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:12px}
.duel-action-card{padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#4a4d52}.duel-action-card.active-choice{border-color:var(--gold)}
.duel-action-head{display:flex;justify-content:space-between;align-items:center}.duel-action-head span,.duel-action-card small{color:var(--muted);font-size:11px}.duel-action-head b{padding:2px 7px;border:1px solid var(--gold);border-radius:99px;color:var(--gold);font-size:10px}
.duel-stepper{display:flex;align-items:center;justify-content:space-between;margin:6px 0}.duel-stepper button{width:44px;height:44px;border:1.5px solid var(--line);border-radius:50%;background:transparent;color:white;font-size:24px}.duel-stepper button[data-step="1"]{border-color:var(--gold);color:var(--gold)}.duel-stepper button:disabled{opacity:.35}.duel-stepper output{font:800 44px/1 'Big Shoulders Display',sans-serif}
.duel-confirm-block{display:flex;flex-direction:column;justify-content:flex-end}.duel-confirm-block p{margin:0 0 10px;color:var(--muted);font-size:12px}.duel-confirm-block #duel-confirm{width:100%;margin:0}
.duel-choice-error{color:#f0929a!important}
.duel-log{padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:#131313}.duel-log h3{margin:0 0 4px;font:800 20px 'Big Shoulders Display',sans-serif;text-transform:uppercase}.duel-log p{margin:0 0 8px;color:var(--muted);font-size:10px}.duel-round-row{display:grid;grid-template-columns:78px 1fr 50px 64px;gap:6px;padding:9px 0;border-top:1px solid var(--line);font-size:12px}.duel-round-row b:last-child{text-align:right}
.duel-reveal{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.duel-reveal>div{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:#4a4d52}.duel-reveal span{color:var(--muted);font-size:11px}.duel-reveal b{color:var(--gold)}
.duel-result-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.6fr);gap:16px}.duel-result-card{border:1px solid var(--line);border-radius:12px;background:#131313;text-align:center;padding:28px}.duel-result-card h3{margin:0;color:#7fd3a1;font:800 30px 'Big Shoulders Display',sans-serif;text-transform:uppercase}.duel-result-card #duel-result-score{margin:8px 0;font:800 54px/1 'Big Shoulders Display',sans-serif}.duel-result-card p{margin:12px 0 20px;color:var(--muted)}.duel-result-actions{display:flex;justify-content:center;gap:12px}

@media(max-width:640px){
 #night-shift .section-heading{margin-bottom:12px}.duel-lobby-pitch{height:250px}.duel-find-ball span{width:76px;height:76px;font-size:40px}
 .duel-counters{margin:12px 0 8px}.duel-counter b,.duel-goals b{font-size:36px}.duel-counter span,.duel-goals span{font-size:9px}
 .duel-pitch{height:230px}.duel-pitch-title{font-size:22px}.duel-side-label{display:none}.duel-stat{display:none}.duel-role-card{display:none}
 .duel-goal{top:38%;height:24%;width:18px}.duel-arrow{display:none}.duel-ball-wrap{top:48%;width:82px;height:82px}.duel-round-clock{font-size:16px}.duel-ball{font-size:38px}
 .duel-mobile-values{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.duel-mobile-values div{padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:#131313}.duel-mobile-values span{display:block;color:var(--muted);font-size:10px}.duel-mobile-values b{display:block;margin-top:3px;font-size:12px}
 .duel-below{grid-template-columns:1fr}.duel-controls{position:sticky;bottom:0;z-index:10;border-radius:10px 10px 0 0}.duel-action-grid{grid-template-columns:1fr 1fr}.duel-confirm-block{grid-column:1/-1}.duel-choice-status{display:none}.duel-action-card{padding:8px}.duel-stepper button{width:44px;height:44px}.duel-stepper output{font-size:38px}.duel-action-card small{display:block;min-height:30px}
 .duel-log{margin-top:8px}.duel-reveal{grid-template-columns:1fr}.duel-result-layout{grid-template-columns:1fr}.duel-result-pitch{height:220px}.duel-result-card{padding:20px}.duel-result-card #duel-result-score{font-size:46px}.duel-result-actions{flex-direction:column}.duel-result-actions .button{width:100%}
}

#boom-status{white-space:pre-line}
.boom-combat-counts{display:flex;flex-wrap:wrap;gap:4px 12px;margin:12px 0 0;color:var(--muted);font-size:11px}
.own-board .field-label>span{display:grid;gap:3px;text-align:right}
.own-board #own-defeated{color:var(--gold)}
.boom-mobile-roster{display:none}
.fleet-option.recently-destroyed{animation:boom-destroyed-flash .4s ease-out}
@keyframes boom-destroyed-flash{0%,100%{background:transparent}45%{background:rgba(253,185,19,.3)}}
.game-grid .cell.destroyed-own.sunk-edge-top{border-top:2px solid #111!important}
.game-grid .cell.destroyed-own.sunk-edge-right{border-right:2px solid #111!important}
.game-grid .cell.destroyed-own.sunk-edge-bottom{border-bottom:2px solid #111!important}
.game-grid .cell.destroyed-own.sunk-edge-left{border-left:2px solid #111!important}
.game-grid .cell.destroyed-opponent{position:relative}
.game-grid .cell.destroyed-opponent.sunk-edge-top{border-top:2px solid var(--gold)!important}
.game-grid .cell.destroyed-opponent.sunk-edge-right{border-right:2px solid var(--gold)!important}
.game-grid .cell.destroyed-opponent.sunk-edge-bottom{border-bottom:2px solid var(--gold)!important}
.game-grid .cell.destroyed-opponent.sunk-edge-left{border-left:2px solid var(--gold)!important}
.game-grid .cell.destroyed-opponent:before{content:attr(data-role-letter);position:absolute;top:0;left:2px;color:var(--gold);font:700 .38em/1 sans-serif}
@media(max-width:640px){
 .boom-layout.battle .squad{display:none}
 .boom-mobile-roster{display:flex;justify-content:center;gap:clamp(10px,6vw,24px);margin:0 0 8px}
 .boom-mobile-icon{position:relative;display:grid;place-items:center;width:25px;height:25px;border:1px solid var(--gold);border-radius:50%;color:var(--gold);font-size:12px;font-weight:700}
 .boom-mobile-icon.defeated{opacity:.35}
 .boom-mobile-icon.defeated:after{content:'';position:absolute;left:1px;right:1px;top:11px;border-top:2px solid #ed8274;transform:rotate(-42deg)}
}
@media(prefers-reduced-motion:reduce){.fleet-option.recently-destroyed{animation:none}}
.boom-layout #boom-status{grid-column:1/-1;margin:14px 0 0}
.game-grid .cell.blocked{background:repeating-linear-gradient(135deg,rgba(255,255,255,.22) 0 2px,rgba(0,0,0,.24) 2px 5px)!important;color:transparent!important}
.game-grid .cell.preview{background:var(--gold)!important;outline:2px solid #ffe08a!important;opacity:.8}
.game-grid .cell.invalid{background:#a3312c!important;outline:2px solid #ff7268!important;animation:none!important;opacity:.9}
.own-board .game-grid.shake{animation:boom-shake .18s linear 2}
@media(max-width:640px){
 .boom-layout:not(.battle) #boom-status{order:2;margin:8px 0 0}
 .boom-layout:not(.battle) .squad{order:3}
 .boom-layout.battle #boom-status{order:4;margin:8px 0 0}
}

/* Keep the AI roster inside the narrow squad panel. */
.boom-layout.battle .squad{min-width:0}
.boom-layout.battle .squad #fleet-options{grid-template-columns:minmax(0,1fr);min-width:0}
.boom-layout.battle .fleet-option{display:grid!important;grid-template-columns:62px minmax(0,1fr);column-gap:10px!important;row-gap:4px!important;padding:10px 0!important;min-width:0;align-items:center}
.boom-layout.battle .fleet-squares{grid-column:1;grid-row:1/3;align-self:center}
.boom-layout.battle .fleet-name{grid-column:2;grid-row:1;min-width:0;overflow-wrap:anywhere;line-height:1.4}
.boom-layout.battle .fleet-count{grid-column:2;grid-row:2;min-width:0;line-height:1.3}

/* The placement hint is hidden in battle; retain space below mode buttons. */
#football-boom .boom-layout.battle{margin-top:20px}

/* Keep both battle grids level and prevent cell content from resizing rows. */
#football-boom .game-grid{grid-template-rows:repeat(10,minmax(0,1fr))}
#football-boom .game-grid .cell{min-height:0;aspect-ratio:auto;overflow:hidden}
@media(min-width:1251px){
 #football-boom .boom-layout.battle .field-label{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;min-height:38px;line-height:16px}
}

/* Keep board feedback independent of the taller squad sidebar. */
#football-boom .boom-layout .squad{grid-column:auto}
#football-boom .boom-layout.battle{grid-template-columns:230px minmax(0,1fr)!important}
#football-boom .boom-play-area{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;min-width:0;width:100%;order:1;align-content:start}
#football-boom .boom-play-area>.board-wrap{grid-area:auto!important}
#football-boom .boom-play-area #boom-result-banner{grid-column:1/-1;order:3;width:100%;margin:0}
#football-boom .boom-play-area #boom-status{grid-column:1/-1;order:4;width:100%;margin:0}
@media(min-width:1251px){
 #football-boom .boom-layout.battle .boom-play-area{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Ночная смена: причина неактивной кнопки (нейтральная) и одна строка статуса над панелью, в том числе на телефоне */
.duel-choice-error.is-info{color:var(--muted)!important}
#duel-choice-title[data-kind=error]{color:#f0929a}
@media(max-width:760px){.duel-controls .duel-choice-status{display:flex;margin-bottom:8px}.duel-choice-status .duel-status-chip{font-size:13px;padding:5px 10px;white-space:nowrap;flex:none}.duel-choice-status b{font-size:13px}}

@media(min-width:1251px){
 /* Lift the boards by their heading (38px), gap (12px) and coordinates (20px). */
 #football-boom .boom-layout.battle .boom-play-area{margin-top:calc(0px - 38px - 12px - 20px)}
}

/* Center only the placement board; keep feedback full-width. */
#football-boom .boom-layout:not(.battle){--placement-gutter:22px}
#football-boom .boom-layout:not(.battle) .boom-play-area{width:100%;max-width:none;margin-top:0}
#football-boom .boom-layout:not(.battle) .own-board{width:min(100%,calc(var(--placement-width,572px) + var(--placement-gutter)));justify-self:center}
#football-boom .boom-layout:not(.battle) .own-board .boom-grid-shell{padding-right:var(--placement-gutter)}
@media(min-width:1251px){
 #football-boom .boom-layout:not(.battle) .squad{margin-top:var(--placement-heading,48px)}
 #football-boom .boom-layout:not(.battle) #boom-status{margin-left:-22px;width:calc(100% + 22px)}
}
@media(max-width:640px){
 #football-boom .boom-layout:not(.battle){--placement-gutter:18px}
}

/* Keep mode controls and the placement instruction together. */
#football-boom .boom-mode-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;margin-bottom:24px}
#football-boom .boom-mode-row .game-modes{display:flex;flex:0 0 auto;flex-wrap:wrap;margin:0}
#football-boom .boom-mode-row .boom-place-hint{flex:1 1 420px;min-width:0;margin:0;line-height:1.5}
@media(min-width:1251px){
 #football-boom .boom-layout:not(.battle){grid-template-columns:260px minmax(0,1fr)!important}
 #football-boom .boom-layout:not(.battle) .own-board{width:min(100%,calc(max(var(--placement-width,572px),572px) + var(--placement-gutter) + 48px))}
}

#night-shift .game-modes{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}

/* Match the instruction centre to the placement board centre. */
@media(min-width:1251px){
 #football-boom .boom-mode-row{display:grid;grid-template-columns:260px minmax(0,1fr);column-gap:22px;align-items:center}
 #football-boom .boom-mode-row .boom-place-hint{text-align:center;justify-self:center;width:100%;max-width:780px}
}

/* Compact placement header; keep turn status available during battle. */
#football-boom .boom-place-hint{display:none!important}
#football-boom:has(.boom-layout:not(.battle)) #boom-phase{display:none!important}
#football-boom .game-topline{margin:12px 0}
#football-boom .boom-mode-row{margin-bottom:12px}

/* Move the aligned placement panels up together. */
@media(min-width:1251px){
 #football-boom:has(.boom-layout:not(.battle)) .boom-mode-row{margin-bottom:0}
}

.duel-find-ball span{font-size:0;line-height:0;color:transparent;background:#0b0b0b url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><defs><radialGradient id='g' cx='38%' cy='34%' r='75%'><stop offset='0' stop-color='%23f4f4fc'/><stop offset='.6' stop-color='%23d8d8ee'/><stop offset='1' stop-color='%23a99cdc'/></radialGradient><clipPath id='c'><circle cx='50' cy='50' r='48'/></clipPath></defs><circle cx='50' cy='50' r='48' fill='url(%23g)'/><g clip-path='url(%23c)'><polygon points='50.0,35.0 64.3,45.4 58.8,62.1 41.2,62.1 35.7,45.4' fill='%232b77f0'/><polygon points='68.2,24.9 62.8,8.1 77.0,-2.2 91.3,8.1 85.9,24.9' fill='%232b77f0'/><polygon points='79.5,59.6 93.7,49.2 108.0,59.6 102.6,76.4 84.9,76.4' fill='%232b77f0'/><polygon points='50.0,81.0 64.3,91.4 58.8,108.1 41.2,108.1 35.7,91.4' fill='%232b77f0'/><polygon points='20.5,59.6 15.1,76.4 -2.6,76.4 -8.0,59.6 6.3,49.2' fill='%232b77f0'/><polygon points='31.8,24.9 14.1,24.9 8.7,8.1 23.0,-2.2 37.2,8.1' fill='%232b77f0'/><g stroke='%232b77f0' stroke-width='3' stroke-linecap='round'><line x1='50.0' y1='35.0' x2='50.0' y2='19.0'/><line x1='64.3' y1='45.4' x2='79.5' y2='40.4'/><line x1='58.8' y1='62.1' x2='68.2' y2='75.1'/><line x1='41.2' y1='62.1' x2='31.8' y2='75.1'/><line x1='35.7' y1='45.4' x2='20.5' y2='40.4'/></g></g><circle cx='50' cy='50' r='48' fill='none' stroke='%232b77f0' stroke-width='2'/></svg>") center/60% no-repeat}
