
:root{--paper:#f7f6f0;--white:#fdfcf7;--ink:#28392f;--muted:#4d5e50;--line:#cad2c2;--coral:#7b4439;--coral-dark:#63352d;--teal:#405745;--teal-soft:#e2e7da;--mint:#e2e7da;--orange:#7b4439;--navy:#405745;--shadow:transparent;--radius:3px;font-family:"Helvetica Neue",Arial,sans-serif;background:var(--paper);color:var(--ink)}
body{background:var(--paper)}::selection{background:#cad5ba;color:var(--ink)}h1,h2,h3,.brand{font-family:Georgia,serif;font-weight:400;letter-spacing:-.035em}h1{font-size:clamp(42px,5vw,64px);line-height:1.06}.accent-word{font-style:normal;letter-spacing:inherit;color:inherit}.brand{font-size:32px;white-space:nowrap}.site-shell{max-width:1320px;padding:0 40px}.site-header,.topbar{height:auto;min-height:100px;border:0;gap:28px}.portal-back{margin-left:auto;min-height:44px;display:flex;align-items:center;font-size:14px;text-underline-offset:5px}.site-header .how-button,.topbar #rules-button{font-size:14px}.topbar{max-width:1320px;padding:0 40px}.eyebrow,.card-topline,.card-footnote,.feature-icon,.top-caption{display:none}.scene-art{display:block;width:100%;height:auto;object-fit:cover;aspect-ratio:3/2;margin-top:25px}.hero-description,.intro{font-size:17px;line-height:1.6;color:var(--ink)}.start-screen{gap:64px;grid-template-columns:1.15fr 1fr;padding:35px 0 60px}.mode-card,.board-card,.placement-card{border:0;border-radius:3px;box-shadow:none;background:#e9ede3;padding:28px}.mode-card h2{font-size:32px}.mode-card p,.mode-description p{font-size:15px;line-height:1.6}.mode-description h3{font:24px Georgia,serif}.button,button.primary,button.secondary,.mode-tab,.opponent-card,input,.difficulty-option{border-radius:3px;box-shadow:none;min-height:44px}.button.primary,button.primary,.primary{background:var(--teal);border-color:var(--teal);color:white}.button.secondary,button.secondary{background:var(--paper);border-color:var(--line);color:var(--ink)}button{font-weight:400}.mode-switch{border:0;background:#dce3d2;border-radius:3px}.mode-tab.active{background:var(--paper);box-shadow:none}.mode-tab{font-size:15px}.mode-tab svg{display:none}.difficulty-option{background:var(--paper);border-color:var(--line)}.difficulty-copy strong{font-size:15px}.difficulty-copy small{font-size:13px}.game-layout{grid-template-columns:minmax(250px,.85fr) minmax(330px,1fr);gap:60px}.game-sidebar h1{font-size:42px}.game-sidebar .scene-art{margin:24px 0}.game-caption{font-size:16px}.game-status p{font:27px Georgia,serif}.game-status>span,.player-card strong{font-size:15px}.player-card small,.board-bottom,.connection-pill{font-size:13px}.player-card{background:var(--paper);border:0;border-radius:3px}.player-card.active{background:#d4dec9}.cell{background:var(--paper);border:0;border-radius:3px;box-shadow:none}.board{gap:8px}.game-mode-label,.tiny-label,.round-label{font-size:13px;letter-spacing:0;text-transform:none}.site-footer,footer{border:0;font-size:14px;color:var(--muted);padding-top:25px}.sidebar-note{font-size:16px}.scoreboard{border:0}.score-row span{font-size:14px}.invite-box{border:0;background:#e2e7da;border-radius:3px}.invite-box p{font-size:14px}.how-dialog,dialog{background:var(--paper);border:0;border-radius:3px;color:var(--ink);max-width:520px}.how-dialog h2,dialog h2{font-size:34px}.how-dialog li span,dialog p,.rules-list{font-size:16px;line-height:1.6}.how-dialog .eyebrow{display:none}.home{max-width:1240px;gap:60px;padding:35px 0 60px}.home .intro{font-size:17px}.sea-art{padding:0;background:none;box-shadow:none;transform:none;border:0;aspect-ratio:auto;height:auto}.sea-art .scene-art{margin:0}.opponent-card{background:#e2e7da;border:0;padding:20px}.opponent-card strong{font:24px Georgia,serif}.opponent-card small{font-size:14px}.choice-icon,.card-arrow{display:none}.home-note{font-size:14px}.choice-title{font-size:27px}.game-heading h1{font-size:38px}.game-heading p{font-size:16px}.board-heading h2{font-size:27px}.game-workspace{gap:30px}.placement-card h2{font-size:34px}.placement-card p,.microcopy{font-size:14px}.placement-card .primary{font-size:15px}.game-workspace .board{gap:3px}.game-workspace .cell{border-radius:2px}.palette-ship{border-radius:3px}.ship-name{font-size:14px}.battle-status{border-radius:3px;background:#e2e7da;color:var(--ink)}.board-kicker{display:none}.topbar+.home{padding-top:30px}.game-heading{gap:20px}.counter{background:var(--paper);color:var(--ink);border-radius:3px}.home h1 span{color:inherit;font-style:normal}.home-note .note-dot{padding:0 8px}.home-note span:first-child{color:var(--teal)}
@media(max-width:900px){.start-screen,.home{gap:30px}.site-shell,.topbar{padding-left:25px;padding-right:25px}.game-layout{gap:30px}.home{padding-left:25px;padding-right:25px}.game-workspace{gap:20px}.board-card,.placement-card{padding:20px}}
@media(max-width:650px){.site-shell,.topbar{padding-left:20px;padding-right:20px}.site-header,.topbar{min-height:95px;flex-wrap:wrap;gap:8px 20px;padding-top:18px;padding-bottom:16px}.brand{font-size:29px}.portal-back{font-size:13px}.how-button,#rules-button{margin-left:0;font-size:14px!important}.start-screen{display:flex;flex-direction:column;gap:24px;padding-top:22px}.hero-copy h1{font-size:44px}.hero-description{font-size:16px;max-width:none;margin-top:15px}.hero-copy{width:100%}.scene-art{max-height:220px;object-position:center;margin-top:20px}.mode-card{margin:0;width:100%;padding:23px}.mode-card h2{font-size:28px}.difficulty-picker{grid-template-columns:1fr 1fr}.difficulty-copy{display:block}.difficulty-copy small{font-size:12px}.game-layout{gap:20px}.board-card{padding:20px}.game-sidebar .scene-art{display:none}.game-status p{font-size:24px}.game-status>span{font-size:14px}.player-card strong{font-size:14px}.player-card small{font-size:12px}.board-bottom{font-size:12px}.game-screen{padding-top:10px}.home{display:flex;flex-direction:column-reverse;padding:20px;gap:24px}.sea-art{width:100%;max-width:none;min-height:0;margin:0}.sea-art .scene-art{max-height:200px;aspect-ratio:3/1.6}.home-copy{width:100%}.home h1{font-size:44px}.home .intro{font-size:16px}.game-heading h1{font-size:32px}.game-workspace{display:flex;flex-direction:column}.game-workspace .board-card,.placement-card{width:100%}.game-workspace .board-card{padding:14px}.board-heading h2{font-size:25px}.game-workspace .cell{min-width:0}.game-heading{align-items:start;flex-direction:column}.below-boards{gap:14px;flex-wrap:wrap}.legend{flex-wrap:wrap;gap:12px}footer{font-size:13px;padding:20px}.game-sidebar{display:contents}.site-footer{font-size:13px}.footer-signoff{display:none}}

main{max-width:1320px;padding:0 40px}.home{min-height:0}.home-copy .intro{display:block}.sea-art{overflow:hidden}.opponent-card{box-shadow:none!important}.ship-mini i{background:#405745}.board .cell.ship{background:#b8c6aa}.board .cell.hit,.board .cell.sunk{background:#7b4439}.board .cell.miss{background:#d9e0d1}@media(max-width:900px){main{padding:0 25px}.home{padding-left:0;padding-right:0}}@media(max-width:650px){main{padding:0 20px}.home{padding:15px 0 30px}.home .intro{display:block}.home h1{font-size:44px}.sea-art{display:block}}

.game-scene{width:240px;height:140px;object-fit:cover;margin-left:auto}.axis{font:13px Arial,sans-serif!important;color:#4d5e50!important}.legend{font-size:13px}.cell.ship:before,.ship-mini i,.legend-ship{background:#718867}.legend-hit{background:#7b4439}.legend-sunk{background:#405745}.fleet-symbol i{background:#718867}@media(max-width:650px){.game-scene{width:100%;height:125px;margin:0;object-position:50% 55%}.game-heading{gap:15px}}
.board-pan-cue{display:none}@media(max-width:650px){.board-pan-cue{display:block;font-size:13px;line-height:1.45;color:var(--muted);margin:0 0 12px}.game-workspace .board{width:100%;min-width:294px;aspect-ratio:1;grid-template-columns:24px repeat(10,minmax(0,1fr));grid-template-rows:24px repeat(10,minmax(0,1fr));gap:3px}.enlarged .game-workspace .board{width:494px;min-width:494px;grid-template-columns:24px repeat(10,44px);grid-template-rows:24px repeat(10,44px)}}


/* A real writing desk frames the playable paper; all targets stay on top. */
:root{--desk-art:url("../../../assets/game-materials/quiet-worktable.webp")}
button:not(:disabled){transition:background-color .16s ease,color .16s ease,transform .16s ease}
button:not(:disabled):active{transform:translateY(1px)}
@keyframes ink-arrive{from{opacity:.45;scale:.76}to{opacity:1;scale:1}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.game-workspace .board-card{background-image:var(--desk-art);background-size:100% 100%;background-position:center;padding:25px 25px 22px;border-radius:2px}
.board-heading{background:#f9f0deed;margin:0;padding:8px 8px 14px}.board-scroll{background:#f9f0deed;padding:0 4px 8px}.game-workspace .board{gap:0;isolation:isolate}.game-workspace .cell{border-radius:0;border-right:1px solid #7b8a7470;border-bottom:1px solid #7b8a7470;background:transparent;min-height:0;z-index:1}.game-workspace .cell.top-edge{border-top:1px solid #7b8a7470}.game-workspace .cell.left-edge{border-left:1px solid #7b8a7470}.board .cell.ship{background:#4057450a}.board .cell.ship:before,.board .cell.ship:not(.hit):not(.sunk):after{display:none}.board .cell.hit{background:#7b443927}.board .cell.hit:after{color:#7b4439;font-family:Georgia,serif;font-size:25px}.board .cell.sunk{background:#405745b8}.board .cell.sunk:after{color:#fff7e9}.board .cell.miss{background:transparent}.board .cell.miss:after{width:12px;height:12px;left:calc(50% - 6px);top:calc(50% - 6px);border:2px solid #6c8267;background:transparent}.board .cell.preview-valid{background:#40574544}.board .cell.preview-invalid{background:#7b443944}.board .cell.aimed{box-shadow:inset 0 0 0 3px #7b4439;background:#7b443925}.enemy-card.is-turn .cell:not(:disabled):hover{background:#40574525}.board .fleet-illustration{pointer-events:none;z-index:0;align-self:center;justify-self:stretch;width:100%;height:75%;object-fit:fill;filter:drop-shadow(0 2px 2px #28392f30)}.board .fleet-illustration.vertical{width:75%;height:100%;justify-self:center;object-fit:fill}.board .cell.hit:after,.board .cell.sunk:after{z-index:2}.palette-ship.selected{background:#d5dfc9;border-color:#405745}.ship-mini{gap:2px}.board-heading h2{font-style:italic}.placement-card{background:#e9ece0}
@media(max-width:650px){.game-workspace .board-card{padding:20px 16px 16px}.game-workspace .board{grid-template-columns:24px repeat(10,minmax(0,1fr));grid-template-rows:24px repeat(10,minmax(0,1fr));gap:0;min-width:274px}.enlarged .game-workspace .board{width:464px;min-width:464px;grid-template-columns:24px repeat(10,44px);grid-template-rows:24px repeat(10,44px)}}

.board{position:relative}.board-scroll{background:#f9f1df url("../../../assets/game-materials/quiet-paper.webp") center/cover}.board-heading{background:#f9f1df}.fleet-art{position:absolute;pointer-events:none;z-index:0;left:calc(24px + (100% - 24px)*var(--col)/10);top:calc(24px + (100% - 24px)*var(--row)/10);width:calc((100% - 24px)*var(--length)/10);height:calc((100% - 24px)/10);background:url("../../../assets/game-materials/wooden-ship.webp") center/96% 78% no-repeat;transform-origin:top left}.fleet-art.vertical{transform:rotate(90deg) translateY(-100%)}.ship-mini{background:url("../../../assets/game-materials/wooden-ship.webp") left center/contain no-repeat;width:110px;height:27px;justify-content:flex-end}.ship-mini i{visibility:hidden}.ship-check{background:#e2e7da;padding:0 3px}.board .cell.ship:not(.hit):not(.sunk){background:transparent}
.placement-toolbar{margin:10px 8px 0;padding:4px 8px;gap:8px;flex-wrap:wrap;background:#f9f1df}.placement-toolbar button{min-height:44px;flex-shrink:0}.placement-toolbar .text-button,.placement-toolbar .secondary{font-size:13px}.placement-toolbar .secondary{flex-basis:auto}
/* Functional text must remain readable beside the illustrated board. */ .placement-card>p{color:var(--muted)}.room-panel small{font-size:12px;letter-spacing:0}.room-panel .small{font-size:13px}#orientation-label{font-size:12px}.legend>span{font-size:12px}.below-boards>.text-button{font-size:13px}.battle-status #shot-stats{font-size:12px}
