:root {
  --bg-1: #fffaf0;
  --bg-2: #fff4d3;
  --bg-3: #ffe9a6;
  --accent-ice: #ffd447;
  --accent-fire: #ffc107;
  --accent-uv: #ffb347;
  --text-main: #2d2412;
  --text-muted: #6a5b3a;
  --panel: #fff9e6;
  --glass: rgba(255, 255, 255, 0.8);
  --border: rgba(215, 176, 90, 0.35);
  --bubble: #fffdf5;
  --shadow: 0 20px 60px rgba(255, 208, 86, 0.25);
  --radius: 18px;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;
  --font-title: "Bangers", "Space Grotesk", sans-serif;
  --font-spooky: "Creepster", "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: #5d0202;
  background:
    radial-gradient(circle at 32% 38%, #000000, transparent 38%),
    radial-gradient(circle at 70% 62%, rgba(255, 214, 102, 0.3), #fff3e5 32%);
  overflow-x: hidden;
}

.page {
  max-width: 1200px;
  padding: 48px 20px 64px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.token-banner {
  position: relative;
  border: 1px solid rgba(215, 176, 90, 0.7);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(255, 200, 98, 0.28);
  margin-bottom: 28px;
  background: #fffdf5;
}

.token-video-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.token-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.token-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 233, 166, 0.6),
    rgba(255, 214, 102, 0.55)
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}

.token-copy {
  padding: 14px 18px 18px;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(215, 176, 90, 0.55);
}

.token-title {
  margin: 4px 0 6px;
  font-family: var(--font-title);
  letter-spacing: 0.08em;
  font-size: 32px;
  color: #2d2412;
}

.token-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.contract-hash {
  margin: 10px 0 0;
  font-family: "Space Grotesk", monospace;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #2d2412;
}

.skyline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 32% 38%,
      rgba(255, 223, 128, 0.4),
      transparent 38%
    ),
    radial-gradient(
      circle at 70% 62%,
      rgba(255, 214, 102, 0.3),
      transparent 32%
    );
  overflow: hidden;
  z-index: 0;
}

.star {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffdf7c;
  border-radius: 50%;
  filter: blur(1px);
  animation: twinkle 5s infinite ease-in-out;
}

.star-one {
  top: 12%;
  left: 18%;
  animation-delay: 0.2s;
}

.star-two {
  top: 8%;
  left: 68%;
  width: 8px;
  height: 8px;
  animation-delay: 1.1s;
}

.star-three {
  top: 24%;
  left: 44%;
  width: 5px;
  height: 5px;
  animation-delay: 2s;
}

