/* Orbital Commando // ULTRA17 — site styles.
   Colours follow the channel art: near-black, ULTRA17 orange, cream pixel type. */

@font-face {
  font-family: "Orbital Pixel";
  src: url("assets/orbital-pixel.woff") format("woff");
  font-display: swap;
}

:root {
  --bg: #0a0c10;
  --bg-2: #0f1218;
  --panel: #141821;
  --line: #252b37;
  --text: #eef0ea;
  --muted: #9ba4b4;
  --orange: #f28a30;
  --orange-hi: #ffa552;
  --cyan: #5fe0ff;
  --acid: #9be04a;
  --blood: #c8231e;
  --px: "Orbital Pixel", ui-monospace, "Consolas", monospace;
  --sans: "Barlow", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-hi); }
strong { color: var(--text); font-weight: 700; }
p { margin: 0 0 1em; color: var(--muted); }
h1, h2, h3 { margin: 0; font-weight: 400; color: var(--text); }
::selection { background: var(--orange); color: var(--bg); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* The game's own pixel font. Sizes are multiples of 10px so its pixels stay whole. */
.px { font-family: var(--px); letter-spacing: 0; text-transform: none; font-weight: 400; }
h2.px { font-size: 40px; line-height: 1.05; margin-bottom: 18px; }
h3.px { font-size: 20px; line-height: 1.2; margin-bottom: 8px; }
@media (min-width: 900px) { h2.px { font-size: 60px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.small { font-size: 14px; color: var(--muted); }
.kicker { font-size: 20px; color: var(--orange); margin: 0 0 10px; }
.lede { font-size: 20px; color: var(--text); line-height: 1.5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--orange); color: var(--bg);
  border: 2px solid var(--orange);
  font: 700 16px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--orange-hi); border-color: var(--orange-hi); color: var(--bg); transform: translateY(-1px); }
.btn-ghost { background: rgba(10, 12, 16, .55); color: var(--text); border-color: rgba(238, 240, 234, .55); }
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-sm { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
.btn[aria-disabled="true"] { background: transparent; color: var(--muted); border-color: var(--line); cursor: default; transform: none; }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); cursor: pointer; font-size: 14px;
}
.icon-btn:hover { border-color: var(--orange); color: var(--orange); }

.tag { display: inline-block; font-size: 10px; line-height: 1; padding: 5px 7px 4px; margin: 0 0 12px;
  color: var(--bg); background: var(--orange); }
.tag-lock { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  transition: background .25s, border-color .25s, padding .25s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(10, 12, 16, .92); backdrop-filter: blur(8px); border-color: var(--line); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand img { image-rendering: pixelated; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .px { font-size: 20px; color: var(--text); }
.brand-sub { font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); }
.nav-links a:not(.btn) { color: var(--text); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.nav-links a:not(.btn):hover { color: var(--orange); opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 12, 16, .97); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 16px; justify-content: center; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: rgba(10, 12, 16, .97); }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,12,16,.92) 0%, rgba(10,12,16,.6) 45%, rgba(10,12,16,.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,12,16,0) 30%);
}
.hud-frame i { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(242, 138, 48, .8); }
.hud-frame i:nth-child(1) { top: 84px; left: var(--gutter); border-right: 0; border-bottom: 0; }
.hud-frame i:nth-child(2) { top: 84px; right: var(--gutter); border-left: 0; border-bottom: 0; }
.hud-frame i:nth-child(3) { bottom: 24px; left: var(--gutter); border-right: 0; border-top: 0; }
.hud-frame i:nth-child(4) { bottom: 24px; right: var(--gutter); border-left: 0; border-top: 0; }
.hero-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 120px var(--gutter) 160px; }
.chip { display: inline-flex; align-items: center; gap: 10px; font-size: 10px; color: var(--text);
  padding: 8px 12px 7px; background: rgba(10,12,16,.6); box-shadow: inset 0 0 0 1px rgba(238,240,234,.25); margin-bottom: 24px; }
