:root {
  color-scheme: light;
  --bg: #b9c8ff;
  --text: #111318;
  --muted: rgba(17, 19, 24, 0.55);
  --muted-strong: rgba(17, 19, 24, 0.72);
  --line: rgba(85, 100, 148, 0.18);
  --panel-border: rgba(114, 128, 176, 0.14);
  --shadow: rgba(71, 85, 133, 0.10);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

body {
  min-height: 100vh;
  overflow: hidden;
}

#shader-canvas,
.backdrop-blur,
.dot-field,
.ascii-grid {
  position: fixed;
  inset: 0;
}

#shader-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ascii-grid {
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.backdrop-blur {
  background:
    radial-gradient(circle at 48% 18%, rgba(255, 255, 255, 0.72), transparent 34%),
    radial-gradient(circle at 12% 22%, rgba(186, 220, 255, 0.55), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(200, 170, 255, 0.48), transparent 36%),
    radial-gradient(circle at 18% 88%, rgba(90, 140, 255, 0.42), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(255, 160, 200, 0.28), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(120, 170, 255, 0.22), transparent 55%);
  pointer-events: none;
}

.dot-field {
  opacity: 0.52;
  background-image: radial-gradient(rgba(70, 95, 180, 0.22) 0.8px, transparent 0.8px);
  background-size: 19px 19px;
  -webkit-mask-image:
    radial-gradient(circle at 50% 46%, rgba(0, 0, 0, 0.72), transparent 62%),
    linear-gradient(rgba(0, 0, 0, 0.45), transparent 82%);
  mask-image:
    radial-gradient(circle at 50% 46%, rgba(0, 0, 0, 0.72), transparent 62%),
    linear-gradient(rgba(0, 0, 0, 0.45), transparent 82%);
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.hero {
  width: min(100%, 620px);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0;
}

.hero-mark {
  width: 180px;
  height: 180px;
  border-radius: 39px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 16px 38px rgba(109, 120, 183, 0.18);
}

.channel-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  margin: 0 0 12px;
  width: 100%;
  min-height: 1em;
  display: grid;
  place-items: center;
  font-size: clamp(5.5rem, 18vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero-copy {
  margin: 0 0 28px;
  max-width: 26ch;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.4;
  color: var(--muted-strong);
  text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
  .ascii-grid {
    display: none;
  }
}

.refresh-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  margin-bottom: 32px;
}

.refresh-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.refresh-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.status-panel {
  width: min(100%, 560px);
  display: grid;
  gap: 0;
}

.status-line {
  margin: 0;
  padding: 8px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  font-family:
    "SF Mono",
    "Fira Code",
    "Cascadia Code",
    "JetBrains Mono",
    ui-monospace,
    monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--panel-border);
}

.status-line:last-child {
  border-bottom: 1px solid var(--panel-border);
}

.status-key {
  white-space: nowrap;
}

.status-val {
  white-space: nowrap;
  font-weight: 600;
  color: var(--muted-strong);
}

.hl {
  color: var(--text);
  font-weight: 700;
}

.hl-yes {
  color: #22a355;
  font-weight: 700;
}

.hl-no {
  color: #e04545;
  font-weight: 700;
}

.site-credit {
  position: fixed;
  bottom: 14px;
  right: 18px;
  z-index: 3;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-family:
    "SF Mono",
    "Fira Code",
    "Cascadia Code",
    "JetBrains Mono",
    ui-monospace,
    monospace;
}

.site-credit a {
  color: inherit;
  text-decoration: none;
}

.site-credit a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  body {
    overflow-y: auto;
  }

  .page-shell {
    padding: 28px 18px 34px;
  }

  .status-line {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 420px) {
  .hero-copy {
    font-size: 1rem;
  }

  .refresh-btn {
    padding: 10px 22px;
    font-size: 0.82rem;
  }
}