.snow {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #ffe8a3, transparent),
    radial-gradient(2px 2px at 100px 80px, #ffe08c, transparent),
    radial-gradient(3px 3px at 200px 10px, #ffcf70, transparent),
    radial-gradient(2px 2px at 10px 120px, #ffeec2, transparent);
  background-size: 220px 180px;
  opacity: 0.5;
  animation: drift 18s linear infinite;
}

.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero-eyebrow {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a67c00;
  font-size: 12px;
  margin: 0 0 10px;
  animation: hero-glow 2s ease-in-out infinite alternate;
}

.hero-title {
  margin: 0;
  font-family: var(--font-title);
  letter-spacing: 0.04em;
  font-size: clamp(40px, 6vw, 66px);
  color: #2d2412;
  text-shadow:
    0 6px 18px rgba(255, 195, 64, 0.35),
    0 0 14px rgba(255, 217, 102, 0.35);
  animation: hero-glow-strong 2.2s ease-in-out infinite alternate;
}

.hero-subtitle {
  margin: 12px auto 24px;
  max-width: 720px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.6;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  animation:
    subtitle-breathe 3.6s ease-in-out infinite,
    subtitle-flash 1.2s ease-in-out infinite alternate;
}

.feature-video {
  position: relative;
  background: transparent;
  border: 1px solid rgba(215, 176, 90, 0.35);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.15);
  margin: 20px 0 30px;
}

.feature-video::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  border: 2px dashed rgba(215, 176, 90, 0.35);
  pointer-events: none;
  opacity: 0.6;
}

.feature-video h2 {
  margin: 4px 0 10px;
  font-family: var(--font-title);
  letter-spacing: 0.02em;
  color: #2d2412;
}

.video-lede {
  margin: 0 0 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.video-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(215, 176, 90, 0.85);
  background: linear-gradient(135deg, #fff7d6, #ffe9a6);
  box-shadow:
    0 18px 42px rgba(255, 200, 98, 0.32),
    inset 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.video-frame::before {
  content: "🍌 🍌 🍌";
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 18px;
  filter: drop-shadow(0 6px 10px rgba(255, 200, 98, 0.45));
  z-index: 3;
}

.swap-panel {
  background:
    radial-gradient(
      circle at 14% 24%,
      rgba(255, 223, 140, 0.3),
      transparent 40%
    ),
    radial-gradient(
      circle at 82% 8%,
      rgba(255, 204, 102, 0.25),
      transparent 36%
    ),
    linear-gradient(135deg, #fff4c7, #ffe7a3);
  border: 1px solid rgba(215, 176, 90, 0.7);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 44px rgba(255, 200, 98, 0.3);
  margin: 16px 0 26px;
  position: relative;
  overflow: hidden;
}

.swap-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed rgba(215, 176, 90, 0.5);
  border-radius: 14px;
  pointer-events: none;
}

.swap-lede {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.swap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 10px 0 14px;
}

.swap-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.swap-field select,
.swap-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(215, 176, 90, 0.65);
  background: rgba(255, 249, 230, 0.9);
  color: #2d2412;
  font-size: 15px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.06);
}

.swap-field input::-webkit-inner-spin-button,
.swap-field input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.swap-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
  text-decoration: none;
}

.swap-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.swap-embed {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(215, 176, 90, 0.65);
  box-shadow: 0 16px 38px rgba(255, 200, 98, 0.24);
  background: #0f0c07;
  min-height: 560px;
}

.swap-embed iframe {
  width: 100%;
  height: 560px;
  border: none;
  display: block;
}

.banana-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.banana-rain-global {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.banana {
  position: absolute;
  font-size: 24px;
  opacity: 0.85;
  animation: banana-fall 6s linear infinite;
  filter: drop-shadow(0 4px 6px rgba(255, 200, 98, 0.4));
}

.banana.b1 {
  left: 14%;
  animation-duration: 7s;
  animation-delay: 0s;
}

.banana.b2 {
  left: 42%;
  animation-duration: 6s;
  animation-delay: 1.2s;
}

.banana.b3 {
  left: 68%;
  animation-duration: 7.5s;
  animation-delay: 2.1s;
}

.banana.b4 {
  left: 82%;
  animation-duration: 5.8s;
  animation-delay: 0.9s;
}

.banana.g1 {
  left: 8%;
  animation-duration: 6.5s;
  animation-delay: 0s;
  font-size: 26px;
}
.banana.g2 {
  left: 24%;
  animation-duration: 7.2s;
  animation-delay: 0.8s;
  font-size: 28px;
}
.banana.g3 {
  left: 41%;
  animation-duration: 6.8s;
  animation-delay: 1.4s;
  font-size: 24px;
}
.banana.g4 {
  left: 58%;
  animation-duration: 7.6s;
  animation-delay: 0.6s;
  font-size: 30px;
}
.banana.g5 {
  left: 73%;
  animation-duration: 6.2s;
  animation-delay: 1.9s;
  font-size: 26px;
}
.banana.g6 {
  left: 88%;
  animation-duration: 7.8s;
  animation-delay: 1.1s;
  font-size: 29px;
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  background: #fffdf5;
}

.feature-player {
  max-height: 240px;
  object-fit: cover;
  pointer-events: none;
}

.video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, #ffe57f, #ffb347);
  color: #2d2412;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(215, 176, 90, 0.8);
  box-shadow: 0 8px 18px rgba(255, 200, 98, 0.32);
}

