@font-face {
  font-family: 'Starlight Rune';
  src: url('./StarlightRune.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0E1424;
  --steel: #3A4A6A;
  --ember: #C86430;
  --ember-glow: #E07840;
  --gold: #D2A665;
  --turq: #4A8B95;
  --indigo: #40449B;
  --lavande: #B39DDB;
  --menthe: #A8E6CF;
  --or-doux: #F4D06F;
  --bleu-nuit: #0455B8;
  --acier-moyen: #8C9AAF;
  --sable: #DCC4A3;
  --argent: #F2F5FA;
  --bg: #060910;
  --bg2: #0E1424;
  --bg3: #111627;
  --text: #E8EAF0;
  --text-muted: #8C9AAF;
  --text-dim: #5A6478;
  --border: rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.1);
  --font-accent: 'Starlight Rune', 'Bodoni Moda', serif;
  --font-heading: 'Bodoni Moda', serif;
  --font-body: 'Quicksand', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--steel) var(--bg); scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 12%, rgba(64,68,155,0.14), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(200,100,48,0.11), transparent 22%),
    radial-gradient(circle at 50% 120%, rgba(74,139,149,0.10), transparent 34%),
    linear-gradient(180deg, #04060b 0%, #060910 22%, #0a101c 52%, #060910 100%);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  --pointer-x: 50%;
  --pointer-y: 50%;
}
img { max-width: 100%; height: auto; }
a, p, h1, h2, h3, div, span { overflow-wrap: break-word; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(242,245,250,0.05), transparent 0 12%),
    radial-gradient(circle at 16% 22%, rgba(210,166,101,0.09), transparent 0 18%),
    radial-gradient(circle at 84% 14%, rgba(179,157,219,0.10), transparent 0 16%),
    radial-gradient(circle at 78% 72%, rgba(74,139,149,0.09), transparent 0 20%),
    radial-gradient(circle at 22% 82%, rgba(200,100,48,0.08), transparent 0 18%),
    linear-gradient(125deg, rgba(179,157,219,0.03), transparent 28%, rgba(210,166,101,0.04) 44%, transparent 60%, rgba(74,139,149,0.03) 74%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0.95;
  z-index: -2;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(255,255,255,0.05) 0.8px, transparent 1.1px),
    radial-gradient(circle at center, rgba(210,166,101,0.05) 1.2px, transparent 1.7px),
    radial-gradient(circle at center, rgba(179,157,219,0.045) 1px, transparent 1.5px),
    radial-gradient(circle at center, rgba(74,139,149,0.045) 1px, transparent 1.6px);
  background-size: 120px 120px, 120px 120px, 18px 18px, 240px 240px, 320px 320px, 280px 280px;
  background-position: center center, center center, center center;
  opacity: 0.32;
  z-index: -1;
}

/* NAV */
.site-ambience {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.lore-portal {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.lore-portal::before,
.lore-portal::after {
  content: '';
  position: absolute;
  inset: -12%;
  opacity: 0;
  transition: opacity 0.9s ease, transform 1.1s ease, filter 1.1s ease;
}
.lore-portal::before {
  background:
    radial-gradient(circle at 50% 52%, rgba(255,255,255,0.12) 0 6%, transparent 7% 100%),
    radial-gradient(circle at 50% 52%, rgba(179,157,219,0.16) 0 18%, transparent 26%),
    radial-gradient(circle at 50% 52%, rgba(74,139,149,0.14) 0 28%, transparent 38%),
    radial-gradient(circle at 50% 52%, rgba(210,166,101,0.12) 0 36%, transparent 48%),
    radial-gradient(circle at 50% 52%, rgba(200,100,48,0.12) 0 44%, transparent 56%);
  filter: blur(16px);
  transform: scale(0.82);
}
.lore-portal::after {
  background:
    linear-gradient(110deg, transparent 18%, rgba(179,157,219,0.16) 28%, transparent 38%),
    linear-gradient(250deg, transparent 20%, rgba(74,139,149,0.15) 32%, transparent 44%),
    linear-gradient(180deg, transparent 0%, rgba(6,9,16,0.08) 18%, rgba(6,9,16,0.28) 50%, rgba(6,9,16,0.08) 82%, transparent 100%);
  filter: blur(24px);
  transform: scale(1.12);
}
.portal-ring,
.portal-ring::before,
.portal-ring::after {
  position: absolute;
  border-radius: 50%;
}
.portal-ring {
  top: 50%;
  left: 50%;
  width: min(92vw, 1280px);
  height: min(92vw, 1280px);
  transform: translate(-50%, -50%) scale(0.78) rotate(0deg);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 40px rgba(179,157,219,0.12), inset 0 0 40px rgba(74,139,149,0.08);
  opacity: 0;
  transition: opacity 0.9s ease, transform 1.1s ease;
}
.portal-ring::before,
.portal-ring::after {
  content: '';
  inset: 8%;
  border: 1px solid rgba(210,166,101,0.16);
}
.portal-ring::after {
  inset: 18%;
  border-color: rgba(74,139,149,0.14);
}
.portal-shards {
  position: absolute;
  inset: 0;
}
.portal-shard {
  position: absolute;
  width: 26vmax;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  filter: blur(0.4px);
  transform: translate3d(0, 0, 0) scaleX(0.4) rotate(0deg);
  transition: opacity 0.9s ease, transform 1.2s ease;
}
.portal-shard.s1 { top: 18%; left: -2%; transform: rotate(14deg) scaleX(0.4); }
.portal-shard.s2 { top: 30%; right: -6%; transform: rotate(-18deg) scaleX(0.4); }
.portal-shard.s3 { top: 58%; left: -4%; transform: rotate(-8deg) scaleX(0.4); }
.portal-shard.s4 { top: 74%; right: -2%; transform: rotate(10deg) scaleX(0.4); }
.portal-shard.s5 { top: 46%; left: 22%; width: 18vmax; transform: rotate(90deg) scaleX(0.4); }
.portal-shard.s6 { top: 12%; right: 24%; width: 14vmax; transform: rotate(90deg) scaleX(0.4); }
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 2rem; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: rgba(6,9,16,0.6); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); border-bottom: 1px solid var(--border); transition: all 0.4s; }
nav.scrolled { background: rgba(6,9,16,0.92); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.nav-brand { font-family: var(--font-accent); font-size: 1.2rem; letter-spacing: 3px; color: var(--text); text-decoration: none; transition: color 0.3s; }
.nav-brand span { color: var(--ember); }
.nav-brand:hover { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { font-size: 0.72rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-dim); text-decoration: none; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1.5px; background: var(--ember); transition: width 0.4s cubic-bezier(0.16,1,0.3,1); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* HERO */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 3rem 5rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 860px 560px at 16% 36%, rgba(64,68,155,0.2) 0%, transparent 72%),
    radial-gradient(ellipse 760px 460px at 82% 28%, rgba(200,100,48,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 620px 420px at 56% 86%, rgba(74,139,149,0.12) 0%, transparent 74%);
  animation: nebula 14s ease-in-out infinite alternate;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 5% 4% 8%;
  border-radius: 42px;
  border: 1px solid rgba(255,255,255,0.05);
  background:
    linear-gradient(115deg, rgba(255,255,255,0.03), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 40px 120px rgba(0,0,0,0.28);
  opacity: 0.8;
  pointer-events: none;
}
@keyframes nebula { 0% { opacity: 0.56; transform: scale(1); } 100% { opacity: 1; transform: scale(1.08) rotate(1.5deg); } }
.site-ambience .particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.site-ambience .particles::before,
.site-ambience .particles::after {
  content: '';
  position: absolute;
  inset: -10%;
  pointer-events: none;
  opacity: 0.45;
  background:
    radial-gradient(circle at 18% 28%, rgba(210,166,101,0.18) 0, transparent 10%),
    radial-gradient(circle at 78% 22%, rgba(179,157,219,0.14) 0, transparent 12%),
    radial-gradient(circle at 62% 74%, rgba(74,139,149,0.16) 0, transparent 10%),
    radial-gradient(circle at 30% 78%, rgba(200,100,48,0.14) 0, transparent 12%);
  filter: blur(50px);
  animation: aurora-drift 18s ease-in-out infinite alternate;
}
.site-ambience .particles::after {
  animation-duration: 24s;
  animation-direction: alternate-reverse;
  opacity: 0.35;
}
.site-ambience .particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  box-shadow:
    0 0 10px currentColor,
    0 0 22px currentColor,
    0 0 40px rgba(255,255,255,0.08);
  filter: blur(0.2px);
  animation: firefly-drift linear infinite;
}
@keyframes firefly-drift {
  0% { opacity: 0; transform: translate3d(0, 110vh, 0) scale(0.25); }
  8% { opacity: 0.25; }
  18% { opacity: 0.85; }
  50% { opacity: 0.45; }
  72% { opacity: 0.9; }
  100% { opacity: 0; transform: translate3d(32px, -18vh, 0) scale(1.15); }
}
@keyframes aurora-drift {
  0% { transform: translate3d(-2%, 0, 0) scale(1); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  align-items: center;
  gap: 3.5rem;
  max-width: 1480px;
  width: min(100%, 1480px);
}
.hero-depth-word {
  position: absolute;
  font-family: var(--font-heading);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  opacity: 0;
}
.hero-depth-word.depth-back {
  top: 5%;
  left: -1%;
  z-index: 0;
  font-size: clamp(4rem, 13vw, 12rem);
  letter-spacing: 0.28em;
  color: rgba(242,245,250,0.05);
  text-shadow: 0 0 30px rgba(179,157,219,0.06);
  animation: fadeRight 1s 0.2s forwards, hero-word-drift 12s ease-in-out 1.2s infinite;
}
.hero-depth-word.depth-front {
  right: -3%;
  bottom: 5%;
  z-index: 4;
  font-size: clamp(3.6rem, 10vw, 8.6rem);
  letter-spacing: 0.18em;
  color: rgba(210,166,101,0.16);
  mix-blend-mode: screen;
  filter: blur(0.3px);
  animation: fadeLeft 1s 0.8s forwards, hero-word-drift-alt 14s ease-in-out 1.4s infinite;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  min-width: 0;
}
.hero-copy-panel {
  margin-top: 1.8rem;
  padding: 0;
  opacity: 0;
  animation: fadeRight 0.9s 0.65s forwards;
}
.hero-kicker {
  font-family: var(--font-accent);
  font-size: 0.92rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.3rem;
  opacity: 0;
  animation: fadeRight 0.8s 0.3s forwards;
  max-width: 100%;
  white-space: normal;
}
.hero-title {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(4.9rem, 9.5vw, 8.8rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 1.1rem;
  opacity: 0;
  animation: fadeRight 0.9s 0.45s forwards;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.hero-title .hero-title-soft { color: rgba(242,245,250,0.76); }
.hero-title em {
  font-family: var(--font-accent);
  font-style: normal;
  color: var(--ember);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 2px;
  background: linear-gradient(90deg, rgba(200,100,48,0.7), transparent 80%);
  opacity: 0.55;
}
.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.95;
  max-width: 38rem;
  margin-bottom: 1.8rem;
  text-shadow: 0 12px 30px rgba(0,0,0,0.28);
  overflow-wrap: anywhere;
}
.hero-facts {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.hero-fact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-fact span {
  color: var(--gold);
  font-size: 0.7rem;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 30px; background: linear-gradient(135deg, var(--ember), var(--ember-glow)); color: #fff; font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; border-radius: 60px; border: none; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden; }
.hero-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15)); opacity: 0; transition: opacity 0.3s; }
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(200,100,48,0.35); }
.hero-cta:hover::before { opacity: 1; }
.hero-cta svg { width: 16px; height: 16px; transition: transform 0.3s; }
.hero-cta:hover svg { transform: translateX(3px); }

.hero-cta-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 30px; background: transparent; color: var(--text-muted); font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; border-radius: 60px; border: 1px solid var(--border-light); cursor: pointer; transition: all 0.3s; }
.hero-cta-secondary:hover { border-color: var(--gold); color: var(--gold); background: rgba(210,166,101,0.05); }

