/* 데드라인: 캠퍼스 티저 v2 · 축제의 밤 (핑크·골드·야간 네이비)
   Base rules are a complete static page. html.anim (GSAP loaded, motion allowed) switches on the pinned/animated layouts. */
@font-face { font-family: "Bagel"; src: url("fonts/BagelFatOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("fonts/Pretendard-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("fonts/Pretendard-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --night: #0d0820;
  --night-2: #170f30;
  --ink: #f6f1ff;
  --soft: #b9aed6;
  --pink: #ff4f8f;
  --pink-2: #e2336f;
  --gold: #ffd65c;
  --cyan: #6fe3ff;
  --line: rgba(255, 255, 255, .12);
  --wrap: min(1200px, 100% - 64px);
  --display: "Bagel", "Pretendard", sans-serif;
}
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) { :root { --wrap: calc(100% - 32px); } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.lock, html.lock body { overflow: hidden; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font-family: "Pretendard", system-ui, -apple-system, "Apple SD Gothic Neo", "Hiragino Sans", "Yu Gothic", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK JP", sans-serif; font-weight: 500;
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--pink); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-weight: 700; font-size: 13px; letter-spacing: .32em; color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.big-title {
  margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: .5px;
  font-size: clamp(40px, 6.2vw, 84px); color: #fff; text-shadow: 0 4px 0 rgba(226, 51, 111, .9), 0 14px 40px rgba(255, 79, 143, .35);
}
.big-title .accent { color: var(--pink); text-shadow: 0 4px 0 #8e1d4a, 0 14px 40px rgba(255, 79, 143, .45); }

/* Japanese / Traditional Chinese pages: Bagel has no kana or hanzi, so the display face falls through to a heavy rounded/black CJK font
   (loaded from Google Fonts on those pages only). font-synthesis off so Bagel never gets a fake bold. */
html:lang(ja) { --display: "Bagel", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif; }
html:lang(zh-TW) { --display: "Bagel", "Noto Sans TC", "PingFang TC", sans-serif; }
html:is(:lang(ja), :lang(zh-TW)) :is(.big-title, .hero-tag, .scene-text h2, .crew-name, .mode h3, .feat h3) { font-weight: 800; font-synthesis: none; letter-spacing: 0; }
html:lang(zh-TW) :is(.big-title, .hero-tag, .scene-text h2, .crew-name, .mode h3, .feat h3) { font-weight: 900; }
html:lang(en) .big-title { font-size: clamp(38px, 5.4vw, 76px); }

/* split text (built by app.js) */
.w { display: inline-block; white-space: nowrap; perspective: 600px; }
.c { display: inline-block; transform-origin: 50% 100%; will-change: transform; }

/* ── Intro ─────────────────────────────────────────── */
.intro { display: none; }
.js .intro {
  display: block; position: fixed; inset: 0; z-index: 100;
  animation: intro-failsafe .01s linear 7s forwards; /* never trap the page if scripts fail */
}
@keyframes intro-failsafe { to { visibility: hidden; opacity: 0; } }
.intro-half { position: absolute; left: 0; right: 0; height: 50.5%; background: radial-gradient(120% 100% at 50% 100%, #24144a, var(--night) 70%); }
.intro-half.top { top: 0; }
.intro-half.bottom { bottom: 0; transform: scaleY(-1); }
.intro-core { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 22px; }
.intro-logo { width: min(440px, 72vw); filter: drop-shadow(0 10px 40px rgba(255, 79, 143, .45)); animation: intro-breathe 1.6s ease-in-out infinite; }
@keyframes intro-breathe { 50% { transform: scale(1.03); } }
.intro-bar { width: 220px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.intro-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--gold)); box-shadow: 0 0 12px var(--pink); }
.intro-pct { margin: 0; font-family: var(--display); font-size: 14px; letter-spacing: .2em; color: var(--soft); }

/* ── Header + side dots ────────────────────────────── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; gap: 24px;
  padding: 14px max(24px, env(safe-area-inset-left)); transition: transform .45s cubic-bezier(.2, .8, .2, 1), background .3s, box-shadow .3s;
}
.bar.solid { background: rgba(13, 8, 32, .78); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bar.hide { transform: translateY(-110%); }
.bar-logo img { height: 38px; width: auto; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
.bar.solid .bar-logo img { opacity: 1; transform: none; }
.bar-nav { display: flex; gap: 6px; margin-left: auto; font-weight: 700; font-size: 15px; }
.bar-nav a { position: relative; text-decoration: none; padding: 8px 14px; opacity: .88; transition: opacity .2s, color .2s; }
.bar-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s; }
.bar-nav a:hover { opacity: 1; color: var(--gold); }
.bar-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.bar-cta {
  position: relative; overflow: hidden; text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 20px; border-radius: 999px;
  background: linear-gradient(135deg, #ff6fa4, var(--pink-2)); box-shadow: 0 4px 0 #9e1f4f, 0 10px 24px rgba(255, 79, 143, .35);
}
.bar-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: sweep 3.2s ease-in-out infinite; }
@keyframes sweep { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
/* language menu */
.lang { position: relative; }
.lang-btn { appearance: none; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(10, 6, 20, .35); cursor: pointer; font-weight: 700; font-size: 13px; letter-spacing: .04em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .2s, background .2s; }
.lang-btn:hover, .lang.open .lang-btn { border-color: #fff; background: rgba(10, 6, 20, .6); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: rgba(16, 10, 34, .96); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: block; padding: 9px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 15px; }
.lang-menu a:hover { background: rgba(255, 255, 255, .08); }
.lang-menu a[aria-current] { color: var(--gold); }
.lang-menu a[aria-current]::after { content: " ✓"; }
.lang-hint { position: fixed; left: 16px; bottom: 16px; z-index: 45; display: inline-flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-radius: 999px; background: rgba(16, 10, 34, .92); border: 1px solid rgba(255, 255, 255, .25); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lang-hint[hidden] { display: none; }
.lang-hint { transition: opacity .3s, transform .3s; }
.lang-hint.away { opacity: 0; transform: translateY(12px); pointer-events: none; }
.lang-hint b { color: var(--gold); }
.lang-hint i { font-style: normal; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .1); margin-left: 4px; font-size: 16px; }
.foot-langs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.foot-langs a { color: var(--ink); text-decoration: none; }
.foot-langs a:hover { color: var(--gold); }
@media (max-width: 860px) { .bar-nav { display: none; } .lang { margin-left: auto; } .bar { padding: 10px 16px; gap: 10px; } .bar-logo img { height: 32px; } }

.dots { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 35; display: flex; flex-direction: column; gap: 14px; }
.dots a { position: relative; display: block; width: 10px; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .35); transition: height .35s, background .35s; }
.dots a.on { height: 30px; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.dots span { position: absolute; right: 22px; top: 50%; transform: translate(8px, -50%); white-space: nowrap; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s; }
.dots a:hover span, .dots a.on span { opacity: 1; transform: translate(0, -50%); }
.dots a.on span { opacity: .8; }
@media (max-width: 1100px) { .dots { display: none; } }

/* ── Store buttons ─────────────────────────────────── */
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; min-width: 214px; padding: 13px 24px; border-radius: 18px;
  background: rgba(10, 6, 20, .82); color: #fff; text-decoration: none; font-weight: 700; font-size: 20px;
  border: 1.5px solid rgba(255, 255, 255, .5); box-shadow: 0 14px 34px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: border-color .2s, box-shadow .3s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.store:hover { border-color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 30px rgba(255, 79, 143, .45); }
.store img { width: 30px; height: 30px; }
.store span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; white-space: nowrap; }
.store small { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .72); white-space: nowrap; }
.store .gloss { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .28) 50%, transparent 62%); transform: translateX(-120%); transition: transform .7s; pointer-events: none; }
.store:hover .gloss { transform: translateX(120%); }

