:root {
  --bg: #080b09;
  --bg-soft: #0d120f;
  --surface: #121813;
  --line: rgba(202, 220, 205, .14);
  --text: #e7ece8;
  --muted: #97a39a;
  --green: #9dd640;
  --green-bright: #c3ef6d;
  --red: #c75143;
  --purple: #8f6ac7;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 28%, rgba(105, 142, 66, .08), transparent 24rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 1000; padding: .75rem 1rem; background: var(--green); color: #071006; text-decoration: none; font-weight: 800; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 80px; padding: 0 clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, min-height .25s;
}
.site-header.scrolled { min-height: 66px; background: rgba(7, 10, 8, .9); border-color: var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: #0b1109; background: var(--green); font-size: .78rem; font-weight: 950; letter-spacing: -.05em; transform: skew(-7deg); }
.brand-name { position: relative; font-weight: 950; font-size: 1.1rem; letter-spacing: .04em; line-height: 1; }
.brand-name > span { color: var(--green-bright); }
.brand-name small { position: absolute; left: 0; top: 1.2rem; color: var(--muted); font-size: .48rem; letter-spacing: .42em; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.language-switch { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .5rem; border: 1px solid var(--line); background: rgba(8, 11, 9, .66); }
.language-switch span { width: 1px; height: 14px; background: var(--line); }
.language-switch button { padding: .18rem .2rem; color: var(--muted); background: transparent; border: 0; font: inherit; font-size: .68rem; font-weight: 900; letter-spacing: .08em; cursor: pointer; }
.language-switch button[aria-pressed="true"] { color: var(--green-bright); }
.language-switch button:hover, .language-switch button:focus-visible { color: var(--text); }
.main-nav a { color: #ccd4ce; text-decoration: none; text-transform: uppercase; font-size: .72rem; font-weight: 800; letter-spacing: .14em; transition: color .2s; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--green-bright); }
.main-nav .nav-cta { padding: .8rem 1rem; border: 1px solid rgba(157, 214, 64, .45); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); background: rgba(8, 11, 9, .7); }
.nav-toggle > span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--text); }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-backdrop { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(4, 7, 5, .96) 0%, rgba(5, 8, 6, .77) 36%, rgba(5, 8, 6, .1) 72%), linear-gradient(0deg, var(--bg) 0%, transparent 30%), url("afterzm-hero.png"); background-position: center; background-size: cover; filter: saturate(.85) contrast(1.06); transform: scale(1.015); }
.hero-grid { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, black, transparent 70%); }
.hero-content { position: relative; z-index: 2; width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; padding: 10rem 0 5rem; }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.4rem; color: #b9c3bb; text-transform: uppercase; font-size: .7rem; font-weight: 800; letter-spacing: .2em; }
.eyebrow span { width: 26px; height: 2px; background: var(--green); box-shadow: 0 0 16px rgba(157, 214, 64, .65); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { text-transform: uppercase; font-weight: 950; letter-spacing: -.045em; line-height: .94; }
h1 { max-width: 900px; margin-bottom: 1.7rem; font-size: clamp(3.2rem, 7.8vw, 7.3rem); }
h1 em, h2 em { color: var(--green-bright); font-style: normal; }
.hero-copy { max-width: 640px; margin-bottom: 2rem; color: #bbc5bd; font-size: clamp(1rem, 1.8vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.3rem; text-decoration: none; text-transform: uppercase; font-size: .72rem; font-weight: 900; letter-spacing: .11em; border: 1px solid var(--line); transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #091006; background: var(--green); border-color: var(--green); }
.button-primary:hover { background: var(--green-bright); }
.button-ghost { background: rgba(8, 11, 9, .56); }
.button-ghost:hover { color: var(--green-bright); border-color: rgba(157, 214, 64, .5); }
.hero-stats { display: flex; gap: clamp(1.5rem, 4vw, 4rem); margin: 4rem 0 0; }
.hero-stats div { position: relative; padding-left: 1rem; border-left: 1px solid rgba(157, 214, 64, .55); }
.hero-stats dt { font-size: 1.5rem; font-weight: 950; line-height: 1; }
.hero-stats dd { margin: .3rem 0 0; color: var(--muted); text-transform: uppercase; font-size: .62rem; letter-spacing: .13em; }
.scroll-cue { position: absolute; z-index: 3; right: clamp(1rem, 3vw, 3rem); bottom: 2.2rem; display: flex; align-items: center; gap: .65rem; color: #a8b0aa; text-transform: uppercase; font-size: .58rem; letter-spacing: .18em; writing-mode: vertical-rl; }
.scroll-cue span { width: 1px; height: 44px; background: linear-gradient(var(--green), transparent); }

.section { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(5rem, 10vw, 9rem) 0; }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 3rem; margin-bottom: 3rem; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
h2 { margin-bottom: 0; font-size: clamp(2.5rem, 5.5vw, 5rem); }
.section-heading > p:last-child { max-width: 520px; margin: 0; color: var(--muted); }
.world-section { position: relative; }
.world-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1rem; }
.feature-card { position: relative; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.4rem, 3vw, 2.2rem); overflow: hidden; background: linear-gradient(145deg, rgba(22, 30, 24, .92), rgba(11, 15, 12, .92)); border: 1px solid var(--line); }
.feature-card::after { content: ""; position: absolute; inset: auto -15% -60% auto; width: 250px; aspect-ratio: 1; border: 1px solid rgba(157, 214, 64, .12); border-radius: 50%; box-shadow: 0 0 0 38px rgba(157, 214, 64, .025), 0 0 0 76px rgba(157, 214, 64, .018); }
.feature-large { grid-row: span 2; min-height: 576px; background: linear-gradient(145deg, rgba(27, 38, 29, .96), rgba(9, 13, 10, .95)); }
.feature-index { color: rgba(231, 236, 232, .16); font-size: clamp(3rem, 7vw, 6rem); font-weight: 950; line-height: 1; }
.feature-kicker { margin-bottom: .7rem; color: var(--green-bright); text-transform: uppercase; font-size: .65rem; font-weight: 850; letter-spacing: .18em; }
.feature-card h3, .faction h3, .server-note h3 { margin-bottom: .7rem; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.12; text-transform: uppercase; }
.feature-card p:last-child, .faction p, .server-note > p { max-width: 540px; margin-bottom: 0; color: var(--muted); }
.accent-card { border-color: rgba(199, 81, 67, .32); background: linear-gradient(145deg, rgba(46, 24, 21, .74), rgba(12, 13, 11, .94)); }
.accent-card .feature-kicker { color: #e27b6e; }

.systems-section { width: 100%; max-width: none; padding-left: max(1.25rem, calc((100vw - var(--max)) / 2)); padding-right: max(1.25rem, calc((100vw - var(--max)) / 2)); background: #0b0f0c; border-block: 1px solid var(--line); }
.systems-intro { margin-bottom: 3rem; }
.factions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.faction { position: relative; min-height: 420px; padding: clamp(1.5rem, 4vw, 3rem); background: #101611; border: 1px solid var(--line); overflow: hidden; }
.faction::after { content: ""; position: absolute; inset: 0; opacity: .13; background-image: repeating-linear-gradient(135deg, transparent 0 20px, currentColor 20px 21px); mask-image: linear-gradient(90deg, transparent 40%, black); }
.faction-symbol { position: absolute; right: 2rem; bottom: -2.5rem; color: rgba(157, 214, 64, .06); font-size: 18rem; font-weight: 950; line-height: 1; }
.faction > *:not(.faction-symbol) { position: relative; z-index: 1; }
.faction h3 { margin-top: 3.5rem; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.faction p:not(.feature-kicker) { max-width: 430px; }
.faction-line { display: block; width: 44px; height: 3px; margin-top: 2rem; background: var(--green); }
.faction-bandit { color: #e7e1eb; background: #141117; }
.faction-bandit .feature-kicker { color: #b99ade; }
.faction-bandit .faction-symbol { color: rgba(143, 106, 199, .07); }
.faction-bandit .faction-line { background: var(--purple); }
.territory-strip { display: grid; grid-template-columns: .7fr 1fr 1.4fr; align-items: center; gap: 2rem; margin-top: 1rem; padding: 1.5rem 2rem; border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.territory-strip > div { display: flex; align-items: center; gap: .7rem; }
.territory-strip p { margin: 0; color: var(--muted); }
.territory-strip > div p { color: var(--text); text-transform: uppercase; font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.territory-strip strong { text-transform: uppercase; font-size: 1rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

.section-heading.compact { grid-template-columns: .95fr 1.05fr; }
.server-grid { display: grid; grid-template-columns: .8fr .8fr 1.4fr; gap: 1rem; }
.server-card, .server-note { min-height: 310px; padding: 2rem; border: 1px solid var(--line); background: linear-gradient(145deg, #121813, #0c100d); }
.server-type { display: flex; align-items: center; gap: .5rem; color: var(--muted); text-transform: uppercase; font-size: .65rem; font-weight: 850; letter-spacing: .16em; }
.server-type span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.server-card strong { display: block; margin-top: 3.2rem; font-size: clamp(3rem, 7vw, 5.4rem); line-height: .9; }
.server-card > p { margin: .5rem 0 2.2rem; color: var(--green-bright); text-transform: uppercase; font-size: .65rem; font-weight: 850; letter-spacing: .17em; }
.server-card small { display: block; color: var(--muted); }
.server-card.pvp { background: linear-gradient(145deg, #171217, #0d0b0e); }
.server-card.pvp .server-type span { background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.server-card.pvp > p { color: #bb9cde; }
.server-note { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.signal { position: absolute; right: 2rem; bottom: 2rem; display: flex; align-items: flex-end; gap: 5px; height: 36px; }
.signal i { display: block; width: 5px; background: var(--green); opacity: .75; animation: signal 1.8s ease-in-out infinite; }
.signal i:nth-child(1) { height: 9px; }
.signal i:nth-child(2) { height: 17px; animation-delay: .12s; }
.signal i:nth-child(3) { height: 25px; animation-delay: .24s; }
.signal i:nth-child(4) { height: 34px; animation-delay: .36s; }
@keyframes signal { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.development-section { padding-top: 3rem; }
.dev-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: clamp(2rem, 5vw, 4.5rem); background: linear-gradient(120deg, rgba(157, 214, 64, .09), rgba(255,255,255,.018)); border: 1px solid rgba(157, 214, 64, .2); }
.dev-copy { display: flex; flex-direction: column; justify-content: center; }
.dev-copy > p:first-child { color: #bdc6bf; }
.progress-row { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; color: #cbd4cd; text-transform: uppercase; font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.progress-row span:last-child { color: var(--green-bright); }
.progress-track { height: 5px; margin-top: .7rem; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-track span { display: block; width: 27%; height: 100%; background: linear-gradient(90deg, #739c32, var(--green-bright)); box-shadow: 0 0 15px rgba(157, 214, 64, .35); }
.fine-print { margin: 1rem 0 0; color: #6f7a71; font-size: .75rem; }

.account-section { width: 100%; max-width: none; padding-left: max(1.25rem, calc((100vw - var(--max)) / 2)); padding-right: max(1.25rem, calc((100vw - var(--max)) / 2)); background: #0a0e0b; border-block: 1px solid var(--line); }
.account-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 650px; background: #0d120f; border: 1px solid rgba(157, 214, 64, .2); box-shadow: 0 32px 90px rgba(0,0,0,.32); }
.account-sidebar { display: flex; flex-direction: column; padding: 1.25rem; background: #090d0a; border-right: 1px solid var(--line); }
.account-identity { display: flex; align-items: center; gap: .8rem; padding: .5rem .35rem 1.4rem; border-bottom: 1px solid var(--line); }
.account-avatar { display: grid; place-items: center; flex: 0 0 42px; height: 42px; color: #0b1009; background: var(--green); font-size: .75rem; font-weight: 950; transform: skew(-5deg); }
.account-identity strong, .account-identity span { display: block; }
.account-identity strong { font-size: .88rem; }
.account-identity span { color: var(--muted); font-size: .75rem; }
.account-tabs { display: grid; gap: .3rem; margin-top: 1.25rem; }
.account-tab { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .9rem .8rem; color: #aeb8b0; background: transparent; border: 0; border-left: 2px solid transparent; text-align: left; font: inherit; font-size: .82rem; font-weight: 750; cursor: pointer; }
.account-tab span { width: 20px; color: #738077; text-align: center; }
.account-tab:hover, .account-tab.active { color: var(--text); background: rgba(157,214,64,.065); border-left-color: var(--green); }
.account-tab.active span { color: var(--green-bright); }
.account-login { margin-top: auto; padding: .9rem; color: var(--green-bright); background: rgba(157,214,64,.07); border: 1px solid rgba(157,214,64,.28); font: inherit; font-size: .76rem; font-weight: 850; cursor: pointer; }
.account-login:hover { background: rgba(157,214,64,.12); }
.account-content { min-width: 0; }
.account-topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 88px; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.account-topbar > div:first-child strong, .demo-badge { display: block; }
.account-topbar > div:first-child strong { margin-top: .25rem; font-size: 1.15rem; text-transform: uppercase; }
.demo-badge { color: var(--green-bright); text-transform: uppercase; font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.gold-balance { display: flex; align-items: center; gap: .65rem; padding: .6rem .8rem; background: rgba(216, 173, 57, .07); border: 1px solid rgba(216, 173, 57, .22); }
.gold-balance > span, .gold-coin { display: grid; place-items: center; border-radius: 50%; color: #201703; background: #d8ad39; font-weight: 950; box-shadow: 0 0 18px rgba(216,173,57,.22); }
.gold-balance > span { width: 34px; height: 34px; }
.gold-balance small, .gold-balance strong { display: block; }
.gold-balance small { color: #a69a79; font-size: .68rem; }
.gold-balance strong { font-size: .85rem; }
.account-panel { padding: 1.5rem; }
.account-panel[hidden] { display: none; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .7fr); gap: 1rem; }
.profile-card { display: grid; grid-template-columns: minmax(180px, .8fr) 1.2fr; min-height: 480px; background: linear-gradient(135deg, #172019, #0c110d); border: 1px solid var(--line); overflow: hidden; }
.character-silhouette { position: relative; display: grid; place-items: end center; min-height: 300px; background: radial-gradient(circle at 50% 40%, rgba(157,214,64,.18), transparent 35%), linear-gradient(180deg, #18221a, #0b0f0c); overflow: hidden; }
.character-silhouette::before { content: ""; width: 46%; height: 78%; margin-bottom: -8%; background: linear-gradient(90deg, #202922, #121813 50%, #252f27); clip-path: polygon(37% 0, 63% 0, 70% 10%, 67% 23%, 78% 35%, 73% 65%, 87% 100%, 13% 100%, 27% 65%, 22% 35%, 33% 23%, 30% 10%); filter: drop-shadow(0 0 25px rgba(0,0,0,.8)); }
.character-silhouette span { position: absolute; bottom: 1rem; color: rgba(231,236,232,.18); font-size: 2.5rem; font-weight: 950; letter-spacing: .1em; }
.profile-details { align-self: center; padding: 2rem; }
.profile-details h3 { margin-bottom: .8rem; text-transform: uppercase; font-size: clamp(1.8rem, 3vw, 3rem); }
.faction-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .65rem; color: var(--green-bright); background: rgba(157,214,64,.07); border: 1px solid rgba(157,214,64,.25); text-transform: uppercase; font-size: .72rem; font-weight: 850; letter-spacing: .1em; }
.faction-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin: 2rem 0; }
.profile-stats div { padding-left: .7rem; border-left: 1px solid var(--line); }
.profile-stats dt { font-size: 1.35rem; font-weight: 950; }
.profile-stats dd { margin: 0; color: var(--muted); font-size: .72rem; }
.xp-label { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .72rem; }
.xp-label strong { color: #cbd4cd; }
.xp-track { height: 6px; margin-top: .6rem; background: rgba(255,255,255,.08); }
.xp-track span { display: block; width: 90%; height: 100%; background: linear-gradient(90deg, #6b9630, var(--green-bright)); }
.overview-stack { display: grid; gap: 1rem; }
.account-stat-card { display: flex; flex-direction: column; justify-content: center; padding: 1.4rem; background: #111712; border: 1px solid var(--line); }
.account-stat-card > span { color: var(--muted); font-size: .76rem; }
.account-stat-card strong { margin: .35rem 0; font-size: 1.05rem; text-transform: uppercase; }
.account-stat-card small { color: #7d8980; }
.account-stat-card.warning { border-color: rgba(216,173,57,.22); background: linear-gradient(135deg, rgba(216,173,57,.07), #111712); }
.inventory-toolbar, .shop-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.inventory-toolbar > div:first-child strong, .inventory-toolbar > div:first-child span, .shop-heading > div strong, .shop-heading > div span { display: block; }
.inventory-toolbar > div:first-child strong, .shop-heading > div strong { font-size: 1.15rem; text-transform: uppercase; }
.inventory-toolbar > div:first-child span, .shop-heading > div span { color: var(--muted); font-size: .78rem; }
.inventory-filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.inventory-filters button, .purchase-history { padding: .55rem .7rem; color: var(--muted); background: transparent; border: 1px solid var(--line); font: inherit; font-size: .72rem; cursor: pointer; }
.inventory-filters button:hover, .inventory-filters button.active, .purchase-history:hover { color: var(--green-bright); border-color: rgba(157,214,64,.35); background: rgba(157,214,64,.06); }
.inventory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.item-card { display: grid; grid-template-columns: 72px 1fr; gap: .85rem; align-items: center; min-height: 110px; padding: .85rem; background: #111712; border: 1px solid var(--line); }
.item-icon { display: grid; place-items: center; height: 72px; color: #b5c0b7; background: #0a0e0b; border: 1px solid var(--line); font-size: 1rem; font-weight: 950; }
.item-card div:last-child > span, .item-card strong, .item-card small { display: block; }
.item-card div:last-child > span { margin-bottom: .2rem; text-transform: uppercase; font-size: .65rem; font-weight: 850; letter-spacing: .1em; }
.item-card strong { font-size: .82rem; line-height: 1.25; }
.item-card small { margin-top: .3rem; color: var(--muted); }
.item-card.epic { border-color: rgba(143,106,199,.28); }.item-card.epic div:last-child > span { color: #b99ade; }
.item-card.legendary { border-color: rgba(216,173,57,.28); }.item-card.legendary div:last-child > span { color: #e4bd53; }
.item-card.rare { border-color: rgba(76,137,202,.28); }.item-card.rare div:last-child > span { color: #72a9df; }
.item-card.uncommon { border-color: rgba(106,172,89,.25); }.item-card.uncommon div:last-child > span { color: #8bcb78; }
.account-disclaimer { margin: 1rem 0 0; padding: .75rem 1rem; color: #89958b; background: rgba(255,255,255,.025); border-left: 2px solid var(--green); font-size: .76rem; }
.shop-featured { display: grid; grid-template-columns: 1.3fr .85fr .85fr; gap: .75rem; }
.shop-offer { position: relative; min-height: 310px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem; background: linear-gradient(145deg, #151b16, #0c100d); border: 1px solid var(--line); overflow: hidden; }
.featured-offer { background: radial-gradient(circle at 80% 15%, rgba(157,214,64,.2), transparent 32%), linear-gradient(145deg, #19231b, #0c100d); border-color: rgba(157,214,64,.25); }
.featured-offer::before { content: "S"; position: absolute; right: -1rem; top: -.6rem; color: rgba(157,214,64,.06); font-size: 14rem; font-weight: 950; line-height: 1; }
.offer-tag, .popular-label { position: absolute; top: 0; left: 0; padding: .45rem .65rem; color: #0a1008; background: var(--green); text-transform: uppercase; font-size: .62rem; font-weight: 900; letter-spacing: .1em; }
.shop-offer > div:not(.offer-tag), .shop-offer > button { position: relative; z-index: 1; }
.shop-offer h3 { margin-bottom: .45rem; text-transform: uppercase; }
.shop-offer p:not(.feature-kicker) { color: var(--muted); font-size: .8rem; }
.shop-offer > button { align-self: flex-start; padding: .6rem .85rem; color: #171002; background: #d8ad39; border: 0; font: inherit; font-weight: 900; cursor: pointer; }
.shop-offer > button span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: .35rem; color: #d8ad39; background: #171002; border-radius: 50%; font-size: .68rem; }
.offer-visual { position: absolute !important; inset: 0 0 auto; display: grid; place-items: center; height: 44%; color: rgba(231,236,232,.2); background: radial-gradient(circle, rgba(143,106,199,.22), transparent 65%); font-size: 2.6rem; font-weight: 950; letter-spacing: .1em; }
.offer-visual.gold { background: radial-gradient(circle, rgba(216,173,57,.22), transparent 65%); }
.gold-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: .75rem; }
.gold-packs article { position: relative; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .8rem; padding: 1rem; background: #111712; border: 1px solid var(--line); }
.gold-packs article.popular { border-color: rgba(216,173,57,.3); padding-top: 1.7rem; }
.gold-coin { width: 36px; height: 36px; }
.gold-packs strong, .gold-packs span { font-size: .8rem; }
.gold-packs span { color: #e2bd5d; font-weight: 850; }
.gold-packs button { padding: .5rem .65rem; color: var(--text); background: transparent; border: 1px solid var(--line); font: inherit; font-size: .68rem; cursor: pointer; }
.gold-packs button:hover { color: #201703; background: #d8ad39; }
.login-dialog { width: min(460px, calc(100% - 2rem)); padding: 0; color: var(--text); background: #0d120f; border: 1px solid rgba(157,214,64,.26); box-shadow: 0 30px 100px rgba(0,0,0,.75); }
.login-dialog::backdrop { background: rgba(1,4,2,.82); backdrop-filter: blur(8px); }
.login-card { position: relative; padding: 2rem; }
.dialog-close { position: absolute; right: 1rem; top: 1rem; width: 36px; height: 36px; color: var(--muted); background: transparent; border: 1px solid var(--line); font-size: 1.4rem; cursor: pointer; }
.login-brand { margin-bottom: 2.7rem; }
.login-card h2 { margin-bottom: 1.5rem; font-size: 2.4rem; }
.login-card label { display: grid; gap: .4rem; margin: .8rem 0; color: #c4cec6; font-size: .78rem; font-weight: 750; }
.login-card input { width: 100%; padding: .9rem 1rem; color: var(--text); background: #080c09; border: 1px solid var(--line); outline: none; font: inherit; }
.login-card input:focus { border-color: rgba(157,214,64,.55); }
.login-submit { width: 100%; margin-top: 1rem; border: 0; cursor: pointer; }
.register-link { width: 100%; margin-top: .8rem; padding: .6rem; color: var(--green-bright); background: transparent; border: 0; font: inherit; font-size: .78rem; cursor: pointer; }
.dialog-note { margin: 1rem 0 0; color: var(--muted); text-align: center; font-size: .72rem; }
.demo-toast { position: fixed; z-index: 250; right: 1rem; bottom: 1rem; max-width: 360px; padding: .9rem 1rem; color: #dfe8e1; background: #151d17; border: 1px solid rgba(157,214,64,.35); box-shadow: 0 15px 45px rgba(0,0,0,.5); font-size: .8rem; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.demo-toast.show { opacity: 1; transform: none; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.site-footer p { margin: 0; }
.footer-status { justify-self: end; display: flex; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-status span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .site-header { min-height: 68px; }
  .header-actions { gap: .7rem; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; inset: 68px 1rem auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .75rem; background: rgba(8, 12, 9, .98); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 1rem; }
  .main-nav .nav-cta { border: 0; border-top: 1px solid var(--line); }
  .hero-backdrop { background-image: linear-gradient(90deg, rgba(4, 7, 5, .92), rgba(5, 8, 6, .35)), linear-gradient(0deg, var(--bg) 0%, transparent 42%), url("afterzm-hero.png"); background-position: 58% center; }
  .section-heading, .section-heading.compact, .dev-panel { grid-template-columns: 1fr; gap: 1.5rem; }
  .world-grid, .factions { grid-template-columns: 1fr; }
  .feature-large { grid-row: auto; min-height: 360px; }
  .territory-strip { grid-template-columns: 1fr; gap: .8rem; }
  .server-grid { grid-template-columns: 1fr 1fr; }
  .server-note { grid-column: 1 / -1; }
  .account-shell { grid-template-columns: 1fr; }
  .account-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .account-tabs { grid-template-columns: repeat(3, 1fr); }
  .account-tab { justify-content: center; border-left: 0; border-bottom: 2px solid transparent; text-align: center; }
  .account-tab.active { border-left-color: transparent; border-bottom-color: var(--green); }
  .account-login { margin-top: 1rem; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-stack { grid-template-columns: repeat(3, 1fr); }
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-featured { grid-template-columns: 1fr 1fr; }
  .featured-offer { grid-column: 1 / -1; }
  .gold-packs { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; justify-items: start; }
  .footer-status { justify-self: start; }
}

@media (max-width: 560px) {
  .hero-content { padding-top: 8rem; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 1rem; justify-content: space-between; }
  .hero-stats dt { font-size: 1.25rem; }
  .hero-stats dd { max-width: 80px; }
  .scroll-cue { display: none; }
  .server-grid { grid-template-columns: 1fr; }
  .server-note { grid-column: auto; }
  .faction { min-height: 350px; }
  .faction-symbol { font-size: 14rem; }
  .account-topbar, .inventory-toolbar, .shop-heading { align-items: flex-start; flex-direction: column; }
  .account-tabs { grid-template-columns: 1fr; }
  .account-tab { justify-content: flex-start; border-bottom: 0; border-left: 2px solid transparent; }
  .account-tab.active { border-left-color: var(--green); border-bottom-color: transparent; }
  .profile-card { grid-template-columns: 1fr; }
  .character-silhouette { min-height: 230px; }
  .overview-stack { grid-template-columns: 1fr; }
  .inventory-grid, .shop-featured { grid-template-columns: 1fr; }
  .featured-offer { grid-column: auto; }
  .inventory-filters { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: .3rem; }
  .inventory-filters button { white-space: nowrap; }
  .item-card { grid-template-columns: 64px 1fr; }
  .item-icon { height: 64px; }
  .gold-packs article { grid-template-columns: auto 1fr auto; }
  .gold-packs button { grid-column: 1 / -1; }
}

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