/* =================================================================
   Ydolem_stream - cinematic pop-comic site
   Theme: dark, locked. Accent: magenta (#ff2e8f). Tint: lilac (#fab3ff,
   her official Twitch color). Teal (#21e6c4) = semantic secondary only
   (live state + rare highlights). Derived from her real artwork.
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink:        #0b0710;   /* off-black base, magenta undertone */
  --ink-1:      #110a1b;
  --ink-2:      #170f24;
  --ink-3:      #1f1530;
  --line:       rgba(250, 179, 255, 0.14);
  --line-2:     rgba(250, 179, 255, 0.28);

  --paper:      #f7eefb;   /* off-white, warm lilac */
  --muted:      #c3b2d8;
  --muted-2:    #8e7da6;

  --accent:     #ff2e8f;   /* hot magenta-pink (primary accent) */
  --accent-2:   #ff5fae;
  --lilac:      #fab3ff;   /* official Twitch color */
  --teal:       #21e6c4;   /* semantic secondary (live/online) */

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);

  --ff-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --ff-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
/* The [hidden] attribute must always win over component display rules (e.g. an
   inline-flex filter bar) — otherwise an empty "hidden" box still paints a dot. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--ff-body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }

::selection { background: var(--accent); color: #fff; }

/* Global keyboard focus ring (theme-consistent). Never remove outlines. */
:where(a, button, [tabindex], input, [contenteditable]):focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Skip link */
.skip {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 300;
  background: var(--accent);
  color: #1a0512;
  padding: 12px 18px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-family: var(--ff-display);
  font-weight: 500;
  transition: top 0.3s var(--ease);
}
.skip:focus { top: 0; }

/* Structured vertical depth gradient (no floating glow blobs). The 3D dust
   field (canvas) + vignette + grain carry the atmosphere instead. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, #130c1e 0%, var(--ink) 44%, #07030c 100%);
  pointer-events: none;
}

/* ---------- Fixed FX layers ---------- */
.fx-grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fx-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
  transition: opacity 0.35s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cursor-dot { width: 7px; height: 7px; background: var(--accent); }
