/* Trade Empires — public marketing site (wwwroot/index.html, wwwroot/help.html).
   Deliberately separate from /shared/style.css (the in-game HUD stylesheet) — the game's
   own screens stay a lean cyan-on-navy terminal, while the site in front of it gets to be a
   cinematic poster: the splash art's gold/ember palette leads, cyan only rides along as the
   "this connects to the game" accent. Same Orbitron/Rajdhani pairing as the game itself, so
   the jump from this site into the actual HUD never feels like a different product. */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800;900&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --mk-bg: #05070b;
  --mk-bg-soft: #0a0f18;
  --mk-surface: #0d1420;
  --mk-border: rgba(240, 178, 84, 0.22);
  --mk-border-soft: rgba(231, 236, 245, 0.1);
  --mk-text: #e9edf5;
  --mk-text-dim: #9aa5c0;
  --mk-gold: #f0b254;
  --mk-gold-bright: #ffd48a;
  --mk-ember: #ff7a3d;
  --mk-cyan: #3fc7ff;
  --mk-font-display: 'Orbitron', sans-serif;
  --mk-font-body: 'Rajdhani', -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mk-bg);
  color: var(--mk-text);
  font-family: var(--mk-font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--mk-cyan); text-decoration: none; }

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

h1, h2, h3, h4 { font-family: var(--mk-font-display); letter-spacing: 0.02em; margin: 0; color: var(--mk-text); }

.eyebrow {
  font-family: var(--mk-font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--mk-gold); margin-bottom: 10px; display: block;
}

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; text-wrap: balance; }
.section-head p { color: var(--mk-text-dim); margin-top: 12px; font-size: 16px; line-height: 1.6; }

section { position: relative; padding: 92px 0; }
section.tight { padding: 64px 0; }

