:root {
  color-scheme: light;
  --paper: #faf6ea;
  --paper-dot: rgba(24, 24, 27, 0.042);
  --card: #ffffff;
  --ink: #141417;
  --ink-2: #3f3f46;
  --ink-3: #6b7280;
  --accent: #2563eb;
  --alarm-red: #ff3b30;
  --sun: #ffe600;
  --cyan: #00d4ff;
  --lime: #22c55e;
  --rose: #ff99ac;
  --sky: #7dd3fc;
  --watch-paper: #fff799;
  --watch-copy: #422006;
  --crt-bg: #11161d;
  --crt-ink: #f8fafc;
  --crt-green: #4ade80;
  --crt-amber: #fde047;
  --cg-empty: #e2e8f0;
  --cg-regular: #2563eb;
  --cg-upgrade: #ff8a00;
  --cg-all: #16a34a;
  --border: 2.5px solid var(--ink);
  --border-thin: 2px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 14px;
  --font-display: "Black Han Sans", "Baloo 2", "Jua", "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", system-ui, sans-serif;
  --font-fun: "Jua", "Baloo 2", "Noto Sans KR", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --cell-size: 28px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b0d14;
  --paper-dot: rgba(255, 230, 0, 0.06);
  --card: #161923;
  --ink: #f4f4f5;
  --ink-2: #d4d4d8;
  --ink-3: #a1a1aa;
  --accent: #60a5fa;
  --alarm-red: #ff453a;
  --sun: #ffe600;
  --cyan: #22d3ee;
  --lime: #4ade80;
  --rose: #fb7185;
  --sky: #38bdf8;
  --watch-paper: #2a240e;
  --watch-copy: #fde047;
  --crt-bg: #070a0f;
  --crt-ink: #f8fafc;
  --crt-green: #4ade80;
  --crt-amber: #fde047;
  --cg-empty: #27272a;
  --cg-regular: #00e5ff;
  --cg-upgrade: #ffe600;
  --cg-all: #39ff14;
  --border: 3px solid #ffe600;
  --border-thin: 2px solid #94a3b8;
  --shadow: 6px 6px 0 #000000;
  --shadow-lg: 8px 8px 0 #000000;
  --shadow-sm: 4px 4px 0 #000000;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0b0d14;
    --paper-dot: rgba(255, 230, 0, 0.06);
    --card: #161923;
    --ink: #f4f4f5;
    --ink-2: #d4d4d8;
    --ink-3: #a1a1aa;
    --accent: #60a5fa;
    --alarm-red: #ff453a;
    --sun: #ffe600;
    --cyan: #22d3ee;
    --lime: #4ade80;
    --rose: #fb7185;
    --sky: #38bdf8;
    --watch-paper: #2a240e;
    --watch-copy: #fde047;
    --crt-bg: #070a0f;
    --crt-ink: #f8fafc;
    --crt-green: #4ade80;
    --crt-amber: #fde047;
    --cg-empty: #27272a;
    --cg-regular: #00e5ff;
    --cg-upgrade: #ffe600;
    --cg-all: #39ff14;
    --border: 3px solid #ffe600;
    --border-thin: 2px solid #94a3b8;
    --shadow: 6px 6px 0 #000000;
    --shadow-lg: 8px 8px 0 #000000;
    --shadow-sm: 4px 4px 0 #000000;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  background-color: var(--paper);
  background-image: radial-gradient(var(--paper-dot) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Marquee + Hazard Warning Tape */
.meme-marquee {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: #141417;
  color: #ffe600;
  border-bottom: 2px solid #ffe600;
  overflow: hidden;
  padding: 6px 0;
  font-family: var(--font-fun);
  font-size: 0.92rem;
}

.meme-marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marqueeScroll 30s linear infinite;
}

.meme-marquee:hover .meme-marquee-track {
  animation-play-state: paused;
}

.meme-marquee-track span {
  white-space: nowrap;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hazard-tape {
  height: 9px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    #ffe600,
    #ffe600 12px,
    #141417 12px,
    #141417 24px
  );
  border-bottom: 3px solid #141417;
}

/* Wide Retro Command Center Container */
.page-shell {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.page-shell.is-shaking {
  animation: pageShake 0.34s ease;
}

@keyframes pageShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-4px, 2px) rotate(-0.5deg); }
  45% { transform: translate(4px, -2px) rotate(0.5deg); }
  75% { transform: translate(-3px, 1px) rotate(-0.3deg); }
}

