/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg2: #0c1830;
  --bg3: #040a15;
  --panel: rgba(10, 19, 38, 0.72);
  --line: rgba(123, 217, 255, 0.18);
  --text: #eaf7ff;
  --muted: #9eb8c9;
  --cyan: #54d6ff;
  --blue: #3d7bff;
  --pink: #ff4d8d;
  --hit: #ff6b8b;
  --miss: #76b8ff;
  --ship: #6fffd2;
  --fog: rgba(255, 255, 255, 0.04);
  --gold: #ffd36b;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.09), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 77, 141, 0.08), transparent 25%),
    linear-gradient(180deg, var(--bg3), var(--bg), var(--bg2));
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
  pointer-events: none;
}

.ocean-depth {
  position: absolute;
  inset: auto 0 0 0;
  height: 45vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(84, 214, 255, 0.22), transparent 40%),
    linear-gradient(180deg, rgba(84, 214, 255, 0.08), rgba(5, 11, 23, 0));
  filter: blur(24px);
  opacity: 0.6;
  pointer-events: none;
}

.glow {
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.18;
  pointer-events: none;
}

.glow-a {
  top: -10%;
  left: -10%;
  background: var(--cyan);
}

.glow-b {
  right: -10%;
  bottom: -10%;
  background: var(--pink);
}

.card {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}

.hologram::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 35%, rgba(84,214,255,0.08));
  pointer-events: none;
  opacity: 0.7;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  margin: 0 auto 24px;
  max-width: 1400px;
}

.heroTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 0.95;
  margin-bottom: 12px;
  text-shadow: 0 0 24px rgba(84, 214, 255, 0.24);
}

h2 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

p {
  color: var(--muted);
  max-width: 70ch;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.pill,
.badge,
.turnIndicator {
  border-radius: 999px;
}

.button {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(84, 214, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(84, 214, 255, 0.15), 0 10px 25px rgba(84, 214, 255, 0.15);
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #02111f;
  font-weight: 700;
  border: none;
  box-shadow: 0 12px 32px rgba(61, 123, 255, 0.35);
}

.pill,
.badge,
.turnIndicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
}

.badge {
  font-size: 12px;
  padding: 8px 12px;
}

.badge.interactive {
  color: var(--cyan);
}

.badge.soft {
  color: var(--ship);
}

.turnIndicator {
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.turnIndicator.isActive {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255,255,255,0.24);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 14px 30px rgba(0,0,0,0.25);
  animation: activePulse 1.6s ease-in-out infinite;
}

.turnIndicator.player.isActive {
  background: linear-gradient(135deg, rgba(84,214,255,0.22), rgba(61,123,255,0.22));
  box-shadow: 0 0 28px rgba(84,214,255,0.22);
}

.turnIndicator.enemy.isActive {
  background: linear-gradient(135deg, rgba(255,77,141,0.22), rgba(255,211,107,0.16));
  box-shadow: 0 0 28px rgba(255,77,141,0.18);
}

.turnDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  grid-gap: 20px;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.panel {
  padding: 20px;
}

.infoPanel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panelHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.status {
  color: var(--text);
  font-size: 1.02rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
}

.dotHit {
  background: var(--hit);
}

.dotMiss {
  background: var(--miss);
}

.dotShip {
  background: var(--ship);
}

.dotFog {
  background: rgba(255,255,255,0.3);
}

.radarCard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.statBox {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.statBox span {
  color: var(--muted);
  font-size: 0.88rem;
}

.statBox strong {
  font-size: 1.6rem;
}

.boardsWrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.boardCard {
  overflow: hidden;
}

.boardShell {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.axis {
  display: grid;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.topAxis {
  grid-template-columns: 24px repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.leftAxis {
  grid-template-rows: repeat(8, minmax(0, 1fr));
  gap: 8px;
  width: 24px;
  align-items: center;
}

.boardGridWrap {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-gap: 10px;
  gap: 10px;
  align-items: stretch;
}

.boardGrid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
  perspective: 1200px;
}

.cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1px solid rgba(125, 216, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(94, 181, 255, 0.14), rgba(12, 28, 52, 0.75)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12), transparent 35%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateX(10deg) translateZ(0);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -10px 18px rgba(0,0,0,0.22),
    0 10px 18px rgba(0,0,0,0.18);
}

button.cell {
  cursor: pointer;
}

button.cell:disabled {
  cursor: default;
}

.cellSurface,
.cellGlow,
.cellContent,
.impactLayer {
  position: absolute;
  inset: 0;
}

.cellSurface {
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 35%),
    linear-gradient(135deg, rgba(84,214,255,0.08), transparent 60%);
}

.cellGlow {
  border-radius: inherit;
  box-shadow: inset 0 0 18px rgba(84,214,255,0.08);
}

.cellContent {
  position: relative;
  inset: auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  text-shadow: 0 0 12px currentColor;
}

.cell.hasShip {
  border-color: rgba(111,255,210,0.24);
  background:
    linear-gradient(180deg, rgba(111,255,210,0.22), rgba(12, 28, 52, 0.8)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.16), transparent 35%);
}

.cell.is-hit {
  border-color: rgba(255,107,139,0.5);
  box-shadow: inset 0 0 22px rgba(255,107,139,0.2), 0 10px 18px rgba(0,0,0,0.18);
}

.cell.is-miss {
  border-color: rgba(118,184,255,0.4);
}

.cell.enemy.is-hit {
  color: var(--hit);
}

.cell.enemy.is-miss,
.cell.player.is-miss {
  color: var(--miss);
}

.cell.player.hasShip .cellContent {
  color: rgba(111,255,210,0.92);
}

.cell.is-clickable:hover {
  transform: rotateX(10deg) translateY(-2px) translateZ(8px);
  border-color: rgba(84,214,255,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -10px 18px rgba(0,0,0,0.22),
    0 0 0 1px rgba(84,214,255,0.2),
    0 14px 24px rgba(84,214,255,0.16);
}

.cell.is-clickable:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.impactLayer {
  pointer-events: none;
  z-index: 4;
}

.shotRing,
.shockwave,
.flashCore,
.shotBeam {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.shotRing {
  width: 12%;
  height: 12%;
  border: 2px solid rgba(118,184,255,0.95);
  border-radius: 999px;
  animation: shotRing 0.7s ease-out forwards;
}

.shotBeam {
  width: 12%;
  height: 12%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,1), rgba(84,214,255,0.55), transparent 72%);
  animation: shotBeam 0.7s ease-out forwards;
}

.flashCore {
  width: 28%;
  height: 28%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,1), rgba(255,182,93,0.9) 35%, rgba(255,107,139,0.45) 60%, transparent 72%);
  filter: blur(1px);
  animation: flashPop 0.95s ease-out forwards;
}

