/* Cyberpunk mission-control theme. Loaded last on every page, so it restyles the shared components. */
:root {
  --bg: #04050c; --panel: rgba(9, 13, 28, .86); --panel-2: rgba(14, 20, 40, .9); --line: #1b2848; --line-2: #2b3d6b;
  --text: #e6f1ff; --muted: #8fa3c8; --faint: #5d6d93;
  --accent: #00e5ff; --accent-bg: rgba(0, 229, 255, .12); --neon2: #ff2bd6; --ice: #00e5ff;
  --good: #39ff9f; --good-bg: rgba(57, 255, 159, .12); --warn: #ffb000; --warn-bg: rgba(255, 176, 0, .12);
  --bad: #ff3864; --bad-bg: rgba(255, 56, 100, .14); --gold: #ffd23f; --sun: #ffb000;
  --font: "Rajdhani", "Segoe UI", system-ui, sans-serif; --display: "Orbitron", "Rajdhani", system-ui, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, Consolas, monospace;
  --cut: 14px;
}
html, body { font: 500 16px/1.5 var(--font); letter-spacing: .01em; }
body {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 43, 214, .16), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, rgba(0, 229, 255, .12), transparent 60%),
    linear-gradient(rgba(0, 229, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(0, 229, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
}
body::after { /* faint scanlines */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); mix-blend-mode: overlay;
}
h1, h2, h3, .big-title, .hero-title, .score, .big-num, .score-big { font-family: var(--display); letter-spacing: .04em; }
h1 { text-transform: uppercase; text-shadow: 0 0 18px rgba(0, 229, 255, .35); }
h2 { text-transform: uppercase; font-size: 1.05rem; color: var(--accent); letter-spacing: .12em; }
h3 { font-size: 1rem; }
.hero-title { text-transform: uppercase; background: linear-gradient(90deg, #fff, var(--accent) 60%, var(--neon2)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero-hook span, .eyebrow { color: var(--neon2) !important; text-shadow: 0 0 14px rgba(255, 43, 214, .55); }
.mono, .nums, .stat .val, .gauge b, .chip, .score-chip, .kbd { font-family: var(--mono); }

/* panels: angled corners with a neon edge */
.panel, .card, .choice, .pcard, .stat, .mcard, .wcard, .actionbar, .badge, .check .tag {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.panel { background: linear-gradient(180deg, rgba(0, 229, 255, .05), transparent 120px), var(--panel); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(0, 229, 255, .25); position: relative; }
.panel::before { content: ""; position: absolute; top: 0; left: 0; width: 60px; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.capcom { background: linear-gradient(135deg, rgba(255, 43, 214, .1), rgba(0, 229, 255, .06)), var(--panel) !important; border-color: rgba(255, 43, 214, .45) !important; }
.capcom::before { background: var(--neon2) !important; box-shadow: 0 0 12px var(--neon2) !important; }
.capcom h3 { color: var(--neon2) !important; font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; }
.choice, .pcard, .card, .mcard, .wcard { border-color: var(--line-2) !important; background: var(--panel-2) !important; }
.choice.on, .pcard.on, .card.selected, .wcard.on { border-color: var(--accent) !important; box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px rgba(0, 229, 255, .18) !important; background: linear-gradient(135deg, rgba(0, 229, 255, .12), rgba(14, 20, 40, .95)) !important; }

/* buttons: angular, uppercase, glowing */
button, .btn {
  font-family: var(--display); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: rgba(0, 229, 255, .06); border: 1px solid rgba(0, 229, 255, .55); border-radius: 0;
  padding: 10px 18px; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background .15s, color .15s, box-shadow .15s, transform .1s; position: relative;
}
button:hover:not(:disabled) { background: rgba(0, 229, 255, .16); color: #fff; box-shadow: 0 0 18px rgba(0, 229, 255, .35); border-color: var(--accent); }
button:active:not(:disabled) { transform: translateY(1px) scale(.98); }
button.primary { background: linear-gradient(90deg, var(--accent), #6bf3ff); color: #021018; border-color: var(--accent); box-shadow: 0 0 20px rgba(0, 229, 255, .35); }
button.primary:hover:not(:disabled) { background: linear-gradient(90deg, #6bf3ff, #fff); color: #021018; box-shadow: 0 0 28px rgba(0, 229, 255, .6); }
button.big { padding: 14px 26px; font-size: 14px; }
button:disabled { opacity: .35; filter: grayscale(.6); }
button.on { background: rgba(255, 43, 214, .14); color: #ffc4f3; border-color: var(--neon2); }
button.launch:not(:disabled) { animation: neonpulse 1.6s ease-in-out infinite; }
@keyframes neonpulse { 50% { box-shadow: 0 0 34px rgba(0, 229, 255, .8), 0 0 4px #fff inset; } }
.kbd { color: inherit; border-color: currentColor; opacity: .75; border-radius: 0; }
input[type=range] { accent-color: var(--accent); }
input[type=range]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--accent), var(--neon2)); }
.field, input[type=text], input:not([type]), select { border-radius: 0 !important; border-color: var(--line-2) !important; background: rgba(4, 8, 20, .9) !important; font-family: var(--mono); }

/* tags, chips and bars */
.tag { border-radius: 0; font-family: var(--display); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border: 1px solid currentColor; background: transparent; }
.tag.accent { color: var(--accent); } .tag.good { color: var(--good); } .tag.warn { color: var(--warn); } .tag.bad { color: var(--bad); }
.chip { border-radius: 0; border: 1px solid currentColor; background: transparent; }
.bar { border-radius: 0; background: rgba(255, 255, 255, .06); height: 6px; }
.bar > i { border-radius: 0; background: linear-gradient(90deg, var(--accent), var(--good)); box-shadow: 0 0 10px rgba(0, 229, 255, .6); }
.bar > i.warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); } .bar > i.bad { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.stage { border-radius: 0; font-family: var(--display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding: 5px 16px; }
.stage.now { background: var(--accent); color: #021018; border-color: var(--accent); box-shadow: 0 0 16px rgba(0, 229, 255, .5); }
.stage.done { color: var(--good); border-color: rgba(57, 255, 159, .4); }

/* HUD shell */
.shell { background: linear-gradient(180deg, rgba(4, 6, 16, .96), rgba(6, 10, 24, .9)); border-bottom: 1px solid var(--line-2); box-shadow: 0 1px 0 rgba(0, 229, 255, .35), 0 8px 30px rgba(0, 0, 0, .5); }
.shell::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), var(--neon2), transparent); }
.shell .logo b { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 14px; }
.shell .logo small { font-family: var(--mono); color: var(--neon2); letter-spacing: .2em; text-transform: uppercase; font-size: 10px; }
.shell .node { border-radius: 0; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding: 4px 16px 4px 12px; font-family: var(--display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: rgba(0, 229, 255, .05); }
.shell .node .dot { border-radius: 0; transform: skewX(-12deg); background: transparent; border: 1px solid currentColor; }
.shell .node.now { background: rgba(0, 229, 255, .16); color: #fff; box-shadow: none; }
.shell .node.now .dot { background: var(--accent); color: #021018; }
.shell .track .link { background: linear-gradient(90deg, var(--accent), var(--neon2)); height: 1px; opacity: .6; }
.shell .icon { border-radius: 0; font-family: var(--display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; color: var(--accent); border-color: rgba(0, 229, 255, .45); }
.shell .chip.world { color: var(--warn); background: transparent; }
.shell .score-chip { color: var(--gold); text-shadow: 0 0 10px rgba(255, 210, 63, .5); }
.xpbar { border-radius: 0; height: 4px; } .xpbar i { background: linear-gradient(90deg, var(--neon2), var(--accent)); box-shadow: 0 0 8px var(--neon2); }

/* 3D viewport HUD */
.hud.tl { background: rgba(3, 6, 16, .82) !important; border: 1px solid rgba(0, 229, 255, .4) !important; border-radius: 0 !important; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.hud.tr button { background: rgba(3, 6, 16, .85) !important; }
.hud.tr button.primary { background: var(--accent) !important; }
.viewport, .globe-box { border: 1px solid rgba(0, 229, 255, .35) !important; border-radius: 0 !important; box-shadow: 0 0 30px rgba(0, 229, 255, .08) inset; }
.tip, .toast { border-radius: 0 !important; border-color: rgba(0, 229, 255, .5) !important; background: rgba(3, 6, 16, .94) !important; font-family: var(--font); }
.toast.good { border-color: var(--good) !important; } .toast.bad { border-color: var(--bad) !important; }
.lastline { border-radius: 0; font-family: var(--mono); font-size: 13px; background: rgba(0, 229, 255, .05); }
.score { text-shadow: 0 0 22px rgba(0, 229, 255, .5); }
.stars span.on { color: var(--gold); text-shadow: 0 0 14px var(--gold); }
.badge.got { background: linear-gradient(135deg, rgba(255, 210, 63, .14), transparent) !important; border-color: var(--gold) !important; }
.levelup > div { border-radius: 0; border-color: var(--neon2); box-shadow: 0 0 40px rgba(255, 43, 214, .5); font-family: var(--display); text-transform: uppercase; }
.coach .panel { border-color: var(--neon2) !important; }
.modal-bg { backdrop-filter: blur(4px); }
a { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* ---------- orbit mission planner console ---------- */
.elements { display: grid; gap: 8px; }
.el-row { display: grid; grid-template-columns: 190px 1fr 110px 26px; gap: 10px; align-items: center; font-family: var(--mono, 'Share Tech Mono', monospace); font-size: 14px; }
.el-row input[type=number] { width: 100%; padding: 6px 8px; background: #050a16; color: #00e5ff; border: 1px solid rgba(0,229,255,.45); font: 15px 'Share Tech Mono', monospace; text-align: right;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.el-row input[type=number]:focus { outline: none; box-shadow: 0 0 0 1px #00e5ff, 0 0 14px rgba(0,229,255,.4); }
.el-row em { font-style: normal; color: var(--muted); }
@media (max-width: 640px) { .el-row { grid-template-columns: 1fr 96px 24px; } .el-row span { grid-column: 1 / -1; } .el-row input[type=range] { grid-column: 1 / -1; } }
canvas.gt { display: block; width: 100%; aspect-ratio: 2 / 1; border: 1px solid rgba(0,229,255,.4); background: #04050c; box-shadow: 0 0 24px rgba(0,229,255,.12) inset; }
canvas.gt[hidden], .globe-box[hidden] { display: none; }
button.on { border-color: #00e5ff; color: #00e5ff; box-shadow: 0 0 12px rgba(0,229,255,.35), inset 0 0 10px rgba(0,229,255,.15); }
table.readout { width: 100%; border-collapse: collapse; font: 14px 'Share Tech Mono', monospace; }
table.readout td { padding: 5px 4px; border-bottom: 1px dashed rgba(0,229,255,.15); }
table.readout td:last-child { text-align: right; color: #00e5ff; font-variant-numeric: tabular-nums; }
.gng { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; margin-bottom: 5px; font-size: 14px; background: rgba(5,10,22,.6); border-left: 3px solid; }
.gng span { font: 700 11px 'Orbitron', sans-serif; letter-spacing: .08em; text-align: center; padding: 3px 0; }
.gng em { font: 13px 'Share Tech Mono', monospace; font-style: normal; color: var(--muted); }
.gng.go { border-color: #39ff9f; } .gng.go span { color: #04120b; background: #39ff9f; box-shadow: 0 0 10px rgba(57,255,159,.5); }
.gng.warn { border-color: #ffb020; } .gng.warn span { color: #1a1000; background: #ffb020; }
.gng.nogo { border-color: #ff3864; } .gng.nogo span { color: #fff; background: #ff3864; box-shadow: 0 0 10px rgba(255,56,100,.6); animation: nogo 1.2s infinite; }
@keyframes nogo { 50% { opacity: .55; } }
.burnbox { display: grid; gap: 10px; padding: 12px; border: 1px solid rgba(255,43,214,.35); background: rgba(255,43,214,.04); }
.formula { font: 13px 'Share Tech Mono', monospace; color: #ff9cf0; padding: 6px 8px; background: rgba(0,0,0,.35); overflow-x: auto; white-space: nowrap; }
.timeline { background: #070c1a; border-color: rgba(0,229,255,.35); }
.timeline i { background: linear-gradient(180deg, #39ff9f, #12a866); box-shadow: 0 0 8px rgba(57,255,159,.5); }
.timeline .now { background: #ff2bd6; box-shadow: 0 0 10px #ff2bd6; z-index: 2; }
.timeline i.out { z-index: 1; background: repeating-linear-gradient(45deg, rgba(255,56,100,.9) 0 6px, rgba(110,12,40,.9) 6px 12px); box-shadow: 0 0 8px rgba(255,56,100,.55); }
.event-box { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--warn); background: var(--warn-bg); animation: toastin .3s ease-out both; }
.event-box h3 { margin: 0; color: var(--warn); font-family: var(--display, 'Orbitron', sans-serif); text-transform: uppercase; letter-spacing: .08em; }
.event-box p { margin: 0; }
.event-box.good { border-color: var(--good); background: var(--good-bg); } .event-box.bad { border-color: var(--bad); background: var(--bad-bg); }
.event-box.info { border-color: var(--accent); background: var(--accent-bg); }
.scroll-x { overflow-x: auto; }
.analyst { border: 1px solid rgba(255,43,214,.45); background: rgba(255,43,214,.04); padding: 10px 14px; }
.analyst > summary { cursor: pointer; padding: 4px 0; }
.analyst > summary b { color: var(--neon2); font-family: var(--display, 'Orbitron', sans-serif); text-transform: uppercase; letter-spacing: .08em; }
.dtree { display: grid; gap: 10px; margin-top: 8px; }
.dq { margin: 0; color: var(--ink, #e6f1ff); font-weight: 700; }
.dopts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.dopt { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line-2, rgba(0,229,255,.4)); background: rgba(5,10,22,.7); }
.dopt.rec { border-color: var(--neon2); box-shadow: 0 0 18px rgba(255,43,214,.18); }
.dhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dhead b { font-family: var(--display, 'Orbitron', sans-serif); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; }
.drec { font: 700 10px var(--display, 'Orbitron', sans-serif); letter-spacing: .1em; text-transform: uppercase; color: #1a0016; background: var(--neon2); padding: 2px 6px; }
.dopt p { margin: 0; }
.dbranches { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1; }
.dbranches li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: start; padding: 6px 8px; font-size: 14px; background: rgba(0,0,0,.3); border-left: 3px solid var(--line-2, #345); overflow: hidden; }
.dbranches li.good { border-color: var(--good); } .dbranches li.warn { border-color: var(--warn); } .dbranches li.bad { border-color: var(--bad); }
.dbranches li i { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--p); background: currentColor; opacity: .7; }
.dbranches li.good { color: var(--good); } .dbranches li.warn { color: var(--warn); } .dbranches li.bad { color: var(--bad); }
.dbranches .dp { font: 700 13px var(--mono, 'Share Tech Mono', monospace); }
.dbranches .dt { color: var(--ink, #e6f1ff); }
.dexp { font-family: var(--mono, 'Share Tech Mono', monospace); color: var(--muted); }
.dnote { margin: 0; }
.ai-note { margin: 8px 0 0; padding: 8px 10px; border-left: 3px solid var(--neon2); background: rgba(255,43,214,.06); }
button:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }
.hub .hero::after { display: none; }
.golden { margin: 8px 0 12px; position: relative; }
.golden img { display: block; width: 100%; max-width: 560px; height: auto; border: 1px solid rgba(255,210,63,.5); box-shadow: 0 0 28px rgba(255,210,63,.18); }
.golden figcaption { font: 13px 'Share Tech Mono', monospace; color: #ffd23f; margin-top: 6px; }
.golden-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; align-items: center; }
.golden-panel .golden { margin: 0; }
@media (max-width: 760px) { .golden-panel { grid-template-columns: 1fr; } }

/* keep the HUD on one row on laptop-width screens once the campaign score gets wider */
@media (min-width: 901px) and (max-width: 1360px) { .shell { gap: 8px; padding-inline: 10px; } .shell .track .link { width: 8px; } .shell .icon { padding-inline: 8px; } .shell .node { padding-inline: 10px 12px; } }

/* Readable choice cards everywhere: the title stays in the display face, descriptions read as normal sentences. */
button.card, button.choice, .card, .choice { text-transform: none; letter-spacing: .01em; font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--text); }
button.card b, button.choice b, .card h3, .choice > b { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--accent); }
button.card .small, button.choice .small, .card p, .choice .muted { color: var(--muted); font-size: 14px; line-height: 1.4; }
button.choice .nums, button.card .nums { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--text); }
