:root {
  --ink: #173e48;
  --muted: #687c7d;
  --paper: #f5f3eb;
  --white: #fffef9;
  --line: #d7dfd6;
  --teal: #287b77;
  --mint: #deeee5;
  --orange: #e98554;
  --navy: #123f4a;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button, input {
  font: inherit;
}

button, a, input {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

button {
  transition: background .16s, transform .16s, box-shadow .16s;
}

button:not(:disabled):active {
  transform: translateY(1px);
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

h1, h2, p {
  margin-top: 0;
}

button {
  color: inherit;
}

button, input {
  border-radius: 8px;
}

.topbar {
  height: 92px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1.8px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-mark {
  font-family: Georgia, serif;
  font-size: 29px;
  color: var(--teal);
  font-weight: 400;
}

.brand-dot {
  color: var(--orange);
  margin-left: -9px;
}

.top-caption {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
}

.text-button {
  border: 0;
  background: transparent;
  padding: 10px 4px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.text-button:hover {
  color: var(--teal);
}

.text-button span {
  margin-right: 5px;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.home {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 68px;
  min-height: 680px;
  padding: 64px 0 76px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tiny-line {
  width: 25px;
  height: 2px;
  background: var(--orange);
}

.home h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(46px, 5.2vw, 70px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -2.8px;
  margin: 24px 0;
}

.home h1>span {
  color: var(--teal);
  font-style: italic;
}

.intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 30px;
}

.choice-title {
  font-size: 15px;
  margin-bottom: 14px;
}

.opponent-choices {
  display: grid;
  gap: 10px;
  max-width: 430px;
}

.opponent-card {
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 84px;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 15px 18px;
  gap: 16px;
  border-radius: 11px;
}

.opponent-card:hover, .opponent-card.selected {
  border-color: var(--teal);
  background: #edf3e9;
  box-shadow: 0 3px 0 #173e4808;
}

.choice-icon {
  display: grid;
  place-items: center;
  border-radius: 10px;
  min-width: 43px;
  height: 43px;
  background: #e4eee3;
  color: var(--teal);
  font-size: 23px;
  letter-spacing: -6px;
  padding-right: 6px;
}

.choice-icon.robot {
  background: #f9e8db;
  color: #ad613b;
  font-size: 29px;
  padding: 0;
  letter-spacing: 0;
}

.opponent-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}

.opponent-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.card-arrow {
  margin-left: auto;
  font-size: 21px;
  font-weight: 400;
}

.home-note {
  font-size: 10px;
  color: var(--muted);
  margin: 22px 0 0;
  line-height: 1.8;
}

.home-note>span:first-child {
  color: var(--teal);
  font-weight: bold;
}

.note-dot {
  padding: 0 7px;
  opacity: .5;
}

.sea-art {
  position: relative;
  aspect-ratio: 1;
  max-width: 500px;
  align-self: center;
  border-radius: 48% 48% 11px 11px;
  background: var(--navy);
  box-shadow: 12px 14px 0 #e4e7da;
}

.sea-art svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.art-coordinate {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #7daba5;
}

.art-label {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #b7d0c4;
}

.signal-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #80b6a0;
  box-shadow: 0 0 0 4px #80b6a018;
}

.art-sticker {
  position: absolute;
  right: -18px;
  bottom: 82px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #f3ad76;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transform: rotate(12deg);
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: italic;
  box-shadow: 4px 6px 0 #123f4a25;
}

.art-sticker>span {
  position: absolute;
  right: 13px;
  top: 18px;
}

.online-form {
  max-width: 430px;
  border: 1px solid var(--line);
  padding: 17px;
  border-radius: 10px;
  display: grid;
  gap: 12px;
  margin-top: 12px;
  background: var(--white);
}

.online-form label {
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
}

.or {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.join-row {
  display: flex;
  gap: 8px;
}

.join-row input {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  letter-spacing: 3px;
  font-family: monospace;
  text-transform: uppercase;
}

.primary, .secondary {
  border: 1px solid transparent;
  min-height: 46px;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.primary {
  background: var(--teal);
  color: #fffef7;
}

.primary:not(:disabled):hover {
  background: #195f5f;
  box-shadow: 0 4px 12px #173e4817;
}

.secondary {
  border-color: var(--line);
  background: var(--white);
}

.secondary:hover {
  background: #e9eee5;
}

.small {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 12px;
}

footer {
  max-width: 1184px;
  margin: 0 auto;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.2px;
}

footer>span:last-child {
  letter-spacing: 0;
  font-size: 11px;
}

.game-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 40px 0 25px;
}

.game-heading h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 37px;
  letter-spacing: -1px;
  margin: 12px 0 10px;
}

.game-heading p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.room-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: #e6ede3;
  border: 1px solid #d2dfcf;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 22px;
}

.room-panel small {
  font-size: 8px;
  letter-spacing: 1.6px;
  display: block;
  margin-bottom: 3px;
}

.room-panel strong {
  font-family: monospace;
  letter-spacing: 4px;
  font-size: 21px;
}

.room-panel p {
  margin: 0 0 0 auto;
  font-size: 12px;
  color: var(--teal);
}

#bot-offer {
  flex-basis: 100%;
  border-top: 1px solid #cadacc;
  padding-top: 6px;
  font-size: 12px;
}

#share-link {
  flex-basis: 100%;
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--white);
  font-size: 12px;
}