/* Retro OS Window Chrome Header */
.shrine-window {
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
  overflow: visible;
}

.shrine-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 14px;
  background: linear-gradient(90deg, #1e3a8a, #2563eb 55%, #0ea5e9);
  color: #ffffff;
  border-bottom: var(--border);
  border-radius: calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.window-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-buttons {
  display: inline-flex;
  gap: 5px;
  flex-shrink: 0;
}

.win-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  background: #e5e7eb;
  color: #141417;
  border: 2px solid #141417;
  font-size: 0.75rem;
  line-height: 1;
  box-shadow: 2px 2px 0 #141417;
}

.win-btn--close {
  background: #ff3b30;
  color: #ffffff;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  flex-wrap: wrap;
}

.masthead-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.shrine-stamp {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 2px solid var(--alarm-red);
  border-radius: 5px;
  color: var(--alarm-red);
  background: rgba(255, 59, 48, 0.08);
  font-family: var(--font-fun);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transform: rotate(-1.5deg);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--lime);
  color: #052e16;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #052e16;
  animation: pulseDot 1.3s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.55; }
}

.masthead-title-link {
  text-decoration: none;
}

.masthead-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--sun);
}

:root[data-theme="dark"] .masthead-title {
  text-shadow: 3px 3px 0 #ff3b30;
}

.masthead-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.masthead-presence {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: #dcfce7;
  color: #14532d;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

:root[data-theme="dark"] .masthead-presence {
  background: #14261c;
  color: #86efac;
}

.masthead-presence-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 6px rgba(22, 163, 74, 0.55);
  animation: pulseDot 1.4s infinite;
}

.masthead-presence-count {
  font-size: 1.02rem;
  color: #15803d;
}

:root[data-theme="dark"] .masthead-presence-count {
  color: #ffe600;
}

.lang-picker {
  position: relative;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--sun);
  color: #141417;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.icon-pill:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.icon-pill:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.icon-pill svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root[data-theme="dark"] .theme-toggle-icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle-icon--moon { display: none; }
:root:not([data-theme="dark"]) .theme-toggle-icon--sun { display: none; }
:root:not([data-theme="dark"]) .theme-toggle-icon--moon { display: block; }

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  min-width: 158px;
  padding: 6px;
  background: var(--card);
  border: var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.language-option {
  width: 100%;
  padding: 8px 10px;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.language-option:hover,
.language-option[aria-current="true"] {
  background: var(--sun);
  color: #141417;
  border-color: #141417;
}

/* ======================================================
   HERO STAGE: ASYMMETRIC 2-COLUMN COMMAND BOARD
   ====================================================== */
.command-stage {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}

/* LEFT COLUMN: SAINT VARUN ALTAR PANEL */
.altar-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 22px 24px;
  background: linear-gradient(180deg, #fff3b0 0%, #ffffff 62%);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

:root[data-theme="dark"] .altar-panel {
  background: linear-gradient(180deg, #272009 0%, #161923 65%);
}

.altar-banner {
  width: 100%;
  text-align: center;
  padding: 6px 10px;
  background: var(--sun);
  color: #141417;
  border: 2px solid #141417;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.varun-speech-bubble {
  position: relative;
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  color: #141417;
  border: 3px solid #141417;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #141417;
  font-family: var(--font-fun);
  font-size: 0.96rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
}

.varun-speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid #141417;
}

.varun-speech-bubble.is-pop {
  animation: quipPop 0.25s ease;
}

@keyframes quipPop {
  0% { transform: scale(0.92); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.altar-medallion-stage {
  position: relative;
  width: 184px;
  height: 184px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 6px;
}

.altar-sunburst {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 214, 0, 0.55) 0deg 15deg,
    rgba(255, 115, 0, 0.12) 15deg 30deg
  );
  border: 2px dashed rgba(20, 20, 23, 0.25);
  animation: sunburstSpin 22s linear infinite;
}

:root[data-theme="dark"] .altar-sunburst {
  border-color: rgba(255, 230, 0, 0.3);
}

@keyframes sunburstSpin {
  to { transform: rotate(360deg); }
}

.varun-halo-wrap {
  position: relative;
  z-index: 2;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease;
}

.varun-halo-wrap:hover {
  transform: scale(1.06);
}

.varun-halo-wrap.is-spinning .masthead-logo {
  animation: varunSpin 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes varunSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(190deg) scale(1.12); }
  100% { transform: rotate(360deg) scale(1); }
}

.varun-crown {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  z-index: 5;
  filter: drop-shadow(0 3px 0 #141417);
  animation: crownFloat 1.5s ease-in-out infinite;
}

@keyframes crownFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-6deg); }
  50% { transform: translateX(-50%) translateY(-5px) rotate(6deg); }
}