/* A faint, fixed starfield wash behind the whole page — same trick the game's own body::before
   uses, recolored gold/ember instead of pure cyan/amber so the site reads as this brand's own
   sky, not a reused HUD background. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 750px at 12% -8%, rgba(240, 178, 84, 0.10), transparent 60%),
    radial-gradient(950px 700px at 108% 8%, rgba(63, 199, 255, 0.08), transparent 55%),
    radial-gradient(1.5px 1.5px at 18% 24%, rgba(231, 236, 245, 0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 58%, rgba(231, 236, 245, 0.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 76%, rgba(231, 236, 245, 0.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 20%, rgba(231, 236, 245, 0.25) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 10%, rgba(231, 236, 245, 0.25) 50%, transparent 51%),
    var(--mk-bg);
}

/* ---------------------------------------------------------------- nav -----*/
.mk-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; background: linear-gradient(180deg, rgba(5,7,11,0.92), rgba(5,7,11,0.55) 80%, transparent);
  backdrop-filter: blur(6px);
}
.mk-nav-inner { width: min(1140px, 92%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.mk-brand { display: flex; align-items: center; gap: 10px; }
.mk-brand img { height: 34px; width: auto; filter: drop-shadow(0 0 10px rgba(240,178,84,0.35)); }
.mk-brand span {
  font-family: var(--mk-font-display); font-weight: 800; font-size: 15px; letter-spacing: 0.06em;
  color: var(--mk-text); text-transform: uppercase;
}
.mk-brand span b { color: var(--mk-gold); }
.mk-links { display: flex; align-items: center; gap: 28px; }
.mk-links a.navlink {
  font-family: var(--mk-font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mk-text-dim); transition: color 0.15s;
}
.mk-links a.navlink:hover, .mk-links a.navlink.active { color: var(--mk-gold-bright); }
.mk-navtoggle { display: none; background: none; border: none; color: var(--mk-text); font-size: 22px; cursor: pointer; }

@media (max-width: 760px) {
  .mk-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(260px, 78vw);
    background: #06090f; border-left: 1px solid var(--mk-border-soft); flex-direction: column;
    align-items: flex-start; justify-content: flex-start; padding: 84px 26px 26px; gap: 22px;
    transform: translateX(100%); transition: transform 0.25s ease; }
  .mk-links.open { transform: translateX(0); }
  .mk-navtoggle { display: block; }
}

/* ---------------------------------------------------------------- buttons -----*/
.mk-btn {
  font-family: var(--mk-font-display); font-size: 13px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: #1a0f00; padding: 15px 30px; border-radius: 3px; border: none;
  cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(160deg, #ffdb9c, var(--mk-gold) 55%, #d4842a);
  box-shadow: 0 0 0 1px rgba(240,178,84,0.45), 0 6px 24px rgba(240,178,84,0.28);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: filter 0.15s, transform 0.15s;
}
.mk-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.mk-btn:active { transform: translateY(0); }
.mk-btn.ghost {
  background: rgba(231,236,245,0.05); color: var(--mk-text);
  box-shadow: 0 0 0 1px var(--mk-border-soft);
}
.mk-btn.ghost:hover { box-shadow: 0 0 0 1px rgba(231,236,245,0.35); }
.mk-btn.small { padding: 11px 20px; font-size: 11px; }
.mk-nav .mk-btn { padding: 10px 18px; font-size: 11px; }

/* ---------------------------------------------------------------- modal -----*/
/* "Host a Galaxy" gate — a Gig Game subscription is required, so this interrupts the click
   with an explanation before handing off to the signup flow, rather than landing the visitor
   on a stale hosting-help page that never explained why. Reused for any future gated CTA, not
   just this one — plain, un-namespaced .mk-modal-overlay/.mk-modal on purpose. */
.mk-modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(5,7,11,0.82); backdrop-filter: blur(4px);
}
.mk-modal-overlay.open { display: flex; }
.mk-modal {
  width: min(420px, 100%); background: var(--mk-surface);
  border: 1px solid var(--mk-border); border-radius: 6px;
  padding: 30px 28px 26px; box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.mk-modal h3 {
  font-size: 17px; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 12px;
}
.mk-modal p { color: var(--mk-text-dim); font-size: 15px; line-height: 1.6; margin: 0 0 26px; }
.mk-modal-actions { display: flex; justify-content: flex-end; gap: 12px; }

/* ---------------------------------------------------------------- hero -----*/
.mk-hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; overflow: hidden;
  padding: 140px 0 90px;
}
.mk-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: url('/shared/branding/splash-16x9-nologo.jpg');
  background-size: cover; background-position: 50% 42%;
}
.mk-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,11,0.35) 0%, rgba(5,7,11,0.55) 55%, var(--mk-bg) 96%),
    linear-gradient(90deg, rgba(5,7,11,0.55), transparent 30%, transparent 70%, rgba(5,7,11,0.55));
}
.mk-hero-logo { width: min(560px, 82%); margin: 0 auto 6px; filter: drop-shadow(0 10px 40px rgba(0,0,0,0.6)); }
.mk-alpha-notice {
  max-width: 640px; margin: 4px auto 22px; padding: 12px 22px;
  border: 1px solid rgba(255,70,70,0.5); border-radius: 6px; background: rgba(255,40,40,0.09);
  box-shadow: 0 4px 24px rgba(255,40,40,0.12);
}
.mk-alpha-notice strong {
  display: block; font-family: var(--mk-font-display); font-weight: 800; letter-spacing: 0.03em;
  text-transform: uppercase; font-size: clamp(15px, 2.4vw, 20px); color: #ff4d4d;
  text-shadow: 0 2px 14px rgba(255,40,40,0.5), 0 2px 10px rgba(0,0,0,0.8);
}
.mk-alpha-notice span {
  display: block; margin-top: 6px; font-family: var(--mk-font-body); font-weight: 600;
  font-size: 13.5px; line-height: 1.5; color: #ff9a9a; text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.mk-hero-tagline {
  font-family: var(--mk-font-body); font-weight: 600; font-size: clamp(16px, 2.4vw, 20px);
  color: var(--mk-text); letter-spacing: 0.01em; max-width: 620px; margin: 4px auto 34px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
.mk-hero-tagline b { color: var(--mk-gold-bright); font-weight: 700; }
.mk-hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.mk-hero-note {
  margin-top: 22px; font-size: 12px; letter-spacing: 0.04em; color: var(--mk-text-dim);
  font-family: var(--mk-font-display); text-transform: uppercase;
}
.mk-scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--mk-text-dim); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  font-family: var(--mk-font-display); display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: mk-bob 2.2s ease-in-out infinite;
}
.mk-scroll-cue svg { width: 16px; height: 16px; }
@keyframes mk-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---------------------------------------------------------------- feature grid -----*/
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .mk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mk-grid { grid-template-columns: 1fr; } }

