:root {
  color-scheme: light;
  --paper: #faf6ea;
  --paper-dot: rgba(24, 24, 27, 0.045);
  --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;
  --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", 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", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

: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;
  --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;
    --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.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* 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;
  align-items: center;
  width: max-content;
  gap: 32px;
  animation: marqueeScroll 36s 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;
}

/* Page Shell */
.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 22px 96px;
}

.page-shell.is-shaking {
  animation: pageShake 0.32s 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: 22px;
  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: 18px;
  padding: 20px 26px;
  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.75rem, 3.4vw, 2.65rem);
  line-height: 1.04;
  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;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--sun);
  color: #141417;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 900;
  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; }

/* Top Action Bar + CRT Strip */
.top-action-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-explainer {
  margin: 0;
  text-align: center;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.95rem;
}

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

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

.subscription-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-fun);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.08s ease;
}

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

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

.time-toggle {
  padding: 8px 13px;
  border: none;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-fun);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

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

.crt-war-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: #fff3b0;
  color: #141417;
  border: var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
}

:root[data-theme="dark"] .crt-war-strip {
  background: #231e0b;
  color: #fde047;
}

.crt-war-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.crt-onair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  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;
}

.bubble-meter-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

.bubble-track {
  width: 150px;
  height: 13px;
  background: #e2e8f0;
  border: 2px solid #141417;
  border-radius: 999px;
  overflow: hidden;
}

.copium-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s ease;
}

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

.bubble-stage {
  color: #b91c1c;
  font-family: var(--font-fun);
}

:root[data-theme="dark"] .bubble-stage {
  color: #fb7185;
}

/* ======================================================
   MAIN TOP 3 PODIUM: LEFT = #1, CENTER = #2, RIGHT = #3
   ====================================================== */
.podium-section {
  margin-bottom: 24px;
}

.podium-rule-note {
  margin: 0 0 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-2);
}

.podium-stage {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.92fr;
  gap: 20px;
  align-items: stretch;
}

.podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--card);
  transition: transform 0.14s ease;
}

.podium-card--rank1 {
  background: linear-gradient(180deg, #fff3b0 0%, #ffffff 58%);
  box-shadow: 8px 8px 0 #141417;
  border-width: 3px;
}

:root[data-theme="dark"] .podium-card--rank1 {
  background: linear-gradient(180deg, #2d2306 0%, #161923 60%);
  box-shadow: 8px 8px 0 #ff3b30;
}

.podium-card--rank2 {
  background: linear-gradient(180deg, #e0f2fe 0%, #ffffff 55%);
  margin-top: 14px;
}

:root[data-theme="dark"] .podium-card--rank2 {
  background: linear-gradient(180deg, #0d2133 0%, #161923 60%);
}

.podium-card--rank3 {
  background: linear-gradient(180deg, #ffe4e6 0%, #ffffff 55%);
  margin-top: 26px;
}

:root[data-theme="dark"] .podium-card--rank3 {
  background: linear-gradient(180deg, #2a1219 0%, #161923 60%);
}

.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.05em;
}

.podium-card--rank2 .altar-banner {
  background: #7dd3fc;
}

.podium-card--rank3 .altar-banner {
  background: #fda4af;
}

.speech-bubble {
  position: relative;
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: #ffffff;
  color: #141417;
  border: 2.5px solid #141417;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #141417;
  font-family: var(--font-fun);
  font-size: 0.93rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.32;
  cursor: pointer;
  user-select: none;
}

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

.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: 162px;
  height: 162px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}

.podium-card--rank1 .altar-medallion-stage {
  width: 184px;
  height: 184px;
}

.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;
}

.podium-card--rank1 .altar-sunburst {
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 68, 0, 0.72) 0deg 14deg,
    rgba(255, 214, 0, 0.34) 14deg 28deg
  );
  border-color: rgba(255, 69, 0, 0.75);
  filter: drop-shadow(0 0 14px rgba(255, 80, 0, 0.65));
  animation: sunburstSpin 7s linear infinite;
}

.podium-card--rank2 .altar-sunburst {
  background: repeating-conic-gradient(
    from 0deg,
    rgba(56, 189, 248, 0.45) 0deg 18deg,
    rgba(14, 165, 233, 0.1) 18deg 36deg
  );
}

.podium-card--rank3 .altar-sunburst {
  background: repeating-conic-gradient(
    from 0deg,
    rgba(251, 113, 133, 0.45) 0deg 18deg,
    rgba(225, 29, 72, 0.1) 18deg 36deg
  );
}

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

.emblem-btn {
  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;
}

.emblem-btn:hover {
  transform: scale(1.06);
}

.emblem-btn.is-spinning .emblem-photo-wrap {
  animation: emblemSpin 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes emblemSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(200deg) scale(1.16); filter: hue-rotate(45deg) contrast(1.25); }
  100% { transform: rotate(360deg) scale(1); }
}

