/* Game pages (/play/<slug>/): the game in a frame, then details, leaderboard and about. */
.pg-crumbs { color: var(--dim); font-size: 13px; margin: 0 0 10px; }
.pg-crumbs a { color: var(--muted); text-decoration: none; }
.pg-crumbs a:hover { color: var(--text); }
.pg { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); align-items: start; }
.pg-main { display: grid; gap: 14px; min-width: 0; }

.pg-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.pg[data-frame=tall] .pg-stage { aspect-ratio: auto; height: min(820px, calc(100dvh - var(--top) - 90px)); min-height: 520px; }
.pg-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(1.1); transform: scale(1.02); }
.pg-start { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 16px; }
.pg-play { border: 0; border-radius: 99px; padding: 16px 36px; background: var(--brand); color: var(--on-brand); font: 900 22px/1 var(--font); cursor: pointer; box-shadow: 0 10px 0 #b8336d, 0 18px 40px rgba(0,0,0,.45); transition: transform .12s, box-shadow .12s; }
.pg-play:hover { background: var(--brand-2); transform: translateY(-2px); }
.pg-play:active { transform: translateY(6px); box-shadow: 0 4px 0 #b8336d; }
.pg-start p { color: #fff; font-weight: 800; font-size: 14px; text-shadow: 0 2px 8px rgba(0,0,0,.6); margin: 8px 0 0; }
.pg-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg); }
.pg-stage:fullscreen { border-radius: 0; aspect-ratio: auto; }
.pg-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.6); color: var(--text); font-weight: 900; }

.pg-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pg-title h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.pg-title span { color: var(--muted); font-size: 13px; font-weight: 700; }
.pg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pg-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 8px 14px; background: var(--card); color: var(--text); font: 800 14px/1 var(--font); cursor: pointer; text-decoration: none; }
.pg-btn:hover { background: var(--hover); }
#pg-share { background: var(--mint); color: #10261f; }

.pg-card { background: var(--panel); border-radius: var(--r-lg); padding: 16px; }
.pg-card .bx-board { padding: 0; background: none; }
.pg-info dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px 18px; margin: 0; }
.pg-info dt { color: var(--dim); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.pg-info dd { margin: 2px 0 0; font-weight: 700; }
.pg-info dd a { color: var(--brand-2); }
.pg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.pg-tags span { background: var(--card); border-radius: 99px; padding: 5px 11px; font-size: 13px; font-weight: 800; color: var(--muted); }

.pg-about { line-height: 1.65; color: #ecdfee; }
.pg-about h2 { font-size: 20px; font-weight: 900; color: var(--text); margin: 22px 0 8px; }
.pg-about h2:first-child { margin-top: 0; }
.pg-about p { margin: 0 0 10px; }
.pg-about ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.pg-about b { color: var(--text); }
.pg-keys { border-collapse: collapse; width: 100%; font-size: 14px; }
.pg-keys th { text-align: left; white-space: nowrap; padding: 7px 14px 7px 0; color: var(--mint); font-weight: 900; vertical-align: top; }
.pg-keys td { padding: 7px 0; }
.pg-keys tr + tr { border-top: 1px solid var(--line); }
.pg-about details { border-top: 1px solid var(--line); padding: 10px 0; }
.pg-about summary { cursor: pointer; font-weight: 900; color: var(--text); }
.pg-about details p { margin: 8px 0 0; }
.pg-legal { color: var(--dim); font-size: 13px; margin-top: 18px !important; }
.pg-legal a { color: var(--muted); }

.pg-side { position: sticky; top: calc(var(--top) + 16px); display: grid; gap: 12px; }
.pg-side h2 { font-size: 17px; font-weight: 900; }
.pg-next { display: grid; gap: 8px; }
.pg-next a { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: var(--r); color: var(--text); text-decoration: none; background: var(--panel); }
.pg-next a:hover { background: var(--card); }
.pg-next img { width: 96px; height: 60px; object-fit: cover; border-radius: 8px; flex: none; }
.pg-next b { display: block; font-weight: 900; font-size: 14px; }
.pg-next small { color: var(--dim); font-size: 12px; }

@media (max-width: 1100px) {
  .pg { grid-template-columns: 1fr; }
  .pg-side { position: static; }
  .pg-next { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
}
@media (max-width: 760px) {
  .pg[data-frame=tall] .pg-stage { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .pg-info dl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pg-actions .pg-btn span { display: none; }
  .pg-play { font-size: 19px; padding: 14px 30px; }
}
