/* ============================================
   Red Hood Pepe — Black & Red Luxury Theme
   ============================================ */

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

:root {
  --bg: #050505;
  --bg-soft: #0c0c0c;
  --red: #e11d2e;
  --red-bright: #ff2a3c;
  --red-dim: #8b0000;
  --gold: #f5c542;
  --text: #e8e0d8;
  --text-muted: #9a8f85;
  --glass: rgba(255, 30, 50, 0.06);
  --border: rgba(225, 29, 46, 0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cormorant Garamond", Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(225, 29, 46, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 0, 0, 0.12), transparent);
}

/* ---------- Sound Control (top-right) ---------- */
.sound-control {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.75rem 0.4rem 0.55rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sound-control:hover {
  border-color: rgba(225, 29, 46, 0.55);
  box-shadow: 0 0 20px rgba(225, 29, 46, 0.25);
}

#sound-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.15rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

#sound-toggle:hover {
  color: var(--red-bright);
  transform: scale(1.12);
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 72px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(225, 29, 46, 0.7);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(225, 29, 46, 0.7);
  cursor: pointer;
}

/* ---------- Header ---------- */
.header {
  text-align: center;
  padding: 4.5rem 1.5rem 2.5rem;
  position: relative;
}

.title {
  margin: 0 0 1.1rem;
  line-height: 1.05;
}

.title-text {
  display: inline-block;
  font-family: "Cinzel", serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 9vw, 5.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;

  /* Glass + fire gradient */
  background: linear-gradient(
    105deg,
    #ff1a1a 0%,
    #ff4d4d 18%,
    #ffcc33 38%,
    #ff1a1a 55%,
    #ff3333 75%,
    #ffaa00 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* Fire glow + glass depth */
  filter:
    drop-shadow(0 0 6px rgba(255, 40, 40, 0.55))
    drop-shadow(0 0 18px rgba(255, 20, 20, 0.35))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));

  animation: fireFlow 5.5s linear infinite, firePulse 2.8s ease-in-out infinite alternate;
}

@keyframes fireFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}

@keyframes firePulse {
  0%   { filter: drop-shadow(0 0 6px rgba(255, 40, 40, 0.55)) drop-shadow(0 0 16px rgba(255, 20, 20, 0.3)); }
  100% { filter: drop-shadow(0 0 10px rgba(255, 60, 40, 0.75)) drop-shadow(0 0 28px rgba(255, 30, 20, 0.5)); }
}

.opensea-link {
  display: inline-block;
  font-family: "Cinzel", serif;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.3s ease;
}

.opensea-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  transform: scaleX(0.4);
  transition: transform 0.4s ease;
}

.opensea-link:hover {
  color: var(--red-bright);
}

.opensea-link:hover::after {
  transform: scaleX(1);
}

/* ---------- Hero ---------- */
.hero-section {
  padding: 0 1.25rem 3.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(225, 29, 46, 0.08),
    0 25px 60px -15px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(225, 29, 46, 0.18);
  aspect-ratio: 1672 / 941;
  background: #111;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  animation: heroZoom 14s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.085); }
}

/* ---------- Stats ---------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.75rem;
  padding: 0 1.5rem 4rem;
  max-width: 960px;
  margin: 0 auto;
}

.stat {
  text-align: center;
  min-width: 90px;
}

.stat-label {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.stat-value {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--red-bright);
  letter-spacing: 0.04em;
}

/* ---------- Lore ---------- */
.lore {
  max-width: 720px;
  margin: 0 auto 4.5rem;
  padding: 0 1.5rem;
}

.lore-title {
  font-family: "MedievalSharp", cursive;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  text-align: center;
  color: var(--red);
  margin-bottom: 2rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(225, 29, 46, 0.4);
}

.lore-text {
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
  line-height: 1.75;
  color: var(--text);
}

.lore-text p {
  margin-bottom: 1.35rem;
}

.lore-text strong {
  color: var(--red-bright);
  font-weight: 600;
}

.dialogue {
  font-style: italic;
  color: var(--gold);
  padding-left: 1.25rem;
  border-left: 2px solid var(--red-dim);
  margin: 1.6rem 0;
}

.ending {
  font-family: "MedievalSharp", cursive;
  font-size: 1.25em;
  text-align: center;
  color: var(--red-bright);
  margin-top: 2rem;
  letter-spacing: 0.03em;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 5rem;
  padding: 0 1.25rem;
}

.gif-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0a0a0a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.45s ease,
              border-color 0.3s ease;
  aspect-ratio: 1;
}

.gif-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(225, 29, 46, 0.55);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(225, 29, 46, 0.25);
}

.gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gif-card:hover .gif {
  transform: scale(1.06);
}

/* subtle float on the cards themselves */
.gif-card:nth-child(1) { animation: floatA 7s ease-in-out infinite; }
.gif-card:nth-child(2) { animation: floatB 8.5s ease-in-out infinite; }
.gif-card:nth-child(3) { animation: floatA 9s ease-in-out infinite reverse; }

@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
  border-top: 1px solid rgba(225, 29, 46, 0.15);
  background: linear-gradient(to top, rgba(20, 0, 0, 0.4), transparent);
}

.disclaimer {
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.footer-links {
  margin-bottom: 1.6rem;
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--red-bright);
}

.sep {
  margin: 0 0.75rem;
  color: var(--red-dim);
}

.crafted {
  font-family: "MedievalSharp", cursive;
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ---------- Reduced motion ---------- */
.reduced-motion .hero-img,
.reduced-motion .title-text,
.reduced-motion .gif-card {
  animation: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .header {
    padding-top: 5.5rem;
  }

  .sound-control {
    top: 0.85rem;
    right: 0.85rem;
  }

  .volume-slider {
    width: 58px;
  }

  .gallery {
    grid-template-columns: 1fr;
    max-width: 380px;
    gap: 1.25rem;
  }

  .stats {
    gap: 1.25rem 1.75rem;
  }

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

@media (max-width: 480px) {
  .title-text {
    letter-spacing: 0.08em;
  }

  .opensea-link {
    letter-spacing: 0.22em;
  }
}
/* ECG / Oscilloscope */
.ecg-canvas {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 78px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.92;
    mix-blend-mode: screen;
  }