/* ============================================
   PIKACHU — Electric Meme Coin
   Vanilla CSS · No frameworks
   ============================================ */

:root {
  --yellow: #f7b500;
  --yellow-bright: #ffd84d;
  --yellow-deep: #ffc400;
  --yellow-soft: #ffe27a;
  --cream: #fff9e6;
  --white: #ffffff;
  --dark: #181a1f;
  --near-black: #101114;
  --red: #e53935;
  --orange-glow: #ff8a00;
  --outline: 3px solid var(--near-black);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --shadow-pop: 6px 6px 0 var(--near-black);
  --font-display: "Black Ops One", "Arial Black", Impact, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--near-black);
  background: var(--yellow);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
.btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ========== PATTERN + REVEAL ========== */

.section-pattern {
  position: relative;
  isolation: isolate;
}

.section-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 216, 77, 0.55), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(255, 138, 0, 0.18), transparent 40%),
    linear-gradient(135deg, var(--yellow) 0%, var(--yellow-deep) 45%, var(--yellow-bright) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.22) 0 6px,
      transparent 6px 18px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.12) 0 4px,
      transparent 4px 16px
    );
  background-size: auto, auto, auto, 28px 28px, 22px 22px;
  mask-image: radial-gradient(ellipse 80% 70% at 40% 40%, #000 20%, transparent 75%),
    linear-gradient(to right, transparent 0%, #000 25%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 40% 40%, #000 20%, transparent 75%),
    linear-gradient(to right, transparent 0%, #000 25%, #000 70%, transparent 100%);
  opacity: 0.95;
  animation: pattern-drift 28s linear infinite;
}

.section-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.35) 1.5px,
    transparent 1.8px
  );
  background-size: 18px 18px;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom right, transparent 15%, #000 55%, #000 100%);
  -webkit-mask-image: linear-gradient(to bottom right, transparent 15%, #000 55%, #000 100%);
}

@keyframes pattern-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 0 0, 0 0, 80px 40px, -60px 30px; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.reveal-from-top {
  transform: translateY(-40px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) !important;
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

/* ========== BUTTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: var(--outline);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--near-black);
  color: var(--yellow-bright);
  box-shadow: var(--shadow-pop);
}

.btn-primary:hover {
  background: var(--dark);
  box-shadow: 8px 8px 0 var(--near-black);
}

.btn-secondary {
  background: var(--cream);
  color: var(--near-black);
  box-shadow: 4px 4px 0 var(--near-black);
}

.btn-secondary:hover {
  background: var(--white);
}

.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
}

.btn-copy {
  background: var(--yellow);
  color: var(--near-black);
  padding: 0.55rem 0.95rem;
  font-size: 0.8rem;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.btn-copy:hover {
  background: var(--yellow-bright);
}

.btn-control {
  flex: 1;
  background: var(--near-black);
  color: var(--yellow-bright);
  min-height: 52px;
  font-size: 1rem;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.btn-control:active {
  background: var(--dark);
  transform: scale(0.98);
}

/* ========== NAVIGATION ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 181, 0, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--near-black);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.header-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.site-header.header-hide {
  transform: translateY(-110%);
}

.site-header.header-show {
  transform: translateY(0);
}

.nav {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  justify-self: start;
  grid-column: 1;
}

.nav-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--near-black);
  background: var(--yellow-bright);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.nav-ticker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  justify-self: center;
  grid-column: 2;
  margin: 0;
}

.nav-links a {
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--near-black);
  color: var(--yellow-bright);
}

.nav-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  justify-self: end;
  grid-column: 3;
}

.nav-social-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--near-black);
  border-radius: 12px;
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--near-black);
  transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease;
}

.nav-social-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.nav-social-btn[data-social="telegram"] img {
  width: 20px;
  height: 20px;
}

.nav-social-btn:hover {
  background: var(--yellow-bright);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--near-black);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  background: var(--near-black);
  border-radius: 12px;
  border: 2px solid var(--near-black);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  justify-self: end;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--yellow-bright);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ========== HERO ========== */

.hero {
  min-height: calc(100vh - var(--header-h));
  padding: 3.5rem 0 5.5rem;
  overflow-x: clip;
  overflow-y: visible;
  background: linear-gradient(160deg, #ffc400 0%, #f7b500 40%, #ffd84d 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 2px;
  transform: rotate(45deg);
  animation: float-particle linear infinite;
  box-shadow: 0 0 8px rgba(255, 216, 77, 0.8);
}

@keyframes float-particle {
  0% { transform: translateY(0) rotate(45deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-110vh) rotate(225deg); opacity: 0; }
}

.hero-shapes .shape {
  position: absolute;
  background: var(--near-black);
  opacity: 0.08;
  border-radius: 40% 60% 55% 45%;
  pointer-events: none;
  z-index: 0;
}

.shape-1 {
  width: 280px;
  height: 280px;
  top: -80px;
  left: -100px;
  animation: morph 12s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  right: -60px;
  animation: morph 15s ease-in-out infinite reverse;
}

.shape-3 {
  width: 140px;
  height: 140px;
  top: 40%;
  left: 8%;
  opacity: 0.06;
  animation: morph 10s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% { border-radius: 40% 60% 55% 45%; transform: rotate(0deg); }
  50% { border-radius: 55% 45% 40% 60%; transform: rotate(12deg); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
  text-align: left;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.pill {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--near-black);
  color: var(--yellow-bright);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  border: 2px solid var(--near-black);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.hero-line {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
  max-width: 18ch;
}

.hero-line-big {
  font-size: clamp(3rem, 7vw, 5.2rem);
  color: var(--near-black);
  text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.35);
  animation: pulse-electric 2.8s ease-in-out infinite;
  max-width: none;
  margin-bottom: 0.15rem;
}

@keyframes pulse-electric {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 10px rgba(255, 138, 0, 0.45)); }
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 34ch;
  margin: 0 0 1.75rem;
  font-weight: 500;
  opacity: 0.9;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-start;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  width: 100%;
  margin-top: 3.5rem;
  padding-bottom: 0.5rem;
}

.hero-glow {
  position: absolute;
  width: 80%;
  height: 70%;
  top: 10%;
  left: 10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 65%);
  filter: blur(20px);
  animation: glow-breathe 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.hero-frame {
  position: relative;
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-lg);
  border: 4px solid var(--near-black);
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--near-black), 0 0 40px rgba(255, 138, 0, 0.35);
  background: var(--yellow);
  animation: float-y 5s ease-in-out infinite;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-img {
  width: 100%;
  aspect-ratio: 16 / 12;
  object-fit: cover;
  object-position: center top;
}

