/* SEM Game Shell styles (temp042) */
.gs-frame {
  display: flex; flex-direction: column; gap: var(--sp-3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-4); backdrop-filter: blur(var(--surface-blur));
}
.gs-frame.fs-fallback { position: fixed; inset: 0; z-index: 9500; border-radius: 0; background: var(--bg); }
.gs-frame:fullscreen { background: var(--bg); padding: max(var(--sp-4), env(safe-area-inset-top)) max(var(--sp-4), env(safe-area-inset-right)) max(var(--sp-4), env(safe-area-inset-bottom)) max(var(--sp-4), env(safe-area-inset-left)); }

.gs-top { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.gs-hud { display: flex; gap: var(--sp-5); font: 600 12.5px/1 var(--font); letter-spacing: .08em; color: var(--muted); flex-wrap: wrap; }
.gs-hud b { color: var(--accent-ink); font-family: var(--font-mono); margin-left: 6px; }
.gs-actions { display: flex; gap: var(--sp-2); }
.gs-btn {
  min-width: var(--tap); min-height: var(--tap); border-radius: var(--radius-sm);
  background: var(--bg2); color: var(--text); border: 1px solid var(--line);
  font-size: 16px; cursor: pointer;
}
.gs-btn:hover { border-color: var(--accent); }
.gs-btn[aria-pressed="false"] { opacity: .5; }

.gs-stage { position: relative; display: grid; place-items: center; min-height: 300px; flex: 1; touch-action: manipulation; }
.gs-stage canvas { background: #0e1114; border-radius: var(--radius-sm); box-shadow: 0 8px 30px rgba(0,0,0,.35); max-width: 100%; }

.gs-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-3); text-align: center; padding: var(--sp-5); border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(4px);
}
.gs-overlay[hidden] { display: none; }
.gs-overlay h2 { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 3.5vw, 2.2rem); letter-spacing: .01em; }
.gs-instructions { margin: 0; max-width: 48ch; color: var(--muted); font-size: var(--fs-sm); line-height: 1.7; }
.gs-ov-sub { margin: 0; color: var(--accent-ink); font: 700 14px/1.4 var(--font-mono); }
.gs-start { min-width: 160px; }

.gs-touch { display: none; gap: var(--sp-2); flex-wrap: wrap; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.gs-tbtn {
  min-width: 58px; min-height: 58px; border-radius: 14px; font: 700 19px/1 var(--font);
  background: var(--bg2); color: var(--text); border: 1px solid var(--line); cursor: pointer;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.gs-tbtn.wide { min-width: 120px; }
.gs-tbtn:active { background: var(--accent); color: var(--bg); transform: translateY(1px); }

@media (hover: none) and (pointer: coarse) { .gs-touch { display: flex; } }

.gs-note { margin-top: var(--sp-3); color: var(--subtle); font-size: var(--fs-xs); text-align: center; }
