/* ============================================================
   縺薙�ｮ荳悶�ｮ菴募�ｦ縺九�ｮ謌ｦ邱� 窶� STYLESHEET
   Dark Occult Suspense ADV
   ============================================================ */

/* === GOOGLE FONTS IMPORT === */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;600;900&family=Cinzel+Decorative:wght@400;700&family=Share+Tech+Mono&display=swap');

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Color Palette */
  --bg-void:        #010103;
  --bg-deep:        #060610;
  --bg-layer:       #0c0c1e;
  --bg-card:        #10101f;
  --bg-card-hover:  #161628;

  /* Purple Faction */
  --purple-900:     #150025;
  --purple-700:     #3a0070;
  --purple-500:     #6a1fd4;
  --purple-400:     #8b35f0;
  --purple-300:     #b36bff;
  --purple-200:     #d4a8ff;
  --purple-glow:    rgba(122, 44, 255, 0.65);

  /* Green Faction */
  --green-900:      #001500;
  --green-700:      #003800;
  --green-500:      #007a1e;
  --green-400:      #00b832;
  --green-300:      #00e848;
  --green-200:      #6dff9c;
  --green-glow:     rgba(0, 200, 60, 0.65);

  /* Accent / Neutral */
  --gold:           #c9a227;
  --gold-bright:    #f0ca50;
  --blood-red:      #cc1a1a;
  --text-primary:   #e8e0ff;
  --text-secondary: #9a8ebd;
  --text-muted:     #4a4268;
  --white:          #ffffff;

  /* Borders */
  --border-purple:  rgba(122, 44, 255, 0.35);
  --border-green:   rgba(0, 200, 60, 0.35);
  --border-dim:     rgba(255, 255, 255, 0.07);

  /* Spacing */
  --section-v-pad:  130px;
  --section-h-pad:  6vw;
  --nav-h:          72px;
}

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: 'Noto Serif JP', serif;
  overflow-x: hidden;
  line-height: 1.7;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--purple-400), var(--green-400));
  border-radius: 2px;
}

/* === GLOBAL NOISE OVERLAY === */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* === UTILITY CLASSES === */
.purple-em { color: var(--purple-300); text-shadow: 0 0 10px var(--purple-glow); }
.green-em  { color: var(--green-300);  text-shadow: 0 0 10px var(--green-glow);  }

/*ここまでおけ！



/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  padding: 0 var(--section-h-pad);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(6,6,16,0.97) 0%, rgba(6,6,16,0) 100%);
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(6, 6, 16, 0.97);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border-purple);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  line-height: 1;
}

.logo-purple {
  color: var(--purple-300);
  text-shadow: 0 0 18px var(--purple-glow);
}
.logo-green {
  color: var(--green-300);
  text-shadow: 0 0 18px var(--green-glow);
}

.nav-links {
  display: flex;
  gap: 2.8rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  font-family: 'Share Tech Mono', monospace;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 1px;
  background: var(--purple-300);
  box-shadow: 0 0 8px var(--purple-glow);
  transition: width 0.35s ease;
}

.nav-link:hover {
  color: var(--purple-200);
  text-shadow: 0 0 15px var(--purple-glow);
}

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

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Background layers */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 15% 85%, rgba(58,0,112,0.5) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(0,56,0,0.3) 0%, transparent 55%),
    radial-gradient(ellipse 60% 90% at 50% 50%, rgba(12,12,30,0.85) 0%, transparent 100%),
    var(--bg-void);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 30%, rgba(1,1,3,0.8) 100%);
}

/* Scanlines */
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.04) 3px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
}

/* Particle canvas */
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.7;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 860px;
}

.hero-eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  color: var(--text-muted);
  margin-bottom: 28px;
  animation: fadeInDown 1s ease 0.4s both;
}

/* Glitch Title */
.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.2em;
  line-height: 1.3;
  margin-bottom: 35px;
  text-shadow:
    0 0 40px rgba(179,107,255,0.3),
    0 0 80px rgba(122,44,255,0.15);
  animation: fadeInDown 1s ease 0.7s both;
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.glitch::before {
  color: var(--purple-300);
  animation: glitchTop 5s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  opacity: 0.55;
}

.glitch::after {
  color: var(--green-300);
  animation: glitchBottom 5s infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  opacity: 0.55;
}