.cursor-ring { width: 38px; height: 38px; border: 1.5px solid rgba(250, 179, 255, 0.55); }
html.cursor-vis .cursor-dot, html.cursor-vis .cursor-ring { opacity: 1; }
html.cursor-hover .cursor-ring { border-color: var(--accent); background: rgba(255, 46, 143, 0.08); }
html.cursor-hover .cursor-dot { opacity: 0; }
html.cursor-on, html.cursor-on * { cursor: none; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none; /* shown only when JS is present (html.js) */
  place-items: center;
  background: var(--ink);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
html.js .loader { display: grid; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(2rem, 8vw, 4.5rem);
  letter-spacing: -0.03em;
  color: var(--lilac);
  position: relative;
  overflow: hidden;
}
.loader__mark::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--lilac));
  transform: scaleX(0);
  transform-origin: left;
  animation: loaderBar 1.1s var(--ease) forwards;
}
@keyframes loaderBar { to { transform: scaleX(1); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.5em;
  border-radius: var(--r-pill);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  /* transform is driven directly by the magnetic JS lerp; don't re-ease it here */
  transition: box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.btn i { font-size: 1.2em; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a0512;
  box-shadow: 0 10px 24px -14px rgba(255, 46, 143, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--primary:hover { box-shadow: 0 16px 34px -16px rgba(255, 46, 143, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn--ghost {
  background: rgba(250, 179, 255, 0.04);
  border-color: var(--line-2);
  color: var(--paper);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--lilac); background: rgba(250, 179, 255, 0.09); }
.btn--lg { padding: 1.05em 2em; font-size: 1.08rem; }
.btn:active { transform: scale(0.97) translateY(1px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gut);
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(11, 7, 16, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__brand { display: flex; align-items: baseline; font-family: var(--ff-display); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.02em; }
.nav__brandMark { color: var(--paper); }
.nav__brandSub { color: var(--accent); font-weight: 500; }
/* links absolutely centered in the bar regardless of brand / CTA width */
.nav__links { display: flex; gap: 28px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.nav__links a {
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { margin-left: 8px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; margin-left: auto; padding: 8px; }
.nav__burger span { width: 26px; height: 2px; background: var(--paper); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

.mobileMenu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(11, 7, 16, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: var(--gut);
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  /* visibility flips after the slide-up on close, but instantly on open
     (so the first link is focusable right away). */
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
}
.mobileMenu.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.5s var(--ease), visibility 0s linear 0s;
}
.mobileMenu a { font-family: var(--ff-display); font-size: 2rem; font-weight: 500; color: var(--paper); padding: 10px 0; }
.mobileMenu .btn { margin-top: 20px; font-size: 1.1rem; justify-content: center; }

/* ---------- Layout helpers ---------- */
.section { padding: clamp(80px, 12vw, 160px) var(--gut); max-width: var(--maxw); margin: 0 auto; }
.section__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section__lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 56ch;
  margin-top: 20px;
  text-wrap: pretty;
}
.tx-accent { color: var(--accent); }
.eyebrow {
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--lilac);
  margin-bottom: 14px;
}

/* ---------- Comic panels ---------- */
.panel {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}
.panel img { width: 100%; height: 100%; object-fit: cover; }
.panel__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 46, 143, 0.5) 1.4px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.25;
  mix-blend-mode: screen;
  z-index: 2;
  pointer-events: none;
}
.panel__tag {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 3;
  font-family: var(--ff-display);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(11, 7, 16, 0.7);
  border: 1px solid var(--line-2);
  color: var(--lilac);
  backdrop-filter: blur(6px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 110px var(--gut) 60px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  width: 100%;
}
.statusPill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: rgba(250, 179, 255, 0.06);
  border: 1px solid var(--line-2);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 26px;
}
.statusPill__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 0 rgba(33, 230, 196, 0.6);
}
.statusPill[data-state="live"] { color: var(--paper); border-color: rgba(33, 230, 196, 0.5); }
.statusPill[data-state="live"] .statusPill__dot { background: var(--teal); animation: pulse 1.8s infinite; }
.statusPill[data-state="offline"] .statusPill__dot { background: var(--accent); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(33, 230, 196, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(33, 230, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(33, 230, 196, 0); }
}

.hero__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(2.9rem, 8.5vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line__inner { display: block; }
.hero__title em { color: var(--accent); }
.hero__sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  max-width: 44ch;
  margin: 28px 0 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__art { position: relative; perspective: 1300px; }
.panel--portrait { aspect-ratio: 1 / 1; max-width: 440px; margin-left: auto; border-width: 2px; }
.panel--portrait img { transform: scale(1.02); }
/* internal 3D depth: the halftone layer floats above the artwork on tilt */
.panel--portrait .panel__dots { transform: translateZ(38px); opacity: 0.32; }
.hero__sparkle {
  position: absolute;
  color: var(--lilac);
  font-size: 1.7rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  z-index: 4;
}
.hero__sparkle--1 { top: -14px; left: -10px; color: var(--accent); font-size: 2.1rem; }
.hero__sparkle--2 { bottom: 30px; left: -26px; color: var(--accent-2); }
.hero__sparkle--3 { top: 40%; right: -22px; }

/* ---------- Vibe ---------- */
.vibe__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.vibe__media { position: relative; perspective: 1300px; }
.panel--wide { aspect-ratio: 16 / 10; }
.vibe__mediaNote { margin-top: 16px; color: var(--muted-2); font-size: 0.9rem; font-style: italic; }
.vibe__text .section__title { margin-bottom: 8px; }
.vibe__points { list-style: none; margin-top: 36px; display: grid; gap: 22px; }
.vibe__points li { display: flex; gap: 16px; align-items: flex-start; }
.vibe__points i {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--accent);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: rgba(255, 46, 143, 0.1);
  border: 1px solid var(--line);
}
.vibe__points h3 { font-family: var(--ff-display); font-weight: 500; font-size: 1.18rem; letter-spacing: -0.01em; }
.vibe__points p { color: var(--muted); font-size: 0.98rem; margin-top: 3px; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: linear-gradient(180deg, transparent, rgba(255, 46, 143, 0.04), transparent);
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  will-change: transform;
  animation: marquee 28s linear infinite;
}
.marquee span {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
}
.marquee span:nth-of-type(odd) { color: var(--paper); -webkit-text-stroke: 0; }
.marquee i { color: var(--accent); font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Live ---------- */
.live__head { max-width: 720px; margin-bottom: 48px; }
.live__player { display: grid; gap: 22px; }
.live__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 2px solid var(--line-2);
  background: var(--ink-2);
  box-shadow: var(--shadow);
}
.live__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live__facade {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--ink-2);
  overflow: hidden;
}
.live__facadeBg {
  position: absolute;
  inset: 0;
  background-image: url("../img/offline.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(5px) saturate(120%) brightness(0.55);
  transform: scale(1.12);
  transition: transform 0.6s var(--ease);
}
.live__facade::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 46, 143, 0.22), rgba(11, 7, 16, 0.82) 75%);
}
.live__facadeDots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(250, 179, 255, 0.4) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
  opacity: 0.25;
  mix-blend-mode: screen;
}
.live__play {
  position: relative;
  z-index: 2;
  width: 84px; height: 84px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a0512;
  font-size: 2rem;
  box-shadow: 0 18px 40px -10px rgba(255, 46, 143, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.4s var(--ease);
}
.live__facadeText {
  position: relative; z-index: 2;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--paper);
  display: inline-flex; align-items: center; gap: 8px;
}
.live__facadeText i { color: var(--lilac); }
.live__facade:hover .live__play { transform: scale(1.08); }
.live__facade:hover .live__facadeBg { transform: scale(1.18); }
.live__facade:focus-visible { outline: 3px solid var(--lilac); outline-offset: -3px; }
.live__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: rgba(250, 179, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.chip i { color: var(--lilac); }
.live__open { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 500; }
.live__open:hover { color: var(--accent-2); }

/* ---------- Goals ---------- */
.goals__head { margin-bottom: 48px; }
.goals__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}
.goalCard {
  position: relative;
  padding: 30px;
  border-radius: var(--r-lg);
  background: var(--ink-1);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.goalCard--hero {
  grid-row: span 1;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 46, 143, 0.18), transparent 55%),
    var(--ink-1);
  border-color: var(--line-2);
}
.goalCard header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.goalCard__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.95rem; }
.goalCard__label i { color: var(--lilac); }
.goalCard--hero .goalCard__label i { color: var(--accent); }
.goalCard__hint {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(250, 179, 255, 0.12);
  color: var(--lilac);
  white-space: nowrap;
}
.goalCard--reached .goalCard__hint { background: rgba(255, 46, 143, 0.16); color: var(--accent); }
.goalCard__count { font-family: var(--ff-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-bottom: 18px; }
.goalCard__count .num { font-size: clamp(2.4rem, 5vw, 3.2rem); color: var(--paper); }
.goalCard--hero .goalCard__count .num { font-size: clamp(3.4rem, 9vw, 6rem); color: var(--accent); }
.goalCard__count .den { font-size: 1.1rem; color: var(--muted-2); margin-left: 8px; }
.bar { height: 8px; border-radius: var(--r-pill); background: rgba(250, 179, 255, 0.1); overflow: hidden; }
.bar__fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--lilac));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease);
}
.bar__fill.is-filled { transform: scaleX(var(--scale)); }
.goalCard__note { margin-top: 18px; color: var(--muted); font-size: 0.92rem; }
.goals__cta { margin-top: 36px; color: var(--muted); font-size: 1.05rem; }
.goals__cta a { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 7px; margin-left: 6px; }
.goals__cta a:hover { color: var(--accent-2); }

