/* WMD guide: the mod's "stealth steel" UI kit (WmdUi.java palette): dark steel panels, light steel trim, blue = input / link, orange = output, cyan = power. */
:root {
  color-scheme: dark;
  --bg: #0d1116; --panel: #171d25; --card: #202833; --well: #0f1318; --divider: #2e3742; --trim: #9aa7b4; --trim-dim: #4a5664;
  --text: #dce3ea; --muted: #8e99a6; --dim: #6f7c8a;
  --blue: #3a7bd5; --blue-l: #6fa8ff; --orange: #d58a3a; --orange-l: #f2c08a; --cyan: #3ac2d5; --good: #8fe3a8; --warn: #f2c08a;
  --row-sel: #2d3a4a; --row-hover: #263040;
  --fd: "Barlow Condensed", "Bahnschrift SemiCondensed", "Bahnschrift", "Roboto Condensed", "Arial Narrow", sans-serif;
  --fb: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fm: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--fb); }
body { min-height: 100vh; overflow-x: hidden; }
a { color: var(--blue-l); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
img.px, .ico img { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---- top bar */
.top { position: sticky; top: 0; z-index: 20; background: linear-gradient(#1b222c, #151b23); border-bottom: 1px solid var(--trim-dim);
  box-shadow: 0 1px 0 #0008; padding: 0 16px; }
.top-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 14px; min-height: 54px; flex-wrap: wrap; padding: 6px 0; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font: 700 21px/1 var(--fd); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .mk { width: 26px; height: 26px; border: 1px solid var(--trim); background: linear-gradient(135deg, #2a3442, #121820); position: relative; transform: rotate(45deg); }
.brand .mk::after { content: ""; position: absolute; inset: 7px; background: var(--blue); }
.brand small { color: var(--muted); font-weight: 500; letter-spacing: .14em; font-size: 13px; }
nav.main { display: flex; gap: 2px; }
nav.main a { color: var(--muted); font: 600 15px var(--fd); letter-spacing: .1em; text-transform: uppercase; padding: 8px 10px; border-bottom: 2px solid transparent; }
nav.main a:hover { color: var(--text); text-decoration: none; }
nav.main a.on { color: var(--text); border-bottom-color: var(--blue); }
.search { position: relative; flex: 1 1 220px; max-width: 420px; margin-left: auto; }
.search input { width: 100%; background: var(--well); border: 1px solid var(--divider); color: var(--text); padding: 8px 12px 8px 34px; font: 15px var(--fb); outline: none; border-radius: 0; }
.search input:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; }
.drop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--panel); border: 1px solid var(--trim-dim); max-height: 70vh; overflow-y: auto; display: none; box-shadow: 0 8px 24px #000a; }
.drop.on { display: block; }
.drop a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; color: var(--text); border-left: 2px solid transparent; }
.drop a:hover, .drop a.sel { background: var(--row-sel); border-left-color: var(--blue); text-decoration: none; }
.drop .k { margin-left: auto; color: var(--dim); font: 12px var(--fm); }

main { max-width: 1180px; margin: 0 auto; padding: 22px 16px 60px; }
h1 { font: 700 clamp(28px, 5vw, 40px)/1.05 var(--fd); letter-spacing: .03em; text-transform: uppercase; margin: 0 0 6px; }
h2 { font: 600 21px/1.2 var(--fd); letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin: 30px 0 10px; display: flex; align-items: center; gap: 10px; }
h2::after { content: ""; flex: 1; height: 1px; background: var(--divider); }
h3 { font: 600 17px var(--fd); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; color: var(--blue-l); }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.lead { color: var(--muted); max-width: 72ch; }

/* ---- kit panel */
.panel { background: linear-gradient(#1c232d, #171d25); border: 1px solid var(--trim-dim); box-shadow: inset 0 1px 0 #ffffff12, 0 2px 0 #0006; padding: 14px; }
.panel + .panel { margin-top: 12px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.chip { display: inline-flex; align-items: center; gap: 5px; font: 500 12px var(--fm); color: var(--muted); border: 1px solid var(--divider); background: var(--well); padding: 2px 8px; white-space: nowrap; }
.chip.blue { color: var(--blue-l); border-color: #2c4a74; }
.chip.orange { color: var(--orange-l); border-color: #6a4a26; }
.chip.cyan { color: var(--cyan); border-color: #24606a; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(#2a3442, #1f2732); border: 1px solid var(--trim-dim); color: var(--text); padding: 6px 12px; cursor: pointer; font: 600 14px var(--fd); letter-spacing: .08em; text-transform: uppercase; }
.btn:hover { border-color: var(--blue); text-decoration: none; }
.btn.on { border-color: var(--blue); background: var(--row-sel); color: var(--blue-l); }

/* ---- item icons */
.ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; background: var(--well); border: 1px solid var(--divider); box-shadow: inset 0 1px 2px #000c; }
.ico:hover { border-color: var(--blue-l); text-decoration: none; }
.ico img { width: 32px; height: 32px; }
.ico.in { border-color: #2c4a74; }
.ico.out { border-color: #8a5a28; }
.ico .n { position: absolute; right: 1px; bottom: -1px; font: 600 12px var(--fm); color: #fff; text-shadow: 1px 1px 0 #000, -1px 0 0 #000; }
.ico .vial { width: 14px; height: 24px; border: 1px solid #ffffff55; border-radius: 3px 3px 6px 6px; box-shadow: inset 0 -14px 0 var(--fc, #3f76e4), inset 0 0 0 1px #0006; }
.ico .van, .ico .tag, .ico .unk { font: 700 10px/1 var(--fm); color: var(--muted); text-align: center; padding: 2px; letter-spacing: -.02em; overflow: hidden; }
.ico .tag { color: var(--blue-l); }
.ico .van { font: 600 8px/1.05 var(--fb); letter-spacing: 0; text-transform: uppercase; color: #b9c3cd; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; word-break: break-word; }
.ico.big .van { font-size: 12px; }
.ico .van.tg { color: #a9c4ea; }
.ico .hash { position: absolute; left: 2px; top: 0; font: 700 10px var(--fm); color: var(--blue-l); text-shadow: 1px 1px 0 #000; }
.ico.sm .van { font-size: 6px; -webkit-line-clamp: 2; }
.ico.big { width: 76px; height: 76px; }
.ico.big img { width: 64px; height: 64px; }
.ico.big .vial { width: 26px; height: 46px; box-shadow: inset 0 -28px 0 var(--fc, #3f76e4); }
.ico.sm { width: 28px; height: 28px; }
.ico.sm img { width: 24px; height: 24px; }
.ico.sm .vial { width: 10px; height: 18px; box-shadow: inset 0 -10px 0 var(--fc, #3f76e4); }
.ico.sm .van, .ico.sm .tag, .ico.sm .unk { font-size: 8px; }
.ico.empty { background: var(--well); }

/* ---- recipes */
.rec { background: var(--card); border: 1px solid var(--divider); padding: 10px 12px; }
.rec .hd { display: flex; align-items: center; gap: 8px; font: 600 13px var(--fd); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rec .hd a { color: var(--blue-l); }
.rec .body { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.slots3 { display: grid; grid-template-columns: repeat(3, 40px); gap: 2px; }
.arrow { width: 30px; height: 14px; position: relative; flex: none; }
.arrow::before { content: ""; position: absolute; left: 0; right: 7px; top: 6px; height: 2px; background: var(--trim); }
.arrow::after { content: ""; position: absolute; right: 0; top: 2px; border-left: 9px solid var(--trim); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.plus { color: var(--muted); font: 600 16px var(--fm); }
.ings { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.rec .lines { margin: 8px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.rec .lines li { padding-left: 12px; position: relative; }
.rec .lines li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; background: var(--cyan); }
.mach { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 600 11px var(--fd); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); max-width: 90px; text-align: center; }
.recs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }

/* ---- item header */
.head { display: flex; gap: 16px; align-items: flex-start; }
.head .meta { min-width: 0; }
.tips { margin: 10px 0 0; color: var(--muted); }
.used { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 4px; }
.row { display: flex; align-items: center; gap: 10px; padding: 4px 8px; color: var(--text); border-left: 2px solid transparent; min-width: 0; }
.row:hover { background: var(--row-hover); border-left-color: var(--blue); text-decoration: none; }
.row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .k { margin-left: auto; color: var(--dim); font: 11px var(--fm); flex: none; }

/* ---- manual */
.mrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; }
.page { max-width: 760px; }
.page .b { font-size: 16px; }
.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.toc { columns: 2 260px; column-gap: 24px; }
.toc a { display: block; padding: 3px 0; break-inside: avoid; }
.toc h3 { break-after: avoid; margin-top: 14px; }

/* ---- list page */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 2px 10px; }

/* ---- home */
.hero { padding: 26px 0 8px; }
.hero h1 { font-size: clamp(34px, 7vw, 58px); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin-top: 18px; }
.tile { display: block; color: var(--text); }
.tile:hover { text-decoration: none; border-color: var(--blue); }
.tile .n { font: 700 34px/1 var(--fd); color: var(--blue-l); }
.foot { color: var(--dim); font: 12px var(--fm); margin-top: 40px; border-top: 1px solid var(--divider); padding-top: 10px; }

/* ---- map */
.mapbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.mapwrap { position: relative; height: calc(100vh - 210px); min-height: 380px; background:
  linear-gradient(var(--well), var(--well)) padding-box; border: 1px solid var(--trim-dim); overflow: hidden; touch-action: none; cursor: grab; }
.mapwrap.drag { cursor: grabbing; }
.mapwrap svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; user-select: none; -webkit-user-select: none; }
.mapwrap .bggrid { fill: url(#gridp); }
.nd rect { fill: var(--card); stroke: var(--divider); stroke-width: 1; }
.nd text { fill: var(--text); font: 13px var(--fb); pointer-events: none; }
.nd { cursor: pointer; }
.nd:hover rect { stroke: var(--blue-l); }
.nd.fluid rect { fill: #182230; }
.nd.vanilla rect { fill: #1a1f26; stroke-dasharray: 3 2; }
.nd.hit rect { stroke: var(--orange); stroke-width: 2.5; }
.blk { fill: #ffffff05; stroke: var(--divider); stroke-width: 1; }
.dim .blk { opacity: .4; }
.mlab { fill: var(--blue-l); font: 600 15px var(--fd); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.dim .blk { fill: #ffffff05; stroke: var(--divider); stroke-width: 1; }
.dim .blk { opacity: .4; }
.mlab { opacity: .3; }
.ed { fill: none; stroke: #4a5a6e; stroke-width: 1.3; opacity: .7; }
.dim .nd { opacity: .18; }
.dim .ed { opacity: .06; }
.dim .nd.up, .dim .nd.down, .dim .nd.sel { opacity: 1; }
.dim .ed.up { opacity: 1; stroke: var(--blue); stroke-width: 2; }
.dim .ed.down { opacity: 1; stroke: var(--orange); stroke-width: 2; }
.nd.sel rect { stroke: var(--text); stroke-width: 2.5; }
.mapcard { position: absolute; left: 10px; bottom: 10px; right: 10px; max-width: 420px; display: none; }
.mapcard.on { display: block; }
.zoomb { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; }
.zoomb .btn { width: 36px; height: 36px; justify-content: center; padding: 0; font-size: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 12px var(--fm); color: var(--muted); margin: 6px 0; }
.legend i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 5px; }

/* ---- 3D */
.viewer { position: relative; height: min(70vh, 640px); min-height: 320px; background: radial-gradient(ellipse at 50% 40%, #222c38, #0b0e13 75%); border: 1px solid var(--trim-dim); touch-action: none; }
.viewer canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.viewer .ov { position: absolute; left: 12px; top: 10px; color: var(--muted); font: 12px var(--fm); pointer-events: none; }
.viewer .ld { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font: 14px var(--fm); }
.mcards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-bottom: 12px; }
.mcards a { display: block; }
.mcards a.on { border-color: var(--blue); background: var(--row-sel); }

details.bal { margin-top: 10px; }
details.bal summary { cursor: pointer; color: var(--muted); font: 600 14px var(--fd); letter-spacing: .08em; text-transform: uppercase; }
.tbl { overflow-x: auto; }
.tbl table { border-collapse: collapse; font-size: 13px; margin-top: 8px; min-width: 100%; }
.tbl th, .tbl td { border: 1px solid var(--divider); padding: 4px 8px; text-align: left; vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; background: var(--well); }

@media (max-width: 640px) {
  .top-in { gap: 6px 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin: 0 0 4px; }
  nav.main { margin-left: auto; }
  nav.main a { padding: 6px 6px; font-size: 14px; }
  .brand small { display: none; }
  .head { gap: 12px; }
  .ico.big { width: 60px; height: 60px; }
  .ico.big img { width: 48px; height: 48px; }
  .mapwrap { height: calc(100vh - 250px); }
}

/* ================= showcase layer (concept 2 Nov): hero 3D, the road, the hangar, item hero ================= */
body { background: radial-gradient(1200px 600px at 70% -10%, #16273d 0%, transparent 60%), var(--bg); background-attachment: fixed; }
.top { background: linear-gradient(#141b24ee, #10151cee); backdrop-filter: blur(8px); }
.kick { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--fd); letter-spacing: .18em; text-transform: uppercase; color: var(--blue-l); }
.kick .dot { width: 7px; height: 7px; background: var(--blue-l); box-shadow: 0 0 10px var(--blue-l); border-radius: 50%; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 2px var(--blue-l); } }
.btn.pri { background: linear-gradient(#3f86e6, #2d63b3); border-color: #6fa8ff; color: #fff; box-shadow: 0 0 18px #3a7bd555; }
.btn { transition: border-color .15s, box-shadow .15s, transform .15s; }
.btn:hover { box-shadow: 0 0 14px #3a7bd544; transform: translateY(-1px); }

.hero3d { position: relative; margin: -22px -16px 10px; min-height: min(78vh, 640px); display: grid; grid-template-columns: minmax(300px, 0.9fr) 1.1fr; align-items: center;
  border-bottom: 1px solid var(--trim-dim); overflow: hidden; background: radial-gradient(700px 420px at 66% 55%, #1d3150 0%, #0d1116 70%); }
.hero3d::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #0d1116 0%, #0d111600 38%), linear-gradient(0deg, #0d1116 0%, #0d111600 22%); }
.hstage { position: absolute; inset: 0 0 0 26%; }
.hstage canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.hstage .ld { position: absolute; inset: 0; }
.htxt { position: relative; z-index: 2; padding: 40px 16px 40px max(16px, calc((100vw - 1180px) / 2 + 16px)); }
.ht { font: 700 clamp(64px, 12vw, 132px)/.9 var(--fd); letter-spacing: .04em; margin: 8px 0 10px; background: linear-gradient(180deg, #f4f7fa 20%, #8fa4bd 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px #3a7bd533; }
.hsub { font-size: 17px; color: #b8c4d0; max-width: 34ch; }
.hbtn { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.hstats { color: var(--muted); font: 13px var(--fm); }
.hstats b { color: var(--text); font: 700 18px var(--fd); margin: 0 4px 0 12px; }
.hstats b:first-child { margin-left: 0; }
.hcap { position: absolute; right: 18px; bottom: 16px; z-index: 2; font: 600 14px var(--fd); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--divider); background: #0f1318cc; padding: 6px 12px; }

.road { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.stop { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px 10px 12px; color: var(--text);
  background: linear-gradient(#1c232d, #151b23); border: 1px solid var(--divider); transition: border-color .15s, transform .15s, box-shadow .15s; }
.stop:hover { text-decoration: none; border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 24px #000a, 0 0 16px #3a7bd533; }
.stop .num { position: absolute; left: 8px; top: 6px; font: 700 13px var(--fm); color: var(--dim); }
.stop b { font: 600 16px var(--fd); letter-spacing: .06em; text-transform: uppercase; }
.stop .ico.big { background: radial-gradient(#22324a, var(--well)); border-color: #2c4a74; }

.hangar { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.card3d { position: relative; display: block; background: radial-gradient(circle at 50% 42%, #22344d 0%, #141a22 70%); border: 1px solid var(--divider); color: var(--text); overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s; }
.card3d img { width: 100%; aspect-ratio: 1; display: block; padding: 10px; transition: transform .35s; filter: drop-shadow(0 10px 12px #000a); }
.card3d:hover { text-decoration: none; border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 12px 30px #000c, 0 0 22px #3a7bd544; }
.card3d:hover img { transform: scale(1.06) rotate(-1deg); }
.card3d .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; background: linear-gradient(transparent, #0d1116f0); display: flex; flex-direction: column; }
.card3d .cap b { font: 600 17px var(--fd); letter-spacing: .05em; text-transform: uppercase; }
.card3d .cap span { color: var(--muted); font: 12px var(--fm); }

.ihero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: stretch; margin-bottom: 8px; }
.istage { position: relative; min-height: 380px; border: 1px solid var(--trim-dim); background: radial-gradient(ellipse at 50% 58%, #22344d 0%, #0b0e13 72%); overflow: hidden; }
.istage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.istage .ld { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font: 13px var(--fm); }
.istage .ihint { position: absolute; left: 12px; bottom: 10px; color: var(--dim); font: 12px var(--fm); pointer-events: none; }
.istage::before { content: ""; position: absolute; inset: 10px; border: 1px solid #ffffff0a; pointer-events: none; z-index: 1; }
.ped { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ped .ico.big { width: 168px; height: 168px; background: radial-gradient(#2a3d58, #0f1318 70%); border-color: #2c4a74; box-shadow: 0 0 40px #3a7bd533; }
.ped .ico.big img { width: 128px; height: 128px; }
.ped .ico.big .vial { width: 50px; height: 90px; box-shadow: inset 0 -56px 0 var(--fc); }
.iinfo { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.iinfo h1 { font-size: clamp(32px, 5vw, 50px); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 12px 0 6px; }
.st { background: linear-gradient(#1c232d, #151b23); border: 1px solid var(--divider); border-left: 3px solid var(--trim-dim); padding: 8px 10px; display: flex; flex-direction: column; }
.st span { color: var(--muted); font: 600 12px var(--fd); letter-spacing: .12em; text-transform: uppercase; }
.st b { font: 700 21px var(--fd); letter-spacing: .02em; }
.st.cyan { border-left-color: var(--cyan); } .st.cyan b { color: #8fe6f2; }
.st.blue { border-left-color: var(--blue); } .st.blue b { color: var(--blue-l); }
.st.orange { border-left-color: var(--orange); } .st.orange b { color: var(--orange-l); }
.rec { transition: border-color .15s; } .rec:hover { border-color: #3a4a5e; }

@media (max-width: 760px) {
  .hero3d { grid-template-columns: 1fr; min-height: 0; align-items: end; }
  .hstage { position: relative; inset: auto; height: 46vh; min-height: 260px; order: -1; }
  .hero3d::after { background: linear-gradient(0deg, #0d1116 0%, #0d111600 30%); }
  .htxt { padding: 0 16px 26px; margin-top: -40px; }
  .hcap { top: 12px; bottom: auto; right: 12px; }
  .ihero { grid-template-columns: 1fr; }
  .istage { min-height: 300px; height: 52vh; }
}

/* ================= full build (2 Nov): viewer toolbar, hangar page, map hover ================= */
.vbar { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: flex; align-items: center; gap: 4px; background: #0f1318d9; border: 1px solid var(--divider); padding: 4px; backdrop-filter: blur(6px); }
.vb { width: 32px; height: 30px; background: linear-gradient(#2a3442, #1f2732); border: 1px solid var(--trim-dim); color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; }
.vb:hover { border-color: var(--blue); color: var(--text); }
.vb.on { color: var(--blue-l); border-color: #2c4a74; box-shadow: inset 0 0 8px #3a7bd544; }
.vx { display: flex; align-items: center; gap: 6px; color: var(--muted); font: 600 12px var(--fd); letter-spacing: .1em; text-transform: uppercase; padding: 0 6px; }
.vx input { width: 90px; accent-color: var(--blue); }
.istage.fs, .istage:fullscreen { position: fixed; inset: 0; z-index: 50; min-height: 0; height: 100%; border: 0; }
.istage .ihint { bottom: 56px; }
.card3d.more { display: flex; align-items: flex-end; min-height: 160px; background: radial-gradient(circle at 50% 40%, #1d3150, #141a22 70%); }
.card3d.more .cap { position: static; background: none; }
.card3d.more b { color: var(--blue-l); }
.hfilter { margin-left: auto; background: var(--well); border: 1px solid var(--divider); color: var(--text); padding: 6px 10px; font: 14px var(--fb); min-width: 160px; outline: none; }
.hfilter:focus { border-color: var(--blue); }
.mhover { position: absolute; z-index: 5; width: 290px; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
  background: linear-gradient(#1c232df2, #151b23f2); border: 1px solid var(--trim-dim); box-shadow: 0 10px 30px #000c, 0 0 16px #3a7bd522; padding: 10px; }
.mhover.on { opacity: 1; transform: none; }
.mh { display: flex; align-items: center; gap: 10px; }
.mh .th { width: 84px; height: 84px; background: radial-gradient(#22344d, #0f1318 70%); border: 1px solid var(--divider); }
.mh b { display: block; font: 600 17px var(--fd); letter-spacing: .05em; text-transform: uppercase; }
.mh span { color: var(--muted); font: 12px var(--fm); }
.mhr { margin-top: 8px; border-top: 1px solid var(--divider); padding-top: 6px; }
.mhr > span { display: block; color: var(--muted); font: 600 12px var(--fd); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.mhf { margin-top: 6px; color: var(--dim); font: 11px var(--fm); }
@media (max-width: 640px) { .vx input { width: 64px; } .hfilter { margin-left: 0; flex: 1; } }

/* ================= animation (2 Nov): play button, phase label, muzzle flash ================= */
.vb.wide { width: auto; padding: 0 10px; font: 600 13px var(--fd); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-l); border-color: #6a4a26; }
.vb.wide.on { color: #fff; background: linear-gradient(#b8742f, #8a5420); border-color: var(--orange-l); box-shadow: 0 0 14px #d58a3a66; }
.alabel { position: absolute; left: 12px; top: 10px; z-index: 2; font: 600 14px var(--fd); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
  background: #0f1318cc; border: 1px solid #24606a; padding: 4px 10px; pointer-events: none; }
.alabel.hot { color: #ffd9a8; border-color: var(--orange); box-shadow: 0 0 16px #d58a3a66; }
.hstage .alabel { left: auto; right: 18px; top: 18px; }
.flash { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 45%, #ffffff 0%, #bfe0ff 25%, #6fa8ff55 55%, transparent 80%); mix-blend-mode: screen; }
@media (max-width: 760px) { .hstage .alabel { right: auto; left: 12px; top: 56px; } }