.spark {
  position: absolute;
  font-size: 1.4rem;
  filter: drop-shadow(0 0 6px rgba(255, 216, 77, 1));
  animation: spark-pop 2.2s ease-in-out infinite;
  pointer-events: none;
}

.spark-1 { top: 12%; left: 8%; animation-delay: 0s; }
.spark-2 { top: 28%; right: 10%; animation-delay: 0.7s; }
.spark-3 { bottom: 18%; left: 18%; animation-delay: 1.3s; }

@keyframes spark-pop {
  0%, 100% { transform: scale(0.85) rotate(-8deg); opacity: 0.55; }
  50% { transform: scale(1.2) rotate(8deg); opacity: 1; }
}

.origin-signal {
  width: 100%;
  max-width: 520px;
  background: var(--cream);
  border: 3px solid var(--near-black);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: 6px 6px 0 var(--near-black);
  animation: float-y 6s ease-in-out infinite reverse;
  text-align: left;
  margin-top: 0.35rem;
}

.origin-signal-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--red);
  color: var(--white);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.55rem;
}

.origin-signal p {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.origin-signal-meta {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.65;
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  z-index: 2;
  opacity: 0.75;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--near-black);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--near-black);
  border-radius: 2px;
  animation: scroll-dot 1.6s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ========== SECTION SHARED ========== */

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.75rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 0.75rem;
  color: var(--dark);
  opacity: 0.7;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  font-weight: 500;
}

.section-header em {
  font-style: italic;
  font-weight: 700;
}

.section-header-light {
  color: var(--cream);
}

.section-header-light .section-eyebrow {
  color: var(--yellow-bright);
  opacity: 1;
}

/* ========== ABOUT ========== */

.about {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, #ffd84d 0%, #f7b500 55%, #ffc400 100%);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-card {
  position: relative;
  overflow: visible;
  isolation: isolate;
  background: var(--cream);
  border: 3px solid var(--near-black);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  box-shadow: 5px 5px 0 var(--near-black);
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease;
}

