/* Shared styles for the canvas games (loaded after game.css). The /games hub uses styles.css. */

/* Canvas game pages: fixed viewport height, no page scroll */
body.arcade { height: 100dvh; min-height: 0; overflow: hidden; }
.a-stage {
  position: relative; flex: 1; min-height: 0; width: 100%; max-width: 480px; margin: 0 auto;
  overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
}
.a-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.a-panel {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 18px;
  background: rgba(19,40,59,.45);
}
.a-panel .g-card { max-height: 100%; overflow: auto; }
.a-panel .g-card h2 { font-size: 24px; }
.a-rules { text-align: left; margin: 0 auto 14px !important; max-width: 290px; }
.a-rules li { margin: 0 0 6px; }
.a-big { font-size: 54px; font-weight: 800; color: #8e6420; line-height: 1; margin: 4px 0 8px; }
.a-meta { font-size: 13px !important; color: var(--muted) !important; }
.a-key { font-size: 12px !important; color: var(--muted) !important; margin: 10px 0 0 !important; }
.a-hint {
  position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; pointer-events: none;
  color: #fff; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.a-hint .en { color: rgba(255,255,255,.85); }
.g-icon-btn.a-mute { padding: 5px 10px; }
