/* arcade.css — The Golden · Arcade
   Everything is var(--*) from beta-style.css, so dark mode costs nothing.
   The three arcade-local values below are the existing brand mark's golds; --bg
   is deliberately NOT introduced (the handoff flagged it as unconfirmed) — the
   page ground is whatever #content already paints. */
:root {
  --gold-lite: #F0C66B;
  --gold: #B97A18;
  --lum: #cf971f;
}
body.theme-dark { --lum: #eccb78; }

.arc-wrap { max-width: 1180px; padding: 26px 30px 60px; }

/* ── header ─────────────────────────────────────────────────────────── */
.arc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.arc-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.arc-sub { font-size: 14px; color: var(--muted); max-width: 60ch; text-wrap: pretty; margin: 0; line-height: 1.5; }
.arc-lum-pill { display: inline-flex; align-items: center; gap: 7px; padding: 11px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); white-space: nowrap; position: relative; }
.arc-lum-pill b { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 700; color: var(--lum); }
.arc-lum-l { font-size: 12px; color: var(--muted); }
.arc-lumpop { position: absolute; right: 14px; top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 13px;
  font-weight: 700; color: var(--lum); opacity: 0; pointer-events: none; }
.arc-lumpop.go { animation: lumPop 1s ease forwards; }
@keyframes lumPop { 0% { opacity: 0; transform: translateY(0); } 18% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px); } }

/* ── status strip ───────────────────────────────────────────────────── */
.arc-strip { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; flex-wrap: wrap; }
.arc-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.arc-strip b { font-size: 13.5px; font-weight: 600; }
.arc-rule { font-size: 12.5px; color: var(--muted); }
.arc-closed { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px;
  background: var(--red-glow); border-left: 3px solid var(--red); margin-bottom: 16px; }
.arc-closed-i { color: var(--red); font-size: 16px; line-height: 1.2; }
.arc-closed-t { font-size: 14px; font-weight: 700; }
.arc-closed-s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ── two columns; wrap instead of media queries ─────────────────────── */
.arc-cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.arc-main { flex: 3 1 520px; min-width: 0; }
.arc-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }

/* ── category filter ────────────────────────────────────────────────── */
.arc-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.arc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted2); font-size: 12.5px;
  font-weight: 600; cursor: pointer; transition: .12s; }
.arc-pill:hover { border-color: var(--border-light); }
.arc-pill.on { border-color: var(--red); background: var(--red-glow); color: var(--red); }
.arc-n { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; opacity: .72; }

/* ── game grid ──────────────────────────────────────────────────────── */
.arc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 11px; }
.arc-card-g { text-align: left; padding: 14px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-card); cursor: pointer; transition: .12s;
  display: flex; flex-direction: column; gap: 7px; }
.arc-card-g:hover { border-color: var(--red); transform: translateY(-2px); }
.arc-card-g.soon { opacity: .55; }
.arc-top { display: flex; align-items: center; justify-content: space-between; }
.arc-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--badge-bg); display: grid;
  place-items: center; color: var(--gold-lite); font-size: 14px; }
.arc-hi { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--muted); }
.arc-nm { font-size: 13.5px; font-weight: 700; }
.arc-bl { font-size: 11.5px; color: var(--muted); min-height: 32px; line-height: 1.35; }
.arc-chips { display: flex; gap: 5px; }
.arc-chip { font-size: 10px; padding: 3px 7px; border-radius: 6px; background: var(--off); color: var(--muted);
  text-transform: capitalize; }
.arc-chip.lum { color: var(--lum); }

