/* MDT SPACE EXPLORER - the MDT look (near-black glass, gold for the main
   actions) in deep-space blue, with a cyan accent and Orbitron for the big type */
:root {
  --ink: #eef4ff; --mute: #9fb0c8; --faint: #5d6c82; --bg: #05070c; --glass: rgba(8, 12, 20, 0.88); --glass2: rgba(16, 22, 34, 0.8);
  --line: rgba(190, 220, 255, 0.1); --line2: rgba(190, 220, 255, 0.2);
  --gold: #f0c868; --gold2: #ffd98a; --goldInk: #2a1c04; --acc: #5fd4ff; --cyan: #5fd4ff; --good: #46e39a; --bad: #ff6a6a; --pink: #ff6ad0;
  --font: Inter, -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif; --display: Orbitron, Inter, system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input { -webkit-user-select: text; user-select: text; }
#game { position: fixed; inset: 0; }
#game canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: 0.5; }
svg { flex: none; }
#buildTag { position: fixed; right: 6px; bottom: calc(4px + var(--safe-b)); font: 10px system-ui, sans-serif; color: rgba(255, 255, 255, 0.35); z-index: 95; pointer-events: none; }
.muted { color: var(--mute); }
.small { font-size: 13px; }
.kick { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--acc); }
h2 { font: 800 23px/1.15 var(--font); margin: 4px 0 6px; letter-spacing: -0.2px; }
h3 { font: 800 13px/1.2 var(--display); letter-spacing: 1.2px; margin: 18px 0 4px; color: var(--cyan); text-transform: uppercase; }
p { margin: 6px 0; }

/* --- loading */
#loading { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, #10223a, var(--bg) 68%); transition: opacity 0.5s; }
#loading.gone { opacity: 0; pointer-events: none; }
.ld { text-align: center; width: 290px; }
.ld b { display: block; font: 900 24px var(--display); letter-spacing: 4px; background: linear-gradient(180deg, #ffffff, #9fe8ff 55%, #5f9cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld .bar { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); margin: 16px 0 10px; overflow: hidden; }
.ld .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5fd4ff, var(--gold)); transition: width 0.3s; }
.ld span { color: var(--mute); font-size: 13.5px; }