/* ---------- Art gallery (framed paintings) ---------- */
.atelier__head { max-width: 760px; margin-bottom: 42px; }
.atelier__filters {
  display: inline-flex; gap: 6px; margin-top: 26px; padding: 5px;
  border-radius: var(--r-pill);
  background: rgba(250, 179, 255, 0.05);
  border: 1px solid var(--line);
}
.artFilter {
  font-family: var(--ff-display); font-weight: 500; font-size: 0.9rem;
  padding: 8px 18px; border-radius: var(--r-pill);
  background: transparent; border: 0; color: var(--muted); cursor: pointer;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.artFilter:hover { color: var(--paper); }
.artFilter.is-active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a0512; }

/* salon-hang masonry wall */
.atelier__wall { columns: 3 300px; column-gap: clamp(22px, 3vw, 46px); }
.atelier__more { margin-top: 44px; text-align: center; }
.atelier__more a { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.atelier__more a:hover { color: var(--accent-2); }

/* a framed painting */
.frame {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 clamp(26px, 3.2vw, 48px);
  display: block;
  cursor: pointer;
  perspective: 1100px;
}
.frame__outer {
  position: relative;
  padding: clamp(9px, 1.4vw, 16px);
  border: 5px solid;
  border-image: linear-gradient(135deg, #d9b667, #8a6a32 55%, #c9a45a) 1;
  background: linear-gradient(135deg, #221a2c, #14101e);
  box-shadow: 0 38px 64px -34px rgba(0, 0, 0, 0.92), inset 0 0 0 1px rgba(250, 179, 255, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  transition: box-shadow 0.5s var(--ease);
}
.frame:hover .frame__outer { box-shadow: 0 48px 84px -34px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(250, 179, 255, 0.22); will-change: transform; }
.frame__mat {
  position: relative;
  padding: clamp(10px, 1.7vw, 22px);
  background: #0c0813;
  box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(250, 179, 255, 0.07);
}
.frame__art { display: block; width: 100%; height: auto; }
.frame__glass {
  position: absolute; inset: clamp(10px, 1.7vw, 22px);
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.12) 0%, transparent 26%, transparent 72%, rgba(255, 255, 255, 0.05) 100%);
  mix-blend-mode: screen;
}
.frame__plaque {
  width: fit-content; max-width: 90%;
  margin: 16px auto 0;
  padding: 5px 16px;
  border-radius: 2px;
  font-family: var(--ff-display); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.05em;
  color: #1c1406;
  background: linear-gradient(180deg, #d9b667, #9c7b40);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  text-align: center;
}
.frame:focus-visible { outline: 3px solid var(--lilac); outline-offset: 6px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(20px, 5vw, 60px);
  background: rgba(7, 4, 12, 0.92);
  backdrop-filter: blur(16px);
}
.lightbox.is-open { display: flex; animation: lbFade 0.3s var(--ease); }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage { max-width: min(1100px, 92vw); display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0; }
.lightbox__stage img {
  max-width: 100%; max-height: 78vh; width: auto; height: auto;
  border: 6px solid;
  border-image: linear-gradient(135deg, #d9b667, #8a6a32 55%, #c9a45a) 1;
  background: #0c0813;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9);
}
.lightbox__stage figcaption { font-family: var(--ff-display); color: var(--paper); font-size: 1.05rem; letter-spacing: 0.02em; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2;
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(11, 7, 16, 0.6); color: var(--paper); font-size: 1.4rem; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { border-color: var(--lilac); background: rgba(250, 179, 255, 0.12); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__next:hover { transform: translateY(-50%) scale(1.08); }
@media (max-width: 560px) {
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
}

/* ---------- Footer admin link + credit ---------- */
.footer__admin { color: var(--muted-2); font-size: 0.85rem; transition: color 0.3s var(--ease); }
.footer__admin:hover { color: var(--lilac); }
.footer__credit { color: var(--muted-2); font-size: 0.8rem; }
.footer__credit a { color: var(--muted); text-decoration: underline; }
.footer__credit a:hover { color: var(--lilac); }

/* ---------- Community ---------- */
.community__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: stretch; }
.community__discord {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.22), rgba(88, 101, 242, 0.06));
  border: 1px solid rgba(88, 101, 242, 0.4);
}
.community__discordIcon { font-size: 3rem; color: #aab5ff; margin-bottom: 18px; }
.community__discord h2 { font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.05; letter-spacing: -0.02em; }
.community__discord p { color: var(--muted); margin: 14px 0 28px; max-width: 42ch; }
.community__socials { display: flex; flex-direction: column; }
.community__socials h3 { font-family: var(--ff-display); font-weight: 500; font-size: 1.3rem; margin-bottom: 18px; }
.socialGrid { display: grid; gap: 12px; flex: 1; }
.socialCard {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: var(--ink-1);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
/* Inlined brand glyphs: size like an icon-font (1em), colour via currentColor */
.brandIc { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; fill: currentColor; }
.socialCard__logo { width: 28px; height: 28px; flex-shrink: 0; fill: currentColor; color: var(--brand, var(--paper)); }
.socialCard > div { display: flex; flex-direction: column; line-height: 1.2; }
.socialCard strong { font-family: var(--ff-display); font-weight: 500; font-size: 1.05rem; }
.socialCard span { color: var(--muted-2); font-size: 0.85rem; }
.socialCard > i { margin-left: auto; color: var(--muted-2); transition: transform 0.3s var(--ease), color 0.3s; }
.socialCard:hover { transform: translateX(4px); border-color: var(--brand, var(--lilac)); background: var(--ink-2); }
.socialCard:hover > i { color: var(--paper); transform: translate(3px, -3px); }

/* ---------- Support ---------- */
.support { position: relative; text-align: center; }
.support__inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.support__icon { font-size: 3.2rem; color: var(--accent); margin-bottom: 20px; }
.support h2 { font-family: var(--ff-display); font-weight: 600; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.03; }
.support p { color: var(--muted); font-size: 1.1rem; margin: 18px 0 32px; max-width: 46ch; }
.support__small { margin-top: 18px; color: var(--muted-2); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 60px var(--gut) 40px; max-width: var(--maxw); margin: 0 auto; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer__mark { font-family: var(--ff-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; }
.footer__mark span { color: var(--accent); }
.footer__brand p { color: var(--muted-2); max-width: 36ch; margin-top: 10px; font-size: 0.95rem; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: 1.3rem;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.3s, border-color 0.3s, background 0.3s;
}
.footer__social a:hover { color: var(--paper); border-color: var(--lilac); background: rgba(250, 179, 255, 0.08); transform: translateY(-3px); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.85rem; }

/* ---------- Audio controls (music + volume + UI sounds) ---------- */
.audioDock { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; align-items: center; gap: 10px; }
.volWrap {
  display: flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 14px;
  border-radius: var(--r-pill);
  background: rgba(11, 7, 16, 0.6);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
}
.volWrap__ic { color: var(--muted-2); font-size: 1rem; flex-shrink: 0; }
.volVal {
  min-width: 30px; text-align: right; flex-shrink: 0;
  font-size: 0.76rem; color: var(--muted);
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.volSlider {
  -webkit-appearance: none; appearance: none;
  width: 104px; height: 4px; margin: 0;
  border-radius: var(--r-pill);
  /* the filled portion is driven live by --fill (set in music.js) */
  background: linear-gradient(to right, var(--accent) 0 var(--fill, 11%), var(--line-2) var(--fill, 11%) 100%);
  cursor: pointer; outline: none;
}
.volSlider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); border: 2px solid #1a0512; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s var(--ease);
}
.volSlider::-moz-range-track { background: transparent; height: 4px; border-radius: var(--r-pill); }
.volSlider::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 2px solid #1a0512; cursor: pointer; }
.volSlider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.volSlider:focus-visible { outline: 2px solid var(--lilac); outline-offset: 5px; }
@media (max-width: 560px) { .volWrap { padding: 0 10px; gap: 7px; } .volSlider { width: 70px; } .volVal { display: none; } }
.audioBtn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(11, 7, 16, 0.6);
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
}
.audioBtn:hover { color: var(--paper); border-color: var(--lilac); transform: translateY(-2px); }
/* UI sound button */
.soundToggle .ph-speaker-slash { display: none; }
.soundToggle[data-on="0"] { color: var(--muted-2); }
.soundToggle[data-on="0"] .ph-speaker-high { display: none; }
.soundToggle[data-on="0"] .ph-speaker-slash { display: block; }
/* Music button — explicit play / pause affordance */
.musicToggle .music-ic--pause { display: none; }
.musicToggle[data-on="1"] .music-ic--play { display: none; }
.musicToggle[data-on="1"] .music-ic--pause { display: block; }
.musicToggle[data-on="1"] { color: var(--accent); border-color: rgba(255, 46, 143, 0.5); }
.musicToggle[data-on="0"] { animation: musicHint 2.8s ease-in-out infinite; }
@keyframes musicHint {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 179, 255, 0); }
  50% { box-shadow: 0 0 0 5px rgba(250, 179, 255, 0.12); }
}
@media (max-width: 560px) { .audioDock { right: 14px; bottom: 14px; } .audioBtn { width: 42px; height: 42px; } }

/* ---------- Scroll progress ---------- */
.scrollProgress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--lilac)); z-index: 110; transform: scaleX(0); transform-origin: left; will-change: transform; }

