/* Gem Blitz — match-3 grid game */
#game-stage { display: flex; flex-direction: column; align-items: center; width: 100%; }

.gb-toprow { width: 100%; max-width: 360px; display: flex; justify-content: flex-end; margin-bottom: 4px; }
.sound-btn { background: var(--panel); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 6px 10px; font-size: 16px; cursor: pointer; touch-action: manipulation; }

.gb-hud { width: 100%; max-width: 360px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.gb-hud .lbl { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.gb-val { font-size: 28px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gb-val.warn { color: var(--neon2); }
.gb-combo { font-size: 18px; color: var(--neon); min-height: 22px; }

.gb-stage-wrap { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1/1; }
.gb-canvas { width: 100%; height: 100%; display: block; border: 1px solid var(--border);
  border-radius: 14px; touch-action: none; background: #060916; }

.gb-overlay { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  background: rgba(5,6,15,.82); border-radius: 14px; backdrop-filter: blur(2px); text-align: center; }
.gb-overlay.gb-hidden { display: none; }
.gb-overlay-inner { padding: 20px; }
.gb-ov-title { font-size: 38px; font-weight: 900; color: var(--neon); text-shadow: 0 0 16px rgba(0,245,212,.5); margin: 0 0 6px; }
.gb-ov-title.lose { color: var(--neon2); text-shadow: 0 0 16px rgba(255,46,151,.5); }
.gb-ov-sub { color: var(--muted); margin: 0 0 18px; font-size: 16px; }
.gb-overlay .gbtn { margin: 4px; }
.gb-hide { display: none !important; }

/* Mode selector on the start overlay */
.gb-mode-row { display: inline-flex; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.gb-seg-btn { background: none; border: none; color: var(--muted); font-family: inherit; font-size: 14px;
  font-weight: 600; padding: 8px 13px; border-radius: 9px; cursor: pointer; touch-action: manipulation; transition: background .12s, color .12s; }
.gb-seg-btn.active { background: var(--neon3); color: #fff; box-shadow: 0 0 14px rgba(123,92,255,.5); }

.ctrl-hint { color: var(--muted); font-size: 13px; text-align: center; margin: 12px 0 0; }