.hero-stage {
  position: relative;
  z-index: 2;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeLeft 1s 0.35s forwards;
}
.hero-stage::before {
  content: '';
  position: absolute;
  inset: 8% 6% 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0 12%, rgba(179,157,219,0.12) 18%, rgba(64,68,155,0.08) 34%, transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(200,100,48,0.1) 0 28%, transparent 54%);
  filter: blur(18px);
  opacity: 0.9;
}
.hero-stage::after {
  content: '';
  position: absolute;
  inset: 10% 14%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 70px rgba(179,157,219,0.08), 0 0 70px rgba(74,139,149,0.06);
  opacity: 0.8;
}
.hero-orbit {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  filter: blur(0.2px);
  opacity: 0.65;
  animation: orbit-sway 8s ease-in-out infinite;
}
.hero-orbit.o1 {
  top: 18%;
  left: 10%;
  width: 34%;
  height: 1px;
  color: rgba(179,157,219,0.55);
  --orbit-rot: -12deg;
  transform: rotate(-12deg);
}
.hero-orbit.o2 {
  right: 4%;
  top: 24%;
  width: 28%;
  height: 1px;
  color: rgba(210,166,101,0.5);
  --orbit-rot: 17deg;
  transform: rotate(17deg);
  animation-duration: 10s;
}
.hero-orbit.o3 {
  left: 4%;
  bottom: 20%;
  width: 30%;
  height: 1px;
  color: rgba(74,139,149,0.52);
  --orbit-rot: 11deg;
  transform: rotate(11deg);
  animation-duration: 9s;
}
.hero-sigil-card {
  position: absolute;
  top: 14%;
  right: 6%;
  z-index: 5;
  padding: 0;
  width: min(240px, 42%);
}
.hero-sigil-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ember);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-sigil-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.16rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.hero-sigil-card p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Avatar */
.hero-avatar {
  position: relative;
  z-index: 3;
  width: min(46vw, 680px);
  max-width: 100%;
}
.hero-avatar img {
  --scroll-y: 0px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(200,100,48,0.12)) drop-shadow(0 36px 60px rgba(0,0,0,0.5));
  animation: avatar-float 6.8s ease-in-out infinite;
  transition: filter 0.5s;
  translate: 0 var(--scroll-y);
}
.hero-avatar:hover img { filter: drop-shadow(0 0 82px rgba(200,100,48,0.22)) drop-shadow(0 36px 60px rgba(0,0,0,0.5)); }
@keyframes avatar-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes orbit-sway {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--orbit-rot, 0deg)); opacity: 0.45; }
  50% { transform: translate3d(10px, -8px, 0) rotate(calc(var(--orbit-rot, 0deg) + 2deg)); opacity: 0.82; }
}
@keyframes hero-word-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, -12px, 0); }
}
@keyframes hero-word-drift-alt {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-12px, 10px, 0); }
}
.hero-avatar::before {
  content: '';
  position: absolute;
  top: 52%;
  left: 50%;
  width: min(36vw, 500px);
  height: min(36vw, 500px);
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,100,48,0.1) 0%, rgba(179,157,219,0.08) 30%, transparent 72%);
  animation: glow-pulse 4.5s ease-in-out infinite;
  pointer-events: none;
}
.hero-avatar::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 7%;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,9,16,0.78), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}
@keyframes glow-pulse { 0%, 100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.12); } }

.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-dim); font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; opacity: 0; animation: fadeUp 0.8s 1.4s forwards; z-index: 3; }
.scroll-line { width: 1px; height: 36px; background: linear-gradient(to bottom, var(--ember), transparent); animation: pulse-line 2s ease-in-out infinite; }
@keyframes pulse-line { 0%, 100% { opacity: 0.3; height: 28px; } 50% { opacity: 1; height: 36px; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeRight { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeLeft { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* SECTIONS */
section { padding: 8rem 3rem; position: relative; z-index: 1; }
.section-inner { max-width: 1320px; margin: 0 auto; }
.section-label { font-family: var(--font-accent); font-size: 0.75rem; letter-spacing: 5px; text-transform: uppercase; color: var(--ember); margin-bottom: 0.8rem; }
.section-heading { font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.8rem,4vw,2.6rem); letter-spacing: 1px; color: var(--text); margin-bottom: 1rem; transition: transform 0.7s cubic-bezier(0.16,1,0.3,1), text-shadow 0.7s ease; }
.section-heading.is-awake { transform: translateX(8px); text-shadow: 0 0 24px rgba(179,157,219,0.08); }
.section-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.8; max-width: 640px; margin-bottom: 3rem; }
.sep { width: min(100%, 1320px); margin: 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04) 15%, var(--border-light) 50%, rgba(255,255,255,0.04) 85%, transparent); position: relative; overflow: hidden; }
.sep::before { content: ''; position: absolute; top: 0; bottom: 0; left: -12%; width: 12%; background: linear-gradient(90deg, transparent, rgba(210,166,101,0.8), rgba(179,157,219,0.55), transparent); opacity: 0; filter: blur(0.2px); transform: skewX(-18deg); }
.sep.is-awake::before { opacity: 1; animation: sep-travel 2.8s ease-in-out infinite; }
@keyframes sep-travel {
  0% { left: -12%; }
  100% { left: 100%; }
}