/* ---------- Reveal (progressive enhancement) ----------
   Content is visible by default. Only when JS is present (html.js) do we
   hide-then-reveal on scroll, so a JS/CDN failure never hides content. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Live badge (set when streaming) ---------- */
.live__badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(11, 7, 16, 0.72);
  border: 1px solid rgba(255, 59, 59, 0.55);
  backdrop-filter: blur(8px);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #fff;
}
.live__badge i { color: var(--lilac); font-size: 1em; }
.live__badgeDot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; animation: pulse-red 1.6s infinite; }
@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 59, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

/* ---------- Section heads for VODs / clips ---------- */
.vods__head, .clips__head { max-width: 720px; margin-bottom: 44px; }

/* ---------- Shared media cards (rediffs + clips) ---------- */
.vods__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vod, .clip {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink-1);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.vod:hover, .clip:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  box-shadow: 0 28px 56px -26px rgba(0, 0, 0, 0.8);
}
.media__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-3); }
.media__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.vod:hover .media__thumb img, .clip:hover .media__thumb img { transform: scale(1.07); }
.media__play {
  position: absolute; inset: 0; margin: auto;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 46, 143, 0.94);
  color: #1a0512;
  font-size: 1.4rem;
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 12px 26px -8px rgba(255, 46, 143, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.vod:hover .media__play, .clip:hover .media__play, .vod:focus-visible .media__play, .clip:focus-visible .media__play { opacity: 1; transform: scale(1); }
.media__dur {
  position: absolute; right: 10px; bottom: 10px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(11, 7, 16, 0.82);
  border: 1px solid var(--line);
  font-size: 0.72rem; font-weight: 500; color: var(--paper);
  backdrop-filter: blur(4px);
}
.media__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.media__title {
  font-family: var(--ff-display); font-weight: 500;
  font-size: 1.02rem; line-height: 1.25; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.media__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 11px; margin-top: auto; color: var(--muted-2); font-size: 0.82rem; }
.media__game { color: var(--lilac); background: rgba(250, 179, 255, 0.1); padding: 3px 9px; border-radius: var(--r-pill); }

/* clips: horizontal scroll-snap rail */
.clips__rail {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  -webkit-overflow-scrolling: touch;
}
.clips__rail::-webkit-scrollbar { height: 8px; }
.clips__rail::-webkit-scrollbar-track { background: transparent; }
.clips__rail::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; }
.clip { flex: 0 0 300px; scroll-snap-align: start; }
.clip .media__thumb { aspect-ratio: 16 / 9; }

