/* ============================================================
   AfterMU — style.css
   Brand: night blue/purple depths, ember gold, blackletter vibe.
   Pure CSS, no frameworks, no CDN. 2026 glass-on-night look.
   ============================================================ */

:root {
  --gold:      #e8b34b;
  --gold-hi:   #f6d992;
  --gold-dim:  #8c6428;
  --night-0:   #05060f;
  --night-1:   #0a0c1d;
  --night-2:   #12142b;
  --glass:     rgba(255, 255, 255, 0.045);
  --glass-brd: rgba(232, 179, 75, 0.16);
  --text:      #e8e6f2;
  --text-dim:  #9a97b3;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-deco: "Old English Text MT", "UnifrakturCook", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--night-0);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--gold-hi); text-decoration: none; }
b { color: var(--gold-hi); }

.wrap { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem 3vw;
  background: rgba(5, 6, 15, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 179, 75, 0.12);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(5, 6, 15, 0.88); }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 48px; width: auto; }
.brand-name { font-family: var(--font-deco); font-size: 1.5rem; color: var(--gold); letter-spacing: 0.5px; }
.brand-name b { color: var(--gold-hi); }
.nav-links { display: flex; gap: 1.4rem; list-style: none; }
.nav-links a {
  color: var(--text-dim); font-size: 0.95rem; font-weight: 500;
  padding: 0.4rem 0.2rem; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--gold-hi); border-color: var(--gold); }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--glass-brd); color: var(--gold); font-size: 1.3rem; padding: 0.2rem 0.6rem; border-radius: 8px; cursor: pointer; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; padding: 0.65rem 1.5rem; border-radius: 12px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.3px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 55%, var(--gold-dim));
  color: #241a05;
  box-shadow: 0 4px 22px rgba(232, 179, 75, 0.35);
}
.btn-gold:hover { box-shadow: 0 6px 30px rgba(232, 179, 75, 0.55); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--gold-hi);
  border-color: var(--glass-brd);
}
.btn-ghost:hover { background: rgba(232, 179, 75, 0.08); }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; }
.btn.disabled { opacity: 0.55; pointer-events: none; }

/* ---------- HERO ---------- */.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(70, 58, 130, 0.20), transparent 60%),
    linear-gradient(180deg, var(--night-0), var(--night-1) 55%, var(--night-0));
}
/* Full-bleed art copy kept for reference: assets/hero_bg.jpg (poster mode
   uses the feathered logo_hero.png instead, so nothing is cropped). */
.hero-bg-poster { display: none; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,6,15,0.25), transparent 30%, transparent 70%, var(--night-0));
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  min-height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3.5rem 1rem 1rem;
}
.hero-logo { margin-bottom: 0; }
.hero-lockup {
  width: min(385px, 54vw); height: auto;
  margin-bottom: 0.55rem;
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 60px rgba(180, 190, 255, 0.10));
}
.hero-title {
  font-family: var(--font-deco);
  font-size: clamp(3rem, 9vw, 6.5rem);
  color: var(--gold);
  text-shadow: 0 0 40px rgba(232, 179, 75, 0.35), 0 4px 18px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
}
.hero-title span { color: var(--gold-hi); }
.hero-slogan {
  font-style: italic; color: var(--text-dim);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 4px; margin: 0.4rem 0 2.2rem; text-transform: uppercase;
}
/* Screen-reader-only helper (SEO/a11y without visual clutter) */
.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;
}
.hero-slogan { display: none; }
.hero-stats {
  display: flex; gap: 0; justify-content: center; align-items: stretch;
  background: rgba(5, 6, 15, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 179, 75, 0.18);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  padding: 0.75rem 1.4rem;
  margin: 0 auto 0.7rem; width: fit-content; max-width: 94vw;
}
.stat { display: flex; flex-direction: column; padding: 0 1.6rem; border-right: 1px solid rgba(232, 179, 75, 0.14); }
.stat:last-child { border-right: none; }
.stat b { font-size: 1.3rem; color: var(--gold-hi); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
.stat span { color: #cfccdf; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); }
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.8rem; }

.server-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-top: 0; padding: 0.45rem 1.1rem;
  background: rgba(10, 12, 29, 0.7); border: 1px solid var(--glass-brd);
  border-radius: 999px; font-size: 0.9rem; color: var(--text-dim);
  backdrop-filter: blur(8px);
}
.pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: #46d375; box-shadow: 0 0 0 rgba(70, 211, 117, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(70, 211, 117, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(70, 211, 117, 0); }
  100% { box-shadow: 0 0 0 0 rgba(70, 211, 117, 0); }
}
.scroll-hint {
  margin-top: 0.7rem;
  color: var(--gold-dim); font-size: 1.1rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(7px); } }

