/* Extraction Realm Odyssey — cold industrial HUD */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --void: #070c13;
  --hull: #0c141e;
  --hull-2: #111c28;
  --line: #1e2e3e;
  --ice: #35d6e6;
  --ice-dim: #1c93a3;
  --signal: #ff7a1a;
  --frost: #e7f2f7;
  --grey: #8399a8;
  --go: #4ade80;
  --sans: 'Space Grotesk', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

body {
  background-color: var(--void);
  color: var(--frost);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(rgba(53, 214, 230, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 214, 230, .035) 1px, transparent 1px),
    radial-gradient(ellipse at 78% 0%, rgba(53, 214, 230, .14), transparent 55%);
  background-size: 64px 64px, 64px 64px, auto;
  background-attachment: fixed;
}
body.freeze { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--ice); text-decoration: none; }
a:hover { color: var(--frost); }

.bay { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.13; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); }
h3 { font-size: 1.16rem; }

.code {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ice-dim);
}

/* ---- buttons ---- */
.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .88rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.act-ice { background: var(--ice); color: #04191c; box-shadow: 0 0 0 1px rgba(53, 214, 230, .35), 0 8px 26px -14px rgba(53, 214, 230, .9); }
.act-ice:hover { background: #6ceaf6; color: #04191c; box-shadow: 0 0 0 1px rgba(53, 214, 230, .6), 0 12px 30px -12px rgba(53, 214, 230, 1); }
.act-flare { background: var(--signal); color: #1a0a00; }
.act-flare:hover { background: #ff9445; color: #1a0a00; }
.act-hull { background: transparent; border-color: var(--line); color: var(--frost); }
.act-hull:hover { border-color: var(--ice); color: var(--ice); background: rgba(53, 214, 230, .07); }
.act-flat { background: none; color: var(--grey); padding: .6rem .8rem; }
.act-flat:hover { color: var(--frost); }
.act-s { padding: .55rem 1rem; font-size: .74rem; }
.act-full { width: 100%; }

/* ---- status strip ---- */
.strip {
  border-bottom: 1px solid var(--line);
  background: #050a10;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
}
.strip-row { display: flex; align-items: center; gap: 1.6rem; height: 34px; overflow: hidden; white-space: nowrap; }
.strip-row b { color: var(--go); font-weight: 700; }
.strip-row i { font-style: normal; color: var(--signal); }
.strip-row span:last-child { margin-left: auto; color: var(--ice-dim); }

/* ---- header ---- */
.bridge {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 12, 19, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bridge-row { display: flex; align-items: center; gap: 1.2rem; min-height: 70px; }

.mark { display: flex; align-items: center; gap: .7rem; color: var(--frost); }
.mark img { width: 36px; height: 36px; }
.mark b { font-size: .98rem; font-weight: 700; letter-spacing: -.01em; }
.mark b em { font-style: normal; color: var(--ice); }
.mark small { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .3em; color: var(--grey); text-transform: uppercase; }

.routes { display: flex; gap: .2rem; margin-left: auto; }
.routes a {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  padding: .5rem .75rem;
  border: 1px solid transparent;
  border-radius: 3px;
}
.routes a:hover, .routes a.live { color: var(--ice); border-color: var(--line); background: rgba(53, 214, 230, .06); }

.crew { display: flex; align-items: center; gap: .5rem; }
.badge {
  display: none;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(74, 222, 128, .4);
  background: rgba(74, 222, 128, .08);
  border-radius: 3px;
  padding: .45rem .8rem;
}
.badge.live { display: inline-flex; }
.badge b { color: var(--go); font-weight: 700; }
.badge i { width: 6px; height: 6px; background: var(--go); box-shadow: 0 0 8px var(--go); }

.hatch { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; }
.hatch span { width: 24px; height: 2px; background: var(--ice); transition: .2s; }
.hatch.live span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hatch.live span:nth-child(2) { opacity: 0; }
.hatch.live span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- hero ---- */
.launch { padding: 5rem 0 4.4rem; border-bottom: 1px solid var(--line); }
.launch-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 3.4rem; align-items: center; }

.flag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--signal);
  border: 1px solid rgba(255, 122, 26, .4);
  border-radius: 3px;
  padding: .35rem .8rem;
  margin-bottom: 1.5rem;
}
.flag::before { content: ''; width: 6px; height: 6px; background: var(--signal); animation: blip 1.8s infinite; }
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.launch h1 em { font-style: normal; color: var(--ice); }
.launch p.brief { color: #b9cbd6; font-size: 1.08rem; margin: 1.3rem 0 2rem; max-width: 540px; }
.launch-acts { display: flex; flex-wrap: wrap; gap: .7rem; }

.frame { position: relative; padding: 12px; }
.frame::before, .frame::after {
  content: '';
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ice);
}
.frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.frame::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.frame img { border: 1px solid var(--line); border-radius: 2px; }

.telemetry { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 3rem; }
.telemetry div { background: var(--hull); padding: 1rem 1.1rem; }
.telemetry strong { display: block; font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--ice); line-height: 1.2; }
.telemetry span { font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }

/* ---- sections ---- */
.sector { padding: 5rem 0; }
.sector-fill { background: var(--hull); border-bottom: 1px solid var(--line); }

.sector-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.8rem; border-bottom: 1px solid var(--line); padding-bottom: 1.4rem; }
.sector-head p { color: var(--grey); max-width: 430px; font-size: .96rem; }
.sector-head h2 { margin-top: .6rem; }
.sector-head h2 em { font-style: normal; color: var(--ice); }

