/* ==========================================================================
   Barrie's Banana Crossing — styles for the /game/ page only.
   Loaded on top of site.css, which supplies the design tokens.
   ========================================================================== */

.game-shell {
  max-width: 720px;
  margin-inline: auto;
  background: linear-gradient(160deg, var(--abyss) 0%, var(--hull) 70%, #10455a 100%);
  border-radius: var(--r-xl);
  padding: clamp(18px, 3.5vw, 34px);
  box-shadow: var(--shadow-lg);
}

.game-hud {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 5vw, 48px);
  margin-bottom: 16px;
  text-align: center;
}
.game-hud-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--banana);
}
.game-hud strong {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
}

#crossing {
  display: block;
  width: 100%;
  max-width: 624px;
  margin-inline: auto;
  border-radius: var(--r-md);
  background: var(--abyss);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
  cursor: pointer;
}

.game-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.game-dpad {
  display: grid;
  grid-template-columns: repeat(3, 46px);
  grid-template-rows: repeat(2, 46px);
  gap: 6px;
}
.game-key {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: .95rem;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: background-color .12s ease, color .12s ease;
}
.game-key:hover { background: rgba(255, 255, 255, .16); }
.game-key:active { background: var(--banana); color: var(--abyss); }
.game-key--up    { grid-column: 2; grid-row: 1; }
.game-key--left  { grid-column: 1; grid-row: 2; }
.game-key--down  { grid-column: 2; grid-row: 2; }
.game-key--right { grid-column: 3; grid-row: 2; }

.game-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.game-hint {
  margin-top: 14px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
}
.game-hint kbd {
  font-family: var(--mono);
  font-size: .74rem;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: rgba(255, 255, 255, .8);
}

.game-scoring { border-collapse: collapse; width: 100%; font-size: .92rem; }
.game-scoring th, .game-scoring td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.game-scoring td:last-child { text-align: right; font-family: var(--mono); color: var(--ink); font-weight: 600; }
.game-scoring tr:last-child th, .game-scoring tr:last-child td { border-bottom: 0; }

@media (max-width: 560px) {
  .game-controls { justify-content: center; }
}