/* LINKS */
#links { background: linear-gradient(180deg, rgba(14,20,36,0.7), rgba(9,14,24,0.86)); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.link-card { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; text-decoration: none; color: var(--text); transition: all 0.4s cubic-bezier(0.16,1,0.3,1); position: relative; overflow: hidden; transform-style: preserve-3d; will-change: transform; --tilt-x: 0deg; --tilt-y: 0deg; --hover-lift: 0px; transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--hover-lift)); min-width: 0; }
.link-card::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; border-radius: 16px; }
.link-card::after { content: ''; position: absolute; inset: -40% auto auto -20%; width: 50%; height: 180%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); opacity: 0; transform: rotate(18deg) translateX(-120%); transition: opacity 0.3s ease; }
.link-card:hover { border-color: transparent; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.link-card:hover::before { opacity: 1; }
.link-card:hover::after { opacity: 1; animation: sheen-pass 1.1s ease; }
.link-card.twitch::before { background: linear-gradient(135deg, rgba(145,70,255,0.12), transparent); }
.link-card.twitch:hover { border-color: rgba(145,70,255,0.3); }
.link-card.youtube::before { background: linear-gradient(135deg, rgba(255,0,0,0.1), transparent); }
.link-card.youtube:hover { border-color: rgba(255,0,0,0.25); }
.link-card.discord::before { background: linear-gradient(135deg, rgba(88,101,242,0.12), transparent); }
.link-card.discord:hover { border-color: rgba(88,101,242,0.3); }
.link-card.twitter::before { background: linear-gradient(135deg, rgba(29,161,242,0.1), transparent); }
.link-card.twitter:hover { border-color: rgba(29,161,242,0.25); }
.link-card.tiktok::before { background: linear-gradient(135deg, rgba(254,44,85,0.1), transparent); }
.link-card.tiktok:hover { border-color: rgba(254,44,85,0.25); }
.link-card.instagram::before { background: linear-gradient(135deg, rgba(225,48,108,0.1), transparent); }
.link-card.instagram:hover { border-color: rgba(225,48,108,0.25); }
.link-card.bluesky::before { background: linear-gradient(135deg, rgba(74,139,149,0.16), rgba(179,157,219,0.08) 70%, transparent); }
.link-card.bluesky:hover { border-color: rgba(74,139,149,0.35); }
.link-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; transition: transform 0.3s; }
.link-card:hover .link-icon { transform: scale(1.1) rotate(-3deg); }
.link-icon svg { width: 22px; height: 22px; }
.link-card.twitch .link-icon { background: rgba(145,70,255,0.15); color: #9146FF; }
.link-card.youtube .link-icon { background: rgba(255,0,0,0.12); color: #FF0000; }
.link-card.discord .link-icon { background: rgba(88,101,242,0.15); color: #5865F2; }
.link-card.twitter .link-icon { background: rgba(29,161,242,0.12); color: #1DA1F2; }
.link-card.tiktok .link-icon { background: rgba(254,44,85,0.12); color: #FE2C55; }
.link-card.instagram .link-icon { background: rgba(225,48,108,0.12); color: #E1306C; }
.link-card.bluesky .link-icon { background: rgba(74,139,149,0.14); color: var(--turq); }
.link-text { position: relative; z-index: 1; min-width: 0; }
.link-name { font-size: 0.92rem; font-weight: 600; margin-bottom: 2px; }
.link-handle { font-size: 0.78rem; color: var(--text-dim); overflow-wrap: anywhere; }
.link-arrow { margin-left: auto; color: var(--text-dim); opacity: 0; transform: translateX(-8px); transition: all 0.4s cubic-bezier(0.16,1,0.3,1); position: relative; z-index: 1; font-size: 1.1rem; }
.link-card:hover .link-arrow { opacity: 1; transform: translateX(0); }
@keyframes sheen-pass {
  0% { transform: rotate(18deg) translateX(-120%); }
  100% { transform: rotate(18deg) translateX(320%); }
}

/* SCHEDULE — enriched cards */
#schedule { background: rgba(6,9,16,0.72); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--steel) transparent;
  padding-bottom: 4px;
}
.day-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem 1rem;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --hover-lift: 0px;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--hover-lift));
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.day-card::before {
  content: '';
  position: absolute;
  inset: auto 18% -34px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210,166,101,0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.day-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.25); }
.day-card:hover::before, .day-card.active::before { opacity: 1; }

/* Active (live) cards */
.day-card.active {
  border-color: rgba(200,100,48,0.3);
  background: linear-gradient(170deg, rgba(200,100,48,0.06), var(--bg2));
}
.day-card.active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  border-radius: 2px;
}
.day-card.active:hover { box-shadow: 0 8px 30px rgba(200,100,48,0.12); }

/* Accent variants */
.day-card.accent-gold::after { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.day-card.accent-teal { border-color: rgba(74,139,149,0.25); background: linear-gradient(170deg, rgba(74,139,149,0.05), var(--bg2)); }
.day-card.accent-teal::after { background: linear-gradient(90deg, transparent, var(--turq), transparent); }

/* Special card (ember glow) */
.day-card.special {
  border-color: rgba(200,100,48,0.35);
  background: linear-gradient(170deg, rgba(200,100,48,0.1), rgba(210,166,101,0.04), var(--bg2));
  box-shadow: 0 0 20px rgba(200,100,48,0.06);
}
.day-card.special::after { background: linear-gradient(90deg, transparent, var(--ember-glow), var(--gold), var(--ember-glow), transparent); }

/* OFF cards */
.day-card.off {
  opacity: 0.55;
  border-style: dashed;
}
.day-card.off:hover { opacity: 0.75; }
.day-card.closed { opacity: 0.4; }

/* Emoji */
.day-emoji {
  font-size: 1.3rem;
  margin-bottom: 0.1rem;
  line-height: 1;
}

/* Day name + date */
.day-name {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.day-date {
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--text-dim);
  opacity: 0.7;
  font-size: 0.6rem;
}
.day-card.active .day-name { color: var(--ember); }
.day-card.special .day-name { color: var(--ember-glow); }

/* Status */
.day-status {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
}
.day-card.active .day-status { color: var(--text); }
.off-status { color: var(--text-dim); font-style: italic; }
.day-time {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 2px;
}

/* Title & description */
.day-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}
.off-title { color: var(--text-muted); }
.day-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.off-detail {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Tags */
.day-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}
.day-type {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
}
.day-type.gaming { background: rgba(74,139,149,0.15); color: var(--turq); }
.day-type.chill { background: rgba(179,157,219,0.15); color: var(--lavande); }
.day-type.special { background: rgba(200,100,48,0.15); color: var(--ember); }
.day-type.horror { background: rgba(220,50,50,0.12); color: #e74c3c; }
.day-type.creative { background: rgba(210,166,101,0.12); color: var(--gold); }
.day-type.justchat { background: rgba(168,230,207,0.12); color: var(--menthe); }
.day-type.community { background: rgba(64,68,155,0.12); color: var(--lavande); }

/* Lore quote */
.day-lore {
  font-size: 0.62rem;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  opacity: 0.6;
}

.schedule-image-zone { margin-top: 3rem; border: 2px dashed var(--border-light); border-radius: 20px; overflow: hidden; background: var(--bg2); transition: border-color 0.3s; }
.schedule-image-zone:hover { border-color: rgba(200,100,48,0.25); }
.schedule-image-zone img { width: 100%; height: auto; display: block; border-radius: 18px; }
.schedule-image-label { text-align: center; font-size: 0.72rem; color: var(--text-dim); margin-top: 1rem; letter-spacing: 2px; text-transform: uppercase; }
.schedule-note { text-align: center; font-size: 0.8rem; color: var(--text-dim); margin-top: 2rem; font-style: italic; }

/* LORE */
#lore { background: linear-gradient(180deg, rgba(14,20,36,0.76), rgba(8,12,22,0.9)); position: relative; overflow: hidden; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
#lore::before { content: ''; position: absolute; top: -200px; right: -200px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(200,100,48,0.04) 0%, transparent 70%); pointer-events: none; animation: lore-glow 8s ease-in-out infinite alternate; }
#lore::after { content: ''; position: absolute; inset: -12%; background: conic-gradient(from 220deg at 50% 50%, rgba(179,157,219,0.12), rgba(64,68,155,0.04), rgba(74,139,149,0.14), rgba(210,166,101,0.08), rgba(200,100,48,0.1), rgba(179,157,219,0.12)); filter: blur(50px); opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease, transform 1.4s ease; pointer-events: none; }
@keyframes lore-glow { 0% { transform: translate(0,0) scale(1); opacity: 0.5; } 100% { transform: translate(-40px,40px) scale(1.2); opacity: 1; } }
.lore-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); gap: 4rem; align-items: start; }
.lore-text p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.85; margin-bottom: 1.5rem; position: relative; z-index: 2; }
.lore-text p:first-of-type::first-letter { font-family: var(--font-accent); font-size: 3.4rem; float: left; line-height: 1; margin-right: 12px; margin-top: 4px; color: var(--ember); }
.lore-cat-runner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.4rem;
  height: 110px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.8s ease;
  z-index: 3;
  --cat-x: 0px;
  --cat-y: 10px;
  --cat-tilt: 0deg;
  --cat-flip: 1;
  --trail-width: 140px;
  --trail-opacity: 0.16;
  --cat-travel-duration: 2.4s;
  --cat-step-duration: 0.56s;
}
.lore-cat-trail,
.lore-cat-trail::before,
.lore-cat-trail::after {
  position: absolute;
  content: '';
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.24), transparent);
  filter: blur(0.4px);
}
.lore-cat-trail {
  left: max(0px, calc(var(--cat-x) - var(--trail-width) + 38px));
  width: var(--trail-width);
  bottom: 38px;
  opacity: var(--trail-opacity);
  transition: left var(--cat-travel-duration) cubic-bezier(0.22, 1, 0.36, 1), width var(--cat-travel-duration) ease, opacity 0.5s ease;
}
.lore-cat-trail::before {
  left: 12%;
  right: 14%;
  bottom: 14px;
  background: linear-gradient(90deg, transparent, rgba(179,157,219,0.26), transparent);
}
.lore-cat-trail::after {
  left: 20%;
  right: 20%;
  bottom: -12px;
  background: linear-gradient(90deg, transparent, rgba(74,139,149,0.24), transparent);
}
.lore-cat-shell {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 132px;
  transform: translate3d(var(--cat-x), var(--cat-y), 0) scaleX(var(--cat-flip)) rotate(var(--cat-tilt));
  transform-origin: center bottom;
  transition: transform var(--cat-travel-duration) cubic-bezier(0.22,1,0.36,1);
}
.lore-cat {
  display: block;
  width: 132px;
  height: auto;
  filter:
    brightness(0) invert(0.94)
    drop-shadow(0 0 16px rgba(179,157,219,0.28))
    drop-shadow(0 0 28px rgba(74,139,149,0.16))
    drop-shadow(0 8px 16px rgba(0,0,0,0.35));
  transform: scale(0.92);
  transform-origin: center bottom;
  transition: filter 0.5s ease, opacity 0.25s ease, transform 0.18s ease;
}
body.lore-mode .lore-cat-runner {
  opacity: 1;
  transform: translateY(0);
}
body.lore-mode .lore-cat-runner.is-walking .lore-cat {
  animation: cat-step var(--cat-step-duration) linear infinite;
}
body.lore-mode .lore-cat-runner.is-resting .lore-cat {
  animation: cat-breathe 2.4s ease-in-out infinite;
}
@keyframes cat-step {
  0% { margin-bottom: 0; transform: scale(0.92) rotate(-0.8deg); filter: brightness(0) invert(0.94) drop-shadow(0 0 16px rgba(179,157,219,0.28)) drop-shadow(0 0 28px rgba(74,139,149,0.16)) drop-shadow(0 8px 16px rgba(0,0,0,0.35)); }
  25% { margin-bottom: 4px; transform: scale(0.92) rotate(1deg); filter: brightness(0) invert(0.955) drop-shadow(0 0 18px rgba(210,166,101,0.24)) drop-shadow(0 0 30px rgba(179,157,219,0.18)) drop-shadow(0 10px 16px rgba(0,0,0,0.3)); }
  50% { margin-bottom: 0; transform: scale(0.92) rotate(-0.6deg); filter: brightness(0) invert(0.945) drop-shadow(0 0 16px rgba(179,157,219,0.28)) drop-shadow(0 0 28px rgba(74,139,149,0.16)) drop-shadow(0 8px 16px rgba(0,0,0,0.34)); }
  75% { margin-bottom: 5px; transform: scale(0.92) rotate(0.9deg); filter: brightness(0) invert(0.96) drop-shadow(0 0 18px rgba(210,166,101,0.24)) drop-shadow(0 0 30px rgba(179,157,219,0.18)) drop-shadow(0 10px 16px rgba(0,0,0,0.29)); }
  100% { margin-bottom: 0; transform: scale(0.92) rotate(-0.8deg); filter: brightness(0) invert(0.94) drop-shadow(0 0 16px rgba(179,157,219,0.28)) drop-shadow(0 0 28px rgba(74,139,149,0.16)) drop-shadow(0 8px 16px rgba(0,0,0,0.35)); }
}
@keyframes cat-breathe {
  0%, 100% { margin-bottom: 0; }
  50% { margin-bottom: 3px; }
}
.lore-traits { display: flex; flex-direction: column; gap: 12px; }
.trait { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; transition: all 0.4s cubic-bezier(0.16,1,0.3,1); transform-style: preserve-3d; will-change: transform; --tilt-x: 0deg; --tilt-y: 0deg; --hover-lift: 0px; transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--hover-lift)); }
.trait:hover { border-color: var(--border-light); box-shadow: -4px 0 0 var(--ember), 0 16px 28px rgba(0,0,0,0.18); }
.trait-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; transition: transform 0.3s; }
.trait:hover .trait-icon { transform: scale(1.15) rotate(-5deg); }
.trait-icon.ember { background: rgba(200,100,48,0.12); }
.trait-icon.turq { background: rgba(74,139,149,0.12); }
.trait-icon.gold { background: rgba(210,166,101,0.12); }
.trait-icon.lavande { background: rgba(179,157,219,0.12); }
.trait-icon.indigo { background: rgba(64,68,155,0.12); }
.trait-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 2px; }
.trait-value { font-size: 0.88rem; font-weight: 500; color: var(--text); }

