/* ============================================================
   The Dugout – Worldbreaker theme
   Cataclysm 4.3.4 private server. Molten ember palette on a
   unified #0a0604 ground. Re-skin only — all markup IDs/classes
   the panels depend on are untouched; colors flow from :root.
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Worldbreaker tokens (from approved mockup) */
  --molten:     #ff6a1a;
  --lava-red:   #d8281a;
  --lava-deep:  #c41e1e;
  --ember:      #ff8c2a;
  --white-hot:  #fff1c0;
  --gold-pale:  #e8c47a;
  --ash:        #3a322a;
  --charred:    #16110b;
  --obsidian:   #15110d;
  --ink:        #0a0604;
  --paper:      #f4e6cf;
  --line:       rgba(232,162,58,.16);
  --glass:      rgba(22,16,10,.62);
  --maxw:       1200px;

  /* Legacy variable names (kept so every inner page / armory /
     account / mod / custom-items panel recolors automatically) */
  --gold:         #e8a23a;
  --gold-light:   #f0c060;
  --gold-dark:    #9a5a16;
  --bg-darkest:   #0a0604;
  --bg-dark:      #0c0705;
  --bg-mid:       #0d0805;
  --bg-card:      #18110a;
  --bg-card2:     #1e150c;
  --border:       #2c1f12;
  --border-light: #4a3416;
  --text:         #cdb79c;
  --text-muted:   #b89a78;
  --text-bright:  #fbecd3;
  --blue-glow:    #d98a2a;
  --red:          #c83232;
  --green:        #3ab868;
  --nav-h:        68px;
  --radius:       8px;
  --radius-lg:    14px;
  --shadow:       0 4px 24px rgba(0,0,0,0.5);
  --shadow-gold:  0 0 24px rgba(255,106,26,0.22);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: 'Cinzel', 'Times New Roman', serif;
  color: var(--text-bright);
  line-height: 1.25;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

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

code {
  background: rgba(216,40,26,0.14);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: .88em;
  color: var(--white-hot);
}

ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; width: 100%; }

.gold { color: var(--gold); }
.cinzel { font-family: 'Cinzel', Georgia, serif; }
.mono   { font-family: 'Orbitron', monospace; }

/* ── Navigation (markup preserved, restyled) ───────────────── */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease, box-shadow .3s;
}
.main-nav.scrolled {
  background: rgba(10,7,5,0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 30px rgba(0,0,0,0.6);
}
/* keep inner pages legible even before scroll (no full-bleed hero behind nav) */
body.inner .main-nav {
  background: rgba(10,7,5,0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 38px; width: auto; }
.logo-text {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-pale);
  letter-spacing: .06em;
  white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  color: #cdb79c;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: color .2s, background .2s, text-shadow .2s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--gold-light); background: rgba(255,140,42,.10); text-shadow: 0 0 14px rgba(255,140,42,.4); }
.nav-links > li > a i.small { font-size: .6em; }

/* Dropdown */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 190px;
  background: #140d08;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  box-shadow: var(--shadow); z-index: 99;
}
.dropdown-menu li a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; color: var(--text); font-size: .85rem;
  border-radius: 5px; transition: background .15s, color .15s;
}
.dropdown-menu li a:hover { background: rgba(255,140,42,.12); color: var(--gold-light); }
.dropdown-menu li a i { width: 16px; text-align: center; }

/* Nav buttons */
.btn-nav {
  padding: 7px 16px; border-radius: var(--radius);
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--gold-pale) !important;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.btn-nav:hover { background: rgba(255,255,255,0.08); color: var(--white-hot) !important; }
.btn-nav-gold {
  background: linear-gradient(180deg, var(--ember), var(--lava-red));
  border-color: rgba(255,200,140,.45);
  color: #1a0a04 !important;
  box-shadow: 0 6px 20px rgba(216,40,26,.4);
}
.btn-nav-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(216,40,26,.55); color: #1a0a04 !important; }
.btn-nav-outline { border-color: var(--border-light); }

