/* Shell Shockers frame page.
   Plex for text, Plex Mono for figures, Silkscreen for the wordmark only. The yolk gradient is the
   brand: it appears on the wordmark and the strip above the header, nowhere else. */
:root {
  --bg: #0d0e11;
  --bg-2: #121318;
  --card: #15171c;
  --line: #24272f;
  --line-2: #30343e;
  --text: #e6e7ea;
  --muted: #9097a3;
  --dim: #646a76;
  --accent: #ffc83d;
  --good: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --brand: linear-gradient(90deg, #ffd84d, #ff8a1f);
  --radius: 6px;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .92em; }
h3 { margin: 0 0 6px; font: 600 11px/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.dim { color: var(--dim); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- header */
header.site { flex: none; border-bottom: 1px solid var(--line); background: var(--bg); }
header.site::before { content: ""; display: block; height: 3px; background: var(--brand); }
.bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 8px 16px; min-height: 52px; }
.logo { font: 400 20px/1 "Silkscreen", var(--mono); letter-spacing: .02em; }
.logo span { background: var(--brand); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; }
.logo:hover { text-decoration: none; filter: brightness(1.15); }

.status { display: inline-flex; align-items: center; gap: 7px; font: 500 11px/1 var(--mono);
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.status[data-state="loading"] i { background: var(--warn); }
.status[data-state="good"] i { background: var(--good); }
.status[data-state="bad"] i { background: var(--bad); }
.status[data-state="bad"] { color: var(--bad); }

.actions { display: flex; gap: 6px; margin-left: auto; }

.btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 4px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font: 500 13px/1 "IBM Plex Sans", system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--card); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #17140a; }
.btn.primary:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- game */
#stage { position: relative; flex: 1 1 auto; min-height: 0; background: #000; }
#stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
#stage:fullscreen { width: 100vw; height: 100vh; }

.notice { position: absolute; left: 16px; bottom: 16px; max-width: 460px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); }
.notice p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- footer */
footer.site { flex: none; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px;
  padding: 7px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .status { display: none; }
  .logo { font-size: 16px; }
  .notice { right: 16px; }
}