/* MEDIA — redesigned */
#latest-media {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(200,100,48,0.04), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(179,157,219,0.04), transparent 50%),
    linear-gradient(180deg, rgba(10,15,28,0.82), rgba(7,11,20,0.92));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.media-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(170deg, rgba(14,20,36,0.88), rgba(8,11,20,0.96));
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s cubic-bezier(0.16,1,0.3,1);
  position: relative;
}
.media-card:hover {
  border-color: rgba(200,100,48,0.2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}
.media-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.media-card:hover::before { opacity: 1; }
.media-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background:
    radial-gradient(circle at 40% 40%, rgba(179,157,219,0.12), transparent 55%),
    linear-gradient(180deg, rgba(14,20,36,0.9), rgba(6,9,16,0.98));
}
.media-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.media-card:hover .media-visual img {
  transform: scale(1.04);
}
.media-visual::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(8,11,20,0.85));
  pointer-events: none;
}
.media-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(6,9,16,0.78);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 6px;
}
.media-badge.youtube {
  color: #ff6b6b;
  border-color: rgba(255,107,107,0.2);
}
.media-badge.twitch {
  color: #c09cff;
  border-color: rgba(192,156,255,0.2);
}
.media-badge.live {
  color: #fff;
  background: linear-gradient(135deg, rgba(59,165,92,0.9), rgba(40,140,75,0.9));
  border-color: rgba(59,165,92,0.4);
  box-shadow: 0 0 16px rgba(59,165,92,0.3);
  animation: badge-live-glow 2s ease-in-out infinite;
}
.media-badge.live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: live-dot-pulse 1.6s ease-in-out infinite;
}
@keyframes badge-live-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(59,165,92,0.3); }
  50% { box-shadow: 0 0 24px rgba(59,165,92,0.5); }
}
.media-copy {
  padding: 1.4rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  flex: 1;
}
.media-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.7rem;
}
.media-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.7rem;
  overflow-wrap: anywhere;
}
.media-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.media-pill {
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.3s;
}
.media-card:hover .media-pill { border-color: rgba(255,255,255,0.1); }
.media-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
  align-self: flex-start;
}
.media-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(210,166,101,0.06);
}
.media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  border-radius: 24px;
  border: 1px dashed var(--border-light);
  color: var(--text-dim);
  text-align: center;
  padding: 2rem;
}
.media-card.error {
  border-color: rgba(200,100,48,0.2);
  opacity: 0.7;
}
.media-card.error .media-visual {
  filter: grayscale(0.6) brightness(0.7);
}
/* Twitch card live state */
#latest-twitch-card.is-live {
  border-color: rgba(59,165,92,0.25);
  box-shadow: 0 0 40px rgba(59,165,92,0.06);
}
#latest-twitch-card.is-live::before {
  background: linear-gradient(90deg, transparent, rgba(59,165,92,0.4), transparent);
  opacity: 1;
}

/* FOOTER */
footer { padding: 4rem 2rem; text-align: center; background: rgba(6,9,16,0.72); border-top: 1px solid var(--border); position: relative; z-index: 1; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.footer-symbol { font-family: var(--font-accent); font-size: 0.85rem; letter-spacing: 6px; color: var(--text-dim); margin-bottom: 0.8rem; }
.footer-name { font-family: var(--font-accent); font-size: 1.4rem; letter-spacing: 4px; color: var(--text-muted); }
.footer-name span { color: var(--ember); }
.footer-copy { font-size: 0.7rem; color: var(--text-dim); margin-top: 0.8rem; letter-spacing: 1px; }
.footer-deco { margin-top: 2rem; display: flex; justify-content: center; gap: 6px; }
.footer-deco span { width: 4px; height: 4px; border-radius: 50%; background: var(--steel); opacity: 0.5; }
.footer-deco span:nth-child(2) { background: var(--ember); opacity: 0.8; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr); gap: 2.4rem; }
  .hero-title { font-size: clamp(3.8rem, 8vw, 6.2rem); }
  .hero-depth-word.depth-back { left: 1%; letter-spacing: 0.22em; }
  .hero-depth-word.depth-front { right: -1%; }
  .hero-avatar { width: min(48vw, 620px); }
  .hero-stage { min-height: 620px; }
  .schedule-grid { grid-template-columns: repeat(7, minmax(150px, 1fr)); }
}
@media (max-width: 900px) {
  nav { padding: 0.75rem 1.2rem; align-items: flex-start; }
  .nav-brand { font-size: 1rem; letter-spacing: 2px; }
  .nav-links { gap: 0.8rem 1rem; justify-content: flex-start; }
  .nav-links a { font-size: 0.66rem; letter-spacing: 1.6px; }
  .hero { padding: 7.5rem 1.25rem 4rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 1.8rem; }
  .hero-content { max-width: 100%; order: 2; }
  .hero-stage { order: 1; min-height: 500px; width: min(100%, 620px); margin: 0 auto; }
  .hero-avatar { width: min(82vw, 480px); }
  .hero-copy-panel { margin-left: auto; margin-right: auto; }
  .hero-buttons, .hero-facts { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-depth-word.depth-back { top: 2%; left: 50%; transform: translateX(-50%); }
  .hero-depth-word.depth-front { right: 50%; bottom: 8%; transform: translateX(50%); }
  .hero-sigil-card { right: 2%; top: 10%; width: min(230px, 40%); text-align: left; }
  .section-inner { max-width: 100%; }
  .schedule-grid { grid-template-columns: repeat(7, minmax(140px, 1fr)); }
}
@media (max-width: 768px) {
  nav { padding: 0.7rem 1rem; flex-direction: column; justify-content: center; }
  .nav-brand { width: 100%; text-align: center; }
  .nav-links { display: flex; width: 100%; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
  .nav-links a { padding: 0.4rem 0.6rem; font-size: 0.62rem; letter-spacing: 1.2px; border: 1px solid var(--border-light); border-radius: 999px; background: rgba(255,255,255,0.03); }
  .schedule-grid { grid-template-columns: repeat(7, minmax(130px, 1fr)); }
  .lore-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .links-grid { grid-template-columns: 1fr; }
  section { padding: 4.5rem 1rem; }
  .section-heading { font-size: clamp(1.5rem, 5vw, 2rem); }
  .section-desc { font-size: 0.88rem; }
  .hero::after { inset: 4% 2% 6%; border-radius: 30px; }
  .hero-content { width: min(100%, 22rem); margin: 0 auto; }
  .hero-title { font-size: clamp(2.1rem, 11vw, 3.2rem); letter-spacing: 0; line-height: 1; }
  .hero-title .hero-title-soft { display: flex; flex-direction: column; align-items: center; }
  .hero-title em { display: block; }
  .hero-kicker { font-size: 0.78rem; letter-spacing: 2px; line-height: 1.5; }
  .hero-subtitle { font-size: 1rem; line-height: 1.75; }
  .hero-facts { width: 100%; display: grid; grid-template-columns: 1fr; align-items: stretch; gap: 0.6rem; }
  .hero-fact { width: 100%; justify-content: center; padding: 0.7rem 0.8rem; font-size: 0.66rem; letter-spacing: 0.08em; }
  .hero-buttons { width: 100%; }
  .hero-cta, .hero-cta-secondary { width: 100%; padding: 14px 18px; letter-spacing: 1.3px; }
  .hero-depth-word.depth-back { font-size: clamp(3.1rem, 14vw, 5.4rem); width: 100%; text-align: center; }
  .hero-depth-word.depth-front { font-size: clamp(2.4rem, 10vw, 4rem); bottom: 12%; }
  .hero-sigil-card { position: relative; top: auto; right: auto; width: min(100%, 270px); margin: 0 auto 1rem; text-align: left; }
  .hero-stage { min-height: 430px; }
  .media-grid { grid-template-columns: 1fr; }
  .media-visual { aspect-ratio: 16/9; }
  .media-copy { padding: 1.2rem 1rem 1.1rem; }
  .media-title { font-size: 1.25rem; }
  .media-desc { font-size: 0.92rem; line-height: 1.65; }
  .lore-cat { width: 104px; }
  .lore-cat-runner { height: 92px; }
  .footer-community { font-size: 0.65rem; letter-spacing: 1.5px; gap: 0.2rem; }
  .section-divider { padding: 2rem 0; }
  #community { margin-bottom: 3rem; }
}
@media (max-width: 480px) {
  nav { padding: 0.65rem 0.75rem; }
  .nav-links { gap: 0.4rem; }
  .nav-links li { flex-shrink: 0; }
  .nav-links a { padding: 0.35rem 0.5rem; font-size: 0.58rem; letter-spacing: 1px; }
  .schedule-grid { grid-template-columns: repeat(7, minmax(120px, 1fr)); }
  .hero-stage { min-height: 360px; }
  .hero-avatar { width: min(84vw, 300px); }
  .hero-facts { gap: 0.5rem; }
  .hero-fact { width: 100%; justify-content: center; padding: 0.65rem 0.7rem; font-size: 0.62rem; letter-spacing: 0.04em; }
  .hero-content,
  .hero-copy-panel,
  .hero-kicker,
  .hero-title,
  .hero-subtitle { width: 100%; max-width: 100%; }
  .hero-content { width: min(100%, 18rem); }
  .hero-title { font-size: clamp(1.65rem, 9.5vw, 2.2rem); letter-spacing: 0; line-height: 1.04; word-break: break-word; }
  .hero-kicker { font-size: 0.68rem; letter-spacing: 0.08em; line-height: 1.45; }
  .hero-subtitle { font-size: 0.9rem; line-height: 1.55; }
  .hero-depth-word.depth-back,
  .hero-depth-word.depth-front { display: none; }
  .link-card { padding: 16px 18px; }
  .link-arrow { display: none; }
  .media-badge { top: 12px; left: 12px; }
  .media-pill { width: 100%; justify-content: center; text-align: center; }
  .footer-community { flex-direction: column; gap: 0.3rem; }
}

@media (hover: none), (pointer: coarse) {
  body::before,
  body::after,
  .site-ambience,
  .lore-portal,
  .hero-depth-word,
  .hero-orbit,
  .hero-scroll,
  .lore-cat-runner { display: none !important; }
  nav,
  #links,
  #schedule,
  #lore,
  #latest-media,
  #community,
  footer {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .hero::before,
  .hero-avatar::before,
  #lore::before,
  #lore::after {
    animation: none !important;
    filter: none !important;
    transform: none !important;
  }
  .hero-avatar img {
    animation: none !important;
    filter: drop-shadow(0 16px 28px rgba(0,0,0,0.38));
  }
  .hero-stage,
  .hero-avatar,
  .hero-content,
  .media-card,
  .media-visual img {
    transform: none !important;
  }
  .reveal,
  .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .link-card,
  .day-card,
  .trait,
  .community-card,
  .hero-cta,
  .hero-cta-secondary,
  .hero-sigil-card { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .site-ambience,
  .lore-portal,
  .hero-scroll { display: none; }
}

/* SCROLL REVEAL */
.reveal { opacity: 0; transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1), filter 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.from-bottom { transform: translateY(40px); }
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.from-scale { transform: scale(0.92); }
.reveal.visible { opacity: 1; transform: translateY(0) translateX(0) scale(1); }
.hero-cta, .hero-cta-secondary, .hero-sigil-card { --tilt-x: 0deg; --tilt-y: 0deg; --hover-lift: 0px; transform-style: preserve-3d; will-change: transform; }
.hero-cta, .hero-cta-secondary { transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--hover-lift)); }
.hero-sigil-card { transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--hover-lift)); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), color 0.3s ease; }
.hero-sigil-card:hover { color: var(--text); }
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.4s; }

