/* climbers.css - Climbers: a slow bamboo climber. Reuses tokens from
   styles.css and game-shell.css's shell/bar/pause chrome, same as every
   other game. No joystick -- the whole interaction is tapping the left
   or right half of the board (or swiping, or arrow keys). The start
   overlay is lightened so the bamboo grove + climbers attract scene shows
   through, same posture as Slither/Spiders/Cubes/Vines. */

.climbers-stage {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  gap: 8px;
}

.climbers-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .climbers-stats {
    padding: 0 var(--gs-bar-right-clear) 0 var(--gs-bar-left-clear);
    gap: 10px;
  }
  /* Same precedent as Stacks'/Wings' own mobile stat-row fix -- Coins is
     the least essential stat mid-play, so it's the one dropped when the
     shell's own button clearance squeezes this row. */
  .climbers-stats .climbers-stat-compact-hide {
    display: none;
  }
}

.climbers-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  min-width: 56px;
}

.climbers-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  color: var(--muted);
}

.climbers-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.climbers-board-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  touch-action: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.climbers-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #a8d8a0 0%, #cdebb0 55%, #fff3c4 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.climbers-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  border-radius: var(--radius);
}

/* Big centre height readout while climbing. */
.climbers-hud {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.climbers-hud[hidden] { display: none; }

.climbers-hud-score {
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 0 rgba(20, 50, 25, .18), 0 6px 22px rgba(20, 50, 25, .35);
  font-variant-numeric: tabular-nums;
}

.climbers-hud-label {
  margin-top: 2px;
  color: rgba(255, 255, 255, .92);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(20, 50, 25, .45);
}

/* -- Overlays (start/game-over) -- same pattern as every other game.
   The start overlay is lightened (0.55) so the bamboo grove and the
   climbers show through behind the title. */

.climbers-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 24px;
  border-radius: var(--radius);
}

.climbers-overlay[hidden] { display: none; }

#climbersStart {
  background: rgba(10, 30, 18, 0.55);
}

.climbers-kicker {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 8px rgba(20, 50, 25, .4);
  margin: 0 0 6px;
}

.climbers-overlay-title {
  font-family: Georgia, serif;
  font-size: 4.6rem;
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0;
  text-shadow: 0 3px 0 rgba(20, 50, 25, .15), 0 10px 30px rgba(20, 50, 25, .35);
}

.climbers-overlay-text {
  margin: 12px 0 0;
  max-width: 30ch;
  color: rgba(255, 255, 255, .94);
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(20, 50, 25, .45);
}

.climbers-start-btn {
  margin-top: 26px;
  animation: climbers-pulse 1.6s ease-in-out infinite;
}

@keyframes climbers-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .climbers-start-btn { animation: none; }
}

.climbers-how {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: .85rem;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(20, 50, 25, .5);
  max-width: 34ch;
}

.climbers-how b { color: #fff; }

/* Game-over panel -- a solid card over a dimmed board, same pattern as
   every other game's game-over overlay. */

#climbersGameOver {
  background: rgba(10, 13, 16, .72);
}

.climbers-panel {
  background: var(--panel);
  color: var(--text);
  border-radius: 16px;
  padding: 22px 22px 20px;
  width: min(320px, 88%);
  box-shadow: 0 16px 44px rgba(10, 25, 40, .35);
  cursor: default;
}

.climbers-panel h2 {
  font-family: Georgia, serif;
  font-size: 1.9rem;
  line-height: 1.05;
  margin: 0;
  font-weight: 800;
}

.climbers-newbest {
  display: none;
  margin: 10px auto 0;
  width: fit-content;
  background: var(--accent);
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.climbers-newbest.show { display: block; }

.climbers-panel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 18px 0 10px;
}

.climbers-panel-stat {
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 4px 9px;
}

.climbers-panel-num {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.climbers-panel-lab {
  margin-top: 5px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.climbers-final {
  margin: 0 0 14px;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--muted);
}

.climbers-again-hint {
  margin: 11px 0 0;
  font-size: .8rem;
  color: var(--muted);
}