.timeline-num {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  background: var(--near-black);
  color: var(--yellow-bright);
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.timeline-card h3 {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
  transition: text-shadow 0.3s ease, filter 0.3s ease;
}

.timeline-card p {
  position: relative;
  z-index: 2;
  font-weight: 500;
  opacity: 0.85;
}

/* About cards — electric charge (locks on after first hover) */
.timeline-card-hot .bolt,
.timeline-card-hot .lightning-path,
.timeline-card-hot .electric-glow {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.timeline-card-hot .bolt {
  position: absolute;
  z-index: 3;
  font-size: 1.15rem;
  line-height: 1;
  filter: drop-shadow(0 0 5px rgba(255, 138, 0, 0.9));
}

.timeline-card-hot .bolt-tl { top: -0.45rem; left: 0.85rem; }
.timeline-card-hot .bolt-tr { top: -0.3rem; right: 0.9rem; transform: scaleX(-1); }
.timeline-card-hot .bolt-bl { bottom: -0.35rem; left: 1.1rem; transform: rotate(20deg); }
.timeline-card-hot .bolt-br { bottom: -0.3rem; right: 1rem; transform: scaleX(-1) rotate(-15deg); }

.timeline-card-hot .lightning-path {
  position: absolute;
  width: 72px;
  height: 48px;
  color: #fff;
  z-index: 2;
  filter: drop-shadow(0 0 4px #ff8a00);
}

.timeline-card-hot .lightning-path polyline {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
}

.timeline-card-hot .lightning-path-1 {
  top: 0.2rem;
  left: 0.35rem;
}

.timeline-card-hot .lightning-path-2 {
  top: 0.35rem;
  right: 0.35rem;
}

.timeline-card-hot .electric-glow {
  position: absolute;
  inset: 12%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent 70%);
  filter: blur(14px);
  z-index: 0;
}

.timeline-card-hot::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-md) + 3px);
  border: 2px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.timeline-card-hot::after {
  content: none;
}

/* Permanent charged state after first mouseover */
.timeline-card-hot.is-charged {
  transform: translateX(4px);
  background:
    radial-gradient(circle at 50% 40%, #fff6a8 0%, var(--yellow-bright) 50%, #ffc400 100%);
  border-color: #fff3a0;
  box-shadow:
    5px 5px 0 var(--near-black),
    0 0 18px rgba(255, 216, 77, 0.7),
    0 0 36px rgba(255, 138, 0, 0.35);
  animation: charge-glow 2.8s ease-in-out infinite;
}

.timeline-card-hot.is-charged::before {
  opacity: 0.85;
  box-shadow: 0 0 12px rgba(255, 216, 77, 0.55);
}

.timeline-card-hot.is-charged h3 {
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.7),
    0 0 12px rgba(255, 138, 0, 0.45);
}

.timeline-card-hot.is-charged .bolt,
.timeline-card-hot.is-charged .lightning-path,
.timeline-card-hot.is-charged .electric-glow {
  opacity: 1;
}

.timeline-card-hot.is-charged .bolt-tl,
.timeline-card-hot.is-charged .bolt-bl {
  animation: bolt-fade 1.6s ease-in-out infinite;
}

.timeline-card-hot.is-charged .bolt-tr,
.timeline-card-hot.is-charged .bolt-br {
  animation: bolt-fade 1.6s ease-in-out infinite 0.4s;
}

.timeline-card-hot.is-charged .lightning-path polyline {
  animation: lightning-draw-once 1.1s ease-out forwards;
}

.timeline-card-hot.is-charged .lightning-path-2 polyline {
  animation-delay: 0.2s;
}

.timeline-card-hot.is-charged .electric-glow {
  opacity: 0.7;
}

@keyframes charge-glow {
  0%, 100% {
    box-shadow:
      5px 5px 0 var(--near-black),
      0 0 14px rgba(255, 216, 77, 0.55),
      0 0 28px rgba(255, 138, 0, 0.28);
  }
  50% {
    box-shadow:
      5px 5px 0 var(--near-black),
      0 0 22px rgba(255, 216, 77, 0.85),
      0 0 40px rgba(255, 138, 0, 0.42);
  }
}

@keyframes bolt-fade {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes lightning-draw-once {
  0% { stroke-dashoffset: 140; opacity: 0.2; }
  70% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.85; }
}

.tweet-frame {
  background: var(--near-black);
  border: 4px solid var(--near-black);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.tweet-frame img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 8px);
  background: var(--dark);
}

.tweet-frame figcaption {
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.75rem 0.35rem 0.25rem;
  text-align: center;
}