body.lore-mode::before {
  opacity: 1;
  background:
    radial-gradient(circle at 18% 18%, rgba(210,166,101,0.14), transparent 0 18%),
    radial-gradient(circle at 82% 16%, rgba(179,157,219,0.18), transparent 0 18%),
    radial-gradient(circle at 74% 76%, rgba(74,139,149,0.16), transparent 0 22%),
    radial-gradient(circle at 24% 84%, rgba(200,100,48,0.14), transparent 0 18%),
    linear-gradient(125deg, rgba(179,157,219,0.09), transparent 24%, rgba(210,166,101,0.08) 44%, transparent 60%, rgba(74,139,149,0.08) 76%, transparent 100%);
}
body.lore-mode::after { opacity: 0.42; }
body.lore-mode .site-ambience .particles::before,
body.lore-mode .site-ambience .particles::after { opacity: 0.72; filter: blur(68px) saturate(1.16); }
body.lore-mode .site-ambience .particle { animation-duration: 12s; }
body.lore-mode .lore-portal { opacity: 1; }
body.lore-mode .lore-portal::before,
body.lore-mode .lore-portal::after { opacity: 1; }
body.lore-mode .lore-portal::before { transform: scale(1); filter: blur(22px) saturate(1.18); }
body.lore-mode .lore-portal::after { transform: scale(1); filter: blur(18px); }
body.lore-mode .portal-ring {
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(1.02) rotate(18deg);
}
body.lore-mode .portal-shard {
  opacity: 0.78;
  box-shadow: 0 0 24px currentColor;
}
body.lore-mode .portal-shard.s1,
body.lore-mode .portal-shard.s4 { color: rgba(210,166,101,0.9); transform: rotate(14deg) scaleX(1.2); }
body.lore-mode .portal-shard.s2,
body.lore-mode .portal-shard.s5 { color: rgba(179,157,219,0.85); transform: rotate(-18deg) scaleX(1.15); }
body.lore-mode .portal-shard.s3,
body.lore-mode .portal-shard.s6 { color: rgba(74,139,149,0.85); transform: rotate(-8deg) scaleX(1.1); }
body.lore-mode #lore {
  background: linear-gradient(180deg, rgba(11,16,32,0.72), rgba(7,10,20,0.86));
  box-shadow: inset 0 0 120px rgba(179,157,219,0.08), inset 0 0 180px rgba(74,139,149,0.06), 0 0 60px rgba(179,157,219,0.08);
}
body.lore-mode #lore::after { opacity: 0.9; transform: scale(1); }
body.lore-mode #links,
body.lore-mode #schedule,
body.lore-mode footer {
  background-color: rgba(6,9,16,0.62);
}

/* ═══════════════════════════════════════
   SCROLL PROGRESS BAR (J6)
   ═══════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--gold), var(--ember-glow));
  z-index: 110;
  pointer-events: none;
  transition: width 60ms linear;
  box-shadow: 0 0 8px rgba(200,100,48,0.4);
}

/* ═══════════════════════════════════════
   NAV LIVE DOT (V4)
   ═══════════════════════════════════════ */
.nav-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--steel);
  vertical-align: middle;
  margin-left: 5px;
  transition: background 0.4s, box-shadow 0.4s;
  position: relative;
}
.nav-live-dot.live {
  background: #3ba55c;
  box-shadow: 0 0 8px rgba(59,165,92,0.6), 0 0 20px rgba(59,165,92,0.3);
  animation: live-dot-pulse 1.6s ease-in-out infinite;
}
.nav-live-dot.live::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(59,165,92,0.4);
  animation: live-ring-expand 1.6s ease-out infinite;
}
.nav-live-dot.offline {
  background: var(--text-dim);
  opacity: 0.5;
}
@keyframes live-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.85); }
}
@keyframes live-ring-expand {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ═══════════════════════════════════════
   HERO TAGLINE (J2/V3)
   ═══════════════════════════════════════ */
.hero-tagline {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold);
  min-height: 1.6em;
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.hero-tagline .tagline-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--gold);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursor-blink 0.7s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ═══════════════════════════════════════
   SEPARATOR DECORATORS (V10/P16)
   ═══════════════════════════════════════ */
.sep-deco {
  display: block;
  text-align: center;
  position: relative;
  top: -0.55em;
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--text-dim);
  background: var(--bg);
  padding: 0 1.2rem;
  margin: 0 auto;
  width: fit-content;
}

/* ═══════════════════════════════════════
   BENTO LINK CARD (P14)
   ═══════════════════════════════════════ */
.link-card.bento::before { background: linear-gradient(135deg, rgba(210,166,101,0.12), rgba(179,157,219,0.08) 70%, transparent); }
.link-card.bento:hover { border-color: rgba(210,166,101,0.3); }
.link-card.bento .link-icon { background: rgba(210,166,101,0.14); color: var(--gold); }

/* ═══════════════════════════════════════
   CHARACTER CARD (V1/P9)
   ═══════════════════════════════════════ */
#character { background: linear-gradient(180deg, rgba(10,15,28,0.78), rgba(8,12,22,0.9)); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }

.character-card {
  max-width: 960px;
  margin: 0 auto 3.5rem;
  background: linear-gradient(160deg, rgba(14,20,36,0.96), rgba(8,11,20,0.99));
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2.8rem 3rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.35),
    0 0 1px rgba(200,100,48,0.2),
    inset 0 1px 0 rgba(255,255,255,0.05);
}
.character-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), var(--gold), var(--lavande), var(--ember), transparent);
  border-radius: 2px;
}
.character-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(200,100,48,0.08), transparent 45%),
    radial-gradient(ellipse at 85% 100%, rgba(179,157,219,0.07), transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(74,139,149,0.03), transparent 60%);
  pointer-events: none;
}
.character-card-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.character-card-header .char-avatar-mini {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(200,100,48,0.3);
  box-shadow: 0 0 30px rgba(200,100,48,0.15);
  margin-bottom: 0.8rem;
}
.character-card-header h3 {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  letter-spacing: 4px;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.character-card-header .char-subtitle {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.char-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.char-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
}
.char-stat:hover {
  border-color: rgba(200,100,48,0.15);
  background: rgba(200,100,48,0.03);
}
.char-stat-key {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ember);
}
.char-stat-val {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.char-card-details {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.char-detail-title {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1rem;
}
.char-constants {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
}
.char-constants li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 1.2rem;
  position: relative;
}
.char-constants li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.65rem;
  top: 0.3em;
}

/* ═══════════════════════════════════════
   OUTFIT GALLERY (V2/P10)
   ═══════════════════════════════════════ */
.outfit-gallery {
  max-width: 900px;
  margin: 0 auto;
}
.outfit-gallery-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 1px;
}
.outfit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.outfit-card {
  background: linear-gradient(170deg, rgba(14,20,36,0.9), rgba(8,11,20,0.96));
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.outfit-card:hover {
  border-color: rgba(200,100,48,0.25);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.outfit-visual {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(179,157,219,0.08), transparent 60%), var(--bg2);
}
.outfit-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.outfit-card:hover .outfit-visual img {
  transform: scale(1.05);
}
.outfit-info {
  padding: 1.2rem 1.4rem 1.4rem;
}
.outfit-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}
.outfit-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   ENRICHED FOOTER (V13/P13)
   ═══════════════════════════════════════ */
