.game-shell {
  padding-top: 32px;
}

.game-page-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: linear-gradient(180deg, #f9fafc 0%, #f1f4f8 100%);
  box-shadow: var(--shadow);
}

.game-page-topbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.game-page-topbar h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
}

.game-page-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.board {
  --size: min(8vw, 64px);
  --gap: 8px;
  display: grid;
  grid-template-columns: repeat(8, var(--size));
  gap: var(--gap);
  justify-content: center;
  user-select: none;
  padding: 18px;
  border-radius: 24px;
  background: radial-gradient(circle at top, #1e293b, #0b1020 64%);
}

.board .cell {
  width: var(--size);
  height: var(--size);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: calc(var(--size) * .55);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.15), 0 6px 14px rgba(0,0,0,.15);
}

.board .cell:hover { transform: translateY(-2px); }
.board .cell.selected { outline: 3px solid #fff; outline-offset: 2px; }
.board .c0 { background: linear-gradient(#fb7185, #e11d48); }
.board .c1 { background: linear-gradient(#facc15, #ca8a04); }
.board .c2 { background: linear-gradient(#4ade80, #15803d); }
.board .c3 { background: linear-gradient(#60a5fa, #1d4ed8); }
.board .c4 { background: linear-gradient(#a78bfa, #7c3aed); }
.board .c5 { background: linear-gradient(#22d3ee, #0891b2); }

.game-page-tips {
  margin: 16px 0 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .game-page-topbar {
    grid-template-columns: 1fr;
  }

  .board {
    --size: min(10vw, 46px);
    --gap: 6px;
    padding: 12px;
  }
}
