body.game-page {
  overflow: hidden;
  color: var(--ink);
}

.game-shell {
  position: relative;
  width: 100vw;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 72px clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px);
}

.pk-frame {
  position: relative;
  width: min(96vw, 960px);
}

#game {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  background: #5a7a8a;
  image-rendering: auto;
}

.pk-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(10, 18, 22, 0.82), rgba(10, 18, 22, 0.35));
  pointer-events: none;
}

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

.pk-card {
  width: min(460px, 92%);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.pk-eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pk-card h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.1;
}

#overlayText {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.pk-controls {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.88rem;
}

.pk-controls kbd {
  display: inline-block;
  min-width: 1.4em;
  padding: 2px 6px;
  margin: 0 2px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  text-align: center;
}

.pk-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pk-actions button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  color: #141a1d;
  background: linear-gradient(135deg, var(--gold), #ffb347);
  box-shadow: 0 8px 22px rgba(255, 209, 102, 0.28);
}

.pk-actions button:hover,
.pk-actions button:focus-visible {
  filter: brightness(1.06);
  outline: none;
}

@media (max-width: 640px) {
  .game-shell {
    padding-top: 64px;
  }
}