.mk-card {
  background: linear-gradient(160deg, rgba(240,178,84,0.07), transparent 60%), var(--mk-surface);
  border: 1px solid var(--mk-border-soft); border-radius: 6px; padding: 26px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.mk-card:hover { border-color: var(--mk-border); transform: translateY(-3px); }
.mk-card .mk-icon {
  width: 42px; height: 42px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: rgba(240,178,84,0.12); color: var(--mk-gold-bright); margin-bottom: 16px;
}
.mk-card .mk-icon svg { width: 22px; height: 22px; }
.mk-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; letter-spacing: 0.02em; }
.mk-card p { color: var(--mk-text-dim); font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------------------------------------------------------------- fleet gallery -----*/
.mk-fleet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .mk-fleet { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mk-fleet { grid-template-columns: 1fr; } }
.mk-ship-card {
  position: relative; border: 1px solid var(--mk-border-soft); border-radius: 8px; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(63,199,255,0.08), transparent 60%), #070a10;
}
.mk-ship-card img { width: 100%; aspect-ratio: 1/1; object-fit: contain; padding: 14px; }
/* Real, live-rotating 3D viewer (see /shared/spinviewer.js) standing in for what used to be a
   flat cutout <img> — same footprint/aspect-ratio as the img rule above so the swap needed no
   layout changes, just fills with a <canvas> instead once its model loads. */
.mk-ship-card .mk-spin { width: 100%; aspect-ratio: 1/1; }
.mk-ship-card .mk-ship-info { padding: 4px 18px 20px; }
.mk-ship-card .mk-ship-tier { font-family: var(--mk-font-display); font-size: 10px; letter-spacing: 0.15em; color: var(--mk-gold); text-transform: uppercase; }
.mk-ship-card h4 { font-size: 16px; font-weight: 800; margin: 4px 0 6px; }
.mk-ship-card p { font-size: 13px; color: var(--mk-text-dim); line-height: 1.55; margin: 0; }
.mk-ship-card .mk-ship-stats { display: flex; gap: 14px; margin-top: 12px; font-size: 11px; color: var(--mk-text-dim); font-family: var(--mk-font-display); letter-spacing: 0.03em; }
.mk-ship-card .mk-ship-stats b { color: var(--mk-cyan); display: block; font-size: 14px; }

/* ---------------------------------------------------------------- split feature (image + text) -----*/
.mk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 820px) { .mk-split { grid-template-columns: 1fr; gap: 32px; } }
.mk-split.reverse .mk-split-media { order: 2; }
.mk-split-media {
  position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--mk-border-soft);
  background: radial-gradient(circle at 50% 40%, rgba(240,178,84,0.10), transparent 65%), #070a10;
  min-height: 340px; display: flex; align-items: center; justify-content: center;
}
@media (max-width: 820px) { .mk-split-media { min-height: 260px; } }
.mk-split-body { display: flex; flex-direction: column; justify-content: center; }
.mk-split-media img { width: 70%; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)); }
.mk-split-media .mk-spin { width: 100%; height: 100%; }
.mk-split-body h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; margin-bottom: 14px; text-wrap: balance; }
.mk-split-body p { color: var(--mk-text-dim); font-size: 15.5px; line-height: 1.7; margin-bottom: 14px; }
.mk-taglist { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
/* NOT display:flex on the <li> itself — a flex container turns every one of its direct
   children (including anonymous boxes around plain text runs) into a separate flex item, so
   a sentence with inline <b>/<i> both before and after it visibly splits apart into its own
   line/box instead of flowing as one sentence. The bullet is positioned out of flow instead,
   so the <li>'s real content (however many text/b/i nodes) reads as ordinary inline text. */
.mk-taglist li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--mk-text); line-height: 1.6; }
.mk-taglist li::before { content: "▸"; color: var(--mk-gold); position: absolute; left: 0; top: 0; }