.game-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.board-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 25px 24px 17px;
  min-width: 0;
}

.board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 22px;
}

.board-kicker {
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1.6px;
  color: var(--muted);
}

.board-heading h2 {
  font-size: 20px;
  margin: 8px 0 0;
  letter-spacing: -.5px;
}

.counter {
  background: #eaf0e5;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 6px;
  white-space: nowrap;
}

.board-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 3px 9px;
  scrollbar-width: thin;
  scrollbar-color: #a8c1b5 transparent;
}

.board {
  --cell: clamp(25px, 3.2vw, 40px);
  display: grid;
  grid-template-columns: 24px repeat(10, var(--cell));
  grid-template-rows: 24px repeat(10, var(--cell));
  width: max-content;
  margin: 0 auto;
  user-select: none;
}

.axis {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 10px;
  color: #8a9b98;
}

.cell {
  background: #f2f6ef;
  border: 0;
  border-right: 1px solid #dce5dc;
  border-bottom: 1px solid #dce5dc;
  padding: 0;
  border-radius: 0;
  position: relative;
  min-width: 0;
  opacity: 1 !important;
  transition: background .12s;
  color: var(--ink);
  font-size: 19px;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.cell.top-edge {
  border-top: 1px solid #dce5dc;
}

.cell.left-edge {
  border-left: 1px solid #dce5dc;
}

.cell:disabled {
  cursor: default;
}

.cell:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -3px;
  z-index: 3;
}

.cell.ship::before {
  content: '';
  position: absolute;
  inset: 3px 1px;
  background: #5c8f87;
  border-top: 1px solid #436f6b;
  border-bottom: 1px solid #436f6b;
}

.cell.ship.ship-start::before {
  left: 4px;
  border-radius: 9px 0 0 9px;
}

.cell.ship.ship-end::before {
  right: 4px;
  border-radius: 0 18px 18px 0;
}

.cell.ship.vertical::before {
  inset: 1px 3px;
  border: 0;
  border-left: 1px solid #436f6b;
  border-right: 1px solid #436f6b;
}

.cell.ship.vertical.ship-start::before {
  top: 4px;
  border-radius: 9px 9px 0 0;
}

.cell.ship.vertical.ship-end::before {
  bottom: 4px;
  border-radius: 0 0 18px 18px;
}

.cell.ship::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9ddd0;
  left: calc(50% - 2.5px);
  top: calc(50% - 2.5px);
}

.cell.hit {
  background: #f9e2cf;
}

.cell.hit::after {
  content: '×';
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  display: grid;
  place-items: center;
  background: transparent;
  color: #a64722;
  font-size: 26px;
}

