/* Marker North homepage (Nov 2026 redesign). Fonts are served from markernorth.com. */
@font-face { font-family: "MN Archivo"; src: url("/fonts/archivo-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "MN Archivo"; src: url("/fonts/archivo-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "MN Inter"; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MN Inter"; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "MN Inter"; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "MN Inter"; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
    --bg: #030912;
    --panel: #0a1422;
    --raised: #0f1c2e;
    --chip: #1b2a3e;
    --line: #1e3246;
    --line-strong: #2c4560;
    --text: #f4f7fb;
    --soft: #d5dee8;
    --muted: #b8c7d6;
    --faint: #9fb1c3;
    --gold: #ffbd19;
    --gold-hover: #ffd35c;
    --ink: #10141a;
    --blue: #3b8df0;
    --green: #55cc63;
    --display: "MN Archivo", "Arial Black", Arial, sans-serif;
    --body: "MN Inter", "Segoe UI", Arial, sans-serif;
    --wrap: 100%;
    --sticky: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--sticky); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55; }
img, video, svg { max-width: 100%; }
a { color: var(--gold); }
a:hover { color: var(--gold-hover); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: clamp(24px, 2.6vw, 56px); padding-right: clamp(24px, 2.6vw, 56px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Sticky top: spotlight strip + header ---- */
.top { position: sticky; top: 0; z-index: 50; }
.strip { background: var(--gold); color: var(--ink); }
.strip[hidden] { display: none; }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding-top: 9px; padding-bottom: 9px; font-size: 15px; text-align: center; }
.strip-tag { font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--gold); padding: 3px 8px; border-radius: 4px; }
.strip strong { font-weight: 700; }
.strip a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.header { border-bottom: 1px solid var(--line); background: rgba(3, 9, 18, .94); backdrop-filter: blur(10px); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand img { height: 26px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 420px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--text); text-decoration: none; padding: 4px 0; }
.nav a:hover { color: var(--gold); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; border-radius: 12px; padding: 14px 22px; font-size: 17px; line-height: 1.2; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); color: var(--ink); }
.btn-line { color: var(--text); border: 1px solid var(--line-strong); font-weight: 600; }
.btn-line:hover { color: var(--text); border-color: var(--gold); }
.btn-sm { padding: 9px 16px; font-size: 15px; border-radius: 10px; }
@media (max-width: 760px) {
    .header-inner { gap: 8px 16px; padding-top: 10px; padding-bottom: 8px; }
    .brand img { height: 19px; }
    .header-actions { gap: 8px; }
    .header-actions .btn-sm { padding: 8px 12px; font-size: 14px; }
    .wrap { padding-left: 16px; padding-right: 16px; }
    .nav { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; font-size: 14px; scrollbar-width: none; }
    .nav::-webkit-scrollbar { display: none; }
    .nav a { white-space: nowrap; }
    .header-actions { margin-left: auto; }
    .strip-inner { font-size: 14px; padding-top: 7px; padding-bottom: 7px; }
    #spotlight-strip-copy { display: none; }
}

/* ---- Hero ---- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 40px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; flex: 0 0 auto; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 4.6vw, 80px); line-height: 1.02; letter-spacing: -.02em; }
.gold { color: var(--gold); }
.hero-tag { margin: 0; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.3; }
.hero-lead { margin: 0; font-size: clamp(17px, 1.2vw, 20px); color: var(--muted); max-width: 640px; }
.get { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.get-pc { align-self: flex-start; padding: 12px 22px; border-radius: 14px; box-shadow: 0 10px 30px rgba(255, 189, 25, .18); }
.get-pc span { display: flex; flex-direction: column; line-height: 1.15; }
.get-pc small { font-size: 12px; font-weight: 600; }
.get-pc b { font-family: var(--display); font-size: 20px; font-weight: 800; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.badges a { display: block; border-radius: 8px; }
.badges img { height: 44px; width: auto; display: block; }
.get-note { margin: 0; font-size: 14px; color: var(--faint); }
.get-note a { color: var(--text); font-weight: 600; }
.hero-media { flex: 1.15 1 560px; min-width: 0; position: relative; }
.hero-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 189, 25, .06); background: var(--panel); }
.hero-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shadow-card { position: absolute; right: -18px; bottom: -34px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); max-width: 300px; font-size: 14px; line-height: 1.35; }
.shadow-card strong { display: block; }
.shadow-card span { color: var(--muted); }
.icon-chip { width: 40px; height: 40px; border-radius: 10px; background: var(--chip); color: var(--gold); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
@media (max-width: 700px) {
    .hero { padding-top: 40px; gap: 40px; }
    .shadow-card { left: 8px; right: 8px; bottom: -44px; max-width: none; }
}

/* ---- Live stats strip ---- */
.stats { margin-top: 36px; }
.stats[hidden] { display: none; }
.stats-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 14px; color: var(--faint); }
.stats-head .online { display: flex; align-items: center; gap: 8px; }
.stats-grid { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); overflow: hidden; }
.stat { padding: 18px 22px; display: flex; flex-direction: column; gap: 2px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.stat b { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.2; }
.stat span, .stat a { font-size: 14px; color: var(--faint); }
.stat a { color: var(--gold); }
.stat-small b { font-size: 22px; }
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat { padding: 14px 16px; }
    .stat b { font-size: 22px; }
    .stat-small b { font-size: 18px; }
    .stat-wide { grid-column: 1 / -1; }
}

