:root {
  --bg: #06070a;
  --bg-soft: #090b10;
  --surface: #0e1117;
  --surface-2: #12161d;
  --text: #f4f0e9;
  --muted: #a2a6af;
  --muted-2: #767b86;
  --gold: #d2ad67;
  --gold-bright: #f0d28e;
  --gold-deep: #9d7437;
  --ember: #a5332d;
  --line: rgba(214, 178, 107, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  --shell: min(1240px, calc(100% - 48px));
  --header-height: 82px;
  --serif: "Cinzel", Georgia, serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 22%, rgba(104, 25, 23, 0.12), transparent 32rem),
    radial-gradient(circle at 88% 52%, rgba(31, 49, 83, 0.1), transparent 35rem),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.025;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.7) 0, rgba(255,255,255,.7) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.4) 0, rgba(255,255,255,.4) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: soft-light;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
a,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: currentColor;
}

::selection {
  color: #130f08;
  background: var(--gold-bright);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  color: #06070a;
  background: var(--gold-bright);
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.site-header.scrolled,
.site-header.menu-active {
  border-color: var(--line-soft);
  background: rgba(5, 7, 10, 0.88);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-shell {
  width: var(--shell);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 28px;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 5px 16px rgba(202, 54, 43, 0.35));
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--gold);
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .42em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.2vw, 38px);
}

.desktop-nav a {
  position: relative;
  padding: 30px 0 28px;
  color: rgba(244, 240, 233, 0.78);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .035em;
  transition: color .25s ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-button {
  min-width: 112px;
  padding: 10px 18px;
  border: 1px solid rgba(229, 194, 124, 0.52);
  border-radius: 4px;
  color: var(--gold-bright);
  background: rgba(214, 177, 105, 0.08);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}

.account-button:hover {
  color: #110e09;
  border-color: var(--gold-bright);
  background: var(--gold-bright);
  transform: translateY(-1px);
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
}

.menu-button span {
  position: absolute;
  width: 18px;
  height: 1px;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}

.menu-button span:nth-child(1) { transform: translateY(-6px); }
.menu-button span:nth-child(3) { transform: translateY(6px); }
.menu-button.open span:nth-child(1) { transform: rotate(45deg); }
.menu-button.open span:nth-child(2) { opacity: 0; }
.menu-button.open span:nth-child(3) { transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 auto;
  display: none;
  padding: 20px 24px 28px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 7, 10, .97);
  box-shadow: 0 30px 60px rgba(0,0,0,.42);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.mobile-nav.open {
  display: grid;
  animation: menuDrop .25s ease both;
}

.mobile-nav a,
.mobile-nav button {
  padding: 13px 4px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--text);
  background: transparent;
  text-align: left;
  font-family: var(--serif);
  font-size: .92rem;
  letter-spacing: .08em;
  cursor: pointer;
}

@keyframes menuDrop {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  min-height: 780px;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #06070a url("assets/hero-poster.webp") center / cover no-repeat;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  z-index: -5;
  object-fit: cover;
  object-position: center;
  filter: saturate(.78) contrast(1.08) brightness(.62);
  transform: scale(1.01);
}

.hero-shade {
  pointer-events: none;
}

.hero-shade-base {
  z-index: -4;
  background: rgba(6, 7, 10, .25);
}

.hero-shade-vignette {
  z-index: -3;
  background:
    radial-gradient(circle at 50% 44%, rgba(0, 0, 0, .06) 0, rgba(0, 0, 0, .26) 37%, rgba(3, 4, 8, .82) 100%),
    linear-gradient(90deg, rgba(2, 3, 6, .62), transparent 31%, transparent 69%, rgba(2, 3, 6, .62));
}

.hero-shade-bottom {
  z-index: -2;
  background: linear-gradient(180deg, rgba(5, 6, 9, .35) 0, transparent 20%, transparent 58%, rgba(5, 6, 9, .35) 76%, #06070a 100%);
}

.hero-content {
  width: min(900px, calc(100% - 40px));
  min-height: 100%;
  margin: 0 auto;
  padding: calc(var(--header-height) + 34px) 0 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(220, 183, 109, .32);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(7, 8, 11, .46);
  box-shadow: inset 0 0 24px rgba(220, 183, 109, .04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.launch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d14d42;
  box-shadow: 0 0 14px rgba(210, 65, 55, .9);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: .45; box-shadow: 0 0 5px rgba(210, 65, 55, .6); }
}

.hero-logo {
  width: clamp(270px, 31vw, 420px);
  max-height: 42vh;
  margin: -8px auto -10px;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.72)) drop-shadow(0 0 22px rgba(183, 55, 43, .17));
}

.hero-kicker,
.section-kicker {
  margin: 0;
  color: var(--gold);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .23em;
  text-transform: uppercase;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 4px;
}

.hero-kicker span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: clamp(2.05rem, 4vw, 4.05rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .08em;
  text-shadow: 0 8px 28px rgba(0,0,0,.78);
  text-transform: uppercase;
}

.hero-lead {
  max-width: 690px;
  margin: 0;
  color: rgba(235, 233, 229, .78);
  font-size: clamp(.92rem, 1.35vw, 1.05rem);
  line-height: 1.8;
  text-shadow: 0 3px 16px rgba(0,0,0,.9);
}

.hero-actions,
.community-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .095em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, color .25s ease, border-color .25s ease, background .25s ease;
}

.button svg {
  width: 17px;
  height: 17px;
}

.button:hover {
  transform: translateY(-2px);
}

