:root {
  --bg-dark: #0b1a3b;
  --bg-mid: #1a3d6d;
  --bg-light: #2d6aa5;
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-bg-hover: rgba(255, 255, 255, 0.14);
  --card-border: rgba(255, 255, 255, 0.15);
  --card-selected: rgba(255, 200, 50, 0.25);
  --card-selected-border: rgba(255, 200, 50, 0.6);
  --text: #ffffff;
  --text-dim: #8ea8c8;
  --accent: #f39c12;
  --accent-dark: #d68910;
  --success: #2ecc71;
  --danger: #e74c3c;
  --danger-dark: #c0392b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.hidden { display: none !important; }

body {
  font-family: 'Fredoka', system-ui, -apple-system, sans-serif;
  background: linear-gradient(150deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-light) 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========== SNOWFLAKES ========== */

#snowflakes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -20px;
  opacity: 0.6;
  animation: snowfall linear infinite;
  pointer-events: none;
  user-select: none;
}

@keyframes snowfall {
  0%   { transform: translateY(-20px) rotate(0deg); }
  100% { transform: translateY(105vh) rotate(360deg); }
}

/* ========== GAME CONTAINER ========== */

#game-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 16px;
  min-height: 100vh;
  transition: opacity 0.3s ease;
}

#game-container.transitioning {
  opacity: 0;
}

/* ========== SCREENS ========== */

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.screen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-bottom: 40px;
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
}

.screen-desc {
  color: var(--text-dim);
  text-align: center;
  font-size: 1rem;
}

/* ========== MODE SELECTOR ========== */

.mode-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.mode-btn {
  flex: 1;
  padding: 10px 20px;
  border: 2px solid var(--card-border);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.mode-btn:hover {
  background: var(--card-bg-hover);
}

.mode-btn.selected {
  background: var(--card-selected);
  border-color: var(--card-selected-border);
  color: var(--text);
}

/* ========== PLAYER SETUP ========== */

.player-setup {
  width: 100%;
}

.player-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
  text-align: center;
}

.player-label.hidden {
  display: none;
}

/* ========== TURN INDICATOR ========== */

.turn-indicator {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  padding: 10px 20px;
  background: var(--card-selected);
  border: 2px solid var(--card-selected-border);
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
}

.turn-indicator.hidden {
  display: none;
}

/* ========== INTRO ========== */

.game-title {
  font-size: 2.6rem;
  font-weight: 700;
  text-align: center;
  margin-top: 30px;
  text-shadow: 0 2px 20px rgba(243, 156, 18, 0.3);
}

.subtitle {
  color: var(--text-dim);
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 10px;
}

.intro-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: 380px;
}

.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.form-group input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--card-border);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input[type="text"]:focus {
  border-color: var(--accent);
}

.form-group input[type="text"]::placeholder {
  color: var(--text-dim);
  opacity: 0.5;
}

.color-options {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.color-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.color-btn:hover {
  transform: scale(1.1);
}

.color-btn.selected {
  border-color: var(--text);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
  transform: scale(1.15);
}

.boarder-preview {
  padding: 10px;
}

.preview-figure {
  font-size: 5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: color 0.3s;
}

/* ========== BUTTONS ========== */

.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.btn:active {
  transform: scale(0.96);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(243, 156, 18, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(243, 156, 18, 0.45);
}

.btn-shop {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--success), #27ae60);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(46, 204, 113, 0.3);
}

.btn-shop:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(46, 204, 113, 0.4);
}

/* ========== HUD ========== */

.hud {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  font-size: 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  font-size: 0.95rem;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.hud-name {
  font-weight: 700;
}

.health-bar {
  width: 90px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.health-fill {
  height: 100%;
  width: 100%;
  background: var(--success);
  border-radius: 6px;
  transition: width 0.5s ease, background 0.5s ease;
}

.health-text, .coins-text {
  font-weight: 600;
  min-width: 22px;
}

/* ========== 2P HUD ROWS ========== */

.hud-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 4px 0;
  opacity: 0.5;
  font-size: 0.85rem;
  transition: opacity 0.3s;
}

.hud-row.hud-current {
  opacity: 1;
  font-size: 0.95rem;
  font-weight: 600;
}

.hud-row.hud-out {
  opacity: 0.3;
  text-decoration: line-through;
}

.hud-rname {
  min-width: 70px;
  white-space: nowrap;
}

.hud-eliminated {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--danger);
  background: rgba(231, 76, 60, 0.2);
  padding: 1px 6px;
  border-radius: 6px;
  margin-left: auto;
}

/* ========== JUMP CARDS ========== */