.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}
.footer-tagline {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-dim);
  margin-top: 0.6rem;
  letter-spacing: 0.5px;
}
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.footer-socials a {
  color: var(--text-dim);
  transition: color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
}
.footer-socials a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}
.footer-community {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-community a {
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.footer-community a:hover { opacity: 0.7; }
.footer-community strong.frv { color: var(--lavande); }
.footer-community strong.nya { color: #ff8c00; }
.footer-community-sep {
  color: var(--text-dim);
  opacity: 0.4;
  margin: 0 0.15rem;
}
.footer-clock {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-top: 0.6rem;
  min-height: 1.2em;
}

/* ═══════════════════════════════════════
   LIVE TOAST (J10)
   ═══════════════════════════════════════ */
.live-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  background: rgba(14,20,36,0.95);
  border: 1px solid rgba(200,100,48,0.3);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  backdrop-filter: blur(16px);
  font-size: 0.82rem;
  color: var(--text);
  animation: toast-in 0.5s cubic-bezier(0.16,1,0.3,1);
}
.live-toast[hidden] { display: none; }
.live-toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e74c3c;
  box-shadow: 0 0 8px rgba(231,76,60,0.5);
  animation: live-pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
.live-toast a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.3rem;
}
.live-toast a:hover { text-decoration: underline; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════════════
   OLED TOGGLE (V16)
   ═══════════════════════════════════════ */
.oled-toggle {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 200;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(14,20,36,0.85);
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.oled-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.1);
}

/* OLED MODE */
body.oled-mode {
  --bg: #000000;
  --bg2: #050505;
  --bg3: #0a0a0a;
  --border: rgba(255,255,255,0.04);
  --border-light: rgba(255,255,255,0.07);
}
body.oled-mode,
body.oled-mode .hero::before,
body.oled-mode #links,
body.oled-mode #schedule,
body.oled-mode #lore,
body.oled-mode #character,
body.oled-mode #latest-media,
body.oled-mode footer {
  background: #000 !important;
}
body.oled-mode::before,
body.oled-mode::after {
  opacity: 0.3;
}
body.oled-mode .site-ambience { opacity: 0.4; }
body.oled-mode .character-card,
body.oled-mode .media-card,
body.oled-mode .link-card,
body.oled-mode .day-card,
body.oled-mode .trait,
body.oled-mode .outfit-card {
  background: #050505;
}
body.oled-mode nav { background: rgba(0,0,0,0.85); }
body.oled-mode nav.scrolled { background: rgba(0,0,0,0.95); }

/* ═══════════════════════════════════════
   PALETTE SHOWCASE (V17/J7)
   ═══════════════════════════════════════ */
.palette-showcase {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(6,9,16,0.95);
  backdrop-filter: blur(24px);
  padding: 2rem;
  animation: palette-fade-in 0.4s ease;
}
.palette-showcase[hidden] { display: none; }
.palette-showcase h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 2rem;
  letter-spacing: 2px;
}
.palette-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}
.palette-close:hover { color: var(--text); }
.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 700px;
  width: 100%;
}
.palette-swatch {
  aspect-ratio: 1;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.palette-swatch:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.palette-swatch span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.palette-swatch small {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
@keyframes palette-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ═══════════════════════════════════════
   SKELETON SHIMMER (V5)
   ═══════════════════════════════════════ */
.media-card.loading .media-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}
.media-card.loading .media-title,
.media-card.loading .media-desc {
  color: transparent;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.media-card.loading .media-title::after,
.media-card.loading .media-desc::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════
   RICHER REVEALS (J8)
   ═══════════════════════════════════════ */
.reveal.blur-in {
  filter: blur(8px);
  transform: translateY(20px);
}
.reveal.blur-in.visible {
  filter: blur(0);
  transform: translateY(0);
}
.reveal.scale-rotate {
  transform: scale(0.85) rotate(-2deg);
}
.reveal.scale-rotate.visible {
  transform: scale(1) rotate(0deg);
}

/* ═══════════════════════════════════════
   TODAY HIGHLIGHT (J14)
   ═══════════════════════════════════════ */
.day-card.today {
  border-color: rgba(210,166,101,0.35);
  box-shadow: 0 0 20px rgba(210,166,101,0.08);
}
.day-card.today .day-name {
  color: var(--gold);
}
.day-card.today::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

/* ═══════════════════════════════════════
   CUSTOM CURSOR (V9)
   ═══════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
  body:not(.oled-mode) {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0%25' stop-color='%23D2A665'/%3E%3Cstop offset='100%25' stop-color='%23C86430'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='4' fill='url(%23g)' opacity='0.85'/%3E%3Ccircle cx='16' cy='16' r='7' fill='none' stroke='%23D2A665' stroke-width='1' opacity='0.4'/%3E%3Ccircle cx='16' cy='16' r='11' fill='none' stroke='%23B39DDB' stroke-width='0.5' opacity='0.25'/%3E%3C/svg%3E") 16 16, auto;
  }
  body:not(.oled-mode) a,
  body:not(.oled-mode) button {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0%25' stop-color='%23F4D06F'/%3E%3Cstop offset='100%25' stop-color='%23D2A665'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M16 6l2.5 5.5L24 13l-4.5 3.5L21 22l-5-3.5L11 22l1.5-5.5L8 13l5.5-1.5z' fill='url(%23g)' opacity='0.9'/%3E%3Ccircle cx='16' cy='16' r='13' fill='none' stroke='%23D2A665' stroke-width='0.6' opacity='0.3'/%3E%3C/svg%3E") 16 16, pointer;
  }
}

/* ═══════════════════════════════════════
   SECTION ACCENT SYSTEM (J18/V8)
   ═══════════════════════════════════════ */
body { --section-accent: var(--ember); }
.scroll-progress {
  background: linear-gradient(90deg, var(--section-accent), var(--gold), var(--section-accent));
}

/* ═══════════════════════════════════════
   LORE PAGE-TURN EFFECT (V6)
   ═══════════════════════════════════════ */
.lore-text {
  position: relative;
  padding-bottom: 6.5rem;
}
.lore-text::before {
  content: '';
  position: absolute;
  top: -1rem;
  bottom: 5rem;
  left: -1.5rem;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold) 20%, var(--ember) 50%, var(--lavande) 80%, transparent);
  opacity: 0;
  transition: opacity 0.8s ease;
}
body.lore-mode .lore-text::before { opacity: 0.4; }
.lore-page-border {
  position: absolute;
  inset: -0.5rem -1rem 5rem -1rem;
  border: 1px solid rgba(210,166,101,0.08);
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease 0.3s;
  background: linear-gradient(180deg, rgba(210,166,101,0.02), transparent 30%, transparent 70%, rgba(179,157,219,0.02));
}
body.lore-mode .lore-page-border { opacity: 1; }
.lore-text p.lore-revealed {
  border-left: 2px solid rgba(210,166,101,0.15);
  padding-left: 1rem;
  margin-left: -1rem;
  transition: border-color 0.5s ease, padding-left 0.5s ease;
}
.lore-text p.lore-revealed:nth-child(odd) { border-left-color: rgba(179,157,219,0.15); }

/* ═══════════════════════════════════════
   SECTION DYNAMIC GRADIENTS (V8)
   ═══════════════════════════════════════ */
section {
  transition: background 1.2s ease;
}
body[data-section="links"] #links { background: linear-gradient(180deg, rgba(14,20,36,0.7), rgba(9,14,24,0.86), rgba(74,139,149,0.03)); }
body[data-section="schedule"] #schedule { background: rgba(6,9,16,0.72); box-shadow: inset 0 0 80px rgba(210,166,101,0.02); }
body[data-section="lore"] { }
body[data-section="character"] #character { background: linear-gradient(180deg, rgba(10,15,28,0.78), rgba(8,12,22,0.9), rgba(64,68,155,0.03)); }
body[data-section="latest-media"] #latest-media { background: linear-gradient(180deg, rgba(10,15,28,0.82), rgba(7,11,20,0.92), rgba(200,100,48,0.03)); }

/* ═══════════════════════════════════════
   DISCORD PREVIEW CARD (V15)
   ═══════════════════════════════════════ */
.discord-preview {
  grid-column: 1 / -1;
  background: linear-gradient(160deg, rgba(88,101,242,0.08), var(--bg) 40%);
  border: 1px solid rgba(88,101,242,0.15);
  border-radius: 20px;
  padding: 1.6rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  transition: border-color 0.4s, box-shadow 0.4s;
  text-decoration: none;
  color: var(--text);
}
.discord-preview:hover {
  border-color: rgba(88,101,242,0.35);
  box-shadow: 0 12px 40px rgba(88,101,242,0.1);
}
.discord-preview-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(88,101,242,0.15);
  color: #5865F2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.discord-preview-icon svg { width: 28px; height: 28px; }