.nav-user .nav-username {
  font-size: .85rem; color: var(--gold-pale); font-weight: 600;
  padding: 7px 10px; display: flex; align-items: center; gap: 5px;
  text-decoration: none; border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.nav-user .nav-username:hover { background: rgba(255,140,42,0.12); color: var(--gold-light); }

.nav-toggle {
  display: none; background: none;
  border: 1px solid var(--line); color: var(--gold-pale);
  border-radius: var(--radius); padding: 7px 11px; font-size: 1.1rem; cursor: pointer;
}

.nav-spacer { height: var(--nav-h); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 10px;
  font-size: .95rem; font-weight: 700; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .25s, filter .2s, background .2s, border-color .2s;
  text-decoration: none; white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-full { width: 100%; justify-content: center; }

/* warm/gold (used site-wide on register, login, etc.) */
.btn-gold {
  background: linear-gradient(180deg, var(--ember), var(--lava-red));
  color: #1a0a04; border-color: rgba(255,210,150,.5);
  box-shadow: 0 10px 30px rgba(216,40,26,.4), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(216,40,26,.55); color: #1a0a04; }
.btn-outline {
  background: rgba(18,11,7,.5); color: var(--gold-pale);
  border-color: rgba(232,162,58,.4); backdrop-filter: blur(8px);
}
.btn-outline:hover { transform: translateY(-2px); border-color: var(--gold-light); color: var(--white-hot); }

/* mockup aliases used on the home page */
.btn-primary {
  background: linear-gradient(180deg, var(--ember), var(--lava-red));
  color: #1a0a04; border-color: rgba(255,210,150,.5);
  box-shadow: 0 10px 30px rgba(216,40,26,.46), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(216,40,26,.6); }
.btn-ghost {
  background: rgba(18,11,7,.5); color: var(--gold-pale);
  border: 1px solid rgba(232,162,58,.4); backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--gold-light); color: var(--white-hot); box-shadow: 0 12px 30px rgba(0,0,0,.5); }

/* ============================================================
   WORLDBREAKER HOME (index.php)
   ============================================================ */
/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; width: 100%;
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
  background: #0a0604;
}
.hero-art {
  position: absolute; inset: -4% -4% -4% -4%; z-index: 0;
  width: 108%; height: 108%;
  object-fit: cover; object-position: 62% 42%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 56%, transparent 99%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 56%, transparent 99%);
  will-change: transform;
  transform: scale(1.04);
  animation: kenburns 38s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0%   { transform: scale(1.045) translate(-1.4%,-0.8%); }
  100% { transform: scale(1.10) translate(1.6%,1.2%); }
}
.scrim-bottom { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, #0a0604 2%, rgba(10,6,4,.82) 18%, rgba(10,6,4,.32) 42%, rgba(10,6,4,0) 64%); }
.scrim-left { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(7,4,2,.92) 0%, rgba(7,4,2,.72) 24%, rgba(7,4,2,.3) 44%, rgba(7,4,2,0) 60%); }
.scrim-top { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7,4,2,.6) 0%, rgba(7,4,2,0) 22%); }
.vignette { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 220px 60px rgba(4,2,1,.85), inset 0 0 60px 10px rgba(4,2,1,.4);
  background: radial-gradient(120% 90% at 70% 38%, transparent 40%, rgba(4,2,1,.5) 100%); }
#emberCanvas { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .9; mix-blend-mode: screen; }

