/* CYD-16: the new look for the pages that keep their hand-written content and scripts (Battle Pass, Voice, Posts, 404).
   Loaded after home.css / site.css. It retunes their colour variables to the new palette and styles the shared header and
   footer (same markup and look as the Next pages). */
:root {
  --bg: #0f0c0a;
  --surface: #17120e;
  --surface-2: #201913;
  --border: #2b221a;
  --border-strong: #3d3126;
  --text: #f6f2ec;
  --text-muted: #b9ada0;
  --text-faint: #85796b;
  --cyan: #ff8a3d;
  --blue: #f6b04a;
  --amber: #f59e0b;
  --ember: #ff8a3d;
  --hub: #22d3ee;
}
body {
  background: radial-gradient(60rem 32rem at 75% -10%, rgba(255, 138, 61, 0.14), transparent 70%), var(--bg) !important;
  color: var(--text);
}
a { color: inherit; }
.btn-primary { color: #1a0d03 !important; background: var(--ember) !important; }

/* ---- header ---- */
.nx-header { position: sticky; top: 0; z-index: 40; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.nx-inner { max-width: 80rem; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 16px; }
@media (min-width: 640px) { .nx-inner { padding: 0 24px; } }
.nx-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nx-brand img { width: 32px; height: 32px; border-radius: 999px; }
.nx-brand b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: 0.04em; color: #fff; line-height: 1.1; }
.nx-brand small { display: block; font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.nx-nav { display: none; margin-left: 24px; gap: 4px; }
.nx-nav a { padding: 8px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.65); text-decoration: none; }
.nx-nav a:hover, .nx-nav a.active { color: #fff; }
.nx-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nx-tools .lang { display: none; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 6px; padding: 2px; overflow: visible; }
.nx-tools .lang-btn { border: 0 !important; border-radius: 4px; padding: 4px 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); background: transparent; }
.nx-tools .lang-btn[aria-pressed="true"] { background: rgba(255, 255, 255, 0.15); color: #fff; }
.nx-dl { display: none; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; background: var(--ember); color: #1a0d03 !important; font-size: 14px; font-weight: 800; text-decoration: none; }
.nx-dl:hover { background: #ff9d5c; }
.nx-dl svg, .nx-burger svg { width: 16px; height: 16px; }
.nx-burger { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.nx-burger svg { width: 20px; height: 20px; }
.nx-mobile { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 8px 16px 16px; display: flex; flex-direction: column; background: #0e0c0a; }
.nx-mobile[hidden] { display: none; }
.nx-mobile a { padding: 10px 8px; font-weight: 600; color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.nx-mobile .nx-row { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.nx-mobile .lang, .nx-mobile .nx-dl { display: flex; }
@media (min-width: 640px) { .nx-tools .lang, .nx-tools .nx-dl { display: flex; } }
@media (min-width: 1024px) { .nx-nav { display: flex; } .nx-burger { display: none; } .nx-mobile { display: none !important; } }

/* ---- page head: the page's art behind the first block, fading into the page ---- */
body[data-page] main { position: relative; isolation: isolate; }
body[data-page] main::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 560px; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(15, 12, 10, 0) 40%, var(--bg) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.1)),
    var(--page-art) center right / cover no-repeat;
}
body[data-page="battle-pass"] { --page-art: url("/img/feature-battle-pass.webp?v=3"); }
body[data-page="voice"] { --page-art: url("/img/feature-team.webp?v=3"); }
body[data-page="posts"] { --page-art: url("/img/hero-wide-1600.webp?v=3"); }
body[data-page="post"] { --page-art: url("/img/feature-hub.webp?v=3"); }
body[data-page="404"] { --page-art: url("/img/hero-wide-1600.webp?v=3"); }
section.first { padding-top: 88px !important; }
.posts-head { padding-top: 88px !important; text-align: left !important; max-width: 80rem; margin: 0 auto; padding-inline: 24px !important; }
.post { padding-top: 72px !important; }
.kicker, .eyebrow { color: var(--ember) !important; }
h1 { letter-spacing: 0.02em; }

/* ---- footer ---- */
.nx-footer { border-top: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.6); margin-top: 48px; text-align: left; }
.nx-foot { max-width: 80rem; margin: 0 auto; display: grid; gap: 40px; padding: 56px 24px; }
@media (min-width: 768px) { .nx-foot { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.nx-foot .nx-brand b { font-size: 20px; }
.nx-foot p { margin: 12px 0 0; max-width: 20rem; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.nx-foot h4 { margin: 0; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.nx-foot ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.nx-foot ul a { font-size: 14px; color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.nx-foot ul a:hover { color: #fff; }
.nx-copy { border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 20px 16px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.4); }

/* Short pages (Voice, 404): keep the header art inside main, never over the footer. */
body[data-page] main { min-height: 600px; }
.nx-footer { position: relative; z-index: 1; }