.button-gold {
  color: #17120b;
  border-color: var(--gold-bright);
  background: linear-gradient(135deg, #f0d28e 0%, #c89b4d 58%, #ae7e36 100%);
  box-shadow: 0 12px 32px rgba(168, 115, 43, .22), inset 0 1px rgba(255,255,255,.45);
}

.button-gold:hover {
  box-shadow: 0 16px 42px rgba(183, 126, 48, .33), inset 0 1px rgba(255,255,255,.55);
}

.button-ghost {
  color: var(--text);
  border-color: rgba(255,255,255,.22);
  background: rgba(4, 5, 8, .32);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.button-ghost:hover {
  border-color: rgba(228, 197, 135, .55);
  background: rgba(210, 174, 103, .08);
}

.platform-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin-top: 20px;
  color: rgba(235, 232, 226, .62);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.platform-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.platform-line svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.platform-line i {
  width: 1px;
  height: 15px;
  background: rgba(255,255,255,.2);
}

.video-control {
  position: absolute;
  right: 26px;
  bottom: 28px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: rgba(255,255,255,.78);
  background: rgba(5,7,10,.42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.video-control:hover {
  color: var(--gold-bright);
  border-color: rgba(235, 199, 126, .5);
  background: rgba(5,7,10,.7);
}

.video-control svg {
  width: 15px;
  height: 15px;
}

.video-control .play-icon,
.video-control[data-state="paused"] .pause-icon {
  display: none;
}

.video-control[data-state="paused"] .play-icon {
  display: block;
  margin-left: 2px;
}

.scroll-cue {
  position: absolute;
  bottom: 27px;
  left: 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255,255,255,.52);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollLine {
  50% { transform: scaleY(.45); opacity: .45; }
}

.realm-strip {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(9,11,15,.92);
}

.realm-strip-inner {
  width: var(--shell);
  min-height: 98px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 18px;
  border-right: 1px solid var(--line-soft);
}

.strip-item:first-child {
  border-left: 1px solid var(--line-soft);
}

.strip-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(210,173,103,.04);
}

.strip-icon svg {
  width: 18px;
  height: 18px;
}

.strip-item > span:last-child {
  display: grid;
}

.strip-item small,
.realm-details small {
  color: var(--muted-2);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.strip-item strong {
  margin-top: 2px;
  color: #ded9d1;
  font-size: .8rem;
  letter-spacing: .025em;
}

.section {
  position: relative;
  padding: 122px 0;
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.world-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 13% 48%, rgba(129, 34, 29, .1), transparent 28rem),
    linear-gradient(180deg, #06070a 0%, #080a0e 100%);
}

.world-section::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent 48%, rgba(255,255,255,.018) 48%, rgba(255,255,255,.018) 48.1%, transparent 48.1%);
}

.world-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: clamp(50px, 7vw, 100px);
}

.world-copy h2,
.section-heading h2,
.feature-intro h2,
.realm-card h2,
.ranking-card h2,
.section-heading-row h2,
.community-content h2,
.class-dialog-copy h2 {
  margin: 11px 0 20px;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .018em;
}

.world-copy h2 {
  max-width: 560px;
  font-size: clamp(2.1rem, 4vw, 3.55rem);
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.9;
}

.world-points {
  margin: 34px 0 30px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.world-points > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-soft);
}

.world-points > div > span {
  padding-top: 2px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: .78rem;
}

.world-points p {
  margin: 0;
  display: grid;
}

.world-points strong {
  color: #e8e4de;
  font-size: .9rem;
  font-weight: 600;
}

.world-points small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: .78rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid rgba(213, 177, 104, .38);
  color: var(--gold-bright);
  background: transparent;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, gap .2s ease;
}

.text-link:hover {
  gap: 14px;
  color: #f8e6bb;
  border-color: var(--gold-bright);
}

.text-link svg {
  width: 16px;
  height: 16px;
}

.cinematic-card {
  position: relative;
  min-height: 530px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #090b0f;
  box-shadow: var(--shadow);
}

.cinematic-card::before,
.cinematic-card::after {
  position: absolute;
  z-index: 3;
  width: 72px;
  height: 72px;
  pointer-events: none;
  content: "";
}

.cinematic-card::before {
  top: 12px;
  left: 12px;
  border-top: 1px solid rgba(233, 197, 124, .58);
  border-left: 1px solid rgba(233, 197, 124, .58);
}

.cinematic-card::after {
  right: 12px;
  bottom: 12px;
  border-right: 1px solid rgba(233, 197, 124, .58);
  border-bottom: 1px solid rgba(233, 197, 124, .58);
}

.cinematic-card > img {
  width: 100%;
  height: 100%;
  min-height: 530px;
  object-fit: cover;
  object-position: 55% center;
  filter: saturate(.82) contrast(1.08) brightness(.75);
  transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}

.cinematic-card:hover > img {
  transform: scale(1.035);
  filter: saturate(.92) contrast(1.08) brightness(.8);
}

.cinematic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 43%, rgba(3,4,6,.25) 62%, rgba(3,4,6,.94) 100%);
}

.cinematic-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
}

.cinematic-card figcaption span {
  display: grid;
}

.cinematic-card figcaption small {
  color: var(--gold);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cinematic-card figcaption strong {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.round-play {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(240, 211, 149, .65);
  border-radius: 50%;
  color: #15110a;
  background: var(--gold-bright);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.round-play:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 38px rgba(183, 126, 48, .3);
}

.round-play svg {
  width: 21px;
  height: 21px;
  margin-left: 3px;
}

.classes-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(162, 47, 39, .08), transparent 32rem),
    #090b0f;
}

.classes-section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 72px;
  content: "";
  background: linear-gradient(var(--gold), transparent);
}

.section-heading.centered {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading h2,
.feature-intro h2,
.section-heading-row h2 {
  font-size: clamp(2rem, 3.4vw, 3.15rem);
}

.section-heading > p:last-child,
.feature-intro > p:last-child {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.class-card {
  grid-column: span 2;
}

.class-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.class-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.class-card {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 5px;
  background: #08090c;
  box-shadow: 0 25px 70px rgba(0,0,0,.26);
  cursor: pointer;
  transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}

.class-card:hover,
.class-card:focus-visible {
  z-index: 2;
  border-color: rgba(220, 182, 107, .48);
  outline: none;
  box-shadow: 0 34px 80px rgba(0,0,0,.45);
  transform: translateY(-8px);
}

.class-card > img {
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: cover;
  object-position: center 15%;
  filter: saturate(.78) contrast(1.12) brightness(.67);
  transform: scale(1.06);
  transition: filter .45s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}

.class-card:hover > img,
.class-card:focus-visible > img {
  filter: saturate(.92) contrast(1.12) brightness(.76);
  transform: scale(1.1);
}

.class-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,5,7,.18) 0%, transparent 35%, rgba(5,6,8,.35) 56%, rgba(5,6,8,.97) 100%),
    linear-gradient(90deg, rgba(5,6,8,.3), transparent 50%, rgba(5,6,8,.12));
}

.class-knight::after,
.class-wizard::after,
.class-elf::after,
.class-mg::after,
.class-lord::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
}