/* ---- game panels ---- */
.manifest { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.unit {
  background: var(--hull-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.unit:hover { border-color: var(--ice); transform: translateY(-5px); box-shadow: 0 0 0 1px rgba(53, 214, 230, .25), 0 22px 40px -24px rgba(0, 0, 0, .9); }
.unit-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a1219; border-bottom: 1px solid var(--line); }
.unit-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; filter: saturate(.85); }
.unit:hover .unit-art img { transform: scale(1.05); filter: saturate(1.05); }
.unit-id {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: rgba(7, 12, 19, .9);
  border: 1px solid var(--line);
  color: var(--ice);
  padding: .22rem .55rem;
}
.unit-in { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.unit-in p { font-size: .94rem; color: var(--grey); flex: 1; }
.readout { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); border-block: 1px solid var(--line); padding: .6rem 0; }
.readout b { color: var(--frost); font-weight: 500; }

/* ---- split ---- */
.rig { display: grid; grid-template-columns: .92fr 1.08fr; gap: 3.4rem; align-items: center; }
.spec { list-style: none; display: grid; gap: .8rem; margin: 1.6rem 0 2rem; }
.spec li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; color: #b9cbd6; font-size: .97rem; }
.spec li::before {
  content: '+';
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ice);
  line-height: 1.5;
}

