/* ════════════════════════════════════════════════════
   YOKAI REALM — Master Stylesheet
   Dark ink aesthetic · Vermilion & gold accents
   ════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Noto+Serif+JP:wght@300;400;700&family=Cinzel+Decorative:wght@400;700&display=swap');

/* ── Variables ─────────────────────────────────── */
:root {
  --black:       #06060a;
  --ink:         #0d0d14;
  --dark:        #111118;
  --panel:       #171720;
  --card:        #1c1c28;
  --border:      rgba(255,255,255,0.07);
  --border-warm: rgba(201,148,26,0.2);

  --parchment:   #e2d6bc;
  --parchment-dim: #9a8f78;
  --ash:         #5a5464;

  --red:         #b5192a;
  --red-bright:  #d42035;
  --red-dim:     rgba(181,25,42,0.18);
  --red-glow:    rgba(181,25,42,0.35);

  --gold:        #c9941a;
  --gold-bright: #e8b030;
  --gold-dim:    rgba(201,148,26,0.15);

  --ff-display:  'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
  --ff-jp:       'Noto Serif JP', serif;
  --ff-title:    'Cinzel Decorative', 'Cormorant Garamond', serif;
  --ff-body:     'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  font-size: 16px;
}

body {
  background-color: var(--black);
  color: var(--parchment);
  font-family: var(--ff-body);
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--red-bright);
  box-shadow: 0 0 8px var(--red-glow);
}
.cursor-ring {
  width: 28px; height: 28px;
  border: 1px solid rgba(201,148,26,0.5);
  transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), border-color 0.2s;
}
.cursor-ring.hover {
  width: 44px; height: 44px;
  border-color: var(--gold);
}

a, button { cursor: none; }

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

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; }

::selection {
  background: var(--red-dim);
  color: var(--gold-bright);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ── Navigation ────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 68px;
  background: transparent;
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s;
}

#nav.scrolled {
  background: rgba(6,6,10,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-kanji {
  font-family: var(--ff-jp);
  font-size: 1.5rem;
  color: var(--red);
  line-height: 1;
}
.nav-title {
  font-family: var(--ff-title);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--parchment-dim);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}
.nav-links a {
  font-family: var(--ff-jp);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--parchment-dim);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover {
  color: var(--parchment);
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--parchment);
  font-size: 1.5rem;
  line-height: 1;
}

/* ── Buttons ────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--red);
  color: var(--parchment);
  font-family: var(--ff-jp);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--red-bright);
  box-shadow: 0 0 24px var(--red-glow);
}

.btn-ghost {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: transparent;
  color: var(--parchment-dim);
  font-family: var(--ff-jp);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  border: 1px solid var(--border-warm);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ── Hero ───────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 10vh;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, #1a0a0c 0%, #06060a 100%);
}

/* Canvas particles */
#spirit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Floating background kanji */
.hero-kanji-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.hero-kanji-bg span {
  position: absolute;
  bottom: -20vh;
  left: var(--x);
  font-family: var(--ff-jp);
  font-size: var(--size);
  color: rgba(181,25,42,0.06);
  line-height: 1;
  animation: floatKanji var(--dur) var(--delay) infinite linear;
  user-select: none;
}
.hero-kanji-bg span::before { content: attr(data-char); }

@keyframes floatKanji {
  0%   { transform: translateY(0) rotate(-8deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-130vh) rotate(8deg); opacity: 0; }
}

/* Mist layers */
.hero-mist {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.mist-layer {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 40%;
  background: linear-gradient(to top, rgba(6,6,10,0.95) 0%, transparent 100%);
  border-radius: 50% 50% 0 0;
}
.mist-1 {
  left: -50%;
  animation: mistDrift 20s infinite alternate ease-in-out;
  opacity: 0.6;
}
.mist-2 {
  left: -30%;
  animation: mistDrift 28s 4s infinite alternate-reverse ease-in-out;
  opacity: 0.4;
  height: 30%;
}
.mist-3 {
  left: -20%;
  height: 20%;
  animation: mistDrift 24s 8s infinite alternate ease-in-out;
  opacity: 0.5;
}
@keyframes mistDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(20%); }
}