.class-knight::after { background: linear-gradient(90deg, transparent, #b83e34, transparent); }
.class-wizard::after { background: linear-gradient(90deg, transparent, #5b79c8, transparent); }
.class-elf::after { background: linear-gradient(90deg, transparent, #6aa26b, transparent); }
.class-mg::after { background: linear-gradient(90deg, transparent, #8b5bd8, transparent); }
.class-lord::after { background: linear-gradient(90deg, transparent, #c58a47, transparent); }

.class-number {
  position: absolute;
  top: 21px;
  right: 24px;
  color: rgba(255,255,255,.32);
  font-family: var(--serif);
  font-size: .75rem;
  letter-spacing: .13em;
}

.class-card-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 34px 32px 30px;
}

.class-card-content p {
  margin: 0;
  color: var(--gold);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.class-card-content h3 {
  margin: 6px 0 4px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  font-weight: 600;
}

.class-card-content > span {
  color: var(--muted);
  font-size: .73rem;
  letter-spacing: .04em;
}

.class-card-content button {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.22);
  color: #e8e4dd;
  background: transparent;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.class-card-content button svg {
  width: 14px;
  height: 14px;
}

.features-section {
  border-top: 1px solid rgba(255,255,255,.035);
  border-bottom: 1px solid rgba(255,255,255,.035);
  background:
    linear-gradient(rgba(7,8,11,.94), rgba(7,8,11,.94)),
    url("assets/frame-5.webp") center / cover no-repeat;
  background-attachment: fixed;
}

.feature-intro {
  max-width: 740px;
  margin-bottom: 48px;
}

.feature-intro > p:last-child {
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.feature-card {
  min-height: 220px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 26px;
  padding: 38px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(11,13,17,.54);
  transition: background .3s ease, transform .3s ease;
}

.feature-card:hover {
  background: rgba(18,21,27,.78);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 178, 107, .28);
  color: var(--gold);
  background: rgba(210,173,103,.04);
}

.feature-icon svg {
  width: 25px;
  height: 25px;
}

.feature-card small {
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: .65rem;
}

.feature-card h3 {
  margin: 6px 0 10px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.8;
}

.realm-section {
  background:
    radial-gradient(circle at 80% 60%, rgba(28,48,86,.08), transparent 27rem),
    #080a0e;
}

.realm-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 24px;
}

.realm-card,
.ranking-card {
  min-height: 470px;
  padding: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: linear-gradient(145deg, rgba(18,21,27,.86), rgba(9,11,15,.92));
  box-shadow: 0 25px 80px rgba(0,0,0,.25);
}

.realm-card {
  position: relative;
  overflow: hidden;
}

.realm-card::after {
  position: absolute;
  right: -90px;
  bottom: -100px;
  width: 310px;
  height: 310px;
  content: "";
  opacity: .14;
  background: url("assets/mythos-transparent-emblem.webp") center / contain no-repeat;
  filter: grayscale(1);
}

.realm-card-header,
.ranking-card-header,
.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
}

.realm-card h2,
.ranking-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(207,171,102,.28);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(209,172,101,.06);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.status-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cf4a3f;
  box-shadow: 0 0 11px rgba(207,74,63,.7);
}

.realm-message {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 42px 0 35px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.realm-details {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.realm-details > div {
  display: grid;
  gap: 4px;
  padding: 19px 14px 19px 0;
  border-right: 1px solid var(--line-soft);
}

.realm-details > div:not(:first-child) {
  padding-left: 18px;
}

.realm-details > div:last-child {
  border-right: 0;
}

.realm-details strong {
  color: #e1ddd6;
  font-size: .78rem;
}

.realm-update {
  position: absolute;
  bottom: 36px;
  left: 42px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
}

.realm-update > span {
  width: 18px;
  height: 1px;
  background: var(--gold-deep);
}

.realm-update p {
  margin: 0;
  color: var(--muted-2);
  font-size: .65rem;
  letter-spacing: .05em;
}

.preview-label {
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  color: var(--muted);
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ranking-list {
  margin-top: 34px;
}

.ranking-locked {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 1px dashed rgba(255,255,255,.1);
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,.015);
}

.lock-emblem {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 19px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(210,173,103,.04);
}

.lock-emblem svg {
  width: 25px;
  height: 25px;
}

.ranking-locked h3 {
  margin: 0 0 8px;
  color: #e7e2da;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.ranking-locked p {
  max-width: 430px;
  margin: 0;
  font-size: .82rem;
}

.ranking-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 14px 5px;
  border-bottom: 1px solid var(--line-soft);
}

.ranking-row:first-child {
  border-top: 1px solid var(--line-soft);
}

.ranking-position {
  color: var(--gold);
  font-family: var(--serif);
  font-size: .8rem;
}

.ranking-character {
  display: grid;
}

.ranking-character strong {
  color: #ece8e1;
  font-size: .83rem;
}

.ranking-character small,
.ranking-level {
  color: var(--muted-2);
  font-size: .66rem;
}

.news-section {
  background: #06070a;
}

.section-heading-row {
  margin-bottom: 46px;
  align-items: flex-end;
}

.section-heading-row h2 {
  margin-bottom: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: #0c0f14;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.news-card:hover {
  border-color: rgba(213, 176, 104, .32);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  transform: translateY(-6px);
}

.news-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #090b0f;
}

.news-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(5,6,8,.54));
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.76) contrast(1.08) brightness(.76);
  transition: transform .65s ease, filter .35s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.045);
  filter: saturate(.9) contrast(1.08) brightness(.82);
}

.news-image span {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(237,202,132,.32);
  border-radius: 3px;
  color: var(--gold-bright);
  background: rgba(5,6,8,.72);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.news-copy {
  padding: 26px 26px 28px;
}

.news-copy time {
  color: var(--muted-2);
  font-size: .63rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.news-copy h3 {
  margin: 9px 0 9px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.news-copy p {
  min-height: 52px;
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.7;
}

.news-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 19px;
  color: var(--gold);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.community-section {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  background: #08090c url("assets/frame-5.webp") center / cover no-repeat;
  isolation: isolate;
}

.community-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 50%, rgba(11,13,18,.68), rgba(5,6,9,.96) 70%),
    linear-gradient(180deg, rgba(5,6,9,.8), rgba(5,6,9,.92));
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.community-content {
  width: min(760px, calc(100% - 40px));
  padding: 86px 0;
  text-align: center;
}

.community-content > img {
  width: 94px;
  height: 94px;
  margin: 0 auto 20px;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(171,50,42,.26));
}

.community-content h2 {
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2rem, 4vw, 3.55rem);
}

.community-content > p:not(.section-kicker) {
  max-width: 630px;
  margin: 0 auto;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #050609;
}

.footer-shell {
  width: var(--shell);
  min-height: 175px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr minmax(240px, 360px);
  align-items: center;
  gap: 50px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.footer-brand span {
  display: grid;
  line-height: 1;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: .17em;
}

.footer-brand small {
  margin-top: 6px;
  color: var(--gold);
  font-size: .55rem;
  letter-spacing: .36em;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a,
.footer-links button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: .7rem;
  cursor: pointer;
  transition: color .2s ease;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--gold-bright);
}

.footer-note {
  margin: 0;
  color: var(--muted-2);
  font-size: .67rem;
  line-height: 1.7;
  text-align: right;
}

.footer-bottom {
  width: var(--shell);
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line-soft);
  color: #656a74;
  font-size: .61rem;
  letter-spacing: .04em;
}

dialog {
  color: var(--text);
}

dialog::backdrop {
  background: rgba(2,3,5,.82);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.trailer-dialog {
  width: min(1120px, calc(100% - 36px));
  max-height: calc(100svh - 36px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(225,188,115,.26);
  border-radius: 5px;
  background: #080a0e;
  box-shadow: 0 40px 120px rgba(0,0,0,.72);
}

.trailer-dialog[open],
.class-dialog[open],
.register-dialog[open] {
  animation: dialogIn .28s ease both;
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-topbar {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 22px 17px 25px;
  border-bottom: 1px solid var(--line-soft);
}

.dialog-topbar small {
  color: var(--gold);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dialog-topbar h2 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.dialog-close {
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.dialog-close:hover {
  color: var(--text);
  border-color: rgba(224,188,116,.4);
  background: rgba(211,175,104,.06);
}

.trailer-frame {
  background: #000;
}

.trailer-frame video {
  width: 100%;
  max-height: calc(100svh - 122px);
  aspect-ratio: 16 / 9;
  background: #000;
}

.class-dialog {
  width: min(900px, calc(100% - 36px));
  min-height: 540px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(225,188,115,.25);
  border-radius: 5px;
  background: #0a0c10;
  box-shadow: 0 40px 120px rgba(0,0,0,.72);
}

.class-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  background: rgba(5,6,9,.66);
}

.class-dialog[open] {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
}

.class-dialog-visual {
  min-height: 540px;
  background-position: center 14%;
  background-size: cover;
}

.class-dialog-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 62px;
}

.class-dialog-copy h2 {
  font-size: 2.5rem;
}

.class-dialog-copy > p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.class-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0 30px;
}

.class-tags span {
  padding: 6px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  color: #c9c4bc;
  background: rgba(255,255,255,.025);
  font-size: .62rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}


.register-dialog {
  width: min(960px, calc(100% - 36px));
  max-height: calc(100svh - 36px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(225,188,115,.27);
  border-radius: 5px;
  background: #090b0f;
  box-shadow: 0 40px 120px rgba(0,0,0,.72);
}

.register-dialog[open] {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
}

.register-visual {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 46px;
  border-right: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(5,6,8,.15), rgba(5,6,8,.92)),
    url("assets/hero-poster.webp") center / cover no-repeat;
}

.register-visual-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(203,153,73,.08), transparent 42%),
    linear-gradient(135deg, rgba(124,33,29,.08), transparent 55%);
  pointer-events: none;
}

.register-visual > img {
  position: absolute;
  top: 55px;
  left: 50%;
  width: min(270px, 72%);
  height: auto;
  opacity: .76;
  filter: drop-shadow(0 18px 45px rgba(0,0,0,.6));
  transform: translateX(-50%);
}

.register-visual-copy {
  position: relative;
  z-index: 2;
}

.register-visual-copy h2 {
  margin: 10px 0 13px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.08;
}

.register-visual-copy > p:last-child {
  margin: 0;
  color: rgba(235,233,229,.68);
  font-size: .82rem;
  line-height: 1.8;
}

.register-panel {
  position: relative;
  min-height: 650px;
  padding: 50px 54px 46px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(193,145,64,.07), transparent 24rem),
    linear-gradient(145deg, #101319, #090b0f 72%);
}

.register-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
}

.register-heading {
  padding-right: 46px;
  margin-bottom: 28px;
}

.register-heading h2 {
  margin: 9px 0 8px;
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.register-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.7;
}

.register-form {
  display: grid;
  gap: 17px;
}

.register-field {
  display: grid;
  gap: 7px;
}

.register-field > span {
  color: #ddd8d0;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.register-field input {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  outline: none;
  color: #f0ece5;
  background: rgba(4,5,8,.52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.015);
  font: inherit;
  font-size: .86rem;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.register-field input:focus {
  border-color: rgba(226,188,113,.58);
  background: rgba(8,10,14,.78);
  box-shadow: 0 0 0 3px rgba(210,170,91,.07);
}

.register-field small {
  color: #777d88;
  font-size: .63rem;
  line-height: 1.45;
}

.register-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.register-message {
  min-height: 20px;
  margin-top: 2px;
  padding: 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.5;
}

.register-message[data-state="error"] {
  color: #e59a91;
}

.register-message[data-state="success"] {
  color: #b7d59b;
}

.register-submit {
  width: 100%;
  margin-top: 1px;
}

.register-submit:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
}

.register-fineprint {
  margin: -2px 0 0;
  color: #6f747e;
  font-size: .61rem;
  line-height: 1.65;
  text-align: center;
}


.account-dialog {
  width: min(1120px, calc(100% - 36px));
  max-height: calc(100svh - 36px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(225,188,115,.27);
  border-radius: 5px;
  background: #090b0f;
  box-shadow: 0 40px 120px rgba(0,0,0,.72);
}

.account-dialog[open] {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
}

.account-visual {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 46px;
  border-right: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(5,6,8,.12), rgba(5,6,8,.94)),
    url("assets/hero-poster.webp") center / cover no-repeat;
}

.account-visual-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 25%, rgba(207,160,77,.11), transparent 40%),
    linear-gradient(135deg, rgba(109,27,27,.08), transparent 56%);
  pointer-events: none;
}

