:root {
  color-scheme: dark;
  --bg: #070b09;
  --panel: rgba(9, 16, 12, 0.86);
  --jade: #62dfaf;
  --gold: #dfc78d;
  --ivory: #f2ecdf;
  --muted: #a7aaa4;
  --line: rgba(223, 199, 141, 0.23);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ivory);
  background: var(--bg);
  font-family: Arial, sans-serif;
  line-height: 1.55;
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.container { width: min(calc(100% - 64px), 1240px); margin: 0 auto; }
.section { position: relative; padding: 112px 0; overflow: hidden; }
.section[id] { scroll-margin-top: 76px; }
.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 500; letter-spacing: 0; }
h2 { margin-bottom: 24px; font-size: clamp(3rem, 5.8vw, 6rem); line-height: 0.92; }
.lead, .section-heading > p:last-child, .split-heading > p { max-width: 650px; color: var(--muted); }
.section-heading { max-width: 780px; margin-bottom: 46px; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading--center > p:last-child { margin-inline: auto; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid rgba(236, 216, 168, 0.55);
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
}
.button--jade { color: #07110d; background: var(--jade); }
.button--gold { color: #17140d; background: var(--gold); }
.button--ivory { color: #15130e; background: #eee7d8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.brand { display: flex; align-items: center; gap: 10px; text-transform: uppercase; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand span { display: grid; font-family: Georgia, serif; line-height: 0.94; }
.brand small { font-size: 0.72rem; }
.brand strong { font-size: 1.25rem; }

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  display: grid;
  min-height: 80px;
  align-items: center;
  padding: 10px 42px;
  border-bottom: 1px solid rgba(236, 216, 168, 0.18);
  background: rgba(4, 7, 5, 0.74);
  backdrop-filter: blur(12px);
  grid-template-columns: auto 1fr auto;
}
.site-nav { display: flex; justify-content: center; gap: clamp(18px, 2.6vw, 42px); font-family: Georgia, serif; }
.site-nav a { padding: 22px 0; color: rgba(245, 240, 229, 0.78); }
.site-nav a:hover { color: white; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-login { padding: 12px; }
.menu-button { display: none; width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line); background: rgba(7, 10, 8, 0.72); cursor: pointer; }
.menu-button span { display: block; height: 1px; margin: 5px 0; background: var(--ivory); }
.mobile-nav-action { display: none; }

.hero { position: relative; min-height: 100svh; overflow: hidden; }
.ambient-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade, .final-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 5, 0.94), rgba(3, 6, 5, 0.56) 38%, transparent 70%),
    linear-gradient(0deg, rgba(2, 4, 3, 0.9), transparent 45%);
}
.hero-content {
  position: absolute;
  bottom: 8vh;
  left: max(32px, 6vw);
  z-index: 2;
  width: min(620px, 48vw);
}
.hero h1 { margin: 0; font-size: clamp(4rem, 6.5vw, 7.2rem); line-height: 0.8; text-transform: uppercase; }
.hero h1 span { display: block; color: var(--jade); }
.chapter { margin: 22px 0 0; color: var(--gold); font-family: Georgia, serif; font-weight: 700; text-transform: uppercase; }
.hero-lore { max-width: 560px; margin: 20px 0 26px; color: #d0d0c9; font-family: Georgia, serif; }

.world { min-height: 760px; background: #090d0b; }
.world-art { position: absolute; inset: 0; background: url("../assets/download-jade-seal.webp") 74% center / cover no-repeat; opacity: 0.48; }
.world::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(5, 9, 7, 0.98), rgba(5, 9, 7, 0.72) 58%, rgba(5, 9, 7, 0.35)); }
.world-content { position: relative; z-index: 1; }
.feature-list { display: flex; flex-wrap: wrap; max-width: 800px; margin: 34px 0; gap: 10px; }
.feature-list span { padding: 11px 14px; border: 1px solid var(--line); background: rgba(7, 12, 9, 0.68); }
.stats { display: grid; width: min(800px, 100%); margin-bottom: 30px; border-block: 1px solid var(--line); grid-template-columns: repeat(6, 1fr); }
.stats div { display: grid; min-height: 96px; align-content: center; padding: 14px; border-right: 1px solid var(--line); }
.stats div:last-child { border: 0; }
.stats strong { font-family: Georgia, serif; font-size: 1.5rem; }
.stats small { color: var(--muted); font-size: 0.62rem; text-transform: uppercase; }