/* ---------------------------------------------------------------- cargo & colonies -----*/
.mk-cargo-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 820px) { .mk-cargo-grid { grid-template-columns: 1fr; } }
.mk-planet-card {
  position: relative; border: 1px solid var(--mk-border-soft); border-radius: 8px; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(63,199,255,0.08), transparent 60%), #070a10;
}
.mk-planet-card .mk-spin { width: 100%; aspect-ratio: 4/3; }
.mk-planet-card .mk-ship-info { padding: 4px 18px 20px; }
.mk-commodity-list { display: flex; flex-direction: column; gap: 14px; }
.mk-commodity-card {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 8px;
  border: 1px solid var(--mk-border-soft); background: #070a10;
}
.mk-commodity-spin {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(240,178,84,0.12), transparent 70%);
  perspective: 400px;
}
/* No real 3D model exists for a raw commodity (see spinviewer.js's own comment on why ships/
   planets/stations get a real Three.js viewer and these don't) — a slow CSS 3D turn on the
   flat cutout is the honest equivalent: the image really rotates in 3D space, just without a
   depth axis (a single flat card), rather than faking motion some other way. */
.mk-commodity-spin img { width: 70%; height: 70%; object-fit: contain; animation: mk-commodity-turn 6s linear infinite; }
@keyframes mk-commodity-turn { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.mk-commodity-card h4 { font-size: 15px; font-weight: 800; margin: 0 0 4px; }
.mk-commodity-card p { font-size: 13px; color: var(--mk-text-dim); line-height: 1.5; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .mk-commodity-spin img { animation: none; }
}

/* ---------------------------------------------------------------- quote band -----*/
.mk-quote-band {
  background: linear-gradient(160deg, rgba(240,178,84,0.08), rgba(63,199,255,0.04)), var(--mk-bg-soft);
  border-top: 1px solid var(--mk-border-soft); border-bottom: 1px solid var(--mk-border-soft);
}
.mk-quote { max-width: 720px; margin: 0 auto; text-align: center; }
.mk-quote .eyebrow { text-align: center; }
.mk-quote p { font-family: var(--mk-font-display); font-style: normal; font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 600; line-height: 1.5; color: var(--mk-gold-bright); text-wrap: balance; }
.mk-quote cite { display: block; margin-top: 16px; font-size: 12px; letter-spacing: 0.06em; color: var(--mk-text-dim); font-style: normal; }

/* ---------------------------------------------------------------- final CTA -----*/
.mk-cta-band { text-align: center; position: relative; overflow: hidden; }
.mk-cta-band::before {
  content: ""; position: absolute; inset: -20% -10%; z-index: -1;
  background: radial-gradient(700px 420px at 50% 40%, rgba(240,178,84,0.16), transparent 65%);
}
.mk-cta-band h2 { font-size: clamp(28px, 4.6vw, 46px); font-weight: 900; text-wrap: balance; margin-bottom: 16px; }
.mk-cta-band p { color: var(--mk-text-dim); max-width: 520px; margin: 0 auto 30px; font-size: 16px; }

/* ---------------------------------------------------------------- footer -----*/
.mk-footer { border-top: 1px solid var(--mk-border-soft); padding: 44px 0 30px; }
.mk-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mk-footer-brand { display: flex; align-items: center; gap: 10px; color: var(--mk-text-dim); font-size: 13px; }
.mk-footer-brand img { height: 26px; opacity: 0.85; }
.mk-footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.mk-footer-links a { font-size: 13px; color: var(--mk-text-dim); }
.mk-footer-links a:hover { color: var(--mk-gold-bright); }
.mk-footer-legal { margin-top: 22px; font-size: 12px; color: var(--mk-text-dim); opacity: 0.7; text-align: center; }

/* ---------------------------------------------------------------- reveal-on-scroll -----*/
.mk-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.mk-reveal.mk-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .mk-reveal, .mk-reveal.mk-in { transition: none; }
  .mk-scroll-cue { animation: none; }
}