.varun-halo {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 4px dotted var(--alarm-red);
  pointer-events: none;
}

.masthead-logo {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #141417;
  box-shadow: 0 6px 0 #141417;
  background: #ffffff;
}

.varun-god-tag {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  padding: 3px 12px;
  background: var(--sun);
  color: #141417;
  border: 2.5px solid #141417;
  border-radius: 999px;
  box-shadow: 2px 2px 0 #141417;
  font-family: var(--font-fun);
  font-size: 0.85rem;
  font-weight: 900;
  white-space: nowrap;
}

/* 3D Arcade Slam Prayer Button */
.reset-plea-action {
  position: relative;
  width: 100%;
}

.reset-plea-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  background: linear-gradient(180deg, #ff5147 0%, #e11d48 100%);
  color: #ffffff;
  border: 3px solid #141417;
  border-radius: 12px;
  box-shadow: 0 6px 0 #141417;
  font-family: var(--font-fun);
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.reset-plea-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 7px 0 #141417;
}

.reset-plea-button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #141417;
}

.reset-plea-count {
  padding: 2px 8px;
  background: #141417;
  color: #ffe600;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.reset-plea-bursts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.burst-particle {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
  padding: 2px 8px;
  background: #ffffff;
  color: #141417;
  border: 2px solid #141417;
  border-radius: 999px;
  font-family: var(--font-fun);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  z-index: 25;
  animation: burstRise 0.9s ease-out forwards;
}

.burst-particle--combo {
  background: #ffe600;
  font-size: 1rem;
  box-shadow: 3px 3px 0 #141417;
}

@keyframes burstRise {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(0.85);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), var(--dy, -65px)) scale(1.1);
  }
}

/* Receipt Stat Stubs inside Altar */
.stat-row {
  margin: 4px 0 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stat-tile {
  padding: 10px 6px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  text-align: center;
  box-shadow: 3px 3px 0 #141417;
  color: #141417;
}

.stat-tile--sun { background: #fef08a; }
.stat-tile--rose { background: #fecdd3; }
.stat-tile--sky { background: #bae6fd; }

.stat-tile dt {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
  opacity: 0.88;
}

.stat-tile dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
}

/* RIGHT COLUMN: CRT BREAKING NEWS + STICKY FORECAST + TOOLBAR */
.monitor-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.hero-explainer {
  margin: 0;
  padding: 2px 4px;
  background: transparent;
  border: none;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.96rem;
}

.hero-explainer a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: underline wavy;
  text-underline-offset: 3px;
}

/* Tabloid Breaking Report Card */
.hero-card {
  background: var(--card);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-card--mercy {
  box-shadow: 7px 7px 0 #16a34a;
}

.hero-crt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 18px;
  background: #fff3b0;
  color: #141417;
  border-bottom: var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
}

:root[data-theme="dark"] .hero-crt-bar {
  background: #2a240e;
  color: #fde047;
}

.crt-onair {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #dc2626;
  font-weight: 900;
}

.crt-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.55);
  animation: pulseDot 1s infinite;
}