@keyframes glitchTop {
  0%, 85%, 100% { transform: translate(0); opacity: 0; }
  87%            { transform: translate(-4px, -2px); opacity: 0.55; }
  89%            { transform: translate(4px, 0);     opacity: 0.55; }
  91%            { transform: translate(-2px, 2px);  opacity: 0.55; }
  93%            { transform: translate(0);           opacity: 0; }
}

@keyframes glitchBottom {
  0%, 85%, 100% { transform: translate(0); opacity: 0; }
  88%            { transform: translate(4px, 2px);   opacity: 0.55; }
  90%            { transform: translate(-4px, 0);    opacity: 0.55; }
  92%            { transform: translate(2px, -2px);  opacity: 0.55; }
  94%            { transform: translate(0);           opacity: 0; }
}

/* VS Divider */
.hero-vs-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 35px;
  width: min(420px, 90%);
  animation: fadeIn 1s ease 1.1s both;
}

.vs-line {
  flex: 1;
  height: 1px;
  display: block;
}

.vs-line.purple-line {
  background: linear-gradient(90deg, transparent, var(--purple-400));
  box-shadow: 0 0 10px var(--purple-glow);
}

.vs-line.green-line {
  background: linear-gradient(90deg, var(--green-400), transparent);
  box-shadow: 0 0 10px var(--green-glow);
}

.vs-diamond {
  color: var(--gold);
  font-size: 0.9rem;
  text-shadow: 0 0 12px rgba(201,162,39,0.8);
  animation: pulseDiamond 3s ease-in-out infinite;
}

@keyframes pulseDiamond {
  0%, 100% { text-shadow: 0 0 12px rgba(201,162,39,0.8); transform: scale(1); }
  50%       { text-shadow: 0 0 24px rgba(201,162,39,1.0); transform: scale(1.15); }
}

/* Quote block */
.hero-quote-block {
  border: none;
  margin-bottom: 45px;
  animation: fadeIn 1s ease 1.4s both;
}

.hero-quote {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  line-height: 2;
  margin-bottom: 6px;
}

.hero-sub-quote {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

/* CTA Button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 50px;
  background: transparent;
  border: 1px solid var(--purple-400);
  color: var(--purple-200);
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.4s, border-color 0.4s, box-shadow 0.4s;
  animation: fadeIn 1s ease 1.8s both;
  box-shadow:
    0 0 25px rgba(106,31,212,0.15),
    inset 0 0 25px rgba(106,31,212,0.05);
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple-700) 0%, var(--purple-500) 100%);
  transform: translateX(-101%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.cta-btn:hover {
  color: var(--white);
  border-color: var(--purple-300);
  box-shadow:
    0 0 50px rgba(122,44,255,0.4),
    inset 0 0 30px rgba(122,44,255,0.1);
}

.cta-btn:hover::before { transform: translateX(0); }

.cta-arrow {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.cta-btn:hover .cta-arrow { transform: translateX(6px); }

/* Scroll Cue */
.scroll-cue {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeIn 2s ease 2.5s both;
}

.scroll-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--text-muted);
}

.scroll-bar {
  width: 1px;
  height: 55px;
  background: linear-gradient(180deg, var(--purple-400) 0%, transparent 100%);
  box-shadow: 0 0 8px var(--purple-glow);
  animation: scrollPulse 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.25); opacity: 0.4; }
}

/* ============================================================
   COMMON SECTION ELEMENTS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-eyebrow {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  color: var(--purple-400);
  text-shadow: 0 0 15px var(--purple-glow);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.35em;
  position: relative;
  display: inline-block;
}

.section-title::before,
.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  height: 2px;
  border-radius: 1px;
}

.section-title::before {
  left: 0; right: 0;
  background: linear-gradient(90deg, var(--purple-400), var(--green-400));
  box-shadow:
    0 0 12px var(--purple-glow),
    0 0 12px var(--green-glow);
}

/* ============================================================
   STORY SECTION
   ============================================================ */
.story-section {
  padding: var(--section-v-pad) var(--section-h-pad);
  position: relative;
  background:
    radial-gradient(ellipse 100% 70% at 0% 50%, rgba(20,0,45,0.6) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 50%, rgba(0,20,5,0.4) 0%, transparent 55%),
    var(--bg-deep);
  overflow: hidden;
}

.story-deco-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 60px,
      rgba(106,31,212,0.02) 60px,
      rgba(106,31,212,0.02) 61px
    );
}

.story-layout {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  gap: 0 30px;
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
}

/* Side decorations */
.story-side-deco {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
}