/* ---------------------------------------------------------------- help page -----*/
.mk-help-hero {
  padding: 150px 0 60px; text-align: center;
  background:
    linear-gradient(180deg, rgba(5,7,11,0.55) 0%, rgba(5,7,11,0.88) 75%, var(--mk-bg) 100%),
    radial-gradient(900px 500px at 50% -10%, rgba(240,178,84,0.14), transparent 60%),
    url('/shared/branding/header-strip.jpg') center/cover;
  border-bottom: 1px solid var(--mk-border-soft);
}
.mk-help-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 900; }
.mk-help-hero p { color: var(--mk-text-dim); max-width: 560px; margin: 14px auto 0; font-size: 16px; }

.mk-help-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .mk-help-layout { grid-template-columns: 1fr; } }
/* Grid items default to min-width:auto, which for a raw <img> resolves to its intrinsic pixel
   width — so a wide banner image (e.g. help.html's hero strip) stops the whole column, and the
   page, from ever shrinking below that on narrow screens even though the image itself has
   width:100%. min-width:0 lets the column (and everything in it) actually shrink to fit. */
.mk-help-layout > * { min-width: 0; }
.mk-help-toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; }
.mk-help-toc a {
  font-size: 13px; color: var(--mk-text-dim); padding: 7px 10px; border-radius: 4px; border-left: 2px solid transparent;
}
.mk-help-toc a:hover, .mk-help-toc a.active { color: var(--mk-gold-bright); border-left-color: var(--mk-gold); background: rgba(240,178,84,0.06); }
@media (max-width: 820px) { .mk-help-toc { position: static; flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; } .mk-help-toc a { white-space: nowrap; } }

.mk-help-section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--mk-border-soft); scroll-margin-top: 90px; }
.mk-help-section:last-child { border-bottom: none; margin-bottom: 0; }
.mk-help-section .eyebrow { margin-bottom: 6px; }
.mk-help-section h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin-bottom: 14px; }
.mk-help-section > p { color: var(--mk-text-dim); font-size: 15.5px; line-height: 1.7; max-width: 720px; margin-bottom: 18px; }

