/* MNGameHub portal. Same palette as the desktop client. */
:root {
  color-scheme: dark;
  --bg: #0f1013;
  --bg-2: #15171b;
  --panel: #1b1d22;
  --panel-2: #23262d;
  --line: #2f333b;
  --line-soft: rgba(255, 255, 255, .06);
  --text: #ecebe7;
  --dim: #b4b7bf;
  --muted: #8a8e97;
  --gold: #d4a63a;
  --gold-hi: #e9be55;
  --gold-ink: #17181b;
  --sentinel: #5fbf6a;
  --scourge: #d9574f;
  --info: #6ea8fe;
  --warn: #e0b040;
  --radius: 14px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .55);
  --max: 1180px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Noto Sans", Roboto, Ubuntu, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f5d27c; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

/* ---------- Announcement ---------- */
.announce {
  background: linear-gradient(90deg, #3a2d0f, #4a3a12 50%, #3a2d0f);
  border-bottom: 1px solid rgba(212, 166, 58, .45);
  color: #f4e3b5;
  font-size: 14.5px;
  text-align: center;
  padding: 9px 16px;
}

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 16, 19, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: .01em; }
.brand img { width: 34px; height: 34px; }
.brand span b { color: var(--gold); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--dim); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--line-soft); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  background: transparent; color: var(--dim); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 10px; font: 600 13px var(--font); cursor: pointer;
}
.lang:hover { color: var(--text); border-color: #454a55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 10px; padding: 12px 20px; font: 600 15.5px/1.2 var(--font);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 30px rgba(212, 166, 58, .25); }
.btn-gold:hover { background: var(--gold-hi); color: var(--gold-ink); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: var(--text); border-color: #454a55; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn small { font-weight: 500; opacity: .8; font-size: 13px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2;
  background:
    radial-gradient(700px 420px at 18% 30%, rgba(95, 191, 106, .10), transparent 70%),
    radial-gradient(760px 460px at 85% 10%, rgba(217, 87, 79, .12), transparent 70%),
    radial-gradient(900px 520px at 60% 70%, rgba(212, 166, 58, .10), transparent 70%);
}
.hero-map { position: absolute; z-index: -1; right: -120px; top: -60px; width: 720px; opacity: .07; pointer-events: none; }
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.embers i {
  position: absolute; bottom: -20px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold-hi); box-shadow: 0 0 10px 2px rgba(233, 190, 85, .6);
  opacity: 0; animation: rise 12s linear infinite;
}
.embers i:nth-child(1) { left: 8%; animation-delay: -1s; animation-duration: 13s; }
.embers i:nth-child(2) { left: 21%; animation-delay: -6s; animation-duration: 11s; }
.embers i:nth-child(3) { left: 37%; animation-delay: -3s; animation-duration: 15s; }
.embers i:nth-child(4) { left: 52%; animation-delay: -9s; animation-duration: 12s; }
.embers i:nth-child(5) { left: 66%; animation-delay: -4s; animation-duration: 14s; }
.embers i:nth-child(6) { left: 79%; animation-delay: -7s; animation-duration: 10s; }
.embers i:nth-child(7) { left: 91%; animation-delay: -2s; animation-duration: 16s; }
@keyframes rise {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  12% { opacity: .9; }
  70% { opacity: .5; }
  100% { transform: translate(40px, -760px) scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .embers { display: none; } }

.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--gold-hi);
  font-weight: 600; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(212, 166, 58, .08); border: 1px solid rgba(212, 166, 58, .25);
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 800; margin: 22px 0 18px; }
.hero h1 span { display: block; }
.hero h1 span + span {
  font-size: .62em; font-weight: 750; margin-top: .3em;
  background: linear-gradient(92deg, var(--gold-hi), #f3d48a 45%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--dim); font-size: 18.5px; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.cta-note { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 540px; }
.cta-note b { color: var(--dim); font-weight: 600; }

.shot {
  position: relative; border-radius: 16px; padding: 10px;
  background: linear-gradient(160deg, rgba(212, 166, 58, .35), rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .02) 70%, rgba(212, 166, 58, .2));
  box-shadow: var(--shadow);
}
.shot img { border-radius: 9px; width: 100%; height: auto; }
.shot-tag {
  position: absolute; left: -18px; bottom: 26px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; font-size: 13.5px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  display: flex; align-items: center; gap: 10px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sentinel); box-shadow: 0 0 0 3px rgba(95, 191, 106, .18); flex: none; }
.dot.off { background: var(--muted); box-shadow: none; }