/* Oni Mask */
.hero-mask-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  z-index: 4;
  width: min(420px, 70vw);
  pointer-events: none;
  animation: maskFloat 6s ease-in-out infinite;
}
@keyframes maskFloat {
  0%, 100% { transform: translate(-50%, -55%) translateY(0); }
  50%       { transform: translate(-50%, -55%) translateY(-18px); }
}

.hero-oni-mask { width: 100%; height: auto; filter: drop-shadow(0 0 40px rgba(181,25,42,0.45)); }

.oni-horn       { fill: #8a0e1a; }
.oni-horn-inner { fill: #6a0a12; }
.oni-face       { fill: #9e1220; }
.oni-brow {
  stroke: #6a0008;
  stroke-width: 14;
  fill: none;
  stroke-linecap: round;
}
.oni-eye-socket { fill: #1a0000; }
.oni-iris       { fill: #d4900a; }
.oni-pupil      { fill: #0a0000; }
.oni-iris-shine { fill: rgba(255,240,180,0.7); }
.oni-nose {
  stroke: rgba(255,255,255,0.15);
  stroke-width: 8;
  fill: none;
  stroke-linecap: round;
}
.oni-mouth {
  stroke: #1a0000;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
}
.oni-fang       { fill: #f0e8d0; }
.oni-cheek-mark {
  stroke: rgba(255,200,150,0.12);
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
}
.oni-forehead-kanji {
  font-family: var(--ff-jp);
  font-size: 36px;
  fill: rgba(255,200,100,0.2);
  text-anchor: middle;
  dominant-baseline: middle;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 720px;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-family: var(--ff-jp);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s var(--ease-out) forwards;
}

.hero-title {
  margin-bottom: 1.5rem;
  line-height: 1;
}
.hero-title-jp {
  display: block;
  font-family: var(--ff-jp);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 700;
  color: var(--red);
  text-shadow: 0 0 60px rgba(181,25,42,0.6), 0 0 120px rgba(181,25,42,0.2);
  letter-spacing: -0.02em;
  line-height: 0.9;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s var(--ease-out) forwards;
}
.hero-title-en {
  display: block;
  font-family: var(--ff-title);
  font-size: clamp(1rem, 4vw, 1.8rem);
  letter-spacing: 0.55em;
  color: var(--parchment-dim);
  padding-left: 0.55em;
  margin-top: 0.4rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s var(--ease-out) forwards;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--parchment-dim);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s var(--ease-out) forwards;
}

.hero-cta-row {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 1.1s var(--ease-out) forwards;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s 1.8s forwards;
}
.hero-scroll-hint span {
  font-family: var(--ff-jp);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--ash);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 2s 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ── Shared Section Styles ──────────────────────── */
.section-tag {
  display: inline-block;
  font-family: var(--ff-jp);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-heading {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--parchment);
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--parchment-dim);
  max-width: 560px;
  font-style: italic;
  font-weight: 300;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .section-sub { margin: 0 auto; }

/* Reveal animation */
.reveal-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-section.visible {
  opacity: 1;
  transform: none;
}

/* ── About Section ─────────────────────────────── */
.section-about {
  position: relative;
  padding: 8rem 3rem 6rem;
}

.about-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1rem;
}

.about-deco-kanji {
  font-family: var(--ff-jp);
  font-size: 10rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,148,26,0.25);
  line-height: 1;
  user-select: none;
}

.about-tag {
  font-family: var(--ff-jp);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ash);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  align-self: flex-start;
}

.about-lead {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--parchment);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.about-body {
  color: var(--parchment-dim);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.about-stats {
  display: flex;
  gap: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-number sup {
  font-size: 1rem;
  vertical-align: super;
}

.stat-label {
  font-family: var(--ff-jp);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--ash);
  text-transform: uppercase;
}

.about-divider {
  max-width: 1100px;
  margin: 4rem auto 0;
  overflow: visible;
}
.about-divider svg { width: 100%; display: block; }

/* ── Yokai Gallery ─────────────────────────────── */
.section-yokai {
  padding: 8rem 3rem;
  position: relative;
}

.yokai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

/* Yokai Card */
.yokai-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: none;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  animation: cardReveal 0.6s both;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.yokai-card:hover {
  transform: translateY(-6px);
}
.yokai-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--card-glow, rgba(181,25,42,0.08)) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}
.yokai-card:hover::before { opacity: 1; }

/* Card top area */
.card-top {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--panel);
}

.card-kanji-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-jp);
  font-size: 11rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px;
  line-height: 1;
  user-select: none;
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
  opacity: 0.12;
  z-index: 0;
}
.yokai-card:hover .card-kanji-bg {
  transform: scale(1.08) rotate(-3deg);
  opacity: 0.18;
}