.cell.hit.ship::before {
  background: #e3a579;
  border-color: #cb8e65;
}

.cell.miss::after {
  content: '';
  position: absolute;
  left: calc(50% - 3px);
  top: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #93aaa4;
}

.cell.sunk {
  background: #345a61;
  color: white;
}

.cell.sunk::before {
  display: none;
}

.cell.sunk::after {
  content: '×';
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  display: grid;
  place-items: center;
  background: transparent;
  color: #e4e9dc;
  font-size: 23px;
}

.cell.preview-valid {
  background: #b6dcc5;
}

.cell.preview-invalid {
  background: #f2c4b4;
}

.cell.aimed {
  box-shadow: inset 0 0 0 3px var(--orange);
  background: #fbe9d6;
}

.enemy-card.is-turn .cell:not(:disabled):hover {
  background: #f3dfc7;
  box-shadow: inset 0 0 0 2px #e9855499;
}

.placement-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.placement-toolbar .text-button {
  font-size: 11px;
}

.placement-toolbar .secondary {
  font-size: 11px;
}

#orientation-label {
  font-weight: 400;
  color: var(--muted);
  font-size: 10px;
}

.placement-card {
  padding: 28px 32px;
  border-radius: 13px;
  background: #e8ede1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.placement-card h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 31px;
  line-height: 1.1;
  margin: 12px 0 14px;
  letter-spacing: -.6px;
}

.placement-card>p {
  font-size: 12px;
  line-height: 1.65;
  color: #617b73;
  max-width: 380px;
}

.ship-palette {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 16px;
}

.palette-ship {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 1px solid #cfd9ca;
  padding: 10px 13px;
  text-align: left;
  min-height: 44px;
  gap: 10px;
}

.palette-ship:hover, .palette-ship.selected {
  border-color: var(--teal);
  background: #f7f8f0;
}

.palette-ship.selected {
  box-shadow: inset 3px 0 0 var(--teal);
}

.palette-ship.placed {
  border-style: dashed;
}

.ship-name {
  font-size: 12px;
}

.ship-mini {
  display: flex;
  gap: 2px;
  align-items: center;
}

.ship-mini i {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: #5c8f87;
}

.ship-check {
  margin-left: 7px;
  font-size: 12px;
  color: #558678;
}

.ready-button {
  margin-top: auto;
  width: 100%;
  justify-content: space-between;
}

.microcopy {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.placement-card .microcopy {
  margin: 10px 0 0;
  text-align: center;
  font-size: 10px;
}

.fleet-status {
  display: flex;
  gap: 9px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
  min-height: 30px;
}

.fleet-symbol {
  display: flex;
  align-items: center;
  gap: 2px;
}

.fleet-symbol i {
  display: block;
  width: 10px;
  height: 8px;
  background: #79a091;
  border-radius: 1px;
}

.fleet-symbol.destroyed i {
  background: #c4cfbe;
}

.enemy-card .fleet-symbol i {
  background: #7f999b;
}

.below-boards {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 3px;
  gap: 10px;
}

.legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.legend>span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.legend-ship {
  background: #5c8f87;
}

.legend-miss {
  border-radius: 50% !important;
  background: #93aaa4;
  width: 5px !important;
  height: 5px !important;
  margin: 0 2px;
}

.legend-hit {
  background: #e9a478;
}

.legend-sunk {
  background: #345a61;
}

.below-boards>.text-button {
  font-size: 11px;
}

.battle-status {
  background: #e8ede1;
  border-radius: 9px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 17px 22px;
  margin: 0 0 35px;
  font-size: 13px;
  min-height: 53px;
}

.battle-status #shot-stats {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.notice {
  background: #fae6ce;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
}

.aim-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  font-size: 12px;
}

.touch-hint {
  margin-top: -4px;
}

.enlarged .board {
  --cell: 44px;
}

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 23px;
  max-width: calc(100vw - 32px);
  width: max-content;
  z-index: 30;
  background: var(--navy);
  color: #fffef7;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 8px 30px #123f4a30;
  line-height: 1.5;
}

dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px;
  background: var(--white);
  color: var(--ink);
  max-width: 510px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 100px #0b303944;
}

dialog::backdrop {
  background: #0b303979;
  backdrop-filter: blur(4px);
}

dialog h2 {
  font-family: Georgia, serif;
  font-size: 33px;
  font-weight: 400;
  letter-spacing: -.7px;
  margin: 16px 0;
}

dialog>p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 15px;
  border: 0;
  background: transparent;
  font-size: 27px;
  padding: 4px 9px;
}

.rules-list {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.7;
}

.rules-list li {
  padding: 0 0 15px 6px;
}

.rules-list strong {
  display: block;
}

dialog>.primary {
  width: 100%;
  margin-top: 8px;
}

.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

#result-dialog {
  text-align: center;
}

#result-dialog .eyebrow {
  justify-content: center;
}

.result-icon {
  display: grid;
  place-items: center;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: #e5efdf;
  color: var(--teal);
  font-size: 40px;
  margin: 0 auto 20px;
}

.result-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 15px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
}

.result-stats strong {
  display: block;
  font-size: 24px;
}

.result-stats span {
  font-size: 11px;
  color: var(--muted);
}

#result-home {
  margin-top: 8px;
}

#rematch-status:empty {
  display: none;
}

noscript {
  padding: 20px;
  display: block;
  text-align: center;
  background: #fae6ce;
}

@media (min-width:  1400px) {
  .home {
    min-height: 730px;
  }

  .board {
    --cell: 42px;
  }
}

@media (max-width:  1100px) {
  main {
    padding: 0 30px;
  }

  .topbar {
    padding: 0 30px;
  }

  .home {
    gap: 45px;
  }

  .home h1 {
    font-size: 58px;
  }

  .board-card {
    padding: 22px 15px 15px;
  }

  .placement-card {
    padding: 25px;
  }

  footer {
    margin: 0 30px;
  }

  .board {
    --cell: calc((100vw - 180px)/22);
  }

  .placement-toolbar {
    gap: 4px;
  }

  .placement-toolbar .small {
    padding: 9px;
  }
}

@media (max-width:  800px) {
  .topbar {
    height: 76px;
  }

  .top-caption {
    display: none;
  }

  .home {
    gap: 30px;
    padding: 45px 0 60px;
    min-height: 0;
  }

  .home h1 {
    font-size: 45px;
    letter-spacing: -2px;
  }

  .sea-art {
    min-width: 0;
  }

  .art-label {
    font-size: 6px;
  }

  .art-sticker {
    height: 80px;
    width: 80px;
    font-size: 16px;
    right: -8px;
    bottom: 50px;
  }

  .intro {
    font-size: 14px;
  }

  .opponent-card {
    padding: 13px 12px;
    gap: 10px;
  }

  .opponent-card strong {
    font-size: 14px;
  }

  .opponent-card small {
    font-size: 10px;
  }

  .home-note {
    font-size: 9px;
  }

  .desktop-break {
    display: none;
  }

  .game-workspace {
    gap: 15px;
  }

  .board-heading h2 {
    font-size: 17px;
  }

  .placement-card {
    padding: 22px 18px;
  }

  .placement-card h2 {
    font-size: 27px;
  }

  .ship-mini i {
    width: 10px;
    height: 12px;
  }

  .ship-name {
    font-size: 11px;
  }

  .legend {
    gap: 12px;
  }

  .game-heading h1 {
    font-size: 32px;
  }

  .placement-toolbar {
    flex-wrap: wrap;
  }

  .placement-toolbar .secondary {
    flex-basis: 100%;
  }

  .game-heading {
    padding-top: 30px;
  }
}

