.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: #f4cfa0; }
.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: pointer; user-select: none; -webkit-user-select: none; }
.gl-bar { margin-top: 12px; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
.gl-bar .cbtn:disabled { opacity: .45; cursor: default; }
.gl-hint { color: var(--muted); font-size: .82rem; margin-inline-start: auto; }
/* الشاشات والمحل */
.stage .overlay { background: rgba(10, 8, 6, .72); overflow-y: auto; padding: 18px; place-items: start center; }
.stage .overlay > div { margin: auto 0; }
.stage .overlay > div { max-width: 480px; }
.stage .overlay p.r3-stats { margin: 4px 0 14px; line-height: 1.9; }
.r3-shop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 auto 16px; text-align: start; }
.r3-item { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.r3-item b { font-size: .92rem; font-weight: 600; }
.r3-item small { color: var(--muted); font-size: .74rem; line-height: 1.5; }
.r3-lv { display: flex; gap: 3px; margin: 2px 0; }
.r3-lv i { width: 16px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .15); }
.r3-lv i.on { background: var(--gold); }
.r3-buy { margin-top: 4px; background: rgba(201, 168, 106, .14); color: var(--gold-l, #f3e2b3); border: 1px solid rgba(201, 168, 106, .45); border-radius: 999px; padding: 6px 10px; font: inherit; font-size: .8rem; cursor: pointer; transition: background .2s; }
.r3-buy:hover:not(:disabled) { background: rgba(201, 168, 106, .28); }
.r3-buy:disabled { opacity: .4; cursor: default; }
.r3-max { margin-top: 4px; font-size: .78rem; color: var(--gold); }
@media (max-width: 640px) {
  .gl-wrap { aspect-ratio: 3 / 4; max-height: calc(100svh - 170px); }
  .gl-hint { flex-basis: 100%; }
  .stage .overlay { padding: 10px; }
  .stage .overlay h2 { font-size: 1.45rem; margin: 2px 0 6px; }
  .r3-shop { gap: 6px; margin-bottom: 12px; }
  .r3-item { padding: 8px 9px; }
  .r3-item small { font-size: .7rem; }
}