.account-visual > img {
  position: absolute;
  top: 58px;
  left: 50%;
  width: min(265px, 72%);
  height: auto;
  opacity: .72;
  filter: drop-shadow(0 18px 45px rgba(0,0,0,.65));
  transform: translateX(-50%);
}

.account-visual-copy {
  position: relative;
  z-index: 2;
}

.account-visual-copy h2 {
  margin: 10px 0 13px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.08;
}

.account-visual-copy > p:last-child {
  margin: 0;
  color: rgba(235,233,229,.68);
  font-size: .82rem;
  line-height: 1.8;
}

.account-panel {
  position: relative;
  min-height: 700px;
  max-height: calc(100svh - 38px);
  padding: 50px 54px 44px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(193,145,64,.07), transparent 24rem),
    linear-gradient(145deg, #101319, #090b0f 72%);
}

.account-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
}

.account-loading {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: left;
}

.account-loading[hidden],
.account-login-view[hidden],
.account-portal-view[hidden] {
  display: none;
}

.account-loading-mark {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(219,180,105,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: account-spin .9s linear infinite;
}

.account-loading h2 {
  margin: 7px 0 6px;
  font-family: var(--serif);
  font-size: 2rem;
}

.account-loading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}

@keyframes account-spin {
  to { transform: rotate(360deg); }
}

.account-heading {
  padding-right: 48px;
  margin-bottom: 30px;
}

.account-heading h2,
.account-portal-top h2 {
  margin: 9px 0 8px;
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.account-heading > p:last-child,
.account-portal-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.7;
}

.account-login-view {
  max-width: 510px;
  padding-top: 14px;
}

.account-login-form {
  display: grid;
  gap: 18px;
}

.account-login-submit {
  width: 100%;
}

.account-login-submit:disabled,
.account-action-button:disabled {
  cursor: wait;
  opacity: .6;
}

.account-create-link {
  width: max-content;
  margin: -2px auto 0;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid rgba(218,178,102,.28);
  color: var(--gold-bright);
  background: transparent;
  font: inherit;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.account-create-link:hover {
  color: #f4d995;
  border-bottom-color: rgba(235,196,121,.72);
}

.account-portal-view {
  display: block;
}

.account-portal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-right: 46px;
}

.account-portal-actions {
  display: flex;
  gap: 8px;
  padding-top: 5px;
}

.account-action-button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(223,184,109,.22);
  border-radius: 3px;
  color: #d9d5ce;
  background: rgba(255,255,255,.025);
  font: inherit;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.account-action-button:hover {
  border-color: rgba(223,184,109,.48);
  color: #f3ead7;
  background: rgba(219,179,104,.06);
}

