/* Play page (2026-12-04) — game cards + full-screen player. Uses the site palette vars from site.css. */
.games{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));margin-top:.6rem}
.game{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:.8rem;display:flex;flex-direction:column;gap:.4rem}
.game img{width:100%;aspect-ratio:9/16;max-height:22rem;object-fit:cover;object-position:top;border:1px solid var(--line)}
.game h3{margin:.2rem 0 0}.game p{margin:0;color:var(--muted)}
.game .btn{text-align:center;margin-top:auto;font-weight:600}
.badges{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.4rem}.badges li{background:var(--callout);padding:.1rem .6rem;border-radius:999px;font-size:.85rem}
.note{background:var(--callout);border:1px solid var(--line);border-radius:12px;padding:.8rem 1rem;margin:.8rem 0}
.note p{margin:.2rem 0}
/* the player: a slim bar with one way back, then the game at its own 9:16 shape, as large as the screen allows */
.player{max-width:none;padding:0}
.pl-stage{position:fixed;inset:0;background:#0d1520;z-index:20;display:flex;flex-direction:column}
.pl-bar{flex:0 0 auto;display:flex;align-items:center;gap:.6rem;height:52px;padding:0 .5rem;background:#14202e;border-bottom:1px solid #2b3a4c;color:#e8dfc8}
.pl-bar strong{font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pl-back{min-height:44px;min-width:44px;display:inline-flex;align-items:center;gap:.3rem;padding:0 .8rem;border-radius:22px;
  border:1px solid #2b3a4c;background:#0d1520;color:#e8dfc8;text-decoration:none;font-size:.9rem;flex:0 0 auto}
.pl-back:focus-visible{outline:3px solid #c9a54a;outline-offset:2px}
.pl-game{flex:1 1 auto;min-height:0;display:flex;align-items:stretch;justify-content:center;position:relative}
.pl-game canvas{display:block;touch-action:none;outline:0;background:#000}
.pl-load{position:absolute;inset:0;z-index:21;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:1.5rem;
  background:#0d1520;color:#e8dfc8;text-align:center}
.pl-load[hidden]{display:none}
.pl-load h1{color:#c9a54a;margin:0;font-size:1.6rem}
.pl-load progress{width:min(22rem,80vw);height:14px;accent-color:#c9a54a}
.pl-load p{max-width:28rem;margin:0}
/* phones: game cards go sideways (small picture left) so the list stays short */
@media (max-width:40rem){
  .games{grid-template-columns:1fr;gap:.7rem}
  .game{display:grid;grid-template-columns:6.2rem 1fr;column-gap:.8rem;row-gap:.3rem;align-items:start}
  .game img{grid-row:1 / span 4;max-height:none;height:11rem;aspect-ratio:auto}
  .game .btn{grid-column:2}
  .game .badges{display:none}
  .game h3{font-size:1.05rem}
  .game p{font-size:.92rem}
}