/* --- buttons and form bits */
.btn { flex: 1; min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.07); font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; transition: transform 0.12s, background 0.2s; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold) 60%, #d9a640); border-color: rgba(255, 230, 160, 0.7); color: var(--goldInk); box-shadow: 0 6px 20px rgba(240, 200, 104, 0.2); }
.btn.big { min-height: 54px; font-size: 17px; }
.btn.sm { flex: none; min-height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 11px; }
.btn.ghost { background: transparent; }
.btn.danger { background: rgba(255, 106, 106, 0.16); border-color: rgba(255, 106, 106, 0.5); color: #ffb8b8; }
.btns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.link { background: none; border: 0; color: var(--gold); padding: 10px 0; font-weight: 600; }
.err { color: var(--bad); min-height: 18px; font-size: 13px; margin: 4px 0; }
.card input:not([type=range]) { width: 100%; height: 48px; border-radius: 13px; border: 1px solid var(--line2); background: rgba(0, 0, 0, 0.35); color: var(--ink); padding: 0 14px; font: inherit; margin-bottom: 8px; }
form { margin: 0; }

/* --- the title card */
#title { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: flex-start; padding: calc(var(--mdts-h, 52px) + 20px) 6vw calc(24px + var(--safe-b)); background: linear-gradient(90deg, rgba(3, 6, 12, 0.92), rgba(3, 6, 12, 0.55) 46%, rgba(3, 6, 12, 0) 72%); }
.tCard { max-width: 500px; }
.tKick { font-size: 12px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; color: var(--cyan); }
.tLogo { margin: 6px 0 10px; font: 900 clamp(34px, 7.4vw, 62px)/0.98 var(--display); letter-spacing: 2px; background: linear-gradient(180deg, #ffffff, #bfe9ff 45%, #5f9cff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 22px rgba(95, 180, 255, 0.35)); }
.tLogo small { display: block; font-size: 0.42em; letter-spacing: 8px; background: linear-gradient(180deg, #fff6d8, #f0c868 55%, #b8862e); -webkit-background-clip: text; background-clip: text; }
.tTag { font-size: 16px; color: #d8e4f4; margin: 0 0 16px; }
.tPlaces { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.tPlaces span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.tPlaces span.lock { opacity: 0.45; }
.tPlaces i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.tStats { color: var(--mute); font-size: 13.5px; }
.tStats b { color: var(--gold); }
#title .btns { max-width: 420px; }
@media (max-width: 640px) {
  #title { align-items: flex-end; background: linear-gradient(0deg, rgba(3, 6, 12, 0.96), rgba(3, 6, 12, 0.6) 58%, rgba(3, 6, 12, 0)); }
  .tTag { font-size: 14.5px; }
}

/* --- the HUD */
#hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#hud > * { pointer-events: auto; }
#locPill { position: fixed; top: calc(12px + var(--safe-t)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line2); font-weight: 700; font-size: 13.5px; white-space: nowrap; pointer-events: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden; max-width: calc(100vw - 230px); }
#locPill > i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); flex: none; }
#locPill span { overflow: hidden; text-overflow: ellipsis; }
#locPill em { font-style: normal; font-size: 11.5px; color: #05070c; background: var(--cyan); border-radius: 99px; padding: 2px 8px; flex: none; }
#tripBar { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.08); }
#tripBar u { display: block; height: 100%; width: calc(var(--k, 0) * 100%); background: linear-gradient(90deg, var(--cyan), var(--acc)); }
#locPill.trip #tripBar { display: block; }
#tracker { position: fixed; left: calc(12px + var(--safe-l)); top: calc(60px + var(--safe-t)); max-width: min(330px, calc(100vw - 24px)); text-align: left; padding: 9px 13px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line2); border-left: 3px solid var(--acc); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; flex-direction: column; gap: 1px; }
#tracker b { font-size: 14.5px; }
#tracker > span:last-child { font-size: 12.5px; color: #cfdcef; line-height: 1.3; }
.hRight { position: fixed; top: calc(10px + var(--safe-t)); right: calc(10px + var(--safe-r)); display: flex; gap: 6px; }
.hb { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(95, 212, 255, 0.4); background: rgba(5, 8, 14, 0.78); display: grid; place-items: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.hb svg { width: 21px; height: 21px; fill: #cdeeff; }
.hb b { position: absolute; right: -4px; bottom: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--goldInk); font-size: 11px; display: grid; place-items: center; }
.hb.sm { width: 48px; height: 48px; }
.hb.off { background: rgba(255, 106, 208, 0.25); border-color: var(--pink); }
.hb.off svg { fill: #ffd0f0; }
.hSide { position: fixed; right: calc(12px + var(--safe-r)); bottom: calc(18px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; }
body.touch .hSide { bottom: calc(176px + var(--safe-b)); }
#useBtn { position: fixed; left: 50%; bottom: calc(26px + var(--safe-b)); transform: translateX(-50%); display: flex; align-items: center; gap: 9px; max-width: calc(100vw - 170px); padding: 0 18px; height: 52px; border-radius: 99px; border: 1px solid rgba(255, 230, 160, 0.7); background: linear-gradient(180deg, var(--gold2), var(--gold) 60%, #d9a640); color: var(--goldInk); font-weight: 750; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); animation: pop 0.25s; overflow: hidden; touch-action: none; }
#useBtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; }
#useBtn svg { width: 20px; height: 20px; fill: currentColor; position: relative; }
#useBtn kbd { font: 700 11px var(--font); border: 1px solid rgba(42, 28, 4, 0.4); border-radius: 5px; padding: 1px 5px; position: relative; }
#useRing { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: rgba(70, 227, 154, 0.75); }
#useBtn.hold { background: linear-gradient(180deg, #ffe7b0, #ffcf6a); }
body.touch #useBtn kbd { display: none; }
@keyframes pop { from { transform: translateX(-50%) scale(0.85); opacity: 0; } }
body[data-ui=card] #useBtn { display: none; }
#bigCount { position: fixed; left: 50%; top: 34%; transform: translate(-50%, -50%); font: 900 clamp(70px, 18vw, 150px) var(--display); color: #fff; text-shadow: 0 0 40px rgba(95, 212, 255, 0.8); pointer-events: none !important; animation: beat 1s infinite; }
@keyframes beat { from { transform: translate(-50%, -50%) scale(1.25); opacity: 0.4; } 30% { opacity: 1; } to { transform: translate(-50%, -50%) scale(1); } }
#skipBtn { position: fixed; right: calc(12px + var(--safe-r)); top: calc(62px + var(--safe-t)); flex: none; }
#o2 { position: fixed; left: 50%; top: calc(54px + var(--safe-t)); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line2); font: 800 11px var(--display); letter-spacing: 1px; pointer-events: none !important; }
#o2 b { width: 120px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
#o2 i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #46e39a, var(--cyan)); transition: width 0.3s; }
#o2 em { font-style: normal; color: var(--mute); }
#o2.low i { background: var(--bad); } #o2.low { border-color: var(--bad); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.55; } }
#evaHint { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%); padding: 6px 12px; border-radius: 99px; background: var(--glass); border: 1px solid rgba(255, 216, 74, 0.5); color: #ffe9a6; font-size: 13px; font-weight: 650; white-space: nowrap; pointer-events: none !important; }
#fade { position: fixed; inset: 0; z-index: 35; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.15s; }

@media (max-width: 560px) {
  #locPill { top: calc(62px + var(--safe-t)); font-size: 12.5px; padding: 6px 12px; max-width: calc(100vw - 24px); }
  #tracker { top: calc(102px + var(--safe-t)); }
  #o2 { top: calc(100px + var(--safe-t)); }
  body[data-mode=eva] #tracker { top: calc(140px + var(--safe-t)); }
  .hb { width: 40px; height: 40px; }
  .hRight { gap: 5px; }
  #skipBtn { top: calc(104px + var(--safe-t)); }
}

/* --- the touch stick, up and down */
#controls { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#stickZone { position: absolute; left: 0; bottom: 0; width: 45vw; height: 55vh; pointer-events: auto; }
body:not(.touch) #stickZone, body:not(.touch) #upBtn, body:not(.touch) #downBtn { display: none; }
#stick { position: fixed; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.2); opacity: 0; transition: opacity 0.15s; pointer-events: none; }
#stick.on { opacity: 1; }
#stick i { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); }
#upBtn, #downBtn { position: fixed; right: calc(80px + var(--safe-r)); width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(5, 8, 14, 0.6); pointer-events: auto; display: grid; place-items: center; touch-action: none; }
#upBtn { bottom: calc(100px + var(--safe-b)); }
#downBtn { bottom: calc(28px + var(--safe-b)); }
body[data-mode=walk] #upBtn { bottom: calc(30px + var(--safe-b)); }
#upBtn svg, #downBtn svg { width: 26px; height: 26px; fill: #fff; }
#upBtn.float, #downBtn { border-color: rgba(255, 106, 208, 0.6); }

/* --- the telescope and the mining laser */
#scopeUI, #turretUI { position: fixed; inset: 0; z-index: 25; pointer-events: none; }
#scopeUI > *, #turretUI > * { pointer-events: auto; }
.vignette { position: absolute; inset: 0; pointer-events: none !important; background: radial-gradient(circle at 50% 50%, transparent 0, transparent min(42vw, 42vh), rgba(0, 0, 0, 0.92) min(48vw, 48vh)); }
.reticle { position: absolute; left: 50%; top: 50%; width: calc(min(100vw, 100vh) * 0.18); height: calc(min(100vw, 100vh) * 0.18); transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(95, 212, 255, 0.75); pointer-events: none !important; box-shadow: 0 0 20px rgba(95, 212, 255, 0.3); }
.reticle::before, .reticle::after { content: ''; position: absolute; background: rgba(95, 212, 255, 0.7); }
.reticle::before { left: 50%; top: -14px; bottom: -14px; width: 1px; }
.reticle::after { top: 50%; left: -14px; right: -14px; height: 1px; }
#scanRing { position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(var(--good) calc(var(--p, 0) * 360deg), transparent 0); -webkit-mask: radial-gradient(circle, transparent 66%, #000 68%); mask: radial-gradient(circle, transparent 66%, #000 68%); }
.reticle.sq { border-radius: 8px; width: 46px; height: 46px; border-color: rgba(255, 176, 74, 0.85); box-shadow: 0 0 16px rgba(255, 176, 74, 0.4); }
.reticle.sq::before, .reticle.sq::after { background: rgba(255, 176, 74, 0.8); }
#pois { position: absolute; inset: 0; pointer-events: none !important; }
.poi { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: -9px 0 0 -9px; transition: opacity 0.2s; }
.poi i { width: 18px; height: 18px; border: 2px solid #ffd84a; border-radius: 4px; transform: rotate(45deg); box-shadow: 0 0 10px rgba(255, 216, 74, 0.6); }
.poi span { font-size: 12px; font-weight: 700; color: #ffe9a6; white-space: nowrap; text-shadow: 0 1px 4px #000; }
.poi.done i { border-color: var(--good); background: rgba(70, 227, 154, 0.35); box-shadow: 0 0 10px rgba(70, 227, 154, 0.6); }
.poi.done span { color: #b8ffd8; }
.poi.off i { border-radius: 0; border: 0; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 16px solid #ffd84a; transform-origin: 50% 60%; box-shadow: none; }
.poi.off.done i { border-bottom-color: var(--good); background: none; }
.scTop { position: absolute; left: 50%; top: calc(14px + var(--safe-t)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; padding: 8px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line2); white-space: nowrap; }
.scTop span:last-child { color: var(--mute); font-size: 12.5px; }
.scBot { position: absolute; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(420px, calc(100vw - 24px)); text-align: center; font-size: 13px; }
.scBot .btn { width: 100%; }
#scInfo { position: absolute; left: 50%; bottom: calc(118px + var(--safe-b)); transform: translateX(-50%); width: min(440px, calc(100vw - 24px)); padding: 12px 14px; border-radius: 16px; background: var(--glass); border: 1px solid rgba(70, 227, 154, 0.6); animation: up 0.25s ease-out; }
#scInfo b { color: #b8ffd8; }
#scInfo p { margin: 4px 0 0; font-size: 14px; }
#fireBtn { position: absolute; right: calc(22px + var(--safe-r)); bottom: calc(120px + var(--safe-b)); width: 92px; height: 92px; border-radius: 50%; border: 2px solid rgba(255, 176, 74, 0.9); background: radial-gradient(circle, rgba(255, 140, 40, 0.55), rgba(120, 40, 0, 0.6)); color: #fff; font: 900 15px var(--display); letter-spacing: 1px; touch-action: none; box-shadow: 0 0 30px rgba(255, 140, 40, 0.35); }
body:not(.touch) #fireBtn { display: none; }
#turretUI .scBot { bottom: calc(18px + var(--safe-b)); }

/* --- a card (the Lab, a mission result): a bottom sheet on a phone, a side panel on a wide screen */
.panel { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; max-height: 66vh; overflow: auto; padding: 8px 18px calc(18px + var(--safe-b)); background: var(--glass); border-top: 1px solid var(--line2); border-radius: 22px 22px 0 0; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5); animation: up 0.28s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.panel .grab { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); margin: 0 auto 10px; }
@media (min-width: 820px) and (min-aspect-ratio: 1/1) {
  .panel { left: auto; top: 76px; bottom: 16px; right: 16px; width: 420px; max-height: none; border-radius: 22px; border: 1px solid var(--line2); animation: side 0.28s ease-out; }
  .panel .grab { display: none; }
  @keyframes side { from { transform: translateX(40px); opacity: 0; } }
}
.cHead { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; border-bottom: 2px solid var(--acc); padding-bottom: 10px; margin-bottom: 8px; }
.cBody p { color: #dfe8f6; }
.badge { flex: none; width: 58px; height: 58px; border-radius: 50%; border: 3px double var(--acc); display: grid; place-items: center; color: var(--acc); font: 900 26px var(--display); animation: stamp 0.45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes stamp { from { transform: rotate(-30deg) scale(2.2); opacity: 0; } }
.rewards { display: flex; gap: 10px; margin: 10px 0; }
.rewards div { flex: 1; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); text-align: center; }
.rewards b { display: block; font: 900 30px var(--display); color: var(--gold); }
.rewards div + div b { color: var(--cyan); }
.rewards span { color: var(--mute); font-size: 12.5px; }
.qMsg { min-height: 22px; margin-top: 10px; font-weight: 600; }
.qMsg.good { color: #b8ffd8; } .qMsg.bad { color: #ffb0a0; }
.mxcBox { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 10px; border-radius: 14px; background: rgba(240, 200, 104, 0.1); border: 1px solid rgba(240, 200, 104, 0.35); }
.mxcBox span { flex: 1; } .mxcBox.paid { border-color: var(--good); }
.mxc-coin { width: 20px; height: 20px; }
/* the spectrometer */
.specLbl { margin: 12px 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mute); }
.spec { position: relative; display: block; width: 100%; border: 1px solid var(--line2); border-radius: 12px; padding: 6px; background: rgba(0, 0, 0, 0.3); text-align: left; }
.spec .bars { position: relative; height: 30px; border-radius: 6px; background: linear-gradient(90deg, rgba(120, 0, 255, 0.12), rgba(0, 80, 255, 0.12), rgba(0, 200, 255, 0.12), rgba(0, 255, 120, 0.12), rgba(255, 255, 0, 0.12), rgba(255, 120, 0, 0.12), rgba(255, 0, 0, 0.12)); }
.spec .bars i { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.spec span { display: block; margin-top: 5px; font-weight: 650; font-size: 13.5px; }
.specOpts { display: flex; flex-direction: column; gap: 8px; }
.spec.opt { cursor: pointer; }
.spec.opt.right { border-color: var(--good); background: rgba(70, 227, 154, 0.12); }
.spec.opt.wrong { border-color: var(--bad); background: rgba(255, 106, 106, 0.1); }

/* --- sheets */
body[data-phase=play] .screen { padding-top: calc(62px + var(--safe-t)); }
.screen { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: calc(16px + var(--safe-t)) 14px calc(16px + var(--safe-b)); background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.screen .card { width: 100%; max-width: 440px; max-height: 100%; overflow: auto; padding: 18px 20px 20px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line2); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); animation: up 0.25s ease-out; }
.screen .card.wide { max-width: 580px; }
.shHead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.06); }
.navNow { margin-top: 10px; padding: 14px; border-radius: 16px; background: rgba(95, 212, 255, 0.08); border: 1px solid rgba(95, 212, 255, 0.35); }
.navNow b { display: block; font-size: 16px; } .navNow span { color: var(--mute); font-size: 13.5px; }
.navList { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.navRow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); }
.navRow > i { width: 12px; height: 12px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); flex: none; }
.navRow > div { flex: 1; min-width: 0; } .navRow b { display: block; } .navRow span { color: var(--mute); font-size: 12.5px; }
.navRow.cur { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.navRow.lock { opacity: 0.5; }
.sciBox { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(95, 212, 255, 0.08); border: 1px solid rgba(95, 212, 255, 0.3); }
.sciBox b { font: 900 24px var(--display); color: var(--cyan); } .sciBox span { flex: 1; color: var(--mute); font-size: 13px; }
.mRow2 { margin-top: 10px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-left: 3px solid var(--acc); }
.mRow2.on { background: color-mix(in srgb, var(--acc) 10%, transparent); border-color: var(--acc); }
.mRow2.lock { opacity: 0.55; }
.mTop { display: flex; align-items: center; gap: 10px; }
.mTop > i { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); flex: none; }
.mTop > div { flex: 1; min-width: 0; } .mTop b { display: block; font-size: 15.5px; } .mTop span { color: var(--mute); font-size: 12.5px; }
.mRow2 p { font-size: 13.5px; color: #cfdcef; margin: 8px 0 0; }
.tag { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line2); color: var(--mute); white-space: nowrap; }
.tag.on { background: var(--acc); color: #05070c; border-color: var(--acc); }
.steps { margin: 10px 0 0; padding: 0 0 0 4px; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.steps li { position: relative; padding-left: 24px; font-size: 13.5px; color: var(--faint); }
.steps li::before { content: ''; position: absolute; left: 2px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--faint); }
.steps li.done { color: var(--mute); text-decoration: line-through; } .steps li.done::before { background: var(--good); border-color: var(--good); }
.steps li.cur { color: #fff; font-weight: 650; } .steps li.cur::before { border-color: #ffd84a; box-shadow: 0 0 8px #ffd84a; }
.upRow { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.upRow > div:first-child { flex: 1; min-width: 0; } .upRow b { display: block; } .upRow span { display: block; color: var(--mute); font-size: 12.5px; }
.upRow .nx { color: #cfdcef; margin-top: 2px; } .upRow .nx b { display: inline; }
.pips { display: flex; gap: 3px; } .pips i { width: 8px; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); } .pips i.on { background: var(--cyan); }
#mapCv { width: 100%; height: auto; aspect-ratio: 640 / 560; border-radius: 16px; margin-top: 10px; background: #05070c; }
.mapList { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.mRow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); text-align: left; }
.mRow i { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); flex: none; }
.mRow b { flex: 1; font-size: 13.5px; }
.mRow span { color: var(--gold); font-weight: 700; font-size: 13px; }
.tourBox { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(95, 212, 255, 0.08); border: 1px solid rgba(95, 212, 255, 0.35); }
.tourBox b { display: block; } .tourBox span { color: var(--mute); font-size: 13.5px; }
.tourBox .btns { margin-top: 10px; }
.pSec { margin: 16px 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mute); }
.pRow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pRow > i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.pRow > i.on { background: var(--good); box-shadow: 0 0 8px var(--good); }
.pRow > div { flex: 1; min-width: 0; }
.pRow b { display: block; overflow: hidden; text-overflow: ellipsis; }
.pRow span { display: block; color: var(--mute); font-size: 12.5px; }

/* --- toasts and notes */
#toast { position: fixed; left: 50%; top: calc(104px + var(--safe-t)); transform: translate(-50%, -12px); z-index: 70; max-width: min(520px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 14px; background: var(--glass); border: 1px solid rgba(95, 212, 255, 0.45); font-weight: 600; font-size: 14px; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#note { position: fixed; left: 50%; top: calc(150px + var(--safe-t)); transform: translateX(-50%); z-index: 71; width: min(440px, calc(100vw - 24px)); padding: 12px 14px; border-radius: 16px; background: var(--glass); border: 1px solid rgba(95, 212, 255, 0.6); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); animation: up 0.25s ease-out; }
.nTxt span { color: var(--mute); font-size: 13.5px; }
.nBtns { display: flex; gap: 8px; margin-top: 10px; }
@media (max-width: 560px) { #toast { top: auto; bottom: calc(150px + var(--safe-b)); } #note { top: calc(178px + var(--safe-t)); } }