.hero-inner { position: relative; z-index: 5; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px 64px; }
.hero-copy { max-width: 640px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Orbitron', monospace; font-size: 11.5px; font-weight: 700;
  letter-spacing: .34em; text-transform: uppercase; color: var(--gold-pale);
  padding: 8px 15px; border: 1px solid rgba(232,162,58,.3); border-radius: 999px;
  background: rgba(20,12,7,.5); backdrop-filter: blur(6px); margin-bottom: 24px;
}
.kicker .spark { width: 6px; height: 6px; border-radius: 50%; background: var(--molten); box-shadow: 0 0 12px 2px var(--molten); }
h1.hero-h {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: clamp(46px,8.4vw,108px); line-height: .94; letter-spacing: .005em;
  text-transform: uppercase; margin: 0 0 8px; color: #fff4e2;
  text-shadow: 0 4px 40px rgba(0,0,0,.85), 0 1px 2px rgba(0,0,0,.9);
}
h1.hero-h .glow {
  display: block;
  background: linear-gradient(180deg, #ffd98a 0%, var(--ember) 46%, var(--lava-red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(255,106,26,.5));
}
.hero-sub { font-size: clamp(15px,1.7vw,19px); color: #e3d2b6; max-width: 520px; margin: 18px 0 30px; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.hero-sub b { color: var(--gold-light); font-weight: 600; }

.realmbar {
  display: flex; align-items: stretch; gap: 0; max-width: 480px;
  border: 1px solid rgba(232,162,58,.34); border-radius: 11px; overflow: hidden;
  background: rgba(10,6,4,.7); backdrop-filter: blur(8px);
  box-shadow: 0 12px 38px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.02); margin-bottom: 26px;
}
.realmbar .lbl { display: flex; align-items: center; padding: 0 14px; font-family: 'Orbitron', monospace;
  font-size: 10px; letter-spacing: .18em; color: var(--gold-pale); background: rgba(216,40,26,.14);
  border-right: 1px solid rgba(232,162,58,.2); text-transform: uppercase; white-space: nowrap; }
.realmbar code { flex: 1; display: flex; align-items: center; padding: 13px 16px; font-family: 'Orbitron', monospace;
  font-size: clamp(13px,1.6vw,15.5px); color: #fff1c0; letter-spacing: .02em; font-weight: 600; background: none; border: none; }
.realmbar button { border: none; cursor: pointer; padding: 0 18px; font-family: 'Orbitron', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #1a0a04;
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); transition: filter .2s; white-space: nowrap; }
.realmbar button:hover { filter: brightness(1.12); }
.realmbar button.copied { background: linear-gradient(180deg, #9be38a, #52b24a); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 26px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 11px; padding: 9px 16px; border-radius: 999px;
  background: rgba(8,5,3,.6); border: 1px solid rgba(120,210,120,.3); backdrop-filter: blur(8px);
  font-size: 13px; color: #d8e9c8; letter-spacing: .03em;
}
.status-pill.offline { border-color: rgba(216,40,26,.4); color: #e8c0b6; }
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #52e06a; box-shadow: 0 0 0 0 rgba(82,224,106,.6); animation: pulse 2.2s ease-out infinite; }
.status-pill.offline .dot { background: var(--lava-red); animation: none; }
.status-pill b { color: #bdf0b0; font-weight: 600; }
.status-pill.offline b { color: var(--gold-light); }
.status-pill .sep { width: 1px; height: 14px; background: rgba(232,162,58,.25); }
.status-pill .pop { color: var(--gold-pale); font-family: 'Orbitron', monospace; font-size: 11px; }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 5;
  font-family: 'Orbitron', monospace; font-size: 9.5px; letter-spacing: .32em; color: var(--text-muted); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .78; }
.scroll-cue .ln { width: 1px; height: 34px; background: linear-gradient(to bottom, var(--gold), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ── Section shell ─────────────────────────────────────────── */
section { position: relative; }
.sec-pad { padding: 96px 0; }
.eyebrow { font-family: 'Orbitron', monospace; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--molten); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--molten), transparent); }
.sec-title { font-family: 'Cinzel', serif; font-weight: 800; font-size: clamp(30px,4.4vw,50px); line-height: 1.02; color: #fbecd3; letter-spacing: .01em; }
.sec-title em { font-style: normal; color: var(--ember); }
.sec-lead { color: var(--text-muted); max-width: 580px; margin-top: 16px; font-size: 15.5px; }

/* legacy centered section title (kept for any inner page) */
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); text-align: center; margin-bottom: 50px; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: linear-gradient(to right, var(--gold-dark), var(--gold)); margin: 14px auto 0; border-radius: 2px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── Features ──────────────────────────────────────────────── */
.features-bg { background:
  radial-gradient(120% 80% at 82% 36%, rgba(120,28,12,.16), transparent 60%),
  linear-gradient(180deg, #0a0604, #0d0805 60%, #0a0604); }
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 48px; }
.feat {
  position: relative; padding: 30px 26px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(28,18,11,.72), rgba(14,9,6,.72));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 16px 40px rgba(0,0,0,.4);
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .3s;
}
.feat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent); opacity: .5; }
.feat:hover { transform: translateY(-6px); border-color: rgba(232,162,58,.4); box-shadow: 0 26px 54px rgba(0,0,0,.5), 0 0 32px rgba(255,106,26,.1); }
.feat .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 18px;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255,106,26,.22), rgba(216,40,26,.08));
  border: 1px solid rgba(232,162,58,.3); color: var(--gold-light); }