.dot { width: 8px; height: 8px; background: var(--orange); animation: blink 1.2s steps(2) infinite; }
.hero-title { font-size: 60px; line-height: .95; margin-bottom: 24px; text-shadow: 6px 6px 0 rgba(0,0,0,.55); }
@media (min-width: 640px) { .hero-title { font-size: 80px; } }
@media (min-width: 1000px) { .hero-title { font-size: 120px; } }
.caret { display: inline-block; width: .12em; height: .7em; background: var(--orange); margin-left: .08em; vertical-align: baseline; animation: blink 1.1s steps(2) infinite; }
.hero-tag { font-size: clamp(19px, 2.2vw, 24px); color: var(--text); max-width: 34ch; margin-bottom: 32px; line-height: 1.45; }
.hero-tag strong { color: var(--orange); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero-readout {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter) 56px; gap: 1px;
}
.hero-readout div { padding: 12px 16px 10px; background: rgba(10,12,16,.72); border-top: 2px solid var(--orange); }
.hero-readout dt { font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.hero-readout dd { margin: 0; font-size: 20px; color: var(--text); }
.hero-readout .ok { color: var(--cyan); }
@media (max-width: 700px) {
  .hero-readout { grid-template-columns: repeat(2, 1fr); padding-bottom: 40px; }
  .hero-inner { padding-bottom: 200px; }
  .hud-frame i:nth-child(n+3) { display: none; }
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; max-width: none; gap: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.frame { position: relative; margin: 0; border: 1px solid var(--line); background: var(--panel); padding: 8px; }
.frame::before, .frame::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2px solid var(--orange); }
.frame::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.frame img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.frame figcaption { font-size: 10px; color: var(--orange); padding: 10px 2px 2px; }

/* every pixel is real */
.pixel-real { min-height: 680px; display: flex; align-items: center; overflow: hidden; }
.pixel-bg { position: absolute; inset: 0; background: var(--img) center / cover no-repeat; }
.pixel-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,12,16,.1) 0%, rgba(10,12,16,.35) 50%, rgba(10,12,16,.92) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%); }
.pixel-real .wrap { position: relative; width: 100%; display: flex; justify-content: flex-end; }
.pixel-card { max-width: 480px; background: rgba(10,12,16,.82); border: 1px solid var(--line); border-left: 3px solid var(--orange); padding: 36px; backdrop-filter: blur(4px); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 24px; color: var(--text); font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--orange); }
@media (max-width: 700px) {
  .pixel-real { min-height: 0; flex-direction: column; align-items: stretch; padding-top: 0; }
  .pixel-bg { position: relative; height: 56vw; }
  .pixel-bg::after { background: linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
  .pixel-card { padding: 24px; margin-top: -48px; }
}

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--orange); transform: translateY(-3px); }
.feature img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--line); }
.feature > div { padding: 22px 22px 8px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* game systems tabs */
.tab-list { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 2px solid var(--line); }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list [role="tab"] {
  flex: 0 0 auto; padding: 14px 18px 12px; background: transparent; border: 0; margin-bottom: -2px;
  border-bottom: 2px solid transparent; color: var(--muted); font: 10px/1 var(--px); cursor: pointer;
}
.tab-list [role="tab"]:hover { color: var(--text); }
.tab-list [role="tab"][aria-selected="true"] { color: var(--orange); border-bottom-color: var(--orange); background: var(--panel); }
@media (min-width: 1180px) { .tab-list [role="tab"] { font-size: 20px; padding: 16px 20px 14px; } }
.tab-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px 48px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-top: 0; padding: clamp(22px, 4vw, 40px); }
.tab-panel[hidden] { display: none; }
.tab-panel .panel-text { grid-row: span 2; }
.tab-panel .panel-note { grid-column: 2; margin: 0; }
.tab-panel h3.px { font-size: 30px; margin-bottom: 14px; }
@media (max-width: 860px) { .tab-panel { grid-template-columns: 1fr; } .tab-panel .panel-text { grid-row: auto; } .tab-panel .panel-note { grid-column: auto; } }
.no-js .tab-list { display: none; }
.no-js .tab-panel[hidden] { display: grid; margin-bottom: 20px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 0; }
.stats div { background: var(--bg); padding: 16px 18px 14px; border-left: 2px solid var(--orange); }
.stats dt { font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.stats dd { margin: 0; font-size: 30px; color: var(--text); line-height: 1; }
.stats dd:not(:only-child) { word-break: break-word; }
#p-guns .stats dd { font-size: 20px; }

.price-table { width: 100%; border-collapse: collapse; background: var(--bg); }
.price-table caption { text-align: left; font-size: 10px; color: var(--muted); padding: 0 0 10px; }
.price-table th, .price-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); font-weight: 500; }
.price-table th { text-align: left; color: var(--text); }
.price-table th small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.price-table td { text-align: right; font: 20px/1 var(--px); color: var(--orange); white-space: nowrap; }

.ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ranks li { display: flex; justify-content: space-between; align-items: center; background: var(--bg); padding: 12px 16px 10px; font-size: 10px; color: var(--muted); }
.ranks li b { font-weight: 400; font-size: 20px; color: var(--text); }
.ranks li:nth-child(1) { border-left: 2px solid #4b5262; }
.ranks li:nth-child(2) { border-left: 6px solid #6d7588; }
.ranks li:nth-child(3) { border-left: 10px solid #9ba4b4; }
.ranks li:nth-child(4) { border-left: 14px solid var(--orange); }
.ranks li:nth-child(5) { border-left: 18px solid var(--orange-hi); color: var(--text); }

.strata { display: grid; grid-template-rows: 18px 54px 54px 54px 90px; border: 1px solid var(--line); }
.strata span { display: flex; align-items: center; padding: 0 14px; font-size: 10px; color: rgba(238,240,234,.85); text-shadow: 1px 1px 0 rgba(0,0,0,.6); }
.s-grass { background: #4f8f2f; }
.s-top { background: #6b4a2c; }
.s-dirt { background: #4f3720; }
.s-stone { background: repeating-linear-gradient(90deg, #555b66 0 46px, #3c414a 46px 52px, #5f6570 52px 92px, #2a2d33 92px 96px); }
.s-deep { background: radial-gradient(circle at 30% 60%, #d9a92c 0 3px, transparent 4px), radial-gradient(circle at 72% 35%, #d9a92c 0 2px, transparent 3px), radial-gradient(ellipse at 60% 80%, #120d09 0 26px, transparent 27px), #3b2918; }

/* base building */
.base-intro { margin-bottom: clamp(48px, 7vw, 80px); }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li b { font-weight: 400; font-size: 20px; color: var(--bg); background: var(--orange); text-align: center; padding: 8px 0 6px; }
.steps li span { color: var(--muted); }
.catalogue-title { font-size: 30px !important; margin-bottom: 18px !important; }
.catalogue { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .catalogue { grid-template-columns: 1fr; } }
.cat-col { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--orange); padding: 18px 20px 6px; }
.cat-col h4 { margin: 0 0 6px; font-size: 20px; font-weight: 400; color: var(--orange); }
.cat-col ul { list-style: none; margin: 0; padding: 0; }
.cat-col li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.cat-col li:first-child { border-top: 0; }
.cat-col li span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.cat-col li strong { display: block; font-size: 16px; }
.cat-col li span .tag { margin: 2px 0 4px; }
.cat-col li b, .cat-col li i { font: 20px/1 var(--px); font-style: normal; min-width: 34px; text-align: right; }
.cat-col li b { color: var(--orange); }
.cat-col li i { color: var(--cyan); min-width: 24px; }
.cat-col li i.plus { color: var(--acid); }
.cat-key { margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.cat-key b { display: inline-block; width: 10px; height: 10px; }
.key-gold { background: var(--orange); }
.key-power { background: var(--cyan); margin-left: 12px; }
.power { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: 1fr 1fr auto; gap: 32px; align-items: center;
  padding: 28px; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--cyan); }
.power h3.px { color: var(--cyan); }
.power p { margin: 0; }
.power-meter { display: grid; grid-template-columns: repeat(10, 14px); gap: 4px; }
.power-meter span { height: 36px; background: var(--line); }
.power-meter span.on { background: var(--cyan); box-shadow: 0 0 10px rgba(95,224,255,.35); }
.power-meter em { grid-column: 1 / -1; font-style: normal; font-size: 10px; color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) { .power { grid-template-columns: 1fr; } }
.base-cards { margin-top: clamp(40px, 6vw, 64px); }
.card-body .tag + h3 { margin-top: 0; }
.card-body p .tag { margin: 0 6px 0 0; vertical-align: 1px; }

/* map cards */
.cards.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards.three { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.card-img { overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 22px 22px 8px; }
.card.locked .card-img img { filter: saturate(.55) brightness(.75); }

/* factions */
.factions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .factions { grid-template-columns: 1fr; } }
.faction { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--c); }
/* Crop off the HUD bars at the top of the captures; the fighting is in the lower half. */
.faction img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 50% 80%; transition: transform .6s; }
.faction:hover img { transform: scale(1.05); }
.faction-body { position: relative; padding: 22px 26px 12px; border-top: 1px solid var(--line); }
.faction h3.px { font-size: 30px; color: var(--c); }
.faction .tag:not(.tag-lock) { background: var(--c); }

/* vehicles rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-color: var(--orange) var(--panel); }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 60px) / 4); } }
.vehicle { scroll-snap-align: start; background: var(--panel); border: 1px solid var(--line); padding: 8px 8px 12px; }
.vehicle img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 16px; }
.vehicle h3, .vehicle p { padding: 0 12px; }
.vehicle p { font-size: 15px; margin-bottom: 4px; }
.scroll-btns { display: flex; gap: 8px; }
@media (max-width: 700px) { .scroll-btns { display: none; } }

/* trailer */
.player { position: relative; border: 1px solid var(--line); background: #000; padding: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.player video { width: 100%; aspect-ratio: 16/9; background: #000; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 10px; grid-auto-flow: dense; }
.shot { padding: 0; border: 0; background: var(--panel); cursor: zoom-in; overflow: hidden; position: relative; }
.shot.wide { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; filter: saturate(.9); }
.shot:hover img { transform: scale(1.05); filter: none; }
.shot::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--orange); transition: box-shadow .15s; }
.shot:hover::after, .shot:focus-visible::after { box-shadow: inset 0 0 0 2px var(--orange); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } }
@media (max-width: 520px) { .gallery { grid-auto-rows: 110px; } }

/* devlog */
.devlog { overflow: hidden; }
.devlog-banner { position: absolute; inset: 0; background: var(--img) center / cover no-repeat; opacity: .28; }
.devlog-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 5%, rgba(10,12,16,.4) 50%, var(--bg) 95%); }
.devlog .wrap { position: relative; }
.channel { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin-bottom: 44px;
  padding: 28px; background: rgba(10,12,16,.78); border: 1px solid var(--line); }
.channel h2.px { margin-bottom: 8px; }
.channel p:last-child { margin: 0; }
.channel-avatar { width: 96px; height: 96px; border-radius: 50%; image-rendering: pixelated; }
@media (max-width: 800px) { .channel { grid-template-columns: 1fr; text-align: left; } .channel .btn { justify-self: start; } }
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } }
.video { display: block; background: var(--panel); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, transform .2s; }
.video:hover { border-color: var(--orange); color: var(--text); transform: translateY(-3px); }
.video-thumb { position: relative; display: block; overflow: hidden; }
.video-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; transform: translate(-50%, -50%);
  background: rgba(10,12,16,.8); border: 2px solid var(--orange); transition: background .2s; }
