:root {
  --background: #03040a;
  --foreground: #f4f7ff;
  --card: #0a0d18;
  --card-foreground: #f4f7ff;
  --popover: #090c16;
  --popover-foreground: #f4f7ff;
  --primary: #4d73ff;
  --primary-foreground: #ffffff;
  --secondary: #16152b;
  --secondary-foreground: #eceaff;
  --muted: #0d1120;
  --muted-foreground: #98a0b7;
  --accent: #7a49ff;
  --accent-foreground: #ffffff;
  --destructive: #ff405d;
  --border: #273052;
  --input: #1a213b;
  --ring: #6482ff;
  --chart-1: #5d79ff;
  --chart-2: #8d51ff;
  --chart-3: #39c6ff;
  --chart-4: #b996ff;
  --chart-5: #f26cff;
  --radius: 0.25rem;
  --sidebar: #070913;
  --sidebar-foreground: #f4f7ff;
  --sidebar-primary: #5d79ff;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #151a30;
  --sidebar-accent-foreground: #ffffff;
  --sidebar-border: #273052;
  --sidebar-ring: #6482ff;
  --ink: #03040a;
  --blue: #4c76ff;
  --violet: #8b49ff;
  --ice: #a7c8ff;
  --line: rgba(133, 159, 255, 0.2);
  --hero-x: 0px;
  --hero-y: 0px;
  --logo-x: 0px;
  --logo-y: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--ink); }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Trebuchet MS", Arial, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: rgba(96, 112, 255, 0.48); color: white; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 84px;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(139, 166, 255, 0.16);
  background: linear-gradient(180deg, rgba(2, 3, 9, 0.94), rgba(3, 5, 13, 0.7));
  backdrop-filter: blur(18px);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 8vw -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 125, 255, 0.8), transparent);
}
.brand-mark { width: 178px; height: 58px; display: flex; align-items: center; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.main-nav { display: flex; justify-content: center; gap: clamp(24px, 3vw, 52px); }
.main-nav a {
  position: relative;
  color: #c5ccdf;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 180ms ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: -13px;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
  transition: left 180ms ease, right 180ms ease;
}
.main-nav a:hover { color: white; }
.main-nav a:hover::after { left: 0; right: 0; }
.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(133, 165, 255, 0.48);
  background: rgba(55, 79, 163, 0.14);
  color: #e9efff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.menu-button { display: none; }

.music-player {
  position: fixed;
  z-index: 70;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(125, 151, 255, .3);
  background: rgba(5, 8, 20, .86);
  box-shadow: 0 14px 45px rgba(0, 0, 0, .42), inset 0 0 22px rgba(70, 94, 255, .07);
  backdrop-filter: blur(16px);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.music-player.is-playing { border-color: rgba(116, 157, 255, .58); }
.music-player.is-playing::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--blue); box-shadow: 0 0 13px var(--blue); }
.music-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 10px; border: 0; background: transparent; color: #dce5ff; cursor: pointer; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.music-toggle-icon { width: 16px; color: #82a4ff; text-align: center; font-size: .7rem; text-shadow: 0 0 12px var(--blue); }
.music-volume { display: flex; align-items: center; gap: 7px; color: #7e89a3; font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.music-volume input { width: 76px; height: 4px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.music-volume output { width: 30px; color: #aebce3; font-size: .65rem; text-align: right; }
.music-toggle:focus-visible, .music-volume input:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

.hero {
  position: relative;
  height: max(760px, 100svh);
  display: grid;
  place-items: center;
  perspective: 1100px;
  overflow: hidden;
  isolation: isolate;
}
.hero-scene {
  position: absolute;
  z-index: -4;
  inset: -3%;
  background: url("../images/impact-rift-hero.png") center 58% / cover no-repeat;
  transform: translate3d(var(--hero-x), var(--hero-y), -40px) scale(1.1);
  transition: transform 140ms ease-out;
}
.hero-vignette {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(circle at 50% 57%, transparent 0 18%, rgba(3, 4, 11, 0.16) 43%, rgba(1, 2, 6, 0.78) 96%),
    linear-gradient(180deg, rgba(2, 3, 10, 0.62) 0%, transparent 35%, rgba(2, 3, 9, 0.16) 62%, #03040a 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(transparent, var(--ink));
}
.energy-ring {
  position: absolute;
  z-index: -1;
  width: min(55vw, 730px);
  aspect-ratio: 1;
  border: 1px solid rgba(108, 126, 255, 0.22);
  border-radius: 50%;
  background: conic-gradient(from 90deg, transparent, rgba(88, 79, 255, 0.2), transparent 28%, rgba(80, 154, 255, 0.16), transparent 65%);
  box-shadow: inset 0 0 70px rgba(83, 86, 255, 0.12), 0 0 90px rgba(73, 86, 255, 0.08);
  animation: ring-spin 22s linear infinite;
}
.energy-ring::before,
.energy-ring::after { content: ""; position: absolute; inset: 9%; border: 1px dashed rgba(150, 175, 255, 0.22); border-radius: 50%; }
.energy-ring::after { inset: 22%; border-style: solid; border-color: rgba(164, 117, 255, 0.18); }
.particle { position: absolute; z-index: -1; width: 4px; height: 70px; background: linear-gradient(var(--ice), transparent); opacity: 0.45; filter: drop-shadow(0 0 8px var(--blue)); animation: drift 7s ease-in-out infinite; }
.particle-one { left: 12%; top: 28%; transform: rotate(18deg); }
.particle-two { right: 14%; top: 36%; transform: rotate(-26deg); animation-delay: -3s; }
.particle-three { left: 27%; bottom: 18%; transform: rotate(42deg); animation-delay: -5s; }
.hero-content {
  width: min(94vw, 880px);
  padding: 100px 24px 80px;
  text-align: center;
  transform: translate3d(var(--logo-x), var(--logo-y), 54px);
  transition: transform 140ms ease-out;
}
.hero-kicker, .eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: #aab9e8;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.hero-kicker span, .eyebrow span { width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--blue)); }
.hero-kicker span:last-child, .eyebrow span:last-child { background: linear-gradient(90deg, var(--blue), transparent); }
.hero-logo {
  display: block;
  width: min(760px, 92vw);
  max-height: 360px;
  margin: -18px auto -22px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.72)) drop-shadow(0 0 38px rgba(61, 89, 255, .38));
  animation: logo-breathe 5s ease-in-out infinite;
}
.hero-copy { max-width: 630px; margin: 0 auto; color: #c6cee1; font-size: 1.05rem; line-height: 1.8; text-shadow: 0 2px 16px #000; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.action-button {
  min-width: 214px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 24px;
  border: 1px solid rgba(131, 159, 255, 0.42);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform 180ms ease, filter 180ms ease, background 180ms ease;
}
.action-button:hover { transform: translateY(-3px); filter: brightness(1.14); }
.action-primary { background: linear-gradient(135deg, #274eda, #7845e7); color: white; box-shadow: 0 12px 40px rgba(66, 75, 255, 0.3), inset 0 1px rgba(255,255,255,.2); }
.action-ghost { background: rgba(5, 8, 19, 0.65); color: #dbe4ff; backdrop-filter: blur(10px); }
.scroll-cue { position: absolute; z-index: 2; bottom: 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #8792ad; font-size: .66rem; font-weight: 800; letter-spacing: .2em; }
.scroll-cue svg { animation: bounce 1.8s ease-in-out infinite; }

.section { position: relative; padding: 120px 6vw; background: var(--ink); overflow: hidden; }
.section-heading { max-width: 720px; margin: 0 auto 62px; text-align: center; }
.section-heading .eyebrow { color: #8498d4; }
.section-heading h2, .join-content h2 {
  margin: 18px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: .95;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(86, 106, 255, .16);
}
.section-heading > p:last-child { margin: 0 auto; max-width: 600px; color: #929bb0; font-size: 1rem; line-height: 1.8; }
.section-grid-bg { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(82,104,177,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(82,104,177,.22) 1px, transparent 1px); background-size: 90px 90px; mask-image: linear-gradient(transparent, black 18%, black 75%, transparent); }
.news-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1220px; margin: 0 auto; perspective: 1300px; }
.tilt-card { --tilt-x: 0deg; --tilt-y: 0deg; transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transform-style: preserve-3d; transition: transform 130ms ease-out, border-color 220ms ease, background 220ms ease; }
.news-card {
  position: relative;
  min-height: 350px;
  padding: 38px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(16,20,37,.91), rgba(6,8,17,.94));
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  box-shadow: 0 30px 90px rgba(0,0,0,.25);
}
.news-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); opacity: .65; }
.news-card.featured { background: radial-gradient(circle at 80% 0%, rgba(103,60,218,.25), transparent 36%), linear-gradient(145deg, rgba(16,20,40,.96), rgba(7,9,19,.98)); border-color: rgba(116,114,255,.38); transform: translateY(-20px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
.card-index { position: absolute; right: 26px; top: 20px; color: rgba(166,184,233,.13); font-family: Georgia, serif; font-size: 4.5rem; }
.card-label, .system-card > p { color: #748bea; font-size: .72rem; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.news-card h3, .system-card h3 { position: relative; margin: 78px 0 18px; font-family: Georgia, serif; font-size: 1.75rem; font-weight: 500; line-height: 1.12; text-transform: uppercase; }
.news-card > p:not(.card-label) { color: #949db2; line-height: 1.75; }
.news-card a { position: absolute; bottom: 34px; display: inline-flex; gap: 8px; align-items: center; color: #cbd6ff; font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.news-card a:hover { color: white; }

.class-section { position: relative; min-height: 980px; overflow: hidden; padding: 104px 0 0; background: radial-gradient(circle at 66% 31%, rgba(29,50,89,.28), transparent 35%), linear-gradient(180deg, #02050b, #07101d 68%, #02040a); isolation: isolate; }
.class-section::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .3; background-image: linear-gradient(rgba(75,107,159,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(75,107,159,.08) 1px, transparent 1px); background-size: 86px 86px; mask-image: linear-gradient(transparent 5%, black 35%, black 85%, transparent); }
.class-section::after { content: ""; position: absolute; z-index: -1; left: 45%; top: 120px; width: min(50vw, 760px); aspect-ratio: 1; border: 1px solid rgba(84,111,157,.09); transform: rotate(45deg); box-shadow: 0 0 0 64px rgba(66,91,137,.022), 0 0 0 128px rgba(66,91,137,.018); }
.class-heading { position: relative; z-index: 5; width: min(94%, 1150px); margin: 0 auto; text-align: center; }
.class-kicker { margin: 0; color: #d4aa5f; font-family: Georgia, "Times New Roman", serif; font-size: .95rem; letter-spacing: .48em; text-transform: uppercase; }
.class-heading > p:last-child { margin: 12px auto 0; max-width: 860px; color: #778294; font-size: 1rem; line-height: 1.7; }
.class-stage { position: relative; min-height: 780px; margin-top: 6px; }
.class-stage::after { content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 470px; background: linear-gradient(180deg, transparent, rgba(2,5,11,.62) 18%, #030813 92%); pointer-events: none; }
.class-watermark { position: absolute; z-index: 0; left: 48%; top: 1%; color: rgba(74,101,143,.07); font-family: Georgia, serif; font-size: clamp(18rem, 31vw, 37rem); line-height: .8; letter-spacing: -.1em; transform: translateX(-24%); user-select: none; }
.class-character-panel { position: absolute; z-index: 2; left: 0; bottom: 0; width: min(37vw, 700px); height: 730px; pointer-events: none; }
.class-character-panel::after { content: ""; position: absolute; z-index: 4; inset: auto 0 0; height: 180px; background: linear-gradient(transparent, rgba(2,7,16,.96)); }
.class-character-aura { position: absolute; z-index: 0; left: -15%; right: 5%; bottom: -3%; height: 54%; background: radial-gradient(ellipse at center bottom, rgba(40,103,255,.9), rgba(44,53,202,.28) 43%, transparent 72%); filter: blur(20px); opacity: .8; }
.class-character-echo { position: absolute; z-index: 0; left: -22%; bottom: 2%; width: 116%; height: 104%; object-fit: contain; object-position: left bottom; opacity: .24; filter: blur(1px) saturate(1.25) drop-shadow(0 0 55px rgba(68,73,255,.52)); transform: scale(1.12); }
.class-character { position: absolute; z-index: 3; left: -5%; bottom: 0; width: 106%; height: 104%; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 32px 28px rgba(0,0,0,.85)) drop-shadow(0 0 26px rgba(66,111,255,.32)); user-select: none; }
.class-character.character-enter { animation: character-enter 540ms cubic-bezier(.2,.8,.2,1) both; }
.class-info { position: relative; z-index: 4; width: min(67vw, 1030px); margin: 88px 6vw 0 auto; text-align: center; animation: class-enter 400ms ease both; }
.class-role { margin: 0 0 18px; color: #7187a8; font-size: .76rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; }
.class-info h3 { margin: 0; color: #f6f8fc; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 5.2vw, 6rem); font-weight: 400; letter-spacing: .025em; line-height: 1; text-transform: uppercase; text-shadow: 0 8px 35px rgba(0,0,0,.75); }
.class-description { max-width: 930px; margin: 24px auto 0; color: #b0bacb; font-size: clamp(.96rem, 1.25vw, 1.2rem); line-height: 1.8; text-shadow: 0 2px 12px #000; }
.class-arrow { position: absolute; z-index: 8; top: 315px; width: 48px; height: 70px; display: grid; place-items: center; border: 1px solid rgba(101,133,189,.22); background: rgba(4,9,18,.68); color: #8798b4; cursor: pointer; font-family: Georgia, serif; font-size: 2.2rem; transition: color .2s ease, border-color .2s ease, background .2s ease; backdrop-filter: blur(8px); }
.class-arrow:hover { color: white; border-color: rgba(92,135,255,.7); background: rgba(18,31,58,.84); }
.class-arrow-previous { left: 22px; }
.class-arrow-next { right: 22px; }
.class-tabs { position: absolute; z-index: 7; left: 36vw; top: 270px; width: min(760px, 61vw); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 6px; row-gap: 2px; align-items: stretch; }
.class-tabs button { position: relative; min-width: 0; height: 205px; overflow: hidden; padding: 0; border: 1px solid rgba(83,109,157,.28); background: linear-gradient(180deg, rgba(10,18,32,.72), rgba(5,10,20,.96)); color: #8d98aa; cursor: pointer; clip-path: polygon(50% 0, 100% 9%, 100% 88%, 50% 100%, 0 88%, 0 9%); transition: filter .28s ease, border-color .28s ease, transform .28s ease; }
.class-tabs button::before { content: ""; position: absolute; z-index: 3; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(3,6,13,.2) 55%, rgba(3,6,13,.98) 90%); }
.class-tabs button::after { content: ""; position: absolute; z-index: 4; left: 18%; right: 18%; bottom: 4px; height: 2px; background: transparent; box-shadow: none; transition: background .28s ease, box-shadow .28s ease; }
.class-tabs button:hover { filter: brightness(1.18); transform: translateY(-5px); }
.class-tab-portrait { position: absolute; z-index: 1; inset: 0; display: block; color: inherit; }
.class-tab-portrait img { position: absolute; left: 50%; top: -5%; width: 172%; height: 165%; max-width: none; object-fit: contain; object-position: center top; transform: translateX(-50%); filter: saturate(.72) brightness(.66); transition: filter .28s ease, transform .28s ease; }
.class-tab-copy { position: absolute; z-index: 5; left: 6px; right: 6px; bottom: 26px; display: flex; flex-direction: column; gap: 7px; align-items: center; color: inherit; text-transform: uppercase; }
.class-tab-copy small { color: #65728b; font-size: .62rem; font-weight: 900; letter-spacing: .22em; }
.class-tab-copy strong { color: inherit; font-family: Georgia, "Times New Roman", serif; font-size: clamp(.62rem, .72vw, .8rem); font-weight: 400; letter-spacing: .05em; line-height: 1.15; }
.class-tabs button.is-active { z-index: 2; height: 205px; border-color: rgba(127,159,255,.82); color: white; filter: brightness(1.13); transform: translateY(-2px) scale(1.012); box-shadow: 0 0 0 1px rgba(129,158,255,.25), 0 0 45px rgba(50,83,255,.24); }
.class-tabs button.is-active::after { background: #d8e5ff; box-shadow: 0 0 12px #6d99ff, 0 0 28px #3a61ff; }
.class-tabs button.is-active .class-tab-portrait img { filter: saturate(1.1) brightness(1); transform: translateX(-50%) scale(1.04); }
.class-tabs button.is-active .class-tab-copy small { color: #a8c2ff; }
.class-counter { position: absolute; z-index: 8; right: 4vw; top: 244px; margin: 0; color: #64738e; font-size: .7rem; font-weight: 900; letter-spacing: .2em; }
.class-arrow:focus-visible, .class-tabs button:focus-visible { outline: 2px solid var(--ice); outline-offset: -4px; }

.systems-section { padding-top: 170px; background: linear-gradient(180deg, #03040a, #070915 60%, #03040a); }
.systems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1180px; margin: 0 auto; perspective: 1200px; }
.system-card { position: relative; min-height: 430px; padding: 42px; overflow: hidden; border: 1px solid rgba(119,142,229,.2); background: linear-gradient(155deg, rgba(16,20,39,.92), rgba(5,7,15,.96)); clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px)); }
.system-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -80px; bottom: -80px; border: 1px solid rgba(91,114,224,.18); transform: rotate(45deg); }
.system-number { position: absolute; right: 28px; top: 24px; color: rgba(151,170,230,.14); font-family: Georgia, serif; font-size: 4rem; }
.system-icon { width: 90px; height: 90px; display: grid; place-items: center; margin: 26px 0 50px; border: 1px solid rgba(96,127,255,.3); background: radial-gradient(circle, rgba(85,92,255,.2), transparent 72%); transform: rotate(45deg); box-shadow: 0 0 46px rgba(67,85,255,.15); }
.system-icon svg { width: 42px; height: 42px; color: #91a7ff; transform: rotate(-45deg); }
.system-card h3 { margin: 12px 0 18px; }
.system-card > span { color: #929caf; line-height: 1.75; }

.voters-section { background: radial-gradient(circle at 50% 0, rgba(54, 77, 181, .2), transparent 34rem), linear-gradient(180deg, #03040a, #080b18 55%, #03040a); }
.top-voter-board { position: relative; z-index: 1; width: min(980px, 100%); display: grid; gap: 8px; margin: 0 auto; }
.top-voter-row { min-height: 82px; display: grid; grid-template-columns: 85px 1fr 150px; align-items: center; gap: 20px; padding: 15px 24px; border: 1px solid rgba(119, 142, 229, .18); background: linear-gradient(145deg, rgba(15, 20, 39, .94), rgba(5, 8, 17, .97)); clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.top-voter-row.is-podium { border-color: rgba(150, 169, 255, .4); background: radial-gradient(circle at 94% 50%, rgba(75, 98, 218, .2), transparent 16rem), linear-gradient(145deg, rgba(18, 25, 50, .97), rgba(6, 9, 20, .98)); }
.top-voter-rank { color: #8199ed; font-family: Georgia, serif; font-size: 1.45rem; }
.top-voter-row.is-podium .top-voter-rank { color: #e8c779; text-shadow: 0 0 18px rgba(235, 192, 108, .28); }
.top-voter-identity strong { display: block; color: #f1f4ff; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 400; text-transform: uppercase; }
.top-voter-identity small { display: block; margin-top: 5px; color: #737f98; font-size: .72rem; }
.top-voter-count { text-align: right; }
.top-voter-count strong { display: block; color: #dbe4ff; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 400; }
.top-voter-count small { color: #7180a0; font-size: .62rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.top-voter-loading { padding: 46px 24px; border: 1px dashed rgba(119, 142, 229, .23); background: rgba(6, 9, 19, .7); color: #8490a9; text-align: center; }
.top-voter-action { position: relative; z-index: 1; display: flex; justify-content: center; margin-top: 34px; }

.join-section { position: relative; min-height: 680px; display: grid; place-items: center; padding: 110px 6vw; overflow: hidden; background: linear-gradient(rgba(3,4,11,.38), #03040a), url("../images/impact-rift-hero.png") center 64% / cover fixed; }
.join-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 0 12%, rgba(3,4,10,.45) 45%, #03040a 92%); }
.join-glow { position: absolute; width: 430px; height: 430px; border: 1px solid rgba(92,116,255,.2); border-radius: 50%; box-shadow: 0 0 120px rgba(73,77,255,.18), inset 0 0 80px rgba(80,74,255,.12); animation: pulse 4s ease-in-out infinite; }
.join-content { position: relative; z-index: 2; width: min(900px, 100%); text-align: center; }
.join-content > p:not(.eyebrow) { color: #a5aec1; font-size: 1rem; line-height: 1.8; }
.join-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 42px auto 0; max-width: 820px; }
.join-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 22px 24px; border: 1px solid rgba(119,144,237,.28); background: rgba(8,10,23,.82); backdrop-filter: blur(16px); text-align: left; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.join-card:hover { transform: translateY(-4px); border-color: rgba(118,142,255,.65); background: rgba(19,23,52,.9); }
.join-card > svg:first-child, .join-card > b { color: #7893ff; font-size: 1.55rem; }
.join-card small { display: block; margin-bottom: 5px; color: #79839a; font-size: .68rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.join-card strong { font-family: Georgia, serif; font-size: 1.1rem; font-weight: 500; text-transform: uppercase; }
.join-card > svg:last-child, .join-card > i { width: 18px; color: #66718c; font-style: normal; }

footer { min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px 6vw; border-top: 1px solid rgba(116,137,220,.15); background: #020308; color: #687187; }
footer img { width: 170px; height: 80px; object-fit: contain; filter: grayscale(.15); }
footer p { font-size: .76rem; }
footer div { display: flex; gap: 24px; }
footer a { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
footer a:hover { color: white; }

.menu-button { cursor: pointer; }
.menu-button span { display: block; width: 20px; height: 2px; margin: 2px 0; background: #dfe6ff; transition: transform .2s ease, opacity .2s ease; }
.menu-button.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-button.is-open span:nth-child(2) { opacity: 0; }
.menu-button.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.join-card-wide { grid-column: 1 / -1; max-width: 420px; width: 100%; justify-self: center; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; max-width: min(90vw, 520px); padding: 14px 20px; border: 1px solid rgba(120,145,255,.45); background: rgba(8,11,24,.96); box-shadow: 0 18px 60px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.07); color: #dce4ff; font-size: .86rem; line-height: 1.5; text-align: center; translate: -50% 24px; opacity: 0; pointer-events: none; transition: opacity .22s ease, translate .22s ease; }
.toast.show { opacity: 1; translate: -50% 0; }

.registration-page { min-height: 100svh; background: #03040a url("../images/impact-rift-hero.png") center / cover fixed no-repeat; }
.registration-page::before { content: ""; position: fixed; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(9,11,28,.36), rgba(3,4,10,.92) 72%); }
.compact-header { grid-template-columns: 1fr auto; }
.back-link { color: #aeb9d3; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.back-link:hover { color: white; }
.registration-shell { position: relative; z-index: 2; min-height: 100svh; display: grid; place-items: center; padding: 120px 24px 48px; }
.registration-panel { width: min(1100px, 100%); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); overflow: hidden; border: 1px solid rgba(120,145,236,.26); background: rgba(5,7,16,.93); box-shadow: 0 40px 120px rgba(0,0,0,.58); clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px); }
.registration-art { position: relative; min-height: 690px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px; overflow: hidden; text-align: center; background: linear-gradient(180deg, rgba(3,5,14,.18), rgba(3,4,10,.92)), url("../images/impact-rift-hero.png") center / cover no-repeat; }
.registration-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, transparent 10%, rgba(4,5,14,.72) 82%); }
.registration-art > * { position: relative; z-index: 2; }
.registration-art img { width: min(520px, 112%); margin-bottom: -20px; filter: drop-shadow(0 20px 24px rgba(0,0,0,.72)) drop-shadow(0 0 34px rgba(76,96,255,.34)); }
.registration-art h1 { margin: 0 0 14px; font-family: Georgia, serif; font-size: clamp(2.5rem, 5vw, 4.6rem); font-weight: 500; line-height: .94; text-transform: uppercase; }
.registration-art p { max-width: 440px; margin: 0; color: #a9b2c8; line-height: 1.8; }
.registration-ring { position: absolute; z-index: 1; width: 450px; aspect-ratio: 1; border: 1px solid rgba(123,146,255,.24); border-radius: 50%; box-shadow: inset 0 0 80px rgba(89,89,255,.12), 0 0 90px rgba(64,75,255,.12); animation: ring-spin 24s linear infinite; }
.registration-form { display: flex; flex-direction: column; justify-content: center; padding: 48px; }
.registration-form .eyebrow { justify-content: flex-start; color: #788ed6; }
.registration-form h2 { margin: 14px 0 10px; font-family: Georgia, serif; font-size: 2.6rem; font-weight: 500; text-transform: uppercase; }
.form-intro { margin: 0 0 28px; color: #8e98ae; line-height: 1.65; }
.registration-form > label:not(.agreement) { margin: 15px 0 8px; color: #c6cee0; font-size: .76rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.registration-form input[type="text"], .registration-form input[type="email"], .registration-form input[type="password"] { width: 100%; height: 51px; padding: 0 15px; border: 1px solid rgba(122,145,229,.23); border-radius: 0; outline: none; background: rgba(11,14,29,.9); color: white; font: inherit; }
.registration-form input:focus { border-color: #627fff; box-shadow: 0 0 0 3px rgba(82,109,255,.13), 0 0 22px rgba(71,86,255,.11); }
.password-field { position: relative; }
.password-field input { padding-right: 65px !important; }
.password-toggle { position: absolute; right: 0; top: 0; height: 51px; width: 62px; border: 0; background: transparent; color: #8293c9; cursor: pointer; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.agreement { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; color: #929bb0; font-size: .82rem; line-height: 1.5; }
.agreement input { margin-top: 3px; accent-color: #657dff; }
.form-error { min-height: 20px; margin: 10px 0 0; color: #ff8da0; font-size: .8rem; }
.form-error.form-success { color: #79efb4; }
.registration-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.submit-button { height: 54px; display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; border: 1px solid rgba(151,166,255,.42); background: linear-gradient(135deg, #2a50d6, #7543de); color: white; cursor: pointer; font-size: .8rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.submit-button:hover { filter: brightness(1.13); }
.form-note { margin: 18px 0 0; color: #667188; font-size: .73rem; line-height: 1.5; text-align: center; }

.reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s ease; }
.reveal.is-visible { opacity: 1; translate: 0 0; }
.featured.reveal { translate: 0 4px; }
.featured.reveal.is-visible { translate: 0 -20px; }

@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes logo-breathe { 50% { filter: drop-shadow(0 20px 28px rgba(0,0,0,.75)) drop-shadow(0 0 52px rgba(69,91,255,.56)); } }
@keyframes drift { 50% { translate: 12px -24px; opacity: .8; } }
@keyframes bounce { 50% { transform: translateY(7px); } }
@keyframes scan { 50%, 100% { transform: translateX(100%); } }
@keyframes class-enter { from { opacity: 0; transform: translateX(18px); } }
@keyframes character-enter { from { opacity: 0; transform: translateY(28px) scale(.96); filter: blur(8px) drop-shadow(0 28px 25px rgba(0,0,0,.72)); } }
@keyframes stat-grow { from { width: 0; } }
@keyframes pulse { 50% { transform: scale(1.06); opacity: .7; } }

@media (max-width: 1200px) {
  .class-section { min-height: 960px; }
  .class-stage { min-height: 760px; }
  .class-tabs { left: 35vw; right: 18px; top: 270px; width: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding: 0; }
  .class-tabs button, .class-tabs button.is-active { height: 195px; }
  .class-counter { right: 22px; top: 244px; bottom: auto; }
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: 180px 1fr 170px; padding: 0 24px; }
  .main-nav { gap: 20px; }
  .main-nav a { font-size: .7rem; }
  .news-grid, .systems-grid { grid-template-columns: 1fr; max-width: 680px; }
  .news-card { min-height: 300px; }
  .news-card.featured { transform: none; }
  .featured.reveal, .featured.reveal.is-visible { translate: 0 0; }
  .class-section { min-height: 1010px; }
  .class-stage { min-height: 830px; }
  .class-character-panel { width: min(43vw, 430px); height: 600px; bottom: 40px; }
  .class-info { width: 72vw; margin: 80px 3vw 0 auto; }
  .class-tabs { left: 35vw; right: 16px; top: 305px; bottom: auto; width: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding: 0; }
  .class-tabs button, .class-tabs button.is-active { height: 185px; }
  .class-counter { right: 18px; top: 278px; bottom: auto; }
  .systems-section { padding-top: 190px; }
  .registration-panel { grid-template-columns: 1fr; max-width: 680px; }
  .registration-art { min-height: 420px; }
  .registration-form { padding: 45px; }
}

@media (max-width: 760px) {
  .site-header { height: 72px; grid-template-columns: 1fr auto; padding: 0 18px; }
  .brand-mark { width: 150px; height: 54px; }
  .header-cta { display: none; }
  .menu-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(122,145,233,.3); background: rgba(8,11,22,.8); color: white; }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; display: grid; gap: 0; padding: 8px 18px 20px; background: rgba(3,5,13,.97); border-bottom: 1px solid rgba(125,146,225,.2); transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease; }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 17px 4px; border-bottom: 1px solid rgba(117,139,222,.1); }
  .main-nav a::after { display: none; }
  .music-player { right: 10px; bottom: 10px; gap: 7px; padding-right: 8px; }
  .music-toggle { padding: 0 6px; }
  .music-toggle > span:last-child { display: none; }
  .music-volume input { width: 64px; }
  .music-volume output { display: none; }
  .hero { height: max(720px, 100svh); }
  .hero-scene { inset: -2%; background-position: center 58%; transform: scale(1.06); }
  .energy-ring { width: 95vw; }
  .hero-content { padding: 90px 12px 70px; }
  .hero-kicker { font-size: .62rem; letter-spacing: .22em; }
  .hero-logo { width: 104vw; max-width: none; margin: -5px 0 -8px; transform: translateX(-4%); }
  .hero-copy { max-width: 90%; font-size: .95rem; line-height: 1.7; }
  .hero-actions { display: grid; margin-inline: auto; max-width: 290px; }
  .action-button { width: 100%; }
  .scroll-cue span { display: none; }
  .section { padding: 92px 20px; }
  .section-heading { margin-bottom: 44px; }
  .section-heading h2, .join-content h2 { font-size: clamp(2.35rem, 13vw, 3.7rem); }
  .eyebrow { font-size: .62rem; letter-spacing: .23em; }
  .news-card, .system-card { padding: 30px; }
  html { scroll-padding-top: 72px; }
  .class-section { min-height: 1320px; padding-top: 82px; }
  .class-heading { padding: 0 20px; }
  .class-kicker { font-size: .78rem; letter-spacing: .38em; }
  .class-heading > p:last-child { font-size: .9rem; line-height: 1.55; }
  .class-stage { min-height: 1120px; margin-top: 0; }
  .class-stage::after { height: 690px; }
  .class-watermark { left: 46%; top: 13%; font-size: 18rem; }
  .class-character-panel { left: -24%; bottom: 620px; width: 105%; height: 450px; opacity: .72; }
  .class-character-echo { left: -14%; opacity: .18; }
  .class-info { width: calc(100% - 38px); margin: 58px auto 0; padding-left: 25%; text-align: right; }
  .class-role { margin-bottom: 10px; font-size: .62rem; letter-spacing: .22em; }
  .class-info h3 { font-size: clamp(2.25rem, 11vw, 3.5rem); }
  .class-description { margin-top: 16px; font-size: .86rem; line-height: 1.55; }
  .class-arrow { top: 300px; width: 40px; height: 58px; }
  .class-arrow-previous { left: 8px; }
  .class-arrow-next { right: 8px; }
  .class-tabs { left: 15px; right: 15px; top: auto; bottom: 10px; width: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; row-gap: 2px; padding: 0; }
  .class-tabs button, .class-tabs button.is-active { height: 158px; }
  .class-tabs button.is-active { transform: translateY(-2px) scale(1.01); }
  .class-tab-copy { bottom: 22px; }
  .class-tab-copy strong { font-size: .65rem; }
  .class-counter { right: 16px; top: auto; bottom: 660px; }
  .systems-section { padding-top: 130px; }
  .top-voter-row { grid-template-columns: 55px 1fr auto; gap: 12px; padding: 14px 16px; }
  .top-voter-rank { font-size: 1rem; }
  .top-voter-identity strong { font-size: 1rem; }
  .top-voter-count { min-width: 60px; }
  .top-voter-count strong { font-size: 1.25rem; }
  .join-section { min-height: 760px; background-attachment: scroll; padding: 90px 20px; }
  .join-actions { grid-template-columns: 1fr; }
  .join-card-wide { grid-column: auto; max-width: none; }
  footer { flex-direction: column; text-align: center; }
  .compact-header { grid-template-columns: 1fr auto; }
  .compact-header .back-link { display: block; font-size: .66rem; }
  .registration-shell { padding: 92px 14px 30px; }
  .registration-art { min-height: 330px; padding: 30px 22px; }
  .registration-art img { width: 104%; }
  .registration-art h1 { font-size: 2.45rem; }
  .registration-form { padding: 34px 24px; }
  .registration-form .eyebrow { justify-content: center; }
  .registration-form h2, .form-intro { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