.account-action-danger:hover {
  border-color: rgba(196,79,69,.48);
  color: #f0b0a9;
  background: rgba(177,57,48,.06);
}

.account-summary {
  display: grid;
  grid-template-columns: 1.15fr .8fr 1.25fr 1fr .65fr;
  margin: 28px 0 22px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,.012);
}

.account-summary > div {
  min-width: 0;
  padding: 16px 13px;
  border-right: 1px solid var(--line-soft);
}

.account-summary > div:last-child {
  border-right: 0;
}

.account-summary span,
.account-character-stat span {
  display: block;
  margin-bottom: 5px;
  color: #777d88;
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-summary strong {
  display: block;
  overflow: hidden;
  color: #e6e1d9;
  font-size: .76rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-summary-primary strong {
  color: var(--gold-bright);
}

.account-portal-message {
  min-height: 20px;
  color: var(--muted);
  font-size: .7rem;
}

.account-portal-message[data-state="error"] {
  color: #e59a91;
}

.account-character-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 14px;
}

.account-character-heading h3 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 600;
}

.account-character-heading small {
  color: #747984;
  font-size: .59rem;
}

.account-character-list {
  display: grid;
  gap: 12px;
}

.account-character-card {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(19,22,29,.8), rgba(9,11,15,.84));
  box-shadow: 0 14px 36px rgba(0,0,0,.16);
}

.account-character-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line-soft);
}

.account-character-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.account-character-identity img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.45));
}

.account-character-identity h4 {
  margin: 0 0 3px;
  overflow: hidden;
  color: #f1ece4;
  font-family: var(--serif);
  font-size: 1.13rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-character-identity p {
  margin: 0;
  color: var(--gold-deep);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.account-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: #8a8f99;
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-online-badge::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: #60656d;
}

.account-online-badge.is-online {
  border-color: rgba(119,164,94,.32);
  color: #b9d7a5;
}

.account-online-badge.is-online::before {
  background: #7eaa66;
  box-shadow: 0 0 10px rgba(126,170,102,.62);
}

.account-character-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.035);
  border-left: 1px solid rgba(255,255,255,.035);
}

.account-character-stat {
  min-width: 0;
  padding: 11px 10px;
  border-right: 1px solid rgba(255,255,255,.035);
  border-bottom: 1px solid rgba(255,255,255,.035);
}

