/* KeepTalking Battleship — electronic naval command styling. Scoped to the game. */
.kt-bs-root{--bs-navy:#061936;--bs-blue:#123e6f;--bs-sea:#072d4b;--bs-aqua:#42f3dc;--bs-ice:#c6edfa;--bs-gold:#f6c66d;position:relative;isolation:isolate;min-width:0;container-type:inline-size;padding:20px;background:radial-gradient(circle at 85% 0%,#123e70 0%,transparent 44%),linear-gradient(145deg,#061832,#0b2a4d 80%);color:#e6faff;border-radius:20px;border:1px solid #5eb7e13d;box-shadow:0 16px 32px #0a224d39;font-family:inherit;overflow:hidden}
.kt-bs-root *, .kt-bs-root *:before, .kt-bs-root *:after{box-sizing:border-box}
.kt-bs-root:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent,transparent 34px,#d2f9ff07 35px),repeating-linear-gradient(90deg,transparent,transparent 34px,#d2f9ff06 35px);pointer-events:none;z-index:-1}
.kt-bs-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:15px;border-bottom:1px solid #9ce4fc33}.kt-bs-brand{display:flex;align-items:center;gap:14px}.kt-bs-brand small,.kt-bs-tag{display:block;letter-spacing:.17em;font-size:10px;font-weight:900;color:#6de4e4}.kt-bs-brand h3{font-weight:900;font-size:27px;letter-spacing:.045em;color:white;line-height:1.2;margin:3px 0}.kt-bs-brand p{font-size:12px;color:#aacbdd;margin:3px 0}.kt-bs-radar-icon{position:relative;display:grid;place-items:center;width:52px;height:52px;flex:none;color:#42f1dc;border-radius:50%;border:2px solid #52e9e8;box-shadow:inset 0 0 15px #42f3dc55,0 0 18px #2ad8c344;font-size:32px;background:radial-gradient(circle,#174d5b,#102641)}.kt-bs-radar-icon:after{content:'';position:absolute;inset:7px;border-radius:50%;border-right:2px solid #3dfbdf;transform-origin:center;animation:bs-radar 3s linear infinite}
@keyframes bs-radar{to{transform:rotate(360deg)}}
.kt-bs-root button{font:inherit;touch-action:manipulation}.kt-bs-button,.kt-bs-primary,.kt-bs-secondary,.kt-bs-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #62c7e765;border-radius:10px;padding:10px 13px;font-weight:800;font-size:12px;line-height:1.2;cursor:pointer;transition:transform .15s,background .15s,box-shadow .15s}.kt-bs-primary{color:#032849;background:linear-gradient(160deg,#8ffce7,#29d0cb);border-color:#86fff0;box-shadow:0 4px 0 #0c847b,0 7px 14px #030e2966}.kt-bs-secondary,.kt-bs-toggle{color:#c8f6ff;background:linear-gradient(#184969,#103052);border-color:#4d9ab5}.kt-bs-root button:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.07)}.kt-bs-root button:focus-visible{outline:3px solid #ffd85f;outline-offset:2px}.kt-bs-root button:disabled{cursor:default;opacity:.5}.kt-bs-root .kt-bs-button{border-radius:9px}.kt-bs-header .kt-bs-toggle{white-space:nowrap}
.kt-bs-intro{display:flex;gap:22px;align-items:center;margin:18px 0;padding:22px;border:1px solid #4bbad765;border-radius:16px;background:linear-gradient(110deg,#12477096,#0a3355c9)}.kt-bs-intro h4{margin:0 0 7px;color:#fff;font-size:22px}.kt-bs-intro p{margin:0;color:#bdd8e9;font-size:13px;line-height:1.7}.kt-bs-sonar{display:grid;place-items:center;flex:none;width:120px;height:120px;border:2px solid #52e9e8b8;border-radius:50%;background:repeating-radial-gradient(circle,#083b44 0 16px,#126778 17px 18px),conic-gradient(from 5deg,#42f3dc95,transparent 80deg);box-shadow:0 0 22px #3cdecc47;position:relative}.kt-bs-sonar:before{content:'';position:absolute;inset:4px;border-radius:50%;background:conic-gradient(#42ffd46b,transparent 80deg);animation:bs-radar 4s linear infinite}.kt-bs-sonar-cross{position:relative;color:#fff;font-size:46px;filter:drop-shadow(0 0 8px #23ffea)}
.kt-bs-new{display:flex;gap:10px;margin-bottom:15px}.kt-bs-new input{flex:1;min-width:0;border:1px solid #71c7e06a;background:#082642;color:#fff;border-radius:10px;padding:10px 14px;font-size:13px}.kt-bs-new input:focus{outline:2px solid #54e2e7}.kt-bs-list{display:grid;gap:9px}.kt-bs-list-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-radius:13px;padding:14px 16px;border:1px solid #408bb48c;background:linear-gradient(105deg,#123959e8,#092a48dc)}.kt-bs-list-row strong{font-size:15px}.kt-bs-list-row span{display:block;font-size:11px;color:#92bfd8;margin-top:5px}.kt-bs-empty{padding:18px;text-align:center;color:#afd3e2;font-size:13px}.kt-bs-rules{border-top:1px solid #62d7d54b;margin-top:19px;padding-top:15px;color:#a9cede;font-size:12px;line-height:1.75}.kt-bs-rules summary{cursor:pointer;color:#cef4ff;font-weight:900}.kt-bs-error{padding:12px 14px;margin:12px 0;border-radius:10px;background:#672d3a;color:#fff5df;border:1px solid #f8a1a3;font-size:12px}
.kt-bs-battlebar{margin:15px 0;display:flex;justify-content:space-between;align-items:center;gap:12px;border-radius:13px;background:#092944b8;border:1px solid #387e9e;padding:12px 15px}.kt-bs-battlebar>div:first-child{display:flex;flex-direction:column;min-width:0}.kt-bs-battlebar strong{font-size:15px;color:#fff}.kt-bs-battlebar span{color:#a1cce2;font-size:11px;line-height:1.4;margin-top:4px}.kt-bs-battle-actions{display:flex;align-items:center;gap:10px}.kt-bs-clock{color:#fff!important;font-size:13px!important;font-weight:900;white-space:nowrap;font-variant-numeric:tabular-nums}
.kt-bs-commanders{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:15px}.kt-bs-commander{display:flex;align-items:center;gap:9px;flex:1;min-width:175px;border:1px solid #4592ad6c;border-radius:12px;background:#0b3855a8;padding:10px}.kt-bs-commander.is-current{border-color:#f9d977;box-shadow:0 0 0 2px #ffc9472f,0 0 15px #ffd34e25}.kt-bs-commander-avatar{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:10px;font-size:18px;font-weight:900;color:#eafff9;background:linear-gradient(135deg,#2a9f9c,#204d87);border:1px solid #71e9dc}.kt-bs-commander-details{display:flex;flex:1;flex-direction:column;min-width:0}.kt-bs-commander-details strong{font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.kt-bs-commander-details small{font-size:11px;color:#a8cfdb;margin-top:3px}.kt-bs-turn-light{padding:5px 7px;border-radius:6px;background:#fde39a;color:#47340b;font-size:9px;font-weight:900;letter-spacing:.05em}.kt-bs-setup-banner{display:flex;gap:12px;align-items:center;margin-bottom:14px;background:#0c415cbf;border:1px solid #5deee35f;border-radius:12px;padding:10px 15px}.kt-bs-setup-banner>span{font-size:28px;font-weight:900;color:#49e4e2}.kt-bs-setup-banner strong{font-size:13px}.kt-bs-setup-banner p{margin:3px 0 0;font-size:11px;color:#a5d3df}
.kt-bs-grids{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.kt-bs-panel{min-width:0;border:1px solid #77cee858;border-radius:15px;padding:15px 12px 10px;background:linear-gradient(145deg,#0d3657e8,#08243fe8);box-shadow:inset 0 0 17px #2376b024,0 12px 22px #00000020}.kt-bs-enemy{border-color:#efae737c}.kt-bs-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:13px}.kt-bs-panel-heading h4{margin:5px 0;color:#fff;font-size:19px;letter-spacing:.03em}.kt-bs-meta{font-size:10px;color:#bcdaeb;text-align:right;padding-top:5px}.kt-bs-board-wrap{width:100%;max-width:450px;margin:0 auto;min-width:0}.kt-bs-board{display:grid;grid-template-columns:22px repeat(10,minmax(0,1fr));gap:2px;width:100%;min-width:0;padding:7px;border-radius:10px;border:1px solid #4da5c3;background:#041c31;box-shadow:inset 0 2px 12px #020f1db5,0 0 0 3px #17527040}.kt-bs-axis,.kt-bs-axis-corner{display:flex;align-items:center;justify-content:center;aspect-ratio:1;color:#7dccd6;font-size:clamp(8px,1vw,11px);font-weight:900;font-variant-numeric:tabular-nums}.kt-bs-cell{position:relative;aspect-ratio:1;min-width:0;min-height:0;display:grid;place-items:center!important;padding:0!important;margin:0!important;border-radius:3px!important;border:1px solid #59b2c05a!important;color:transparent;background:linear-gradient(145deg,#0d5275,#07354e);font-size:clamp(10px,1.6vw,19px)!important;line-height:1;box-shadow:inset 0 0 5px #02243c92!important;transition:background .18s,transform .12s}.kt-bs-cell:before{content:'';position:absolute;inset:38%;border-radius:50%;background:#75e5ef3d}.kt-bs-cell.can-fire,.kt-bs-cell.can-place{cursor:crosshair!important}.kt-bs-cell.can-fire:hover,.kt-bs-cell.can-place:hover{background:#1e9c9f;outline:2px solid #a9ffe5;outline-offset:-2px;z-index:2;transform:scale(1.05)}.kt-bs-cell.is-ship{color:#c6edfa;background:linear-gradient(160deg,#537e98,#294968);border-color:#9fbac8!important;text-shadow:0 2px 3px #091a2c}.kt-bs-cell.is-ship:before{inset:4px;border-radius:2px;background:linear-gradient(145deg,#bed1d8 0 14%,#52738b 15% 70%,#163b55 71% 100%);border:1px solid #acc5d9a0}.kt-bs-cell.is-hit{color:#ffe3aa;background:radial-gradient(circle,#fca944,#c74731 48%,#661829);border-color:#ffd390!important;text-shadow:0 0 6px #ffdf85;animation:bs-hit .4s ease-out}.kt-bs-cell.is-hit:before{display:none}.kt-bs-cell.is-miss{color:#d2f5ff;background:radial-gradient(circle,#366d7c,#0b4464 74%);text-shadow:0 0 6px #89faff;font-weight:900}.kt-bs-cell.is-miss:before{display:none}.kt-bs-cell:disabled{opacity:1;cursor:default}.kt-bs-cell:focus-visible{outline:3px solid #ffdf66!important;outline-offset:-2px}
@keyframes bs-hit{0%{filter:brightness(2);transform:scale(1.14)}100%{filter:none;transform:scale(1)}}.kt-bs-board-tip{font-size:11px;line-height:1.55;color:#b2d5e1;margin:11px 3px 0;text-align:center;min-height:30px}.kt-bs-setup-footer{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:13px;margin-top:15px}.kt-bs-fleet-palette,.kt-bs-ready-card{padding:15px;border:1px solid #4a97b385;border-radius:13px;background:#0a3153d9}.kt-bs-fleet-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:10px}.kt-bs-fleet-heading strong,.kt-bs-ready-card strong{font-size:14px;color:white}.kt-bs-fleet-heading span{font-size:10px;color:#91c8da}.kt-bs-ship-choice{display:block;width:100%;text-align:left;border:1px solid #427c999d!important;background:#0b2a43!important;border-radius:8px!important;margin-bottom:6px!important;padding:9px 10px!important;color:#caedfa!important}.kt-bs-ship-choice.is-selected{border-color:#59fff3!important;background:#15546a!important;box-shadow:0 0 0 1px #51e9dd5e}.kt-bs-ship-choice.is-placed:after{content:' ✓';color:#55efd7;font-weight:900}.kt-bs-ship-option{display:flex;align-items:center;gap:11px;font-size:12px}.kt-bs-ship-option span:first-child{color:#6de6d6;letter-spacing:.14em;font-size:10px}.kt-bs-ship-option span:nth-child(2){flex:1}.kt-bs-ship-option em{font-size:10px;color:#9cc7d6;font-style:normal}.kt-bs-setup-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.kt-bs-ready-card p{font-size:12px;color:#a9d0df;line-height:1.65}.kt-bs-ready-card button{margin:5px 8px 5px 0}.kt-bs-leave{margin-top:15px}.kt-bs-log{margin-top:14px;padding:15px;background:#061f38ab;border:1px solid #4486a05a;border-radius:13px}.kt-bs-log h4{color:#a4efe7;font-size:13px;letter-spacing:.05em;margin:0 0 9px}.kt-bs-log>div{display:grid;gap:5px;max-height:170px;overflow-y:auto}.kt-bs-log p{margin:0;padding:7px 9px;background:#102f4d8c;border-radius:7px;color:#bed8e6;font-size:11px}.kt-bs-log em{font-style:normal;color:#cfefea;font-weight:900}.kt-bs-log em.is-hit{color:#ffb97d}.kt-bs-victory{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:16px;padding:18px 20px;border-radius:15px;background:linear-gradient(110deg,#57402b,#184963);border:1px solid #f4d28099;box-shadow:0 0 25px #fcd77322}.kt-bs-victory-mark{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:#f4c969;color:#463015;font-size:41px;box-shadow:0 0 20px #ffe3a86b}.kt-bs-victory>div{flex:1}.kt-bs-victory small{font-size:10px;color:#fff2bc;letter-spacing:.14em}.kt-bs-victory h4{font-size:25px;color:#fff;margin:5px 0}.kt-bs-victory p{font-size:12px;color:#dbe4e2;margin:0}
@media(max-width:1050px){.kt-bs-root{padding:14px}.kt-bs-grids{gap:9px}.kt-bs-panel{padding:12px 7px}.kt-bs-board{gap:1px;padding:4px;grid-template-columns:17px repeat(10,minmax(0,1fr))}.kt-bs-panel-heading h4{font-size:16px}.kt-bs-cell{font-size:12px!important}}
@media(max-width:720px){.kt-bs-root{padding:12px;border-radius:12px}.kt-bs-header{flex-wrap:wrap}.kt-bs-brand h3{font-size:23px}.kt-bs-grids{grid-template-columns:1fr;gap:14px}.kt-bs-board{max-width:465px;margin:0 auto;padding:6px;gap:2px;grid-template-columns:22px repeat(10,minmax(0,1fr))}.kt-bs-cell{font-size:17px!important}.kt-bs-setup-footer{grid-template-columns:1fr}.kt-bs-intro{padding:14px}.kt-bs-sonar{width:79px;height:79px}.kt-bs-battlebar{flex-wrap:wrap}.kt-bs-battle-actions{width:100%;justify-content:space-between}}
@media(max-width:390px){.kt-bs-header .kt-bs-toggle{width:100%}.kt-bs-new{flex-direction:column}.kt-bs-new .kt-bs-primary{width:100%}.kt-bs-list-row{flex-direction:column;align-items:stretch}.kt-bs-board{gap:1px;padding:3px;grid-template-columns:17px repeat(10,minmax(0,1fr))}.kt-bs-cell{font-size:12px!important}.kt-bs-intro{flex-direction:column;align-items:flex-start}.kt-bs-sonar{display:none}}
@media(prefers-reduced-motion:reduce){.kt-bs-root *, .kt-bs-root *:before,.kt-bs-root *:after{animation:none!important;transition:none!important}}

/* The Games pane can be narrower than the browser window on desktop. */
@container (max-width:720px){.kt-bs-grids{grid-template-columns:1fr;gap:14px}.kt-bs-setup-footer{grid-template-columns:1fr}.kt-bs-board{max-width:460px;margin:0 auto;grid-template-columns:22px repeat(10,minmax(0,1fr));gap:2px;padding:6px}.kt-bs-cell{font-size:clamp(12px,3.5cqw,18px)!important}}

/* Battleship fleet artwork: transparent horizontal/vertical ship sprites. */
.kt-bs-board .kt-bs-cell.has-ship-sprite{z-index:3}
.kt-bs-board .kt-bs-cell.is-hit{z-index:4}
.kt-bs-board .kt-bs-cell.is-ship:before{display:none}
.kt-bs-ship-art{position:absolute;left:0;top:0;display:block;pointer-events:none;z-index:2;overflow:visible}
.kt-bs-ship-art img{display:block;width:100%;height:100%;object-fit:fill;max-width:none;max-height:none;pointer-events:none;user-select:none;filter:drop-shadow(0 1px 3px #061522cc)}
.kt-bs-cell-mark{position:relative;z-index:5;font-size:inherit;font-weight:900;line-height:1;color:inherit;pointer-events:none}
.kt-bs-cell.is-hit .kt-bs-cell-mark,.kt-bs-cell.is-miss .kt-bs-cell-mark{text-shadow:0 1px 3px #000b,0 0 7px #fff4}
.kt-bs-fleet-thumbnail{width:82px;height:25px;flex:0 0 82px;object-fit:contain;filter:drop-shadow(0 1px 2px #08172c96)}
.kt-bs-ship-option span:nth-of-type(1){flex:1}
.kt-bs-ship-option span:first-of-type{letter-spacing:normal;font-size:12px;color:#caedfa}
@container (max-width:430px){.kt-bs-fleet-thumbnail{width:60px;flex-basis:60px;height:22px}}

/* 2026-11-21: 100%-zoom visibility and server-confirmed sunk fleet reveals. */
/* The parent Games pane is fixed-height and clips overflow. Make Battleship itself
   the vertical scrollport, like Bingo and Ludo, so all actions remain reachable. */
.community-html .kt-room-game-pane > .kt-bs-root,
.community-html .kt-room-game-pane .kt-bs-root {
  display:block;flex:1 1 auto;min-height:0;min-width:0;max-height:100%;
  overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.kt-bs-root .kt-bs-header,.kt-bs-root .kt-bs-battlebar,
.kt-bs-root .kt-bs-battle-actions,.kt-bs-root .kt-bs-setup-actions {
  flex-wrap:wrap;min-width:0;
}
.kt-bs-root .kt-bs-header > *, .kt-bs-root .kt-bs-battle-actions > *,
.kt-bs-root .kt-bs-setup-footer > *, .kt-bs-root .kt-bs-panel-heading > * {min-width:0}
.kt-bs-root .kt-bs-button,.kt-bs-root .kt-bs-primary,.kt-bs-root .kt-bs-secondary,
.kt-bs-root .kt-bs-toggle {max-width:100%;min-height:38px;white-space:normal;overflow-wrap:anywhere;text-align:center}
.kt-bs-setup-footer {margin:0 0 14px;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
.kt-bs-ready-card{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.kt-bs-ready-card button{width:100%;margin:0!important}
.kt-bs-panel-heading{flex-wrap:wrap}
.kt-bs-board-wrap{max-width:100%;min-width:0}
.kt-bs-board{max-width:100%;min-width:0}
.kt-bs-ship-option{min-width:0;flex-wrap:wrap}
.kt-bs-ship-option span{min-width:0;overflow-wrap:anywhere}
.kt-bs-ship-option em{white-space:nowrap}
/* All squares of a destroyed enemy ship are highlighted; the existing transparent
   ship artwork is shown only for coordinates the server explicitly revealed. */
.kt-bs-board .kt-bs-cell.is-sunk{background:radial-gradient(circle,#de8f3c,#74433c 80%);border-color:#ffe39a!important;
 box-shadow:inset 0 0 7px #ffd67d66!important}
.kt-bs-ship-art.is-sunk img{filter:drop-shadow(0 0 5px #ffdf8b) drop-shadow(0 2px 2px #0c1727);opacity:1}
.kt-bs-board .kt-bs-cell.is-sunk .kt-bs-cell-mark{text-shadow:0 0 5px #ff6200,0 2px 2px #000;color:#fff9ec}
@container (max-width:820px){
 .kt-bs-grids,.kt-bs-setup-footer{grid-template-columns:minmax(0,1fr)}
 .kt-bs-setup-footer{gap:9px}
 .kt-bs-ship-option{flex-wrap:nowrap}
 .kt-bs-ship-choice{min-height:42px}
 .kt-bs-board{max-width:460px;margin:0 auto}
 .kt-bs-panel-heading{gap:4px}
}
@container (max-width:420px){
 .kt-bs-setup-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .kt-bs-setup-actions button{padding:8px 5px}
 .kt-bs-battlebar{padding:10px}
 .kt-bs-battle-actions{width:100%;justify-content:space-between}
 .kt-bs-brand{gap:8px;min-width:0}
 .kt-bs-brand h3{font-size:22px}
 .kt-bs-radar-icon{width:40px;height:40px;font-size:24px}
 .kt-bs-fleet-thumbnail{width:58px;flex-basis:58px}
}