/* ── Hero ──────────────────────────────────────────── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--night); }
.hero-scene { position: absolute; inset: 0; }
.layer { position: absolute; inset: 0; }
.hero-bg { inset: -3%; }
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-sky, .hero-front { width: 100%; height: 100%; pointer-events: none; }
.hero-glow { background: radial-gradient(40% 55% at 64% 70%, rgba(255, 79, 143, .32), transparent 70%); mix-blend-mode: screen; }
.heroines { position: absolute; right: 0; bottom: 0; width: 66vw; height: 100%; pointer-events: none; }
.heroine { position: absolute; bottom: -3%; translate: -50% 0; }
.heroine img { height: 100%; width: auto; max-width: none; }
.h-left { left: 15%; height: 82%; filter: brightness(.8) saturate(.95) drop-shadow(0 0 24px rgba(255, 79, 143, .25)); }
.h-right { left: 85%; height: 86%; filter: brightness(.82) saturate(.95) drop-shadow(0 0 24px rgba(166, 107, 255, .3)); }
.h-center { left: 53%; height: 97%; filter: drop-shadow(0 0 34px rgba(255, 255, 255, .28)) drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(13, 8, 32, .9) 0%, rgba(13, 8, 32, .55) 30%, rgba(13, 8, 32, 0) 52%),
    linear-gradient(180deg, rgba(13, 8, 32, .35) 0%, rgba(13, 8, 32, 0) 18%, rgba(13, 8, 32, 0) 72%, var(--night) 100%);
}
.hero-body {
  position: absolute; z-index: 3; top: 0; bottom: 0; left: max(5vw, 32px); width: min(540px, 40vw);
  display: flex; flex-direction: column; justify-content: center; padding-top: 40px;
}
.hero-logo { position: relative; width: 100%; }
.hero-logo img { width: 100%; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 40px rgba(255, 79, 143, .25)); }
.hero-logo .shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("assets/logo.webp") center / contain no-repeat; mask: url("assets/logo.webp") center / contain no-repeat;
  background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .75) 50%, transparent 58%) no-repeat; background-size: 260% 100%; background-position: 160% 0;
  animation: logo-shine 5s ease-in-out 2.6s infinite;
}
@keyframes logo-shine { 0% { background-position: 160% 0; } 32%, 100% { background-position: -60% 0; } }
.hero-tag { margin: 14px 0 4px; font-family: var(--display); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.2; color: var(--gold); text-shadow: 0 3px 0 rgba(0, 0, 0, .5), 0 0 24px rgba(255, 214, 92, .35); }
.hero-sub { margin: 0 0 26px; font-weight: 700; font-size: clamp(15px, 1.3vw, 18px); text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .3em; opacity: .85; }
.scroll-cue i { position: relative; width: 2px; height: 46px; background: rgba(255, 255, 255, .2); overflow: hidden; border-radius: 2px; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: #fff; animation: drip 1.8s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes drip { to { top: 100%; } }

/* small landscape (tablets, small laptops): the back-left heroine would sit behind the sword arm, so the key art goes to two */
@media (max-width: 1180px) and (orientation: landscape) { .h-left { display: none; } .h-center { left: 44%; } .h-right { left: 82%; } }
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .hero { min-height: 600px; }
  .heroines { width: 100%; }
  .heroine { bottom: 15%; }
  .h-left { left: 19%; height: 47%; }
  .h-right { left: 81%; height: 49%; }
  .h-center { left: 50%; height: 58%; bottom: 12%; }
  .hero-shade { background: linear-gradient(180deg, rgba(13, 8, 32, .55) 0%, rgba(13, 8, 32, 0) 26%, rgba(13, 8, 32, 0) 52%, rgba(13, 8, 32, .85) 74%, var(--night) 100%); }
  .hero-glow { background: radial-gradient(60% 40% at 50% 62%, rgba(255, 79, 143, .3), transparent 70%); }
  .hero-body { left: 16px; right: 16px; width: auto; justify-content: space-between; padding: 72px 0 76px; text-align: center; align-items: center; }
  .hero-logo { width: min(78vw, 360px); }
  .hero-tag { margin-top: 0; }
  .hero-sub { margin-bottom: 18px; }
  .hero-stores { justify-content: center; }
  .scroll-cue { bottom: 10px; }
  .scroll-cue span { display: none; }
  .scroll-cue i { height: 34px; }
}
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .stores { gap: 10px; flex-wrap: nowrap; justify-content: center; }
  .store { min-width: 0; flex: 1 1 0; max-width: 200px; padding: 10px 12px; font-size: 15px; gap: 8px; border-radius: 15px; }
  .store img { width: 24px; height: 24px; }
  .store small { font-size: 11px; }
}