.play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent var(--orange); }
.video:hover .play { background: var(--orange); }
.video:hover .play::after { border-left-color: var(--bg); }
.video-meta { display: block; padding: 18px 22px 20px; }
.video-meta .tag { margin-bottom: 10px; }
.video-title { display: block; font-weight: 700; font-size: 20px; line-height: 1.3; }
.video-sub { display: block; color: var(--muted); font-size: 15px; }
.more { margin-top: 24px; font-weight: 600; }

/* roadmap */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.roadmap li { position: relative; padding: 34px 24px 8px 0; border-top: 2px solid var(--line); }
.roadmap li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; background: var(--bg-2); border: 2px solid var(--muted); }
.roadmap li.done { border-top-color: var(--orange); }
.roadmap li.done::before { background: var(--orange); border-color: var(--orange); }
.roadmap li > span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 10px; }
.roadmap li.done > span { color: var(--orange); }
@media (max-width: 900px) {
  .roadmap { grid-template-columns: 1fr; }
  .roadmap li { border-top: 0; border-left: 2px solid var(--line); padding: 0 0 28px 28px; }
  .roadmap li.done { border-left-color: var(--orange); }
  .roadmap li::before { top: 0; left: -8px; }
}

/* demo */
.demo { background:
  radial-gradient(ellipse at 80% 20%, rgba(242,138,48,.12), transparent 60%), var(--bg); }