.shockwave {
  width: 22%;
  height: 22%;
  border-radius: 999px;
  border: 2px solid rgba(255,210,130,0.85);
  box-shadow: 0 0 18px rgba(255,107,139,0.35);
  animation: shockExpand 1s ease-out forwards;
}

.sunkCore {
  width: 36%;
  height: 36%;
  background: radial-gradient(circle, rgba(255,255,255,1), rgba(255,211,107,0.95) 28%, rgba(255,77,141,0.72) 52%, transparent 75%);
}

.sunkWave {
  width: 28%;
  height: 28%;
  border-color: rgba(255,211,107,0.95);
  animation-duration: 1.4s;
}

.particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,1), rgba(255,211,107,0.9) 45%, rgba(255,77,141,0.45) 80%);
  box-shadow: 0 0 10px rgba(255,211,107,0.85);
  animation: particleBurst 1.25s ease-out forwards;
}

.particle-1 { --tx: 0px; --ty: -34px; }
.particle-2 { --tx: 24px; --ty: -26px; }
.particle-3 { --tx: 34px; --ty: -4px; }
.particle-4 { --tx: 26px; --ty: 22px; }
.particle-5 { --tx: 4px; --ty: 34px; }
.particle-6 { --tx: -22px; --ty: 24px; }
.particle-7 { --tx: -34px; --ty: 4px; }
.particle-8 { --tx: -24px; --ty: -24px; }
.particle-9 { --tx: 14px; --ty: -38px; }
.particle-10 { --tx: -12px; --ty: 36px; }

@keyframes shotRing {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.3);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.1);
  }
}

@keyframes shotBeam {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.4);
  }
}

@keyframes flashPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.2);
  }
}

@keyframes shockExpand {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.35);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.4);
  }
}

@keyframes particleBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.3);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(1.4);
  }
}

@keyframes activePulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 14px 30px rgba(0,0,0,0.25);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 0 24px rgba(84,214,255,0.24), 0 14px 30px rgba(0,0,0,0.3);
  }
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .boardsWrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .screen {
    padding: 14px;
  }

  .hero,
  .panel {
    padding: 16px;
  }

  .boardGrid {
    gap: 6px;
  }

  .topAxis {
    gap: 6px;
  }

  .leftAxis {
    gap: 6px;
  }

  .radarCard {
    grid-template-columns: 1fr 1fr;
  }
}