/* ---------- SECTIONS ---------- */
.section { padding: 5.5rem 0; position: relative; }
.section-alt {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(60, 50, 130, 0.14), transparent 55%),
    linear-gradient(180deg, var(--night-1), var(--night-2) 60%, var(--night-1));
}
.sec-title {
  text-align: center; font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-family: var(--font-deco); color: var(--gold);
  letter-spacing: 1px;
}
.divider { display: block; margin: 0.7rem auto 2.6rem; width: min(420px, 70%); }
.sec-sub { text-align: center; color: var(--text-dim); margin: -1.6rem 0 2.4rem; }

.grid { display: grid; gap: 1.3rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 18px;
  padding: 1.6rem;
  backdrop-filter: blur(8px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 179, 75, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(232, 179, 75, 0.07);
}
.card h3 { color: var(--gold-hi); margin-bottom: 0.5rem; font-size: 1.08rem; }
.card p { color: var(--text-dim); font-size: 0.95rem; }
.card-icon { font-size: 2rem; margin-bottom: 0.7rem; }

/* ---------- RATES ---------- */
.rates-table {
  max-width: 620px; margin: 0 auto;
  border: 1px solid var(--glass-brd); border-radius: 18px;
  overflow: hidden; background: var(--glass);
}
.rate-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 1.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.rate-row:last-child { border-bottom: none; }
.rate-row:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.rate-row span { color: var(--text-dim); }
.rate-row b { font-size: 1.05rem; }
.note { text-align: center; color: var(--text-dim); font-size: 0.85rem; margin-top: 1.4rem; }

/* ---------- VIP TIERS ---------- */
.tier { position: relative; text-align: center; }
.tier ul { list-style: none; margin: 1rem 0; }
.tier li { padding: 0.45rem 0; color: var(--text-dim); border-bottom: 1px dashed rgba(255, 255, 255, 0.08); font-size: 0.93rem; }
.tier li:last-child { border-bottom: none; }
.tier-price { font-size: 2rem; font-weight: 800; color: var(--gold-hi); margin: 0.4rem 0; }
.tier-hot { border-color: rgba(232, 179, 75, 0.55); box-shadow: 0 0 34px rgba(232, 179, 75, 0.12); }
.tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(160deg, var(--gold-hi), var(--gold));
  color: #241a05; font-size: 0.72rem; font-weight: 800; letter-spacing: 1px;
  padding: 0.22rem 0.9rem; border-radius: 999px; text-transform: uppercase; white-space: nowrap;
}
.tier-tag { color: var(--text-dim); font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- EVENTS ---------- */
.events-layout { display: grid; grid-template-columns: 1.1fr 2fr; gap: 1.3rem; align-items: start; }
.events-grid { gap: 1.3rem; }
.event-countdown { text-align: center; }
.event-next { color: var(--text-dim); margin: 0.4rem 0 1rem; }
.countdown { display: flex; justify-content: center; gap: 1.4rem; margin-bottom: 1rem; }
.countdown div { display: flex; flex-direction: column; }
.countdown b { font-size: 2.1rem; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }
.ev h3 { font-size: 1rem; }
.ev p { font-size: 0.88rem; }

/* ---------- RANKING ---------- */
.rank-tabs { display: flex; justify-content: center; gap: 0.6rem; margin-bottom: 1.6rem; }
.rtab {
  background: transparent; border: 1px solid var(--glass-brd); color: var(--text-dim);
  padding: 0.5rem 1.4rem; border-radius: 999px; cursor: pointer; font-size: 0.9rem; font-weight: 600;
  transition: all 0.2s;
}
.rtab.active { background: linear-gradient(160deg, var(--gold-hi), var(--gold)); color: #241a05; border-color: transparent; }
.rtab:not(.active):hover { color: var(--gold-hi); border-color: rgba(232, 179, 75, 0.4); }
.table-scroll {
  width: 100%; max-width: 860px; margin: 0 auto;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: 18px;
}
.rank-table {
  width: 100%; min-width: 560px; border-collapse: collapse;
  background: var(--glass); border-radius: 18px; overflow: hidden;
}
.rank-table thead { background: rgba(232, 179, 75, 0.1); }
.rank-table th, .rank-table td { padding: 0.8rem 1.2rem; text-align: left; font-size: 0.95rem; }
.rank-table th { color: var(--gold-hi); font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; }
.rank-table tbody tr { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.rank-table tbody tr:hover { background: rgba(232, 179, 75, 0.05); }
.rank-table td:first-child { color: var(--gold); font-weight: 800; width: 60px; }
.rank-1 td:first-child { color: #ffd700; }
.rank-2 td:first-child { color: #c0c0c8; }
.rank-3 td:first-child { color: #cd7f32; }

/* ---------- DOWNLOAD STEPS ---------- */
.step { text-align: center; position: relative; padding-top: 2.4rem; }
.step-num {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold));
  color: #241a05; font-weight: 900; font-size: 1.25rem;
  box-shadow: 0 6px 20px rgba(232, 179, 75, 0.4);
}
.step .btn { margin: 1rem 0 0.4rem; }
.step .note { margin-top: 0.6rem; }

/* ---------- REGISTER FORM ---------- */
.reg-form { display: flex; flex-direction: column; gap: 1.1rem; padding: 2rem; }
.reg-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; color: var(--text-dim); letter-spacing: 0.5px; }
.reg-form small { opacity: 0.7; }
.reg-form input {
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px; color: var(--text); padding: 0.75rem 1rem; font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.reg-form input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 179, 75, 0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.card-title { font-family: var(--font-deco); font-size: 1.15rem; color: var(--gold); letter-spacing: 0.5px; margin-bottom: 0.2rem; }
.auth-grid { display: grid; grid-template-columns: 1.1fr 0.9fr 1fr; gap: 1.4rem; }
.rules-card { display: flex; flex-direction: column; gap: 1.1rem; padding: 2rem; border-color: rgba(232, 179, 75, 0.28); }
.rules-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; margin: 0; padding: 0; }
.rules-list li { position: relative; padding-left: 1.4rem; color: var(--text-dim); font-size: 0.95rem; line-height: 1.45; }
.rules-list li::before { content: "\25C6"; position: absolute; left: 0; top: 0.1em; color: var(--gold); font-size: 0.72em; }
.rules-list b { color: var(--text); font-weight: 600; }
.rules-note { margin-top: auto; font-size: 0.8rem; opacity: 0.65; font-style: italic; }
.form-msg { text-align: center; font-size: 0.92rem; min-height: 1.3em; }
.form-msg.ok { color: #46d375; }
.form-msg.err { color: #ff7a7a; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid rgba(232, 179, 75, 0.14); background: var(--night-0); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer img { border-radius: 8px; }
.footer-slogan { color: var(--text-dim); font-style: italic; margin-top: 0.6rem; }
.footer h4 { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer ul { list-style: none; }
.footer li { margin: 0.45rem 0; }
.footer li a { color: var(--text-dim); transition: color 0.2s; }
.footer li a:hover { color: var(--gold-hi); }
.mono b { font-variant-numeric: tabular-nums; }
.footer-legal { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-legal p { color: var(--text-dim); font-size: 0.8rem; text-align: center; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
  .events-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: rgba(5, 6, 15, 0.96);
    padding: 1rem 3vw 1.4rem; gap: 0.4rem;
    border-bottom: 1px solid var(--glass-brd);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .grid-3, .grid-2, .form-row, .auth-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; row-gap: 0.9rem; padding: 0.9rem 1rem; }
  .stat { padding: 0 0.9rem; }
  .rank-table th, .rank-table td { padding: 0.7rem 0.8rem; font-size: 0.9rem; }
  .hero-logo img { width: min(320px, 72vw); }
  .countdown { gap: 0.9rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
