/* JDM Classic - jdm-classic.org. Self-hosted OFL fonts (assets/fonts), no external requests, no inline styles.
   The page accent (--accent) follows the class chosen in the selector; reduced motion turns all motion off. */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/cinzel-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/cinzel-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/cormorant-garamond-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(/assets/fonts/cormorant-garamond-cyrillic-500-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

@property --accent { syntax: "<color>"; inherits: true; initial-value: #5fd7e0; }
@property --accent-deep { syntax: "<color>"; inherits: true; initial-value: #0f3d4a; }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --ink: #050a09;
  --ink-2: #0a1412;
  --panel: #0f1c19;
  --line: rgba(173, 222, 203, .13);
  --text: #edf3ef;
  --muted: #a3b6ad;
  --jade: #4fd1a5;
  --jade-deep: #0f4a3b;
  --gold: #e2c27a;
  --danger: #ff9b8a;
  --accent: #5fd7e0;
  --accent-deep: #0f3d4a;
  --display: "Cinzel", "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --cut: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 16px/1.6 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: --accent .9s var(--ease), --accent-deep .9s var(--ease);
}
/* film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: url(/assets/grain.svg) repeat; background-size: 180px; opacity: .06; mix-blend-mode: soft-light;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 22%, transparent);
}
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--gold); color: #120d04; font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

/* class colours: --cc is the class light, --cc2 its deep tone */
.cls-qingyun { --cc: #6fdcf0; --cc2: #0d3550; }
.cls-tianyin { --cc: #f3cf72; --cc2: #4a350c; }
.cls-guiwang { --cc: #ff5a4a; --cc2: #4a0d10; }
.cls-hehuan { --cc: #e78bd8; --cc2: #3d1650; }
.cls-fenxiang { --cc: #ff9a3c; --cc2: #4d1f06; }
.tile-sealed, .panel-sealed { --cc: #c9b78a; --cc2: #1d211f; }
/* the whole page takes the colour of the chosen class */
body:has(#pick-qingyun:checked) { --accent: #6fdcf0; --accent-deep: #0d3550; }
body:has(#pick-tianyin:checked) { --accent: #f3cf72; --accent-deep: #4a350c; }
body:has(#pick-guiwang:checked) { --accent: #ff6a5a; --accent-deep: #4a0d10; }
body:has(#pick-hehuan:checked) { --accent: #e78bd8; --accent-deep: #3d1650; }
body:has(#pick-fenxiang:checked) { --accent: #ff9a3c; --accent-deep: #4d1f06; }
body:has(.pick-sealed:checked) { --accent: #d8c48e; --accent-deep: #2a2a22; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.page-home .site-header { position: fixed; left: 0; right: 0; }
.site-header.scrolled, .page-simple .site-header, .page-legal .site-header {
  background: rgba(5, 10, 9, .72); border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.header-inner { display: flex; align-items: center; gap: .8rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }
.brand-mark path:last-child { fill: color-mix(in srgb, var(--accent) 25%, transparent); stroke: var(--gold); }
.brand-seal { width: 40px; height: 40px; margin: -4px 0; filter: drop-shadow(0 0 8px rgba(79, 209, 165, .35)); }
.brand-name { display: none; font: 700 1.05rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.brand-name span { color: var(--gold); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.lang-switch { display: flex; gap: .1rem; }
/* community links (Discord everywhere, Telegram on RU): icons in the header, icon + name elsewhere */
.socials { display: flex; align-items: center; gap: .5rem; }
.social { display: inline-flex; align-items: center; gap: .5rem; color: #cbd9d2; text-decoration: none; font: 600 .85rem/1 var(--sans);
  padding: .5rem .8rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 4px; background: rgba(5, 10, 9, .45);
  transition: color .2s ease, border-color .2s ease, background .2s ease; }
.social svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.social-discord:hover { color: #fff; border-color: #5865f2; background: rgba(88, 101, 242, .35); }
.social-telegram:hover { color: #fff; border-color: #29a9eb; background: rgba(41, 169, 235, .3); }
.site-header .social { width: 34px; height: 34px; justify-content: center; padding: 0; border: 0; border-radius: 50%; color: #fff; }
.site-header .social svg { width: 18px; height: 18px; }
.site-header .social-discord { background: #5865f2; box-shadow: 0 0 12px rgba(88, 101, 242, .45); }
.site-header .social-telegram { background: #29a9eb; box-shadow: 0 0 12px rgba(41, 169, 235, .45); }
.site-header .social:hover { filter: brightness(1.15); color: #fff; }
.site-header .social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cta-join { margin: 1.4rem 0 .6rem !important; font: 600 .74rem/1 var(--display) !important; letter-spacing: .24em; text-transform: uppercase; color: var(--muted) !important; }
.lang-switch a {
  display: grid; place-items: center; min-width: 34px; min-height: 34px; padding: 0 .3rem;
  color: var(--muted); font: 700 .74rem/1 var(--sans); letter-spacing: .12em; text-decoration: none;
  border-bottom: 1px solid transparent;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }

/* ----------------------------------------------------------------- buttons */
.btn {
  --mx: 0; --my: 0;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem; border: 0; background: none; cursor: pointer;
  color: var(--text); font: 700 .95rem/1.2 var(--sans); letter-spacing: .04em; text-decoration: none; text-align: center;
  translate: calc(var(--mx) * 1px) calc(var(--my) * 1px);
  transition: translate .25s var(--ease), color .2s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  background: rgba(255, 255, 255, .06); border: 0;
  transition: background .3s ease, filter .3s ease;
}
.btn:hover { color: var(--text); }
.btn:hover::before { background: rgba(255, 255, 255, .12); }
.btn-primary { color: #071210; }
.btn-primary::before {
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 85%, #fff) 0%, var(--accent) 45%, var(--gold) 100%);
  filter: drop-shadow(0 10px 26px color-mix(in srgb, var(--accent) 55%, transparent));
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  background-size: 250% 100%; background-position: 120% 0;
  animation: sheen 5.5s ease-in-out 2s infinite;
}
@keyframes sheen { 0%, 70% { background-position: 120% 0; } 100% { background-position: -40% 0; } }
.btn-primary:hover { color: #071210; }
.btn-primary:hover::before { filter: drop-shadow(0 14px 34px color-mix(in srgb, var(--accent) 80%, transparent)) brightness(1.08); }
.btn-small { min-height: 38px; padding: .45rem 1.1rem; font-size: .84rem; --cut: 10px; }
.btn-large { min-height: 60px; padding: 1rem 2.4rem; font-size: 1.05rem; --cut: 18px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  padding: 5.2rem 0 1rem;
  background: linear-gradient(180deg, #03050f 0%, #0a0f2c 20%, #1e1745 40%, #4a2150 54%, #8e3b47 64%, #c8693f 70%, #3a2a36 78%, #0b1716 88%, var(--ink) 100%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%; z-index: -1; background: linear-gradient(180deg, transparent, var(--ink)); }
.hero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(38% 30% at 80% 20%, rgba(255, 214, 150, .28), transparent 70%),
    radial-gradient(70% 22% at 55% 68%, rgba(255, 150, 90, .42), transparent 72%),
    radial-gradient(90% 40% at 30% 62%, rgba(214, 84, 140, .26), transparent 72%),
    radial-gradient(80% 55% at 70% 50%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(70% 50% at 6% 34%, rgba(46, 190, 150, .2), transparent 70%);
}
/* stars in the upper sky: tiled dots, faded out towards the horizon */
.hero-sky::before {
  content: ""; position: absolute; inset: 0 0 45%;
  background-image:
    radial-gradient(1.2px 1.2px at 23px 41px, #fff, transparent), radial-gradient(1px 1px at 97px 13px, #ffe9c4, transparent),
    radial-gradient(1.4px 1.4px at 151px 88px, #fff, transparent), radial-gradient(1px 1px at 61px 127px, #cfe8ff, transparent),
    radial-gradient(1.6px 1.6px at 183px 152px, #fff, transparent), radial-gradient(1px 1px at 131px 179px, #fff, transparent),
    radial-gradient(1.2px 1.2px at 9px 196px, #ffe9c4, transparent), radial-gradient(1px 1px at 211px 61px, #fff, transparent);
  background-size: 230px 230px; opacity: .75;
  mask: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .45; } }
.moon {
  position: absolute; right: -14%; top: 9%; width: clamp(130px, 40vw, 300px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(28% 24% at 62% 58%, rgba(196, 160, 96, .22), transparent),
    radial-gradient(20% 18% at 36% 66%, rgba(196, 160, 96, .16), transparent),
    radial-gradient(16% 14% at 58% 30%, rgba(196, 160, 96, .14), transparent),
    radial-gradient(circle at 38% 34%, #fffbef 0%, #f8ebc8 34%, #eed7a0 68%, #dfbd78 100%);
  box-shadow: 0 0 28px 4px rgba(255, 236, 190, .6), 0 0 110px 30px rgba(255, 196, 120, .28), 0 0 240px 80px rgba(214, 110, 120, .14);
  opacity: .96;
  transform: translate3d(0, calc(var(--sy, 0) * .5px), 0);
}
.moon::after { content: ""; position: absolute; inset: -70%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 160, .24), rgba(240, 160, 130, .1) 45%, rgba(200, 120, 160, .04) 75%, transparent); }
/* moon halo breathes; thin clouds drift across it; now and then a shooting star */
.moon::after { animation: halo 6s ease-in-out infinite alternate; }
@keyframes halo { to { opacity: .6; transform: scale(.94); } }
.clouds { position: absolute; inset: 0; overflow: hidden; }
.clouds i { position: absolute; left: 0; width: 34vw; height: 3.2vw; min-height: 18px; border-radius: 50%; filter: blur(7px);
  background: radial-gradient(closest-side, rgba(214, 180, 230, .32), rgba(150, 110, 180, .12) 60%, transparent);
  animation: cloud 95s linear infinite; }
.clouds i:nth-child(1) { top: 17%; animation-delay: -30s; }
.clouds i:nth-child(2) { top: 26%; width: 46vw; animation-duration: 130s; animation-delay: -95s; opacity: .8; }
.clouds i:nth-child(3) { top: 11%; width: 24vw; animation-duration: 75s; animation-delay: -10s; opacity: .6; }
@keyframes cloud { from { transform: translateX(-50vw); } to { transform: translateX(120vw); } }
.shooting i { position: absolute; width: 150px; height: 1.6px; border-radius: 2px; opacity: 0; transform-origin: left center;
  background: linear-gradient(90deg, #fff, rgba(255, 236, 200, .6) 30%, transparent);
  filter: drop-shadow(0 0 4px rgba(255, 240, 210, .9)); }
.shooting i:nth-child(1) { top: 9%; left: 58%; animation: shoot 11s ease-in 3s infinite; }
.shooting i:nth-child(2) { top: 16%; left: 34%; animation: shoot 17s ease-in 9s infinite; }
@keyframes shoot {
  0%, 90% { opacity: 0; transform: rotate(160deg) translateX(0) scaleX(.3); }
  92% { opacity: 1; transform: rotate(160deg) translateX(40px) scaleX(1); }
  97%, 100% { opacity: 0; transform: rotate(160deg) translateX(420px) scaleX(.6); }
}
/* sky lanterns drift up from the valley */
.lanterns { position: absolute; inset: 0; overflow: hidden; }
.lanterns i { position: absolute; bottom: -24px; left: var(--x); width: 12px; height: 16px; border-radius: 42% 42% 30% 30%; opacity: 0;
  background: radial-gradient(circle at 50% 40%, #fff1c4 0%, #ffb35a 45%, #d8572e 100%);
  box-shadow: 0 0 10px 2px rgba(255, 160, 80, .6), 0 0 28px 8px rgba(255, 120, 60, .2);
  animation: lantern var(--d) linear var(--t) infinite; }
@keyframes lantern {
  0% { transform: translate(0, 0) scale(var(--k)); opacity: 0; }
  8% { opacity: .95; }
  50% { transform: translate(calc(var(--dx) * .4), -40vh) scale(calc(var(--k) * .85)); }
  80% { opacity: .7; }
  100% { transform: translate(var(--dx), -82vh) scale(calc(var(--k) * .55)); opacity: 0; }
}
.lanterns i:nth-child(1) { --x: 62%; --d: 34s; --t: -6s; --k: 1; --dx: 40px; }
.lanterns i:nth-child(2) { --x: 71%; --d: 41s; --t: -22s; --k: .8; --dx: -30px; }
.lanterns i:nth-child(3) { --x: 48%; --d: 38s; --t: -14s; --k: .7; --dx: 55px; }
.lanterns i:nth-child(4) { --x: 84%; --d: 45s; --t: -31s; --k: .9; --dx: -45px; }
.lanterns i:nth-child(5) { --x: 56%; --d: 52s; --t: -40s; --k: .6; --dx: 20px; }
.lanterns i:nth-child(6) { --x: 92%; --d: 36s; --t: -2s; --k: .75; --dx: -60px; }
.lanterns i:nth-child(7) { --x: 38%; --d: 47s; --t: -27s; --k: .65; --dx: 35px; }
/* cinematic background: a muted loop from the client's login cinematic replaces the drawn sky */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-sky:has(.hero-video) :is(.moon, .clouds, .shooting, .layer, .mist, .lanterns) { display: none; }
.hero-sky:has(.hero-video)::before { display: none; }
.hero-sky:has(.hero-video) .sky-glow {
  background:
    linear-gradient(90deg, rgba(3, 7, 10, .88) 0%, rgba(3, 7, 10, .55) 34%, rgba(3, 7, 10, .08) 62%, transparent 80%),
    linear-gradient(180deg, rgba(3, 7, 10, .55) 0%, transparent 18%, transparent 62%, rgba(5, 10, 9, .7) 86%, var(--ink) 100%),
    radial-gradient(60% 50% at 70% 45%, transparent 40%, rgba(3, 7, 10, .35) 100%);
}
.hero-sky:has(.hero-video) .motes { opacity: .6; }
/* generated panorama (scene/hero*.webp): slow drift, lanterns and motes stay, the drawn sky goes */
.hero-plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%;
  transform-origin: 62% 40%; animation: plate-drift 48s ease-in-out infinite alternate; }
@keyframes plate-drift { from { transform: scale(1.03); } to { transform: scale(1.12) translate(-1.2%, .8%); } }
.hero-sky:has(.hero-plate) :is(.moon, .clouds, .shooting, .layer, .mist) { display: none; }
.hero-sky:has(.hero-plate)::before { display: none; }
.hero-sky:has(.hero-plate) .sky-glow {
  background:
    linear-gradient(90deg, rgba(3, 7, 12, .86) 0%, rgba(3, 7, 12, .5) 32%, rgba(3, 7, 12, .06) 58%, transparent 76%),
    linear-gradient(180deg, rgba(3, 7, 12, .5) 0%, transparent 16%, transparent 66%, rgba(5, 10, 9, .75) 88%, var(--ink) 100%);
}
@media (max-width: 760px) {
  .hero-sky:has(.hero-plate) .sky-glow { background: linear-gradient(180deg, rgba(3, 7, 12, .72) 0%, rgba(3, 7, 12, .6) 45%, rgba(3, 7, 12, .4) 72%, var(--ink) 100%); }
}
.layer {
  position: absolute; left: -3%; bottom: 0; width: 106%; height: 70%;
  transform: translate3d(calc(var(--mx, 0) * var(--kx) * 1px), calc(var(--sy, 0) * var(--ky) * 1px), 0);
  will-change: transform;
}
.l-far { --kx: -6; --ky: .42; height: 70%; opacity: .8; filter: drop-shadow(0 -1px 1px rgba(255, 196, 160, .4)); }
.l-mid { --kx: -14; --ky: .26; height: 58%; filter: drop-shadow(0 -1.5px 0 rgba(150, 240, 205, .55)) drop-shadow(0 -8px 18px rgba(255, 150, 110, .22)); }
.l-near { --kx: -26; --ky: .1; height: 36%; }
.pagoda { fill: #07120f; }
.lantern { fill: #ffcf73; }
.near { fill: #060f0d; }
.mist { position: absolute; left: -30%; width: 160%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 200, .14), transparent); animation: drift 28s ease-in-out infinite alternate; }
.mist-a { bottom: 30%; }
.mist-b { bottom: 8%; height: 26%; animation-duration: 36s; animation-direction: alternate-reverse; background: radial-gradient(closest-side, rgba(110, 230, 190, .16), transparent); }
@keyframes drift { from { transform: translateX(-7%); } to { transform: translateX(7%); } }
.motes { position: absolute; inset: 0; overflow: hidden; }
.motes i {
  position: absolute; bottom: -12px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff 0%, var(--accent) 45%, transparent 70%);
  box-shadow: 0 0 8px 1px color-mix(in srgb, var(--accent) 60%, transparent);
  animation: rise var(--d) linear var(--t) infinite;
}
.motes i:nth-child(3n) { background: radial-gradient(circle, #fff2c7 0%, var(--gold) 45%, transparent 70%); box-shadow: 0 0 8px 1px rgba(226, 194, 122, .5); }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .9; } 60% { opacity: .55; } 100% { transform: translate(var(--dx), -78vh); opacity: 0; } }
.motes i:nth-child(1) { --x: 25%; --d: 17.0s; --t: -7.4s; --s: 5px; --dx: -2px; }
.motes i:nth-child(2) { --x: 58%; --d: 17.7s; --t: -18.2s; --s: 4px; --dx: -19px; }
.motes i:nth-child(3) { --x: 25%; --d: 22.0s; --t: -9.4s; --s: 5px; --dx: -2px; }
.motes i:nth-child(4) { --x: 63%; --d: 12.7s; --t: -12.7s; --s: 5px; --dx: -9px; }
.motes i:nth-child(5) { --x: 4%; --d: 19.5s; --t: -3.2s; --s: 5px; --dx: -37px; }
.motes i:nth-child(6) { --x: 76%; --d: 20.1s; --t: -5.4s; --s: 5px; --dx: 18px; }
.motes i:nth-child(7) { --x: 86%; --d: 18.9s; --t: -18.4s; --s: 4px; --dx: 18px; }
.motes i:nth-child(8) { --x: 57%; --d: 21.6s; --t: -2.7s; --s: 3px; --dx: -32px; }
.motes i:nth-child(9) { --x: 16%; --d: 13.4s; --t: -19.3s; --s: 4px; --dx: 22px; }
.motes i:nth-child(10) { --x: 83%; --d: 15.6s; --t: -16.7s; --s: 5px; --dx: -12px; }
.motes i:nth-child(11) { --x: 58%; --d: 17.4s; --t: -18.1s; --s: 2px; --dx: 29px; }
.motes i:nth-child(12) { --x: 96%; --d: 18.4s; --t: -3.3s; --s: 3px; --dx: 37px; }
.motes i:nth-child(13) { --x: 88%; --d: 17.3s; --t: -14.3s; --s: 3px; --dx: 11px; }
.motes i:nth-child(14) { --x: 96%; --d: 13.9s; --t: -2.5s; --s: 4px; --dx: 28px; }
.motes i:nth-child(15) { --x: 96%; --d: 12.0s; --t: -16.0s; --s: 4px; --dx: 32px; }
.motes i:nth-child(16) { --x: 5%; --d: 15.7s; --t: -8.3s; --s: 2px; --dx: -36px; }
.motes i:nth-child(17) { --x: 61%; --d: 11.5s; --t: -14.4s; --s: 3px; --dx: 4px; }
.motes i:nth-child(18) { --x: 90%; --d: 14.1s; --t: -4.7s; --s: 2px; --dx: -15px; }

.hero-grid { position: relative; flex: 1; display: grid; align-content: start; gap: 1.1rem; }
/* genre line above the wordmark: what this is, at a glance */
.hero-genre {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: 0 0 1rem; padding: .4rem .9rem .4rem .7rem;
  border-radius: 99px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: linear-gradient(90deg, rgba(5, 12, 11, .78), rgba(5, 12, 11, .45)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 700 clamp(.7rem, 2.6vw, .82rem)/1.2 var(--display); letter-spacing: .22em; text-transform: uppercase; color: #f4ecd8;
  animation: ink-in .9s var(--ease) .2s both;
}
.genre-mark { width: .5rem; height: .5rem; rotate: 45deg; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.genre-sep { width: 1px; height: .9em; background: rgba(255, 255, 255, .3); }
.genre-platform { color: color-mix(in srgb, var(--accent) 70%, #fff); letter-spacing: .14em; }
@media (max-width: 559px) { .hero-genre { border-radius: 12px; } .genre-sep { display: none; } .genre-platform { flex-basis: 100%; padding-left: .85rem; } }

/* wordmark: three letters rise out of the ink, CLASSIC is revealed by a brush stroke */
.lockup { position: relative; display: inline-grid; justify-items: start; margin: 0; line-height: 1; isolation: isolate; }
.lockup-jdm {
  display: flex; font: 700 clamp(5.4rem, 30vw, 14rem)/.8 var(--display); letter-spacing: -.035em; margin-left: -.04em;
}
.ch {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #eaf6f1 38%, color-mix(in srgb, var(--accent) 70%, #fff) 74%, color-mix(in srgb, var(--accent) 80%, #062019) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 34px color-mix(in srgb, var(--accent) 35%, transparent));
  animation: ch-in 1.15s var(--ease) both;
}
/* a slow light sweep runs through the letters every few seconds */
.lockup-jdm .ch {
  background-image:
    linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .95) 50%, transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #eaf6f1 38%, color-mix(in srgb, var(--accent) 70%, #fff) 74%, color-mix(in srgb, var(--accent) 80%, #062019) 100%);
  background-size: 320% 100%, 100% 100%; background-position: 140% 0, 0 0; background-repeat: no-repeat;
  animation: ch-in 1.15s var(--ease) both, sheen 7s ease-in-out 2.2s infinite;
}
@keyframes sheen { 0%, 62% { background-position: 140% 0, 0 0; } 100% { background-position: -40% 0, 0 0; } }
.ch:nth-child(2) { animation-delay: .12s, 2.32s; }
.ch:nth-child(3) { animation-delay: .24s, 2.44s; }
@keyframes ch-in { from { opacity: 0; transform: translateY(.3em) rotate(5deg); filter: blur(14px); } }
.lockup-classic {
  position: relative; margin: .5em 0 0 .3em;
  font: 600 clamp(1.05rem, 5.4vw, 2.1rem)/1 var(--display); letter-spacing: .72em; text-transform: uppercase; color: var(--gold);
  animation: brush-text 1.2s cubic-bezier(.6, 0, .2, 1) .45s both;
}
.brush { position: absolute; z-index: -1; left: -4%; width: 92%; bottom: -.5em; height: 1.6em; fill: color-mix(in srgb, var(--accent) 30%, transparent); animation: brush 1.3s cubic-bezier(.6, 0, .2, 1) .5s both; }
@keyframes brush { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes brush-text { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -10% 0 0); } }
@keyframes ink-in { from { opacity: 0; transform: translateY(16px); filter: blur(8px); } }
.tagline {
  margin: .4rem 0 0; max-width: 30ch;
  font: italic 500 clamp(1.4rem, 6vw, 2.3rem)/1.15 var(--serif); color: #e2ece7;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .7);
  animation: ink-in 1s var(--ease) .7s both;
}

/* signup panel: glass, cut corner, animated conic edge */
.hero-panel { position: relative; width: min(560px, 100%); animation: ink-in 1s var(--ease) .85s both; }
.signup-form, .download {
  position: relative; padding: 1.1rem 1.1rem 1rem; text-align: left;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  background: linear-gradient(160deg, rgba(14, 28, 26, .82), rgba(5, 10, 9, .88));
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.signup-form::before, .download::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; padding: 1px;
  background: conic-gradient(from var(--angle), color-mix(in srgb, var(--accent) 90%, #fff), transparent 22%, rgba(226, 194, 122, .5) 50%, transparent 72%, color-mix(in srgb, var(--accent) 90%, #fff));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: edge 7s linear infinite;
}
@keyframes edge { to { --angle: 360deg; } }
.download { margin-bottom: .8rem; }
.form-title { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; font: 600 .82rem/1.3 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.dot { width: 8px; height: 8px; rotate: 45deg; background: var(--accent); flex: none; box-shadow: 0 0 12px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.field-row { display: grid; gap: .6rem; }
.field-row input {
  width: 100%; min-height: 54px; padding: .8rem 1rem; border-radius: 0;
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: rgba(255, 255, 255, .04); color: var(--text); font: 1.05rem var(--sans);
  transition: border-color .2s ease, background .2s ease;
}
.field-row input::placeholder { color: #7b9188; }
.field-row input:focus-visible { outline: 0; box-shadow: none; border-bottom-color: var(--accent); background: rgba(255, 255, 255, .07); box-shadow: 0 2px 0 var(--accent); }
.field-row .btn { min-height: 54px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; margin: .85rem 0 0; font-size: .8rem; line-height: 1.45; color: #c3d2cb; }
.consent input { flex: none; width: 20px; height: 20px; margin: .05rem 0 0; accent-color: var(--accent); }
.form-status { min-height: 0; margin: 0; font-weight: 600; font-size: .92rem; }
.form-status:not(:empty) { margin-top: .75rem; padding: .6rem .8rem; border-left: 3px solid currentColor; background: rgba(255, 255, 255, .04); }
.form-status.ok { color: var(--jade); }
.form-status.err { color: var(--danger); }
.fine { font-size: .76rem; color: #91a69d; margin: .6rem 0 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.download-buttons { display: grid; gap: .6rem; }
.scroll-cue {
  position: relative; align-self: center; display: flex; flex-direction: column; align-items: center; gap: .2rem; margin-top: 1.4rem;
  color: var(--muted); font: 600 .7rem/1 var(--display); letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
}
.scroll-cue svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; animation: bob 2.2s ease-in-out infinite; }
.scroll-cue:hover { color: var(--text); }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ----------------------------------------------------------------- classes */
.classes {
  position: relative; isolation: isolate; padding: 4rem 0 3rem; overflow: hidden;
  background:
    radial-gradient(70% 50% at 30% 55%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(50% 40% at 90% 10%, color-mix(in srgb, var(--accent-deep) 60%, transparent), transparent 70%),
    var(--ink);
}
.classes::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(255, 255, 255, .04) calc(25% - 1px) 25%);
}
.classes-head { position: relative; z-index: 3; margin-bottom: 1.8rem; }
.classes-head h2 { font-size: clamp(2.7rem, 12vw, 6.8rem); font-weight: 700; line-height: .9; letter-spacing: -.03em; margin: 0 0 .5rem; max-width: 12ch; }
.classes-lead { color: var(--muted); margin: 0; max-width: 28rem; font: italic 500 1.3rem/1.35 var(--serif); }

.selector { --cc: var(--accent); }
.roster { position: relative; z-index: 3; border: 0; margin: 0 -1.25rem 1rem; padding: .4rem 1.25rem .6rem; min-width: 0; display: flex; align-items: center; gap: .9rem; overflow-x: auto; scrollbar-width: none; }
.roster::-webkit-scrollbar { display: none; }
.roster-open { display: flex; gap: .35rem; flex: none; }
.roster-sealed { display: flex; gap: .25rem; flex: none; padding-left: .9rem; border-left: 1px solid rgba(226, 194, 122, .25); }
.pick { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tile {
  --mx: 0; --my: 0;
  display: flex; flex-direction: column; align-items: center; gap: .35rem; width: 70px; padding: .2rem 0; cursor: pointer;
  color: var(--muted); translate: calc(var(--mx) * 1px) calc(var(--my) * 1px); transition: color .25s ease, translate .25s var(--ease);
}
.tile-medal { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--cc) 14%, #0b1513), #060b0a 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 30%, transparent); transition: box-shadow .3s ease, transform .3s var(--ease); }
.tile-medal::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; opacity: 0; transition: opacity .3s ease;
  background: conic-gradient(from var(--angle), var(--cc), transparent 30%, color-mix(in srgb, var(--cc) 50%, #fff) 50%, transparent 80%, var(--cc));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  animation: edge 4s linear infinite;
}
.tile-emblem { width: 34px; height: 34px; overflow: visible; }
.emblem { fill: none; stroke: var(--cc); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: .65; transition: opacity .3s ease; }
.cls-tianyin .emblem circle { fill: var(--cc); stroke: none; }
.tile-name { font: 600 .68rem/1.15 var(--display); letter-spacing: .06em; text-align: center; overflow-wrap: anywhere; }
.tile:hover { color: var(--text); }
.tile:hover .emblem { opacity: 1; }
.pick:checked + .tile { color: var(--cc); }
.pick:checked + .tile .tile-medal { transform: scale(1.08); box-shadow: inset 0 0 0 1px var(--cc), 0 0 26px -2px color-mix(in srgb, var(--cc) 70%, transparent); }
.pick:checked + .tile .tile-medal::before { opacity: 1; }
.pick:checked + .tile .emblem { opacity: 1; filter: drop-shadow(0 0 4px var(--cc)); }
.pick:focus-visible + .tile .tile-medal { outline: 2px solid var(--accent); outline-offset: 6px; }
.tile-sealed { width: auto; padding: 0; }
.tile-lock { width: 30px; height: 30px; padding: 7px; border-radius: 50%; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; opacity: .5; box-shadow: inset 0 0 0 1px rgba(226, 194, 122, .3); animation: lock-pulse 3.2s ease-in-out infinite; }
.tile-sealed:nth-of-type(2n) .tile-lock { animation-delay: -1.1s; }
.tile-sealed:nth-of-type(3n) .tile-lock { animation-delay: -2.2s; }
@keyframes lock-pulse { 50% { opacity: .85; box-shadow: inset 0 0 0 1px rgba(226, 194, 122, .7), 0 0 14px rgba(226, 194, 122, .35); } }
.pick:checked + .tile-sealed .tile-lock { opacity: 1; stroke: #fff2c7; box-shadow: inset 0 0 0 1px var(--gold), 0 0 18px rgba(226, 194, 122, .6); }
.pick:focus-visible + .tile-sealed .tile-lock { outline: 2px solid var(--accent); outline-offset: 4px; }

.stage { position: relative; touch-action: pan-y; }
.panel { position: relative; display: grid; }
.panel-art { --tx: 0; --ty: 0; position: relative; display: grid; place-items: center; min-height: 380px; perspective: 1000px; }
.panel-glow { position: absolute; inset: 4% 0 10%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--cc) 30%, transparent), transparent); filter: blur(10px); }
/* render stage: the figure is cut out with its own contact shadow; light, aura and pedestal come from the page */
.panel-art:has(.figure-render) .panel-glow {
  inset: -2% -6% 4%;
  background:
    radial-gradient(38% 30% at 50% 30%, color-mix(in srgb, var(--cc) 30%, transparent), transparent 70%),
    radial-gradient(50% 48% at 50% 46%, color-mix(in srgb, var(--cc2) 85%, transparent), transparent 72%);
  filter: blur(14px); animation: stage-breathe 7s ease-in-out infinite;
}
@keyframes stage-breathe { 50% { opacity: .78; transform: scale(.97); } }
.figure {
  position: relative; z-index: 1; width: min(92vw, 420px); height: auto; overflow: visible;
  transform: rotateY(calc(var(--tx) * 7deg)) rotateX(calc(var(--ty) * -5deg));
  transition: transform .5s var(--ease);
  view-transition-name: class-figure;
}
/* class picture stage: one box the size of the skill arc; the picture takes cutout.py FIG_SHARE (420 / 540) of
   its width, top-aligned, so the art was fitted to clear the icons; the pedestal sits under the feet */
.stage-box { --stage-w: min(100%, 540px); position: relative; width: var(--stage-w); aspect-ratio: 4 / 5; }
.stage-box .skill-orbit { width: 100%; }
.stage-box .figure-render { position: absolute; top: 0; left: 11.1%; width: 77.8%; }
.panel-art .stage-box .pedestal { bottom: auto; top: 68.5%; width: 50%; height: 7%; }
.figure-render { aspect-ratio: 4 / 5; object-fit: contain; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--cc) 18%, transparent)); }
.pedestal { position: absolute; bottom: 2%; left: 50%; width: 70%; height: 30px; translate: -50% 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--cc) 50%, transparent), transparent); }
.panel-art:has(.figure-render) .pedestal {
  bottom: 3%; width: 64%; height: 9%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cc) 34%, transparent), color-mix(in srgb, var(--cc) 8%, transparent) 70%, transparent);
}
.panel-art:has(.figure-render) .pedestal::before {
  content: ""; position: absolute; inset: 14% 6%; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--cc) 75%, #fff);
  box-shadow: 0 0 14px color-mix(in srgb, var(--cc) 70%, transparent), inset 0 0 14px color-mix(in srgb, var(--cc) 45%, transparent);
  mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  animation: pedestal-pulse 4.5s ease-in-out infinite;
}
@keyframes pedestal-pulse { 50% { opacity: .55; } }

/* illustration layers: aura and sigil behind, the figure, effects in front */
.figure .art-fig { filter: drop-shadow(0 0 1.5px color-mix(in srgb, var(--cc) 90%, #fff)) drop-shadow(0 0 16px color-mix(in srgb, var(--cc) 50%, transparent)); }
.figure .art-aura { transform-box: fill-box; transform-origin: center; animation: aura 6s ease-in-out infinite; }
@keyframes aura { 50% { opacity: .75; transform: scale(.95); } }
.figure .art-sigil { filter: drop-shadow(0 0 6px var(--cc)); }
.figure .sigil-draw { animation: draw 2s cubic-bezier(.6, 0, .2, 1) .15s backwards; }
@keyframes draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
.figure .sigil-ring { transform-box: fill-box; transform-origin: center; animation: draw 2.4s ease .1s backwards, spin 90s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.figure .fx-float { animation: float 5s ease-in-out infinite; }
.figure .art-swords > g:nth-child(2n) .fx-float { animation-delay: -1.6s; }
.figure .art-swords > g:nth-child(3n) .fx-float { animation-delay: -3.1s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.figure .art-swords, .figure .art-weapon, .figure .art-fire { filter: drop-shadow(0 0 5px var(--cc)); }
.figure .fx-sway { transform-box: fill-box; transform-origin: 100% 0; animation: sway 5s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(-2.2deg) skewX(1.5deg); } }
.figure .fx-cloth { transform-box: fill-box; transform-origin: 100% 0; animation: cloth 4.2s ease-in-out infinite; }
@keyframes cloth { 50% { transform: skewY(-4deg) scaleX(1.05); } }
.figure .fx-spin { transform-box: fill-box; transform-origin: center; animation: spin 6s linear infinite; }
.figure .art-sigil .fx-spin { animation-duration: 60s; }
.figure .fx-chime { transform-box: view-box; transform-origin: 304px 40px; animation: chime 3s ease-in-out infinite; }
@keyframes chime { 50% { transform: rotate(4deg); } }
.figure .fx-drift { animation: drift-up 9s ease-in-out infinite; }
.figure .fx-drift:nth-child(2) { animation-delay: -3s; }
.figure .fx-drift:nth-child(3) { animation-delay: -6s; }
@keyframes drift-up { 50% { transform: translate(6px, -12px); opacity: .6; } }
.figure .fx-flicker { transform-box: fill-box; transform-origin: 50% 90%; animation: flicker 1.3s ease-in-out infinite alternate; }
.figure .art-fire .fx-flicker + .fx-flicker { animation-delay: -.6s; }
@keyframes flicker { 50% { transform: scale(.92, 1.08) skewX(3deg); } 100% { transform: scale(1.05, .94) skewX(-2deg); } }
.figure .fx-petal { transform-box: fill-box; transform-origin: center; animation: petal 8s ease-in-out infinite; }
.figure .fx-petal:nth-child(2n) { animation-delay: -2.7s; }
.figure .fx-petal:nth-child(3n) { animation-delay: -5.2s; }
@keyframes petal { 50% { transform: translate(-14px, 14px) rotate(140deg); opacity: .5; } }
.figure .fx-wind { stroke-opacity: .35; stroke-dasharray: 70 260; animation: wind 6s linear infinite; }
@keyframes wind { from { stroke-dashoffset: 330; } to { stroke-dashoffset: 0; } }
.figure .fx-slash, .figure .fx-trail { stroke-dasharray: 1; stroke-dashoffset: 0; animation: slash 4.5s ease-in-out infinite; }
.figure .fx-slash { stroke-dasharray: 520; }
.figure .fx-trail { stroke-dasharray: 120; }
@keyframes slash { 0% { stroke-dashoffset: 520; opacity: 0; } 20% { opacity: .8; } 50%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.figure .fx-formation { transform-box: fill-box; transform-origin: center; animation: formation 18s linear infinite; }
@keyframes formation { to { stroke-dashoffset: -220; } }
.figure .art-eyes { animation: glow-eyes 3.6s ease-in-out infinite; }
@keyframes glow-eyes { 50% { opacity: .45; } }
.figure .art-orb { transform-box: fill-box; transform-origin: center; animation: orb 3s ease-in-out infinite; }
@keyframes orb { 50% { transform: scale(1.12); opacity: .8; } }
.figure .art-motes circle { animation: mote 7s ease-in infinite; opacity: 0; }
.figure .art-motes circle:nth-child(2n) { animation-duration: 9s; animation-delay: -3s; }
.figure .art-motes circle:nth-child(3n) { animation-duration: 8s; animation-delay: -5.5s; }
.figure .art-motes circle:nth-child(5n) { animation-delay: -1.5s; }
@keyframes mote { 15% { opacity: .9; } 85% { opacity: .5; } to { opacity: 0; transform: translateY(-90px); } }

.panel-info { position: relative; z-index: 2; padding: 0 0 1.4rem; view-transition-name: class-info; }
.panel-info > * { animation: rise-in .7s var(--ease) both; }
.panel-info > :nth-child(2) { animation-delay: .06s; }
.panel-info > :nth-child(3) { animation-delay: .12s; }
.panel-info > :nth-child(4) { animation-delay: .18s; }
.panel-info > :nth-child(n+5) { animation-delay: .24s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
.panel-index { display: flex; align-items: baseline; gap: .4rem; margin: 0 0 .2rem; font: 600 .85rem/1 var(--display); color: var(--muted); letter-spacing: .1em; }
.panel-index span { font-size: 3rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--cc); letter-spacing: -.02em; }
.panel-school { margin: 0 0 .1rem; color: var(--cc); font: 600 .8rem/1.3 var(--display); letter-spacing: .3em; text-transform: uppercase; }
.panel-name {
  margin: 0 0 .8rem; font: 700 clamp(3rem, 15vw, 6.4rem)/.92 var(--display); letter-spacing: -.035em;
  background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--cc) 75%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px color-mix(in srgb, var(--cc) 35%, transparent));
}
.panel-name:lang(ru), [lang="ru"] .panel-name { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.panel-alt { display: block; margin-top: .45rem; font: 600 .95rem/1 var(--display); letter-spacing: .12em; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.panel-tags { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 0 0 1rem; }
.tag { padding-left: .7rem; border-left: 2px solid color-mix(in srgb, var(--cc) 60%, transparent); font: 700 .74rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #dbe7e1; }
.tag-range { border-left-color: var(--cc); color: var(--cc); }
.panel-line { color: #d3e0da; font-size: 1.06rem; max-width: 32rem; margin: 0 0 1.3rem; }
.panel-sub { font: 600 .74rem var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.branches { list-style: none; margin: 0; padding: 0; max-width: 28rem; counter-reset: br; }
.branches li { counter-increment: br; display: flex; align-items: center; gap: .9rem; padding: .7rem 0; border-top: 1px solid color-mix(in srgb, var(--cc) 22%, transparent); font: 600 1.25rem/1.2 var(--serif); }
.branches li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--cc) 22%, transparent); }
.branches li::after { content: counter(br, upper-roman); margin-left: auto; font: 600 .78rem var(--display); color: var(--cc); opacity: .8; }
.branch-mark { flex: none; width: .55rem; height: .55rem; rotate: 45deg; background: var(--cc); box-shadow: 0 0 12px var(--cc); }

/* sealed schools: a ring of seven locked sigils */
.seal-ring { width: min(84vw, 380px); overflow: visible; }
.seal-orbit { fill: none; stroke: rgba(226, 194, 122, .35); stroke-width: 1; stroke-dasharray: 2 8; transform-origin: 200px 200px; animation: spin 120s linear infinite; }
.seal-core { fill: rgba(226, 194, 122, .05); stroke: rgba(226, 194, 122, .3); }
.seal-q { font: 700 72px var(--display); fill: rgba(226, 194, 122, .5); }
.seal circle { fill: #0a110f; stroke: rgba(226, 194, 122, .4); stroke-width: 1.2; }
.seal g { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; }
.seal { animation: seal-pulse 3.5s ease-in-out infinite; }
.seal-2 { animation-delay: -.5s; } .seal-3 { animation-delay: -1s; } .seal-4 { animation-delay: -1.5s; }
.seal-5 { animation-delay: -2s; } .seal-6 { animation-delay: -2.5s; } .seal-7 { animation-delay: -3s; }
@keyframes seal-pulse { 50% { opacity: .45; } }
.selector:has(#pick-sealed-1:checked) .seal-1 circle, .selector:has(#pick-sealed-2:checked) .seal-2 circle,
.selector:has(#pick-sealed-3:checked) .seal-3 circle, .selector:has(#pick-sealed-4:checked) .seal-4 circle,
.selector:has(#pick-sealed-5:checked) .seal-5 circle, .selector:has(#pick-sealed-6:checked) .seal-6 circle,
.selector:has(#pick-sealed-7:checked) .seal-7 circle { stroke: #fff2c7; stroke-width: 2; fill: #2a2412; filter: drop-shadow(0 0 10px rgba(226, 194, 122, .8)); }

.stage-controls { position: relative; z-index: 4; display: flex; gap: .5rem; margin-top: .4rem; }
.stage-nav {
  --mx: 0; --my: 0;
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: rgba(5, 10, 9, .5); color: var(--accent);
  translate: calc(var(--mx) * 1px) calc(var(--my) * 1px); transition: background .2s ease, translate .25s var(--ease);
}
.stage-nav[hidden] { display: none; }
.stage-nav:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.stage-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.swipe-hint { margin: .6rem 0 0; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.swipe-hint[hidden] { display: none; }

/* active skills on an arc behind the class figure; the Ascension skills wear a gold ring */
.skill-orbit { position: absolute; z-index: 0; left: 50%; top: 0; width: min(100%, 540px); height: auto; aspect-ratio: 4 / 5; translate: -50% 0; overflow: visible; }
.orb { cursor: help; }
.orb > * { transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease), opacity .3s ease; }
.orb image { opacity: .82; }
.orb-ring { fill: #08100e; stroke: color-mix(in srgb, var(--cc) 70%, transparent); stroke-width: 1.5; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--cc) 60%, transparent)); }
.orb-asc .orb-ring { stroke: var(--gold); stroke-width: 2; filter: drop-shadow(0 0 8px rgba(226, 194, 122, .75)); }
.orb:hover > *, .orb:focus > * { transform: scale(1.25); }
.orb:hover image { opacity: 1; }
.skill-orbit .orb:nth-child(odd) { animation: orb-float 6s ease-in-out infinite; }
.skill-orbit .orb:nth-child(even) { animation: orb-float 7s ease-in-out -3s infinite; }
@keyframes orb-float { 50% { translate: 0 -4px; } }
.figure-render { pointer-events: none; }
/* generated class backdrop (scene/plate-<key>*.webp): 2.156x the stage width (3:2, so 115 % of its height), placed
   so the picture's ground line (--ground, share of the picture height, measured per backdrop) lies under the feet
   (75.7 % of the stage height, cutout.py FEET within FIG_SHARE); faded out towards every edge */
.stage-box { --ground: .84; }
.cls-qingyun .stage-box { --ground: .9; }
.cls-tianyin .stage-box { --ground: .83; }
.cls-hehuan .stage-box { --ground: .86; }
.stage-plate { position: absolute; left: 50%; top: calc(75.7% - var(--ground) * 115%); width: 215.6%; max-width: none; height: auto;
  translate: -50% 0; pointer-events: none; filter: brightness(.82) saturate(1.05);
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 30%, #000 66%, transparent 86%), linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 8%, #000 30%, #000 66%, transparent 86%), linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-composite: intersect;
  animation: plate-in 1.2s ease both; }
@keyframes plate-in { from { opacity: 0; } }
/* on a backdrop the figure stands on the ground: a soft contact shadow instead of the glowing pedestal ring */
.stage-box:has(.stage-plate) .pedestal { background: radial-gradient(closest-side, rgba(0, 0, 0, .7), rgba(0, 0, 0, .35) 55%, transparent); }
.stage-box:has(.stage-plate) .pedestal::before { display: none; }
.panel-art:has(.stage-plate) .panel-glow { opacity: .45; }

/* ------------------------------------------------------- launch rewards */
.rewards { position: relative; isolation: isolate; padding: 4rem 0 3.5rem; background:
  radial-gradient(60% 70% at 50% 0%, rgba(226, 194, 122, .12), transparent 70%), linear-gradient(180deg, var(--ink), #070f0d); }
/* generated cloud-scroll tile behind the cards */
.rewards::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background: url(clouds.svg) center top / 512px 512px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.rewards-kicker { margin: 0 0 .4rem; font: 700 .74rem/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.rewards h2 { margin: 0; font: 700 clamp(2rem, 8vw, 3.4rem)/1 var(--display); letter-spacing: -.02em; max-width: 26ch; }
.rewards-lead { margin: .8rem 0 2rem; max-width: 40rem; color: #cfdcd6; font: italic 500 1.2rem/1.4 var(--serif); }
.milestones { --track: rgba(226, 194, 122, .35); list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: ms; }
/* tier cards: outlined Cinzel numeral like the class index, a diamond rule, thin tier-coloured frame (no medal blobs) */
.ms { --mc: #c9874f; position: relative; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; align-items: center;
  padding: 1rem 1.1rem; border-radius: 4px; background: linear-gradient(180deg, color-mix(in srgb, var(--mc) 9%, rgba(8, 15, 14, .88)), rgba(5, 10, 9, .9));
  border: 1px solid color-mix(in srgb, var(--mc) 28%, transparent); transition: transform .35s var(--ease), border-color .35s ease, box-shadow .35s ease; }
.ms::after { content: ""; position: absolute; left: 12%; right: 12%; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--mc), transparent); opacity: .8; }
.ms:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--mc) 55%, transparent); box-shadow: 0 18px 40px -26px var(--mc); }
.ms-silver { --mc: #c7d3dc; } .ms-gold { --mc: #f0c35b; } .ms-diamond { --mc: #7fdcf2; } .ms-crown { --mc: #e7a4ff; }
.ms-badge { margin: 0; display: grid; justify-items: center; gap: .3rem; text-align: center; }
.ms-badge b { font: 700 2.6rem/1 var(--display); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px var(--mc);
  text-shadow: 0 0 22px color-mix(in srgb, var(--mc) 35%, transparent); }
.ms-badge span { font: 600 .62rem/1 var(--display); letter-spacing: .32em; text-transform: uppercase; color: var(--mc); }
.ms-badge::after { content: ""; width: 7px; height: 7px; margin-top: .3rem; rotate: 45deg; background: var(--mc);
  box-shadow: 0 0 10px color-mix(in srgb, var(--mc) 70%, transparent); }
/* generated tier medallion (scene/medal-<tier>.webp) with the numeral engraved on its centre disc */
.ms { --mt: #fff1dc; }
.ms-silver { --mt: #26313d; } .ms-gold { --mt: #5b3606; } .ms-diamond { --mt: #1d4f5a; } .ms-crown { --mt: #f6e3ff; }
.ms:has(.ms-medal) { grid-template-columns: 6.6rem minmax(0, 1fr); }
.ms-badge:has(.ms-medal) { position: relative; --md: 5.8rem; }
.ms-medal { display: block; width: var(--md); height: var(--md); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55)); transition: transform .4s var(--ease); }
.ms:hover .ms-medal { transform: rotate(-4deg) scale(1.04); }
.ms-badge:has(.ms-medal) b { position: absolute; left: 0; right: 0; top: calc(var(--md) / 2); translate: 0 -50%;
  font-size: 1.75rem; color: var(--mt); -webkit-text-stroke: 0; text-shadow: 0 1px 0 rgba(255, 255, 255, .3), 0 2px 6px rgba(0, 0, 0, .35); }
.ms-bronze .ms-badge:has(.ms-medal) b, .ms-crown .ms-badge:has(.ms-medal) b { text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.ms-badge:has(.ms-medal)::after { display: none; }
.ms-done .ms-badge:has(.ms-medal) b { color: var(--mt); }
.ms-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ms-items li { display: flex; align-items: center; gap: .65rem; font: 600 1.05rem/1.25 var(--serif); color: #fff; }
.ms-items img { width: 56px; height: 56px; border-radius: 6px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--mc) 50%, transparent), 0 6px 16px -8px var(--mc); }
.ms-dot { width: 8px; height: 8px; rotate: 45deg; background: var(--mc); }
/* reached tiers: green check top right, numeral filled */
.ms-check { position: absolute; top: .7rem; right: .7rem; width: 1.9rem; height: 1.9rem; padding: .35rem; border-radius: 50%;
  fill: none; stroke: #062b14; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ms:not(.ms-done) .ms-check { display: none; }
.ms-done .ms-check { background: radial-gradient(circle at 35% 30%, #a9f5b8, #39c463 60%, #1f8a40); border: 2px solid #8ff0a4;
  box-shadow: 0 0 0 4px rgba(57, 196, 99, .18), 0 0 22px rgba(57, 196, 99, .55); animation: ms-pop .6s var(--ease) both; }
@keyframes ms-pop { from { transform: scale(.4); opacity: 0; } }
.ms-done { border-color: rgba(87, 214, 122, .6); }
.ms-done .ms-badge b { color: color-mix(in srgb, var(--mc) 85%, #fff); -webkit-text-stroke: 0; }
@media (min-width: 980px) {
  .milestones { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; }
  .ms { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 1.5rem 1rem 1.3rem; align-content: start; gap: 1.1rem; }
  .ms-badge b { font-size: 3.2rem; }
  .ms:has(.ms-medal) { grid-template-columns: 1fr; padding-top: 1.2rem; }
  .ms-badge:has(.ms-medal) { --md: 7.4rem; }
  .ms-badge:has(.ms-medal) b { font-size: 2.15rem; }
  .ms-items li { flex-direction: column; gap: .35rem; font-size: 1rem; }
  .ms + .ms::before { content: ""; position: absolute; top: 3rem; right: 100%; width: 1.1rem; height: 1px; background: var(--track); }
}

/* one stage at a time where :has() exists; otherwise every panel is shown stacked */
@supports selector(:has(*)) {
  .selector .panel { display: none; }
  .selector:has(#pick-qingyun:checked) .panel-qingyun,
  .selector:has(#pick-tianyin:checked) .panel-tianyin,
  .selector:has(#pick-guiwang:checked) .panel-guiwang,
  .selector:has(#pick-hehuan:checked) .panel-hehuan,
  .selector:has(#pick-fenxiang:checked) .panel-fenxiang,
  .selector:has(.pick-sealed:checked) .panel-sealed { display: grid; }
}
@supports not selector(:has(*)) {
  .roster, .stage-controls, .swipe-hint { display: none !important; }
  .stage { display: grid; gap: 2.5rem; }
  .figure { view-transition-name: none; }
  .panel-info { view-transition-name: none; }
}

/* class switch as an event (View Transitions, started from app.js) */
::view-transition-old(class-figure) { animation: vt-out .35s ease both; }
::view-transition-new(class-figure) { animation: vt-in .75s var(--ease) both; }
::view-transition-old(class-info) { animation: vt-fade-out .25s ease both; }
::view-transition-new(class-info) { animation: vt-slide-in .6s var(--ease) .08s both; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .6s; }
@keyframes vt-out { to { opacity: 0; transform: scale(.9) translateX(-30px); filter: blur(8px); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.08) translateX(30px); filter: blur(10px) brightness(1.8); } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-slide-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------------------------------------------------------------- cta band */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; padding: 4rem 0 4.5rem;
  background:
    radial-gradient(60% 80% at 85% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(180deg, var(--ink), #07100e);
  border-top: 1px solid var(--line);
}
.cta-band::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: 50%; height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 50%, transparent), transparent);
}
.cta-inner { position: relative; display: grid; gap: 1.2rem; }
/* generated stairway backdrop (scene/cta*.webp): the gate shows on the left, text sits on the darkened image */
.cta-plate { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 18%; pointer-events: none; }
.cta-band:has(.cta-plate)::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(180deg, var(--ink) 0%, rgba(5, 10, 9, .2) 20%, rgba(5, 10, 9, .1) 60%, rgba(5, 10, 9, .8) 100%),
  linear-gradient(90deg, rgba(3, 7, 12, .55), rgba(3, 7, 12, .15) 45%, rgba(3, 7, 12, .5)); }
.cta-band:has(.cta-plate) h2 { text-shadow: 0 4px 30px rgba(0, 0, 0, .7); }
.cta-band:has(.cta-plate)::before { display: none; }
.cta-band h2 { font-size: clamp(2.6rem, 12vw, 6rem); font-weight: 700; line-height: .92; letter-spacing: -.03em; margin: 0; max-width: 10ch; }
.cta-side { position: relative; padding: 1.2rem 0 0 1.2rem; border-left: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: linear-gradient(90deg, rgba(5, 10, 9, .9), rgba(5, 10, 9, .6)); }
.cta-side p { color: #cfdcd6; max-width: 26rem; margin: 0 0 1.4rem; font: italic 500 1.35rem/1.35 var(--serif); }

/* scroll-driven reveal; app.js falls back to IntersectionObserver where view timelines are missing */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(48px); } }
.reveal.pending { opacity: 0; transform: translateY(48px); }
.reveal.shown { transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* ------------------------------------------------------------------ footer */
.site-footer { position: relative; border-top: 1px solid var(--line); background: #040807; padding: 1.6rem 0 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.4rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.footer-links a { color: #cbd9d2; text-decoration: none; font-size: .9rem; padding: .3rem 0; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-name a { margin-left: 1.2rem; font: 500 .82rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: #8fa39a; }
.footer-name a:hover { color: var(--accent); }
.privacy h2 { margin: 1.6rem 0 .4rem; font: 600 1.05rem/1.3 var(--display); letter-spacing: .06em; color: var(--accent); }
.privacy h2 + p { margin: 0; color: #d3e0da; }
.privacy .btn { margin-top: 1.4rem; }
.privacy-credit { margin: .5rem 0 0; font-size: .82rem; color: var(--muted); }
.footer-name { margin: 0; font: 700 .95rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #cbd9d2; }

/* ------------------------------------------------------- simple and legal */
.simple { padding: 6rem 0; min-height: 70vh; display: flex; align-items: center; }
.simple-card { position: relative; padding: 2.5rem 1.5rem; border-left: 2px solid var(--accent); background: linear-gradient(90deg, var(--panel), transparent); }
.simple-mark { width: 56px; height: 56px; margin: 0 0 1.2rem; fill: none; stroke: var(--accent); stroke-width: 2; }
.simple-mark path { fill: color-mix(in srgb, var(--accent) 18%, transparent); stroke: var(--gold); }
.simple h1 { font-size: clamp(2.2rem, 9vw, 3.6rem); font-weight: 700; letter-spacing: -.02em; }
.lead { font-size: 1.1rem; color: #c9d8d1; }
.unsub-form { margin-top: 1rem; }
.legal { padding: 6.5rem 0 5rem; }
.prose { font-size: 1rem; }
.prose h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 1rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2.2rem; color: var(--gold); }
.prose h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.prose p, .prose li { color: #cbd9d2; }
.prose ul { padding-left: 1.2rem; }
.prose address { font-style: normal; padding: 1rem 1.2rem; border-left: 3px solid var(--accent); background: var(--panel); margin-bottom: 1rem; }
.binding-note { padding: .8rem 1rem; border-left: 3px solid var(--gold); background: rgba(226, 194, 122, .06); color: var(--gold); font-size: .92rem; }

/* ------------------------------------------------------------- breakpoints */
/* phones: no full-screen hero with an empty misty band; the landscape gets its own strip under the form */
@media (max-width: 759px) {
  .hero { min-height: 0; padding-bottom: 15rem; }
  .layer { height: 42%; }
  .scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; translate: -50% 0; margin: 0; }
}
@media (max-width: 759px) {
  .hero-sky:has(.hero-video) .sky-glow { background: linear-gradient(180deg, rgba(3, 7, 10, .82) 0%, rgba(3, 7, 10, .55) 45%, rgba(3, 7, 10, .1) 72%, var(--ink) 100%); }
}
@media (min-width: 420px) {
  .brand-name { display: inline; }
}
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr auto; }
  .signup-form, .download { padding: 1.3rem 1.4rem 1.1rem; }
  .download-buttons { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .hero { padding: 6rem 0 1.4rem; }
  .moon { right: 8%; top: 11%; width: clamp(150px, 18vw, 250px); }
  .l-far { height: 74%; }
  .l-mid { height: 62%; }
  .l-near { height: 40%; }
  .classes { padding: 6rem 0 4rem; }
  .classes-head { margin-bottom: 2.4rem; }
  .roster { margin: 0 0 1.5rem; padding: .4rem 0; overflow: visible; flex-wrap: wrap; }
  .tile { width: 92px; }
  .tile-medal { width: 70px; height: 70px; }
  .tile-emblem { width: 40px; height: 40px; }
  .tile-name { font-size: .74rem; }
  .cta-inner { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 3rem; }
  .cta-band { padding: 6rem 0; }
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 600px) 1fr; grid-template-rows: 1fr auto; align-content: stretch; row-gap: 2rem; }
  .hero-title { align-self: end; }
  .hero-panel { grid-row: 2; }
  .scroll-cue { position: absolute; right: 4%; bottom: 2rem; margin: 0; writing-mode: vertical-rl; flex-direction: row; gap: .6rem; }
  .scroll-cue svg { writing-mode: horizontal-tb; }
  .selector { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 2rem; }
  .roster { flex-direction: column; align-items: center; margin: 0; padding: 0; gap: 1rem; align-self: center; }
  .roster-open { flex-direction: column; gap: .5rem; }
  .roster-sealed { flex-wrap: wrap; justify-content: center; width: 104px; gap: .3rem; padding: .9rem 0 0; border-left: 0; border-top: 1px solid rgba(226, 194, 122, .25); }
  /* title block above, arrows right under the talent list (both columns share the stage height) */
  .classes-head h2 { font-size: clamp(3rem, 5vw, 4.6rem); max-width: none; margin-bottom: .6rem; }
  .panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; column-gap: 1rem; min-height: 640px; }
  .panel-art { min-height: 640px; }
  .figure { width: min(100%, 540px); }
  .stage-box { --stage-w: min(100%, 560px); }
  .roster-sealed { display: grid; grid-template-columns: repeat(3, 30px); justify-content: center; gap: .45rem; width: auto; }
  .stage-box .figure-render { width: 77.8%; }
  .seal-ring { width: 460px; }
  .panel-info { padding: 2rem 0 5.6rem; }
  .panel-name { margin-left: -.06em; }
  .stage-controls { position: absolute; left: calc((100% - 1rem) * 1.1 / 2.1 + 1rem); bottom: 2rem; }
  .swipe-hint { display: none; }
}
@media (min-width: 1200px) {
  .panel-name { font-size: 7rem; margin-right: -5rem; }
}
@media (hover: hover) and (pointer: fine) {
  .swipe-hint { display: none; }
  body::after { inset: -100px; animation: grain 1.2s steps(4) infinite; }
  @keyframes grain { 25% { transform: translate(-30px, 20px); } 50% { transform: translate(20px, -40px); } 75% { transform: translate(-10px, 30px); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .layer, .moon { transform: none; }
  .figure, .btn, .tile, .stage-nav { transform: none; translate: none; }
  .motes { display: none; }
  .reveal.pending { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .ch, .panel-name { color: CanvasText; background: none; }
  .btn::before { background: ButtonFace; border: 1px solid ButtonText; }
}
