/* ============================================================
   PIKACHU NO MICHI — Traditional Japanese Fansite
   Custom CSS
   ============================================================ */

:root {
  --cream: rgb(245, 241, 232);
  --cream-dark: rgb(232, 224, 208);
  --gold: rgb(212, 175, 55);
  --gold-light: rgb(240, 210, 90);
  --gold-dark: rgb(160, 128, 30);
  --red: rgb(153, 51, 51);
  --red-dark: rgb(110, 30, 30);
  --black: rgb(18, 14, 10);
  --ink: rgb(30, 20, 10);
  --yellow: rgb(255, 220, 30);
  --yellow-light: rgb(255, 240, 100);
  --white: rgb(255, 255, 255);
  --shadow-gold: 0 4px 24px rgba(212, 175, 55, 0.3);
  --shadow-deep: 0 8px 40px rgba(18, 14, 10, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: 'Noto Serif JP', 'Georgia', serif;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: 'Noto Serif JP', 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
}

.font-ja {
  font-family: 'Noto Serif JP', serif;
  letter-spacing: 0.05em;
}

/* ============================================================
   WASHI PAPER TEXTURE OVERLAY
   ============================================================ */

.washi-texture {
  position: relative;
}

.washi-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   GOLDEN DIVIDER
   ============================================================ */

.divider-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0;
}

.divider-gold::before,
.divider-gold::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-gold .divider-icon {
  color: var(--gold);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
  margin: 0;
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  filter: blur(2px);
}

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

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
  background: transparent;
}

#navbar.scrolled {
  background: rgba(18, 14, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.nav-logo-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: 'Noto Serif JP', serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: rgba(18, 14, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(212, 175, 55, 0.3);
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links a {
    font-size: 1rem;
  }
}

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

#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-shrine.jpg');
  background-size: cover;
  background-position: center top;
  transform-origin: center;
  transition: transform 0.1s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 14, 10, 0.35) 0%,
    rgba(18, 14, 10, 0.15) 40%,
    rgba(18, 14, 10, 0.6) 80%,
    rgba(18, 14, 10, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-ja-subtitle {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  color: var(--gold-light);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.3s;
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  color: var(--cream);
  text-shadow:
    0 0 40px rgba(212, 175, 55, 0.4),
    0 4px 20px rgba(0,0,0,0.8);
  line-height: 1.0;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards 0.6s;
}

.hero-title .gold-text {
  color: var(--gold);
  text-shadow:
    0 0 30px rgba(212, 175, 55, 0.8),
    0 0 60px rgba(212, 175, 55, 0.4),
    0 4px 20px rgba(0,0,0,0.6);
  display: block;
}

.hero-kanji {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: rgba(245, 241, 232, 0.7);
  letter-spacing: 0.5em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.9s;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(245, 241, 232, 0.85);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 1.1s;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.4rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--black);
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid var(--gold-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.4s;
}

.hero-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--yellow), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.hero-btn:hover::before {
  transform: scaleX(1);
}

.hero-btn span {
  position: relative;
  z-index: 1;
}

.hero-btn:hover {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
}

/* Sakura petals */
.sakura-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.sakura-petal {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 10px;
  opacity: 0;
  animation: sakuraFall linear infinite;
}

.sakura-petal svg {
  width: 100%;
  height: 100%;
}