/* ---- feature modules ---- */
.mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mod { background: var(--hull-2); padding: 1.9rem 1.6rem; transition: background .2s ease; }
.mod:hover { background: #16232f; }
.mod-no { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; color: var(--signal); display: block; margin-bottom: 1rem; }
.mod h3 { margin-bottom: .5rem; }
.mod p { font-size: .93rem; color: var(--grey); }

/* ---- cta ---- */
.beacon { position: relative; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.beacon > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.beacon-in {
  position: relative;
  padding: 4.2rem 2.4rem;
  max-width: 620px;
  background: linear-gradient(100deg, rgba(7, 12, 19, .95), rgba(7, 12, 19, .55));
}
.beacon-in p { color: #b9cbd6; margin: 1rem 0 1.8rem; }

/* ---- text pages ---- */
.header-slab { padding: 3.4rem 0 2.6rem; background: var(--hull); border-bottom: 1px solid var(--line); }
.header-slab p { color: var(--grey); max-width: 640px; margin-top: .8rem; }
.log { max-width: 820px; padding: 3.2rem 0 4.6rem; }
.log h2 { margin: 2.4rem 0 .9rem; font-size: 1.4rem; color: var(--ice); }
.log h2:first-child { margin-top: 0; }
.log p, .log li { color: #b3c5d1; margin-bottom: .95rem; }
.log ul, .log ol { padding-left: 1.3rem; }
.flagged {
  border: 1px solid rgba(255, 122, 26, .45);
  border-left-width: 3px;
  background: rgba(255, 122, 26, .07);
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
  border-radius: 3px;
}
.flagged strong { color: var(--signal); }

/* ---- forms ---- */
.cell { display: grid; gap: .35rem; margin-bottom: 1rem; }
.cell label { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.cell input, .cell textarea, .cell select {
  background: #050a10;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--frost);
  font-family: var(--sans);
  font-size: 1rem;
  padding: .78rem .95rem;
}
.cell input:focus, .cell textarea:focus, .cell select:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(53, 214, 230, .14); }
.cell textarea { min-height: 140px; resize: vertical; }
.console { background: var(--hull-2); border: 1px solid var(--line); border-radius: 3px; padding: 2rem; }
.ack { font-family: var(--mono); font-size: .8rem; background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .4); color: var(--go); padding: .85rem 1rem; margin-bottom: 1.2rem; border-radius: 3px; }

.duo-col { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.data-list { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.data-list li { background: var(--hull); padding: 1.1rem 1.2rem; }
.data-list li span { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ice-dim); margin-bottom: .2rem; }

/* ---- footer ---- */
.dock { background: #050a10; border-top: 1px solid var(--line); padding: 3.6rem 0 1.8rem; }
.dock-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 2.6rem; }
.dock-brand p { color: var(--grey); font-size: .91rem; margin-top: 1rem; }
.dock h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ice-dim); margin-bottom: 1rem; }
.dock ul { list-style: none; display: grid; gap: .55rem; }
.dock ul a { color: var(--grey); font-size: .92rem; }
.dock ul a:hover { color: var(--frost); }
.tag18 {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  border: 1px solid var(--signal);
  color: var(--signal);
  padding: .3rem .7rem;
  border-radius: 3px;
  margin-top: 1.2rem;
}
.dock-line {
  border-top: 1px solid var(--line);
  margin-top: 2.6rem;
  padding-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #647a89;
}

/* ---- overlays ---- */
.airlock {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(3, 6, 10, .9);
  backdrop-filter: blur(6px);
}
.airlock.live { display: flex; }

.panel {
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--hull-2);
  border: 1px solid var(--ice-dim);
  border-radius: 3px;
  padding: 2.1rem;
  box-shadow: 0 0 0 1px rgba(53, 214, 230, .15), 0 40px 70px -30px #000;
}
.panel-top { margin-bottom: 1.5rem; }
.panel-top img { width: 42px; height: 42px; margin-bottom: .8rem; }
.panel-top h2 { font-size: 1.4rem; }
.panel-top p { color: var(--grey); font-size: .92rem; margin-top: .45rem; }

.toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 1.5rem; }
.toggle button {
  background: var(--hull);
  border: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  padding: .7rem;
}
.toggle button.live { background: var(--ice); color: #04191c; }

.sheetX { display: none; }
.sheetX.live { display: block; }

.fault {
  display: none;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .04em;
  background: rgba(255, 122, 26, .12);
  border: 1px solid rgba(255, 122, 26, .5);
  color: #ff9445;
  padding: .65rem .85rem;
  margin-bottom: 1rem;
  border-radius: 3px;
}
.fault.live { display: block; }

.small { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--grey); margin-top: 1rem; line-height: 1.7; }
.column { display: grid; gap: .7rem; margin-top: 1.4rem; }

.crumb-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 110;
  transform: translateY(120%);
  transition: transform .35s ease;
  background: rgba(12, 20, 30, .98);
  border-top: 1px solid var(--ice-dim);
  padding: 1.1rem 0;
}
.crumb-bar.live { transform: translateY(0); }
.crumb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; justify-content: space-between; }
.crumb-row p { font-size: .89rem; color: #b3c5d1; max-width: 700px; }
.crumb-acts { display: flex; gap: .6rem; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .launch-grid, .rig, .duo-col { grid-template-columns: 1fr; gap: 2.4rem; }
  .sector-head { flex-direction: column; align-items: flex-start; }
  .dock-grid { grid-template-columns: 1fr 1fr; }
  .routes {
    position: fixed;
    inset: 104px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--hull);
    border-bottom: 1px solid var(--line);
    padding: .6rem 24px 1.2rem;
    display: none;
  }
  .routes.live { display: flex; }
  .routes a { padding: .75rem 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hatch { display: flex; order: 3; }
  .crew { order: 2; margin-left: auto; }
  .strip-row span:nth-child(2) { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .launch { padding: 3.4rem 0 3rem; }
  .sector { padding: 3.4rem 0; }
  .dock-grid { grid-template-columns: 1fr; }
  .panel { padding: 1.5rem; }
  .crew .act-hull { display: none; }
  .beacon-in { padding: 2.6rem 1.4rem; }
  .strip-row { gap: .9rem; }
}

/* locked game buttons for signed-out visitors */
a.shut {
  background: none;
  color: var(--ice);
  border: 1px dashed var(--ice-dim);
  box-shadow: none;
}

a.shut:hover { color: var(--frost); border-color: var(--ice); }