.video-caption {
  margin: 12px 2px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  cursor: pointer;
  border: 1px solid rgba(215, 176, 90, 0.65);
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #2d2412;
  background: rgba(255, 255, 255, 0.9);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.btn.primary {
  background: linear-gradient(120deg, #ffe57f, #ffd447);
  color: #2d2412;
  border-color: rgba(215, 176, 90, 0.75);
  box-shadow: 0 14px 30px rgba(255, 212, 71, 0.35);
}

.btn.secondary {
  background: linear-gradient(120deg, #ffd447, #ffb347);
  color: #2d2412;
  border-color: rgba(215, 176, 90, 0.75);
  box-shadow: 0 14px 30px rgba(255, 179, 71, 0.35);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(215, 176, 90, 0.5);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 176, 90, 0.9);
}

.studio {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

.real-gallery {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(215, 176, 90, 0.6);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 14px 34px rgba(255, 200, 98, 0.22);
  margin: 14px 0 24px;
}

.gallery-header h3 {
  margin: 4px 0 8px;
  font-family: var(--font-title);
  color: #2d2412;
}

.gallery-lede {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.real-card {
  margin: 0;
  background: rgba(255, 249, 230, 0.9);
  border: 1px solid rgba(215, 176, 90, 0.55);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 10px 22px rgba(255, 200, 98, 0.22);
}

.real-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid rgba(215, 176, 90, 0.6);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.real-card img:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 24px rgba(255, 179, 71, 0.32);
  border-color: rgba(255, 179, 71, 0.85);
}

.real-card figcaption {
  margin: 6px 2px 2px;
  color: #2d2412;
  font-weight: 600;
  font-size: 13px;
}

.comic-panel {
  position: relative;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(215, 176, 90, 0.45);
  box-shadow: 0 20px 60px rgba(255, 210, 90, 0.28);
  min-height: 520px;
}

.comic-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 212, 71, 0.08) 1px,
    transparent 1px
  );
  background-size: 18px 18px;
  opacity: 0.55;
  pointer-events: none;
}

.comic-panel img,
.comic-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.1);
}

.panel-glow {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.5;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 223, 128, 0.35),
      transparent 40%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 200, 98, 0.25),
      transparent 44%
    );
  pointer-events: none;
}

.speech-bubble {
  position: absolute;
  max-width: 68%;
  background: rgba(255, 255, 255, 0.9);
  color: #2d2412;
  font-family: var(--font-title);
  letter-spacing: 0.02em;
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px solid rgba(215, 176, 90, 0.55);
  text-shadow: 0 2px 10px rgba(255, 212, 71, 0.25);
  box-shadow: 0 8px 18px rgba(255, 200, 98, 0.35);
  transition: transform 180ms ease;
}

.blink-rg {
  animation: blink-rg 1s infinite alternate;
}

.bubble-top {
  top: 32px;
  left: 32px;
}

.bubble-bottom {
  bottom: 46px;
  right: 28px;
}

.panel-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 212, 71, 0.9);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #2d2412;
  border: 1px solid rgba(215, 176, 90, 0.8);
  text-transform: uppercase;
  font-size: 12px;
}

.control-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(215, 176, 90, 0.6);
  border-radius: var(--radius);
  padding: 20px 20px 10px;
  box-shadow: 0 16px 36px rgba(255, 210, 90, 0.25);
  backdrop-filter: blur(8px);
}

.control-card,
.control-card * {
  cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext y='24' font-size='24'%3E%F0%9F%8D%8C%3C/text%3E%3C/svg%3E")
      4 20,
    pointer;
}