.jump-options {
  display: flex;
  gap: 14px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.jump-card {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  padding: 18px 14px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(6px);
}

.jump-card:hover {
  background: var(--card-bg-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.jump-card.selected {
  background: var(--card-selected);
  border-color: var(--card-selected-border);
  box-shadow: 0 0 20px rgba(255, 200, 50, 0.2);
}

.jump-emoji {
  font-size: 2.4rem;
  margin-bottom: 6px;
}

.jump-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.jump-stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.jump-stats .stat {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.jump-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.difficulty {
  font-size: 0.85rem;
  letter-spacing: 2px;
}

/* ========== JUMP SCREEN ========== */

.jump-screen-content {
  gap: 14px;
}

.canvas-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

#jump-canvas {
  border-radius: 14px;
  border: 2px solid var(--card-border);
  max-width: 100%;
}

/* ========== JUMP ACTION CONTROLS ========== */

.jump-action {
  text-align: center;
  padding: 14px 10px;
  display: grid;
  grid-template-rows: auto 50px auto auto;
  justify-items: center;
  gap: 6px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.jump-action.hidden {
  display: none;
}

.action-instruction {
  font-size: 1.05rem;
  font-weight: 600;
  color: #d4e6f1;
  margin: 0;
  letter-spacing: 0.3px;
}

.action-btn-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.power-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.power-ring.hidden {
  display: none;
}

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 14;
}

.ring-sweet-zone {
  fill: none;
  stroke: rgba(46, 204, 113, 0.3);
  stroke-width: 14;
}

.ring-fill {
  fill: none;
  stroke: #f39c12;
  stroke-width: 14;
  stroke-dasharray: 364.42;
  stroke-dashoffset: 364.42;
  stroke-linecap: round;
  transition: stroke 0.15s;
}

.action-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.4);
  background: rgba(52, 152, 219, 0.35);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
  letter-spacing: 0.5px;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.action-btn:active {
  background: rgba(52, 152, 219, 0.6);
  transform: scale(0.94);
  border-color: rgba(255, 255, 255, 0.7);
}

.action-btn-land {
  background: rgba(46, 204, 113, 0.35);
  border-color: rgba(46, 204, 113, 0.6);
  animation: land-pulse 0.6s ease-in-out infinite;
}

@keyframes land-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(46, 204, 113, 0); }
}

/* ========== LANDING TIMING BAR ========== */

.timing-bar-wrap {
  width: 100%;
  max-width: 300px;
  margin: 10px auto 0;
}

.timing-bar-wrap.hidden {
  visibility: hidden;
}

.timing-bar {
  position: relative;
  display: flex;
  height: 28px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.timing-zone {
  flex: 1;
}

.tz-red {
  background: rgba(231, 76, 60, 0.6);
}

.tz-yellow {
  background: rgba(243, 156, 18, 0.5);
}

.tz-green {
  background: rgba(46, 204, 113, 0.65);
  box-shadow: inset 0 0 12px rgba(46, 204, 113, 0.4);
}

.timing-needle {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 0%;
  width: 4px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.4);
  z-index: 2;
  transition: none;
}

.timing-labels {
  display: flex;
  justify-content: space-between;
  padding: 4px 4px 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tl-center {
  color: rgba(46, 204, 113, 0.8);
  font-weight: 700;
}

.power-label {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  min-height: 1.3em;
  transition: color 0.15s;
}

.score-breakdown {
  font-size: 0.82rem;
  color: #8aa4b8;
  margin: 4px 0 8px;
  letter-spacing: 0.3px;
}

.result-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* ========== TUTORIAL OVERLAY ========== */

.tutorial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.tutorial-overlay.hidden {
  display: none;
}

.tutorial-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px 28px;
  max-width: 340px;
  text-align: center;
}

.tutorial-box h3 {
  margin: 0 0 16px;
  font-size: 1.3rem;
}

.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
  text-align: left;
}