@media (max-width:  680px) {
  main {
    padding: 0 20px;
  }

  .topbar {
    padding: 0 20px;
  }

  .brand {
    font-size: 30px;
  }

  .topbar .text-button {
    font-size: 12px;
  }

  .home {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 35px 0 45px;
  }

  .home-copy {
    max-width: 500px;
  }

  .home h1 {
    font-size: 52px;
    margin: 21px 0;
  }

  .intro {
    margin-bottom: 25px;
  }

  .opponent-choices {
    max-width: none;
  }

  .opponent-card {
    min-height: 80px;
    padding: 16px;
  }

  .opponent-card strong {
    font-size: 16px;
  }

  .opponent-card small {
    font-size: 12px;
  }

  .home-note {
    font-size: 10px;
  }

  .sea-art {
    width: 90%;
    max-width: 355px;
    justify-self: center;
  }

  .art-label {
    font-size: 7px;
  }

  .art-sticker {
    width: 95px;
    height: 95px;
    font-size: 18px;
  }

  .online-form {
    max-width: none;
  }

  .game-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 26px 0 19px;
  }

  .game-heading h1 {
    font-size: 32px;
  }

  .game-heading p {
    font-size: 13px;
    line-height: 1.6;
  }

  .game-heading>.text-button {
    padding: 3px 0;
    font-size: 11px;
  }

  .game-workspace {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .board-card {
    padding: 20px 12px 15px;
  }

  .board-heading {
    padding: 0 5px;
    margin-bottom: 13px;
  }

  .board-heading h2 {
    font-size: 20px;
  }

  .board {
    --cell: calc((100vw - 98px)/10);
  }

  .placement-toolbar {
    flex-wrap: nowrap;
  }

  .placement-toolbar .secondary {
    flex-basis: auto;
  }

  .placement-card {
    padding: 25px;
  }

  .placement-card h2 br {
    display: none;
  }

  .placement-card h2 {
    font-size: 28px;
  }

  .palette-ship {
    min-height: 48px;
  }

  .ship-name {
    font-size: 13px;
  }

  .ship-mini i {
    width: 15px;
    height: 15px;
  }

  .room-panel {
    padding: 14px;
    gap: 10px;
  }

  .room-panel p {
    flex-basis: 100%;
    margin: 0;
    line-height: 1.5;
  }

  .room-panel strong {
    font-size: 20px;
  }

  .room-panel .small {
    font-size: 10px;
    padding: 10px;
  }

  .room-panel>div:first-child {
    margin-right: auto;
  }

  .room-panel small {
    font-size: 7px;
  }

  .room-panel .text-button {
    white-space: normal;
    text-align: left;
  }

  .below-boards {
    align-items: flex-start;
    gap: 5px;
  }

  .legend {
    gap: 11px;
    max-width: 225px;
  }

  .legend>span {
    font-size: 9px;
  }

  .below-boards>.text-button {
    font-size: 10px;
    padding-top: 0;
    white-space: normal;
    text-align: right;
    min-width: 75px;
  }

  .battle-status {
    padding: 15px;
    flex-wrap: wrap;
    font-size: 12px;
    line-height: 1.6;
  }

  .battle-status #shot-stats {
    flex-basis: 100%;
    margin-left: 19px;
    font-size: 10px;
  }

  footer {
    margin: 0 20px;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
    font-size: 8px;
  }

  footer>span:last-child {
    font-size: 10px;
  }

  dialog {
    padding: 30px 24px;
  }

  dialog h2 {
    font-size: 29px;
  }

  .aim-controls .primary {
    min-height: 46px;
  }

  .touch-layout .placement-toolbar button {
    min-height: 44px;
  }

  .touch-layout .cell {
    touch-action: pan-x pan-y;
  }

  .enlarged .board {
    margin: 0 auto;
  }

  .enlarged .board-scroll {
    scrollbar-width: auto;
  }

  .touch-hint {
    font-size: 10px;
  }

  .result-stats {
    gap: 24px;
  }
}

@media (prefers-reduced-motion:  reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.enemy-card .fleet-symbol.destroyed i {
  background: #c4cfbe;
}

.palette-ship {
  user-select: none;
  cursor: grab;
}

.dragging-ship, .dragging-ship button {
  cursor: grabbing !important;
  user-select: none;
}