.tweet-frame a {
  color: var(--yellow-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.disclaimer {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.75;
  line-height: 1.55;
}

/* ========== STYLE ART BANNER ========== */

.art-banner-frame {
  width: min(100%, 720px);
  margin: 0 auto;
  background: var(--near-black);
  border: 4px solid var(--near-black);
  border-radius: var(--radius-lg);
  padding: 0.65rem;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.art-banner-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 8px);
  object-fit: cover;
  object-position: center;
}

/* ========== NARRATIVE ========== */

.narrative {
  position: relative;
  padding: 5.5rem 0;
  background: var(--near-black);
  color: var(--cream);
  overflow: hidden;
}

.narrative-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
}

.narrative-bg::before,
.narrative-bg::after {
  opacity: 1;
}

.narrative .section-header h2 {
  color: var(--yellow-bright);
}

.narrative-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.meme-card {
  width: min(100%, 720px);
  background: var(--yellow);
  color: var(--near-black);
  border: 4px solid var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 0 0 3px var(--near-black), 0 0 30px rgba(247, 181, 0, 0.25);
  transition: transform 0.3s var(--ease);
}

.meme-card:hover {
  transform: scale(1.02) rotate(-0.5deg);
}

.meme-card-alt {
  background: var(--yellow-bright);
  transform: rotate(0.6deg);
}

.meme-card-alt:hover {
  transform: scale(1.02) rotate(0.6deg);
}

.meme-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

/* Middle narrative card — always-on electric (original) */
.meme-card-electric {
  position: relative;
  overflow: visible;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, #fff6a8 0%, var(--yellow-bright) 45%, #ffc400 100%);
  border-color: #fff8c8;
  box-shadow:
    0 0 0 3px var(--near-black),
    0 0 18px rgba(255, 216, 77, 0.75),
    0 0 42px rgba(255, 138, 0, 0.55),
    0 0 70px rgba(247, 181, 0, 0.35);
  animation: electric-pulse 1.8s ease-in-out infinite;
}

.meme-card-electric::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius-lg) + 4px);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.35),
    0 0 16px rgba(255, 216, 77, 0.8);
  pointer-events: none;
  z-index: 0;
  animation: border-crackle 1.2s steps(2, end) infinite;
}

.meme-card-electric::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 48%, transparent 58%);
  background-size: 220% 100%;
  animation: lightning-sweep 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: soft-light;
}

.meme-card-electric h3 {
  position: relative;
  z-index: 2;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.85),
    0 0 18px rgba(255, 138, 0, 0.65),
    2px 2px 0 rgba(0, 0, 0, 0.15);
  animation: text-zap 2s ease-in-out infinite;
}

.meme-card-electric .electric-glow {
  position: absolute;
  inset: 15%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
  animation: glow-breathe 1.6s ease-in-out infinite;
}

.meme-card-electric .bolt {
  position: absolute;
  z-index: 3;
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(255, 138, 0, 1));
  animation: bolt-spark 0.9s ease-in-out infinite;
  pointer-events: none;
}

.meme-card-electric .bolt-tl { top: -0.55rem; left: 1.1rem; animation-delay: 0s; }
.meme-card-electric .bolt-tr { top: -0.35rem; right: 1.2rem; animation-delay: 0.25s; transform: scaleX(-1); animation-name: bolt-spark-flip; }
.meme-card-electric .bolt-bl { bottom: -0.45rem; left: 1.6rem; animation-delay: 0.45s; transform: rotate(20deg); }
.meme-card-electric .bolt-br { bottom: -0.35rem; right: 1.4rem; animation-delay: 0.65s; transform: scaleX(-1) rotate(-15deg); animation-name: bolt-spark-flip; }

.meme-card-electric .lightning-path {
  position: absolute;
  width: 88px;
  height: 60px;
  color: #fff;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 0 4px #ff8a00) drop-shadow(0 0 10px #ffd84d);
  opacity: 0.85;
}

.meme-card-electric .lightning-path polyline {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: lightning-draw 1.8s ease-in-out infinite;
}

.meme-card-electric .lightning-path-1 {
  top: 0.35rem;
  left: 0.5rem;
}

.meme-card-electric .lightning-path-2 {
  top: 0.5rem;
  right: 0.5rem;
}

.meme-card-electric .lightning-path-2 polyline {
  animation-delay: 0.55s;
}