@keyframes sakuraFall {
  0% {
    transform: translateY(-20px) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% { opacity: 0.8; }
  80% { opacity: 0.6; }
  100% {
    transform: translateY(110vh) rotate(720deg) translateX(80px);
    opacity: 0;
  }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards 2s;
}

.hero-scroll-hint span {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: bounce 1.5s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ============================================================
   SECTION COMMON STYLES
   ============================================================ */

section {
  padding: 6rem 2rem;
  position: relative;
}

.section-bg-cream {
  background-color: var(--cream);
}

.section-bg-dark {
  background-color: var(--ink);
  color: var(--cream);
}

.section-bg-parchment {
  background-color: var(--cream-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.section-bg-dark .section-title {
  color: var(--cream);
}

.section-title .gold-accent {
  color: var(--gold);
}

.section-kanji {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  color: rgba(212, 175, 55, 0.6);
  letter-spacing: 0.4em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

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

#about {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: url('../images/torii-gate.svg') right center / 200px no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.about-main-card {
  background: var(--white);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-gold);
}

.about-main-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: -8px;
  bottom: -8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  pointer-events: none;
}

.about-main-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-top: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
}

.about-img-wrap {
  position: relative;
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.about-img-wrap:hover img {
  transform: scale(1.04);
}

.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(212, 175, 55, 0.3);
  pointer-events: none;
}

.about-card-title {
  font-size: 1.5rem;
  color: var(--red);
  margin-bottom: 0.75rem;
  font-family: 'Noto Serif JP', serif;
}

.about-card-text {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.9;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-box {
  text-align: center;
  padding: 1.2rem 0.5rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(212, 175, 55, 0.06);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Noto Serif JP', serif;
  display: block;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
}

.about-small-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-small-card {
  background: var(--white);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-small-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
}

.about-small-card:hover {
  box-shadow: var(--shadow-gold);
  transform: translateX(4px);
}

.about-small-card:hover::before {
  transform: scaleY(1);
}

.card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.card-body h4 {
  font-size: 1rem;
  color: var(--red);
  margin-bottom: 0.4rem;
  font-family: 'Noto Serif JP', serif;
}

.card-body p {
  font-size: 0.88rem;
  color: var(--ink);
  opacity: 0.85;
  line-height: 1.7;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */

#gallery {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

#gallery .section-title {
  color: var(--cream);
}

#gallery .section-kanji {
  color: rgba(212, 175, 55, 0.5);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.gallery-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--black);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.5);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,14,10,0.95) 0%, rgba(18,14,10,0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transform: translateY(60%);
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.gallery-kanji {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  color: rgba(212, 175, 55, 0.6);
  margin-bottom: 0.5rem;
}

.gallery-desc {
  font-size: 0.8rem;
  color: rgba(245, 241, 232, 0.8);
  line-height: 1.6;
}

.gallery-border {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 175, 55, 0.0);
  pointer-events: none;
  transition: border-color 0.3s;
}

.gallery-card:hover .gallery-border {
  border-color: rgba(212, 175, 55, 0.4);
}

/* ============================================================
   ABILITIES SECTION
   ============================================================ */

#abilities {
  background: var(--cream-dark);
  position: relative;
  overflow: hidden;
}

#abilities::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/wave-pattern.svg') repeat;
  background-size: 120px;
  opacity: 0.04;
  pointer-events: none;
}

.abilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .abilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.ability-card {
  background: var(--white);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.ability-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.ability-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(212, 175, 55, 0.5);
}

.ability-card:hover::after {
  transform: scaleX(1);
}

.ability-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ability-icon svg {
  width: 48px;
  height: 48px;
}

.ability-name-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
  letter-spacing: 0.1em;
}

.ability-name-en {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: block;
}

.ability-desc {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.8;
  opacity: 0.85;
}

.ability-power {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.2rem;
  padding: 0.3rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ============================================================
   EVOLUTION SECTION
   ============================================================ */

#evolution {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

#evolution .section-title {
  color: var(--cream);
}

#evolution .section-kanji {
  color: rgba(212, 175, 55, 0.5);
}

.evolution-timeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .evolution-timeline {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}

.evolution-node {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

.evo-img-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.evo-img-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
  transition: box-shadow 0.3s, transform 0.3s;
}

.evo-img-circle:hover {
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.5);
  transform: scale(1.04);
}

.evo-img-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.evo-number {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 32px;
  height: 32px;
  background: var(--red);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cream);
  font-family: 'Noto Serif JP', serif;
}

.evo-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.evo-name-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
  letter-spacing: 0.2em;
}

.evo-level {
  font-size: 0.72rem;
  color: rgba(212, 175, 55, 0.6);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.evo-desc {
  font-size: 0.85rem;
  color: rgba(245, 241, 232, 0.7);
  line-height: 1.8;
  max-width: 220px;
  margin: 0 auto;
}

.evo-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 0.5rem;
  margin-top: -3rem;
}

.evo-arrow svg {
  color: var(--gold);
  opacity: 0.6;
  width: 40px;
  height: 40px;
}

@media (max-width: 768px) {
  .evo-arrow {
    transform: rotate(90deg);
    margin: 0;
  }
  .evo-img-circle {
    width: 160px;
    height: 160px;
  }
}