.discord-preview-info { min-width: 0; }
.discord-preview-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.discord-preview-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.discord-preview-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.discord-preview-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.discord-preview-stat .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.discord-preview-stat .dot.online { background: #3ba55c; }
.discord-preview-stat .dot.members { background: var(--steel); }
.discord-preview-roles {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.discord-role {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid;
}
.discord-preview-arrow {
  color: var(--text-dim);
  font-size: 1.4rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.discord-preview:hover .discord-preview-arrow { opacity: 1; transform: translateX(0); }
@media (max-width: 768px) {
  .discord-preview { grid-template-columns: 1fr; text-align: center; }
  .discord-preview-icon { margin: 0 auto; }
  .discord-preview-meta { justify-content: center; }
  .discord-preview-roles { justify-content: center; }
  .discord-preview-arrow { display: none; }
}

/* ═══════════════════════════════════════
   SECTION DIVIDER
   ═══════════════════════════════════════ */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 3rem 0;
}
.section-divider span {
  display: block;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.15;
}
.section-divider span:nth-child(1) { width: 4px; height: 4px; }
.section-divider span:nth-child(2) { width: 6px; height: 6px; opacity: 0.3; }
.section-divider span:nth-child(3) { width: 4px; height: 4px; }

/* ═══════════════════════════════════════
   COMMUNITY SECTION
   ═══════════════════════════════════════ */
#community {
  padding: var(--section-pad) 0;
  margin-bottom: 6rem;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.community-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
}
.community-card:hover {
  transform: translateY(-6px);
}

.community-card-inner {
  padding: 3rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(20,18,24,0.75);
  backdrop-filter: blur(12px);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* FRVTuber accent — lavande */
.community-card.frv {
  background: linear-gradient(135deg, rgba(179,136,255,0.1), rgba(179,136,255,0.02));
}
.community-card.frv:hover {
  box-shadow: 0 16px 60px rgba(179,136,255,0.2);
}
.community-card.frv .community-name { color: var(--lavande); }
.community-card.frv .community-subtitle { color: rgba(179,136,255,0.6); }
.community-card.frv .community-cta { color: var(--lavande); }
.community-card.frv .community-tag {
  background: rgba(179,136,255,0.12);
  color: var(--lavande);
}

/* Nyassobi accent — orange */
.community-card.nya {
  background: linear-gradient(135deg, rgba(255,140,0,0.1), rgba(255,140,0,0.02));
}
.community-card.nya:hover {
  box-shadow: 0 16px 60px rgba(255,140,0,0.2);
}
.community-card.nya .community-name { color: #ff8c00; }
.community-card.nya .community-subtitle { color: rgba(255,140,0,0.6); }
.community-card.nya .community-cta { color: #ff8c00; }
.community-card.nya .community-tag {
  background: rgba(255,140,0,0.12);
  color: #ff8c00;
}

.community-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.community-logo {
  width: 110px;
  height: 110px;
  border-radius: 20px;
  object-fit: contain;
  background: rgba(255,255,255,0.05);
  padding: 12px;
  flex-shrink: 0;
}
.community-card.frv .community-logo {
  box-shadow: 0 0 30px rgba(179,136,255,0.18);
}
.community-card.nya .community-logo {
  box-shadow: 0 0 30px rgba(255,140,0,0.18);
}
.community-name {
  font-family: var(--font-accent);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.2;
}
.community-subtitle {
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.community-desc {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-dim);
}

.community-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.community-tag {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

.community-stats {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--text-dim);
  opacity: 0.8;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.community-cta {
  font-size: 0.92rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: auto;
  padding-top: 0.8rem;
  transition: letter-spacing 0.3s ease;
}
.community-card:hover .community-cta {
  letter-spacing: 4px;
}

/* Responsive community */
@media (max-width: 1000px) {
  .community-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 768px) {
  .community-card-inner {
    padding: 2rem 1.6rem;
    gap: 1.4rem;
  }
  .community-header { gap: 1rem; }
  .community-logo {
    width: 72px;
    height: 72px;
    padding: 8px;
    border-radius: 14px;
  }
  .community-name { font-size: 1.5rem; letter-spacing: 1px; }
  .community-subtitle { font-size: 0.68rem; letter-spacing: 2px; }
  .community-desc { font-size: 0.92rem; line-height: 1.7; }
  .community-tags { gap: 0.35rem; }
  .community-tag { font-size: 0.6rem; padding: 0.3rem 0.65rem; }
  .community-stats { font-size: 0.82rem; padding: 1rem 0; gap: 0.5rem; }
  .community-cta { font-size: 0.78rem; letter-spacing: 2px; }
}
@media (max-width: 480px) {
  .community-card-inner {
    padding: 1.6rem 1.3rem;
    gap: 1.2rem;
  }
  .community-header { flex-direction: column; text-align: center; gap: 0.8rem; }
  .community-logo {
    width: 64px;
    height: 64px;
  }
  .community-name { font-size: 1.35rem; }
  .community-desc { font-size: 0.85rem; }
  .community-tags { justify-content: center; }
  .community-stats { align-items: center; text-align: center; font-size: 0.78rem; }
  .community-cta { text-align: center; display: block; }
}

/* ═══════════════════════════════════════
   CARNET PAGES COUNTER (V7)
   ═══════════════════════════════════════ */
.carnet-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.carnet-counter-icons {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--gold);
}
.carnet-counter-plus {
  font-size: 0.6rem;
  opacity: 0.5;
}
.carnet-counter-num {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════
   MULTI-LAYER PARALLAX (V12)
   ═══════════════════════════════════════ */
.parallax-nebula {
  position: fixed;
  inset: -15%;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  will-change: transform;
}
.parallax-nebula.nebula-1 {
  background: radial-gradient(circle at 30% 40%, rgba(179,157,219,0.3), transparent 60%);
  animation: nebula-float-1 20s ease-in-out infinite alternate;
}
.parallax-nebula.nebula-2 {
  background: radial-gradient(circle at 70% 30%, rgba(200,100,48,0.25), transparent 55%);
  animation: nebula-float-2 26s ease-in-out infinite alternate;
}
.parallax-nebula.nebula-3 {
  background: radial-gradient(circle at 50% 70%, rgba(74,139,149,0.25), transparent 55%);
  animation: nebula-float-3 22s ease-in-out infinite alternate;
}
@keyframes nebula-float-1 { 0% { transform: translate3d(-3%,-2%,0) scale(1); } 100% { transform: translate3d(4%,3%,0) scale(1.1); } }
@keyframes nebula-float-2 { 0% { transform: translate3d(2%,3%,0) scale(1.05); } 100% { transform: translate3d(-3%,-4%,0) scale(0.95); } }
@keyframes nebula-float-3 { 0% { transform: translate3d(-1%,2%,0) scale(0.95); } 100% { transform: translate3d(2%,-3%,0) scale(1.08); } }

/* ═══════════════════════════════════════
   SMOOTHER LORE TRANSITIONS (V14)
   ═══════════════════════════════════════ */
body.lore-mode .lore-portal {
  transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1);
}
body.lore-mode .lore-portal::before {
  transition: opacity 1.2s ease 0.1s, transform 1.4s cubic-bezier(0.16,1,0.3,1), filter 1.4s ease;
}
body.lore-mode .lore-portal::after {
  transition: opacity 1.2s ease 0.2s, transform 1.4s cubic-bezier(0.16,1,0.3,1) 0.1s, filter 1.4s ease;
}
body.lore-mode .portal-ring {
  transition: opacity 1.2s ease 0.15s, transform 1.4s cubic-bezier(0.16,1,0.3,1);
}
body.lore-mode .portal-shard {
  transition: opacity 0.9s ease 0.3s, transform 1.2s cubic-bezier(0.16,1,0.3,1) 0.2s;
}

/* ═══════════════════════════════════════
   CANVAS PARTICLES (J3/J5)
   ═══════════════════════════════════════ */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════
   RESPONSIVE — NEW ELEMENTS
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .char-card-stats { grid-template-columns: 1fr; }
  .char-constants { grid-template-columns: 1fr; }
  .outfit-grid { grid-template-columns: 1fr; }
  .palette-grid { grid-template-columns: repeat(3, 1fr); }
  .character-card { padding: 1.4rem 1.2rem; }
  .live-toast { bottom: 1rem; right: 1rem; left: 1rem; font-size: 0.78rem; }
  .oled-toggle { bottom: 1rem; left: 1rem; width: 36px; height: 36px; font-size: 1rem; }
  .footer-socials { gap: 0.8rem; }
  .footer-socials a svg { width: 16px; height: 16px; }
  .carnet-counter { font-size: 0.65rem; gap: 0.4rem; letter-spacing: 1.5px; }
  .carnet-counter-num { font-size: 0.78rem; }
  .carnet-counter-icons svg { width: 12px; height: 12px; }
  .lore-quote-widget { font-size: 0.82rem; padding: 0 1rem; }
  .rpg-sheet { margin: 0 -0.5rem 2rem; }
}
@media (max-width: 480px) {
  .palette-grid { grid-template-columns: repeat(2, 1fr); }
  .outfit-info { padding: 1rem; }
  .outfit-name { font-size: 0.95rem; }
  .outfit-desc { font-size: 0.8rem; }
  .rpg-stats-grid { gap: 0.8rem; }
  .rpg-stat-name { font-size: 0.68rem; }
  .rpg-stat-val { font-size: 0.72rem; }
  .footer-name { font-size: 1.1rem; letter-spacing: 3px; }
  .footer-tagline { font-size: 0.82rem; }
  .footer-copy { font-size: 0.62rem; }
}

/* ═══════════════════════════════════════
   SCROLL PROGRESS BAR — READING (11)
   ═══════════════════════════════════════ */
/* Already exists as .scroll-progress — enhanced with gold gradient */

/* ═══════════════════════════════════════
   PAPER GRAIN OVERLAY (3)
   ═══════════════════════════════════════ */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* ═══════════════════════════════════════
   CURSOR TRAIL (7)
   ═══════════════════════════════════════ */
#cursor-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  width: 100vw;
  height: 100vh;
}

/* ═══════════════════════════════════════
   MAGNETIC BUTTONS (8)
   ═══════════════════════════════════════ */
.hero-cta,
.hero-cta-secondary {
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
}

/* ═══════════════════════════════════════
   GLASSMORPHISM NAV (15)
   ═══════════════════════════════════════ */
nav {
  background: rgba(6,9,16,0.45) !important;
  backdrop-filter: blur(20px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
nav.scrolled {
  background: rgba(6,9,16,0.78) !important;
  backdrop-filter: blur(28px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.8) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.03);
}

/* ═══════════════════════════════════════
   INK FLOW EFFECT — SECTION BORDERS (1)
   ═══════════════════════════════════════ */
.ink-flow-border {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(180deg,
    transparent,
    var(--gold) 15%,
    var(--ember) 35%,
    var(--lavande) 60%,
    var(--turq) 80%,
    transparent
  );
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.8s cubic-bezier(0.16,1,0.3,1), opacity 0.6s ease;
}
.ink-flow-border.visible {
  opacity: 0.5;
  transform: scaleY(1);
}
.ink-flow-border::after {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg,
    transparent,
    rgba(210,166,101,0.15) 20%,
    rgba(200,100,48,0.1) 40%,
    rgba(179,157,219,0.12) 65%,
    transparent
  );
  filter: blur(4px);
  opacity: 0;
  transition: opacity 1s ease 0.4s;
}
.ink-flow-border.visible::after {
  opacity: 1;
}

/* ═══════════════════════════════════════
   LORE QUOTE WIDGET (12)
   ═══════════════════════════════════════ */
.lore-quote-widget {
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 1rem;
  padding: 0.8rem 1.2rem;
  border-left: 2px solid rgba(210,166,101,0.2);
  background: rgba(210,166,101,0.03);
  border-radius: 0 8px 8px 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  opacity: 0.7;
}
.lore-quote-widget:empty { display: none; }

/* ═══════════════════════════════════════
   TWITCH LIVE TIMER (13)
   ═══════════════════════════════════════ */
.live-timer {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #3ba55c;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════
   RPG CHARACTER SHEET
   ═══════════════════════════════════════ */
.rpg-sheet {
  max-width: 1000px;
  margin: 0 auto 3.5rem;
  background:
    linear-gradient(170deg, rgba(14,20,36,0.97), rgba(8,11,20,0.99));
  border: 1px solid rgba(210,166,101,0.12);
  border-radius: 4px;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 0 60px rgba(210,166,101,0.02);
}
/* Corner decorations */
.rpg-sheet::before,
.rpg-sheet::after {
  content: '✦';
  position: absolute;
  font-size: 0.6rem;
  color: rgba(210,166,101,0.3);
  z-index: 2;
}
.rpg-sheet::before { top: 10px; left: 14px; }
.rpg-sheet::after { bottom: 10px; right: 14px; }

/* Banner */
.rpg-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.8rem;
  background: linear-gradient(90deg, rgba(200,100,48,0.12), rgba(14,20,36,0.6), rgba(179,157,219,0.1));
  border-bottom: 1px solid rgba(210,166,101,0.12);
}
.rpg-class-badge {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}
.rpg-level {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--text-dim);
}

/* Header */
.rpg-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2rem 2.2rem 1.5rem;
  align-items: center;
}
.rpg-avatar-frame {
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.rpg-avatar-img {
  width: 110px;
  height: 110px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid rgba(210,166,101,0.2);
  box-shadow: 0 0 20px rgba(200,100,48,0.1);
}
.rpg-bars { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.rpg-bar {
  position: relative;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.rpg-bar.hp { background: rgba(220,50,50,0.1); }
.rpg-bar.mp { background: rgba(60,120,220,0.1); }
.rpg-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.16,1,0.3,1);
}
.rpg-bar.hp .rpg-bar-fill { background: linear-gradient(90deg, #c0392b, #e74c3c); }
.rpg-bar.mp .rpg-bar-fill { background: linear-gradient(90deg, #2980b9, #3498db); }
.rpg-bar span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Identity */
.rpg-identity { min-width: 0; }
.rpg-name {
  font-family: var(--font-accent);
  font-size: 2rem;
  letter-spacing: 5px;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.rpg-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  line-height: 1.5;
}
.rpg-meta-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.rpg-meta-tag {
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.rpg-meta-key {
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.6rem;
  margin-right: 0.4rem;
}

/* Stats grid */
.rpg-stats-title,
.rpg-section-title {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ember);
  padding: 0 2.2rem;
  margin-bottom: 0.8rem;
  margin-top: 0.3rem;
}
.rpg-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 0 2.2rem 1.5rem;
}
.rpg-stat {
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.rpg-stat:hover {
  border-color: rgba(200,100,48,0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.rpg-stat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.rpg-stat-icon { font-size: 0.85rem; }
.rpg-stat-name {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  flex: 1;
}
.rpg-stat-val {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 1px;
}
.rpg-stat-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}
.rpg-stat-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ember), var(--gold));
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
}

/* Skills */
.rpg-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 2.2rem 1.5rem;
}
.rpg-skill {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid;
  transition: transform 0.2s, box-shadow 0.2s;
}
.rpg-skill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.rpg-skill.ember { color: var(--ember); border-color: rgba(200,100,48,0.25); background: rgba(200,100,48,0.06); }
.rpg-skill.turq { color: var(--turq); border-color: rgba(74,139,149,0.25); background: rgba(74,139,149,0.06); }
.rpg-skill.lavande { color: var(--lavande); border-color: rgba(179,157,219,0.25); background: rgba(179,157,219,0.06); }
.rpg-skill.gold { color: var(--gold); border-color: rgba(210,166,101,0.25); background: rgba(210,166,101,0.06); }
.rpg-skill.indigo { color: var(--lavande); border-color: rgba(64,68,155,0.25); background: rgba(64,68,155,0.06); }

/* Passives & Equipment */
.rpg-passives,
.rpg-equipment {
  list-style: none;
  padding: 0 2.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rpg-passives li,
.rpg-equipment li {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 1.4rem;
  position: relative;
}
.rpg-passives li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--lavande);
  font-size: 0.5rem;
  top: 0.45em;
}
.rpg-equipment li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.55rem;
  top: 0.35em;
}
.rpg-passives strong {
  color: var(--text);
  font-weight: 600;
}

