/*!**************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[5].use[3]!./app/games/battleship/battleship.module.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************/
.battleship_wrapper__dRJpV {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background: var(--background);
}

.battleship_container__uCtll {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
.battleship_header__kppVz {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}

.battleship_titleBlock__JeXiY h1 {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--primary);
  line-height: 1;
}

.battleship_subtitle__uHiL1 {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 2px;
}

.battleship_status__qMKe1 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.battleship_statusLabel__Z2CJJ {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
}

.battleship_statusValue__jRhbk {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* Message bar */
.battleship_messageBar__DzsmT {
  width: 100%;
  text-align: center;
  padding: 8px 16px;
  background: rgba(29, 53, 87, 0.1);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Ship status panels */
.battleship_shipStatusRow__kYFZ3 {
  display: flex;
  gap: 16px;
  margin-bottom: 0.5rem;
  width: 100%;
  justify-content: center;
}

.battleship_shipStatusPanel__ZShEe {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  font-size: 0.7rem;
}

.battleship_shipStatusTitle__XqbrR {
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-light);
  width: 100%;
  margin-bottom: 2px;
}

.battleship_shipStatusItem___fSFH {
  font-size: 0.7rem;
  color: var(--text);
  padding: 2px 6px;
  background: rgba(26, 79, 122, 0.1);
  border-radius: 3px;
}

.battleship_shipSunk__JNOqO {
  text-decoration: line-through;
  opacity: 0.5;
  background: rgba(220, 53, 69, 0.15);
}

/* Battle grids — always stacked vertically */
.battleship_battleGrids__T09R8 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: center;
}

.battleship_boardSection__QTotX {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.battleship_boardLabel__DYKeo {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

/* Board wrapper */
.battleship_boardWrapper__zMmiX {
  position: relative;
  width: 100%;
  max-width: 362px;
  background: #0a2a4a;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Grid: 10 cells + 1 label column + gaps.
   Both grids fit on screen at ~30px cells. */
.battleship_gridWithLabels__nEZPI {
  display: grid;
  grid-template-columns: 20px repeat(10, 1fr);
  gap: 2px;
  width: min(100%, 350px);
}

.battleship_cornerSpacer__h1DRS {
  height: 20px;
}

.battleship_colLabel__tirSA,
.battleship_rowLabel__BC9MA {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.battleship_colLabel__tirSA {
  height: 20px;
}

.battleship_rowLabel__BC9MA {
  width: 20px;
}

/* Cell — aspect-ratio keeps them square, 1fr makes them fill width */
.battleship_cell__BYf4m {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.battleship_cellWater__Ejvwm {
  background: #1a5276;
  border: 1px solid #154360;
}

.battleship_cellClickable__7I5Te {
  cursor: pointer;
}

.battleship_cellClickable__7I5Te:hover {
  background: #2471a3;
}

/* Ship cell */
.battleship_cellShip__bu0Fr {
  background: #566573;
}

/* Ghost preview during placement */
.battleship_cellGhostValid__QllB4 {
  background: rgba(40, 167, 69, 0.5) !important;
}

.battleship_cellGhostInvalid__lMGgV {
  background: rgba(220, 53, 69, 0.5) !important;
}

/* Shot results */
.battleship_cellHit__QPT5s {
  background: #c0392b !important;
}

.battleship_cellHit__QPT5s::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  background: #e74c3c;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(231, 76, 60, 0.6);
}

.battleship_cellMiss__xtc_P::after {
  content: '';
  position: absolute;
  width: 30%;
  height: 30%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

/* Sunk ship cells */
.battleship_cellSunk__WPhH0 {
  background: #4a1a1a !important;
}

.battleship_cellSunk__WPhH0::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  background: #922b21;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(146, 43, 33, 0.6);
}

/* Thinking indicator */
.battleship_thinking__EV0fD {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
}

.battleship_thinkingDots__2PSb4::after {
  content: '';
  animation: battleship_dots__IQLIt 1.5s infinite;
}

@keyframes battleship_dots__IQLIt {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Placement controls */
.battleship_placementControls__ru_73 {
  display: flex;
  gap: 8px;
  margin-top: 0.5rem;
  justify-content: center;
}

/* Controls */
.battleship_controls__GOiQ_ {
  display: flex;
  gap: 8px;
  margin-top: 0.75rem;
  width: 100%;
  max-width: 350px;
  justify-content: center;
}

.battleship_controlBtn__hcBz8 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  transition: all 0.15s;
  flex: 1;
  min-width: 80px;
  max-width: 120px;
}

.battleship_controlBtn__hcBz8:active {
  background: #f0f0f0;
}

.battleship_controlIcon__QVjYO {
  font-size: 1.3rem;
}

.battleship_controlLabel__yiIil {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Overlays */
.battleship_overlay__t3yMi {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.battleship_modal__nO_ZP {
  background: white;
  border-radius: 12px;
  padding: 28px;
  max-width: 360px;
  width: 90%;
  text-align: center;
}

.battleship_modal__nO_ZP h2 {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.battleship_modal__nO_ZP p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.battleship_modalBtns__ykGaZ {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.battleship_btn__fbV4X {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  width: 100%;
}

.battleship_btn__fbV4X:hover {
  opacity: 0.85;
}

/* Difficulty selector */
.battleship_difficultySelector__RTxB2 {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.battleship_difficultyBtn__2o4fs {
  padding: 8px 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.15s;
}

.battleship_difficultyBtn__2o4fs:hover {
  border-color: var(--accent);
}

.battleship_difficultyBtnActive__Umwk5 {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 420px) {
  .battleship_wrapper__dRJpV {
    padding: 0.25rem;
  }

  .battleship_header__kppVz {
    padding: 0 0.25rem;
  }

  .battleship_titleBlock__JeXiY h1 {
    font-size: 1.4rem;
  }

  .battleship_boardWrapper__zMmiX {
    padding: 3px;
    border-radius: 4px;
  }

  .battleship_gridWithLabels__nEZPI {
    grid-template-columns: 16px repeat(10, 1fr);
  }

  .battleship_colLabel__tirSA,
  .battleship_rowLabel__BC9MA {
    font-size: 0.5rem;
  }

  .battleship_rowLabel__BC9MA {
    width: 16px;
  }

  .battleship_cornerSpacer__h1DRS {
    height: 16px;
  }

  .battleship_colLabel__tirSA {
    height: 16px;
  }

  .battleship_controls__GOiQ_ {
    gap: 6px;
  }

  .battleship_controlBtn__hcBz8 {
    padding: 8px 12px;
    min-width: 70px;
  }

  .battleship_controlIcon__QVjYO {
    font-size: 1.1rem;
  }

  .battleship_controlLabel__yiIil {
    font-size: 0.5rem;
  }
}

