:root {
  --ink: #F3F1EC;
  --mut: #A6A0A0;
  --or: #FF6B35;
  --or2: #FFB46B;
  --panel: rgba(13, 15, 21, .94);
  --line: rgba(255, 255, 255, .1);
  --line2: rgba(255, 255, 255, .18);
  --green: #7CF5A0;
  --disp: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body { background: #160B12; color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.mut { color: var(--mut); }

/* scenes: rendered stills on a 16:9 stage that covers the screen */
.scene { position: fixed; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; background: #0B0608; }
.scene.on { opacity: 1; visibility: visible; }
.stage { position: absolute; transform-origin: 51% 61.5%; }
#s-cabin .stage { transform-origin: 57% 47%; }
.layer { position: absolute; inset: 0; will-change: transform; transform: scale(1.04); }
.layer img { width: 100%; height: 100%; display: block; user-select: none; }
.layer video.bg { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
#s-walk .layer { transform: none !important; }
.stage.pushing { transform: scale(7); filter: brightness(1.5); transition: transform 1.55s cubic-bezier(.55, 0, .85, .35), filter 1.55s; }
.stage.arrive { animation: arrive 1.4s cubic-bezier(.2, .7, .2, 1); }
@keyframes arrive { from { transform: scale(1.22); filter: brightness(1.9) blur(8px); } }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scene::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55)); }
#flash { position: fixed; inset: 0; z-index: 31; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 55%, #FFF4DE, #FFB46B 45%, #2A0E06); transition: opacity 1.2s ease-in; }
#flash.on { opacity: 1; }
#fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .6s; z-index: 30; }
#fade.on { opacity: 1; }
body:not(.ready)::after { content: 'Preparing the ship…'; position: fixed; inset: 0; display: grid; place-items: center; background: #160B12; font-family: var(--mono); color: var(--mut); z-index: 60; }

/* the hatch: a warm breathing glow and a hotspot */
.hatch-glow { position: absolute; width: 9%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 214, 160, .75), rgba(255, 150, 70, .28) 45%, transparent 75%); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: translate(-50%, -50%) scale(.9); } }
.hot { position: absolute; border-radius: 40% 40% 8px 8px; cursor: pointer; }
.hot .ring { position: absolute; inset: -14%; border-radius: inherit; border: 2px solid rgba(255, 196, 130, .85); box-shadow: 0 0 22px rgba(255, 150, 70, .7), inset 0 0 16px rgba(255, 150, 70, .4); animation: ring 2.4s ease-in-out infinite; }
@keyframes ring { 50% { transform: scale(1.12); opacity: .35; } }
.hot .lbl { position: absolute; left: 50%; bottom: calc(100% + 26%); transform: translateX(-50%); white-space: nowrap; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; background: rgba(10, 6, 8, .72); border: 1px solid rgba(255, 180, 107, .6); opacity: 0; transition: opacity .25s, transform .25s; }
.hot:hover .lbl, .hot:focus-visible .lbl { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.hot:hover .ring { border-color: #FFE2BE; box-shadow: 0 0 40px rgba(255, 170, 90, .95), inset 0 0 22px rgba(255, 170, 90, .6); }

/* the cabin monitor: live text laid on the glowing screen */
.screen { position: absolute; display: flex; flex-direction: column; justify-content: space-between; padding: 1.4% 1.6%; border-radius: 10px; text-align: left; cursor: pointer; color: #FFE9D2; font-family: var(--mono); overflow: hidden; container-type: size;
  background: radial-gradient(120% 120% at 50% 40%, rgba(70, 22, 4, .78), rgba(30, 8, 2, .9)); box-shadow: inset 0 0 30px rgba(255, 140, 60, .35); }
.screen::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .18) 2px 3px); pointer-events: none; }
.screen .scr-h { font-size: 6.5cqh; letter-spacing: .1em; font-weight: 500; text-shadow: 0 0 8px rgba(255, 220, 180, .8); }
.screen .scr-list { display: grid; gap: 2cqh; font-size: 7cqh; }
.screen .scr-list div { display: flex; justify-content: space-between; text-shadow: 0 0 6px rgba(255, 220, 180, .7); }
.screen .scr-cta { align-self: flex-start; font-size: 7.5cqh; padding: 1.5cqh 3cqh; border: 1px solid rgba(255, 240, 220, .8); border-radius: 4px; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .45; } }
.screen:hover { box-shadow: 0 0 0 2px rgba(255, 220, 180, .7), 0 0 40px rgba(255, 170, 90, .6); }