.card-kanji-main {
  position: relative;
  z-index: 2;
  font-family: var(--ff-jp);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 30px var(--card-color, #b5192a);
  transition: transform 0.4s var(--ease-out), text-shadow 0.3s;
}
.yokai-card:hover .card-kanji-main {
  transform: scale(1.1);
  text-shadow: 0 0 50px var(--card-color, #b5192a), 0 0 100px var(--card-color, #b5192a);
}

.card-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-family: var(--ff-jp);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border: 1px solid var(--card-color, #b5192a);
  color: var(--card-color, #b5192a);
  background: rgba(6,6,10,0.7);
  text-transform: uppercase;
}

.card-danger-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 3px;
}
.danger-pip {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ash);
  transition: background 0.2s;
}
.danger-pip.active {
  background: var(--card-color, #b5192a);
  box-shadow: 0 0 6px var(--card-color, #b5192a);
}

/* Card bottom */
.card-bottom {
  padding: 1.2rem 1.4rem 1.6rem;
  position: relative;
  z-index: 2;
}

.card-name-en {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--parchment);
  margin-bottom: 0.1rem;
  transition: color 0.2s;
}
.yokai-card:hover .card-name-en { color: var(--card-color, #b5192a); }

.card-name-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}
.card-name-jp {
  font-family: var(--ff-jp);
  font-size: 0.9rem;
  color: var(--ash);
}
.card-reading {
  font-family: var(--ff-jp);
  font-size: 0.7rem;
  color: var(--ash);
  opacity: 0.6;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--parchment-dim);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.card-cta {
  font-family: var(--ff-jp);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--card-color, #b5192a);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background: none;
  padding: 0;
  transition: gap 0.2s;
}
.card-cta::after {
  content: '→';
  transition: transform 0.2s;
}
.yokai-card:hover .card-cta::after { transform: translateX(4px); }

/* Card bottom accent line */
.card-accent-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--card-color, #b5192a), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.yokai-card:hover .card-accent-line { transform: scaleX(1); }

/* ── Yokai Modal ────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6,6,10,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-overlay[hidden] { display: flex; }

.modal-close {
  position: absolute;
  top: 2rem; right: 2.5rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--parchment-dim);
  width: 40px; height: 40px;
  font-size: 1rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.modal-close:hover { border-color: var(--red); color: var(--red); }

.modal-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1rem 0;
}
.modal-inner::-webkit-scrollbar { width: 2px; }
.modal-inner::-webkit-scrollbar-thumb { background: var(--red); }

.modal-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-right: 1px solid var(--border);
  padding-right: 4rem;
}

.modal-kanji {
  font-family: var(--ff-jp);
  font-size: 9rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.modal-name-en {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--parchment);
  letter-spacing: 0.03em;
}
.modal-name-jp {
  font-family: var(--ff-jp);
  font-size: 1.2rem;
  color: var(--ash);
  margin-top: 0.2rem;
}
.modal-type {
  font-family: var(--ff-jp);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.modal-danger-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-danger-label {
  font-family: var(--ff-jp);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--ash);
  text-transform: uppercase;
  margin-right: 0.5rem;
}
.modal-pip {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.modal-pip.on {
  box-shadow: 0 0 8px currentColor;
}
.modal-pip.off {
  opacity: 0.2;
}

.modal-habitat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.modal-habitat-val {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--parchment);
}

.modal-label {
  display: block;
  font-family: var(--ff-jp);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--ash);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.modal-right {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.modal-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--parchment-dim);
  font-style: italic;
  font-weight: 300;
}

.modal-abilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.ability-tag {
  font-family: var(--ff-jp);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  background: var(--red-dim);
  border: 1px solid rgba(181,25,42,0.3);
  color: var(--parchment-dim);
}

.modal-lore-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--parchment-dim);
}

.modal-close-btn {
  align-self: flex-start;
  padding: 0.8rem 2rem;
  background: transparent;
  border: 1px solid var(--border-warm);
  color: var(--parchment-dim);
  font-family: var(--ff-jp);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  transition: color 0.2s, border-color 0.2s;
}
.modal-close-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ── Lore Section ───────────────────────────────── */
.section-lore {
  padding: 8rem 3rem;
  background: var(--ink);
  position: relative;
}
.section-lore::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--red), transparent);
}
.section-lore::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.lore-featured {
  max-width: 900px;
  margin: 0 auto 5rem;
}
.lore-featured-inner {
  position: relative;
  padding: 4rem;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--card), var(--panel));
}
.lore-quote-mark {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-jp);
  font-size: 3rem;
  font-weight: 700;
  color: var(--red);
  background: var(--ink);
  padding: 0 1rem;
  line-height: 1;
}
.lore-pullquote {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.85;
  color: var(--parchment);
  margin-bottom: 1.5rem;
}
.lore-pullquote em { color: var(--gold); font-style: normal; }