.account-character-stat strong {
  display: block;
  overflow: hidden;
  color: #ddd9d2;
  font-size: .71rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-character-stat-wide {
  grid-column: span 2;
}

.account-character-empty {
  padding: 36px 24px;
  border: 1px dashed rgba(221,181,104,.18);
  border-radius: 4px;
  text-align: center;
  background: rgba(255,255,255,.012);
}

.account-character-empty strong {
  color: #e8e3db;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.account-character-empty p {
  max-width: 460px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.65;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 500;
  max-width: min(380px, calc(100% - 48px));
  padding: 13px 16px;
  border: 1px solid rgba(217,180,107,.35);
  border-radius: 4px;
  color: #eae6df;
  background: rgba(10,12,16,.94);
  box-shadow: 0 18px 50px rgba(0,0,0,.38);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: .78rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item {
  opacity: 0;
  animation: heroReveal .75s cubic-bezier(.2,.7,.2,1) forwards;
}

.reveal-item:nth-of-type(1) { animation-delay: .05s; }
.hero-logo.reveal-item { animation-delay: .12s; }
.hero-kicker.reveal-item { animation-delay: .22s; }
.hero h1.reveal-item { animation-delay: .29s; }
.hero-lead.reveal-item { animation-delay: .36s; }
.hero-actions.reveal-item { animation-delay: .44s; }
.platform-line.reveal-item { animation-delay: .52s; }

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.class-grid .reveal-on-scroll:nth-child(2),
.feature-grid .reveal-on-scroll:nth-child(2),
.news-grid .reveal-on-scroll:nth-child(2) {
  transition-delay: .08s;
}

.class-grid .reveal-on-scroll:nth-child(3),
.feature-grid .reveal-on-scroll:nth-child(3),
.news-grid .reveal-on-scroll:nth-child(3) {
  transition-delay: .16s;
}

.class-grid .reveal-on-scroll:nth-child(4) { transition-delay: .10s; }
.class-grid .reveal-on-scroll:nth-child(5) { transition-delay: .18s; }

.feature-grid .reveal-on-scroll:nth-child(4) {
  transition-delay: .24s;
}

@media (max-width: 1120px) {
  :root {
    --shell: min(100% - 36px, 1060px);
  }

  .header-shell {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav {
    gap: 20px;
  }

  .desktop-nav a {
    font-size: .75rem;
  }

  .world-grid {
    grid-template-columns: 1fr 1.12fr;
    gap: 48px;
  }

  .cinematic-card,
  .cinematic-card > img {
    min-height: 470px;
  }

  .class-card,
  .class-card > img {
    min-height: 520px;
  }

  .footer-shell {
    grid-template-columns: auto 1fr;
  }

  .footer-note {
    grid-column: 1 / -1;
    margin: -20px 0 28px;
    text-align: left;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 72px;
  }

  .desktop-nav,
  .account-button {
    display: none;
  }

  .header-shell {
    grid-template-columns: 1fr auto;
  }

  .menu-button {
    position: relative;
    display: grid;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-top: calc(var(--header-height) + 44px);
  }

  .realm-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .strip-item:nth-child(2) {
    border-right: 0;
  }

  .strip-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .strip-item:nth-child(3) {
    border-left: 1px solid var(--line-soft);
  }

  .world-grid,
  .realm-grid {
    grid-template-columns: 1fr;
  }

  .world-copy {
    max-width: 720px;
  }

  .cinematic-card,
  .cinematic-card > img {
    min-height: 520px;
  }

  .class-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .class-card {
    grid-column: span 2;
  }

  .class-card:nth-child(4) {
    grid-column: auto / span 2;
  }

  .class-card:nth-child(5) {
    grid-column: 2 / span 2;
  }

  .class-card,
  .class-card > img {
    min-height: 480px;
  }

  .class-card-content {
    padding: 27px 24px 25px;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
  }

  .class-dialog[open] {
    grid-template-columns: .85fr 1.15fr;
  }

  .class-dialog-copy {
    padding: 42px;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .brand img {
    width: 39px;
    height: 39px;
  }

  .brand-copy strong {
    font-size: .9rem;
  }

  .brand-copy small {
    font-size: .49rem;
  }

  .hero {
    min-height: 700px;
    height: 100svh;
  }

  .hero-video {
    object-position: 52% center;
    filter: saturate(.72) contrast(1.08) brightness(.53);
  }

  .hero-shade-vignette {
    background:
      radial-gradient(circle at 50% 43%, rgba(0,0,0,.08), rgba(2,3,6,.45) 48%, rgba(2,3,6,.86) 100%),
      linear-gradient(90deg, rgba(2,3,6,.45), transparent 48%, rgba(2,3,6,.45));
  }

  .hero-content {
    width: calc(100% - 30px);
    padding-bottom: 70px;
  }

  .hero-logo {
    width: min(310px, 82vw);
    max-height: 38vh;
    margin-top: -4px;
  }

  .hero-kicker {
    gap: 8px;
    font-size: .58rem;
    letter-spacing: .14em;
  }

  .hero h1 {
    margin-top: 10px;
    font-size: clamp(1.85rem, 8.2vw, 2.85rem);
    letter-spacing: .045em;
  }

  .hero-lead {
    max-width: 540px;
    font-size: .85rem;
    line-height: 1.72;
  }

  .button {
    min-height: 46px;
    padding: 11px 18px;
    font-size: .66rem;
  }

  .platform-line {
    gap: 12px;
    margin-top: 17px;
    font-size: .6rem;
  }

  .video-control {
    right: 15px;
    bottom: 17px;
  }

  .scroll-cue {
    bottom: 14px;
  }

  .realm-strip-inner {
    width: 100%;
  }

  .strip-item {
    justify-content: flex-start;
    padding: 18px 16px;
  }

  .strip-icon {
    width: 34px;
    height: 34px;
  }

  .strip-item strong {
    font-size: .72rem;
  }

  .section {
    padding: 88px 0;
  }

  .world-grid {
    gap: 42px;
  }

  .world-copy h2,
  .section-heading h2,
  .feature-intro h2,
  .section-heading-row h2 {
    font-size: clamp(1.85rem, 8vw, 2.55rem);
  }

  .section-lead {
    font-size: .9rem;
  }

  .world-points small {
    font-size: .72rem;
  }

  .cinematic-card,
  .cinematic-card > img {
    min-height: 390px;
  }

  .cinematic-card figcaption {
    padding: 25px 24px;
  }

  .cinematic-card figcaption strong {
    font-size: 1rem;
  }

  .round-play {
    width: 48px;
    height: 48px;
  }

  .class-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .class-card,
  .class-card:nth-child(4),
  .class-card:nth-child(5) {
    grid-column: 1;
  }

  .class-card,
  .class-card > img {
    min-height: 580px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
    padding: 30px 25px;
  }

  .realm-card,
  .ranking-card {
    min-height: auto;
    padding: 30px 24px;
  }

  .realm-card-header,
  .ranking-card-header,
  .section-heading-row {
    align-items: flex-start;
  }

  .realm-message {
    margin: 30px 0;
    font-size: .9rem;
  }

  .realm-details {
    grid-template-columns: 1fr;
  }

  .realm-details > div,
  .realm-details > div:not(:first-child) {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .realm-details > div:last-child {
    border-bottom: 0;
  }

  .realm-update {
    position: static;
    margin-top: 26px;
  }

  .ranking-locked {
    min-height: 250px;
    padding: 24px 16px;
  }

  .section-heading-row {
    display: grid;
    gap: 22px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .community-section {
    min-height: 520px;
  }

  .community-content {
    padding: 72px 0;
  }

  .footer-shell {
    padding: 42px 0 30px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-note {
    grid-column: auto;
    margin: 0;
  }

  .footer-bottom {
    min-height: 78px;
    padding: 18px 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
  }

  .account-dialog[open] {
    display: block;
    max-height: calc(100svh - 26px);
    overflow-y: auto;
  }

  .account-visual {
    min-height: 260px;
    padding: 32px 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .account-visual > img {
    top: 18px;
    width: 170px;
    opacity: .42;
  }

  .account-visual-copy {
    max-width: 430px;
  }

  .account-panel {
    min-height: 0;
    max-height: none;
    padding: 42px 28px 36px;
    overflow: visible;
  }

  .account-portal-top {
    display: block;
    padding-right: 36px;
  }

  .account-portal-actions {
    margin-top: 14px;
  }

  .account-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-summary > div {
    border-bottom: 1px solid var(--line-soft);
  }

  .account-summary > div:nth-child(2n) {
    border-right: 0;
  }

  .account-summary > div:last-child {
    border-right: 1px solid var(--line-soft);
  }

  .account-character-heading {
    display: block;
  }

  .account-character-heading small {
    display: block;
    margin-top: 6px;
  }

  .account-character-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-character-stat-wide {
    grid-column: span 2;
  }

  .register-dialog[open] {
    display: block;
    max-height: calc(100svh - 26px);
    overflow-y: auto;
  }

  .register-visual {
    min-height: 260px;
    padding: 32px 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .register-visual > img {
    top: 18px;
    width: 170px;
    opacity: .42;
  }

  .register-visual-copy {
    max-width: 430px;
  }

  .register-panel {
    min-height: 0;
    padding: 42px 28px 36px;
    overflow: visible;
  }

  .register-field-grid {
    grid-template-columns: 1fr;
  }

  .class-dialog[open] {
    display: block;
    max-height: calc(100svh - 26px);
    overflow-y: auto;
  }

  .class-dialog-visual {
    min-height: 330px;
  }

  .class-dialog-copy {
    padding: 38px 28px 42px;
  }

  .class-dialog-copy h2 {
    font-size: 2rem;
  }
}

@media (max-width: 460px) {
  .account-summary {
    grid-template-columns: 1fr;
  }

  .account-summary > div,
  .account-summary > div:nth-child(2n),
  .account-summary > div:last-child {
    border-right: 0;
  }

  .account-character-stats {
    grid-template-columns: 1fr;
  }

  .account-character-stat-wide {
    grid-column: span 1;
  }

  .account-portal-actions {
    flex-wrap: wrap;
  }

  .launch-pill {
    margin-bottom: 2px;
  }

  .hero-logo {
    width: min(270px, 78vw);
  }

  .hero-actions,
  .community-actions {
    width: 100%;
  }

  .hero-actions .button,
  .community-actions .button {
    width: 100%;
  }

  .platform-line {
    flex-wrap: wrap;
  }

  .realm-strip-inner {
    grid-template-columns: 1fr;
  }

  .strip-item,
  .strip-item:first-child,
  .strip-item:nth-child(3) {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .strip-item:last-child {
    border-bottom: 0;
  }

  .class-card,
  .class-card > img {
    min-height: 510px;
  }

  .feature-card {
    grid-template-columns: 46px 1fr;
    gap: 18px;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
  }

  .feature-icon svg {
    width: 21px;
    height: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .features-section {
    background-attachment: scroll;
  }

  .reveal-on-scroll,
  .reveal-item {
    opacity: 1;
    transform: none;
  }
}

/* Final responsive polish */
.class-card-content > span {
  display: block;
}

@media (max-width: 720px) {
  .scroll-cue {
    display: none;
  }

  .hero-content {
    padding-bottom: 36px;
  }
}

/* WEB-R4 — managed website news */
.news-detail-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(88vh, 920px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(199, 151, 65, .32);
  border-radius: 4px;
  background: #0b0e13;
  color: var(--text, #f4f0e9);
}
.news-detail-dialog[open] { animation: dialogIn .28s ease both; }
.news-dialog-close { position: absolute; top: 18px; right: 18px; z-index: 3; }
.news-dialog-media { position: relative; aspect-ratio: 16/6.8; overflow: hidden; background: #080a0e; }
.news-dialog-media::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(5,7,10,.05),rgba(5,7,10,.86)); pointer-events:none; }
.news-dialog-media img { width:100%; height:100%; object-fit:cover; }
.news-dialog-copy { padding: 30px 38px 40px; }
.news-dialog-copy time { display:block; margin:8px 0 12px; color:#8d96a8; font-size:.76rem; letter-spacing:.08em; text-transform:uppercase; }
.news-dialog-copy h2 { margin:0 0 12px; font-family:var(--display); font-size:clamp(2rem,4vw,3.2rem); font-weight:500; }
.news-dialog-summary { color:#c8cfda; font-size:1.02rem; line-height:1.7; margin:0 0 24px; }
.news-dialog-body { color:#aeb7c7; font-size:.96rem; line-height:1.85; white-space:pre-wrap; border-top:1px solid rgba(255,255,255,.08); padding-top:24px; }
@media (max-width: 640px) { .news-dialog-copy { padding:24px 22px 32px; } .news-dialog-media { aspect-ratio:16/9; } }
.news-archive-item { width:100%; display:grid; gap:5px; text-align:left; padding:16px 0; border:0; border-bottom:1px solid rgba(255,255,255,.08); background:transparent; color:inherit; cursor:pointer; }
.news-archive-item small { color:#c79a48; text-transform:uppercase; letter-spacing:.08em; font-size:.68rem; }
.news-archive-item strong { font-family:var(--display); font-size:1.35rem; font-weight:500; }
.news-archive-item span { color:#9ea8b9; line-height:1.5; }
.news-archive-item:hover strong { color:#e2bb70; }


/* =========================================================
   WEB-R5 — Command Center managed Download Center
   ========================================================= */
.download-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 15%, rgba(157, 116, 55, 0.12), transparent 30rem),
    linear-gradient(180deg, rgba(10, 12, 17, 0.98), rgba(6, 7, 10, 0.98));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.download-section-lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
}

.download-managed-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(210, 173, 103, 0.06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background:
    linear-gradient(145deg, rgba(18, 22, 29, .96), rgba(8, 10, 14, .98));
  box-shadow: 0 18px 55px rgba(0, 0, 0, .22);
}

.download-card::after {
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(210, 173, 103, .07);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 28px rgba(210, 173, 103, .018), 0 0 0 58px rgba(210, 173, 103, .012);
  pointer-events: none;
}

.download-card-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.download-platform-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(210, 173, 103, .06);
}

.download-platform-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--gold-bright);
}

.download-card-top p {
  margin: 0 0 2px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

.download-card-top h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
}

.download-state {
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.download-state.is-live {
  border-color: rgba(81, 183, 116, .28);
  color: #9bd7aa;
  background: rgba(81, 183, 116, .07);
}

.download-version-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}

.download-version-line span,
.download-meta-grid small,
.download-copy small,
.download-checksum small {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.download-version-line strong {
  color: var(--text);
  font-size: 14px;
  text-align: right;
}

.download-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.download-meta-grid > div {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.download-meta-grid strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-copy {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.download-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.download-checksum {
  margin: 18px 0 22px;
}

.download-checksum code {
  display: block;
  margin-top: 7px;
  padding: 12px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line-soft);
  color: #c8ccd5;
  background: rgba(0, 0, 0, .2);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.download-button {
  width: 100%;
  margin-top: auto;
  text-align: center;
}

.download-button.is-disabled {
  cursor: not-allowed;
  opacity: .46;
  pointer-events: none;
  filter: saturate(.3);
}

.download-safety {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(210, 173, 103, .14);
  background: rgba(210, 173, 103, .035);
}

.download-safety > span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(210, 173, 103, .25);
  color: var(--gold-bright);
}

.download-safety strong {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 14px;
}

.download-safety p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 860px) {
  .download-grid { grid-template-columns: 1fr; }
  .download-card { padding: 22px; }
  .download-managed-badge { display: none; }
}

@media (max-width: 520px) {
  .download-card-top { grid-template-columns: auto 1fr; }
  .download-state { grid-column: 1 / -1; justify-self: start; }
  .download-meta-grid { grid-template-columns: 1fr; }
  .download-version-line { align-items: flex-start; flex-direction: column; gap: 4px; }
  .download-version-line strong { text-align: left; }
}

/* =========================================================
   MYTHOS WEB-R6 — Event Schedule
   ========================================================= */
.event-schedule-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(210, 173, 103, 0.07), transparent 30rem),
    radial-gradient(circle at 86% 82%, rgba(165, 51, 45, 0.06), transparent 30rem);
}

.event-section-lead {
  max-width: 720px;
  color: var(--muted);
}

.event-local-badge,
.event-managed-mark,
.event-live-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(210, 173, 103, 0.06);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.event-live-mark i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fd09b;
  box-shadow: 0 0 14px rgba(111, 208, 155, .5);
}

.event-schedule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.event-panel {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background:
    linear-gradient(150deg, rgba(255,255,255,.025), transparent 34%),
    rgba(10, 12, 17, .9);
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.event-panel-featured {
  border-color: rgba(210, 173, 103, .2);
}

.event-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.event-panel-head h3 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.15;
}

.realm-event-list,
.website-event-list {
  display: grid;
  gap: 12px;
}

.realm-event-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(255,255,255,.018);
}

.realm-event-row.is-disabled {
  opacity: .58;
}

.realm-event-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-bright);
  background: rgba(210, 173, 103, .05);
}

.realm-event-row strong,
.website-event-card h4 {
  display: block;
  color: var(--text);
}

.realm-event-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 12px;
}

.realm-event-next {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.realm-event-next span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.realm-event-next b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.website-event-card {
  position: relative;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(255,255,255,.018);
}

.website-event-card.is-featured::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  content: "";
  background: linear-gradient(var(--gold-bright), var(--gold-deep));
}

.website-event-card.is-active {
  border-color: rgba(111, 208, 155, .28);
  box-shadow: inset 0 0 0 1px rgba(111, 208, 155, .05);
}

.website-event-top,
.website-event-footer,
.website-event-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.website-event-top span {
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.website-event-top small,
.website-event-footer span,
.website-event-time span {
  color: var(--muted-2);
  font-size: 11px;
}

.website-event-card h4 {
  margin: 10px 0 12px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.website-event-time {
  justify-content: flex-start;
  margin-bottom: 10px;
}

.website-event-time strong {
  color: var(--text);
  font-size: 13px;
}

.website-event-card.is-active .website-event-time strong {
  color: #91d9b1;
}

.website-event-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.website-event-footer {
  justify-content: flex-start;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.event-empty {
  display: grid;
  gap: 6px;
  min-height: 100px;
  place-content: center;
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--line-soft);
  color: var(--muted);
}

.event-empty strong {
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.event-empty span {
  max-width: 390px;
  color: var(--muted-2);
  font-size: 12px;
}

.event-timezone-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 16px 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

.event-timezone-note > span {
  color: var(--gold);
  font-size: 22px;
}

.event-timezone-note strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.event-timezone-note p {
  margin: 2px 0 0;
  font-size: 12px;
}

@media (max-width: 920px) {
  .event-schedule-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .event-panel {
    padding: 20px;
  }

  .event-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .realm-event-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .realm-event-next {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .website-event-top,
  .website-event-time,
  .website-event-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* WEB-R7 — Account Security / Local Email Test Mode */
.account-security-link{
  margin-top:-4px;
  opacity:.9;
}

.account-security-card{
  margin:18px 0 10px;
  padding:18px;
  border:1px solid rgba(197,156,82,.24);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(17,22,31,.96),rgba(10,13,19,.92));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

.account-security-card h3{
  margin:2px 0 6px;
  font-size:1.05rem;
}

.account-security-copy > p:last-child{
  margin:0;
  color:var(--muted,#a6adba);
  line-height:1.55;
}

.account-security-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.account-security-inbox{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

.account-security-local-note{
  margin:10px 0 0;
  font-size:.72rem;
  line-height:1.55;
  color:#7f8999;
}

.security-dialog{
  width:min(540px,calc(100vw - 28px));
  border:1px solid rgba(197,156,82,.32);
  border-radius:20px;
  padding:0;
  color:#eef1f6;
  background:#0d1118;
  box-shadow:0 30px 90px rgba(0,0,0,.65);
}

.security-dialog::backdrop{
  background:rgba(3,5,8,.78);
  backdrop-filter:blur(8px);
}

.security-dialog-panel{
  position:relative;
  padding:32px;
  background:
    radial-gradient(circle at 85% 4%,rgba(177,131,65,.14),transparent 36%),
    linear-gradient(160deg,#121821,#0b0f15 68%);
}

.security-heading{
  padding-right:36px;
  margin-bottom:22px;
}

.security-heading h2{
  margin:4px 0 8px;
  font-size:clamp(1.55rem,4vw,2rem);
}

.security-heading > p:last-child{
  margin:0;
  color:#9fa8b7;
  line-height:1.55;
}

.security-form{
  display:grid;
  gap:14px;
}

.security-form[hidden],
.security-result[hidden]{
  display:none !important;
}

.security-inbox-link{
  width:100%;
  min-height:42px;
}

.security-result{
  text-align:center;
  padding:12px 4px 4px;
}

.security-result-mark{
  width:54px;
  height:54px;
  margin:0 auto 16px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:1.35rem;
  font-weight:800;
  color:#12100a;
  background:linear-gradient(135deg,#e0bd79,#ad7a37);
  box-shadow:0 10px 30px rgba(191,145,70,.18);
}

.security-result h3{
  margin:0 0 8px;
}

.security-result p{
  margin:0 auto 20px;
  max-width:420px;
  color:#aab1bd;
  line-height:1.6;
}

@media (max-width:640px){
  .security-dialog-panel{padding:26px 20px 22px}
  .account-security-actions{display:grid}
  .account-security-actions > *{width:100%}
}


/* WEB-R8 Player Redeem Portal + Reward Vault */
.account-reward-vault{margin-top:18px;padding:20px;border:1px solid rgba(211,163,77,.27);border-radius:16px;background:linear-gradient(145deg,rgba(16,20,27,.98),rgba(10,13,18,.96))}.account-reward-vault-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.account-reward-vault-head h3{margin:4px 0 8px;font-family:var(--font-display);font-size:1.45rem}.account-reward-vault-head p:last-child{margin:0;color:var(--muted);max-width:690px;line-height:1.6}.reward-vault-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--border);border-radius:12px;overflow:hidden;margin-bottom:16px}.reward-vault-stats>div{padding:12px 14px;border-right:1px solid var(--border);background:rgba(255,255,255,.015)}.reward-vault-stats>div:last-child{border-right:0}.reward-vault-stats span{display:block;color:var(--muted-2);font-size:.68rem;text-transform:uppercase;letter-spacing:.11em;margin-bottom:5px}.reward-vault-stats strong{font-size:1.05rem}.reward-redeem-form{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto;gap:10px;align-items:end;margin-bottom:8px}.reward-redeem-form label{display:grid;gap:7px}.reward-redeem-form label>span{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:#d2d6dc}.reward-redeem-form input,.reward-redeem-form select{width:100%;height:42px;border:1px solid var(--border);border-radius:7px;background:#0b0e13;color:#f2f1ec;padding:0 12px;font:inherit;outline:none}.reward-redeem-form input:focus,.reward-redeem-form select:focus{border-color:rgba(211,163,77,.7);box-shadow:0 0 0 2px rgba(211,163,77,.08)}.reward-redeem-submit{height:42px;white-space:nowrap}.reward-vault-claim-note{margin:10px 0 16px;padding:10px 12px;border-left:2px solid rgba(211,163,77,.55);background:rgba(211,163,77,.05);color:var(--muted);font-size:.76rem;line-height:1.55}.reward-vault-claim-note strong{color:#e5c17a}.reward-vault-list{display:grid;gap:10px}.reward-vault-entry{padding:15px;border:1px solid var(--border);border-radius:12px;background:rgba(7,9,13,.72)}.reward-vault-entry-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.reward-vault-entry h4{margin:0 0 4px;font-size:.96rem}.reward-vault-entry-head p{margin:0;color:var(--muted-2);font-size:.7rem;text-transform:capitalize}.reward-vault-status{flex:0 0 auto;border:1px solid var(--border);border-radius:999px;padding:5px 9px;font-size:.63rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:var(--muted)}.reward-vault-status.status-pending,.reward-vault-status.status-claiming{border-color:rgba(211,163,77,.4);color:#e8c274;background:rgba(211,163,77,.07)}.reward-vault-status.status-claimed{border-color:rgba(94,189,126,.35);color:#8ad5a2;background:rgba(94,189,126,.06)}.reward-vault-status.status-expired,.reward-vault-status.status-cancelled{opacity:.7}.reward-vault-entry-contents{margin:12px 0 0;color:#e6e7e9;font-size:.83rem;line-height:1.55}.reward-vault-entry-description{margin:7px 0 0;color:var(--muted);font-size:.75rem;line-height:1.5}.reward-vault-wait-note{display:block;margin-top:10px;color:#c6a45e;font-size:.7rem}.reward-vault-empty{padding:20px;border:1px dashed var(--border);border-radius:11px;text-align:center;color:var(--muted);display:grid;gap:6px}.reward-vault-empty strong{color:#e5e7eb}@media(max-width:820px){.account-reward-vault-head{display:grid}.reward-redeem-form{grid-template-columns:1fr}.reward-redeem-submit{width:100%}}@media(max-width:520px){.reward-vault-stats{grid-template-columns:1fr}.reward-vault-stats>div{border-right:0;border-bottom:1px solid var(--border)}.reward-vault-stats>div:last-child{border-bottom:0}.reward-vault-entry-head{display:grid}}