body.away #title { opacity: 0; transform: translateY(20px); pointer-events: none; }
body:not(.inside) .cabin-btns { display: none; }

/* top: CA strip + bar */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; }
.ca-top { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 7px 14px; background: rgba(10, 6, 8, .78); border-bottom: 1px solid rgba(255, 107, 53, .35); font-family: var(--mono); font-size: 12.5px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); flex-wrap: wrap; }
.ca-top .k { color: var(--or); letter-spacing: .1em; }
.ca-top code { word-break: break-all; }
.ca-top button { font-size: 11.5px; padding: 3px 10px; border-radius: 6px; border: 1px solid var(--line2); }
.bar { display: flex; align-items: center; gap: 12px; padding: 14px clamp(14px, 3vw, 30px); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-weight: 700; font-size: 19px; letter-spacing: .02em; flex: 1; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.logo img { width: 30px; height: 30px; }
.ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(10, 6, 8, .6); border: 1px solid var(--line2); }
.ic svg { width: 15px; height: 15px; fill: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: transform .15s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn.or { background: var(--or); color: #1A0A04; box-shadow: 0 0 26px rgba(255, 107, 53, .4); }
.btn.or:hover { transform: translateY(-1px); box-shadow: 0 0 40px rgba(255, 107, 53, .6); }
.btn.ghost { background: rgba(10, 6, 8, .6); border: 1px solid var(--line2); }
.btn.ghost:hover { border-color: var(--or); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* title card on Mars */
#title { position: fixed; left: clamp(16px, 5vw, 70px); bottom: clamp(70px, 14vh, 140px); z-index: 10; max-width: 520px; transition: opacity .8s, transform .8s; text-shadow: 0 4px 24px rgba(0, 0, 0, .55); }
#title.gone { opacity: 0; transform: translateY(20px); pointer-events: none; }
#title small { font-family: var(--mono); font-size: 12px; letter-spacing: .3em; color: var(--or2); }
#title h1 { font-family: var(--disp); font-size: clamp(48px, 7vw, 96px); line-height: .95; letter-spacing: -.03em; margin: 10px 0 14px; }
#title p { color: #F2DDD2; font-size: clamp(15px, 1.4vw, 18px); max-width: 430px; margin-bottom: 20px; }
#hint { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 10; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 16px; border-radius: 99px; background: rgba(10, 6, 8, .6); border: 1px solid rgba(255, 180, 107, .4); animation: nudge 2.2s ease-in-out infinite; white-space: nowrap; }
@keyframes nudge { 50% { transform: translate(-50%, -4px); } }
#tip { position: fixed; z-index: 25; pointer-events: none; font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: 8px; background: rgba(10, 6, 8, .85); border: 1px solid var(--or); }
.cabin-btns { position: fixed; right: clamp(14px, 3vw, 30px); bottom: 24px; z-index: 12; display: flex; gap: 10px; }

/* the launchpad panel */
#pad { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(5, 3, 4, .55); opacity: 0; transition: opacity .25s; padding: 16px; }
#pad.on { opacity: 1; }
.pad { width: min(1060px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid rgba(255, 107, 53, .45); border-radius: 18px; box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 60px rgba(255, 107, 53, .12); }
.pad-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #12141B; border-bottom: 1px solid var(--line); }
.pad-h b { font-family: var(--disp); font-size: 18px; flex: 1; }
.tabs { display: flex; gap: 6px; }
.tabs button { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 8px; color: var(--mut); border: 1px solid transparent; }
.tabs button.on { color: var(--ink); border-color: var(--or); background: rgba(255, 107, 53, .1); }
#pad-x { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line2); }
.pad-b { padding: 20px; }
.grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.field input, .field textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: #0A0C11; outline: 0; }
.field input:focus, .field textarea:focus { border-color: var(--or); }
.field textarea { min-height: 70px; resize: vertical; }
.field .note { font-size: 12px; color: var(--mut); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.patches { display: flex; gap: 8px; flex-wrap: wrap; }
.patches button { padding: 3px; border-radius: 50%; border: 2px solid var(--line2); background: #0A0C11; }
.patches button img { width: 54px; height: 54px; display: block; border-radius: 50%; }
.patches button.on { border-color: var(--or); box-shadow: 0 0 0 3px rgba(255, 107, 53, .25); }
.patches .up { width: 64px; height: 64px; font-size: 11px; color: var(--mut); }
.wallet { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #0A0C11; margin-bottom: 14px; }
.wallet .who { font-family: var(--mono); font-size: 12px; color: var(--mut); }
.wallet .who b { display: block; color: var(--ink); font-family: var(--body); font-size: 14px; }
.side { display: grid; gap: 12px; }
.card { border-radius: 14px; border: 1px solid var(--line); background: #0A0C11; padding: 16px; }
.prev { text-align: center; }
.prev img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 40px rgba(255, 107, 53, .25); }
.prev h3 { font-family: var(--disp); font-size: 24px; margin-top: 10px; }
.sum { display: grid; gap: 8px; font-size: 13.5px; }
.sum div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line2); }
.sum div:last-child { border: 0; padding: 0; }
.sum span { color: var(--mut); }
.err { color: #FF8A7A; font-size: 13.5px; margin-bottom: 10px; }
.status { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: #0A0C11; font-size: 14px; line-height: 1.7; word-break: break-word; }
.status.ok { border-color: rgba(124, 245, 160, .5); }
.status.bad { border-color: rgba(255, 138, 122, .6); }
.status a { color: var(--or2); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.full { width: 100%; }

/* live list */
.lrow { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.lrow:hover { background: rgba(255, 255, 255, .03); }
.lrow img, .lrow .ph { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: #1A1D25; }
.lrow b { display: block; font-size: 14.5px; }
.lrow small { font-size: 12px; color: var(--mut); }
.lrow .r { text-align: right; font-family: var(--mono); }
.lrow .bar { display: block; height: 3px; background: rgba(255, 255, 255, .08); margin-top: 6px; max-width: 220px; }
.lrow .bar i { display: block; height: 100%; background: var(--or); }

@media (max-width: 820px) {
  #title { top: 104px; bottom: auto; left: 16px; right: 16px; }
  #title h1 { font-size: 46px; margin: 6px 0 8px; }
  #title h1 br { display: none; }
  #title p { display: none; }
  #title small { font-size: 10.5px; letter-spacing: .2em; }
  .grid { grid-template-columns: 1fr; }
  #title { right: 16px; }
  .cabin-btns { left: 14px; right: 14px; justify-content: center; bottom: 70px; }
}
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } .tabs button { padding: 6px 8px; } .logo span { display: none; } }

/* ---------- launch control: a CRT console that matches the cabin screen ---------- */
:root { --teal: #4CE0D2; --crt: #07090C; }
#pad { background: radial-gradient(80% 70% at 50% 45%, rgba(20, 8, 4, .55), rgba(3, 2, 3, .82)); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.pad.console { position: relative; width: min(1120px, 100%); background: var(--crt); border: 1px solid rgba(255, 107, 53, .55); border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(76, 224, 210, .08), 0 0 60px rgba(255, 107, 53, .18), 0 50px 140px rgba(0, 0, 0, .8), inset 0 0 80px rgba(255, 107, 53, .05); }
.pad.console::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .16) 2px 3px), radial-gradient(130% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, .35)); }
#pad.on .pad.console { animation: power .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes power { 0% { transform: scaleY(.02) scaleX(.6); filter: brightness(3); opacity: .4; } 55% { transform: scaleY(1.02) scaleX(1); filter: brightness(1.6); } 100% { transform: none; filter: none; } }

.console .pad-h { background: linear-gradient(90deg, #120A07, #0B0D11); border-bottom: 1px solid rgba(255, 107, 53, .3); gap: 12px; }
.console .pad-h b { font-family: var(--mono); font-size: 13.5px; letter-spacing: .18em; color: #FFD8BC; text-shadow: 0 0 10px rgba(255, 107, 53, .6); }
.console .pad-h b i { color: var(--or); font-style: normal; }
.beacon { width: 10px; height: 10px; border-radius: 50%; background: var(--or); box-shadow: 0 0 12px var(--or); animation: blink 1.2s steps(2) infinite; }
.console .tabs button.on { border-color: var(--teal); background: rgba(76, 224, 210, .1); color: #DFFFFB; }
.tele { display: flex; gap: 22px; flex-wrap: wrap; padding: 8px 18px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: #8E9AA3; text-transform: uppercase; }
.tele b { color: #E8F7F5; font-weight: 500; }
.tele i.ok { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); margin-right: 8px; }
.green { color: #7CF5A0 !important; }

.console .grid { grid-template-columns: 1.25fr .9fr; gap: 20px; }
.steps { display: grid; gap: 12px; }
.step { position: relative; padding: 14px 16px 6px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent); }
.step::before, .step::after { content: ''; position: absolute; width: 12px; height: 12px; border-color: rgba(255, 107, 53, .7); border-style: solid; }
.step::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 12px; }
.step::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 12px; }
.step-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.step-h .n { font-family: var(--mono); font-size: 12px; color: var(--crt); background: var(--or); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.step-h b { font-family: var(--disp); font-size: 16px; letter-spacing: .02em; }
.step-h .hint { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: #6E7880; letter-spacing: .08em; text-transform: uppercase; }
.console .field input, .console .field textarea, .fuel-in input { background: #0B0E13; border: 1px solid rgba(76, 224, 210, .14); color: #F3F1EC; font-family: var(--body); transition: border-color .15s, box-shadow .15s; }
.console .field input:focus, .console .field textarea:focus, .fuel-in input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(76, 224, 210, .12), 0 0 18px rgba(76, 224, 210, .12); outline: 0; }
.console .field textarea { min-height: 58px; }
.tick { position: relative; }
.tick span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--or); font-family: var(--mono); }
.tick input { padding-left: 26px !important; text-transform: uppercase; font-family: var(--mono) !important; letter-spacing: .06em; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.console .patches button { border: 0; padding: 0; background: none; border-radius: 50%; transition: transform .2s, filter .2s; filter: saturate(.7) brightness(.8); }
.console .patches button img { width: 66px; height: 66px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.console .patches button:hover { transform: translateY(-3px) rotate(-4deg); filter: none; }
.console .patches button.on { filter: none; transform: translateY(-3px); box-shadow: 0 0 0 2px var(--or), 0 0 24px rgba(255, 107, 53, .55); }
.console .patches .up { width: 66px; height: 66px; border: 1px dashed rgba(255, 255, 255, .25) !important; color: #9AA4AB; font-family: var(--mono); font-size: 11px; filter: none; }

.fuel { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fuel-in { position: relative; flex: 0 0 150px; }
.fuel-in input { width: 100%; padding: 10px 46px 10px 12px; border-radius: 10px; font-family: var(--mono); font-size: 16px; }
.fuel-in span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 12px; color: #8E9AA3; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { font-family: var(--mono); font-size: 12.5px; padding: 8px 11px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .12); color: #C9D2D8; }
.chips button:hover { border-color: var(--or); }
.chips button.on { background: rgba(255, 107, 53, .14); border-color: var(--or); color: #FFE2CF; }
.gauge { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); margin: 12px 0 8px; overflow: hidden; }
.gauge i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--or)); box-shadow: 0 0 12px rgba(255, 107, 53, .6); transition: width .3s; }

/* the bay: rocket on the pad, readout, ignition */
.bay { display: grid; gap: 12px; align-content: start; }
.padview { position: relative; height: 270px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08);
  background: radial-gradient(90% 70% at 50% 100%, rgba(255, 107, 53, .25), transparent 60%), linear-gradient(#0E0A16, #2A1220 70%, #4A1C14); }
.padview .sky { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 85% 45%, #ffd, transparent), radial-gradient(1px 1px at 40% 12%, #fff, transparent), radial-gradient(1px 1px at 10% 60%, #fff, transparent); opacity: .7; }
.padview .tower { position: absolute; left: 22%; bottom: 34px; width: 10px; height: 180px; background: repeating-linear-gradient(45deg, #3A3F48 0 4px, #1B1E24 4px 8px); border-radius: 2px; box-shadow: 18px -60px 0 -4px transparent; }
.padview .tower::after { content: ''; position: absolute; left: 10px; top: 40px; width: 60px; height: 4px; background: #3A3F48; }
.padview .platform { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: linear-gradient(#2B1A16, #140C0B); border-top: 2px solid rgba(255, 107, 53, .5); }
.craft { position: absolute; left: 50%; bottom: 40px; width: 150px; transform: translateX(-50%); transition: transform .3s; }
.craft img { width: 150px; height: 150px; display: block; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .7)); animation: hover 4s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-5px); } }
.craft .flame { position: absolute; left: 50%; top: 100%; width: 34px; height: 0; transform: translateX(-50%); border-radius: 50% 50% 40% 40%; background: radial-gradient(closest-side, #FFF6D8, #FFB46B 45%, rgba(255, 107, 53, 0)); filter: blur(1px); transition: height .3s; }
.padview.arming .craft .flame { height: 46px; animation: flick .08s infinite alternate; }
.padview.arming .craft img { animation: shake .06s infinite alternate; }
@keyframes flick { to { transform: translateX(-50%) scaleY(.85); } }
@keyframes shake { to { transform: translate(1px, -1px); } }
.padview.liftoff .craft { animation: lift 3.6s cubic-bezier(.55, 0, .7, .2) forwards; }
.padview.liftoff .craft .flame { height: 120px; }
@keyframes lift { 0% { transform: translateX(-50%); } 100% { transform: translate(-50%, -420px); } }
.count { position: absolute; left: 0; right: 0; top: 18px; text-align: center; font-family: var(--mono); font-size: 34px; font-weight: 600; color: #FFE6CF; text-shadow: 0 0 18px rgba(255, 107, 53, .9); }
.count.pop { animation: pop .6s ease-out; }
@keyframes pop { from { transform: scale(1.6); opacity: 0; } }
.padview .tag { position: absolute; right: 12px; bottom: 44px; text-align: right; }
.padview .tag b { display: block; font-family: var(--disp); font-size: 18px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.padview .tag span { font-family: var(--mono); font-size: 12px; color: var(--or2); }

.readout { display: grid; gap: 0; font-family: var(--mono); font-size: 12.5px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; padding: 6px 14px; background: #0A0C10; }
.readout div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.readout div:last-child { border: 0; }
.readout span { color: #7E8A92; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.readout b { font-weight: 500; color: #E6EEF0; }
.readout .tot b { color: #FFD2B4; font-size: 14px; }
.console .wallet { margin: 0; background: #0A0C10; border-color: rgba(76, 224, 210, .14); }

.ignite { position: relative; overflow: hidden; height: 58px; width: 100%; border-radius: 12px; border: 1px solid var(--or); background: #1A0C06; color: #FFE7D6; font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; touch-action: none; user-select: none; box-shadow: 0 0 24px rgba(255, 107, 53, .25), inset 0 0 20px rgba(255, 107, 53, .15); }
.ignite .fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--k, 0)); background: linear-gradient(90deg, #FF6B35, #FFB46B); }
.ignite .lbl { position: relative; z-index: 1; }
.ignite:hover { box-shadow: 0 0 36px rgba(255, 107, 53, .5), inset 0 0 20px rgba(255, 107, 53, .2); }
.ignite.holding .lbl, .ignite.lit .lbl { color: #1A0A04; }
.ignite.lit { --k: 1; animation: lit .25s 3 alternate; }
@keyframes lit { to { filter: brightness(1.4); } }
.ignite[disabled] { opacity: .5; pointer-events: none; }
.brief { border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 18px; line-height: 1.75; background: #0A0C10; }

@media (max-width: 820px) {
  .console .grid { grid-template-columns: 1fr; }
  .bay { order: -1; }
  .padview { height: 200px; }
  .craft, .craft img { width: 110px; height: 110px; }
  .three { grid-template-columns: 1fr; }
  .tele .hide-s { display: none; }
}
.console .note { display: block; margin-top: 10px; font-size: 12px; color: #7E8A92; font-family: var(--mono); letter-spacing: .02em; }
@media (max-width: 560px) {
  .console .pad-h { flex-wrap: wrap; row-gap: 8px; }
  .console .pad-h b { font-size: 11.5px; letter-spacing: .12em; flex: 1; }
  .console .tabs { order: 3; width: 100%; }
  .console .tabs button { flex: 1; }
}

/* pair picker */
.pairpick { position: relative; margin-bottom: 10px; }
#pair-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(76, 224, 210, .2); background: #0B0E13; text-align: left; }
#pair-btn:hover { border-color: var(--teal); }
.pi { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; font-weight: 700; color: #1A0A04; background: linear-gradient(135deg, #FFB46B, #FF6B35); }
#pair-btn .pt { flex: 1; display: grid; }
#pair-btn .pt b { font-family: var(--mono); font-size: 15px; }
#pair-btn .pt small { font-size: 11.5px; color: #7E8A92; }
#pair-btn .car { color: #7E8A92; }
.pair-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: #0B0E13; border: 1px solid rgba(76, 224, 210, .35); border-radius: 12px; box-shadow: 0 30px 70px rgba(0, 0, 0, .7); padding: 8px; }
.pair-menu input { width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); background: #07090C; color: #F3F1EC; font-family: var(--mono); font-size: 13px; outline: 0; }
.pair-menu input:focus { border-color: var(--teal); }
.pair-list { max-height: 260px; overflow: auto; margin-top: 6px; scrollbar-width: thin; scrollbar-color: #2a2f37 transparent; }
.pg { padding: 8px 8px 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #6E7880; }
.pair-list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; text-align: left; }
.pair-list button:hover { background: rgba(255, 255, 255, .04); }
.pair-list button.on { background: rgba(255, 107, 53, .12); }
.pair-list .pi { width: 24px; height: 24px; font-size: 12px; border-radius: 6px; }
.pair-list b { font-family: var(--mono); font-size: 13px; min-width: 64px; }
.pair-list small { color: #7E8A92; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* co-pilot */
.step-h .n.ai { background: var(--teal); }
.cp-labs { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-labs button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); background: #0B0E13; font-size: 13px; color: #D9E1E6; }
.cp-labs button i { font-style: normal; font-family: var(--mono); font-size: 11px; color: #6E7880; }
.cp-labs button.on { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset, 0 0 14px rgba(76, 224, 210, .18); }
.lg { width: 20px; height: 20px; border-radius: 5px; display: inline-grid; place-items: center; background: #1B2027; font-size: 11px; font-weight: 700; color: #F3F1EC; flex: none; }
.cp-models { margin-top: 8px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; overflow: hidden; }
.cp-models button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .06); background: #090B0F; }
.cp-models button:last-child { border-bottom: 0; }
.cp-models button:hover { background: #0E1218; }
.cp-models button.on { background: rgba(76, 224, 210, .08); }
.cp-models .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #4A535C; flex: none; }
.cp-models button.on .dot { border-color: var(--teal); box-shadow: inset 0 0 0 3px #090B0F; background: var(--teal); }
.cp-models .nm { flex: 1; display: grid; }
.cp-models .nm b { font-size: 14px; }
.cp-models .nm small { font-family: var(--mono); font-size: 11px; color: #6E7880; }
.cp-models .pr { font-family: var(--mono); font-size: 12px; color: #8FE8DE; }
.cp-idea { display: flex; gap: 8px; margin-top: 10px; }
.cp-idea input, .cp-askrow input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(76, 224, 210, .2); background: #0B0E13; color: #F3F1EC; outline: 0; }
.cp-idea input:focus, .cp-askrow input:focus { border-color: var(--teal); }
.cp-idea .btn { padding: 9px 14px; font-size: 13px; }
.cp-off { color: #FFB46B !important; }
.cp-chat { margin: 8px 0 6px; }
.cp-chat summary { cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8FE8DE; }
.cp-log { max-height: 180px; overflow: auto; display: grid; gap: 8px; margin: 10px 0; font-size: 13.5px; line-height: 1.55; }
.cp-log div { padding: 8px 10px; border-radius: 10px; background: #0B0E13; border: 1px solid rgba(255, 255, 255, .06); }
.cp-log div.assistant { border-color: rgba(76, 224, 210, .25); }
.cp-log b { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #7E8A92; margin-bottom: 2px; }
.cp-askrow { display: flex; gap: 8px; }
.typed { animation: typed .8s ease-out; }
@keyframes typed { from { box-shadow: 0 0 0 2px var(--teal), 0 0 24px rgba(76, 224, 210, .5); } }
@media (max-width: 560px) { .cp-idea { flex-direction: column; } }