.control-card h2 {
  margin: 4px 0 16px;
  font-family: var(--font-title);
  letter-spacing: 0.02em;
}

label {
  display: block;
  margin: 12px 0 6px;
  font-size: 14px;
  color: var(--text-muted);
}

input[type="text"],
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(215, 176, 90, 0.55);
  background: rgba(255, 249, 230, 0.8);
  color: #2d2412;
  font-size: 15px;
  font-family: var(--font-body);
}

input[type="text"]::placeholder {
  color: rgba(106, 91, 58, 0.55);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-ice);
}

.control-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-actions {
  display: flex;
  gap: 10px;
  margin: 16px 0 4px;
  flex-wrap: wrap;
}

.legend {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(120deg, #ffe57f, #ffb347);
  box-shadow: 0 0 8px rgba(255, 212, 71, 0.45);
}

.insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.insight-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(215, 176, 90, 0.6);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 14px 34px rgba(255, 210, 90, 0.22);
}

.insight-card.tv-card {
  padding: 0;
  background: linear-gradient(160deg, #2b1b0f, #3c2512);
  border: 2px solid #1a120a;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px rgba(255, 217, 134, 0.18);
  position: relative;
}

.tv-chrome {
  position: relative;
  padding: 16px 14px 12px;
  background: linear-gradient(145deg, #4b3420, #2f1f12);
  border-radius: 16px;
  box-shadow:
    inset 0 2px 0 rgba(255, 230, 170, 0.4),
    inset 0 -2px 8px rgba(0, 0, 0, 0.35);
}

.tv-antennas {
  position: absolute;
  top: -24px;
  left: 22px;
  width: 70px;
  height: 32px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.tv-antennas span {
  width: 2px;
  height: 32px;
  background: linear-gradient(#f7e6c1, #d6b073);
  transform-origin: bottom;
}

.tv-antennas span:first-child {
  transform: rotate(-14deg);
}

.tv-antennas span:last-child {
  transform: rotate(12deg);
}

.tv-frame {
  border: 3px solid #1a120a;
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 215, 155, 0.1),
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 60%,
      rgba(255, 215, 155, 0.08),
      transparent 50%
    ),
    #0e0b07;
  padding: 10px;
}

.tv-screen {
  position: relative;
  border-radius: 10px;
  padding: 14px;
  background: linear-gradient(180deg, #0f151c, #0a0e12 60%, #0f151c);
  border: 2px solid #121820;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 12px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.tv-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.06) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: screen;
  opacity: 0.22;
  pointer-events: none;
}

.tv-screen h3 {
  color: #f8e7be;
}

.tv-screen .chip-group {
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tv-screen .social-grid {
  margin-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.tv-screen .social-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 214, 102, 0.25);
  color: #f8e7be;
}

.tv-screen .social-handle {
  color: #ffe17b;
}

.tv-scan {
  width: 100%;
  border-radius: 10px;
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.35),
    inset 0 0 12px rgba(10, 18, 28, 0.7);
  position: relative;
}

.tv-scan::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 100%
  );
  mix-blend-mode: screen;
  animation: tv-glow 4s ease-in-out infinite;
  pointer-events: none;
}

.tv-dials {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 8px;
  align-items: center;
}

.tv-dials .dial {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, #f7e7c3 0%, #c99a44 60%, #4f2c15 100%);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.25);
}

.tv-dials .dial.big {
  width: 34px;
  height: 34px;
}

.tv-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 8px rgba(255, 59, 59, 0.65);
}

.insight-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-title);
  letter-spacing: 0.02em;
}

.insight-card.history {
  position: relative;
  overflow: hidden;
  color: #2d2412;
  background: url("CopitoDeNieveGorilaAlbinoZooBarcelona.jpg") center/cover;
}

.insight-card.history::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.9) 42%,
    rgba(255, 255, 255, 0.94) 100%
  );
  pointer-events: none;
}