.mk-help-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 6px; }
.mk-help-cards.triple { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 620px) { .mk-help-cards, .mk-help-cards.triple { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .mk-help-cards.triple { grid-template-columns: 1fr 1fr; } }
.mk-help-card {
  border: 1px solid var(--mk-border-soft); border-radius: 6px; padding: 16px 18px; background: var(--mk-surface);
}
.mk-help-card .k { font-family: var(--mk-font-display); font-size: 12.5px; font-weight: 800; letter-spacing: 0.03em; color: var(--mk-gold-bright); margin-bottom: 5px; }
.mk-help-card .v { font-size: 13.5px; color: var(--mk-text-dim); line-height: 1.55; }

/* Real in-game screenshots, dropped into a section to show what the text is describing.
   Framed like a viewport onto the HUD rather than a plain inline <img> — border + soft glow
   nod at the cyan terminal aesthetic without competing with the gold marketing chrome. */
.mk-shot { margin: 22px 0; max-width: 620px; }
.mk-shot.wide { max-width: 100%; }
.mk-shot.float-right { float: right; margin-left: 28px; }
@media (max-width: 820px) { .mk-shot.float-right { float: none; margin-left: 0; } }
.mk-shot-frame {
  border: 1px solid var(--mk-border-soft); border-radius: 8px; overflow: hidden; background: var(--mk-bg-soft);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(63,199,255,0.05) inset;
}
.mk-shot-frame img { width: 100%; display: block; }
.mk-shot-caption { margin-top: 8px; font-size: 12.5px; color: var(--mk-text-dim); letter-spacing: 0.01em; }
.mk-shot-caption b { color: var(--mk-text); font-weight: 600; }

/* Dense factual tables (ship stats, port classes, alignment bands, turn costs) — the card
   grid above is for grouped short blurbs, this is for real rows-and-columns data. */
.mk-table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--mk-border-soft); border-radius: 6px; }
table.mk-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.mk-table th, table.mk-table td { padding: 10px 14px; border-bottom: 1px solid var(--mk-border-soft); text-align: left; white-space: nowrap; }
table.mk-table tr:last-child td { border-bottom: none; }
table.mk-table th { font-family: var(--mk-font-display); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mk-gold); background: rgba(240,178,84,0.05); }
table.mk-table td { color: var(--mk-text-dim); }
table.mk-table td:first-child { color: var(--mk-text); font-weight: 600; white-space: normal; }
/* The first column is usually a short label/name (kept nowrap-safe above); the last is often
   the free-form explanation column (e.g. history.html's "What Happened") — long prose there
   should wrap normally instead of forcing the whole table into a horizontal scrollbar. */
table.mk-table td:last-child { white-space: normal; }

/* A called-out fact/correction/caveat — distinct from a plain paragraph so an honest "this
   isn't implemented yet" or "this is free, not costed" note doesn't just blend into the prose. */
.mk-callout {
  border: 1px solid var(--mk-border); border-radius: 6px; padding: 14px 18px; margin: 18px 0;
  background: linear-gradient(160deg, rgba(240,178,84,0.08), transparent 70%);
  font-size: 14px; color: var(--mk-text-dim); line-height: 1.6;
}
.mk-callout b { color: var(--mk-gold-bright); }

/* Help-center hull/planet spec grids — same .mk-ship-card/.mk-planet-card + spinviewer.js
   pattern the homepage's fleet/cargo teasers already use, just data-driven over the FULL
   catalog (16 hulls / 7 classes) instead of a hand-picked handful. */
.mk-spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 18px 0 8px; }
@media (max-width: 980px) { .mk-spec-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .mk-spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .mk-spec-grid { grid-template-columns: 1fr; } }
.mk-spec-grid.planets { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .mk-spec-grid.planets { grid-template-columns: repeat(3, 1fr); } }
.mk-ship-card .mk-ship-stats { flex-wrap: wrap; row-gap: 6px; }
.mk-ship-card .mk-ship-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.mk-ship-badge {
  font-family: var(--mk-font-display); font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 3px 7px; border-radius: 3px; border: 1px solid var(--mk-border-soft);
  color: var(--mk-text-dim);
}
.mk-ship-badge.on { color: var(--mk-gold-bright); border-color: var(--mk-border); background: rgba(240,178,84,0.08); }

.mk-tip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
/* Same reasoning as .mk-taglist above — the number badge floats instead of sitting in a flex
   row, so mixed plain-text/<i>/<b> content in the rest of the <li> flows as one paragraph
   instead of splitting into separate flex items. */
.mk-tip-list li { font-size: 14.5px; color: var(--mk-text); line-height: 1.6; overflow: hidden; }
.mk-tip-list li span.n {
  float: left; width: 22px; height: 22px; border-radius: 50%; background: rgba(240,178,84,0.15);
  color: var(--mk-gold-bright); font-family: var(--mk-font-display); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 1px 12px 0 0;
}