/* ── Story ─────────────────────────────────────────── */
.story { position: relative; background: var(--night); }
.story-pin { position: relative; overflow: hidden; padding: 100px 0; }
.story-bg { position: absolute; inset: -5%; }
.story-bg picture, .story-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 8, 32, .92) 0%, rgba(13, 8, 32, .6) 42%, rgba(13, 8, 32, .35) 100%),
    linear-gradient(180deg, var(--night) 0%, rgba(13, 8, 32, 0) 16%, rgba(13, 8, 32, 0) 84%, var(--night) 100%);
}
.story-inner { position: relative; z-index: 2; width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.scene-text { margin-bottom: 36px; }
.scene-no { display: block; font-family: var(--display); font-size: clamp(56px, 7vw, 104px); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255, 79, 143, .9); }
.scene-text h2 { margin: 6px 0 12px; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 70px); line-height: 1.05; text-shadow: 0 4px 0 rgba(226, 51, 111, .9), 0 12px 32px rgba(0, 0, 0, .5); }
.scene-text p { margin: 0; font-size: clamp(16px, 1.5vw, 21px); color: #eae3ff; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.story-index { display: none; }
.story-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.scene-card { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 2 / 3; border: 2px solid rgba(255, 255, 255, .18); box-shadow: 0 30px 60px rgba(0, 0, 0, .55); background: #000; }
.scene-card img { width: 100%; height: 100%; object-fit: cover; }
.story-progress { display: none; }

.anim .story-pin { height: 100vh; height: 100svh; padding: 0; display: flex; align-items: center; }
.anim .story-inner { height: 100%; }
.anim .story-copy { position: relative; }
.anim .story-texts { position: relative; height: 300px; }
.anim .scene-text { position: absolute; inset: 0; margin: 0; }
.anim .story-index { display: flex; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; font-family: var(--display); font-size: 14px; color: rgba(255, 255, 255, .4); }
.anim .story-index li { display: flex; align-items: center; gap: 10px; transition: color .3s; }
.anim .story-index li::after { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: width .4s; }
.anim .story-index li:last-child::after { display: none; }
.anim .story-index li.on { color: var(--gold); }
.anim .story-index li.on::after { width: 44px; }
.anim .story-cards { display: block; position: relative; justify-self: center; height: min(76vh, 760px); height: min(76svh, 760px); aspect-ratio: 2 / 3; }
.anim .story-cards::before { content: ""; position: absolute; inset: -14px; border: 2px solid rgba(255, 214, 92, .5); border-radius: 30px; transform: rotate(4deg); }
.anim .scene-card { position: absolute; inset: 0; will-change: transform; }
.anim .story-progress { display: block; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .1); }
.story-progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--pink), var(--gold)); }
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .story-inner { grid-template-columns: 1fr; gap: 24px; }
  .story-tint { background: linear-gradient(180deg, var(--night) 0%, rgba(13, 8, 32, .5) 20%, rgba(13, 8, 32, .55) 55%, rgba(13, 8, 32, .95) 80%, var(--night) 100%); }
  .anim .story-inner { grid-template-rows: auto 1fr; align-content: center; gap: 30px; padding: 64px 0 24px; }
  .anim .story-cards { order: -1; height: 46svh; height: 46vh; }
  .anim .story-cards::before { inset: -9px; border-radius: 26px; }
  .anim .story-copy { text-align: center; }
  .anim .story-texts { height: 190px; }
  .anim .story-index { justify-content: center; margin-top: 10px; }
  .anim .story-index li::after { width: 8px; }
  .anim .story-index li.on::after { width: 20px; }
  .scene-text h2 { margin: 2px 0 8px; }
  .scene-no { font-size: 44px; -webkit-text-stroke-width: 1.5px; }
}