.emblem-photo-wrap {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.podium-card--rank1 .emblem-photo-wrap {
  width: 138px;
  height: 138px;
}

.emblem-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #141417;
  box-shadow: 0 6px 0 #141417;
  background: #ffffff;
  display: block;
}

.podium-card--rank1 .emblem-photo {
  border-color: #ff4500;
  box-shadow:
    0 0 18px #ff5500,
    0 0 34px rgba(255, 214, 0, 0.85),
    0 6px 0 #141417;
}

.person-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  margin-bottom: 6px;
  border: 2px solid #141417;
  border-radius: 999px;
  background: #141417;
  color: #ffe600;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.person-pill:hover {
  background: #2563eb;
  color: #ffffff;
}

.rank-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); }
}

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

.podium-card--rank1 .emblem-halo {
  inset: -11px;
  border: none;
  background: conic-gradient(from 0deg, #ff1e00, #ff7a00, #ffe600, #ff3b00, #ffaa00, #ff1e00);
  animation: sunburstSpin 2s linear infinite;
  z-index: -1;
}

.flames-ring {
  position: absolute;
  inset: -16px;
  z-index: 4;
  pointer-events: none;
}

.flame-spark {
  position: absolute;
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(255, 90, 0, 0.9));
  animation: flameFlicker 0.8s ease-in-out infinite alternate;
}

.flame-spark--1 { top: -4px; left: 10px; animation-delay: 0s; }
.flame-spark--2 { top: -6px; right: 10px; animation-delay: 0.2s; }
.flame-spark--3 { top: 44%; left: -14px; animation-delay: 0.35s; }
.flame-spark--4 { top: 44%; right: -14px; animation-delay: 0.15s; }

@keyframes flameFlicker {
  0% { transform: translateY(2px) scale(0.9) rotate(-6deg); opacity: 0.88; }
  100% { transform: translateY(-6px) scale(1.18) rotate(8deg); opacity: 1; }
}

.god-tag {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  padding: 2px 11px;
  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.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.podium-identity {
  text-align: center;
}

.podium-lab-name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.1;
  text-shadow: 2px 2px 0 var(--sun);
}

.podium-card--rank1 .podium-lab-name {
  font-size: 1.85rem;
}

:root[data-theme="dark"] .podium-lab-name {
  text-shadow: 2px 2px 0 #000000;
}

.podium-lab-badge {
  display: inline-block;
  padding: 2px 9px;
  border: 2px solid #141417;
  border-radius: 6px;
  background: #e0f2fe;
  color: #0c4a6e;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.podium-card--rank1 .podium-lab-badge {
  background: #ffe600;
  color: #141417;
}

.podium-lab-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.42;
}

/* Vote / Slam Buttons */
.podium-vote-row {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
}

.slam-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  border: 2.5px solid #141417;
  border-radius: 11px;
  box-shadow: 0 5px 0 #141417;
  font-family: var(--font-fun);
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.slam-btn--praise {
  background: linear-gradient(180deg, #ff5147 0%, #e11d48 100%);
  color: #ffffff;
}

.slam-btn--roast {
  background: #e5e7eb;
  color: #141417;
}

.slam-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 0 #141417;
}

.slam-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #141417;
}

.slam-count {
  padding: 1px 7px;
  background: #141417;
  color: #ffe600;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.burst-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.burst-particle {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
  padding: 3px 9px;
  background: #ffe600;
  color: #141417;
  border: 2px solid #141417;
  border-radius: 999px;
  font-family: var(--font-fun);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
  z-index: 30;
  box-shadow: 2px 2px 0 #141417;
  animation: burstRise 0.88s ease-out forwards;
}

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