/* ============================================================
   FAN ART SECTION
   ============================================================ */

#fanart {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.fanart-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.9;
  opacity: 0.85;
}

.fanart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

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

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

.fanart-card {
  position: relative;
  overflow: hidden;
  background: var(--cream-dark);
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition: all 0.3s ease;
}

.fanart-card:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.fanart-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.fanart-card:hover .fanart-img {
  transform: scale(1.05);
}

.fanart-card-info {
  padding: 1.2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.fanart-card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.fanart-card-artist {
  font-size: 0.78rem;
  color: var(--red);
  letter-spacing: 0.1em;
}

.fanart-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 680px) {
  .fanart-featured {
    grid-template-columns: 1fr;
  }
}

.fanart-card-large .fanart-img {
  height: 360px;
}

.fanart-submit {
  text-align: center;
  padding: 3rem;
  border: 2px dashed rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.04);
}

.fanart-submit h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.fanart-submit p {
  font-size: 0.9rem;
  color: var(--ink);
  opacity: 0.75;
  margin-bottom: 1.5rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border: 2px solid var(--gold);
  color: var(--gold-dark);
  font-family: 'Noto Serif JP', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--black);
  box-shadow: var(--shadow-gold);
}

/* ============================================================
   NEWSLETTER / CONTACT SECTION
   ============================================================ */

#newsletter {
  background: var(--red-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}

#newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(212, 175, 55, 0.08), transparent);
  pointer-events: none;
}

#newsletter .section-title {
  color: var(--cream);
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-desc {
  font-size: 1rem;
  color: rgba(245, 241, 232, 0.85);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  background: rgba(245, 241, 232, 0.95);
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(30, 20, 10, 0.5);
  letter-spacing: 0.05em;
}

.newsletter-form button {
  padding: 1rem 1.8rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none;
  color: var(--black);
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
}

.newsletter-privacy {
  font-size: 0.75rem;
  color: rgba(245, 241, 232, 0.55);
  letter-spacing: 0.05em;
}

.newsletter-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.newsletter-icons img {
  width: 32px;
  height: 32px;
  opacity: 0.5;
  transition: opacity 0.3s;
  filter: brightness(10);
}

.newsletter-icons img:hover {
  opacity: 0.9;
}

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

footer {
  background: var(--black);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-logo {
  height: 50px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(212,175,55,0.4));
}

.footer-text {
  font-size: 0.8rem;
  color: rgba(245, 241, 232, 0.4);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.footer-kanji {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  color: rgba(212, 175, 55, 0.3);
  letter-spacing: 0.5em;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================================
   DECORATIVE CORNER FRAMES
   ============================================================ */

.corner-frame {
  position: relative;
}

.corner-frame::before,
.corner-frame::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.5;
}

.corner-frame::before {
  top: 12px;
  left: 12px;
  border-width: 2px 0 0 2px;
}

.corner-frame::after {
  bottom: 12px;
  right: 12px;
  border-width: 0 2px 2px 0;
}

/* ============================================================
   LIGHTNING BOLT DECORATIVE
   ============================================================ */

.lightning-accent {
  display: inline-block;
  color: var(--yellow);
  text-shadow: 0 0 15px rgba(255, 220, 30, 0.8);
}

/* ============================================================
   TOOLTIP / HOVER BADGE
   ============================================================ */

.badge-gold {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Noto Serif JP', serif;
}

.badge-red {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--red);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Noto Serif JP', serif;
}

/* ============================================================
   ELECTRIC GLOW EFFECT (Pikachu theme)
   ============================================================ */

.electric-glow {
  box-shadow:
    0 0 10px rgba(255, 220, 30, 0.3),
    0 0 30px rgba(255, 220, 30, 0.15),
    0 0 60px rgba(255, 220, 30, 0.08);
}

.electric-text {
  text-shadow:
    0 0 10px rgba(255, 220, 30, 0.6),
    0 0 20px rgba(255, 220, 30, 0.3);
}

/* ============================================================
   MODAL / LIGHTBOX
   ============================================================ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 0.5rem;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--cream);
}

/* ============================================================
   NOTIFICATION TOAST
   ============================================================ */

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--ink);
  border: 1px solid var(--gold);
  color: var(--cream);
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  font-family: 'Noto Serif JP', serif;
  z-index: 9000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

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