.side-line {
  flex: 1;
  width: 1px;
  opacity: 0.35;
}

.purple-side .side-line { background: linear-gradient(180deg, transparent, var(--purple-400), transparent); }
.green-side  .side-line { background: linear-gradient(180deg, transparent, var(--green-400),  transparent); }

.side-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.purple-side .side-label { color: var(--purple-300); opacity: 0.6; }
.green-side  .side-label { color: var(--green-300);  opacity: 0.6; }

/* Story body */
.story-body {
  line-height: 2.2;
}

.story-para {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  color: var(--text-secondary);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.story-para.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-highlight {
  padding: 22px 28px;
  border-left: 2px solid var(--purple-400);
  background: linear-gradient(90deg, rgba(106,31,212,0.08) 0%, transparent 100%);
  color: var(--text-primary);
  box-shadow: inset 3px 0 30px rgba(106,31,212,0.06);
}

.story-shadow {
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  position: relative;
  padding: 20px;
  border: 1px solid var(--border-dim);
  background: rgba(1,1,3,0.5);
}

.story-shadow::before {
  content: '■ ■ ■';
  display: block;
  font-style: normal;
  font-size: 0.5rem;
  letter-spacing: 0.6em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.story-final {
  text-align: center;
  color: var(--gold);
  font-size: 1.08em;
  font-weight: 600;
  text-shadow: 0 0 18px rgba(201,162,39,0.45);
  letter-spacing: 0.1em;
}

/* Scroll Reveal */
.reveal-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CHARACTER SECTION
   ============================================================ */
.character-section {
  padding: var(--section-v-pad) var(--section-h-pad);
  position: relative;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(8,0,22,0.95) 0%, transparent 100%),
    var(--bg-void);
  overflow: hidden;
}

.char-viewer {
  max-width: 1050px;
  margin: 0 auto;
  position: relative;
}

/* Faction strip */
.char-faction-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.faction-badge {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  padding: 7px 22px;
  border: 1px solid var(--border-purple);
  color: var(--purple-300);
  background: rgba(106,31,212,0.08);
  box-shadow: 0 0 20px rgba(122,44,255,0.15);
  transition: all 0.6s ease;
}

.faction-badge.green {
  border-color: var(--border-green);
  color: var(--green-300);
  background: rgba(0,120,30,0.08);
  box-shadow: 0 0 20px rgba(0,200,60,0.15);
}

.char-counter {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.char-counter span { color: var(--purple-300); }
.char-counter.green-count span { color: var(--green-300); }
.counter-sep { margin: 0 6px; }

/* Main viewer grid */
.char-main {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  min-height: 520px;
}

/* Image column */
.char-image-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.char-aura {
  position: absolute;
  bottom: 40px;
  left: 50%; transform: translateX(-50%);
  width: 280px; height: 280px;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.45;
  pointer-events: none;
  transition: background 0.8s ease;
  background: radial-gradient(circle, rgba(122,44,255,0.6), transparent);
}

.char-img-frame {
  position: relative;
  display: inline-block;
    width: 320px;
  height: 320px;
  z-index: 1;
}

.char-img-frame img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: 320px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 0 30px rgba(122,44,255,0.25));
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.6s ease;
}

.char-img-frame img.fading {
  opacity: 0;
  transform: scale(0.96) translateY(5px);
}

/* Corner decorations */
.img-corner {
  position: absolute;
  width: 18px; height: 18px;
  transition: border-color 0.6s ease;
}

.img-corner.tl { top: 0;    left: 0;  border-top: 2px solid var(--purple-400); border-left: 2px solid var(--purple-400); }
.img-corner.tr { top: 0;    right: 0; border-top: 2px solid var(--purple-400); border-right: 2px solid var(--purple-400); }
.img-corner.bl { bottom: 0; left: 0;  border-bottom: 2px solid var(--purple-400); border-left: 2px solid var(--purple-400); }
.img-corner.br { bottom: 0; right: 0; border-bottom: 2px solid var(--purple-400); border-right: 2px solid var(--purple-400); }

.char-img-frame.green-faction .img-corner.tl,
.char-img-frame.green-faction .img-corner.tr,
.char-img-frame.green-faction .img-corner.bl,
.char-img-frame.green-faction .img-corner.br {
  border-color: var(--green-400);
}

/* State badge */
.state-badge {
  display: inline-block;
  margin-top: 16px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  padding: 5px 18px;
  border: 1px solid var(--border-purple);
  color: var(--purple-300);
  background: rgba(0,0,0,0.6);
  transition: all 0.5s ease;
}