.lore-featured-inner cite {
  font-family: var(--ff-jp);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--ash);
}

.lore-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.lore-card {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.lore-card-num {
  font-family: var(--ff-jp);
  font-size: 3.5rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,148,26,0.2);
  line-height: 1;
  margin-bottom: 0.5rem;
  user-select: none;
}

.lore-card-title {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 0.75rem;
}

.lore-brush-line {
  width: 3rem;
  height: 2px;
  background: linear-gradient(to right, var(--red), transparent);
  margin-bottom: 1rem;
}

.lore-card p {
  font-size: 0.95rem;
  color: var(--parchment-dim);
  line-height: 1.75;
}
.lore-card em { color: var(--gold); font-style: italic; }

/* ── Classifications ───────────────────────────── */
.section-classify {
  padding: 8rem 3rem;
  position: relative;
}

.classify-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.classify-card {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  position: relative;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.classify-card:hover {
  border-color: var(--border-warm);
  transform: translateY(-4px);
}

.classify-icon {
  font-family: var(--ff-jp);
  font-size: 3rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 1rem;
  line-height: 1;
}

.classify-card h3 {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 0.75rem;
}

.classify-card p {
  font-size: 0.9rem;
  color: var(--parchment-dim);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.classify-examples {
  font-family: var(--ff-jp);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.7;
}

/* ── Footer ─────────────────────────────────────── */
footer#footer {
  position: relative;
  background: var(--ink);
  border-top: 1px solid var(--border);
}

.footer-wave {
  position: absolute;
  top: -40px; left: 0; right: 0;
  height: 80px;
  pointer-events: none;
}
.footer-wave svg { width: 100%; height: 100%; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 3rem 3rem;
}

.footer-logo-kanji {
  font-family: var(--ff-jp);
  font-size: 3rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.footer-logo-name {
  font-family: var(--ff-title);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--ash);
  margin-bottom: 1rem;
}
.footer-tagline {
  font-size: 0.9rem;
  color: var(--ash);
  line-height: 1.7;
  font-style: italic;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-col h4 {
  font-family: var(--ff-jp);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--ash);
  transition: color 0.2s;
  font-style: italic;
}
.footer-col a:hover { color: var(--parchment); }

.footer-bottom {
  position: relative;
  text-align: center;
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.footer-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(201,148,26,0.03) 10px,
      rgba(201,148,26,0.03) 11px
    );
  pointer-events: none;
}

.footer-bottom p {
  position: relative;
  font-family: var(--ff-jp);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ash);
  opacity: 0.6;
}

/* ── Utility Animations ────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .yokai-grid, .lore-cards, .classify-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-left {
    flex-direction: row;
    align-items: center;
  }
  .about-deco-kanji { font-size: 6rem; }
  .about-tag { writing-mode: horizontal-tb; }
  .modal-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .modal-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 2rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .modal-kanji { font-size: 6rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }

  .section-about,
  .section-yokai,
  .section-lore,
  .section-classify { padding: 5rem 1.5rem; }

  .yokai-grid { grid-template-columns: 1fr; }
  .lore-cards, .classify-grid { grid-template-columns: 1fr; }

  .hero-scroll-hint { display: none; }
  .lore-featured-inner { padding: 2rem 1.5rem; }
  .about-stats { flex-wrap: wrap; gap: 1.5rem; }
  .footer-inner { padding: 3rem 1.5rem 2rem; }
  .footer-bottom { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-cta-row { flex-direction: column; align-items: center; }
  .modal-inner { padding: 0; }
  .modal-close { top: 1rem; right: 1rem; }
}