.insight-card.history * {
  position: relative;
  z-index: 1;
}

.chronicle {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin: 18px 0 6px;
}

.chronicle-card {
  position: relative;
  background: linear-gradient(135deg, #f7e7c3, #f3d9a4);
  border: 1px solid rgba(140, 96, 32, 0.35);
  border-radius: 16px;
  padding: 18px;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.18),
    inset 0 0 0 2px rgba(255, 248, 230, 0.8);
  overflow: hidden;
}

.chronicle-card.book {
  background: linear-gradient(135deg, #f7e7c3, #f1d097);
  border: 1px solid rgba(115, 78, 22, 0.4);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.2),
    inset 0 0 0 2px rgba(255, 248, 230, 0.9);
}

.chronicle-card::before,
.chronicle-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  pointer-events: none;
}

.chronicle-card::before {
  border: 2px dashed rgba(140, 96, 32, 0.4);
  opacity: 0.7;
}

.chronicle-card::after {
  background: linear-gradient(
    180deg,
    rgba(255, 244, 214, 0.65) 0%,
    rgba(255, 239, 200, 0.4) 100%
  );
  mix-blend-mode: multiply;
  opacity: 0.8;
}

.chronicle-card.book::after {
  background: linear-gradient(
    180deg,
    rgba(255, 244, 214, 0.82) 0%,
    rgba(255, 233, 186, 0.55) 100%
  );
}

.chronicle-card * {
  position: relative;
  z-index: 1;
}

.book-header h3 {
  margin-bottom: 6px;
}

.book-lede {
  margin: 6px 0 10px;
  color: #4a3b1c;
  line-height: 1.55;
}

.book-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  padding: 12px;
  margin: 10px 0 12px;
  border: 1px solid rgba(115, 78, 22, 0.3);
  border-radius: 12px;
  background: rgba(255, 250, 236, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.meta-label {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a6422;
}

.meta-value {
  margin: 0;
  color: #2d2412;
  font-weight: 600;
}

.book-body {
  display: grid;
  gap: 14px;
  margin: 8px 0 12px;
  position: relative;
  overflow: hidden;
}

.book-body::before {
  content: "🔍";
  position: absolute;
  top: 6px;
  left: -120px;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  font-size: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 50%, transparent 70%),
    radial-gradient(
      circle at 55% 45%,
      rgba(255, 233, 186, 0.7),
      transparent 70%
    );
  border: 2px solid rgba(115, 78, 22, 0.45);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    inset 0 0 0 4px rgba(255, 250, 236, 0.55);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
  mix-blend-mode: screen;
  opacity: 0.88;
  animation: book-scan 12s linear infinite;
  pointer-events: none;
}

.book-chapter h4 {
  margin: 0 0 6px;
  font-family: var(--font-title);
  letter-spacing: 0.02em;
  color: #2d2412;
}

.book-chapter p {
  margin: 0 0 8px;
  color: #4a3b1c;
  line-height: 1.6;
}

.book-chapter p::after {
  content: "";
  display: block;
  clear: both;
}

@keyframes book-scan {
  0% {
    transform: translateX(0) rotate(-6deg);
  }
  50% {
    transform: translateX(110%) rotate(6deg);
  }
  100% {
    transform: translateX(220%) rotate(-4deg);
  }
}

@keyframes tv-glow {
  0% {
    opacity: 0.18;
    transform: translateY(-6px);
  }
  50% {
    opacity: 0.35;
    transform: translateY(0);
  }
  100% {
    opacity: 0.18;
    transform: translateY(-6px);
  }
}

.dropcap {
  float: left;
  font-family: var(--font-title);
  font-size: 42px;
  line-height: 1;
  padding-right: 6px;
  color: #8a6422;
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.book-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(115, 78, 22, 0.35);
}