.classes { background: #090d0b; }
.race-tabs { display: grid; margin-bottom: 18px; border-block: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); }
.race-tabs button {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}
.race-tabs button:last-child { border: 0; }
.race-tabs button small { color: #777c76; font-family: Arial, sans-serif; font-size: 0.62rem; text-transform: uppercase; }
.race-tabs button.active { color: #111610; background: var(--gold); }
.class-stage {
  position: relative;
  display: grid;
  min-height: 690px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(18, 32, 25, 0.94), rgba(6, 9, 8, 0.98) 50%, rgba(43, 19, 18, 0.84));
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr) 220px;
}
.class-copy { position: relative; z-index: 2; align-self: center; padding: 58px 0 58px 54px; }
.class-number { position: absolute; top: -78px; left: 28px; color: rgba(223, 199, 141, 0.07); font-family: Georgia, serif; font-size: 13rem; }
.class-copy h3 { margin: 0 0 16px; font-size: clamp(3.5rem, 5vw, 6rem); line-height: 0.9; }
.class-role { display: block; max-width: 390px; margin-bottom: 18px; color: var(--jade); font-size: 0.78rem; text-transform: uppercase; }
.class-copy > p:not(.kicker) { max-width: 410px; color: #b6b8b1; }
.class-copy dl { display: grid; max-width: 390px; margin: 34px 0 0; border-top: 1px solid var(--line); grid-template-columns: repeat(2, 1fr); }
.class-copy dl div { padding: 18px 18px 0 0; }
.class-copy dt { color: #777c76; font-size: 0.62rem; text-transform: uppercase; }
.class-copy dd { margin: 4px 0 0; font-family: Georgia, serif; }
.class-portrait { display: grid; min-width: 0; align-items: end; justify-items: center; overflow: hidden; }
.class-portrait img { width: min(100%, 760px); height: 660px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 28px 35px rgba(0, 0, 0, 0.55)); }
.class-list { display: grid; z-index: 2; align-content: center; border-left: 1px solid var(--line); }
.class-list button { display: grid; min-height: 75px; align-items: center; padding: 0 22px; border: 0; border-bottom: 1px solid rgba(223, 199, 141, 0.14); background: rgba(4, 7, 6, 0.32); cursor: pointer; font-family: Georgia, serif; grid-template-columns: 34px 1fr; text-align: left; }
.class-list button span { color: #686d67; font-family: Arial, sans-serif; font-size: 0.6rem; }
.class-list button.active { color: white; background: rgba(98, 223, 175, 0.13); }
.class-list button.active span { color: var(--jade); }

.cinematic { background: #060907; }
.cinematic-frame { position: relative; display: block; width: min(1100px, 100%); aspect-ratio: 16 / 8.5; margin: auto; overflow: hidden; padding: 0; border: 1px solid var(--line); background: black; cursor: pointer; text-align: left; }
.cinematic-frame img { width: 100%; height: 100%; object-fit: cover; }
.cinematic-frame::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(3, 5, 4, 0.86), transparent 55%); }
.play-mark { position: absolute; top: 50%; left: 50%; z-index: 2; display: grid; width: 76px; height: 76px; place-items: center; border: 1px solid white; border-radius: 50%; background: rgba(0, 0, 0, 0.48); transform: translate(-50%, -50%); }
.cinematic-caption { position: absolute; right: 28px; bottom: 26px; left: 28px; z-index: 2; display: grid; }
.cinematic-caption small { color: var(--jade); text-transform: uppercase; }
.cinematic-caption strong { font-family: Georgia, serif; font-size: clamp(1.4rem, 3vw, 2.7rem); }

.activities { min-height: 900px; background: #080a08; }
.activity-backdrop { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0.4; }
.activities::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(5, 8, 7, 0.98), rgba(5, 8, 7, 0.82) 60%, rgba(5, 8, 7, 0.55)); }
.activity-content { position: relative; z-index: 1; }
.activity-tabs { display: flex; margin-bottom: 42px; border-block: 1px solid var(--line); }
.activity-tabs button { min-width: 150px; min-height: 58px; border: 0; border-right: 1px solid var(--line); background: rgba(4, 7, 6, 0.5); cursor: pointer; font-weight: 800; text-transform: uppercase; }
.activity-tabs button.active { color: #111610; background: var(--gold); }
.activity-layout { display: grid; align-items: start; grid-template-columns: 0.65fr 1.35fr; gap: 70px; }
.activity-lead { position: sticky; top: 110px; }
.activity-lead h3 { margin-bottom: 20px; font-size: clamp(2.5rem, 4vw, 4.4rem); line-height: 0.94; }
.activity-lead p { color: var(--muted); }
.guide-list { border-top: 1px solid var(--line); }
.guide-list article { border-bottom: 1px solid var(--line); background: rgba(10, 13, 11, 0.62); }
.guide-list article.open { background: rgba(40, 17, 15, 0.78); }
.guide-list article > button { display: flex; width: 100%; min-height: 104px; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 26px; border: 0; background: transparent; cursor: pointer; text-align: left; }
.guide-list article > button span { display: grid; gap: 6px; }
.guide-list small { color: #92958f; font-size: 0.62rem; text-transform: uppercase; }
.guide-list strong { font-family: Georgia, serif; font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 500; }
.guide-list b { color: var(--gold); font-size: 0.65rem; text-transform: uppercase; }
.guide-body { display: grid; max-height: 0; overflow: hidden; padding: 0 26px; opacity: 0; grid-template-columns: 1fr 0.75fr; gap: 30px; transition: max-height 250ms ease, opacity 180ms ease, padding 250ms ease; }
.guide-list article.open .guide-body { max-height: 300px; padding: 0 26px 30px; opacity: 1; }
.guide-body p { color: #c3c4bd; }
.guide-body ul { display: grid; margin: 0; padding: 0; list-style: none; gap: 8px; }
.guide-body li { padding-left: 14px; border-left: 2px solid var(--jade); color: var(--muted); font-size: 0.78rem; }

.treasury { background: #0b0d0c; }
.split-heading { display: grid; align-items: end; margin-bottom: 50px; grid-template-columns: 1fr 0.7fr; gap: 70px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.product-card button { position: relative; display: block; width: 100%; min-height: 580px; overflow: hidden; padding: 0; border: 1px solid var(--line); background: #101411; cursor: pointer; text-align: left; }
.product-card img, .product-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-shade { background: linear-gradient(0deg, rgba(4, 6, 5, 0.96), transparent 64%); }
.product-index { position: absolute; top: 22px; right: 22px; font-family: Georgia, serif; }
.product-copy { position: absolute; right: 28px; bottom: 30px; left: 28px; display: grid; }
.product-copy small { color: var(--jade); text-transform: uppercase; }
.product-copy strong { margin: 8px 0 22px; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 0.95; }
.product-copy > span { color: var(--gold); font-size: 0.72rem; text-transform: uppercase; }
.section-note { color: #8e918b; text-align: center; }

.path { color: #141714; background: #e8e1d3; }
.path .kicker { color: #775f2d; }
.path-grid { display: grid; border-top: 1px solid rgba(20, 23, 20, 0.25); grid-template-columns: repeat(3, 1fr); }
.path-grid article { position: relative; min-height: 260px; padding: 34px; border-right: 1px solid rgba(20, 23, 20, 0.2); }
.path-grid article:last-child { border: 0; }
.path-grid span { color: rgba(20, 23, 20, 0.22); font-family: Georgia, serif; font-size: 2.6rem; }
.path-grid h3 { margin: 56px 0 10px; font-size: 1.6rem; }
.path-grid p { color: #5e625e; }

.final-cta { display: grid; min-height: 620px; place-items: center; text-align: center; }
.final-content { position: relative; z-index: 2; padding: 30px; }
.final-content h2 { max-width: 900px; }
.final-content .actions { justify-content: center; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 4, 3, 0.94); }
.modal-panel { position: relative; z-index: 1; display: grid; width: min(980px, 100%); max-height: 90vh; overflow: auto; border: 1px solid var(--line); background: #0b100d; grid-template-columns: 1.1fr 0.9fr; }
.modal-panel > img { width: 100%; height: 100%; min-height: 530px; object-fit: cover; }
.modal-copy { padding: 52px 40px; }
.modal-copy h2 { font-size: 3rem; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border: 1px solid var(--line); background: rgba(5, 8, 6, 0.8); cursor: pointer; font-size: 1.6rem; }
.notice { display: grid; margin-top: 28px; padding: 18px; border: 1px solid rgba(98, 223, 175, 0.26); gap: 5px; }
.notice span { color: var(--muted); }
.video-modal { position: relative; z-index: 1; width: min(1100px, 100%); }
.video-modal img { width: 100%; max-height: 84vh; object-fit: contain; background: black; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 120; padding: 16px 20px; border: 1px solid rgba(98, 223, 175, 0.4); background: #10241a; }

/* Authentication */
.auth-page {
  min-height: 100svh;
  overflow-x: hidden;
  background: #060a08 url("../assets/auth-jade-temple.webp") center / cover fixed no-repeat;
}
.auth-shade, .account-shade { position: fixed; inset: 0; background: linear-gradient(90deg, rgba(3, 6, 5, 0.18), rgba(3, 6, 5, 0.68) 54%, rgba(3, 6, 5, 0.98) 76%); }
.simple-header, .account-header { position: fixed; top: 0; right: 0; left: 0; z-index: 30; display: flex; min-height: 82px; align-items: center; justify-content: space-between; padding: 10px 36px; border-bottom: 1px solid var(--line); background: rgba(4, 7, 5, 0.72); backdrop-filter: blur(12px); }
.auth-shell { position: relative; z-index: 2; display: grid; min-height: 100svh; align-items: center; justify-items: end; padding: 110px 7vw 40px; }
.auth-panel { width: min(520px, 100%); padding: 42px; border: 1px solid var(--line); background: rgba(5, 10, 7, 0.91); }
.auth-panel h1 { margin-bottom: 14px; font-size: clamp(3rem, 5vw, 5rem); line-height: 0.92; }
.auth-panel > p:not(.kicker):not(.auth-note) { color: var(--muted); }
.auth-tabs { display: grid; margin: 30px 0 24px; border-block: 1px solid var(--line); grid-template-columns: 1fr 1fr; }
.auth-tabs button { min-height: 52px; border: 0; background: transparent; cursor: pointer; text-transform: uppercase; }
.auth-tabs button.active { color: #07110d; background: var(--gold); }
.auth-form { display: grid; gap: 17px; }
.auth-form label, .security-form label { display: grid; gap: 7px; }
.auth-form label > span, .security-form label > span { color: #a9aca6; font-size: 0.72rem; text-transform: uppercase; }
.auth-form input, .security-form input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); color: white; background: rgba(2, 6, 4, 0.76); outline: none; }
.auth-form input:focus, .security-form input:focus { border-color: var(--jade); }
.password-field { display: grid; grid-template-columns: 1fr auto; }
.password-field button { border: 1px solid var(--line); border-left: 0; background: rgba(2, 6, 4, 0.76); cursor: pointer; font-size: 0.72rem; }
.remember { display: flex !important; align-items: center; grid-template-columns: auto 1fr; }
.remember input { width: 18px; min-height: 18px; }
.auth-submit { width: 100%; border: 0; }
.form-error { margin: 0; color: #ff9d8f; }
.auth-note { margin: 24px 0 0; color: #8f948e; font-size: 0.78rem; }

/* Account */
.account-page {
  min-height: 100vh;
  background: #060a08 url("../assets/account-atmosphere.webp") center / cover fixed no-repeat;
}
.account-shade { background: rgba(3, 8, 5, 0.9); }
.account-header { display: grid; grid-template-columns: auto 1fr auto; }
.server-status { justify-self: center; color: #aeb3ad; }
.server-status i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--jade); }
.logout-button, .account-menu-button { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.account-menu-button { display: none; }
.account-sidebar { position: fixed; top: 82px; bottom: 0; left: 0; z-index: 20; width: 270px; padding: 26px 18px; border-right: 1px solid var(--line); background: rgba(5, 10, 7, 0.96); }
.account-profile { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.account-profile > span { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--line); color: var(--jade); font-family: Georgia, serif; font-size: 1.4rem; }
.account-profile div { display: grid; min-width: 0; }
.account-profile small { color: #777d77; font-size: 0.6rem; text-transform: uppercase; }
.account-profile p { margin: 0; overflow: hidden; color: #8f948e; font-size: 0.7rem; text-overflow: ellipsis; }
.account-sidebar nav { display: grid; }
.account-sidebar nav button, .account-sidebar nav a { min-height: 48px; padding: 0 14px; border: 0; color: #a5aaa4; background: transparent; cursor: pointer; text-align: left; }
.account-sidebar nav button.active, .account-sidebar nav button:hover, .account-sidebar nav a:hover { color: white; background: rgba(98, 223, 175, 0.1); }
.account-content { position: relative; z-index: 2; min-height: 100vh; padding: 126px max(38px, 5vw) 70px calc(270px + max(38px, 5vw)); }
.account-view { display: none; }
.account-view.active { display: block; }
.account-title { display: grid; align-items: end; margin-bottom: 42px; grid-template-columns: 1fr auto; gap: 40px; }
.account-title h1 { max-width: 850px; margin-bottom: 12px; font-size: clamp(3rem, 5vw, 5.3rem); line-height: 0.92; }
.account-title > div:first-child > p:last-child { color: var(--muted); }
.balance-card { display: grid; min-width: 230px; padding: 22px 24px; border: 1px solid var(--line); background: rgba(17, 29, 23, 0.78); }
.balance-card small { color: #7d837d; text-transform: uppercase; }
.balance-card strong { margin: 5px 0 12px; font-family: Georgia, serif; font-size: 1.7rem; }
.balance-card button, .payment-box button, .security-form > button, .promo-banner button { min-height: 42px; border: 0; color: #09120e; background: var(--jade); cursor: pointer; font-weight: 800; text-transform: uppercase; }
.quick-actions { display: grid; margin-bottom: 52px; border-block: 1px solid var(--line); grid-template-columns: repeat(4, 1fr); }
.quick-actions > * { display: grid; min-height: 108px; align-content: center; padding: 20px; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; text-align: left; }
.quick-actions > *:last-child { border: 0; }
.quick-actions small { color: #777d77; text-transform: uppercase; }
.quick-actions strong { font-family: Georgia, serif; font-size: 1rem; }
.account-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 16px; }
.account-box, .payment-box, .security-form { padding: 32px; border: 1px solid var(--line); background: rgba(10, 17, 13, 0.78); }
.account-box h2, .payment-box h2, .security-form h2 { margin-bottom: 26px; font-size: clamp(1.8rem, 3vw, 3rem); }
.account-box dl { margin-top: 40px; }
.account-box dl div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.account-box dd { margin: 0; }
.promo-banner { position: relative; min-height: 370px; overflow: hidden; border: 1px solid var(--line); }
.promo-banner > img, .promo-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-shade { background: linear-gradient(90deg, rgba(3, 7, 5, 0.96), rgba(3, 7, 5, 0.72), rgba(3, 7, 5, 0.12)); }
.promo-banner > div { position: relative; z-index: 2; width: min(520px, 75%); padding: 40px; }
.promo-banner h2 { margin-bottom: 14px; font-size: clamp(2.2rem, 4vw, 4rem); }
.promo-banner > div > p:not(.kicker) { color: #c3c5bf; }
.promo-banner button { padding: 0 18px; }
.topup-grid { display: grid; align-items: start; grid-template-columns: 1fr 1fr 0.8fr; gap: 16px; }
.amount-grid, .method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.amount-grid button, .method-grid button { min-height: 54px; border: 1px solid var(--line); background: rgba(4, 8, 6, 0.6); cursor: pointer; }
.amount-grid button.active, .method-grid button.active { color: #07110d; background: var(--gold); }
.payment-box { display: grid; min-height: 330px; align-content: center; text-align: center; }
.payment-box small { color: #7d837d; text-transform: uppercase; }
.payment-box strong { margin: 8px 0; font-family: Georgia, serif; font-size: 2.2rem; }
.payment-box span { margin-bottom: 22px; color: var(--muted); font-size: 0.78rem; }
.security-form { display: grid; max-width: 650px; gap: 17px; }
.account-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.account-products article { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.account-products article > div { position: relative; aspect-ratio: 16 / 10; margin-bottom: 18px; overflow: hidden; }
.account-products img { width: 100%; height: 100%; object-fit: cover; }
.account-products article > div span { position: absolute; right: 12px; bottom: 8px; font-family: Georgia, serif; }
.account-products small { color: var(--jade); text-transform: uppercase; }
.account-products h2 { margin: 7px 0 10px; font-size: 2rem; }
.account-products p { color: var(--muted); }
.account-products article > strong { color: var(--gold); font-size: 0.72rem; text-transform: uppercase; }
.account-scrim { position: fixed; inset: 0; z-index: 15; border: 0; background: rgba(0, 0, 0, 0.7); }

@media (max-width: 1040px) {
  .class-stage { grid-template-columns: 0.8fr 1.2fr; }
  .class-list { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; grid-template-columns: repeat(6, 1fr); }
  .class-list button { min-height: 62px; padding: 0 12px; border-right: 1px solid var(--line); border-bottom: 0; grid-template-columns: 24px 1fr; }
}

@media (max-width: 900px) {
  .container { width: calc(100% - 32px); }
  .site-header { min-height: 72px; padding: 8px 16px; grid-template-columns: 1fr auto; }
  .site-header .brand img { width: 50px; height: 50px; }
  .header-actions { display: none; }
  .menu-button { display: block; }
  .site-nav { position: fixed; top: 72px; right: 0; left: 0; display: none; padding: 10px 16px 18px; border-bottom: 1px solid var(--line); background: rgba(5, 8, 6, 0.98); flex-direction: column; gap: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { min-height: 46px; padding: 12px; }
  .mobile-nav-action { display: flex !important; align-items: center; justify-content: center; margin-top: 7px; border: 1px solid var(--line); font-family: Arial, sans-serif; font-weight: 800; text-transform: uppercase; }
  .mobile-nav-action--primary { color: #07110d !important; background: var(--jade); }
  .hero-content { right: 18px; bottom: 34px; left: 18px; width: auto; }
  .hero h1 { font-size: clamp(3.2rem, 13vw, 5.2rem); }
  .hero-shade { background: linear-gradient(0deg, rgba(2, 4, 3, 0.98), rgba(2, 4, 3, 0.78) 45%, rgba(2, 4, 3, 0.08) 75%); }
  .section { padding: 72px 0; }
  h2 { font-size: clamp(2.8rem, 12vw, 4.2rem); }
  .world { min-height: 0; }
  .feature-list { display: grid; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats div:nth-child(3) { border-right: 0; }
  .stats div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .race-tabs button { min-height: 64px; padding: 0 14px; font-size: 1rem; }
  .race-tabs small { display: none; }
  .class-stage { min-height: 0; grid-template-columns: 1fr; }
  .class-copy { padding: 38px 24px 8px; }
  .class-number { top: -30px; right: 12px; left: auto; font-size: 8rem; }
  .class-copy h3 { font-size: 3.2rem; }
  .class-portrait { min-height: 340px; }
  .class-portrait img { height: 380px; }
  .class-list { grid-template-columns: repeat(3, 1fr); }
  .class-list button { min-width: 0; min-height: 58px; padding: 0 9px; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
  .activity-layout { grid-template-columns: 1fr; }
  .activity-lead { display: none; }
  .activity-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .activity-tabs button { min-width: 0; }
  .guide-body { grid-template-columns: 1fr; }
  .guide-list article.open .guide-body { max-height: 430px; }
  .split-heading { display: block; }
  .product-grid { width: calc(100vw - 16px); overflow-x: auto; padding-right: 22px; padding-bottom: 10px; grid-template-columns: repeat(3, minmax(78vw, 1fr)); scroll-snap-type: x mandatory; }
  .product-card { scroll-snap-align: start; }
  .product-card button { min-height: 420px; }
  .path-grid { grid-template-columns: 1fr; }
  .path-grid article { min-height: 150px; border-right: 0; border-bottom: 1px solid rgba(20, 23, 20, 0.2); }
  .path-grid h3 { margin-top: 18px; }
  .modal-panel { grid-template-columns: 1fr; }
  .modal-panel > img { min-height: 300px; max-height: 42vh; }
  .modal-copy { padding: 30px 22px; }
  .account-header { padding: 8px 16px; grid-template-columns: 1fr auto; }
  .server-status, .logout-button { display: none; }
  .account-menu-button { display: block; }
  .account-sidebar { z-index: 20; transform: translateX(-105%); transition: transform 180ms ease; }
  .account-sidebar.open { transform: translateX(0); }
  .account-content { padding: 112px 22px 60px; }
  .account-title { grid-template-columns: 1fr; gap: 20px; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .account-grid, .topup-grid, .account-products { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .brand small { font-size: 0.62rem; }
  .brand strong { font-size: 1.05rem; }
  .hero { min-height: 800px; }
  .hero h1 { font-size: 3.15rem; }
  .hero-lore { font-size: 0.9rem; }
  .actions { display: grid; }
  .button { width: 100%; }
  .stats strong { font-size: 1.25rem; }
  .cinematic-frame { aspect-ratio: 4 / 3; }
  .cinematic-caption { right: 16px; bottom: 14px; left: 16px; }
  .guide-list article > button { min-height: 88px; padding: 15px; }
  .guide-list b { font-size: 0; }
  .guide-list b::after { content: "⌄"; font-size: 1.4rem; }
  .guide-body, .guide-list article.open .guide-body { padding-inline: 15px; }
  .auth-shade { background: linear-gradient(0deg, rgba(3, 6, 5, 0.99), rgba(3, 6, 5, 0.82) 62%, rgba(3, 6, 5, 0.2)); }
  .simple-header { padding: 8px 16px; }
  .simple-header > a:last-child { font-size: 0; }
  .simple-header > a:last-child::before { content: "←"; font-size: 1.4rem; }
  .auth-shell { align-items: end; padding: 220px 0 0; }
  .auth-panel { width: 100%; padding: 34px 20px; border-right: 0; border-bottom: 0; border-left: 0; }
  .auth-panel h1 { font-size: 3rem; }
  .account-content { padding: 120px 16px 48px; }
  .account-title h1 { font-size: 3rem; }
  .quick-actions { grid-template-columns: 1fr; }
  .quick-actions > * { min-height: 84px; border-right: 0; border-bottom: 1px solid var(--line); }
  .promo-banner { min-height: 420px; }
  .promo-banner > div { position: absolute; bottom: 0; width: 100%; padding: 28px 20px; }
  .promo-shade { background: linear-gradient(0deg, rgba(3, 7, 5, 0.98), rgba(3, 7, 5, 0.55), transparent); }
  .amount-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ambient-video { display: none; }
  .hero { background: url("../assets/hero-emperor-desktop.webp") center / cover no-repeat; }
}

.flash {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.flash-success {
    background: rgba(70, 255, 70, 0.15);
    border: 1px solid #46ff46;
    color: #7dffb2;
}
.flash-error {
    background: rgba(255, 70, 70, 0.15);
    border: 1px solid #ff4646;
    color: #ff8a8a;
}