.meme-card-electric:hover {
  transform: scale(1.03) rotate(0.6deg);
  box-shadow:
    0 0 0 3px var(--near-black),
    0 0 24px rgba(255, 216, 77, 0.95),
    0 0 55px rgba(255, 138, 0, 0.7),
    0 0 90px rgba(247, 181, 0, 0.45);
}

@keyframes card-pop-in {
  0% { transform: scale(0.92) translateY(18px); }
  60% { transform: scale(1.06) translateY(-2px); }
  100% { transform: scale(1.03) translateY(0); }
}

@keyframes electric-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px var(--near-black),
      0 0 16px rgba(255, 216, 77, 0.65),
      0 0 36px rgba(255, 138, 0, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 3px var(--near-black),
      0 0 28px rgba(255, 255, 200, 0.95),
      0 0 55px rgba(255, 138, 0, 0.75),
      0 0 80px rgba(247, 181, 0, 0.45);
  }
}

@keyframes border-crackle {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.01); }
}

@keyframes lightning-sweep {
  0% { background-position: 120% 0; opacity: 0.2; }
  40% { opacity: 0.85; }
  100% { background-position: -40% 0; opacity: 0.15; }
}

@keyframes text-zap {
  0%, 100% { filter: brightness(1); }
  40% { filter: brightness(1.15); }
  45% { filter: brightness(1.45); }
  55% { filter: brightness(1.05); }
}

@keyframes bolt-spark {
  0%, 100% { opacity: 0.45; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.25) rotate(-12deg); }
}

@keyframes bolt-spark-flip {
  0%, 100% { opacity: 0.45; transform: scaleX(-1) scale(0.85); }
  50% { opacity: 1; transform: scaleX(-1) scale(1.25) rotate(8deg); }
}

@keyframes lightning-draw {
  0% { stroke-dashoffset: 120; opacity: 0.15; }
  25% { stroke-dashoffset: 0; opacity: 1; }
  55% { stroke-dashoffset: 0; opacity: 0.9; }
  100% { stroke-dashoffset: -120; opacity: 0.1; }
}

.electric-line {
  width: 4px;
  height: 42px;
  background: linear-gradient(to bottom, transparent, var(--yellow-bright), transparent);
  position: relative;
  margin: 0.15rem 0;
}

.electric-line::before,
.electric-line::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: var(--yellow-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--orange-glow);
  animation: bolt-flash 1.6s ease-in-out infinite;
}

.electric-line::before { top: -2px; }
.electric-line::after { bottom: -2px; animation-delay: 0.4s; }

@keyframes bolt-flash {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.narrative-quote {
  text-align: center;
  margin: 0 auto;
  max-width: 560px;
}

.narrative-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.quote-accent {
  color: var(--yellow-bright);
  margin-top: 0.35rem;
}

/* ========== TOKENOMICS ========== */

.tokenomics {
  padding: 5.5rem 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(247, 181, 0, 0.18), transparent 45%),
    radial-gradient(ellipse at 20% 80%, rgba(255, 138, 0, 0.12), transparent 40%),
    linear-gradient(165deg, #101114 0%, #181a1f 50%, #0c0d10 100%);
  color: var(--cream);
}

.ticker-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  border: 2px solid var(--yellow);
  border-radius: var(--radius-sm);
  color: var(--yellow-bright);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.9rem !important;
}

.tokenomics-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-bottom: 1.75rem;
}

.token-stats {
  display: grid;
  gap: 1rem;
}

.token-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(247, 181, 0, 0.45);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.token-stat:hover {
  border-color: var(--yellow-bright);
  background: rgba(247, 181, 0, 0.08);
}

.token-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--yellow);
}

.token-stat-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--cream);
  letter-spacing: 0.03em;
}

.contract-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contract-row code {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--yellow-bright);
  letter-spacing: 0.06em;
}

.copy-toast {
  min-height: 1.2em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow-bright);
}

/* DexScreener chart holder — same electric border style as the old supply ring */
.chart-holder {
  display: flex;
  align-items: stretch;
  min-height: 100%;
  border-radius: var(--radius-lg);
  padding: 14px;
  background:
    conic-gradient(
      from 0deg,
      var(--yellow) 0deg 90deg,
      var(--yellow-bright) 90deg 180deg,
      var(--orange-glow) 180deg 250deg,
      var(--yellow-deep) 250deg 320deg,
      var(--yellow) 320deg 360deg
    );
  box-shadow:
    0 0 0 4px var(--near-black),
    0 0 0 8px var(--yellow),
    0 0 40px rgba(247, 181, 0, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-decoration: none;
  color: inherit;
}

.chart-holder:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 4px var(--near-black),
    0 0 0 8px var(--yellow-bright),
    0 0 55px rgba(247, 181, 0, 0.5);
}

