/* No Asteroids Wiki — dark theme modelled on noasteroids.wiki layout */
:root {
  --bg: #0d0d0d;
  --bg-soft: #121212;
  --card: #151515;
  --card-2: #181818;
  --border: #2a2a2a;
  --text: #e6e6e6;
  --muted: #a0a0a0;
  --dim: #7a7a7a;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1200px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 520px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(249,115,22,0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
p { margin: 0 0 16px; color: #d2d2d2; }
h1, h2, h3, h4 { color: #fff; line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; margin-top: 36px; }
h3 { font-size: 17px; font-weight: 650; }
strong { color: #fff; }
ul, ol { color: #d2d2d2; padding-left: 22px; }
li { margin: 6px 0; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(13,13,13,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  height: 58px; display: flex; align-items: center; gap: 22px;
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; color: #fff; white-space: nowrap; }
.logo-img { height: 26px; width: auto; display: block; flex: 0 0 auto; }
.logo-wiki {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #9a9a9a;
  border: 1px solid #333; border-radius: 4px; padding: 2px 5px; line-height: 1.4;
}
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { font-size: 14px; color: var(--muted); padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav a.active { color: #fff; background: rgba(249,115,22,0.14); }
.header-right { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; white-space: nowrap; }

/* layout */
.wrap { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.layout-full { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.sidebar { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 18px; }

/* hero */
.hero { padding: 52px 0 20px; text-align: center; }
.hero h1 { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(249,115,22,0.35);
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  vertical-align: middle;
}
.pill-sm { font-size: 11px; padding: 2px 9px; }
.hero-sub { color: var(--muted); max-width: 760px; margin: 8px auto 0; font-size: 16px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0 0; }
.badge {
  font-size: 12px; color: #cfcfcf; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px;
}
.badge b { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); color: #e8e8e8; background: rgba(255,255,255,0.03);
  transition: .15s;
}
.btn:hover { border-color: #444; background: rgba(255,255,255,0.07); color: #fff; }
.btn-primary { background: #fff; color: #111; border-color: #fff; }
.btn-primary:hover { background: #f1f1f1; color: #111; }

/* media frame */
.media-frame {
  margin: 28px auto 0; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: #000; max-width: 980px; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .95; }
.media-note {
  position: absolute; bottom: 12px; right: 14px; font-size: 11px; color: #bbb;
  background: rgba(0,0,0,.6); padding: 3px 8px; border-radius: 6px;
}
.play-btn {
  position: absolute; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.play-btn::after { content: ""; margin-left: 4px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #111; }

/* hero: official screenshot with a tap-to-play trailer overlay */
.media-frame.hero-media img { opacity: 1; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,6,8,0.10), rgba(6,6,8,0.42));
}
.media-frame .hero-play {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
  aspect-ratio: auto; border: 0; border-radius: 0; background: transparent;
}
.media-frame .hero-play:hover { border-color: transparent; }
.media-frame .hero-play .yt-play { width: 74px; height: 74px; transition: transform .15s; }
.media-frame .hero-play:hover .yt-play { transform: translate(-50%, -50%) scale(1.06); }
.hero-play-label {
  position: absolute; left: 50%; top: calc(50% + 72px); transform: translateX(-50%);
  font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.16);
  padding: 6px 14px; border-radius: 999px; line-height: 1.5;
}
.media-frame iframe.yt-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* official screenshot figures (article + hub) */
.shot { margin: 16px 0 10px; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--border); background: #0a0a0b;
}
.shot-wide img { aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.shot figcaption {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  padding: 9px 2px 0; font-size: 12.5px; color: var(--dim); line-height: 1.5;
}
.shot-cap { color: #b9b9b9; max-width: 68ch; }
.shot-credit {
  color: #5f5f5f; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}

/* screenshot gallery (official art, click to enlarge) */
.shot-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 4px; }
.shot-gallery .figure-art { border-radius: 12px; }
.shot-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.zoom-inner .figure-art img { display: block; width: 100%; height: auto; }

/* sections */
.section { padding: 34px 0 6px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.section h2 { margin-top: 0; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card {
  display: block; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  transition: .15s;
}
.card:hover { border-color: rgba(249,115,22,0.45); background: var(--card-2); transform: translateY(-1px); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.card-date { color: var(--dim); font-size: 12px; }
.card h3 { font-size: 15px; margin: 0 0 6px; }
.card p { font-size: 13.5px; color: var(--muted); margin: 0; }
.card-icon {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(249,115,22,0.35);
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 13px; font-weight: 700; margin-bottom: 10px;
}

/* latest list */
.latest { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.latest h2 { font-size: 18px; margin: 0 0 14px; }
.latest-item { display: block; padding: 12px 0; border-top: 1px solid #222; }
.latest-item:first-of-type { border-top: 0; padding-top: 0; }
.latest-item h3 { font-size: 14px; margin: 6px 0 0; line-height: 1.4; }
.latest-top { display: flex; justify-content: space-between; align-items: center; }

/* journey */
.journey { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.journey-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.journey-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); border: 1px solid rgba(249,115,22,0.35);
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px;
}
.journey-item h3 { font-size: 15px; margin-bottom: 6px; }
.journey-item p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* wiki nav (sidebar) */
.wikinav { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.wikinav-title { font-size: 11px; letter-spacing: .12em; color: var(--dim); font-weight: 700; margin-bottom: 10px; }
.wikinav a { display: flex; align-items: center; gap: 9px; padding: 7px 4px; font-size: 13.5px; color: #d8d8d8; border-radius: 6px; }
.wikinav a:hover { background: rgba(255,255,255,0.04); color: #fff; }
.wikinav .n { color: var(--accent); font-size: 11px; width: 14px; }
.wikinav .count { margin-left: auto; color: var(--dim); font-size: 12px; }

/* toc */
.toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.toc-title { font-size: 11px; letter-spacing: .12em; color: var(--dim); font-weight: 700; margin-bottom: 10px; }
.toc a { display: block; font-size: 13px; color: var(--muted); padding: 5px 0; line-height: 1.45; }
.toc a:hover { color: var(--accent); }

/* article */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--dim); padding: 22px 0 0; }
.breadcrumb a { color: var(--dim); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: #555; }
.article-head { padding: 14px 0 18px; }
.article-head h1 { margin-bottom: 12px; }
.article-intro { font-size: 17px; color: #c9c9c9; line-height: 1.6; }
.article-body { padding-bottom: 10px; }
.article-body h2 { padding-top: 8px; border-top: 1px solid #1f1f1f; margin-top: 34px; }
.article-body h2:first-of-type { border-top: 0; margin-top: 18px; }
.article-body p { font-size: 15.5px; color: #d0d0d0; }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(249,115,22,.4); text-underline-offset: 2px; }

.note {
  background: rgba(249,115,22,0.07); border: 1px solid rgba(249,115,22,0.28);
  border-left: 3px solid var(--accent); border-radius: 10px; padding: 13px 16px;
  font-size: 14px; color: #e0cfc3; margin: 18px 0;
}
.note b { color: #fff; }
.fact-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.fact-table th, .fact-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #242424; }
.fact-table th { color: var(--dim); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.fact-table td { color: #d8d8d8; }
.fact-table tr:last-child td { border-bottom: 0; }

/* faq */
.faq { margin: 30px 0 10px; }
.faq h2 { margin-bottom: 14px; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: #fff; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* related */
.related { margin-top: 34px; }
.related h2 { font-size: 18px; }

/* footer */
.site-footer { margin-top: 60px; border-top: 1px solid var(--border); background: rgba(18,18,18,.5); position: relative; z-index: 1; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 36px 20px 44px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-brand p { font-size: 13px; color: var(--dim); max-width: 320px; }
.footer-col h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--muted); padding: 4px 0; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid #1e1e1e; font-size: 12px; color: #666; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* utilities */
.mt-0 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.kv-item { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.kv-item .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.kv-item .v { font-size: 15px; color: #fff; font-weight: 600; }

/* ---------------------------------------------- figures (inline SVG diagrams) */
.figure { margin: 26px 0 8px; }
.figure-art {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: #0f0f10; line-height: 0;
}
.figure-art svg { display: block; width: 100%; height: auto; }
.figure-art { position: relative; cursor: zoom-in; }
.zoom-badge {
  position: absolute; right: 10px; top: 10px; font-size: 10.5px; letter-spacing: .04em;
  color: rgba(255,255,255,.55); background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.12);
  padding: 3px 8px; border-radius: 20px; line-height: 1.6; pointer-events: none;
}
.zoom-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(5,5,6,.94);
  display: block; overflow: auto; padding: 28px 18px 60px; cursor: zoom-out;
  backdrop-filter: blur(3px);
}
.zoom-inner { max-width: 1100px; margin: 0 auto; }
.zoom-inner .figure-art { cursor: zoom-out; border-color: #333; }
.zoom-hint {
  display: block; text-align: center; color: #7a7a7a; font-size: 12px; margin-top: 14px;
}
.zoom-close {
  position: fixed; right: 16px; top: 14px; z-index: 2; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(20,20,22,.9);
  color: #e6e6e6; font-size: 15px; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.zoom-close:hover { background: rgba(249,115,22,.9); color: #111; border-color: transparent; }
.figure figcaption {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  padding: 10px 2px 0; font-size: 12.5px; color: var(--dim); line-height: 1.5;
}
.fig-cap { color: #b9b9b9; max-width: 62ch; }
.fig-credit { color: #5f5f5f; font-size: 11px; white-space: nowrap; letter-spacing: .04em; text-transform: uppercase; }

/* ---------------------------------------------- youtube facade */
.yt-card { margin: 0; }
.yt {
  position: relative; display: block; width: 100%; padding: 0; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: #000; aspect-ratio: 16 / 9; line-height: 0; transition: border-color .15s, transform .15s;
}
.yt:hover { border-color: rgba(249,115,22,.5); }
.yt:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .15s, transform .4s; }
.yt:hover img { opacity: 1; transform: scale(1.015); }
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(249,115,22,.94); box-shadow: 0 10px 34px rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
}
.yt-play::after {
  content: ""; margin-left: 4px; border-style: solid;
  border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #111;
}
.yt:hover .yt-play { background: var(--accent); }
.yt-dur {
  position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.82); color: #fff;
  font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 5px; line-height: 1.6;
}
.yt-tag {
  position: absolute; left: 8px; top: 8px; background: rgba(249,115,22,.92); color: #111;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 5px; line-height: 1.7;
}
.yt-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; background: #000; }
.yt-card figcaption { display: flex; flex-direction: column; gap: 3px; padding: 10px 2px 0; }
.yt-card figcaption b { font-size: 14px; color: #fff; line-height: 1.4; }
.yt-meta { font-size: 11.5px; color: var(--dim); }
.yt-why { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.yt-link { font-size: 11.5px; color: var(--accent); opacity: .85; margin-top: 2px; }
.yt-link:hover { opacity: 1; }
.yt-small figcaption b { font-size: 12.5px; }


/* illustrated cards */
.card-media { padding: 0; overflow: hidden; }
.card-thumb {
  aspect-ratio: 16 / 9; overflow: hidden; background: #0a0a0b;
  border-bottom: 1px solid var(--border); line-height: 0; position: relative;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: opacity .15s, transform .35s; }
.card-media:hover .card-thumb img { opacity: 1; transform: scale(1.02); }
.thumb-count {
  position: absolute; right: 10px; bottom: 9px; font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; background: rgba(0,0,0,.62);
  border: 1px solid rgba(255,255,255,.14); padding: 2px 8px; border-radius: 20px;
}
.card-body { padding: 16px 18px 18px; }
.card-media h3 { margin-bottom: 6px; }
.card-media p { font-size: 13.5px; }

/* video blocks */
.video-feature {
  margin: 26px 0 6px; padding: 16px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(249,115,22,.05), rgba(249,115,22,0));
}
.video-feature .eyebrow { margin-bottom: 10px; }
.video-feature figcaption b { font-size: 15px; }
.video-row { margin: 34px 0 8px; }
.video-row h2 { font-size: 18px; margin-bottom: 14px; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.video-feature + .video-grid { margin-top: 18px; }
.video-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.video-note { font-size: 12px; color: #6f6f6f; margin: 14px 0 0; line-height: 1.6; }

/* home showcase */
.home-videos { padding: 40px 0 8px; }
.section-link { font-size: 13px; color: var(--accent); }


/* responsive */
@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .video-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .shot-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .header-inner { height: auto; padding: 10px 16px; flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; flex: 0 0 100%; width: 100%; flex-wrap: wrap; overflow-x: visible; row-gap: 2px; }
  .site-header { position: static; }
  .zoom-inner .figure-art svg { min-width: 720px; }
  .header-right { margin-left: auto; }
  .header-right span:not(:first-child) { display: none; }
  .cards, .cards-3, .journey, .grid-2, .kv { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-intro { font-size: 16px; }
  .hero h1 { gap: 8px; }
  .video-grid, .video-grid.two { grid-template-columns: 1fr; }
  .figure figcaption { flex-direction: column; gap: 4px; }
  .fig-credit { white-space: normal; }
  .video-feature { padding: 12px; }
  .yt-play { width: 50px; height: 50px; }
}