/* ---------- Live stats ---------- */
.stats {
  margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { padding: 18px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 30px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13.5px; }
.stats-note { color: var(--muted); font-size: 12.5px; margin-top: 8px; display: flex; align-items: center; gap: 8px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.head { max-width: 680px; margin-bottom: 40px; }
.head .kicker { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 10px; }
.head p { color: var(--dim); margin-top: 12px; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: #3c414b; transform: translateY(-2px); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(212, 166, 58, .1); border: 1px solid rgba(212, 166, 58, .25); color: var(--gold-hi); margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--dim); font-size: 15px; }

.showcase { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--dim); }
.ticks li b { color: var(--text); display: block; font-weight: 600; }
.ticks svg { width: 20px; height: 20px; color: var(--sentinel); margin-top: 3px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 16px;
  background: var(--gold); color: var(--gold-ink); font-weight: 800;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--dim); font-size: 14.5px; }

/* ---------- Status (honest limits) ---------- */
.status { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.status .card ul { margin: 12px 0 0; padding-left: 20px; color: var(--dim); display: grid; gap: 8px; font-size: 15px; }
.status .ok h3 { color: var(--sentinel); }
.status .heads-up h3 { color: var(--warn); }

/* ---------- Downloads ---------- */
.dl-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dl-recommend { color: var(--dim); font-size: 15px; }
.dl-recommend b { color: var(--text); }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.dl {
  min-width: 0; /* the long SHA-256 must not widen the card */
  display: flex; flex-direction: column; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.dl.recommended { border-color: rgba(212, 166, 58, .6); box-shadow: 0 0 0 1px rgba(212, 166, 58, .25), 0 20px 50px rgba(0, 0, 0, .35); }
.dl-head { display: flex; align-items: flex-start; gap: 14px; }
.os { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); flex: none; }
.os svg { width: 22px; height: 22px; color: var(--text); }
.dl-head h3 { font-size: 17.5px; }
.badge { display: inline-block; margin-top: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
.badge.gold { color: var(--gold-hi); border-color: rgba(212, 166, 58, .5); background: rgba(212, 166, 58, .08); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.meta b { color: var(--text); font-weight: 600; }
.req { color: var(--dim); font-size: 14.5px; }
.sha { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.sha code { font-family: var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; color: var(--dim); }
.copy { background: none; border: 1px solid var(--line); color: var(--dim); border-radius: 6px; padding: 3px 8px; font: 600 12px var(--font); cursor: pointer; flex: none; }
.copy:hover { color: var(--text); border-color: #454a55; }
details.more { border-top: 1px solid var(--line); padding-top: 10px; }
details.more summary { cursor: pointer; color: var(--dim); font-size: 14.5px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line); font-size: 13px; }
details.more[open] summary::before { content: "\2212"; }
details.more ol, details.more .notes { margin: 10px 0 0; color: var(--dim); font-size: 14.5px; }
details.more ol { padding-left: 20px; display: grid; gap: 6px; }
.notes { white-space: pre-line; }
.dl .btn { margin-top: auto; }
.soon { color: var(--muted); font-size: 14px; }
.dl-empty, .dl-error { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); }
.callout {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px; margin-top: 18px;
  background: rgba(110, 168, 254, .06); border: 1px solid rgba(110, 168, 254, .3); border-radius: var(--radius); padding: 16px 18px;
  color: var(--dim); font-size: 14.5px;
}
.callout svg { width: 22px; height: 22px; color: var(--info); margin-top: 1px; }
.callout b { color: var(--text); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--dim); padding-bottom: 16px; }

/* ---------- Closing band ---------- */
.band {
  position: relative; overflow: hidden; border-radius: 20px; padding: 48px;
  background: radial-gradient(600px 300px at 15% 0%, rgba(95, 191, 106, .14), transparent 70%),
              radial-gradient(600px 300px at 90% 100%, rgba(217, 87, 79, .16), transparent 70%), var(--panel);
  border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.band h2 { font-size: clamp(26px, 3vw, 36px); }
.band p { color: var(--dim); margin-top: 8px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line-soft); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; justify-content: space-between; }
.footer-info { flex: 1 1 560px; max-width: 760px; min-width: 0; }
.footer-copyright { margin-bottom: 12px; color: var(--text); font-weight: 600; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 18px; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); }
.legal { font-size: 13px; line-height: 1.8; }
.legal + .legal { margin-top: 6px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; font-size: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .showcase { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .shot-tag { left: 12px; }
}
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero-map { display: none; }
  .features, .steps, .status { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .downloads { grid-template-columns: minmax(0, 1fr); }
  .band { padding: 28px; }
  .top .btn-gold { display: none; }
  .lead { font-size: 17px; }
}