.chart-holder-inner {
  width: 100%;
  min-height: 280px;
  border-radius: calc(var(--radius-lg) - 6px);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(247, 181, 0, 0.12), transparent 55%),
    var(--near-black);
  border: 3px solid var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.chart-holder-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 0.35rem;
}

.chart-holder-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--yellow-bright);
  letter-spacing: 0.04em;
}

.chart-holder-sub {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.65;
}

.chart-holder-cta {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--yellow);
  color: var(--near-black);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border: 2px solid var(--near-black);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.chart-holder:hover .chart-holder-cta {
  background: var(--yellow-bright);
}

.token-note {
  text-align: center;
  font-size: 0.88rem;
  opacity: 0.7;
  max-width: 520px;
  margin: 0 auto;
}

/* ========== COMMUNITY ========== */

.community {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, #ffc400 0%, #f7b500 100%);
}

.community-cta-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem) !important;
  letter-spacing: 0.03em;
  margin-top: 0.75rem;
}

.social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 2.25rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  flex: 0 0 240px;
  width: 240px;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--cream);
  border: 3px solid var(--near-black);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.2rem;
  box-shadow: 5px 5px 0 var(--near-black);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.social-card:hover {
  transform: translateY(-6px);
  box-shadow: 7px 10px 0 var(--near-black);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.35rem;
  line-height: 1;
  font-size: 1.6rem;
}

.social-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.social-icon-dex img {
  border-radius: 8px;
}

.social-icon-bolt {
  font-size: 1.6rem;
}

.social-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.social-card span:last-child {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
}

.community-cta {
  text-align: center;
}

/* ========== GAME ========== */

.game-section {
  padding: 5.5rem 0 6rem;
  background: linear-gradient(180deg, #f7b500 0%, #ffd84d 50%, #ffc400 100%);
}

.game-shell {
  max-width: 640px;
  margin: 0 auto;
  background: var(--cream);
  border: 4px solid var(--near-black);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 10px 10px 0 var(--near-black);
}

.game-hud {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.hud-item strong {
  color: var(--red);
  font-family: var(--font-display);
}

.game-area {
  position: relative;
  height: 360px;
  border: 3px solid var(--near-black);
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.35) 0 5px,
      transparent 5px 14px
    ),
    linear-gradient(180deg, #ffd84d 0%, #f7b500 100%);
  touch-action: none;
}

.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(16, 17, 20, 0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--cream);
}

.game-overlay.hidden {
  display: none;
}

.game-overlay-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--yellow-bright);
  letter-spacing: 0.03em;
}

.game-overlay-msg {
  font-weight: 500;
  max-width: 28ch;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

/* Player uses original project logo */
.player {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 78px;
  height: 78px;
  transform: translateX(-50%);
  z-index: 3;
  will-change: left;
  pointer-events: none;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.25));
}

.player-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid var(--near-black);
  background: var(--yellow-bright);
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.spark-item {
  position: absolute;
  top: -24px;
  width: 22px;
  height: 22px;
  z-index: 2;
  color: var(--near-black);
  font-size: 1.15rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 138, 0, 0.9);
  filter: drop-shadow(0 0 4px rgba(255, 216, 77, 1));
  animation: spark-wiggle 0.4s ease-in-out infinite alternate;
  pointer-events: none;
  user-select: none;
}

@keyframes spark-wiggle {
  from { transform: rotate(-12deg) scale(1); }
  to { transform: rotate(12deg) scale(1.08); }
}

