:root {
  color-scheme: dark;
  --ink: #07151e;
  --ink-raised: #0b1d28;
  --panel: #0d222d;
  --panel-soft: #102a36;
  --line: rgba(169, 207, 219, .12);
  --line-bright: rgba(169, 207, 219, .24);
  --white: #eaf3f3;
  --muted: #839ca5;
  --faint: #58717a;
  --mint: #79e1bd;
  --mint-dark: #40b893;
  --water: #0b2633;
  --water-light: #133644;
  --land: #6d6450;
  --danger: #ff6875;
  --font-display: "Barlow Condensed", Impact, sans-serif;
  --font-body: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: radial-gradient(ellipse at 68% 2%, #12303b 0, transparent 32%), var(--ink); color: var(--white); font-family: var(--font-body); font-size: 14px; }
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.ambient { position: fixed; z-index: -1; pointer-events: none; filter: blur(70px); opacity: .14; border-radius: 50%; }
.ambient-one { top: 6%; left: -180px; width: 420px; height: 420px; background: #1b8291; }
.ambient-two { right: -190px; bottom: 4%; width: 480px; height: 480px; background: #115652; opacity: .1; }
.app-shell { width: min(1392px, calc(100% - 80px)); margin: 0 auto; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--white); }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; position: relative; border: 1px solid rgba(121,225,189,.55); border-radius: 50%; font: 700 18px var(--font-display); color: var(--mint); }
.brand-mark span { font-size: 8px; position: absolute; top: 4px; right: 5px; color: #d9fff0; }
.brand-name { font: 700 15px var(--font-display); letter-spacing: 1.7px; }
.brand-name b { color: var(--mint); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.status-dot, .pulse-dot { width: 6px; height: 6px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 10px rgba(121,225,189,.8); }
.topbar-divider { height: 15px; width: 1px; background: var(--line-bright); margin: 0 7px; }
.build-label { color: #516d77; }
.view { display: none; padding: 42px 0 80px; animation: view-in .35s ease both; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

/* Landing */
.hero-layout { display: grid; grid-template-columns: .91fr 1.09fr; align-items: center; min-height: 536px; gap: 24px; }
.hero-copy { padding: 20px 0 5px 3.4%; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--mint); font-size: 10px; font-weight: 700; letter-spacing: 1.65px; }
.eyebrow-line { display: inline-block; width: 22px; height: 1px; background: var(--mint); }
h1, h2, h3, p { margin-top: 0; }
.hero-copy h1 { margin: 25px 0 14px; font: 800 clamp(70px, 8vw, 116px)/.78 var(--font-display); letter-spacing: -2px; }
.hero-copy h1 span { color: #89a2a9; }
.hero-copy h1 i { color: var(--mint); font-style: normal; }
.hero-lede { margin: 25px 0 9px; color: #d5e3e4; font-size: 17px; font-weight: 600; letter-spacing: -.25px; }
.hero-sub { max-width: 405px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.hero-actions { margin-top: 25px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.button { min-height: 44px; border: 1px solid transparent; border-radius: 3px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; cursor: pointer; font-weight: 700; font-size: 11px; letter-spacing: .3px; transition: transform .18s, background .18s, border-color .18s; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { color: #07201d; background: var(--mint); box-shadow: 0 7px 23px rgba(57,175,139,.13); }
.button-primary:hover:not(:disabled) { background: #99f3d1; }
.button-primary:disabled { cursor: not-allowed; opacity: .38; }
.button-secondary { color: #dcebed; background: transparent; border-color: var(--line-bright); }
.button-secondary:hover:not(:disabled) { border-color: var(--mint); color: var(--mint); }
.quick-facts { display: flex; gap: 11px; color: #516d77; font: 600 9px var(--font-display); letter-spacing: .6px; }
.quick-facts span { display: flex; gap: 5px; }
.quick-facts b { color: #9bb1b7; font-weight: 600; }
.hero-stats { display: flex; gap: 34px; margin-top: 55px; }
.hero-stats div { display: flex; flex-direction: column; gap: 3px; }
.hero-stats strong { font: 700 24px var(--font-display); color: #bed0d4; }
.hero-stats span { font-size: 8px; font-weight: 700; letter-spacing: 1.1px; color: #59717a; }
.hero-art { height: 445px; position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 49% 51%, rgba(22,92,104,.5), transparent 51%), linear-gradient(135deg, rgba(14,48,60,.6), rgba(6,23,31,.16)); border: 1px solid rgba(120,189,194,.12); }
.hero-art::before { content: ""; position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(rgba(102,170,176,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(102,170,176,.12) 1px, transparent 1px); background-size: 43px 43px; mask-image: linear-gradient(135deg, black, transparent 80%); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 49.8%, rgba(93,164,171,.1) 50%, transparent 50.2%), linear-gradient(transparent 49.8%, rgba(93,164,171,.1) 50%, transparent 50.2%); }
.radar-ring { position: absolute; aspect-ratio: 1; border: 1px solid rgba(100,211,193,.15); border-radius: 50%; left: 50%; top: 51%; transform: translate(-50%,-50%); }
.ring-one { width: 155px; }.ring-two { width: 285px; }.ring-three { width: 414px; }
.radar-cross { position: absolute; left: 50%; top: 51%; width: 414px; height: 1px; transform: translate(-50%,-50%); background: rgba(119,208,196,.16); }
.radar-sweep { position: absolute; left: 50%; top: 51%; width: 205px; height: 205px; border-radius: 100% 0 0 0; transform: translate(-100%,-100%); transform-origin: bottom right; background: conic-gradient(from 1deg, transparent 0deg, rgba(75,205,173,.2) 70deg, transparent 73deg); animation: sweep 11s linear infinite; }
@keyframes sweep { to { transform: translate(-100%,-100%) rotate(360deg); } }
.art-coordinate { position: absolute; z-index: 2; color: #81aaa9; font: 500 9px var(--font-display); letter-spacing: 1px; }
.coord-a { top: 22px; left: 25px; }.coord-b { top: 22px; right: 25px; }
.art-gridline { position: absolute; width: 1px; background: rgba(120,200,195,.12); top: 0; bottom: 0; }
.line-a { left: 25%; }.line-b { right: 25%; }
.artship { position: absolute; z-index: 3; height: 17px; background: linear-gradient(90deg,#557982,#bfdbd5); clip-path: polygon(0 35%, 71% 35%, 87% 10%, 100% 50%, 87% 90%, 71% 65%, 0 65%); filter: drop-shadow(0 0 12px rgba(132,229,205,.27)); transform: rotate(-35deg); }
.artship span { position: absolute; left: 21%; top: 4px; height: 8px; width: 45%; background: rgba(9,32,39,.55); clip-path: polygon(0 50%,25% 10%,65% 10%,100% 50%,65% 90%,25% 90%); }
.artship i { position: absolute; left: 43%; top: -1px; width: 4px; height: 7px; background: #dbf0e9; }.artship b { position: absolute; left: 58%; top: 1px; width: 3px; height: 4px; background: #dbf0e9; }
.artship-large { width: 150px; left: calc(50% - 72px); top: 49%; transform: rotate(-34deg) scale(1.04); }
.artship-small { width: 91px; left: 27%; top: 28%; transform: rotate(31deg) scale(.75); opacity: .82; }
.artship-sub { width: 75px; right: 19%; bottom: 24%; transform: rotate(-11deg) scale(.62); opacity: .5; }
.radar-contact { position: absolute; z-index: 2; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px 3px rgba(121,225,189,.44); }
.contact-one { left: 23%; top: 36%; }.contact-two { right: 25%; top: 35%; }.contact-three { right: 31%; bottom: 24%; width: 3px; height: 3px; }
.art-caption { position: absolute; bottom: 25px; left: 25px; display: flex; align-items: center; gap: 9px; color: #729097; font: 500 8px/1.7 var(--font-display); letter-spacing: 1px; }
.art-caption b { color: var(--mint); font-weight: 600; }.caption-bar { width: 2px; height: 25px; background: var(--mint); }
.art-index { position: absolute; bottom: 28px; right: 25px; color: #567079; font-size: 8px; letter-spacing: 1px; }.art-index span { color: var(--mint); }
.map-pick-section { padding: 25px 0 8px; scroll-margin-top: 25px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 15px; }
.eyebrow.small { font-size: 9px; letter-spacing: 1.35px; }.eyebrow.small .eyebrow-line { width: 15px; }
.section-heading h2 { margin: 7px 0 0; font: 700 26px var(--font-display); letter-spacing: .3px; }
.section-note { padding-bottom: 4px; color: #58727a; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.map-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.map-card { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 4px; text-align: left; background: rgba(11,31,41,.7); cursor: pointer; transition: border .2s, transform .2s, background .2s; }
.map-card:hover { border-color: rgba(121,225,189,.62); background: rgba(14,43,51,.95); transform: translateY(-3px); }
.map-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.map-number { color: #536f79; font: 600 10px var(--font-display); letter-spacing: 1px; }
.difficulty { font-size: 8px; text-transform: uppercase; letter-spacing: .9px; font-weight: 700; color: #8bc8b8; }.difficulty-medium { color: #d5c57f; }.difficulty-hard { color: #e4a071; }.difficulty-expert { color: #e78189; }
.mini-map { display: grid; grid-template-columns: repeat(8,1fr); grid-template-rows: repeat(8,1fr); height: 105px; gap: 2px; padding: 6px; background: #071c26; border: 1px solid rgba(91,140,151,.1); }
.mini-map i { display: block; background: #103441; border-radius: 1px; }.mini-map i.mini-land { background: #615d4c; opacity: .9; }.mini-map i.mini-contact { background: #5bd4b2; box-shadow: 0 0 5px #5bd4b2; }
.mini-map-channel i:nth-child(19),.mini-map-channel i:nth-child(20),.mini-map-channel i:nth-child(27),.mini-map-shattered i:nth-child(35),.mini-map-stormwall i:nth-child(54) { background: #988b66; }
.map-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 11px; }.map-card-bottom h3 { margin: 0 0 4px; font: 600 16px var(--font-display); letter-spacing: .2px; }.map-card-bottom p { max-width: 240px; min-height: 25px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }.map-card-bottom p span { color: var(--mint); }.map-arrow { flex: 0 0 auto; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--mint); }

/* Shared setup views */
.step-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.back-button { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--line-bright); border-radius: 50%; background: transparent; color: #b0c4c8; cursor: pointer; font-size: 18px; transition: .18s; }.back-button:hover { border-color: var(--mint); color: var(--mint); }
.step-heading h1, .battle-topline h1 { margin: 5px 0 0; font: 700 32px var(--font-display); letter-spacing: .2px; }.step-index { margin-left: 9px; color: #5e7a82; font-size: 8px; }
.map-stamp { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: #7e999f; font-size: 9px; letter-spacing: .5px; }.map-stamp .stamp-title { color: var(--white); font: 600 15px var(--font-display); letter-spacing: .4px; }.map-stamp i { color: var(--mint); font-style: normal; }
.step-lede { margin: 0 0 21px 54px; color: var(--muted); font-size: 12px; }
.panel { background: linear-gradient(135deg, rgba(15,39,50,.97), rgba(10,28,38,.95)); border: 1px solid var(--line); border-radius: 4px; }
.panel-heading { display: flex; justify-content: space-between; color: #6e8b93; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; margin-bottom: 12px; }.panel-heading b { color: var(--mint); }
.fleet-layout { display: grid; grid-template-columns: 1fr 282px; gap: 19px; align-items: start; }.fleet-catalog { min-width: 0; }
.fleet-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.fleet-card { min-width: 0; min-height: 91px; display: flex; align-items: center; gap: 11px; position: relative; padding: 12px 13px; border: 1px solid var(--line); border-radius: 4px; text-align: left; background: rgba(10,30,40,.8); cursor: pointer; transition: .18s; }.fleet-card:hover:not(:disabled) { border-color: rgba(121,225,189,.43); background: #102c37; }.fleet-card.selected { border-color: rgba(121,225,189,.48); background: linear-gradient(110deg, rgba(24,67,66,.42), rgba(11,32,42,.82)); }.fleet-card.locked { opacity: .43; cursor: not-allowed; }
.ship-token, .ability-token { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 3px; background: rgba(121,225,189,.1); color: var(--mint); font: 700 18px var(--font-display); }
.token-carrier { color: #9fe6d7; background: rgba(88,180,168,.13); }.token-battleship { color: #f0bc77; background: rgba(199,138,67,.12); }.token-cruiser { color: #b4a1ef; background: rgba(150,124,224,.12); }.token-destroyer { color: #8bc7ee; background: rgba(94,171,215,.13); }.token-submarine { color: #86d7cf; background: rgba(66,173,163,.13); }.token-corvette { color: #eb929a; background: rgba(212,100,115,.13); }.token-frigate { color: #c2d98d; background: rgba(161,191,94,.13); }.token-patrol { color: #c4d4df; background: rgba(170,197,213,.12); }
.fleet-card-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }.fleet-card-copy strong { overflow: hidden; color: #dae6e8; font: 600 16px var(--font-display); text-overflow: ellipsis; white-space: nowrap; }.fleet-card-copy small { color: #829ca3; font-size: 9px; }.fleet-card-copy small i { color: var(--mint); font-style: normal; }.ability-chip { width: fit-content; margin-top: 2px; padding: 3px 6px; border: 1px solid rgba(121,225,189,.16); border-radius: 2px; color: #84bcaf; font-size: 8px; letter-spacing: .3px; }.select-check { margin-left: auto; display: grid; flex: 0 0 auto; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--mint); font-size: 12px; }.fleet-card.selected .select-check { border-color: var(--mint); color: #062019; background: var(--mint); }
.fleet-manifest { padding: 19px 17px 16px; }.manifest-kicker, .panel-eyebrow { color: #7a969d; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }.fleet-manifest h2, .deploy-controls h2, .sidebar-heading h2 { margin: 5px 0 0; font: 600 22px var(--font-display); }.manifest-count { display: flex; align-items: center; gap: 10px; padding: 13px 0; margin: 11px 0 9px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.manifest-count strong { font: 700 32px var(--font-display); color: var(--mint); }.manifest-count span { color: #789099; font-size: 8px; line-height: 1.5; letter-spacing: .9px; }.selected-fleet-list { min-height: 163px; }.manifest-item { display: flex; align-items: center; gap: 8px; height: 31px; color: #c6d5d7; font-size: 10px; }.manifest-item .ship-token { width: 23px; height: 23px; font-size: 13px; }.manifest-item b { margin-left: auto; color: #728c93; font-size: 9px; }.empty-manifest { padding-top: 35px; color: #789099; font-size: 10px; line-height: 1.6; }.manifest-note { display: flex; gap: 8px; margin: 12px 0 15px; padding: 10px; border: 1px solid rgba(121,225,189,.11); background: rgba(121,225,189,.035); color: #86a0a6; font-size: 9px; line-height: 1.55; }.note-icon { flex: 0 0 auto; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: rgba(121,225,189,.2); color: var(--mint); font: 700 9px Georgia; }.full-width { width: 100%; justify-content: space-between; }

/* Boards */
.deployment-layout { display: grid; grid-template-columns: minmax(0,1fr) 286px; gap: 19px; align-items: start; }.board-column { min-width: 0; }.board-heading { display: flex; justify-content: space-between; align-items: center; min-height: 29px; margin-bottom: 9px; }.board-heading > div:first-child { display: flex; align-items: center; gap: 10px; }.board-label { display: inline-flex; align-items: center; gap: 7px; color: #d3e0e2; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }.board-size { color: #62808a; font: 500 11px var(--font-display); letter-spacing: .7px; }.board-state { color: #5f7f88; font-size: 8px; font-weight: 700; letter-spacing: .9px; }.terrain-legend, .grid-footer { display: flex; align-items: center; gap: 13px; color: #739098; font-size: 8px; }.terrain-legend span, .grid-footer span { display: inline-flex; align-items: center; gap: 5px; }.legend-water, .legend-land, .legend-hit, .legend-miss, .legend-friendly { display: inline-block; width: 8px; height: 8px; border-radius: 1px; background: #153c4b; }.legend-land { background: #776d55; }.legend-hit { border-radius: 50%; background: var(--danger); }.legend-miss { border-radius: 50%; background: #73939e; }.legend-friendly { background: var(--mint); }
.board-wrap { overflow: auto; border: 1px solid rgba(119,171,181,.17); background: #061822; padding: 8px; box-shadow: inset 0 0 30px rgba(0,0,0,.15); }.game-board { --size: 8; display: grid; grid-template-columns: repeat(var(--size),minmax(0,1fr)); grid-template-rows: repeat(var(--size),minmax(0,1fr)); width: min(100%, 662px); aspect-ratio: 1; margin: auto; gap: 3px; }.grid-cell { min-width: 0; min-height: 0; display: flex; position: relative; align-items: center; justify-content: center; border: 1px solid rgba(67,121,136,.14); border-radius: 2px; padding: 0; background: var(--water); color: #d9f6ea; cursor: crosshair; transition: background .12s, border .12s, transform .12s; }.grid-cell::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(135deg, rgba(121,225,189,.035), transparent 52%); pointer-events: none; }.grid-cell:hover:not(:disabled):not(.cell-land) { z-index: 1; border-color: rgba(121,225,189,.68); background: #164451; box-shadow: 0 0 10px rgba(73,188,162,.18); }.grid-cell:disabled { cursor: default; }.cell-land { border-color: rgba(174,152,108,.14); background: linear-gradient(135deg,#554f40,#70674f 57%,#575440); cursor: default; }.cell-land::after { opacity: .45; background-image: radial-gradient(ellipse at 40% 35%, rgba(220,197,142,.18), transparent 70%); }.deploy-board .cell-friendly, .own-board .cell-friendly { background: #19474c; border-color: rgba(121,225,189,.26); }.deploy-board .cell-friendly::before, .own-board .cell-friendly::before { content: ""; position: absolute; inset: 25%; border-radius: 2px; background: rgba(121,225,189,.23); }.ship-marker { position: relative; z-index: 1; color: #baf7e0; font: 700 clamp(10px,1.4vw,17px) var(--font-display); text-shadow: 0 0 7px rgba(0,0,0,.8); }.deploy-board .cell-preview { border-color: var(--mint); background: rgba(67,176,146,.44); box-shadow: 0 0 8px rgba(121,225,189,.22); }.deploy-board .cell-preview::before { content: ""; position: absolute; inset: 22%; background: rgba(121,225,189,.24); border-radius: 2px; }
.deploy-progress { display: flex; align-items: center; gap: 10px; margin-top: 11px; }.progress-track { height: 3px; overflow: hidden; flex: 1; background: rgba(139,176,186,.13); }.progress-track span { display: block; height: 100%; background: var(--mint); box-shadow: 0 0 7px rgba(121,225,189,.38); transition: width .25s; }.deploy-progress > span { min-width: 120px; color: #759198; font-size: 8px; font-weight: 700; letter-spacing: .8px; text-align: right; }
.deploy-controls { padding: 17px 16px; }.deploy-controls h2 { font-size: 21px; }.control-hint { min-height: 42px; margin: 6px 0 15px; color: #819ba2; font-size: 10px; line-height: 1.55; }.orientation-control { display: flex; flex-direction: column; gap: 7px; margin-bottom: 13px; color: #77929a; font-size: 8px; font-weight: 700; letter-spacing: 1px; }.orientation-button { min-height: 35px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 2px; padding: 0 9px; background: rgba(5,23,31,.55); color: var(--mint); cursor: pointer; }.orientation-button b { color: #d3e1e2; font-size: 8px; letter-spacing: .7px; }.orientation-button kbd { margin-left: auto; padding: 2px 5px; border: 1px solid var(--line-bright); border-radius: 2px; color: #748b91; font: 8px var(--font-body); }.deployment-ship-list { display: flex; flex-direction: column; gap: 4px; max-height: 250px; overflow-y: auto; }.deployment-ship { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 37px; padding: 5px 7px; border: 1px solid transparent; border-radius: 2px; text-align: left; background: rgba(7,25,34,.45); cursor: pointer; }.deployment-ship:hover:not(.placed), .deployment-ship.active { border-color: rgba(121,225,189,.35); background: rgba(31,86,77,.21); }.deployment-ship.placed { opacity: .58; cursor: default; }.deployment-ship .ship-token { width: 24px; height: 24px; font-size: 14px; }.deployment-ship > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }.deployment-ship b { color: #cddbdd; font: 600 12px var(--font-display); }.deployment-ship small { color: #6d858d; font-size: 8px; }.deploy-check { margin-left: auto; color: var(--mint); font-size: 13px; }.deploy-buttons { display: grid; grid-template-columns: .85fr 1.15fr; gap: 7px; margin-top: 14px; }.deploy-buttons .button { min-width: 0; padding: 0 9px; font-size: 9px; gap: 7px; }.panel-footnote { margin: 12px 0 0; color: #6d858d; font-size: 8px; line-height: 1.5; }

/* Battle */
.battle-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }.battle-topline h1 { font-size: 29px; }.battle-controls { display: flex; align-items: center; gap: 11px; }.turn-chip { display: flex; align-items: center; gap: 8px; min-height: 31px; padding: 0 10px; border: 1px solid rgba(121,225,189,.19); border-radius: 2px; color: var(--mint); font-size: 8px; letter-spacing: 1px; }.pulse-dot { animation: pulse 1.4s infinite; }.icon-button { width: 31px; height: 31px; border: 1px solid var(--line-bright); border-radius: 50%; background: transparent; color: #9cb4b8; cursor: pointer; }.icon-button.muted { color: #526c73; }.text-button { border: 0; padding: 6px; background: transparent; color: #789199; cursor: pointer; font-size: 9px; }.text-button:hover { color: var(--danger); }
.objective-strip { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; padding: 10px 14px; border: 1px solid rgba(121,225,189,.16); background: linear-gradient(90deg,rgba(26,78,69,.28),rgba(9,29,39,.3)); }.objective-icon { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(121,225,189,.25); border-radius: 50%; color: var(--mint); font-size: 18px; }.objective-strip > div:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }.objective-title { color: #7da99e; font-size: 7px; font-weight: 700; letter-spacing: 1px; }.objective-strip strong { color: #d8e5e5; font-size: 10px; }.objective-progress { width: min(190px,28%); margin-left: auto; }.objective-progress > span { display: block; margin-bottom: 5px; color: #78959a; font-size: 8px; font-weight: 700; letter-spacing: .8px; text-align: right; }
.battle-layout { display: grid; grid-template-columns: minmax(0,1fr) 263px; gap: 14px; align-items: start; }.battle-main { min-width: 0; }.battle-board-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(225px,.85fr); gap: 13px; }.board-panel { min-width: 0; }.enemy-signal, .friendly-signal { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #f3757f; box-shadow: 0 0 8px rgba(243,117,127,.45); }.friendly-signal { background: var(--mint); box-shadow: 0 0 8px rgba(121,225,189,.45); }.target-wrap { padding: 6px; }.own-wrap { padding: 6px; }.target-wrap .game-board, .own-wrap .game-board { width: 100%; gap: 2px; }.target-wrap .grid-cell, .own-wrap .grid-cell { border-radius: 1px; }.target-cell { font: 700 clamp(8px,1.3vw,16px) var(--font-display); }.target-cell span { position: relative; z-index: 1; text-shadow: 0 0 6px rgba(0,0,0,.85); }.cell-hit { background: rgba(127,39,51,.78) !important; border-color: rgba(255,104,117,.55) !important; color: #ff8b95 !important; }.cell-miss { background: #122f3a; color: #7695a0; }.cell-miss span { opacity: .65; }.cell-revealed { border-color: rgba(121,225,189,.7); background: #12453e; color: #a3f4d9; box-shadow: inset 0 0 8px rgba(121,225,189,.26), 0 0 8px rgba(121,225,189,.13); animation: reveal-glow 1.8s infinite alternate; }.cell-hit::after, .cell-miss::after { display: none; }.own-board { cursor: default; }.own-board .grid-cell { cursor: default; }.own-wrap .grid-cell { font-size: 11px; }.own-board .cell-miss-own { background: #102b35; }.own-damage { position: absolute; z-index: 2; color: #ff8690; font: 800 13px var(--font-display); text-shadow: 0 0 4px #07151e; }.own-board .cell-friendly.cell-hit { background: rgba(137,53,60,.9) !important; }.own-board .cell-friendly.cell-hit::before { background: rgba(255,104,117,.28); }.grid-footer { min-height: 27px; }.grid-footer i { width: 7px; height: 7px; }
.action-dock { margin-top: 12px; padding: 11px 12px 10px; }.action-dock-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }.action-dock-heading > div { display: flex; flex-direction: column; gap: 4px; }.action-dock-heading strong { color: #c8d9db; font-size: 10px; font-weight: 600; }.action-state { color: #5f7f87; font-size: 7px; font-weight: 700; letter-spacing: .9px; }.ability-bar { display: flex; flex-wrap: wrap; gap: 5px; }.ability-button { min-width: 138px; min-height: 43px; display: flex; align-items: center; gap: 7px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 2px; background: rgba(5,22,30,.57); cursor: pointer; transition: .15s; }.ability-button:hover:not(:disabled), .ability-button.active { border-color: rgba(121,225,189,.65); background: rgba(24,68,62,.45); }.ability-button:disabled { opacity: .45; cursor: not-allowed; }.ability-button .ability-token { width: 26px; height: 26px; font-size: 14px; }.ability-copy { display: flex; flex-direction: column; gap: 2px; text-align: left; }.ability-copy b { white-space: nowrap; color: #cddcdd; font: 600 12px var(--font-display); }.ability-copy small { white-space: nowrap; color: #70878e; font-size: 7px; }.ability-ready { margin-left: auto; white-space: nowrap; color: #86c9b4; font-size: 6px; font-weight: 700; letter-spacing: .6px; }.ability-button.cooling .ability-ready { color: #779099; }.battle-message { margin-top: 9px; padding: 7px 9px; border-left: 2px solid var(--mint); background: rgba(120,225,189,.04); color: #91aaad; font-size: 9px; line-height: 1.4; }.battle-sidebar { display: flex; flex-direction: column; gap: 10px; }.fleet-status-panel, .intel-panel { padding: 12px; }.sidebar-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; }.sidebar-heading h2 { margin-top: 2px; font-size: 18px; }.health-summary { padding-top: 8px; color: #8dbcae; font-size: 8px; font-weight: 700; }.battle-fleet-list { display: flex; flex-direction: column; gap: 8px; margin-top: 13px; }.battle-fleet-item { display: flex; align-items: center; gap: 8px; }.battle-fleet-item > .ship-token { width: 27px; height: 27px; font-size: 14px; }.battle-fleet-item.sunk { opacity: .44; }.battle-fleet-copy { flex: 1; min-width: 0; }.battle-fleet-copy > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 5px; }.battle-fleet-copy b { overflow: hidden; color: #bdced1; font: 600 12px var(--font-display); text-overflow: ellipsis; white-space: nowrap; }.battle-fleet-copy span { flex: 0 0 auto; color: #779098; font-size: 7px; }.health-track { height: 3px; margin-top: 5px; background: rgba(149,183,189,.12); }.health-track i { display: block; height: 100%; background: var(--mint-dark); transition: width .3s; }.battle-fleet-item.sunk .health-track i { background: var(--danger); }
.live-label { display: flex; align-items: center; gap: 5px; padding-top: 5px; color: #82b9a8; font-size: 7px; font-weight: 700; letter-spacing: .8px; }.live-label i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }.battle-log { display: flex; flex-direction: column; gap: 9px; max-height: 258px; margin-top: 13px; overflow-y: auto; scrollbar-color: #284752 transparent; scrollbar-width: thin; }.log-entry { display: flex; gap: 7px; align-items: start; color: #91a7ab; font-size: 8px; line-height: 1.45; }.log-entry > i { flex: 0 0 auto; width: 5px; height: 5px; margin-top: 3px; border-radius: 50%; background: #77949b; }.log-entry span { flex: 1; }.log-entry small { display: block; margin-top: 2px; color: #536e77; font-size: 7px; }.log-hit > i, .log-success > i { background: var(--mint); }.log-damage > i { background: var(--danger); }.log-intel > i { background: #d5c57f; }.log-friendly > i { background: #8cb3ec; }.sidebar-footer { display: flex; justify-content: space-between; padding: 0 3px; color: #59737b; font-size: 7px; font-weight: 700; letter-spacing: .8px; }.sidebar-footer b { color: #8ba0a5; font-weight: 600; }

/* Results */
.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(2,10,15,.76); backdrop-filter: blur(8px); }.modal-backdrop[hidden] { display: none; }.result-card { width: min(100%,430px); padding: 30px; border: 1px solid rgba(121,225,189,.29); border-radius: 4px; background: linear-gradient(145deg,#12303a,#091b25 68%); box-shadow: 0 24px 80px rgba(0,0,0,.45); text-align: center; animation: view-in .28s ease both; }.result-emblem { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 17px; border: 1px solid rgba(121,225,189,.4); border-radius: 50%; color: var(--mint); font-size: 23px; }.result-emblem.defeat { border-color: rgba(255,104,117,.44); color: var(--danger); }.result-card .eyebrow { justify-content: center; }.result-card h2 { margin: 11px 0 7px; font: 700 38px var(--font-display); }.result-card p { max-width: 315px; margin: 0 auto; color: #8ca5aa; font-size: 11px; line-height: 1.6; }.result-stats { display: grid; grid-template-columns: repeat(3,1fr); margin: 21px 0; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.result-stats div { display: flex; flex-direction: column; gap: 3px; }.result-stats b { color: #d5e3e3; font: 700 22px var(--font-display); }.result-stats span { color: #6d8990; font-size: 7px; font-weight: 700; letter-spacing: .8px; }.result-actions { display: flex; flex-direction: column; gap: 7px; }.result-actions .button { width: 100%; justify-content: space-between; }.result-actions .button-secondary { justify-content: center; }
.noscript { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: var(--ink); color: var(--white); text-align: center; }
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 2px rgba(121,225,189,.5); } }
@keyframes reveal-glow { to { box-shadow: inset 0 0 2px rgba(121,225,189,.12); } }
.target-cell.ability-targetable:not(:disabled) { cursor: crosshair; }
.deployment-ship.placed { cursor: pointer; }
.deployment-ship.placed:hover { opacity: .88; border-color: rgba(121,225,189,.2); }

/* Continuous ship silhouettes and blended coastline terrain */
.board-wrap .game-board { position: relative; isolation: isolate; gap: 0; }
.game-board .grid-cell { border-radius: 0; }
.game-board .cell-land {
  z-index: 1;
  overflow: visible;
  border-color: rgba(190, 169, 122, .18);
  background:
    radial-gradient(ellipse at 28% 30%, rgba(201, 178, 126, .38), transparent 43%),
    radial-gradient(ellipse at 71% 69%, rgba(43, 76, 55, .54), transparent 49%),
    linear-gradient(142deg, #776b51 1%, #635b45 49%, #514f3e 100%);
}
.game-board .cell-land::after {
  opacity: .48;
  background-image:
    radial-gradient(ellipse at 27% 67%, rgba(211, 193, 151, .22) 0 8%, transparent 10%),
    radial-gradient(ellipse at 71% 28%, rgba(39, 65, 48, .3) 0 13%, transparent 15%),
    linear-gradient(28deg, transparent 43%, rgba(228, 211, 165, .08) 44% 47%, transparent 48%);
}
.game-board .terrain-v1 { filter: brightness(1.05) saturate(.91); }
.game-board .terrain-v2 { filter: brightness(.93) saturate(1.1); }
.game-board .terrain-v3 { filter: brightness(1.02) hue-rotate(-5deg); }
.game-board .land-edge-n { border-top-color: rgba(230, 207, 153, .72); }
.game-board .land-edge-e { border-right-color: rgba(224, 200, 144, .66); }
.game-board .land-edge-s { border-bottom-color: rgba(36, 52, 43, .72); }
.game-board .land-edge-w { border-left-color: rgba(230, 207, 153, .6); }
.game-board .land-corner-nw { border-top-left-radius: 46%; }
.game-board .land-corner-ne { border-top-right-radius: 46%; }
.game-board .land-corner-sw { border-bottom-left-radius: 46%; }
.game-board .land-corner-se { border-bottom-right-radius: 46%; }
.terrain-detail { position: absolute; z-index: 2; display: block; pointer-events: none; }
.terrain-tree {
  top: 27%; left: 50%; width: 0; height: 0;
  border-right: 4px solid transparent; border-bottom: 8px solid #354d3e; border-left: 4px solid transparent;
  filter: drop-shadow(1px 1px 0 rgba(30, 43, 34, .55));
}
.terrain-tree::after { content: ""; position: absolute; top: 7px; left: -1px; width: 2px; height: 3px; background: #9a8053; }
.terrain-rock { top: 50%; left: 50%; width: 9px; height: 6px; transform: translate(-50%,-50%) rotate(-12deg); border: 1px solid rgba(224, 203, 158, .52); border-radius: 62% 45% 48% 38%; background: linear-gradient(145deg,#c0ad7f,#777253 72%); box-shadow: 2px 2px 0 rgba(47, 52, 41, .45); }
.deploy-board .cell-friendly, .own-board .cell-friendly { z-index: 0; background: #102d38; border-color: rgba(121,225,189,.11); }
.deploy-board .cell-friendly::before, .own-board .cell-friendly::before { display: none; }
.deploy-board .cell-preview { z-index: 3; }
.own-board .cell-hit { z-index: 3; }
.own-damage { z-index: 4; }
.fleet-hulls { position: absolute; z-index: 2; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.fleet-hulls .ship-hull { --hull-fill: #347d7c; --hull-edge: #a8e5d0; --hull-light: #d0f4df; --hull-shadow: #16464a; }
.fleet-hulls .hull-carrier { --hull-fill: #287d79; --hull-edge: #a6edda; --hull-light: #d4f8e8; --hull-shadow: #164c4b; }
.fleet-hulls .hull-battleship { --hull-fill: #8a6740; --hull-edge: #efcc91; --hull-light: #f3dfb7; --hull-shadow: #513e2c; }
.fleet-hulls .hull-cruiser { --hull-fill: #685d91; --hull-edge: #d1c3ff; --hull-light: #e2dcff; --hull-shadow: #3d385f; }
.fleet-hulls .hull-destroyer { --hull-fill: #376e8d; --hull-edge: #a9dcf2; --hull-light: #d2efff; --hull-shadow: #24495f; }
.fleet-hulls .hull-submarine { --hull-fill: #397a76; --hull-edge: #a2ded4; --hull-light: #d3f3e9; --hull-shadow: #254f50; }
.fleet-hulls .hull-corvette { --hull-fill: #88545a; --hull-edge: #f0b3ae; --hull-light: #ffe0d3; --hull-shadow: #59373c; }
.fleet-hulls .hull-frigate { --hull-fill: #697442; --hull-edge: #d5e59f; --hull-light: #edf3c7; --hull-shadow: #444f35; }
.fleet-hulls .hull-patrol { --hull-fill: #647b88; --hull-edge: #d2e4e5; --hull-light: #f0f4ed; --hull-shadow: #3e535f; }
.fleet-hulls .hull-shape { fill: var(--hull-fill); stroke: var(--hull-edge); stroke-width: 3px; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
.fleet-hulls .hull-rail { fill: none; stroke: rgba(236, 249, 224, .32); stroke-width: 1px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fleet-hulls .hull-wake { fill: none; stroke: rgba(10, 27, 33, .26); stroke-width: 2px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fleet-hulls .hull-detail { fill: var(--hull-light); stroke: var(--hull-edge); stroke-width: 1px; vector-effect: non-scaling-stroke; opacity: .93; }
.fleet-hulls .hull-detail rect { fill: var(--hull-shadow); stroke: var(--hull-light); stroke-width: 1px; }
.fleet-hulls .hull-detail circle { fill: var(--hull-light); stroke: var(--hull-shadow); stroke-width: 1.25px; }
.fleet-hulls .hull-detail line { fill: none; stroke: var(--hull-light); stroke-width: 2.4px; stroke-linecap: round; }

@media (max-width: 1050px) {
  .app-shell { width: min(100% - 46px, 860px); }
  .hero-layout { min-height: 460px; grid-template-columns: .93fr 1.07fr; }.hero-copy h1 { font-size: clamp(68px,8.7vw,95px); }.hero-art { height: 390px; }
  .fleet-layout { grid-template-columns: minmax(0,1fr) 250px; }.deployment-layout { grid-template-columns: minmax(0,1fr) 258px; }.battle-layout { grid-template-columns: minmax(0,1fr) 224px; gap: 10px; }.battle-board-grid { grid-template-columns: minmax(0,1.12fr) minmax(195px,.88fr); gap: 9px; }.target-wrap .game-board, .own-wrap .game-board { gap: 1px; }.target-wrap, .own-wrap { padding: 5px; }.grid-footer { gap: 8px; font-size: 7px; }.ability-button { min-width: 128px; }
}
@media (max-width: 760px) {
  .app-shell { width: calc(100% - 32px); }.topbar { height: 61px; }.topbar-right { gap: 6px; font-size: 7px; }.build-label, .topbar-divider { display: none; }.view { padding: 26px 0 52px; }
  .hero-layout { display: flex; flex-direction: column; align-items: stretch; min-height: 0; gap: 27px; }.hero-copy { padding: 20px 2% 0; }.hero-copy h1 { margin: 20px 0 13px; font-size: clamp(70px,17vw,104px); }.hero-lede { margin-top: 20px; font-size: 15px; }.hero-sub { max-width: 430px; font-size: 12px; }.hero-actions { gap: 13px; }.quick-facts { display: none; }.hero-stats { margin-top: 27px; gap: 27px; }.hero-stats strong { font-size: 20px; }.hero-art { height: min(76vw,360px); min-height: 255px; }.ring-one { width: 115px; }.ring-two { width: 215px; }.ring-three { width: 315px; }.radar-cross { width: 315px; }.radar-sweep { width: 157px; height: 157px; }.artship-large { width: 120px; }.artship-small { left: 22%; }.map-pick-section { padding-top: 31px; }.section-heading { align-items: start; gap: 10px; }.section-heading h2 { font-size: 23px; }.section-note { max-width: 108px; padding-top: 4px; text-align: right; line-height: 1.5; }.map-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.map-card { padding: 9px; }.mini-map { height: 84px; }.map-card-bottom h3 { font-size: 14px; }.map-card-bottom p { min-height: 31px; font-size: 8px; }.map-arrow { width: 21px; height: 21px; }
  .step-heading { gap: 11px; }.step-heading h1, .battle-topline h1 { font-size: 27px; }.step-heading .eyebrow { font-size: 8px; }.step-index { margin-left: 5px; font-size: 7px; }.map-stamp { max-width: 112px; text-align: right; font-size: 8px; }.map-stamp .stamp-title { font-size: 12px; }.step-lede { margin-left: 49px; font-size: 10px; line-height: 1.55; }
  .fleet-layout { display: flex; flex-direction: column; }.fleet-cards { gap: 7px; }.fleet-card { min-height: 81px; gap: 7px; padding: 8px; }.fleet-card .ship-token { width: 28px; height: 28px; font-size: 15px; }.fleet-card-copy strong { font-size: 14px; }.fleet-card-copy small { font-size: 8px; }.ability-chip { font-size: 7px; }.select-check { width: 17px; height: 17px; }.fleet-manifest { width: 100%; }.selected-fleet-list { display: grid; grid-template-columns: repeat(2,1fr); min-height: 0; gap: 0 12px; }.manifest-note { margin-top: 13px; }
  .deployment-layout { display: flex; flex-direction: column; }.board-column, .deploy-controls { width: 100%; }.deploy-board { width: min(100%,620px); gap: 2px; }.board-wrap { padding: 5px; }.deploy-controls { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }.deploy-controls .manifest-kicker, .deploy-controls h2, .deploy-controls .control-hint { grid-column: 1 / -1; }.deploy-controls h2 { margin-bottom: 2px; }.control-hint { min-height: 0; }.orientation-control { margin-bottom: 0; }.deployment-ship-list { grid-column: 1 / -1; max-height: 200px; margin-top: 11px; }.deploy-buttons { grid-column: 1 / -1; }.panel-footnote { grid-column: 1 / -1; }
  .battle-topline { align-items: start; gap: 8px; }.battle-controls { gap: 6px; }.turn-chip { min-height: 28px; padding: 0 6px; gap: 5px; font-size: 7px; }.icon-button { width: 28px; height: 28px; }.text-button { font-size: 8px; padding: 4px 0; }.objective-strip { gap: 8px; padding: 8px; }.objective-icon { width: 26px; height: 26px; font-size: 15px; }.objective-title { font-size: 6px; }.objective-strip strong { font-size: 9px; }.objective-progress { width: 27%; }.objective-progress > span { font-size: 7px; }.battle-layout { display: flex; flex-direction: column; }.battle-main, .battle-sidebar { width: 100%; }.battle-board-grid { grid-template-columns: 1fr; }.own-panel { order: 2; }.target-wrap .game-board { width: min(100%,600px); }.own-wrap .game-board { width: min(100%,320px); }.target-wrap { padding: 7px; }.board-heading { margin-bottom: 5px; }.board-label { font-size: 8px; }.board-size { font-size: 10px; }.grid-footer { justify-content: center; }.action-dock { margin-top: 8px; }.ability-bar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }.ability-button { min-width: 0; padding: 5px; }.ability-copy b { font-size: 11px; }.ability-ready { font-size: 5px; }.battle-sidebar { display: grid; grid-template-columns: 1fr; }.fleet-status-panel { order: 1; }.battle-fleet-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 12px; }.intel-panel { order: 2; }.battle-log { max-height: 180px; }.sidebar-footer { order: 3; }.result-card { padding: 24px 19px; }
}
@media (max-width: 390px) {
  .app-shell { width: calc(100% - 24px); }.brand-name { font-size: 13px; }.status-copy { letter-spacing: .5px; }.map-card-bottom { gap: 4px; }.map-card-bottom h3 { font-size: 13px; }.map-card-bottom p { font-size: 7px; }.fleet-card { padding: 7px 5px; }.fleet-card-copy strong { font-size: 12px; }.fleet-card-copy small { font-size: 7px; }.ability-chip { padding: 2px 4px; font-size: 6px; }.battle-controls { gap: 4px; }.text-button { max-width: 55px; line-height: 1.2; }.battle-topline h1 { font-size: 24px; }
}
