/* TYPHOON STADIUM — stage preview.
   Clean architectural presentation: neutral ground, no gradient washes,
   no decorative motion beyond a slow idle orbit. */

:root {
  --ink: #1c1f23;
  --ink-soft: #6b7280;
  --line: rgba(28, 31, 35, 0.14);
  --ground: #eef0f2;
  --panel: rgba(255, 255, 255, 0.72);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--ground);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: none;
}

/* ---------- masthead ---------- */
.masthead {
  position: fixed;
  top: max(22px, env(safe-area-inset-top));
  left: max(26px, env(safe-area-inset-left));
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

.masthead h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.masthead p {
  margin: 6px 0 0;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

/* ---------- controls ---------- */
.controls {
  position: fixed;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: max(26px, env(safe-area-inset-left));
  display: flex;
  gap: 8px;
  z-index: 3;
}

.controls button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 9px 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.controls button:hover { background: #ffffff; border-color: rgba(28, 31, 35, 0.26); }
.controls button:active { background: #f6f7f8; }
.controls button[aria-pressed="false"] { color: var(--ink-soft); border-style: dashed; }

/* ---------- loading ---------- */
.loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ground);
  z-index: 5;
  transition: opacity 620ms ease;
}

.loader.is-hidden { opacity: 0; pointer-events: none; }

.loader__inner { text-align: center; }

.loader__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.loader__status {
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

/* ---------- mobile ---------- */
@media (max-width: 620px) {
  .masthead { top: 18px; left: 18px; }
  .masthead h1 { font-size: 13px; letter-spacing: 0.13em; }
  .masthead p { font-size: 9px; margin-top: 4px; }
  .controls { left: 18px; right: 18px; bottom: 16px; gap: 6px; }
  .controls button { flex: 1 1 0; padding: 10px 6px; font-size: 9px; letter-spacing: 0.1em; }
}
