:root {
  --swish-bg: #070b13;
  --swish-panel: #111827;
  --swish-panel-2: #182234;
  --swish-text: #f8fafc;
  --swish-muted: #a7b0c0;
  --swish-accent: #f97316;
  --swish-border: rgba(255,255,255,.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(circle at top, #1f2937 0, var(--swish-bg) 48rem);
  color: var(--swish-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.stats-page {
  min-height: 100vh;
  padding: clamp(24px, 4vw, 56px) 18px;
}

.stats-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.stats-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.stats-logo {
  width: 72px;
  height: auto;
  display: block;
}

.stats-header h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: .95;
  margin: 0;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.game-select-label {
  display: block;
  margin: 0 0 8px;
  color: var(--swish-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.game-select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--swish-border);
  border-radius: 14px;
  background: var(--swish-panel);
  color: var(--swish-text);
  padding: 0 18px;
  font-size: 1rem;
  outline: none;
}

.game-select:focus { border-color: var(--swish-accent); }

.html-output { margin-top: 24px; }
.empty-message,
.notice-box {
  border: 1px dashed var(--swish-border);
  border-radius: 18px;
  color: var(--swish-muted);
  padding: 22px;
  background: rgba(255,255,255,.04);
}

.video-embed {
  margin-bottom: 22px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--swish-border);
}

.video-embed iframe,
.video-embed video,
.video-embed embed,
.video-embed object {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
}

.stats-iframe-wrap {
  width: 100%;
  height: min(76vh, 1500px);
  min-height: 620px;
  /* border-radius: 18px; */
  /* overflow: hidden; */
  border: 1px solid var(--swish-border);
  background: #fff;
}

.stats-iframe {
  width: 100%;
  min-height: 1800px;
  border: 0;
  display: block;
  overflow: auto;
}

.password-overlay {
  min-height: calc(100vh - 112px);
  display: grid;
  place-items: center;
}

.password-box {
  width: min(420px, 100%);
  background: linear-gradient(180deg, var(--swish-panel), var(--swish-panel-2));
  border: 1px solid var(--swish-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

.password-box h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  letter-spacing: -.04em;
}

.password-box p { color: var(--swish-muted); margin: 0 0 18px; }
.password-error { color: #fecaca !important; }

.password-box input,
.password-box button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  font-size: 1rem;
}

.password-box input {
  margin-bottom: 12px;
  padding: 0 14px;
  background: rgba(255,255,255,.08);
  color: var(--swish-text);
  outline: 1px solid var(--swish-border);
}

.password-box input:focus { outline-color: var(--swish-accent); }

.password-box button {
  cursor: pointer;
  background: var(--swish-accent);
  color: #111827;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (max-width: 720px) {
  .stats-header { align-items: flex-start; flex-direction: column; }
  .stats-logo { width: 58px; }
  .stats-iframe-wrap { min-height: 560px; height: 72vh; }
}