.hero-label {
  color: #141417;
  letter-spacing: 0.02em;
}

:root[data-theme="dark"] .hero-label {
  color: #fde047;
}

.hero-card-body {
  padding: 24px 26px 24px;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.model-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  border: 2px solid #141417;
  background: #e0f2fe;
  color: #0c4a6e;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
}

.model-chip--all { background: #bbf7d0; color: #14532d; }
.model-chip--upgrade { background: #fef08a; color: #713f12; }
.model-chip--hit { background: #c084fc; color: #2e1065; }
.model-chip--concept { background: #ffe600; color: #141417; }

.hero-figure {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--ink);
  text-shadow: 3px 3px 0 #ffe600;
  margin: 6px 0 16px;
}

.hero-card--mercy .hero-figure {
  color: #15803d;
  text-shadow: 3px 3px 0 #bbf7d0;
}

:root[data-theme="dark"] .hero-figure {
  text-shadow: 3px 3px 0 #000000;
}

.hero-excerpt {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: #f1f5f9;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.54;
}

:root[data-theme="dark"] .hero-excerpt {
  background: rgba(255, 255, 255, 0.06);
}

.copium-meter {
  padding: 14px 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  margin-bottom: 18px;
}

.copium-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 0.84rem;
  font-weight: 800;
}

.copium-label { color: var(--ink); }
.copium-stage { color: #b45309; font-family: var(--font-fun); }
:root[data-theme="dark"] .copium-stage { color: #fde047; }

.copium-track {
  height: 14px;
  background: #e2e8f0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}

.copium-fill {
  height: 100%;
  border-radius: 999px;
  background: repeating-linear-gradient(
    -45deg,
    #22c55e,
    #22c55e 8px,
    #4ade80 8px,
    #4ade80 16px
  );
  transition: width 0.5s ease;
}

.copium-fill--warn {
  background: repeating-linear-gradient(-45deg, #eab308, #eab308 8px, #fde047 8px, #fde047 16px);
}
.copium-fill--high {
  background: repeating-linear-gradient(-45deg, #f97316, #f97316 8px, #fb923c 8px, #fb923c 16px);
}
.copium-fill--crit {
  background: repeating-linear-gradient(-45deg, #dc2626, #dc2626 8px, #ff453a 8px, #ff453a 16px);
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-sub {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-2);
}

.hero-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: var(--sun);
  color: #141417;
  border: 2px solid #000000;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-fun);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 3px 3px 0 #000000;
}

.hero-source-pill:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #000000;
}

/* Taped Yellow Forecast Post-it Card */
.watch-card {
  position: relative;
  padding: 22px 24px 20px;
  background: var(--watch-paper);
  color: var(--watch-copy);
  border: var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: rotate(-0.2deg);
}

.watch-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 96px;
  height: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(20, 20, 23, 0.25);
}

.watch-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.watch-card h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-fun);
  font-size: 1.15rem;
}

.scheduled-icon {
  width: 20px;
  height: 20px;
}

.forecast-pill {
  padding: 3px 10px;
  border-radius: 999px;
  border: 2px solid #141417;
  background: #ffffff;
  color: #141417;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
}

.forecast-pill--window { background: #86efac; }
.forecast-pill--overdue { background: #fecaca; color: #7f1d1d; }

.scheduled-timing {
  margin: 4px 0 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.scheduled-countdown {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 900;
}

.scheduled-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.scheduled-announcement {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.9;
}

.forecast-signal {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 2px dashed rgba(20, 20, 23, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 700;
}

.forecast-signal-link {
  font-weight: 900;
  text-decoration: underline;
}

/* Action Toolbar & Timezone Toggle */
.hero-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.subscription-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.subscription-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 9px;
  box-shadow: 3px 3px 0 #141417;
  font-family: var(--font-fun);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease;
}

.subscription-action:hover {
  background: var(--sun);
  color: #141417;
  transform: translate(-1px, -1px);
}

.subscription-action[aria-pressed="true"] {
  background: var(--lime);
  color: #052e16;
}

.subscription-action--x {
  background: #141417;
  color: #ffffff;
}

.subscription-action--x:hover {
  background: #2563eb;
  color: #ffffff;
}

.subscription-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.time-setting {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 3px 3px 0 #141417;
}

.time-toggle {
  padding: 7px 11px;
  border: none;
  background: var(--card);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.time-toggle[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.push-hint,
.email-hint {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
}

.email-subscribe-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.email-input {
  flex: 1 1 220px;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.92rem;
}

.email-submit {
  background: var(--sun);
  color: #141417;
}

/* ======================================================
   MIDDLE FULL-WIDTH: MERCY RADAR TERMINAL HEATMAP
   ====================================================== */
.graph-section {
  margin-bottom: 36px;
}

.terminal-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #ffe600;
  color: #141417;
  border-bottom: var(--border);
}

.terminal-dots {
  display: inline-flex;
  gap: 6px;
}

.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid #000000;
}

.t-dot--red { background: #ff5f56; }
.t-dot--yellow { background: #ffffff; }
.t-dot--green { background: #27c93f; }

.terminal-bar h2 {
  flex: 1;
  text-align: center;
  margin: 0;
  font-family: var(--font-fun);
  font-size: 1.08rem;
  color: #141417;
}

.terminal-tag {
  padding: 3px 9px;
  background: #ff3b30;
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  transform: rotate(2deg);
  box-shadow: 2px 2px 0 #000000;
}

.terminal-body {
  padding: 20px 22px 22px;
}

.graph-legend {
  margin: 0 0 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 800;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.legend-chip {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid #141417;
  background: var(--cg-empty);
}

.legend-chip--regular {
  background: var(--cg-regular);
  box-shadow: 1.5px 1.5px 0 #141417;
}
.legend-chip--upgrade {
  background: var(--cg-upgrade);
  box-shadow: 1.5px 1.5px 0 #141417;
}
.legend-chip--all {
  background: var(--cg-all);
  box-shadow: 1.5px 1.5px 0 #141417;
}

.graph-card {
  container-type: inline-size;
  padding: 20px 18px 22px;
  background: #f8fafc;
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  display: flex;
  justify-content: center;
}

:root[data-theme="dark"] .graph-card {
  background: #11161d;
  border-color: rgba(255, 230, 0, 0.28);
}

.cg-container {
  --cg-gap: clamp(2px, 0.5cqi, 5px);
  --cg-week-w: clamp(30px, 5cqi, 44px);
  --cell-size: clamp(7px, calc((100cqi - var(--cg-week-w) - 12px - 25 * var(--cg-gap) - 4px) / 26), 19px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(4px, 0.9cqi, 10px);
  width: 100%;
}

.cg-weekdays {
  display: grid;
  grid-template-rows: 26px repeat(7, var(--cell-size));
  gap: var(--cg-gap);
  width: var(--cg-week-w);
  flex-shrink: 0;
}

.cg-weekday {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  font-family: var(--font-fun);
  font-size: clamp(0.72rem, 1.3cqi, 0.92rem);
  font-weight: 900;
  color: #334155;
}

:root[data-theme="dark"] .cg-weekday {
  color: #e2e8f0;
}

.cg-weekday:nth-child(2) { color: #e11d48; }
.cg-weekday:nth-child(8) { color: #2563eb; }
:root[data-theme="dark"] .cg-weekday:nth-child(2) { color: #ff6b6b; }
:root[data-theme="dark"] .cg-weekday:nth-child(8) { color: #38bdf8; }

.cg-scroll {
  overflow: visible;
  flex: 0 1 auto;
  max-width: 100%;
  padding-bottom: 0;
}

.cg-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: 26px repeat(7, var(--cell-size));
  grid-auto-columns: var(--cell-size);
  gap: var(--cg-gap);
  width: max-content;
}

.cg-month {
  font-family: var(--font-fun);
  font-size: clamp(0.75rem, 1.35cqi, 0.96rem);
  font-weight: 900;
  color: #141417;
  line-height: 26px;
  white-space: nowrap;
  min-width: 0;
  overflow: visible;
}

:root[data-theme="dark"] .cg-month {
  color: #ffe600;
}

.cg-cell {
  width: var(--cell-size);
  height: var(--cell-size);
  border-radius: 4px;
  background: var(--cg-empty);
  border: 1px solid #cbd5e1;
  transition: transform 0.12s ease;
}

:root[data-theme="dark"] .cg-cell {
  border-color: rgba(255, 255, 255, 0.14);
}

.cg-cell:hover {
  transform: scale(1.38);
  z-index: 4;
}

.cg-cell--future { opacity: 0.3; }
.cg-cell--has {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #141417;
  box-shadow: 2px 2px 0 #141417;
  cursor: pointer;
  animation: resetBlip 2.4s ease-in-out infinite;
}

.cg-cell--has::after {
  font-size: clamp(5px, calc(var(--cell-size) * 0.56), 11px);
  line-height: 1;
  pointer-events: none;
}

.cg-cell--regular_reset {
  background: var(--cg-regular);
  color: #ffffff;
}
.cg-cell--regular_reset::after {
  content: "⚡";
}

.cg-cell--model_upgrade {
  background: var(--cg-upgrade);
  color: #141417;
}
.cg-cell--model_upgrade::after {
  content: "★";
  font-weight: 900;
}

.cg-cell--all_models {
  background: var(--cg-all);
  color: #ffffff;
}
.cg-cell--all_models::after {
  content: "👑";
}

@keyframes resetBlip {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}

.heatmap-tooltip {
  position: fixed;
  z-index: 95;
  padding: 6px 10px;
  background: #141417;
  color: #ffe600;
  border: 2px solid #ffe600;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  pointer-events: none;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}

.heatmap-tooltip::after {
  content: "";
  position: absolute;
  left: var(--arrow-left, 50%);
  bottom: -7px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ffe600;
}

.heatmap-tooltip--below::after {
  bottom: auto;
  top: -7px;
  border-top: none;
  border-bottom: 6px solid #ffe600;
}

/* ======================================================
   SPONSOR LEADERBOARD BANNER (MID-PAGE FLYER)
   ====================================================== */
.sponsor-banner {
  margin-bottom: 36px;
  border: var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fffbeb 0%, #fef08a 100%);
  color: #141417;
  box-shadow: var(--shadow);
  overflow: hidden;
}

:root[data-theme="dark"] .sponsor-banner {
  background: linear-gradient(135deg, #1f1c0d 0%, #2a240e 100%);
  color: #f4f4f5;
}

.sponsor-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  text-decoration: none;
  flex-wrap: wrap;
}

.sponsor-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1 1 320px;
}

.sponsor-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 8px;
  background: #141417;
  color: #ffe600;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  transform: rotate(-1deg);
}

.sponsor-title {
  font-family: var(--font-fun);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.3;
}

.sponsor-desc {
  font-size: 0.85rem;
  opacity: 0.86;
  line-height: 1.45;
  margin: 0;
}

.sponsor-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: #141417;
  color: #ffe600;
  border: 2px solid #141417;
  border-radius: 10px;
  box-shadow: 3px 3px 0 #ff3b30;
  font-family: var(--font-fun);
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 0.1s ease;
}

.sponsor-banner-inner:hover .sponsor-cta,
.sponsor-box-inner:hover .sponsor-cta {
  transform: translate(-1px, -1px);
  background: #2563eb;
  color: #ffffff;
}

.sponsor-cta--full {
  width: 100%;
  margin-top: 6px;
}

.sponsor-img-link {
  position: relative;
  display: block;
  text-decoration: none;
}

.sponsor-img-link .sponsor-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}

.sponsor-img-link img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ======================================================
   BOTTOM ASYMMETRIC 2-COLUMN: BBS ARCHIVE + STICKY FAQ & SPONSOR
   ====================================================== */
.bottom-board {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 1fr);
  gap: 36px;
  align-items: start;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.38rem;
  line-height: 1.2;
}

.section-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.log-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  counter-reset: bbs-no;
}

.log-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  counter-increment: bbs-no;
}

.log-item--hidden {
  display: none;
}

.log-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 #141417;
  flex-shrink: 0;
}

.log-bubble {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 20px 22px;
  background: var(--card);
  border: var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.log-bubble::before {
  content: "POST #" counter(bbs-no);
  display: inline-block;
  margin-bottom: 6px;
  padding: 1px 7px;
  background: #141417;
  color: #ffe600;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
}

.log-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.log-author-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.log-author-name { font-weight: 900; }
.log-author-handle { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-3); }

.log-item-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.log-item-time { font-weight: 800; color: var(--accent); }

.log-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
}

.log-item-text {
  font-size: 0.94rem;
  line-height: 1.5;
}

.log-item-text p {
  margin: 0 0 8px;
}

.log-item-text--clamped p:nth-child(n+2) {
  display: none;
}

.log-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1.5px dashed rgba(128, 128, 128, 0.35);
}

.log-item-actions-left {
  display: inline-flex;
  gap: 6px;
}

.log-show-more-btn,
.log-lang-toggle-btn {
  padding: 4px 9px;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.log-item-link {
  font-family: var(--font-fun);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}

.feed-toggle-wrap {
  margin-top: 14px;
}

.feed-toggle-btn {
  width: 100%;
  padding: 11px 16px;
  background: var(--sun);
  color: #141417;
  border: var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-fun);
  font-size: 0.96rem;
  font-weight: 900;
  cursor: pointer;
}

/* Sticky Right Sidebar FAQ Dossier + Partner Coupon */
.faq-section {
  position: sticky;
  top: 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-dossier {
  padding: 24px;
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sponsor-box {
  padding: 20px;
  background: var(--card);
  border: 2.5px dashed var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sponsor-box-inner {
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  font-family: var(--font-mono);
  font-weight: 900;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
}

.faq-answer {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.55;
}

/* Receipt Footer */
.site-footer {
  margin-top: 64px;
  padding: 28px 16px 12px;
  border-top: 3px dashed var(--ink);
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Responsive Breakpoint */
@media (max-width: 960px) {
  .command-stage,
  .bottom-board {
    grid-template-columns: 1fr;
  }

  .faq-section {
    position: static;
  }

  .altar-panel {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .page-shell {
    padding: 16px 14px 56px;
  }

  .shrine-window {
    margin-bottom: 22px;
  }

  .command-stage {
    gap: 22px;
    margin-bottom: 28px;
  }

  .graph-section {
    margin-bottom: 30px;
  }

  .bottom-board {
    gap: 26px;
  }

  .shrine-window-bar {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .masthead {
    padding: 12px;
    gap: 12px;
  }

  .masthead-controls {
    width: 100%;
    justify-content: space-between;
  }

  .hero-card-body {
    padding: 14px;
  }

  .time-setting {
    width: 100%;
  }

  .time-toggle {
    flex: 1;
  }

  .terminal-tag {
    display: none;
  }

  .terminal-body {
    padding: 12px 10px 14px;
  }

  .graph-legend {
    gap: 6px;
    font-size: 0.75rem;
  }

  .legend-item {
    padding: 3px 8px;
  }

  .graph-card {
    padding: 10px 8px;
  }

  .watch-card {
    transform: none;
  }
}