.book-note {
  margin: 0 0 10px;
  color: #6a5b3a;
  font-size: 14px;
  font-style: italic;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(215, 176, 90, 0.55);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 16px 40px rgba(255, 210, 90, 0.25);
  backdrop-filter: blur(6px);
}

.chronicle-card h3,
.timeline-card h3 {
  margin: 4px 0 10px;
  font-family: var(--font-title);
}

.chronicle-card p {
  margin: 6px 0 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.fact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.fact-list li {
  background: linear-gradient(
    120deg,
    rgba(255, 231, 132, 0.35),
    rgba(255, 212, 98, 0.22)
  );
  border: 1px solid rgba(215, 176, 90, 0.55);
  border-radius: 12px;
  padding: 12px;
  color: #2d2412;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.fact-list li:hover {
  border-color: rgba(255, 179, 71, 0.75);
  transform: translateY(-2px);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 10px;
}

.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 246, 224, 0.8);
  border: 1px solid rgba(215, 176, 90, 0.5);
  color: #2d2412;
}

.timeline span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, #ffe57f, #ffc107);
  color: #2d2412;
  font-weight: 700;
  text-align: center;
  min-width: 74px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.social-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #2d2412;
  background: linear-gradient(120deg, #fff4bf, #ffe57f);
  border: 1px solid rgba(215, 176, 90, 0.55);
  box-shadow: 0 12px 24px rgba(255, 200, 98, 0.2);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.social-card.tiktok-card {
  color: #000000;
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.social-card.x-card {
  color: #ffffff;
  background: #000000;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 200, 98, 0.28);
  border-color: rgba(255, 179, 71, 0.8);
}

.social-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

.social-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.social-icon.tiktok path {
  fill: currentColor;
}

.social-icon.x path {
  fill: currentColor;
}

.tv-screen .social-card.tiktok-card {
  color: #000000;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.tv-screen .social-card.x-card {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.social-handle {
  color: var(--text-muted);
  font-size: 14px;
}

.mini-loop {
  width: 100%;
  height: 200px;
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(215, 176, 90, 0.6);
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(255, 200, 98, 0.22);
  background: #fffdf5;
  pointer-events: none;
}

.chip {
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  color: #2d2412;
  cursor: pointer;
  border: 1px solid transparent;
  background: linear-gradient(120deg, #fff1a8, #ffd447);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(255, 200, 98, 0.35);
}

#phraseHistory {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

#phraseHistory li {
  background: rgba(255, 248, 228, 0.8);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(215, 176, 90, 0.55);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

#phraseHistory li:hover {
  border-color: rgba(255, 179, 71, 0.75);
  transform: translateY(-2px);
}

.retro-tv {
  margin-top: 14px;
}

.tv-bezel {
  position: relative;
  background: linear-gradient(135deg, #2b1f0d, #3a2a12);
  border: 6px solid #1d1408;
  border-radius: 16px;
  padding: 10px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 210, 90, 0.25),
    0 12px 28px rgba(0, 0, 0, 0.25);
}

.tv-screen {
  position: relative;
  background: radial-gradient(circle at 50% 38%, #fffdf5, #ffe5a0 62%);
  border: 3px solid #0f0c07;
  border-radius: 12px;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d2412;
  text-align: center;
  padding: 14px;
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.45),
    inset 0 0 3px rgba(255, 255, 255, 0.45);
}

.tv-screen .tv-chart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  filter: saturate(1.1) contrast(1.05) brightness(0.95);
}

.tv-overlay-link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffe17b;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 225, 123, 0.4);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.tv-overlay-link:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 225, 123, 0.7);
}

.tv-copy {
  margin: 0;
  font-family: var(--font-title);
  letter-spacing: 0.08em;
  font-size: 18px;
}

.tv-knobs {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fef3c5, #b37c1b 70%);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.35);
}

.led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 6px rgba(255, 59, 48, 0.8);
}

.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.04),
    rgba(0, 0, 0, 0.04) 2px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  animation: scan 4s linear infinite;
}

