.game-section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 2.5rem; align-items: start; }
.game-section p { max-width: 42ch; }
.game { position: relative; border-radius: 12px; overflow: hidden; background: #0b1730; }
.game canvas { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; touch-action: none; cursor: crosshair; }
.game canvas:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.game-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 1.5rem; text-align: center; background: rgba(11, 23, 48, 0.82); color: #fff; }
.game-overlay[hidden] { display: none; }
.game-overlay h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: #fff; margin: 0; }
.game-overlay p { color: #c2cfe1; margin: 0; max-width: 40ch; }
.game-overlay .btn-primary { background: #fff; color: #173fad; border-color: #fff; cursor: pointer; font: inherit; font-weight: 600; }
.game-overlay .btn-primary:hover { background: #e9f0ff; }
.game-overlay a:not(.btn) { color: #dbe8ff; }
.game-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; padding: 0; margin: 1rem 0 0; list-style: none; font-size: 0.9rem; color: var(--muted); }
.game-legend span { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; margin-right: 0.35rem; border-radius: 50%; color: #0b1730; font-weight: 700; font-size: 0.8rem; }
@media (max-width: 760px) {
  .game-section { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .game-overlay { padding: 1rem; }
}
.game-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; margin: 0; }
.game-links[hidden] { display: none; }
.game-powers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; padding: 0.6rem; background: #10203b; }
.game-powers button { display: flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 44px; padding: 0.4rem 0.5rem; border: 1px solid #3a4d6b; border-radius: 8px; background: #0b1730; color: #dbe8ff; font: inherit; font-size: 0.85rem; font-weight: 600; line-height: 1.2; cursor: pointer; }
.game-powers button:hover:not(:disabled) { border-color: #abc6fa; }
.game-powers button:disabled { opacity: 0.45; cursor: default; }
.game-powers button.is-active { border-color: #abc6fa; background: #1d4ed8; color: #fff; opacity: 1; }
.game-powers button:focus-visible { outline: 3px solid #abc6fa; outline-offset: 1px; }
.game-powers kbd { font: inherit; font-size: 0.75rem; color: #9fb0c8; }
.power-count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; border-radius: 999px; background: #abc6fa; color: #0b1730; font-size: 0.8rem; }
.power-list { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.power-list li { border-left: 3px solid var(--accent); padding-left: 0.85rem; }
.power-list strong { display: block; color: var(--text); }
.power-list p { margin-top: 0.2rem; font-size: 0.95rem; }
@media (max-width: 480px) {
  .game-powers button { flex-direction: column; gap: 0.2rem; font-size: 0.78rem; }
  .game-powers kbd { display: none; }
}
@media (max-width: 760px) {
  .power-list { grid-template-columns: minmax(0, 1fr); }
}
