.stage { max-width: 960px; }
.gl-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100svh - 190px); border-radius: 16px; overflow: hidden; background: #0b0907; }
.gl-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-height: none; border-radius: 0; }
#hud { pointer-events: none; }
.gl-touch { position: absolute; inset: 0; touch-action: none; cursor: crosshair; }
.gl-bar { margin-top: 12px; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
.gl-hint { color: var(--muted); font-size: .82rem; margin-inline-start: auto; }
/* شاشة الاختيار */
.stage .overlay { background: rgba(6, 9, 7, .7); overflow-y: auto; padding: 18px; }
.stage .overlay > div { max-width: 460px; }
.pl-opts { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 0 auto 10px; }
.pl-opts button { background: rgba(255, 255, 255, .05); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; font: inherit; font-size: .85rem; transition: border-color .2s, background .2s; }
.pl-opts button:hover { border-color: var(--line2); color: var(--text); }
.pl-opts button.on { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.pl-opts.off { display: none; }
.stage .overlay p.pl-note { margin: 2px 0 16px; font-size: .82rem; }
@media (max-width: 640px) {
  .gl-wrap { aspect-ratio: 3 / 4; }
  .gl-hint { flex-basis: 100%; }
  .gl-bar .cbtn { flex: 1 1 auto; }
  .stage .overlay { padding: 10px; }
  .stage .overlay h2 { font-size: 1.5rem; margin: 2px 0 8px; }
  .pl-opts button { padding: 6px 12px; font-size: .8rem; }
}