.state-badge.battle {
  border-color: var(--border-green);
  color: var(--green-300);
  box-shadow: 0 0 12px rgba(0,200,60,0.3);
}

/* Info column */
.char-info-col {
  padding: 10px 0;
}

.char-name-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.char-name-deco {
  width: 4px;
  height: 50px;
  background: linear-gradient(180deg, var(--purple-400), var(--purple-700));
  box-shadow: 0 0 15px var(--purple-glow);
  border-radius: 2px;
  flex-shrink: 0;
  transition: background 0.6s ease, box-shadow 0.6s ease;
}

.char-name-deco.green {
  background: linear-gradient(180deg, var(--green-400), var(--green-700));
  box-shadow: 0 0 15px var(--green-glow);
}

.char-name {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.2em;
  line-height: 1.1;
  text-shadow: 0 0 25px rgba(179,107,255,0.35);
  transition: text-shadow 0.6s ease;
  min-height: 1.2em;
}

.char-name.green-name {
  text-shadow: 0 0 25px rgba(0,200,60,0.35);
}

/* Divider */
.info-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--purple-400), transparent);
  box-shadow: 0 0 10px var(--purple-glow);
  margin-bottom: 28px;
  transition: background 0.6s ease, box-shadow 0.6s ease;
}

.info-divider.green-divider {
  background: linear-gradient(90deg, var(--green-400), transparent);
  box-shadow: 0 0 10px var(--green-glow);
}

/* Voice / line box */
.char-voice-box {
  position: relative;
  padding: 18px 22px 18px 34px;
  border-left: 2px solid var(--purple-400);
  background: linear-gradient(90deg, rgba(106,31,212,0.07), transparent);
  margin-bottom: 22px;
  min-height: 90px;
  transition: border-color 0.6s ease, background 0.6s ease;
}

.char-voice-box.green-voice {
  border-left-color: var(--green-400);
  background: linear-gradient(90deg, rgba(0,120,30,0.07), transparent);
}

.voice-mark {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 1.3rem;
  color: var(--purple-400);
  opacity: 0.5;
  line-height: 1;
  transition: color 0.6s ease;
}

.char-voice-box.green-voice .voice-mark { color: var(--green-400); }

.char-line {
  font-size: 1rem;
  color: var(--gold-bright);
  letter-spacing: 0.06em;
  line-height: 1.85;
  font-style: italic;
  transition: opacity 0.3s ease;
}

/* Desc box */
.char-desc-box {
  margin-bottom: 30px;
  min-height: 70px;
}

.char-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 2;
  letter-spacing: 0.04em;
  transition: opacity 0.3s ease;
}

/* Controls */
.char-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav {
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid var(--border-purple);
  color: var(--purple-300);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-nav:hover {
  background: rgba(106,31,212,0.15);
  border-color: var(--purple-400);
  box-shadow: 0 0 20px rgba(122,44,255,0.3);
  transform: scale(1.05);
}

.btn-nav:active { transform: scale(0.95); }

.btn-transform {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid var(--purple-400);
  color: var(--purple-200);
  font-family: 'Noto Serif JP', serif;
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s, border-color 0.35s, box-shadow 0.35s;
  box-shadow: 0 0 18px rgba(106,31,212,0.12);
}

.btn-transform::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple-700) 0%, var(--purple-500) 100%);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: -1;
}

.btn-transform:hover {
  color: var(--white);
  border-color: var(--purple-300);
  box-shadow: 0 0 35px rgba(122,44,255,0.4);
}

.btn-transform:hover::before { transform: translateY(0); }

/* Battle mode */
.btn-transform.battle-mode {
  border-color: var(--green-400);
  color: var(--green-200);
  box-shadow: 0 0 18px rgba(0,200,60,0.12);
}

.btn-transform.battle-mode::before {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 100%);
}

.btn-transform.battle-mode:hover {
  border-color: var(--green-300);
  box-shadow: 0 0 35px rgba(0,200,60,0.4);
}

/* Dots nav */
.char-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 52px;
}

.char-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.char-dot:hover { background: var(--text-secondary); transform: scale(1.2); }

.char-dot.active {
  background: var(--purple-400);
  box-shadow: 0 0 12px var(--purple-glow);
  transform: scale(1.35);
}