/* skeleton loaders */
.skel {
  display: block;
  border-radius: var(--r-md);
  background: linear-gradient(100deg, var(--ink-1) 30%, var(--ink-3) 50%, var(--ink-1) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
.vods__grid .skel { aspect-ratio: 16 / 10.5; }
.clips__rail .skel { flex: 0 0 300px; aspect-ratio: 16 / 11; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* fallback link (kept if a feed fails / no JS) */
.media-fallback {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 22px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-2);
  color: var(--muted); font-weight: 500;
  transition: color 0.3s, border-color 0.3s;
}
.media-fallback:hover { color: var(--paper); border-color: var(--lilac); }
.media-fallback i { color: var(--accent); }

/* reveal for JS-injected cards */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* Discord live stats */
.community__discordStats { display: flex; gap: 22px; margin: 4px 0 26px; flex-wrap: wrap; }
.dstat { color: var(--muted); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; }
.dstat strong { font-family: var(--ff-display); font-weight: 600; color: var(--paper); font-size: 1.2rem; }
.dstat--online .dstat__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }

/* ---------- Cinematic vignette (4K depth) ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 59;
  pointer-events: none;
  box-shadow: inset 0 0 240px 30px rgba(0, 0, 0, 0.55);
}

/* ---------- Responsive: new media sections ---------- */
@media (max-width: 1024px) {
  .vods__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .vods__grid { grid-template-columns: 1fr; }
  .clip { flex-basis: 78vw; }
}

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .goals__grid { grid-template-columns: 1fr 1fr; }
  .goalCard--hero { grid-column: span 2; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__art { order: -1; max-width: 360px; }
  .panel--portrait { margin: 0; }
  .vibe__grid, .community__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .goals__grid { grid-template-columns: 1fr; }
  .goalCard--hero { grid-column: span 1; }
  .live__meta { gap: 8px; }
  .live__open { margin-left: 0; width: 100%; }
  .footer__bottom { flex-direction: column; }
}

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal], .rv { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
  .skel { animation: none; }
  .loader { display: none; }
  .statusPill__dot { animation: none !important; }
}