/* ---- Sections ---- */
.section { padding-top: 100px; }
.kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4vw, 44px); line-height: 1.08; letter-spacing: -.01em; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; max-width: 760px; }
.lead { margin: 0; font-size: 17px; color: var(--muted); }

/* ---- How your map is built ---- */
.build { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.build-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.legend { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.legend div { display: flex; align-items: center; gap: 12px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; }
.legend div.mine { border-color: var(--gold); }
.legend i { width: 14px; height: 14px; border-radius: 4px; flex: 0 0 auto; }
.legend p { margin: 0; display: flex; flex-direction: column; line-height: 1.3; }
.legend strong { font-size: 15px; }
.legend span { font-size: 13px; color: var(--faint); }
.stage { flex: 1.15 1 520px; min-width: 0; height: 520px; position: relative; overflow: hidden; border-radius: 20px; background: #06101c; border: 1px solid var(--line); }
.stage-anchor { position: absolute; left: 50%; top: 58%; width: 0; height: 0; }
.layer { position: absolute; left: -200px; top: -110px; width: 400px; height: 300px; }
.layer-tilt { width: 400px; height: 300px; transform: rotateX(58deg) rotateZ(-40deg); }
.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
.sectors > div { border: 1px solid transparent; }
.layer-base .sectors { border: 1px solid var(--line-strong); background: #0a1626; box-shadow: 0 40px 60px rgba(0, 0, 0, .55); }
.layer-base .sectors > div { border: 1px dashed var(--line); }
.layer-base path.major { stroke: #5f7894; stroke-width: 2.2; }
.layer-base path.minor { stroke: #33485f; stroke-width: 1.4; }
.layer-mods .sectors > div.on { border: 1px solid var(--blue); background: rgba(59, 141, 240, .16); }
.layer-mods path.major { stroke: var(--blue); stroke-width: 2.6; }
.layer-mods path.minor { stroke: #2a6bc0; stroke-width: 1.6; }
.sectors path { fill: none; stroke-linecap: round; }
.layer-mine .layer-tilt { border: 2px solid var(--gold); background: rgba(255, 189, 25, .06); position: relative; }
.layer-mine svg { position: absolute; left: 0; top: 0; width: 400px; height: 300px; }
.mine-glow { position: absolute; inset: 0; box-shadow: 0 0 60px rgba(255, 189, 25, .35); }
.stage-note { position: absolute; left: 18px; bottom: 16px; font-size: 13px; color: var(--faint); }
@keyframes mnDropMods { 0%, 8% { transform: translateY(-150px); opacity: 0; } 30%, 82% { transform: translateY(-26px); opacity: 1; } 100% { transform: translateY(-150px); opacity: 0; } }
@keyframes mnDropMine { 0%, 30% { transform: translateY(-260px); opacity: 0; } 52%, 82% { transform: translateY(-52px); opacity: 1; } 100% { transform: translateY(-260px); opacity: 0; } }
@keyframes mnGlow { 0%, 50% { opacity: 0; } 60%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mnRoute { 0%, 55% { stroke-dashoffset: 900; } 75%, 100% { stroke-dashoffset: 0; } }
.layer-mods { animation: mnDropMods 9s cubic-bezier(.2, .8, .2, 1) infinite; }
.layer-mine { animation: mnDropMine 9s cubic-bezier(.2, .8, .2, 1) infinite; }
.mine-glow { animation: mnGlow 9s ease-in-out infinite; }
.route { stroke-dasharray: 900; animation: mnRoute 9s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
    .layer-mods, .layer-mine, .mine-glow, .route { animation: none; }
    .layer-mods { transform: translateY(-26px); }
    .layer-mine { transform: translateY(-52px); }
}
@media (max-width: 560px) {
    .stage { height: 360px; }
    .stage-anchor { transform: scale(.72); transform-origin: 0 0; }
}

/* ---- Cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(300px, calc((100% - 32px) / 3)), 1fr)); gap: 16px; }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; font-size: 18px; font-weight: 700; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card .icon { width: 42px; height: 42px; border-radius: 11px; background: var(--chip); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.more-link { margin: 22px 0 0; font-weight: 700; }

/* ---- Free & Pro ---- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan-pro { background: var(--raised); border: 2px solid var(--gold); }
.plan h3 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 800; }
.plan-pro h3 { color: var(--gold); }
.plan > p { margin: 0; color: var(--muted); font-size: 15px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--soft); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "\2713"; font-weight: 800; color: var(--green); }
.plan-pro li::before { color: var(--gold); }
.plan .btn { align-self: flex-start; margin-top: 6px; padding: 12px 18px; border-radius: 10px; font-size: 16px; }

/* ---- Community ---- */
.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.sponsor { text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid #5c4a14; border-radius: 18px; padding: 24px; display: flex; gap: 20px; align-items: center; transition: opacity .35s ease; }
.sponsor:hover { color: var(--text); border-color: var(--gold); }
.sponsor.is-fading { opacity: 0; }
.sponsor img { width: 104px; height: 104px; border-radius: 50%; border: 2px solid var(--gold); flex: 0 0 auto; display: block; object-fit: cover; background: var(--chip); }
.sponsor-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tagline { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.sponsor-title, .latest-title { font-family: var(--display); font-size: 24px; font-weight: 800; }
.sponsor-copy { color: var(--muted); font-size: 15px; }
.sponsor-cta { color: var(--gold); font-weight: 700; font-size: 15px; }
.sponsor-wrap { display: flex; flex-direction: column; gap: 10px; }
.sponsor-dots { display: flex; gap: 8px; padding-left: 6px; }
.sponsor-dots[hidden] { display: none; }
.sponsor-dots button { width: 28px; height: 28px; border: 0; padding: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sponsor-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.sponsor-dots button[aria-current="true"]::before { background: var(--gold); }
.latest { background: #15140c; border: 1px solid #5c4a14; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.latest[hidden] { display: none; }
.latest-copy { margin: 0; color: var(--soft); font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.community-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }
.community-links .btn { font-size: 16px; padding: 12px 18px; }

/* ---- Updates ---- */
.updates-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.update-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.update-top strong { font-family: var(--display); font-size: 20px; font-weight: 800; }
.update-top time { font-size: 13px; color: var(--faint); }

/* ---- FAQ ---- */
.faq { max-width: 1040px; }
.faq .h2 { text-align: center; margin-bottom: 24px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: 1; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---- Closing + footer ---- */
.closing { padding-top: 100px; padding-bottom: 110px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.closing h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(36px, 4.6vw, 52px); line-height: 1.05; }
.closing p { margin: 0; font-size: 18px; color: var(--muted); max-width: 560px; }
.closing .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--faint); }
.footer img { height: 20px; width: auto; display: block; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer nav a { color: var(--faint); text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.footer nav a.creator { color: var(--gold); font-weight: 600; }
.motto { margin: 0; padding-top: 34px; padding-bottom: 6px; font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.footer-legal { padding-bottom: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 40px; font-size: 13px; color: var(--faint); }
.footer-legal p { margin: 0; }
.footer-legal strong { color: var(--soft); }

/* Game switch (game-switch.js) inside the stats strip */
.stats-head .mn-game-switch { margin-left: auto; }
