:root {
  color-scheme: dark;
  --bg: #120f20; --panel: #241d38; --line: #403454; --text: #faf6e8;
  --muted: #adafc9; --mint: #d7ff63; --purple: #bba3ff; --pink: #ff9ac8;
  --display: Impact, "Arial Black", "Helvetica Neue", sans-serif;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--bg); }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, canvas:focus-visible, summary:focus-visible, #receipts:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
header, main, footer { max-width: 1640px; margin: auto; }
header { height: 58px; padding: 0 32px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 950; font-size: 23px; letter-spacing: -1px; }
.brandmark { color: var(--mint); font-size: 36px; font-weight: 400; }
.header-caption { color: var(--muted); font-size: 12px; }
.brand-copy { display: grid; gap: 3px; line-height: 1; }
.brand-copy .header-caption { display: block; font-size: clamp(8px, 2.4vw, 9px); font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.header-right { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.button { min-height: 42px; border: 1px solid #626581; border-radius: 8px; padding: 10px 15px; background: #292d48; color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 750; font-size: 12px; transition: background .15s, border-color .15s; white-space: nowrap; }
.button:hover:not(:disabled) { border-color: var(--mint); background: #353c4b; }
.button.primary { box-shadow: 0 4px 0 #657733; background: var(--mint); color: #171b0f; border-color: var(--mint); font-weight: 850; }
.button.primary:hover:not(:disabled) { background: #e4ff9a; }
.button.compact { background: var(--text); color: var(--bg); border-color: var(--text); min-height: 38px; }
.button.full { width: 100%; }.button.subtle { color: #d1cfe3; background: transparent; border-color: #4a4c67; }
.button:disabled { opacity: .4; }
.text-button { background: transparent; color: var(--purple); border: 0; padding: 8px 0; font-size: 12px; font-weight: 650; text-align: left; }
.text-button:hover:not(:disabled), a:hover { color: var(--text); }.text-button:disabled { opacity: .4; }
main { padding: 0 32px; }
.flight-header { display: contents; }
h1, h2 { margin: 0; font: 100 32px/1.05 var(--display); letter-spacing: .2px; }
.eyebrow { color: var(--muted); margin: 0 0 8px; font-size: 11px; }
.small-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 10px 0; }
.resource-bar { position: sticky; top: 0; z-index: 3; background: var(--bg); width: calc(100% - 64px); max-width: 1576px; margin: auto; min-height: 72px; display: flex; align-items: center; gap: 42px; padding: 12px 2px; }
.resource {
  --resource-accent: #ffcf7f;
  display: flex; align-items: center; gap: 9px; min-width: 105px; padding: 5px 10px;
  border: 1px solid #453952; border-radius: 10px; background: linear-gradient(145deg, #262038, #1b182c);
}
.fuel-resource { --resource-accent: var(--mint); border-color: #535b42; }
.resource:nth-child(3) { --resource-accent: var(--pink); }
.resource-icon {
  display: grid; place-items: center; flex: none; width: 25px; height: 25px;
  border-radius: 7px; background: color-mix(in srgb, var(--resource-accent) 12%, transparent);
  color: var(--resource-accent); font-size: 18px;
}
.resource div { display: grid; gap: 3px; }
.resource div > span { font-size: 11px; color: var(--muted); }
.resource strong { font: 100 31px/1 var(--display); letter-spacing: .5px; }.resource small { font: 12px ui-monospace, monospace; color: var(--muted); }
meter { width: 72px; height: 7px; border: 0; background: #34394d; border-radius: 4px; accent-color: var(--mint); }
meter::-webkit-meter-bar { background: #34394d; border: 0; height: 7px; }meter::-webkit-meter-optimum-value { background: var(--mint); border-radius: 4px; }meter::-moz-meter-bar { background: var(--mint); }
.flight-status { margin-left: auto; display: flex; align-items: flex-end; flex-direction: column; gap: 8px; }
.status { color: var(--muted); font: 9px ui-monospace, monospace; letter-spacing: .6px; }.status.verified { color: var(--mint); }
.tag { font: 10px ui-monospace, monospace; letter-spacing: .7px; color: #eee7ff; }
.button.compact.is-connected { background: #242638; border-color: #626581; color: var(--mint); }
.device-menu { position: fixed; inset: 78px 16px auto auto; margin: 0; width: min(320px, calc(100vw - 24px)); padding: 20px; border: 1px solid #77728d; border-radius: 14px; background: #211a33; color: var(--text); box-shadow: 0 12px 48px #0008; }
.device-menu h2 { font-size: 23px; }.device-menu p { overflow-wrap: anywhere; }.device-menu .button { width: 100%; margin-top: 8px; }
@media(min-width:1024px) {
  .flight-header {
    display: flex; align-items: center; gap: 14px; position: sticky; top: 12px; z-index: 4;
    width: calc(100% - 64px); max-width: 1576px; min-height: 65px; margin: 12px auto 16px; padding: 6px 13px;
    border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(105deg, #211b31f5, #151223f5 65%);
    box-shadow: 0 6px 24px #0005; backdrop-filter: blur(12px);
  }
  .flight-header header { display: contents; }
  .flight-header .brand { flex-shrink: 0; font-size: 19px; gap: 8px; }
  .flight-header .brandmark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d7ff6340; border-radius: 9px; background: #d7ff6310; font-size: 25px; }
  .flight-header .header-right { order: 1; margin: 0; flex-shrink: 0; }
  .flight-header .button.compact { min-height: 38px; font-size: 11px; padding: 7px 11px; }
  .flight-header .resource-bar { position: static; flex: 1; width: auto; max-width: none; min-width: 0; min-height: 0; margin: 0; padding: 0; gap: 8px; background: transparent; }
  .flight-header .resource { flex: 1 0 auto; min-width: 90px; max-width: 156px; }
  .flight-header .fuel-resource { max-width: 190px; }
  .flight-header .resource div > span { font-size: 10px; white-space: nowrap; }
  .flight-header .resource strong { font-size: 29px; }
  .flight-header .resource small { font-size: 11px; }
  .flight-header meter { width: 42px; margin-left: auto; }
  .flight-header .flight-status { align-items: flex-start; gap: 5px; padding: 3px 0 3px 12px; border-left: 1px solid #493e58; white-space: nowrap; }
  .flight-header .status { font-size: 9px; letter-spacing: .15px; }
  .flight-header .tag { font: 750 13px/1.1 ui-monospace, monospace; letter-spacing: .5px; }
  .canvas-wrap { height: clamp(380px, calc(100svh - 256px), 760px); }
}
.chart { overflow: hidden; border: 1px solid #4b4869; border-radius: 18px; box-shadow: 0 8px 0 #080612; background: radial-gradient(ellipse at 76% 20%, #6046a038, transparent 60%), radial-gradient(ellipse at 15% 85%, #187c8f24, transparent 55%), #101329; }
.chart-toolbar { min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px 24px 0; position: relative; z-index: 1; }
.chart-toolbar h1 { font-size: 30px; }
.map-hint { color: #bcbbd5; font-size: 11px; margin: 6px 0 0; line-height: 1.5; }
.charted-count { font: 10px ui-monospace, monospace; letter-spacing: .6px; white-space: nowrap; color: var(--purple); }
.canvas-wrap { position: relative; height: clamp(380px, calc(100svh - 324px), 760px); overflow: hidden; }
#space { touch-action: none; cursor: grab; position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#rocket-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
#destinations { position: absolute; inset: 0; pointer-events: none; }
.planet-node { position: absolute; left: 0; top: 0; width: 156px; text-align: center; pointer-events: auto; z-index: 1; }
.planet-node.active, .planet-node:focus-within { z-index: 2; }
.planet-name { min-width: 24px; min-height: 24px; border: 0; padding: 1px 10px 0; border-radius: 5px; background: #101329ad; color: var(--planet-color); font: 100 26px/1.1 var(--display); text-transform: uppercase; letter-spacing: .5px; text-shadow: 0 2px 8px #000; }
.planet-name:hover, .planet-node.active .planet-name { color: var(--text); }
.planet-loot { display: block; margin: 5px 0 7px; color: #dcd5ee; font-size: 10px; text-shadow: 0 2px 5px #000; }
.is-collected .planet-loot { color: #a9c3b3; }
.planet-action { min-height: 33px; width: 100%; padding: 6px 5px; border-radius: 6px; border: 1px solid #77728d; color: #faf6e8; background: #242944e6; font-weight: 750; font-size: 11px; }
.planet-action:hover:not(:disabled) { background: var(--planet-color); color: #111526; border-color: var(--planet-color); }
.planet-action:disabled { color: #a7a8c1; border-color: #494b67; background: #1a2036de; }
.is-here:not(.is-collected) .planet-action { background: var(--mint); border-color: var(--mint); color: #1a250e; }
.is-here:not(.is-collected) .planet-action:disabled { background: #313a2f; border-color: #586746; color: #bacf9c; }
#map-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: grid; place-items: center; background: radial-gradient(ellipse at center, #14102455, transparent 70%); }
.launch-card { width: min(310px, calc(100% - 38px)); padding: 6px 22px 19px; border: 1px solid #ac91c35c; border-radius: 24px; text-align: center; background: #201731ed; box-shadow: 0 16px 70px #05020d77, inset 0 1px 0 #fff2; pointer-events: auto; }
.launch-card img { display: block; width: 230px; height: 132px; max-width: 100%; margin: -20px auto -7px; }
.launch-card h2 { font-size: 37px; line-height: .96; letter-spacing: -.5px; transform: rotate(-2deg); color: #fff3d8; text-shadow: 3px 4px 0 #594373; }
.launch-card > p { font-size: 11px; line-height: 1.65; color: #d4c6e7; margin: 12px 0 15px; }
.launch-card .button { width: 100%; min-height: 48px; font-size: 16px; border: 2px solid #14141d; border-radius: 10px; box-shadow: 0 5px 0 #778b39; font-weight: 900; }
.launch-card > span { display: block; color: #b9a7cb; font-size: 9px; line-height: 1.6; margin: 11px -3px 0; }
.canvas-wrap[data-started="false"] #destinations { opacity: .45; }
.canvas-wrap[data-started="false"] #minimap,.canvas-wrap[data-started="false"] .map-controls { visibility: hidden; }
.planet-title { display: flex; align-items: center; justify-content: center; gap: 5px; }
.planet-title .planet-name { padding-inline: 0; font-size: max(12px, calc(var(--planet-name-size, 26px) * var(--planet-label-scale, 1))); }
.planet-info-button { flex-shrink: 0; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; }
.planet-info-button span { display: grid; place-items: center; width: max(14px, calc(var(--planet-info-size, 22px) * var(--planet-label-scale, 1))); aspect-ratio: 1; border: 1px solid #bda9d3; border-radius: 50%; font: 700 max(9px, calc(var(--planet-info-font-size, 12px) * var(--planet-label-scale, 1))) Georgia, serif; color: #ddd0ee; background: #201b34; }
.planet-info-button:is(:hover, [aria-expanded="true"]) span { color: #1a152b; background: var(--planet-color); border-color: var(--planet-color); }
.planet-popup { width: min(370px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); overflow: auto; position: fixed; inset: 95px 18px auto auto; margin: 0; padding: 14px 24px 22px; border: 2px solid #a38bc3; border-radius: 20px; background: radial-gradient(ellipse at top, #48326366, transparent 60%), #21192f; color: var(--text); box-shadow: 0 20px 110px #000b, 0 5px 0 #0a0612; }
.planet-popup::backdrop { background: #09051530; }
.planet-popup > canvas { display: block; width: 220px; height: 150px; margin: -7px auto 0; object-fit: contain; }
.planet-popup h2 { font-size: 37px; }.planet-popup .eyebrow { font-size: 10px; }.planet-popup .small-note { color: #d7ff92; }
.popup-close { position: absolute; z-index: 1; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #867495; background: #241c35; color: #fff3dc; font-size: 22px; }
#minimap { position: absolute; left: 18px; bottom: 15px; width: 120px; height: 69px; border: 1px solid #8b769f77; border-radius: 8px; background: #130e23dc; cursor: crosshair; }
.map-controls { position: absolute; right: 18px; bottom: 17px; display: flex; gap: 5px; padding: 5px; border: 1px solid #65516f; border-radius: 9px; background: #191329eb; }
.map-controls button { min-height: 30px; min-width: 30px; padding: 4px 9px; border: 0; border-radius: 5px; background: #3a2b4b; color: #f4e9fc; font-size: 10px; font-weight: 750; }.map-controls button:hover { color: #21132d; background: var(--mint); }
.canvas-wrap[data-overview="true"]::after { content: 'Galaxy overview · tap a planet to zoom in'; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); max-width: 90%; padding: 6px 10px; border-radius: 20px; color: #e2d3f5; background: #241a3bdd; font-size: 10px; text-align: center; pointer-events: none; }
.journey-banner { position: absolute; top: 18px; left: 50%; z-index: 3; transform: translateX(-50%) rotate(-2deg); max-width: calc(100% - 30px); padding: 12px 20px; border: 2px solid #171124; border-radius: 10px; background: #fff0d5; color: #2d1c3e; box-shadow: 4px 5px 0 #c49eff; font-size: 16px; font-weight: 900; text-align: center; pointer-events: none; }
.scan-readout { position: absolute; left: 155px; right: 20px; bottom: 67px; color: var(--pink); font-size: 12px; text-shadow: 0 2px 5px #000; pointer-events: none; }
.mission-dock { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 17px 24px; background: #211a33; border-top: 1px solid #46445f; }
.mission-summary { display: flex; align-items: center; gap: 13px; min-width: 0; }
.mission-summary strong { font-size: 14px; }.mission-summary p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.live-dot { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px #d7ff6350; }
.dock-actions { display: flex; gap: 8px; align-items: center; }
.map-caption { display: flex; justify-content: space-between; gap: 20px; padding: 10px 24px; color: #a5a9c4; background: #1a152b; font-size: 10px; line-height: 1.5; }
.keyboard-hint { white-space: nowrap; }
kbd { font: 8px/15px ui-monospace, monospace; display: inline-block; border: 1px solid #777092; border-bottom-width: 2px; border-radius: 4px; min-width: 18px; height: 18px; text-align: center; padding: 0 4px; color: var(--text); }
.flight-log { margin-top: 31px; }.log-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 20px; }.log-heading h2 { font-size: 29px; }
.flight-log ol { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #666184 transparent; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.flight-log li { display: flex; align-items: center; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.flight-log li > span:first-child { color: var(--mint); font: 11px ui-monospace, monospace; min-width: 25px; }.flight-log time { margin-left: auto; color: var(--muted); font: 10px ui-monospace, monospace; }.receipt-proof { color: #9693b4; font: 10px ui-monospace, monospace; }.empty-log { color: var(--muted); }
.field-notes { display: block; gap: 20px; margin-top: 24px; align-items: start; }
details { border: 1px solid var(--line); border-radius: 10px; background: #171b2b; }
summary { cursor: pointer; padding: 17px 20px; font-size: 13px; font-weight: 700; }summary::marker { color: var(--purple); }summary > span { color: var(--purple); margin-left: 10px; }
.description { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 10px 0; }
.resident-card { color: var(--purple); font-size: 12px; margin-top: 15px; }.resident-card p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 5px 0; }
.destination-facts { margin: 16px 0 0; }.destination-facts div { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding: 8px 0; font-size: 11px; }.destination-facts dt { color: var(--muted); }.destination-facts dd { margin: 0; }
.device-notes { padding: 0 20px 12px; }.device-card p { font-size: 13px; font-weight: 700; margin: 8px 0; }#device-detail { display: block; color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }.device-card .first-run,.device-card .small-note { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.7; margin: 16px 0; }
.source-link { display: block; font-size: 11px; font-weight: 700; line-height: 1.9; color: var(--purple); }.source-link:hover { text-decoration: underline; }
.verification-note { display: flex; align-items: center; gap: 16px; margin: 26px 0; padding: 16px 0; color: var(--muted); }.verification-note p { max-width: 850px; font-size: 11px; line-height: 1.8; margin: 0; }.verification-note strong { color: var(--text); }.seal { font-size: 30px; color: var(--purple); }.verification-note a { margin-left: auto; font-size: 11px; white-space: nowrap; }
footer { padding: 0 32px 25px; color: #8c91ac; display: flex; justify-content: space-between; font: 8px/1.8 ui-monospace, monospace; gap: 20px; }
#notice { position: fixed; z-index: 5; bottom: 24px; left: 50%; transform: translate(-50%, 10px); width: max-content; max-width: min(90vw,620px); background: #191424f5; border: 1px solid #77618f; color: var(--text); box-shadow: 0 10px 35px #0008; backdrop-filter: blur(10px); border-radius: 10px; padding: 14px 20px; font-size: 12px; line-height: 1.6; font-weight: 650; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility 0s .18s; }
#notice.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
/* A hardware guide in Wedgie's own green / grey / red visual language. */
dialog { color-scheme: dark; isolation: isolate; width: min(490px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 0 28px 23px; border: 2px solid #51496f; border-radius: 25px; color: #faf6e8; background: radial-gradient(ellipse at 80% 35%, #39285c88, transparent 60%), #111124; text-align: center; overflow-x: hidden; box-shadow: 0 25px 140px #0009; }
dialog[open] { animation: dialog-arrive .32s cubic-bezier(.2,.8,.3,1); }dialog::backdrop { background: #0a081dc9; backdrop-filter: blur(9px); }
.wedgie-stripes { height: 21px; display: flex; flex-direction: column; margin: 0 -28px 23px; gap: 3px; padding-top: 4px; }.wedgie-stripes i { height: 4px; background: #22c452; }.wedgie-stripes i:nth-child(2) { background: #a9aaab; }.wedgie-stripes i:nth-child(3) { background: #e3312c; }
.approval-heading .eyebrow { color: #b0accb; font-size: 9px; margin-bottom: 10px; }.approval-heading h2 { font: 900 37px/.99 ui-sans-serif, sans-serif; letter-spacing: -1.7px; max-width: 370px; margin: auto; }.approval-heading p:last-child { color: #c3bfd8; font-size: 12px; line-height: 1.65; margin: 12px 0 0; }
#wedgie-3d { position: absolute; inset: 0; pointer-events: none; }.w3d-holder,.w3d { width: 100%; height: 100%; display: block; }.device-scene.has-3d .wedgie-model,.device-scene.has-3d .device-orbit { visibility: hidden; }
.device-scene { height: 228px; position: relative; display: grid; place-items: center; perspective: 900px; }.device-orbit { position: absolute; width: 340px; height: 100px; border: 1px dashed #a294fa55; border-radius: 50%; bottom: 10px; transform: rotate(-9deg); }
.wedgie-model { width: 300px; height: 186px; position: relative; background: linear-gradient(135deg,#fff,#edece8); border: 3px solid #d3d4ce; border-radius: 19px; box-shadow: 2px 3px 0 #aaa9a4, 5px 9px 0 #c6c5bf, 10px 22px 23px #30352b35, inset 0 2px 0 #fff; transform: rotateX(12deg) rotateY(-13deg) rotateZ(-6deg); animation: wedgie-float 3s ease-in-out infinite; }
.device-display { color: #1a1b1a; position: absolute; width: 151px; height: 151px; top: 11px; left: 64px; background: #fefefe; border: 6px solid #25272a; border-radius: 6px; box-shadow: 0 0 0 2px #c7c9c2; display: flex; flex-direction: column; align-items: center; overflow: hidden; font-family: ui-monospace, monospace; }
.screen-stripes { display: flex; flex-direction: column; width: 100%; gap: 3px; padding-top: 5px; }.screen-stripes i { width: 100%; height: 3px; background: #22c452; }.screen-stripes i:nth-child(2) { background: #a9aaab; }.screen-stripes i:nth-child(3) { background: #e3312c; }
.device-display strong { font-size: 10px; margin-top: 11px; }.device-display b { font-size: 18px; margin: 8px 2px 0; max-width: 130px; line-height: 1.1; }.device-display > span { font-size: 8px; margin-top: 7px; }.screen-yes,.screen-no { position: absolute; bottom: 16px; height: 17px; width: 100%; background: #22c452; color: white; font-weight: 900; font-size: 11px; line-height: 17px; }.screen-no { bottom: 0; background: #e3312c; height: 14px; line-height: 14px; font-size: 9px; }
.device-joystick { position: absolute; left: 12px; top: 70px; width: 38px; height: 38px; background: #3b3d40; border: 3px solid #6a6b6b; border-radius: 50%; box-shadow: 1px 3px 0 #242627; }.device-joystick i { position: absolute; inset: 8px; border-radius: 50%; background: linear-gradient(#a8a9aa,#525457); }
.hardware-keys { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 10px; }.hardware-key { width: 26px; height: 26px; border: 2px solid #a8aaa3; border-radius: 7px; background: #777b80; box-shadow: 0 4px 0 #5e605d; }.key-green { background: #22c452; border-color: #18983c; box-shadow: 0 4px 0 #168c34; animation: key-press 1.1s ease-in-out infinite; }.key-red { background: #e3312c; border-color: #b82420; box-shadow: 0 4px 0 #9d211d; }
.case-logo { position: absolute; bottom: 2px; left: 117px; font-size: 8px; font-weight: 950; letter-spacing: 2px; color: #787b78; }.press-pointer { position: absolute; z-index: 2; width: 53px; height: 64px; left: 246px; top: 19px; filter: drop-shadow(2px 2px 1px #0002); animation: pointer-press 1.1s ease-in-out infinite; }
.approval-action { display: inline-block; border: 1px solid #655686; border-radius: 8px; background: #28213f; padding: 8px 15px; font-size: 12px; font-weight: 800; margin: 0 0 18px; }
.physical-instructions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }.physical-instructions > div { display: flex; align-items: center; gap: 9px; padding: 11px 9px; border-radius: 9px; }.confirm-instruction { background: #163326ed; border: 1px solid #39734e; }.decline-instruction { background: #3b202eed; border: 1px solid #8b4d5b; }.instruction-key { width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; background: #22c452; box-shadow: 0 3px 0 #168c34; }.decline-instruction .instruction-key { background: #e3312c; box-shadow: 0 3px 0 #a32521; }.physical-instructions strong { display: block; font-size: 10px; line-height: 1.4; letter-spacing: -.1px; }.physical-instructions div div > span { display: block; font-size: 9px; color: #c3bfd8; margin-top: 3px; }
.approval-state { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 17px; font: 8px ui-monospace, monospace; letter-spacing: .5px; color: #89e9a2; }.approval-state > span:first-child::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 7px; background: currentColor; border-radius: 50%; animation: waiting-pulse 1.3s ease-in-out infinite; }#approval-countdown { color: #b0accb; }.illustration-note { color: #b0accb; font-size: 9px; margin: 11px 0 17px; }dialog .button.subtle { background: #1d1a33; border-color: #655b80; color: #faf6e8; justify-content: center; font-size: 11px; min-height: 40px; }dialog .button:hover:not(:disabled) { box-shadow: 0 2px 0 #080915; border-color: #bba3ff; }
dialog[data-phase="installing"] .key-green { animation: none; }#approval-source { margin-bottom: 12px; }
dialog[data-phase="verifying"] .press-pointer { display: none; }dialog[data-phase="verifying"] .key-green { animation: none; }dialog[data-phase="verifying"] .approval-state { color: #c4b6ff; }

.approval-space { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(circle, #f9f4ffbb 1px, transparent 1.6px), radial-gradient(circle, #bba3ff88 .8px, transparent 1.4px), radial-gradient(circle, #a5e8ffbb 1.4px, transparent 2px);
  background-size: 83px 109px, 137px 157px, 211px 193px; background-position: 19px 37px, 67px 18px, 42px 86px;
}
.approval-space i { position: absolute; right: -125px; top: 5%; width: 120px; height: 2px; border-radius: 50%; background: linear-gradient(to right, #eaffff, #a5caff77 20%, transparent); filter: drop-shadow(0 0 4px #a5caff); opacity: 0; animation: approval-comet 9s linear -1s infinite; }
.approval-space i:nth-child(2) { top: 34%; width: 90px; animation-duration: 13s; animation-delay: -8s; }
.approval-space i:nth-child(3) { top: 62%; width: 140px; animation-duration: 17s; animation-delay: -3s; }
@keyframes approval-comet { 0% { opacity: 0; transform: translate(0, 0) rotate(-28deg); } 5% { opacity: .8; } 28%,100% { opacity: 0; transform: translate(-730px, 390px) rotate(-28deg); } }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes wedgie-float { 0%,100% { transform: rotateX(12deg) rotateY(-13deg) rotateZ(-6deg) translateY(0); } 50% { transform: rotateX(9deg) rotateY(-8deg) rotateZ(-4deg) translateY(-6px); } }
@keyframes key-press { 0%,35%,100% { transform: translateY(0); box-shadow: 0 4px 0 #168c34, 0 0 0 0 #22c45222; } 50%,70% { transform: translateY(3px); box-shadow: 0 1px 0 #168c34, 0 0 0 8px #22c45218; } }
@keyframes pointer-press { 0%,35%,100% { transform: translateY(-7px); } 50%,70% { transform: translateY(0); } }
@keyframes waiting-pulse { 50% { opacity: .25; } }

@media(max-width:1100px) {
  .resource-bar { gap: 28px; }meter { display: none; }.mission-dock { padding: 15px 18px; }.mission-summary p { max-width: 200px; }.dock-actions .button { padding-inline: 10px; font-size: 11px; }.keyboard-hint { display: none; }.header-caption { display: none; }
}
@media(min-width:761px) and (max-width:1200px) { .canvas-wrap { min-height: 460px; }.planet-node { width: 112px; } }
@media(max-width:760px) {
  .resource-bar { gap: 6px; padding: 8px 0; }
  .resource { position: relative; flex: 1; min-width: 0; padding: 6px 7px; }
  .resource-icon { position: absolute; right: 6px; top: 6px; width: 16px; height: 16px; font-size: 13px; }
  .resource div > span { font-size: 9px; }
  header { padding-inline: 18px; }.brand { font-size: 20px; }.header-right { gap: 14px; }main { padding-inline: 16px; }.resource-bar { width: calc(100% - 32px); gap: 24px; }.flight-status .status { display: none; }.chart-toolbar { padding-inline: 18px; }.chart-toolbar h1 { font-size: 30px; }.mission-dock { align-items: flex-start; flex-direction: column; gap: 13px; }.mission-summary p { max-width: none; }.dock-actions { width: 100%; }.dock-actions .button { flex: 1; }.canvas-wrap { height: clamp(520px, calc(100svh - 400px), 650px); }.planet-node { width: 112px; }.planet-name { font-size: 23px; }.field-notes { grid-template-columns: 1fr; }.receipt-proof { display: none; }.verification-note a { display: none; }footer { padding-inline: 16px; }
}
@media(max-width:500px) {
  header { height: 58px; padding-inline: 14px; gap: 12px; }.brand { font-size: 18px; gap: 6px; }.brandmark { font-size: 29px; }.header-right > .text-button { display: none; }.button.compact { min-height: 36px; padding: 8px 11px; font-size: 11px; }main { padding-inline: 10px; }
  .resource-bar { width: calc(100% - 20px); min-height: 73px; gap: 6px; }.resource strong { font-size: 28px; }.resource small { font-size: 10px; }.flight-status { display: none; }
  .chart { border-radius: 12px; }.chart-toolbar { min-height: 72px; padding: 13px 15px 0; align-items: flex-start; gap: 7px; }.chart-toolbar h1 { font-size: 27px; }.map-hint { font-size: 10px; max-width: 235px; line-height: 1.5; }.charted-count { font-size: 8px; padding-top: 6px; letter-spacing: 0; white-space: normal; text-align: right; max-width: 61px; line-height: 1.6; }
  .canvas-wrap { height: clamp(520px, calc(100svh - 350px), 650px); }.planet-node { width: 112px; }.planet-name { font-size: 21px; }.planet-loot { font-size: 9px; margin: 3px 0 4px; }.planet-action { font-size: 10px; min-height: 40px; }
  #map-overlay { right: 23px; bottom: 24px; }.launch-sticker { font-size: 24px; }#map-overlay p { font-size: 10px; max-width: 160px; line-height: 1.6; }.scan-readout { left: 14px; bottom: 25px; font-size: 10px; }
  .mission-dock { padding: 13px 14px; gap: 11px; }.mission-summary { gap: 10px; }.mission-summary strong { font-size: 13px; }.mission-summary p { font-size: 10px; margin-top: 4px; }.dock-actions { gap: 5px; flex-wrap: wrap; }.dock-actions .button { padding: 9px 7px; min-height: 37px; font-size: 10px; }.dock-actions kbd { display: none; }.dock-actions #launch { flex: 0 1 auto; padding-inline: 18px; }
  .map-caption { padding: 9px 14px; font-size: 9px; }.flight-log { margin-top: 25px; padding-inline: 5px; }.log-heading { gap: 15px; }.log-heading h2 { font-size: 26px; }.log-heading .text-button { max-width: 92px; font-size: 10px; text-align: right; line-height: 1.5; }.flight-log li { font-size: 11px; gap: 10px; line-height: 1.5; }.flight-log time { font-size: 9px; white-space: nowrap; }.flight-log li > span:first-child { min-width: 20px; }.field-notes { gap: 12px; }.report-body { padding: 0 15px 12px; gap: 10px; }.report-body canvas { width: 110px; height: 130px; }.report-body h2 { font-size: 28px; }.report-body .description,.report-body .small-note { font-size: 11px; }.verification-note { margin-block: 18px; }.seal { display: none; }footer { display: block; font-size: 7px; }footer span { display: block; }
  .approval-heading h2 { font-size: 33px; }.physical-instructions { gap: 6px; }.physical-instructions > div { padding: 9px 6px; gap: 7px; }.physical-instructions strong { font-size: 9px; }
}
@media(max-width:390px) { .resource div > span { font-size: 8px; }.resource strong { font-size: 26px; }.resource small { font-size: 9px; }.device-scene { height: 202px; }.wedgie-model { zoom: .83; }.device-orbit { width: 260px; }dialog { padding-inline: 17px; }.wedgie-stripes { margin-inline: -17px; }.approval-heading h2 { font-size: 31px; } }
@media(max-width:360px) { .planet-node { width: 104px; }.planet-action { font-size: 9px; } }
@media(max-width:760px) { .canvas-wrap[data-worlds="2"] { height: clamp(340px, calc(100svh - 350px), 650px); }.canvas-wrap[data-worlds="4"] { height: clamp(440px, calc(100svh - 350px), 650px); } }
@media(max-width:1200px) { .planet-title .planet-name { --planet-name-size: 20px; } }
@media(max-width:500px) {
  .launch-card { width: 260px; padding: 2px 18px 16px; }.launch-card img { width: 190px; height: 106px; margin-top: -16px; }.launch-card h2 { font-size: 33px; }.launch-card > p { font-size: 10px; margin: 10px 0 12px; }.launch-card .button { min-height: 45px; font-size: 15px; }.launch-card > span { font-size: 8px; }
  #minimap { width: 88px; height: 51px; bottom: 12px; left: 12px; }.map-controls { right: 10px; bottom: 12px; gap: 3px; padding: 4px; }.map-controls button { min-height: 32px; min-width: 27px; padding-inline: 6px; font-size: 9px; }
  .planet-title .planet-name { --planet-name-size: 19px; }.planet-info-button span { --planet-info-size: 20px; --planet-info-font-size: 11px; }.journey-banner { font-size: 13px; padding: 10px 13px; }.scan-readout { left: 12px; right: 12px; bottom: 76px; }
  .planet-popup { padding: 12px 20px 18px; }.planet-popup > canvas { width: 200px; height: 140px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none !important; transition: none !important; } }

.mission-settings { margin-top: 27px; background: #1c172c; }.mission-settings summary { padding: 16px 20px; }.mission-settings summary > span { font-weight: 400; font-size: 11px; }.mission-settings > p { color: var(--muted); font-size: 11px; line-height: 1.7; padding: 0 20px; max-width: 850px; }.confirmation-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 10px 20px; }.confirmation-options label { display: flex; align-items: center; gap: 10px; font-size: 12px; cursor: pointer; }.confirmation-options input { width: 18px; height: 18px; accent-color: var(--mint); flex-shrink: 0; }.mission-settings #settings-status { color: #c6b7dc; font-size: 10px; margin-bottom: 17px; }
@media(max-width:640px) { .confirmation-options { grid-template-columns: 1fr 1fr; gap: 17px 12px; }.confirmation-options label { font-size: 11px; }.mission-settings summary > span { display: block; margin: 6px 0 0 16px; } }

.confirmation-options .confirmation-switch { position: relative; gap: 11px; padding: 7px 0; }
.confirmation-switch input { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 44px; height: 26px; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch-track { position: relative; display: block; flex: 0 0 44px; width: 44px; height: 26px; border: 1px solid #77608a; border-radius: 20px; background: #3a2d4c; transition: background .2s, border-color .2s; }
.switch-track::after { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #c4b7d2; box-shadow: 0 2px 3px #0003; transition: transform .23s cubic-bezier(.2,.8,.3,1), background .2s; }
.confirmation-switch input:checked + .switch-track { background: var(--mint); border-color: #dfff8c; }
.confirmation-switch input:checked + .switch-track::after { transform: translateX(18px); background: #25321c; }
.confirmation-switch input:focus-visible + .switch-track { outline: 3px solid #bba3ff; outline-offset: 4px; }
.switch-copy { min-width: 0; }.switch-copy strong { display: block; font-size: 12px; font-weight: 700; }.switch-copy small { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; }
.switch-copy small::after { content: 'No device prompt'; }.confirmation-switch input:checked ~ .switch-copy small::after { content: 'Confirm on Wedgie'; }
.confirmation-switch:has(input:disabled) { opacity: .6; }
@media(max-width:500px) { .switch-copy strong { font-size: 10px; }.switch-copy small { font-size: 8px; }.confirmation-options { padding-inline: 14px; gap: 10px; }.confirmation-options .confirmation-switch { gap: 8px; } }

@media(max-width:760px) { .planet-popup { top: 78px; right: 14px; max-height: 360px; }.planet-popup > canvas { height: 100px; width: 180px; } }

.token-drop { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(ellipse at 95% 5%, #5f427b44, transparent 65%), var(--panel); }
.drop-intro { display: flex; align-items: center; gap: 20px; }.drop-intro img { border-radius: 50%; flex-shrink: 0; }.drop-intro h2 { font-size: 29px; }.drop-intro p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.6; }.drop-intro a,.drop-controls a { color: var(--mint); font-size: 11px; }
.drop-controls { margin-top: 20px; display: grid; grid-template-columns: auto minmax(180px,1fr) minmax(180px,1fr); gap: 12px; align-items: end; }.drop-controls label { display: grid; gap: 7px; font-size: 11px; color: var(--muted); }.drop-controls select,.drop-controls input { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #626581; border-radius: 8px; background: #171326; color: var(--text); padding: 10px; font: 11px ui-monospace,monospace; }.drop-address { font: 12px/1.7 ui-monospace,monospace; overflow-wrap: anywhere; color: var(--text); }.drop-controls .drop-address { grid-column: 1 / -1; margin: 2px 0; }#drop-status { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }
#drop-approval { text-align: center; }#drop-approval h2 { font-size: 42px; }#drop-approval > p { line-height: 1.7; }#drop-review-state { color: #d7d0e5; margin-bottom: 24px; }.drop-review-icon { display: block; margin: 20px auto; border-radius: 50%; }.drop-amount { font-weight: 850; color: var(--mint); }
@media(max-width:760px) { .token-drop { padding: 18px; }.drop-intro { gap: 12px; }.drop-intro img { width: 56px; height: 56px; }.drop-intro h2 { font-size: 24px; }.drop-controls { grid-template-columns: 1fr; gap: 14px; }.drop-controls .drop-address { grid-column: auto; }#drop-approval h2 { font-size: 32px; } }
.airdrop-setup { max-width: 840px; margin: 40px auto; padding-bottom: 50px; }.airdrop-setup h1 { font-size: 45px; }.airdrop-setup > p { color: var(--muted); line-height: 1.7; }.airdrop-setup .token-drop > p { line-height: 1.7; }.airdrop-setup label { display: block; font-size: 12px; margin-top: 18px; }.setup-address-input { width: 100%; min-height: 44px; margin: 10px 0; padding: 10px 12px; border: 1px solid #626581; border-radius: 8px; background: #171326; color: var(--text); font: 13px ui-monospace,monospace; }.airdrop-setup .button { margin-top: 10px; }#setup-status { margin-top: 24px; color: var(--mint); }

.crew-card{margin:28px 0;padding:28px;border:1px solid var(--line,#d8d3e3);border-radius:24px;background:var(--panel)}
#expedition-atlas { scroll-margin-top: 92px; }
.atlas-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 12px; margin-top: 12px; }
.atlas-controls label { margin: 0; }
.atlas-entries { padding-inline-start: 22px; }
.atlas-entries li { padding: 7px 0; }
#arkiv-tx { color: var(--mint); }
@media(max-width:650px) { .atlas-controls { grid-template-columns: 1fr; } }
.crew-heading{display:flex;gap:16px;flex-wrap:wrap;align-items:center;justify-content:space-between}.crew-card h2{margin:4px 0 12px}.crew-card label{display:grid;gap:8px;margin:14px 0;font-weight:600}.crew-card select{width:100%;padding:12px;border:1px solid #d3cfdf;border-radius:10px;background:#181424;color:var(--text);font:inherit;box-sizing:border-box}.monster-collection{display:grid;grid-template-columns:1fr 220px;gap:24px;margin-top:24px}.monster-collection canvas{align-self:center;background:#eeeafa;border-radius:50%}#crew-status{min-height:1.5em}@media(max-width:650px){.crew-card{padding:20px}.monster-collection{grid-template-columns:1fr}.monster-collection canvas{grid-row:1;justify-self:center}.crew-heading{align-items:flex-start}}