/* Quote */
.rpg-quote {
  text-align: center;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-dim);
  padding: 1.2rem 2.2rem;
  border-top: 1px solid rgba(210,166,101,0.08);
  background: rgba(210,166,101,0.02);
  letter-spacing: 0.5px;
}

/* RPG responsive */
@media (max-width: 768px) {
  .rpg-header { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .rpg-stats-grid { grid-template-columns: 1fr 1fr; }
  .rpg-meta-row { justify-content: center; }
  .rpg-identity { text-align: center; }
}
@media (max-width: 480px) {
  .rpg-stats-grid { grid-template-columns: 1fr; }
  .rpg-header { padding: 1.5rem 1.2rem; }
  .rpg-stats-title, .rpg-section-title { padding: 0 1.2rem; }
  .rpg-stats-grid, .rpg-skills, .rpg-passives, .rpg-equipment { padding-left: 1.2rem; padding-right: 1.2rem; }
  .rpg-quote { padding: 1rem 1.2rem; }
}

/* ═══════════════════════════════════════
   HOLOGRAPHIC CARD EFFECT (9) — RPG sheet
   ═══════════════════════════════════════ */
.rpg-sheet {
  --holo-x: 50%;
  --holo-y: 50%;
  --holo-opacity: 0;
}
.rpg-sheet .rpg-holo-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border-radius: 4px;
  background: radial-gradient(
    circle at var(--holo-x) var(--holo-y),
    rgba(200,100,48,0.08),
    rgba(179,157,219,0.06) 25%,
    rgba(74,139,149,0.06) 50%,
    rgba(210,166,101,0.04) 75%,
    transparent
  );
  opacity: var(--holo-opacity);
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

/* ═══════════════════════════════════════
   INK REVEAL TEXT ANIMATION (6)
   ═══════════════════════════════════════ */
.ink-reveal {
  display: inline;
  background-image: linear-gradient(var(--text), var(--text));
  background-size: 0% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-size 1.2s cubic-bezier(0.16,1,0.3,1);
}
.ink-reveal.revealed {
  background-size: 100% 100%;
}

/* ═══════════════════════════════════════
   AURORA BOREALIS ENHANCED (5)
   ═══════════════════════════════════════ */
.aurora-layer {
  position: absolute;
  top: -30%;
  left: -20%;
  width: 140%;
  height: 60%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.aurora-layer.visible { opacity: 1; }
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  animation: aurora-float 12s ease-in-out infinite alternate;
}
.aurora-blob:nth-child(1) {
  width: 45%;
  height: 80%;
  top: 10%;
  left: 15%;
  background: rgba(179,157,219,0.12);
  animation-duration: 14s;
}
.aurora-blob:nth-child(2) {
  width: 35%;
  height: 70%;
  top: 0%;
  right: 20%;
  background: rgba(74,139,149,0.1);
  animation-duration: 18s;
  animation-delay: -4s;
}
.aurora-blob:nth-child(3) {
  width: 30%;
  height: 60%;
  top: 20%;
  left: 40%;
  background: rgba(200,100,48,0.08);
  animation-duration: 16s;
  animation-delay: -8s;
}
@keyframes aurora-float {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(30px, -20px) scale(1.1) rotate(2deg); }
  66% { transform: translate(-20px, 15px) scale(0.95) rotate(-1deg); }
  100% { transform: translate(10px, -10px) scale(1.05) rotate(1deg); }
}

/* ═══════════════════════════════════════
   FAQ ACCORDION (Feature 6)
   ═══════════════════════════════════════ */
#faq {
  padding: 5rem 2rem 4rem;
}
.faq-list {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 0.4rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238C9AAF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}
.faq-item[open] .faq-question {
  color: var(--gold);
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
}
.faq-item[open] .faq-answer {
  max-height: 300px;
  opacity: 1;
}
.faq-answer p {
  padding: 0 0.4rem 1.4rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}
@media (max-width: 768px) {
  #faq { padding: 3rem 1.2rem 2.5rem; }
  .faq-question { font-size: 0.95rem; padding: 1.1rem 0.2rem; }
  .faq-answer p { font-size: 0.88rem; }
}

/* ═══════════════════════════════════════
   BACK TO TOP BUTTON (Feature 9)
   ═══════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(14,20,36,0.85);
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.1);
}
@media (hover: none) and (pointer: coarse) {
  .back-to-top { display: none !important; }
}
@media (max-width: 768px) {
  .back-to-top { bottom: 1rem; right: 1rem; width: 36px; height: 36px; }
}

/* ═══════════════════════════════════════
   SKELETON LOADING ENHANCEMENT (Feature 11)
   ═══════════════════════════════════════ */
.skeleton {
  background: rgba(255,255,255,0.04) !important;
  color: transparent !important;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  min-height: 1em;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.8s ease-in-out infinite;
}
@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════
   SMOOTH PAGE REVEAL (Feature 12)
   ═══════════════════════════════════════ */
body.loading {
  opacity: 0;
}
body.page-revealed {
  animation: pageReveal 0.6s ease forwards;
}
@keyframes pageReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ═══════════════════════════════════════
   ACTIVE NAV GLOW
   ═══════════════════════════════════════ */
#navbar .nav-links a.nav-active {
  color: var(--gold);
  transition: color 0.3s ease;
}
#navbar .nav-links a.nav-active::after {
  width: 100%;
  background: var(--gold);
  height: 2px;
  box-shadow: 0 0 8px rgba(210, 166, 101, 0.5),
              0 0 20px rgba(210, 166, 101, 0.2);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              background 0.3s ease;
}

/* ═══════════════════════════════════════
   SECTION HEADING SCRAMBLE
   ═══════════════════════════════════════ */
.section-heading {
  font-variant-ligatures: none;
}