/* ── Crew ──────────────────────────────────────────── */
.crew { --c: #e0b55a; position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: #0b0619; }
.crew-bg { position: absolute; inset: 0; background: radial-gradient(55% 70% at 34% 58%, color-mix(in srgb, var(--c) 46%, transparent), transparent 72%), linear-gradient(160deg, #140b2c 0%, #0a0617 100%); }
/* Each UR's own scene (same place as her cut-in backdrop), cross-faded; tint keeps the figure and card readable. */
.crew-scenes { position: absolute; inset: 0; overflow: hidden; }
.crew-scene { position: absolute; inset: 0; opacity: 0; transition: opacity .9s; }
.crew-scene.on { opacity: 1; }
.crew-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: brightness(.8) saturate(1.08); }
.crew-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(42% 62% at 33% 60%, color-mix(in srgb, var(--c) 26%, transparent), transparent 72%),
    linear-gradient(90deg, rgba(10, 6, 23, .3) 0%, rgba(10, 6, 23, 0) 34%, rgba(10, 6, 23, .45) 62%, rgba(10, 6, 23, .82) 100%),
    linear-gradient(180deg, rgba(10, 6, 23, .7) 0%, rgba(10, 6, 23, 0) 22%, rgba(10, 6, 23, 0) 70%, rgba(10, 6, 23, .95) 100%);
}
.crew-rays { position: absolute; left: 34%; top: 56%; width: 180vmax; height: 180vmax; translate: -50% -50%; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--c) 30%, transparent) 0deg 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(closest-side, #000 0%, transparent 60%); mask: radial-gradient(closest-side, #000 0%, transparent 60%); opacity: .22; mix-blend-mode: screen; animation: spin 90s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.crew-stripes { position: absolute; inset: 0; background: repeating-linear-gradient(-58deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 26px); animation: stripes 6s linear infinite; }
@keyframes stripes { to { background-position: 120px 0; } }
.crew-bigname { position: absolute; z-index: 1; left: 3vw; top: 7vh; white-space: nowrap; pointer-events: none; font-family: var(--display); font-size: clamp(100px, 15vw, 280px); line-height: 1; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--c) 70%, #fff); opacity: .5; }
.crew-stage { position: relative; z-index: 2; width: var(--wrap); margin: 0 auto; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; }
.crew-figure { align-self: end; height: 92vh; height: 92svh; display: flex; justify-content: center; touch-action: pan-y; }
.crew-figure img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 0 40px color-mix(in srgb, var(--c) 55%, transparent)) drop-shadow(0 26px 30px rgba(0, 0, 0, .55)); user-select: none; -webkit-user-drag: none; }
.crew-card { position: relative; max-width: 470px; padding: 34px 34px 28px; border-radius: 26px; background: rgba(12, 7, 26, .58); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.crew-card::before { content: ""; position: absolute; left: 34px; top: 0; width: 70px; height: 4px; border-radius: 0 0 4px 4px; background: var(--c); box-shadow: 0 0 18px var(--c); }
.crew-club { margin: 0; font-weight: 700; font-size: 16px; color: var(--c); letter-spacing: .04em; }
.crew-name { margin: 4px 0 18px; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 5.4vw, 78px); line-height: 1.04; text-shadow: 0 4px 0 color-mix(in srgb, var(--c) 60%, #000), 0 14px 36px rgba(0, 0, 0, .45); }
.crew-skill { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.crew-skill span { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--c); color: #160c2a; }
.crew-skill b { display: block; margin: 8px 0 2px; font-size: 21px; }
.crew-skill p { margin: 0; color: var(--soft); }
.crew-ctrl { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.crew-arrow { appearance: none; width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); cursor: pointer; font-size: 28px; line-height: 1; display: grid; place-items: center; transition: background .2s, border-color .2s, transform .2s; }
.crew-arrow i { font-style: normal; margin-top: -3px; }
.crew-arrow:hover { background: var(--c); border-color: var(--c); color: #160c2a; transform: scale(1.06); }
.crew-count { font-family: var(--display); font-size: 18px; color: var(--soft); display: flex; gap: 6px; }
.crew-count b { font-weight: 400; color: #fff; }
.crew-timer { margin-top: 18px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.crew-timer i { display: block; height: 100%; background: var(--c); transform-origin: left; transform: scaleX(0); }
.crew-thumbs { display: flex; gap: 10px; margin-top: 18px; }
.crew-thumbs button { appearance: none; position: relative; flex: 1 1 0; max-width: 62px; aspect-ratio: 1; padding: 0; border-radius: 16px; overflow: hidden; cursor: pointer; border: 2px solid rgba(255, 255, 255, .22); background: rgba(12, 7, 26, .7); transition: transform .3s, border-color .3s, box-shadow .3s; }
.crew-thumbs button img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.9); transform-origin: 50% 3%; filter: grayscale(.6) brightness(.7); transition: filter .3s; }
.crew-thumbs button:hover img { filter: none; }
.crew-thumbs button[aria-selected="true"] { border-color: var(--c); transform: translateY(-4px); box-shadow: 0 0 18px var(--c); }
.crew-thumbs button[aria-selected="true"] img { filter: none; }
@media (max-width: 960px) and (min-width: 761px) { .crew-stage { grid-template-columns: 1fr 1fr; } .crew-figure { height: 80vh; } }
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .crew-stage { grid-template-columns: 1fr; min-height: 0; gap: 0; padding-top: 64px; }
  .crew-figure { height: 60svh; height: 60vh; align-self: auto; }
  .crew-bg { background: #0a0617; }
  .crew-tint { background: radial-gradient(80% 40% at 50% 30%, color-mix(in srgb, var(--c) 24%, transparent), transparent 72%), linear-gradient(180deg, rgba(10, 6, 23, .55) 0%, rgba(10, 6, 23, 0) 16%, rgba(10, 6, 23, 0) 42%, rgba(10, 6, 23, .75) 62%, rgba(10, 6, 23, .95) 100%); }
  .crew-rays { left: 50%; top: 32%; }
  .crew-bigname { top: 12svh; left: 0; right: 0; text-align: center; font-size: 26vw; }
  .crew-card { margin: -16svh auto 0; max-width: none; width: 100%; padding: 22px 20px 18px; text-align: center; }
  .crew-card::before { left: 50%; translate: -50% 0; }
  .crew-card .eyebrow { display: none; }
  .crew-name { font-size: 44px; margin-bottom: 12px; }
  .crew-skill { padding: 12px 14px; }
  .crew-skill b { font-size: 18px; }
  .crew-ctrl { justify-content: center; margin-top: 14px; }
  .crew-arrow { width: 44px; height: 44px; }
  .crew-stage { padding-bottom: 36px; }
  .crew-thumbs { justify-content: center; margin-top: 14px; gap: 8px; }
  .crew-thumbs button { border-radius: 12px; }
}

/* ── Modes (horizontal) ────────────────────────────── */
.modes { position: relative; background: linear-gradient(180deg, #0b0619 0%, var(--night-2) 100%); }
.modes-pin { position: relative; padding: 110px 0; overflow: hidden; }
.modes-pin > :not(.modes-bg) { position: relative; z-index: 1; }
/* the current card's art, pre-blurred, fills the section behind the gallery */
.modes-bg { position: absolute; inset: 0; pointer-events: none; }
.modes-bg i { position: absolute; inset: -4%; background: center / cover no-repeat; opacity: 0; transition: opacity .9s; }
.modes-bg i.on { opacity: .62; }
.modes-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0b0619 0%, rgba(11, 6, 25, .35) 22%, rgba(11, 6, 25, .3) 70%, var(--night-2) 100%), radial-gradient(70% 60% at 50% 60%, transparent, rgba(11, 6, 25, .55)); }
.modes-head { width: var(--wrap); margin: 0 auto 40px; }
.modes-lead { margin: 18px 0 0; color: var(--soft); font-size: 18px; }
.modes-track { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(32px, calc((100vw - 1200px) / 2)) 24px; scrollbar-width: none; }
.modes-track::-webkit-scrollbar { display: none; }
.mode { position: relative; flex: none; width: min(560px, 78vw); aspect-ratio: 3 / 2; border-radius: 24px; overflow: hidden; scroll-snap-align: center; box-shadow: 0 26px 50px rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .12); background: #000; }
.mode img { position: absolute; top: 0; left: -8%; width: 116%; height: 100%; max-width: none; object-fit: cover; transition: scale .8s cubic-bezier(.2, .8, .2, 1); }
.mode:hover img { scale: 1.05; }
.mode div { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 26px 22px; background: linear-gradient(180deg, transparent, rgba(8, 4, 18, .92) 70%); }
.mode span { font-family: var(--display); font-size: 15px; color: var(--gold); letter-spacing: .1em; }
.mode h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; }
.mode p { margin: 0; color: #ddd4f5; font-size: 16px; }
.anim .modes-pin { height: 100vh; height: 100svh; padding: 0; display: flex; flex-direction: column; justify-content: center; }
.anim .modes-track { overflow: visible; width: max-content; scroll-snap-type: none; }
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .modes-pin { padding: 80px 0; }
  .modes-head { margin-bottom: 24px; }
  .modes-lead { font-size: 15px; }
  .modes-track { gap: 14px; padding-left: 16px; padding-right: 16px; }
  .mode { width: 82vw; border-radius: 18px; }
  .mode div { padding: 40px 16px 14px; }
  .mode p { font-size: 14px; }
}

/* ── Roster marquee ────────────────────────────────── */
.roster { position: relative; padding: 130px 0 120px; overflow: hidden; background: var(--night-2); }
.roster > :not(.sec-bg) { position: relative; z-index: 1; }
/* section backgrounds (roster: festival avenue at dusk; play: club-room HQ, sticky while the features scroll) */
.sec-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sec-bg picture, .sec-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sec-bg::after { content: ""; position: absolute; inset: 0; }
.roster .sec-bg::after { background: linear-gradient(180deg, var(--night-2) 0%, rgba(23, 15, 48, .5) 22%, rgba(23, 15, 48, .45) 60%, rgba(23, 15, 48, .8) 85%, var(--night) 100%); }
.sec-bg.sticky { position: sticky; top: 0; inset: auto; width: 100%; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; z-index: 0; }
.play .sec-bg::after { background: linear-gradient(90deg, rgba(13, 8, 32, .82) 0%, rgba(13, 8, 32, .5) 42%, rgba(13, 8, 32, .78) 72%, rgba(13, 8, 32, .88) 100%), linear-gradient(180deg, var(--night) 0%, rgba(13, 8, 32, 0) 18%, rgba(13, 8, 32, 0) 82%, var(--night) 100%); }
.roster-head { width: var(--wrap); margin: 0 auto 56px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.counters { display: flex; gap: 40px; }
.counters div { display: flex; flex-direction: column; align-items: flex-start; }
.counters b { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: 1; color: var(--gold); text-shadow: 0 4px 0 #8a5a00, 0 0 30px rgba(255, 214, 92, .3); font-variant-numeric: tabular-nums; }
.counters b[data-plus]::after { content: "+"; font-size: .55em; vertical-align: top; margin-left: 2px; }
.counters span { margin-top: 8px; font-weight: 700; color: var(--soft); }
.marquee { overflow: hidden; padding: 12px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee + .marquee { margin-top: 8px; }
.track { display: flex; gap: 16px; padding-right: 16px; width: max-content; will-change: transform; } /* trailing gap keeps the two copies exactly half each */
html:not(.anim) .track { animation: marquee 90s linear infinite; }
html:not(.anim) .marquee.rev .track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
.rcard { position: relative; flex: none; width: 168px; height: 296px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); background: linear-gradient(180deg, rgba(166, 107, 255, .22), rgba(255, 255, 255, .03) 70%); transition: border-color .3s, box-shadow .3s; }
.rcard[data-rar="UR"] { border-color: rgba(255, 214, 92, .55); background: linear-gradient(180deg, rgba(255, 196, 70, .32), rgba(255, 79, 143, .12) 55%, rgba(255, 255, 255, .03)); }
.rcard img { position: absolute; left: 50%; bottom: 46px; translate: -50% 0; height: 246px; width: auto; max-width: none; transition: transform .5s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.rcard:hover { border-color: #fff; box-shadow: 0 0 26px rgba(255, 79, 143, .45); }
.rcard:hover img { transform: translateY(-8px) scale(1.06); }
.rcard em { position: absolute; left: 10px; top: 10px; z-index: 1; font-style: normal; font-family: var(--display); font-size: 12px; padding: 1px 9px; border-radius: 999px; background: #a66bff; color: #fff; }
.rcard[data-rar="UR"] em { background: linear-gradient(135deg, #ffe58a, #ffb52e); color: #4a2a00; }
.rcard p { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 8px 10px 9px; background: rgba(8, 4, 18, .78); line-height: 1.25; }
.rcard b { display: block; font-size: 15px; }
.rcard small { display: block; font-size: 11.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .roster { padding: 90px 0 80px; }
  .roster-head { margin-bottom: 36px; }
  .counters { gap: 26px; }
  .rcard { width: 128px; height: 226px; border-radius: 16px; }
  .rcard img { height: 182px; bottom: 42px; }
  .rcard b { font-size: 13.5px; }
}

/* ── Play (sticky phone) ───────────────────────────── */
.play { position: relative; background: var(--night); }
.play-grid { position: relative; z-index: 1; width: min(1100px, 100% - 64px); margin: 0 auto; padding: 120px 0 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.play-phone-col { position: relative; }
.phone {
  position: sticky; top: max(90px, calc(50vh - 340px)); margin-left: auto; width: min(310px, calc((100vh - 150px) * .46)); padding: 11px; border-radius: 46px;
  background: linear-gradient(160deg, #3a2c66, #1a1236 60%); box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 2px rgba(255, 255, 255, .08), 0 0 70px rgba(255, 79, 143, .22);
  transform-style: preserve-3d;
}
.phone::before { content: ""; position: absolute; left: 50%; top: 20px; z-index: 2; width: 84px; height: 22px; translate: -50% 0; border-radius: 20px; background: #0a0614; }
.phone-screen { position: relative; aspect-ratio: 603 / 1311; border-radius: 36px; overflow: hidden; background: #000; }
.screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s, transform .9s cubic-bezier(.2, .8, .2, 1); }
.screen.on { opacity: 1; transform: none; }
.feat { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }
.anim .feat { opacity: .28; transition: opacity .5s; }
.anim .feat.on { opacity: 1; }
.feat span { font-family: var(--display); font-size: clamp(54px, 6vw, 88px); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--pink); }
.feat h3 { margin: 8px 0 12px; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.1; }
.feat p { margin: 0; font-size: 18px; color: var(--soft); max-width: 440px; }
.feat-shot { display: none; }
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .play-grid { grid-template-columns: 1fr; width: calc(100% - 32px); gap: 0; padding: 90px 0 40px; }
  .play .sec-bg::after { background: linear-gradient(180deg, var(--night) 0%, rgba(13, 8, 32, .62) 16%, rgba(13, 8, 32, .7) 84%, var(--night) 100%); }
  .play-phone-col { display: none; }
  .play-list { text-align: center; }
  .feat { min-height: 0; padding: 26px 0 40px; align-items: center; }
  .anim .feat { opacity: 1; }
  .feat-shot { display: block; width: 58vw; max-width: 260px; aspect-ratio: 603 / 1311; object-fit: cover; border-radius: 28px; border: 6px solid #2d2350; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); margin: 0 auto 18px; }
  .feat p { font-size: 16px; }
}

/* ── CTA + footer ──────────────────────────────────── */
.cta { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; padding: 120px 16px; }
.cta-bg { position: absolute; inset: -4%; background: url("assets/bg_hero.jpg") 50% 30% / cover; filter: blur(5px) brightness(.42) saturate(1.2); }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, var(--night) 8%, rgba(13, 8, 32, .2) 34%, rgba(13, 8, 32, .4) 72%, var(--night) 96%); }
.cta-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-girl { position: absolute; bottom: -6vh; height: 84vh; height: 84svh; width: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 0 30px rgba(255, 79, 143, .3)); }
.cta-girl.left { left: max(-3vw, calc(50% - 900px)); }
.cta-girl.right { right: max(-3vw, calc(50% - 880px)); }
.cta-body { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; }
.cta-body .stores { justify-content: center; margin-top: 34px; width: 100%; max-width: 460px; }
.cta-note { margin: 16px 0 0; color: var(--soft); font-size: 14px; }
@media (max-width: 1000px) { .cta-girl { height: 56vh; opacity: .5; } .cta-girl.left { left: -16vw; } .cta-girl.right { right: -16vw; } }
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) { .cta-girl { height: 40vh; height: 40svh; opacity: .5; bottom: -2vh; } .cta-girl.left { left: -22vw; } .cta-girl.right { right: -22vw; } }

.foot { padding: 46px 16px 56px; text-align: center; color: var(--soft); font-size: 13px; border-top: 1px solid var(--line); background: #08051a; }
.foot-logo { width: 150px; margin: 0 auto 14px; opacity: .85; }
.foot p { margin: 6px 0; }
.foot-rating { color: var(--ink); font-weight: 700; }
.foot-links { display: flex; gap: 18px; justify-content: center; }
.foot-links a { text-decoration: none; color: var(--ink); }
.foot-links a:hover { color: var(--gold); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 13px 22px; border-radius: 999px; background: #fff; color: #1b1330; font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35); transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .intro { display: none; }
  .marquee { overflow-x: auto; -webkit-mask: none; mask: none; }
}