/* Receipt Stat Tiles */
.stat-row {
  margin: auto 0 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.stat-tile {
  padding: 8px 4px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  text-align: center;
  box-shadow: 2.5px 2.5px 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.68rem;
  font-weight: 800;
  margin-bottom: 2px;
  opacity: 0.85;
}

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

/* ======================================================
   MICROSCOPIC KKAKDUGI DRAWER (TINY BY DEFAULT!)
   ====================================================== */
.kkakdugi-section {
  margin-bottom: 30px;
  padding: 10px 14px;
  background: var(--card);
  border: 2px dashed var(--ink-3);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

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

.kkakdugi-head h2 {
  margin: 0;
  font-family: var(--font-fun);
  font-size: 0.88rem;
  color: var(--ink-2);
}

.kkakdugi-head p {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: var(--ink-3);
}

.magnify-btn {
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  color: #141417;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 2px 2px 0 #141417;
}

.magnify-btn[aria-pressed="true"] {
  background: var(--lime);
}

.kkakdugi-drawer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kkakdugi-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: var(--paper);
  border: 1.5px solid var(--ink-3);
  border-radius: 8px;
}

/* INTENTIONALLY MICROSCOPIC BY DEFAULT */
.kkakdugi-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 4px;
  border: 1px solid var(--ink-3);
  border-radius: 3px;
  background: var(--card);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.2;
  cursor: pointer;
  opacity: 0.78;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
}

.kkakdugi-chip:hover,
.kkakdugi-chip.is-active {
  opacity: 1;
  background: var(--sun);
  color: #141417;
  border-color: #141417;
  transform: scale(1.22);
  z-index: 2;
  animation: kkakdugiShiver 0.25s infinite;
}

@keyframes kkakdugiShiver {
  0%, 100% { transform: scale(1.22) rotate(-2deg); }
  50% { transform: scale(1.22) rotate(2deg); }
}

.kkakdugi-drawer.is-magnified .kkakdugi-chip {
  font-size: 13.5px;
  padding: 5px 10px;
  border-width: 2px;
  color: var(--ink);
  opacity: 1;
  box-shadow: 2px 2px 0 #141417;
}

.kkakdugi-inspector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--watch-paper);
  color: var(--watch-copy);
  border: 1.5px solid var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.inspector-placeholder {
  opacity: 0.8;
}

.inspector-jump {
  padding: 3px 9px;
  border: 1.5px solid #141417;
  border-radius: 6px;
  background: #ffffff;
  color: #141417;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

/* ======================================================
   FULL MODEL ARMORY TERMINAL CARD
   ====================================================== */
.terminal-card {
  width: 100%;
  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.12rem;
  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 26px;
}

.armory-sub {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.armory-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.armory-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.armory-tab {
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-fun);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.armory-tab.is-active {
  background: var(--sun);
  color: #141417;
  box-shadow: 2.5px 2.5px 0 #141417;
}

.armory-search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.armory-search {
  flex: 1 1 240px;
  padding: 9px 13px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.92rem;
}

.armory-sort {
  padding: 9px 12px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-fun);
  font-size: 0.86rem;
  font-weight: 800;
}

.armory-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.company-group {
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  padding: 14px 16px;
}

.company-group--top {
  border-width: 2.5px;
  box-shadow: var(--shadow-sm);
}

.company-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px dashed var(--ink-3);
}

.company-group-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.rank-pill {
  padding: 2px 8px;
  border: 2px solid #141417;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  background: var(--sun);
  color: #141417;
}

.rank-pill--kkak {
  background: #e5e7eb;
  color: #3f3f46;
}

.company-group-roast {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-2);
  font-weight: 700;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 12px;
}

.model-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 14px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 #141417;
}

.model-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.model-name {
  margin: 0;
  font-family: var(--font-fun);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
}