.feat h3 { font-family: 'Cinzel', serif; font-size: 19px; color: #fbecd3; margin-bottom: 9px; letter-spacing: .01em; }
.feat p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Connect (3 steps + portrait) ──────────────────────────── */
.connect-bg { background: linear-gradient(180deg, #0a0604, #0c0705); border-top: 1px solid var(--line); }
.connect-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 54px; align-items: center; margin-top: 36px; }
.portrait-card { position: relative; aspect-ratio: 720/1077; max-height: 560px; }
.portrait-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; filter: saturate(1.05) contrast(1.05);
  -webkit-mask-image: radial-gradient(118% 92% at 50% 40%, #000 42%, transparent 85%);
  mask-image: radial-gradient(118% 92% at 50% 40%, #000 42%, transparent 85%); }
.portrait-card .pglow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 78%, rgba(255,106,26,.22), transparent 70%), linear-gradient(to top, rgba(8,4,2,.7), transparent 40%); }
.portrait-card .ptag { position: absolute; left: 18px; bottom: 16px; font-family: 'Cinzel', serif; font-size: 14px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-pale); text-shadow: 0 2px 12px rgba(0,0,0,.9); }
.steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 18px; padding: 22px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(24,15,9,.6), rgba(12,8,5,.6)); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s; text-align: left; max-width: none; }
.step:hover { border-color: rgba(232,162,58,.36); transform: translateX(4px); box-shadow: none; }
.step .num { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  font-family: 'Cinzel', serif; font-weight: 900; font-size: 20px; color: #1a0a04;
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); box-shadow: 0 6px 18px rgba(216,40,26,.3); }
.step h4 { font-family: 'Cinzel', serif; font-size: 17px; color: #fbecd3; margin-bottom: 5px; }
.step p { font-size: 13.5px; color: var(--text-muted); }
.step code { font-family: 'Orbitron', monospace; font-size: 12.5px; color: #fff1c0; background: rgba(216,40,26,.16); padding: 2px 8px; border-radius: 5px; border: 1px solid rgba(232,162,58,.22); }

/* ── News ──────────────────────────────────────────────────── */
.news-bg { background: linear-gradient(180deg, #0c0705, #0a0604); border-top: 1px solid var(--line); }
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 44px; }
.news-card { display: flex; flex-direction: column; padding: 26px; border-radius: 15px;
  background: linear-gradient(180deg, rgba(24,15,9,.6), rgba(12,8,5,.55)); border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, box-shadow .3s; overflow: hidden; }
.news-card:hover { transform: translateY(-5px); border-color: rgba(232,162,58,.4); box-shadow: 0 22px 48px rgba(0,0,0,.45); }
.news-meta { display: flex; align-items: center; gap: 10px; font-family: 'Orbitron', monospace; font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--molten); margin-bottom: 14px; }
.news-meta .tag { padding: 3px 9px; border-radius: 5px; background: rgba(216,40,26,.16); border: 1px solid rgba(232,162,58,.2); color: var(--gold-pale); }
.news-meta time { color: var(--text-muted); }
.news-card h3 { font-family: 'Cinzel', serif; font-size: 20px; color: #fbecd3; line-height: 1.18; margin-bottom: 10px; }
.news-card p { font-size: 14px; color: var(--text-muted); flex: 1; margin-bottom: 16px; }
.news-card .more { font-family: 'Orbitron', monospace; font-size: 11px; letter-spacing: .1em; color: var(--gold-light); text-transform: uppercase; }
.news-card:hover .more { color: var(--ember); }

/* ── CTA strip ─────────────────────────────────────────────── */
.cta-strip { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: radial-gradient(90% 140% at 50% 130%, rgba(255,106,26,.3), transparent 60%), linear-gradient(180deg, #120a06, #1a0d07); }
.cta-strip .inner { text-align: center; padding: 84px 24px; }
.cta-strip h2 { font-family: 'Cinzel', serif; font-weight: 900; font-size: clamp(30px,5vw,58px); line-height: 1;
  text-transform: uppercase; color: #fff4e2; margin-bottom: 14px; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.cta-strip h2 .glow { background: linear-gradient(180deg, #ffd98a, var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-strip p { color: var(--gold-pale); max-width: 520px; margin: 0 auto 28px; font-size: 16px; }
.cta-strip .cta-row { justify-content: center; }

/* ============================================================
   INNER PAGES (preserved markup, recolored via :root)
   ============================================================ */
/* ── Page Hero (inner pages) ───────────────────────────────── */
.page-hero {
  background:
    linear-gradient(to bottom, rgba(10,6,4,0.72), rgba(10,6,4,0.96)),
    url('../img/background.jpg') center / cover no-repeat;
  padding: 90px 24px 60px;
  text-align: center;
}
.page-hero-sm { padding: 70px 24px 50px; }
.page-hero-content h1 { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--gold); margin-bottom: 10px; }
.page-hero-content p { color: var(--text-muted); font-size: 1rem; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-section { padding: 60px 0 80px; background: var(--bg-darkest); }
.form-container { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.form-container-sm { grid-template-columns: 1fr; max-width: 520px; }
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 38px 36px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: .85rem; font-weight: 700; color: var(--text-bright); margin-bottom: 7px; letter-spacing: .03em; }
.form-group label i { color: var(--gold); margin-right: 3px; }
.form-control {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-bright); font-size: .92rem; padding: 11px 14px;
  transition: border-color .2s, box-shadow .2s; font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255,140,42,0.15); background: rgba(255,255,255,0.07); }
.form-control::placeholder { color: var(--text-muted); }
.input-with-toggle { position: relative; }
.input-with-toggle .form-control { padding-right: 44px; }
.toggle-pw { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: .95rem; padding: 4px; transition: color .2s; }
.toggle-pw:hover { color: var(--gold); }
.field-hint { font-size: .78rem; color: var(--text-muted); margin-top: 5px; }
.password-strength { font-size: .78rem; margin-top: 5px; font-weight: 600; }
.pw-weak { color: var(--red); }
.pw-fair { color: #e8a030; }
.pw-good { color: #d8c040; }
.pw-strong { color: var(--green); }
.pw-very-strong { color: #60e8a0; }
.form-check-group { }
.form-check { display: flex; align-items: center; gap: 9px; font-size: .88rem; cursor: pointer; color: var(--text); }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
.form-footer { text-align: center; margin-top: 22px; font-size: .88rem; color: var(--text-muted); }
.form-side-info { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 26px; }
.form-side-info h3 { font-size: 1rem; color: var(--gold); margin-bottom: 16px; }
.form-side-info ul { display: flex; flex-direction: column; gap: 10px; }
.form-side-info li { display: flex; align-items: flex-start; gap: 8px; font-size: .86rem; color: var(--text); }
.form-side-info li i.gold { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.side-info-box { background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-top: 20px; font-size: .85rem; line-height: 1.8; color: var(--text-muted); }
.side-info-box strong { color: var(--gold); }

/* ── Alerts ────────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: .9rem; border: 1px solid; line-height: 1.6; }
.alert-success { background: rgba(58,184,104,0.12); border-color: var(--green); color: #8fe8ae; }
.alert-error { background: rgba(200,50,50,0.12); border-color: var(--red); color: #e88f8f; }
.alert-info { background: rgba(217,138,42,0.12); border-color: var(--blue-glow); color: #f0c887; }

/* ── Content pages ─────────────────────────────────────────── */
.content-section { padding: 60px 0 80px; background: var(--bg-darkest); }
.content-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 44px; max-width: 860px; margin: 0 auto; }
.content-card h2 { font-size: 1.4rem; color: var(--gold); margin: 28px 0 12px; }
.content-card h2:first-child { margin-top: 0; }
.content-card p { color: var(--text); margin-bottom: 14px; line-height: 1.75; }
.content-card ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.content-card li { color: var(--text); padding: 3px 0; }
.content-card strong { color: var(--text-bright); }

/* Status page */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 30px 0; }
.status-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.status-card .status-icon { font-size: 2rem; margin-bottom: 10px; }
.status-card h4 { font-size: .9rem; color: var(--text-muted); margin-bottom: 6px; }
.status-card .status-val { font-size: 1.5rem; font-family: 'Cinzel', serif; color: var(--text-bright); }
.status-card.online-card { border-color: var(--green); }
.status-card.online-card .status-icon { color: var(--green); }
.status-card.offline-card { border-color: var(--red); }
.status-card.offline-card .status-icon { color: var(--red); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--text-bright); transition: background .15s; gap: 12px; }
.faq-q:hover { background: rgba(255,255,255,0.04); }
.faq-q i { color: var(--gold); transition: transform .25s; font-size: .8rem; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .3s, padding .3s; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 20px 16px; }
.faq-a p { color: var(--text-muted); font-size: .88rem; }

/* Changelog */
.changelog-entry { background: var(--bg-card2); border: 1px solid var(--border); border-left: 3px solid var(--gold-dark); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 18px; }
.changelog-date { font-size: .78rem; color: var(--text-muted); margin-bottom: 6px; }
.changelog-entry h3 { font-size: 1rem; color: var(--gold); margin-bottom: 10px; }
.changelog-entry ul { list-style: disc; padding-left: 18px; }
.changelog-entry li { font-size: .87rem; color: var(--text); padding: 2px 0; }

/* Downloads table */
.dl-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.dl-table th { text-align: left; padding: 12px 16px; background: rgba(0,0,0,0.3); border-bottom: 1px solid var(--border); font-size: .82rem; color: var(--gold); letter-spacing: .04em; text-transform: uppercase; }
.dl-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: .88rem; }
.dl-table tr:last-child td { border-bottom: none; }
.dl-table tr:hover td { background: rgba(255,255,255,0.03); }

/* Connect page realmlist */
.realmlist-box { background: rgba(0,0,0,0.4); border: 1px solid var(--gold-dark); border-radius: var(--radius); padding: 18px 22px; font-family: 'Orbitron','Courier New', monospace; font-size: 1rem; color: var(--gold-light); margin: 16px 0; letter-spacing: .05em; user-select: all; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: #070402; border-top: 1px solid var(--line); padding: 60px 0 0; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo img { height: 34px; }
.footer-logo span { font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 700; color: var(--gold-pale); }
.footer-tagline { font-size: .85rem; color: var(--text-muted); margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 50%; color: var(--text-muted); font-size: 1rem; transition: background .2s, color .2s, border-color .2s; }
.footer-social a:hover { background: rgba(255,140,42,0.15); color: var(--gold-light); border-color: var(--gold-dark); }
.footer-col h4 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-pale); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a { font-size: .87rem; color: var(--text-muted); transition: color .2s; }
.footer-col li a:hover { color: var(--ember); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom p { font-size: .8rem; color: var(--text-muted); }
.disclaimer { font-size: .72rem !important; opacity: .65; }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(82,224,106,.55); } 70% { box-shadow: 0 0 0 9px rgba(82,224,106,0); } 100% { box-shadow: 0 0 0 0 rgba(82,224,106,0); } }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .connect-grid { grid-template-columns: 1fr; gap: 32px; }
  .portrait-card { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .feat-grid, .news-grid { grid-template-columns: 1fr; }
  .form-container { grid-template-columns: 1fr; }
  .form-side-info { order: -1; }
}
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,7,5,0.98); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 12px; gap: 2px; backdrop-filter: blur(12px);
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a { width: 100%; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: rgba(255,255,255,0.05); margin-left: 12px; display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .sec-pad { padding: 72px 0; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .form-card { padding: 26px 20px; }
  .content-card { padding: 26px 20px; }
}
@media (max-width: 560px) {
  .wrap, .hero-inner, .cta-strip .inner { padding-left: 18px; padding-right: 18px; }
  .hero-art { object-position: 74% 40%; }
  .scrim-left { background: linear-gradient(to top, rgba(7,4,2,.95) 8%, rgba(7,4,2,.7) 40%, rgba(7,4,2,.2) 75%, transparent); }
  .hero-inner { padding-bottom: 56px; }
  .realmbar { flex-wrap: wrap; }
  .realmbar .lbl { width: 100%; justify-content: center; padding: 8px; border-right: none; border-bottom: 1px solid rgba(232,162,58,.2); }
  .realmbar code { flex: 1 1 auto; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *{ animation: none !important; }
  .hero-art { transform: scale(1.02); object-position: 62% 42%; }
  .reveal { opacity: 1; transform: none; }
}