.controls { background: var(--panel); border: 1px solid var(--line); padding: 8px 24px 16px; }
.controls summary { font-size: 20px; padding: 14px 0; cursor: pointer; color: var(--orange); list-style: none; }
.controls summary::-webkit-details-marker { display: none; }
.controls summary::after { content: " +"; }
.controls[open] summary::after { content: " -"; }
.controls table { width: 100%; border-collapse: collapse; font-size: 15px; }
.controls th { text-align: left; font-weight: 400; padding: 7px 16px 7px 0; white-space: nowrap; color: var(--muted); width: 1%; }
.controls td { padding: 7px 0; color: var(--text); }
.controls tr + tr > * { border-top: 1px solid var(--line); }
kbd { display: inline-block; min-width: 26px; padding: 3px 6px 2px; text-align: center; font: 10px/1.4 var(--px);
  color: var(--text); background: var(--bg); border: 1px solid var(--line); border-bottom-width: 3px; }
.controls .small { margin: 14px 0 0; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; gap: 24px; font-weight: 600; }
.footer .small { width: 100%; margin: 0; }

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5,6,8,.94); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox-stage { display: grid; place-items: center; height: 100vh; padding: 56px 0; }
.lightbox-stage img, .lightbox-stage video { max-width: 100%; max-height: calc(100vh - 112px); border: 1px solid var(--line); background: #000; }
.lightbox-stage video { width: min(1280px, 100%); aspect-ratio: 16/9; }
.lightbox-close { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; font-size: 30px; line-height: 1; color: var(--text); background: none; border: 0; cursor: pointer; }
.lightbox-close:hover, .lightbox-nav:hover { color: var(--orange); }
.lightbox-nav { height: 64px; color: var(--text); background: none; border: 0; cursor: pointer; font-size: 20px; }
.lightbox.single .lightbox-nav { visibility: hidden; }
@media (max-width: 600px) { .lightbox[open] { grid-template-columns: 36px 1fr 36px; } }

/* overlays and motion */
.scanlines { position: fixed; inset: 0; pointer-events: none; z-index: 60;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot, .caret { animation: none; }
  .feature, .card-img img, .faction img, .shot img, .video { transition: none; }
}