.model-spec {
  padding: 2px 7px;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.model-tag {
  padding: 2px 7px;
  border: 1.5px solid #141417;
  border-radius: 5px;
  background: #e0f2fe;
  color: #0c4a6e;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
}

.model-tag--hot {
  background: #fef08a;
  color: #713f12;
}

.model-comment {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.45;
  flex: 1;
}

.model-votes {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1.5px dashed rgba(120, 120, 130, 0.35);
}

.mini-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.mini-vote-btn:hover {
  background: var(--sun);
  color: #141417;
}

.mini-vote-btn.is-voted {
  background: var(--lime);
  color: #052e16;
}

.mini-vote-btn--down.is-voted {
  background: #fecaca;
  color: #7f1d1d;
}

.empty-armory {
  padding: 28px;
  text-align: center;
  font-family: var(--font-fun);
  font-size: 1rem;
  color: var(--ink-2);
}

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

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

/* Responsive */
@media (max-width: 960px) {
  .podium-stage {
    grid-template-columns: 1fr;
  }

  .podium-card--rank2,
  .podium-card--rank3 {
    margin-top: 0;
  }
}

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

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

  .masthead {
    padding: 14px;
  }

  .terminal-tag {
    display: none;
  }

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

/* ======================================================
   CHAOS MAX MODE, COMBO TOAST & EMOJI RAIN
   ====================================================== */
.subscription-action--chaos {
  background: #141417;
  color: #ffe600;
}

.subscription-action--chaos[aria-pressed="true"] {
  background: #ff3b30;
  color: #ffffff;
  animation: sirenPulse 0.6s infinite alternate;
}

@keyframes sirenPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7), 3px 3px 0 #141417; }
  100% { box-shadow: 0 0 18px 4px rgba(255, 230, 0, 0.9), 3px 3px 0 #141417; }
}

body.is-chaos::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.05) 0px,
    rgba(0, 0, 0, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
}

body.is-chaos .meme-marquee-track {
  animation-duration: 13s;
}

body.is-chaos .shrine-window-bar {
  animation: sirenBar 0.7s linear infinite alternate;
}

@keyframes sirenBar {
  0% { background: linear-gradient(90deg, #dc2626, #ea580c, #eab308); }
  100% { background: linear-gradient(90deg, #2563eb, #9333ea, #ec4899); }
}

body.is-chaos .emblem-photo-wrap {
  animation: chaosHeadbang 0.42s ease-in-out infinite alternate;
}

body.is-chaos .podium-card--rank1 {
  animation: rainbowGlow 1.5s linear infinite;
}

@keyframes chaosHeadbang {
  0% { transform: translateY(0) rotate(-7deg) scale(1); }
  100% { transform: translateY(-9px) rotate(7deg) scale(1.07); }
}

@keyframes rainbowGlow {
  0% { box-shadow: 8px 8px 0 #ff3b30, 0 0 24px rgba(255, 59, 48, 0.65); }
  33% { box-shadow: 8px 8px 0 #ffe600, 0 0 24px rgba(255, 230, 0, 0.65); }
  66% { box-shadow: 8px 8px 0 #22c55e, 0 0 24px rgba(34, 197, 94, 0.65); }
  100% { box-shadow: 8px 8px 0 #2563eb, 0 0 24px rgba(37, 99, 235, 0.65); }
}

.combo-toast {
  position: fixed;
  top: 56px;
  right: 22px;
  z-index: 100;
  padding: 10px 18px;
  background: #ffe600;
  color: #141417;
  border: 3px solid #141417;
  border-radius: 14px;
  box-shadow: 5px 5px 0 #ff3b30;
  font-family: var(--font-display);
  font-size: 1.2rem;
  transform: rotate(-3deg);
  pointer-events: none;
  animation: comboPop 0.2s ease;
}

.combo-toast.is-fever {
  background: #ff3b30;
  color: #ffffff;
  box-shadow: 6px 6px 0 #ffe600;
  font-size: 1.45rem;
}

@keyframes comboPop {
  0% { transform: scale(0.7) rotate(-8deg); }
  70% { transform: scale(1.12) rotate(-2deg); }
  100% { transform: scale(1) rotate(-3deg); }
}

.emoji-rain-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 95;
}

.emoji-drop {
  position: absolute;
  top: -40px;
  font-size: 2rem;
  user-select: none;
  animation: emojiFall var(--dur, 2.2s) linear forwards;
}

@keyframes emojiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(108vh) rotate(360deg); opacity: 0; }
}