@keyframes scan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 8px;
}

.calendar-cell {
  background: rgba(255, 248, 228, 0.9);
  border: 1px solid rgba(215, 176, 90, 0.55);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(255, 200, 98, 0.18);
}

.calendar-date {
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #2d2412;
}

.calendar-note {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 12px 16px;
  background: rgba(45, 36, 18, 0.9);
  color: #ffe9a6;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(45, 36, 18, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.legal-footer {
  margin: 24px auto 32px;
  padding: 12px 16px;
  max-width: 1200px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  text-align: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

@keyframes hero-glow {
  0% {
    color: #a67c00;
    text-shadow:
      0 0 6px rgba(255, 212, 71, 0.4),
      0 0 12px rgba(255, 189, 57, 0.25);
  }
  100% {
    color: #ffb347;
    text-shadow:
      0 0 10px rgba(255, 227, 112, 0.9),
      0 0 18px rgba(255, 195, 64, 0.55);
  }
}

@keyframes hero-glow-strong {
  0% {
    color: #2d2412;
    text-shadow:
      0 6px 18px rgba(255, 195, 64, 0.35),
      0 0 14px rgba(255, 217, 102, 0.35);
  }
  100% {
    color: #ffb347;
    text-shadow:
      0 8px 22px rgba(255, 210, 90, 0.65),
      0 0 20px rgba(255, 233, 150, 0.85);
  }
}

@keyframes subtitle-breathe {
  0% {
    opacity: 0.92;
    transform: translateY(0);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  }
  100% {
    opacity: 0.92;
    transform: translateY(0);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  }
}

@keyframes subtitle-flash {
  0% {
    color: #ffffff;
  }
  100% {
    color: #000000;
  }
}

/* Atmosphere tones */
.comic-panel[data-tone="icy"] img {
  filter: saturate(1.05) hue-rotate(-6deg) brightness(1.02);
}

.comic-panel[data-tone="icy"] .panel-glow {
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 223, 128, 0.35),
      transparent 40%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 199, 94, 0.22),
      transparent 45%
    );
}

.comic-panel[data-tone="ember"] img {
  filter: saturate(1.08) hue-rotate(8deg) brightness(1.03);
}

.comic-panel[data-tone="ember"] .panel-glow {
  background:
    radial-gradient(
      circle at 25% 25%,
      rgba(255, 214, 102, 0.4),
      transparent 40%
    ),
    radial-gradient(
      circle at 75% 70%,
      rgba(255, 191, 94, 0.26),
      transparent 50%
    );
}

.comic-panel[data-tone="ultraviolet"] img {
  filter: saturate(1.08) hue-rotate(22deg) contrast(1.04);
}

.comic-panel[data-tone="ultraviolet"] .panel-glow {
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 214, 102, 0.32),
      transparent 40%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 191, 94, 0.24),
      transparent 45%
    );
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes drift {
  from {
    transform: translateY(-10px);
  }
  to {
    transform: translateY(40px);
  }
}

@keyframes blink-rg {
  0% {
    color: #ff2b2b;
    text-shadow: 0 0 12px rgba(255, 43, 43, 0.45);
  }
  100% {
    color: #1bcf5a;
    text-shadow: 0 0 12px rgba(27, 207, 90, 0.45);
  }
}

@keyframes banana-fall {
  0% {
    transform: translateY(-30px) rotate(-8deg) scale(1);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(140%) rotate(12deg) scale(1.05);
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .studio {
    grid-template-columns: 1fr;
  }

  .chronicle {
    grid-template-columns: 1fr;
  }

  .comic-panel {
    min-height: 480px;
  }

  .bubble-top,
  .bubble-bottom {
    max-width: 82%;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 36px 16px 54px;
  }

  .hero-title {
    font-size: 38px;
  }

  .speech-bubble {
    font-size: 18px;
  }
}