/* ── right column ───────────────────────────────────────────────────── */
.arc-panel { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.arc-panel-t { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 10px; }
.arc-buddy { padding: 16px; border-radius: 14px; background: var(--badge-bg); position: relative; overflow: hidden;
  text-align: center; }
.arc-buddy::before { content: ''; position: absolute; inset: -40% -20% auto; height: 160px;
  background: radial-gradient(closest-side, rgba(240,198,107,.22), transparent); }
.arc-dog { position: relative; height: 96px; display: grid; place-items: center; }
.arc-buddy-b { position: relative; margin-top: 6px; }
.arc-buddy-b b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 22px; color: var(--gold-lite); }
.arc-buddy-b span { font-size: 11px; color: rgba(255,255,255,.55); }
.arc-board { display: flex; flex-direction: column; gap: 6px; }
.arc-empty { font-size: 12px; color: var(--muted); line-height: 1.45; }
.arc-3up { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.arc-3up b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; }
.arc-3up span { font-size: 10.5px; color: var(--muted); }
.arc-note { font-size: 11px; color: var(--muted); margin-top: 10px; }

/* ── in-game shell ──────────────────────────────────────────────────── */
.arc-gh { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.arc-back { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; color: var(--text); flex: none; }
.arc-back:hover { border-color: var(--red); color: var(--red); }
.arc-gn { font-size: 19px; font-weight: 700; }
.arc-gc { font-size: 11.5px; color: var(--muted); }
.arc-gh .arc-lum-pill { margin-left: auto; }

.arc-stage { border-radius: 16px; background: var(--badge-bg); border: 1px solid var(--border);
  overflow: hidden; position: relative; }
.arc-hud { display: flex; gap: 22px; padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.arc-hud div { display: flex; flex-direction: column; gap: 2px; }
.arc-hud .arc-hud-r { margin-left: auto; text-align: right; }
.arc-hud span { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.45); }
.arc-hud b { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700; color: #F0C66B; }
.arc-hud .arc-hearts { color: #ff4d62; letter-spacing: .1em; }
.arc-play { position: relative; line-height: 0; }
.arc-canvas { width: 100%; height: auto; display: block; image-rendering: pixelated; }

/* ── question break ─────────────────────────────────────────────────── */
.arc-scrim { position: absolute; inset: 0; background: rgba(10,10,12,.82); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px; z-index: 5; line-height: normal; }
.arc-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.45); animation: softIn .18s ease; }
@keyframes softIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.arc-qh { display: flex; align-items: center; gap: 7px; font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.arc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.arc-topic { margin-left: auto; font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.arc-qq { font-size: 15.5px; font-weight: 600; line-height: 1.45; text-wrap: pretty; margin-bottom: 14px; }
.arc-chs { display: flex; flex-direction: column; gap: 7px; }
.arc-ch { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 13px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font-size: 13.5px;
  color: var(--text); cursor: pointer; transition: .1s; }
.arc-ch:hover { border-color: var(--red); background: var(--off); }
.arc-chl { width: 20px; height: 20px; border-radius: 5px; background: var(--off); display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; flex: none; }
.arc-foot { font-size: 11.5px; color: var(--muted); margin-top: 12px; }

/* ── result card ────────────────────────────────────────────────────── */
.arc-rh { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.arc-ri { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.arc-ri.ok { background: rgba(52,210,123,.14); color: var(--green); }
.arc-ri.no { background: var(--red-glow); color: var(--red); }
.arc-rt { font-size: 16px; font-weight: 700; }
.arc-rd { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700; color: var(--lum); }
.arc-why { background: var(--off); border-radius: 10px; padding: 12px; font-size: 13.5px; line-height: 1.5;
  color: var(--muted2); }
.arc-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.arc-ostats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin: 4px 0 2px; }
.arc-ostats b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 20px; }
.arc-ostats span { font-size: 10.5px; color: var(--muted); }
.arc-runid { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--muted); text-align: center;
  margin-top: 10px; opacity: .7; }

/* ── eyes-up card over a live run ───────────────────────────────────── */
.arc-eyes { text-align: center; }
.arc-eyes-i { font-size: 22px; color: var(--red); margin-bottom: 8px; }
.arc-eyes-t { font-size: 16px; font-weight: 700; }
.arc-eyes-s { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── DOM-kind games get a padded board on the same dark stage ───────── */
.arc-dom { padding: 18px; color: #f5f5f7; line-height: normal; min-height: 396px; }