.game-controls {
  display: none;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.game-hint {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.65;
  margin-top: 0.85rem;
}

/* ========== FOOTER ========== */

.site-footer {
  background: var(--near-black);
  color: var(--cream);
  padding: 3rem 0 2rem;
  border-top: 4px solid var(--yellow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.6fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--yellow-bright);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.8;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-nav a:hover {
  color: var(--yellow-bright);
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--yellow);
  border-radius: 12px;
  font-size: 1.1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.footer-social a img[src*="x.svg"] {
  filter: invert(1);
}

.footer-social a:hover {
  background: var(--yellow);
  color: var(--near-black);
}

.footer-social a:hover img[src*="x.svg"] {
  filter: none;
}

.footer-disclaimer {
  width: min(900px, calc(100% - 2.5rem));
  margin: 0 auto;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.55;
  opacity: 0.55;
  border-top: 1px solid rgba(247, 181, 0, 0.25);
  padding-top: 1.25rem;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 980px) {
  .hero-grid,
  .about-layout,
  .tokenomics-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2rem 0 4rem;
    min-height: auto;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-inline: 0.25rem;
  }

  .hero-title {
    align-items: center;
  }

  .hero-line,
  .hero-sub {
    text-align: center;
    max-width: none;
  }

  .hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    gap: 0.55rem;
    padding: 0;
    box-sizing: border-box;
    margin-top: 0.35rem;
  }

  .hero-actions .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    margin-inline: 0;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
    padding: 0.75rem 0.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 0 var(--near-black);
  }

  .hero-actions .btn-primary:hover,
  .hero-actions .btn-secondary:hover {
    box-shadow: 0 4px 0 var(--near-black);
    transform: none;
  }

  .hero-sub {
    margin-bottom: 0.85rem;
  }

  .hero-visual {
    order: -1;
    margin-top: 0.5rem;
  }

  .hero-frame,
  .origin-signal {
    max-width: min(520px, 100%);
  }

  .origin-signal {
    text-align: center;
  }

  .about,
  .narrative,
  .tokenomics,
  .community,
  .game-section {
    overflow-x: clip;
  }

  .art-banner-frame {
    width: min(100%, 560px);
    padding: 0.5rem;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25);
  }

  .timeline-card-hot {
    overflow: hidden;
  }

  .timeline-card-hot .lightning-path,
  .timeline-card-hot .bolt {
    display: none;
  }

  .timeline-card-hot.is-charged .lightning-path,
  .timeline-card-hot.is-charged .bolt {
    display: block;
  }

  .meme-card-electric {
    overflow: hidden;
  }

  .meme-card-electric .lightning-path {
    width: 64px;
    height: 44px;
  }

  .chart-holder-inner {
    min-height: 220px;
  }

  .social-grid {
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .nav {
    grid-template-columns: 1fr auto auto;
  }

  .nav-brand {
    grid-column: 1;
  }

  .nav-social {
    grid-column: 2;
    justify-self: end;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s ease;
    z-index: 999;
    max-height: calc(100svh - var(--header-h));
    grid-column: 1 / -1;
    grid-row: 1;
    height: 0;
    min-height: 0;
    overflow: visible;
    border: none;
    background: transparent;
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
    height: auto;
    padding: 0.75rem;
    background: var(--yellow);
    border-bottom: 3px solid var(--near-black);
    overflow-y: auto;
  }

  .nav-links a {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: flex;
    grid-column: 3;
    justify-self: end;
  }

  .site-header.header-hide {
    transform: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: min(100% - 1.25rem, 1140px);
  }

  .nav {
    width: min(100% - 1rem, 1140px);
    min-height: var(--header-h);
    gap: 0.5rem;
  }

  .nav-logo {
    width: 38px;
    height: 38px;
  }

  .nav-brand-text strong {
    font-size: 1rem;
  }

  .nav-ticker {
    font-size: 0.65rem;
  }

  .hero {
    padding: 1.5rem 0 3.5rem;
  }

  .hero-line-big {
    font-size: clamp(2.4rem, 14vw, 3.4rem);
  }

  .hero-line {
    font-size: clamp(0.95rem, 4.2vw, 1.25rem);
    max-width: 22ch;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    gap: 0.5rem;
    padding: 0;
    margin-top: 0.15rem;
    box-sizing: border-box;
  }

  .hero-actions .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    margin-inline: 0;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
    padding: 0.72rem 0.4rem;
    font-size: 0.7rem;
    letter-spacing: 0.015em;
    box-shadow: 0 4px 0 var(--near-black);
  }

  .hero-actions .btn-primary:hover,
  .hero-actions .btn-secondary:hover {
    box-shadow: 0 4px 0 var(--near-black);
    transform: none;
  }

  .hero-visual {
    margin-top: 0.25rem;
    gap: 1rem;
  }

  .hero-frame {
    max-width: 100%;
    box-shadow: 6px 6px 0 var(--near-black), 0 0 24px rgba(255, 138, 0, 0.3);
  }

  .origin-signal {
    max-width: 100%;
    padding: 0.85rem 1rem;
  }

  .origin-signal p {
    font-size: 0.95rem;
  }

  .section-header {
    margin-bottom: 1.75rem;
  }

  .section-header h2 {
    font-size: clamp(1.45rem, 7vw, 2.1rem);
  }

  .about,
  .narrative,
  .tokenomics,
  .community,
  .game-section {
    padding: 3.25rem 0;
  }

  .art-banner-frame {
    width: min(100%, 100%);
    max-width: 420px;
  }

  .about-layout {
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .timeline {
    gap: 0.75rem;
  }

  .timeline-card {
    padding: 1rem 1.1rem;
  }

  .timeline-card h3 {
    font-size: 1.15rem;
  }

  .timeline-card p {
    font-size: 0.9rem;
  }

  .timeline-card-hot .bolt,
  .timeline-card-hot .lightning-path {
    display: none !important;
  }

  .tweet-frame {
    padding: 0.5rem;
  }

  .disclaimer {
    font-size: 0.75rem;
    padding-inline: 0.25rem;
  }

  .meme-card {
    padding: 1.25rem 1rem;
    width: 100%;
  }

  .meme-card h3 {
    font-size: clamp(1.25rem, 6.5vw, 1.85rem);
  }

  .meme-card-electric .bolt,
  .meme-card-electric .lightning-path {
    display: none;
  }

  .electric-line {
    height: 28px;
  }

  .tokenomics-grid {
    gap: 1.25rem;
  }

  .token-stat {
    padding: 0.95rem 1rem;
  }

  .token-stat-value {
    font-size: 1.2rem;
  }

  .contract-row {
    gap: 0.5rem;
  }

  .contract-row code {
    font-size: 0.92rem;
    word-break: break-all;
  }

  .chart-holder {
    padding: 10px;
  }

  .chart-holder-inner {
    min-height: 200px;
    padding: 1.5rem 1rem;
  }

  .social-grid {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .social-card {
    width: min(280px, 100%);
    flex-basis: auto;
    padding: 1.1rem 1rem;
  }

  .game-shell {
    padding: 0.9rem;
  }

  .game-hud {
    font-size: 0.78rem;
    gap: 0.4rem;
  }

  .game-area {
    height: 280px;
  }

  .player {
    width: 64px;
    height: 64px;
    bottom: 8px;
  }

  .game-controls {
    display: flex;
  }

  .btn-control {
    min-height: 56px;
    font-size: 0.95rem;
  }

  .game-hint {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  .footer-nav {
    gap: 0.5rem 0.85rem;
  }

  .footer-disclaimer {
    font-size: 0.72rem;
    width: min(100% - 1.25rem, 900px);
  }
}

@media (max-width: 400px) {
  .hero-line-big {
    font-size: 2.2rem;
  }

  .pill {
    font-size: 0.68rem;
    padding: 0.4rem 0.75rem;
  }

  .btn {
    padding: 0.8rem 1.1rem;
    font-size: 0.85rem;
  }

  .hero-actions .btn {
    width: auto;
    font-size: 0.65rem;
    padding: 0.68rem 0.35rem;
    box-shadow: 0 3px 0 var(--near-black);
  }
}

/* ========== REDUCED MOTION ========== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .section-pattern::before {
    animation: none;
  }

  .site-header.header-hide,
  .site-header.header-show {
    transform: none;
  }

  .meme-card-electric,
  .meme-card-electric::before,
  .meme-card-electric::after,
  .meme-card-electric h3,
  .meme-card-electric .bolt,
  .meme-card-electric .lightning-path polyline,
  .meme-card-electric .electric-glow,
  .timeline-card-hot.is-charged,
  .timeline-card-hot.is-charged .bolt-tl,
  .timeline-card-hot.is-charged .bolt-tr,
  .timeline-card-hot.is-charged .bolt-bl,
  .timeline-card-hot.is-charged .bolt-br,
  .timeline-card-hot.is-charged .lightning-path polyline {
    animation: none !important;
  }

  .timeline-card-hot.is-charged .bolt,
  .timeline-card-hot.is-charged .lightning-path,
  .timeline-card-hot.is-charged .electric-glow,
  .timeline-card-hot.is-charged::before {
    opacity: 1 !important;
  }

  .timeline-card-hot.is-charged .lightning-path polyline {
    stroke-dashoffset: 0 !important;
  }
}
