@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Nunito:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --surface: #16161f;
  --border: #2a2a3a;
  --magenta: #e040fb;
  --magenta-dim: #7b1fa2;
  --white: #e8e8f0;
  --white-dim: #9090a8;
  --yellow: #ffd54f;
  --red: #ef5350;
  --green: #66bb6a;
  --font-title: 'Special Elite', cursive;
  --font-body: 'Nunito', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(224, 64, 251, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(103, 58, 183, 0.05) 0%, transparent 50%);
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--magenta);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white-dim);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

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

/* ── PAGE WRAPPER ── */
.page {
  padding-top: 5rem;
  min-height: 100vh;
}

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(3.5rem, 10vw, 7rem);
  letter-spacing: 0.1em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
  text-shadow: 0 0 60px rgba(224, 64, 251, 0.2);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--white-dim);
  font-style: italic;
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.6s;
}

.hero-cover {
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.8s;
}

.hero-cover img {
  width: 120px;
  border: 2px solid var(--magenta);
  box-shadow: 0 0 30px rgba(224, 64, 251, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-cover img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(224, 64, 251, 0.5);
}

/* ── DIVIDER ── */
.divider {
  width: 60px;
  height: 1px;
  background: var(--magenta-dim);
  margin: 3rem auto;
  opacity: 0.5;
}

/* ── CARDS GRID ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--magenta);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.card:hover {
  border-color: var(--magenta-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(224, 64, 251, 0.1);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-number {
  font-family: var(--font-title);
  font-size: 2.5rem;
  color: var(--magenta);
  opacity: 0.2;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--white-dim);
  font-style: italic;
}

/* ── SECTION ── */
.section {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-title span {
  color: var(--magenta);
}

.section-intro {
  text-align: center;
  color: var(--white-dim);
  font-style: italic;
  margin-bottom: 3rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── STORY BOX ── */
.story-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--magenta);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--white);
}

.story-box p + p {
  margin-top: 1rem;
}

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--magenta);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: gap 0.2s;
  margin-top: 1rem;
}

.story-link:hover {
  gap: 0.8rem;
}

/* ── CHARACTERS ── */
.characters {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-bottom: 5rem;
}

.character {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.character:hover {
  border-color: var(--magenta-dim);
}

.character-imgs {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.character-imgs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.character-imgs img:first-child {
  border: 2px solid rgba(245, 245, 220, 0.4);
}

.character-imgs img:last-child {
  border: 2px solid var(--magenta);
}

.vs-label {
  font-family: var(--font-title);
  font-size: 0.75rem;
  color: var(--white-dim);
  letter-spacing: 0.1em;
}

.character-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.character-name {
  font-family: var(--font-title);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.character-name a {
  color: var(--magenta);
  text-decoration: none;
  transition: opacity 0.2s;
}

.character-name a:hover {
  opacity: 0.7;
}

.character-tag {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.character-desc {
  font-size: 0.95rem;
  color: var(--white-dim);
  font-style: italic;
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ── CHARACTER IMAGES (page3 sunny) ── */
#sunny-omori {
  width: 280px;
  border: 1px solid var(--border);
  display: block;
  margin: 2rem auto;
}

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-dim);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s, gap 0.2s;
  margin-bottom: 3rem;
}

.back-link:hover {
  color: var(--white);
  gap: 0.8rem;
}

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
  position: relative;
}

.page-header::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--magenta);
  margin: 1.5rem auto 0;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--magenta-dim); border-radius: 3px; }