.char-dot.green-dot { background: var(--text-muted); }
.char-dot.green-dot:hover { background: var(--green-400); }
.char-dot.green-dot.active {
  background: var(--green-400);
  box-shadow: 0 0 12px var(--green-glow);
}

/* Lock Overlay */
.lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(1,1,3,0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lock-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lock-inner {
  text-align: center;
  padding: 50px 60px;
  border: 1px solid var(--blood-red);
  background: rgba(10,0,0,0.95);
  max-width: 500px;
  box-shadow:
    0 0 60px rgba(204,26,26,0.25),
    inset 0 0 40px rgba(204,26,26,0.05);
  animation: lockPop 0.4s cubic-bezier(0.175,0.885,0.32,1.275) both;
}

@keyframes lockPop {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.lock-icon {
  font-size: 2.5rem;
  color: var(--blood-red);
  text-shadow: 0 0 20px rgba(204,26,26,0.8);
  margin-bottom: 20px;
  animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  48%       { opacity: 1; }
  50%       { opacity: 0.3; }
  52%       { opacity: 1; }
  75%       { opacity: 1; }
  76%       { opacity: 0.5; }
  77%       { opacity: 1; }
}

.lock-msg {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.9;
  letter-spacing: 0.06em;
  margin-bottom: 30px;
  font-style: italic;
}

.lock-close {
  padding: 10px 36px;
  background: transparent;
  border: 1px solid var(--blood-red);
  color: var(--blood-red);
  font-family: 'Noto Serif JP', serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lock-close:hover {
  background: var(--blood-red);
  color: var(--white);
  box-shadow: 0 0 25px rgba(204,26,26,0.4);
}

/* ============================================================
   PRODUCT SECTION
   ============================================================ */
.product-section {
  padding: var(--section-v-pad) var(--section-h-pad);
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 100% 80%, rgba(0,30,5,0.4) 0%, transparent 55%),
    radial-gradient(ellipse 70% 70% at 0% 20%, rgba(20,0,45,0.4) 0%, transparent 55%),
    var(--bg-deep);
}

.product-inner {
  max-width: 680px;
  margin: 0 auto;
}

.product-card {
  border: 1px solid var(--border-dim);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(106,31,212,0.08),
    0 0 60px rgba(0,120,30,0.06);
}

.product-table {
  width: 100%;
  border-collapse: collapse;
}

.product-table tr {
  border-bottom: 1px solid var(--border-dim);
  transition: background 0.3s ease;
}

.product-table tr:last-child { border-bottom: none; }

.product-table tr:hover { background: rgba(106,31,212,0.04); }

.product-table th {
  padding: 22px 32px;
  background: rgba(106,31,212,0.06);
  color: var(--purple-300);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-align: left;
  width: 38%;
  border-right: 1px solid var(--border-dim);
  font-weight: 400;
}

.product-table td {
  padding: 22px 32px;
  color: var(--text-primary);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.product-tagline {
  padding: 28px 32px;
  border-top: 1px solid var(--border-dim);
  background: linear-gradient(90deg, rgba(20,0,45,0.5), rgba(0,15,3,0.5));
  text-align: center;
}

.product-tagline p {
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-shadow: 0 0 18px rgba(201,162,39,0.4);
  font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 60px 20px 50px;
  border-top: 1px solid var(--border-dim);
  background: var(--bg-void);
}

.footer-vs {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
}

.footer-purple { color: var(--purple-300); text-shadow: 0 0 15px var(--purple-glow); }
.footer-x      { color: var(--text-muted); margin: 0 12px; }
.footer-green  { color: var(--green-300);  text-shadow: 0 0 15px var(--green-glow);  }

.footer-copy {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  font-family: 'Share Tech Mono', monospace;
}

.footer-tag {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-style: italic;
  letter-spacing: 0.1em;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --section-v-pad: 90px;
    --section-h-pad: 5vw;
  }

  .char-main {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: unset;
  }

  .char-img-frame img {
    width: 100%;
  height: 100%;
  }

  .char-aura { width: 200px; height: 200px; }

  .story-layout {
    grid-template-columns: 30px 1fr 30px;
    gap: 0 16px;
  }

  .side-label { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-logo  { font-size: 1.3rem; }

  .hero-title { font-size: 2rem; }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .story-side-deco { display: none; }

  .char-name { font-size: 1.8rem; }

  .lock-inner { padding: 36px 24px; max-width: 90vw; }

  .product-table th,
  .product-table td { padding: 16px 18px; }
}