.tutorial-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tutorial-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(52, 152, 219, 0.3);
  border: 2px solid rgba(52, 152, 219, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.tutorial-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.jump-result {
  text-align: center;
  padding: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.jump-result.hidden {
  display: none;
}

.result-success {
  color: var(--success);
  font-size: 1.6rem;
}

.result-fail {
  color: var(--danger);
  font-size: 1.6rem;
}

#result-detail {
  color: var(--text-dim);
}

/* ========== CHALET ========== */

.chalet-message {
  text-align: center;
  padding: 14px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  line-height: 1.5;
}

.msg-success { color: var(--success); font-weight: 600; }
.msg-fail { color: var(--danger); font-weight: 600; }

.shop {
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.shop h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.shop-items {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.shop-card {
  flex: 1;
  min-width: 170px;
  max-width: 220px;
  padding: 16px 14px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.shop-card.disabled {
  opacity: 0.45;
}

.shop-reason {
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 4px;
  font-weight: 600;
}

.shop-full-health {
  font-size: 0.9rem;
  color: var(--success);
  text-align: center;
  padding: 8px 14px;
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 10px;
  margin-bottom: 8px;
}

.shop-full-health.hidden {
  display: none;
}

.shop-emoji {
  font-size: 2.2rem;
}

.shop-card h4 {
  font-size: 0.95rem;
}

.shop-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.shop-stats {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.stats-box {
  text-align: center;
  padding: 14px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
}

.stats-box h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.stats-box p {
  color: var(--text-dim);
}

/* ========== VERSUS STATS ========== */

.versus-stats {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 500px;
  justify-content: center;
  flex-wrap: wrap;
}

.versus-stats.hidden {
  display: none;
}

.versus-player {
  flex: 1;
  min-width: 180px;
  padding: 18px 16px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.versus-player.winner {
  border-color: var(--card-selected-border);
  background: var(--card-selected);
}

.versus-player h4 {
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 4px;
}

/* ========== GAME OVER ========== */

.gameover-content {
  justify-content: center;
  min-height: 70vh;
}

.gameover-title {
  font-size: 3rem;
  text-shadow: 0 2px 20px rgba(231, 76, 60, 0.4);
}

.gameover-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  text-align: center;
}

.final-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
}

.stat-row span {
  color: var(--text-dim);
}

/* ========== SOUND TOGGLE ========== */

.sound-toggle {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 900;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  line-height: 1;
}

.sound-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ========== WEATHER INDICATOR ========== */

.weather-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  cursor: default;
  transition: background 0.3s, color 0.3s;
  letter-spacing: 0.3px;
}

.weather-emoji {
  font-size: 1.35rem;
}

.weather-sunny {
  background: rgba(255, 223, 100, 0.25);
  color: #f5c542;
  border: 1px solid rgba(255, 223, 100, 0.4);
}

.weather-clear {
  background: rgba(180, 210, 240, 0.2);
  color: #a0c4e8;
  border: 1px solid rgba(180, 210, 240, 0.35);
}

.weather-snowfall {
  background: rgba(120, 144, 156, 0.25);
  color: #b0bec5;
  border: 1px solid rgba(120, 144, 156, 0.4);
  animation: weather-pulse 2.5s ease-in-out infinite;
}

.weather-blizzard {
  background: rgba(200, 210, 220, 0.3);
  color: #eceff1;
  border: 1px solid rgba(200, 210, 220, 0.5);
  animation: weather-pulse 1.5s ease-in-out infinite;
}

@keyframes weather-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ========== HILL SELECTOR ========== */

.hill-options {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hill-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  font-weight: 600;
}

.hill-card:hover {
  background: var(--card-bg-hover);
}

.hill-card.selected {
  border-color: var(--card-selected-border);
  background: var(--card-selected);
}

.hill-emoji {
  font-size: 1.15rem;
}

.hill-name {
  white-space: nowrap;
}

/* ========== STREAK ========== */

.streak-indicator {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f39c12;
  margin-bottom: 10px;
  animation: streak-pulse 1s ease-in-out infinite alternate;
}

@keyframes streak-pulse {
  from { opacity: 0.8; transform: scale(1); }
  to { opacity: 1; transform: scale(1.05); }
}

.result-streak {
  color: #f39c12 !important;
}

/* ========== GEAR SHOP ========== */

.shop-note {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.shop-card.owned {
  border-color: var(--success);
  opacity: 0.85;
}

.gear-equipped {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(46, 204, 113, 0.2);
  color: var(--success);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-gear {
  background: var(--bg-light);
  color: var(--text);
  border: 1px solid var(--card-border);
  padding: 6px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-gear:hover:not(:disabled) {
  background: var(--accent);
}

.btn-gear:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.equipped-gear {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 6px;
}

.gear-badge {
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 8px;
}

.stat-boosted {
  color: var(--success) !important;
  font-weight: 700;
}

/* ========== STOP FOR THE DAY ========== */

.btn-stop {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--card-border);
  padding: 10px 24px;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.btn-stop:hover {
  background: rgba(231, 76, 60, 0.15);
  border-color: var(--danger);
  color: var(--text);
}

/* ========== MODAL ========== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-box {
  background: linear-gradient(160deg, var(--bg-mid), var(--bg-dark));
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.modal-box h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.modal-box p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-actions .btn {
  min-width: 120px;
}

/* ========== LEADERBOARD ========== */

.leaderboard-box {
  width: 100%;
  max-width: 400px;
  margin-top: 20px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}

.leaderboard-box h3 {
  text-align: center;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.lb-table th {
  color: var(--text-dim);
  font-weight: 600;
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}

.lb-table td {
  padding: 6px 8px;
}

.lb-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.lb-empty {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 8px 0;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 600px) {
  .game-title { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  .jump-options { flex-direction: column; align-items: center; }
  .jump-card { max-width: 100%; }
  .shop-items { flex-direction: column; align-items: center; }
  .shop-card { max-width: 100%; }
  .hud { font-size: 0.92rem; padding: 14px 14px; }
  .health-bar { width: 65px; height: 14px; }
  .gameover-title { font-size: 2.2rem; }
  .hill-options { gap: 6px; }
  .hill-card { padding: 6px 12px; font-size: 0.82rem; }
}
