/* App screens on top of the meteor stage (index.html). Same lane: space black, amber instrument light,
   Barlow Semi Condensed. Reference: Apollo DSKY and cockpit instruments. */

/* ---------- what shows where ---------- */
#music, #mute, #title { z-index: 6; }   /* above the orbit (5), below the dossier sheet (10) */
body:not([data-screen="orakel"]) #btnwrap,
body:not([data-screen="orakel"]) #caption,
body:not([data-screen="orakel"]) #readout,
body:not([data-screen="orakel"]) #info,
body:not([data-screen="orakel"]) #ctrl { display: none; }
body[data-cover="1"] #music, body[data-cover="1"] #mute, body[data-cover="1"] #title { display: none; }
#orbit { display: none; }
body[data-screen="home"] #orbit { display: block; }

/* ---------- home: orbit ---------- */
#orbit { position: fixed; inset: 0; z-index: 5; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ob-path { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.ob-path path { fill: none; stroke: rgba(255, 207, 90, 0.5); stroke-width: 1; stroke-dasharray: 2 5; }
.ob-path .ob-back { stroke: rgba(255, 207, 90, 0.16); }
.sat {
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 207, 90, 0.7); background: rgba(5, 7, 12, 0.85); color: var(--accent);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  -webkit-tap-highlight-color: transparent; transition: background 250ms, color 250ms, box-shadow 250ms;
}
.sat svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.sat.front { background: var(--accent); color: #0b0d12; box-shadow: 0 0 24px rgba(255, 207, 90, 0.45); }
.ob-label { position: absolute; left: 0; right: 0; text-align: center; padding: 0 20px; pointer-events: none; }
.ob-name { font-size: 34px; font-weight: 600; letter-spacing: 0.02em; }
.ob-line { margin-top: 6px; font-size: 15px; letter-spacing: 0.04em; color: #9aa1b0; min-height: 1.4em; }
.ob-open { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(34px + env(safe-area-inset-bottom)); white-space: nowrap; }
.ob-open:active { transform: translateX(-50%) translateY(1px); }

/* ---------- screen frame ---------- */
.scr {
  position: fixed; inset: 0; z-index: 20; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #06080c, #0a0906);
}
.scr.on { display: block; animation: scrIn 320ms cubic-bezier(.2, .8, .2, 1); }
@keyframes scrIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.scr-top {
  position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 48px 1fr auto; align-items: center;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px 4px; background: rgba(6, 8, 12, 0.92); border-bottom: 1px solid var(--line);
}
.scr-back { background: none; border: 0; color: var(--accent); font: 34px/1 var(--font); padding: 2px 10px 6px; cursor: pointer; }
.scr-title { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); }
.scr-aux { justify-self: end; }
.scr-body { padding: 18px 20px calc(48px + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto; }
.scr h2 { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); font-weight: 400; margin: 28px 0 10px; }
.linkbtn { background: none; border: 0; color: var(--accent); font: 14px var(--font); letter-spacing: 0.06em; padding: 6px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 18px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kv dt { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); }
.kv dd { font-size: 17px; margin-top: 4px; }
.pk-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.pk-actions .btn { flex: 1 1 auto; text-align: center; text-decoration: none; }
.scr .muted { color: var(--dim); font-size: 14px; }

/* ---------- Pakt ---------- */
.pk-doc { position: relative; }
.pk-names { font-size: 40px; font-weight: 600; line-height: 1.05; margin-top: 6px; }
.pk-oath { margin-top: 10px; font-size: 17px; line-height: 1.45; color: #c9ced8; }
.pk-coord { display: flex; flex-direction: column; margin-top: 22px; font-size: 30px; letter-spacing: 0.04em; line-height: 1.2; }
.pk-coord.small { font-size: 24px; margin-top: 0; }
.pk-region { margin-top: 6px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: #9aa1b0; }
.st-ok { color: var(--accent); }
.st-late { color: #e0806a; }
.pk-seal { display: block; width: 148px; height: 148px; margin: 26px auto 0; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; touch-action: none; -webkit-tap-highlight-color: transparent; }
.pk-seal svg { width: 100%; height: 100%; overflow: visible; }
.pk-seal .sl-o, .pk-seal .sl-i { fill: none; stroke: var(--accent); }
.pk-seal .sl-o { stroke-width: 1.6; }
.pk-seal .sl-i { stroke-width: 0.8; }
.pk-seal .sl-t { font: 7.6px var(--font); letter-spacing: 0.08em; fill: var(--accent); }
.pk-seal .sl-c { font: 600 15px var(--font); letter-spacing: 0.12em; fill: var(--accent); text-anchor: middle; }
.pk-seal .sl-hold { fill: none; stroke: var(--accent); stroke-width: 5; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 60px 60px; opacity: 0; }
.pk-seal.holding .sl-hold { transition: stroke-dashoffset 3s linear; stroke-dashoffset: 0; opacity: 0.85; }
.pk-stamp {
  position: absolute; right: 2px; bottom: 6px; transform: rotate(-12deg); border: 3px solid var(--accent); color: var(--accent);
  padding: 6px 12px 8px; text-align: center; font-size: 30px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(6, 8, 12, 0.85); line-height: 1;
}
.pk-stamp small { display: block; margin-top: 6px; font-size: 11px; font-weight: 400; letter-spacing: 0.06em; text-transform: none; line-height: 1.35; }
.pk-lead { font-size: 17px; line-height: 1.45; color: #c9ced8; margin-bottom: 8px; }
.pk-form label { display: block; margin-top: 16px; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); }
.pk-form input:not([type="radio"]) {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: 19px var(--font); color: var(--fg);
  background: #0b0e15; border: 1px solid var(--line); border-radius: 4px; color-scheme: dark;
}
.pk-form input:focus { outline: none; border-color: var(--accent); }
.pk-form .btn { width: 100%; margin-top: 26px; }
.pk-form .linkbtn { display: block; margin: 16px auto 0; }
.seg { border: 0; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; width: 100%; }
.pk-form .seg label { margin: 0; flex: 1; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 11px 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 17px; letter-spacing: 0.04em; text-transform: none; color: var(--fg); cursor: pointer; }
.seg input:checked + span { border-color: var(--accent); color: var(--accent); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.dlg { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.72); display: flex; align-items: center; justify-content: center; padding: 24px; }
.dlg-box { max-width: 360px; background: #0b0e15; border: 1px solid var(--accent); border-radius: 6px; padding: 22px 20px; }
.dlg-box h3 { font-size: 24px; font-weight: 600; }
.dlg-box p { margin-top: 10px; font-size: 16px; line-height: 1.45; color: #c9ced8; }
.dlg-b { display: flex; gap: 10px; margin-top: 20px; }
.dlg-b .btn { flex: 1; padding: 13px 10px; }

/* ---------- Peilung ---------- */
.fd-sim { margin: -4px 0 10px; padding: 8px 10px; border: 1px dashed var(--accent); color: var(--accent); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; }
.fd-dial { width: min(300px, 78vw); aspect-ratio: 1; margin: 4px auto 0; }
.fd-dial svg { width: 100%; height: 100%; overflow: visible; }
.fd-rose, .fd-arrow { transition: transform 250ms linear; }
.fd-ring { fill: rgba(10, 18, 38, 0.6); stroke: rgba(150, 170, 210, 0.45); stroke-width: 1; }
.tk { stroke: rgba(205, 218, 240, 0.35); stroke-width: 1; }
.tk.l { stroke: rgba(205, 218, 240, 0.8); stroke-width: 1.5; }
.cd { font: 600 17px var(--font); fill: #9aa1b0; text-anchor: middle; dominant-baseline: middle; }
.cd.n { fill: #e0806a; }
.fd-arrow path { fill: rgba(255, 207, 90, 0.18); stroke: rgba(255, 207, 90, 0.4); stroke-width: 1.5; stroke-linejoin: round; }
.fd-arrow.on path { fill: var(--accent); stroke: #fff2c8; filter: drop-shadow(0 0 10px rgba(255, 207, 90, 0.55)); }
.fd-hub { fill: #0b0d12; stroke: var(--accent); stroke-width: 1.5; }
.fd-dist { margin-top: 14px; text-align: center; font-size: 58px; font-weight: 600; line-height: 1; letter-spacing: 0.01em; }
.fd-sub { margin-top: 8px; text-align: center; font-size: 15px; letter-spacing: 0.06em; color: #9aa1b0; min-height: 1.4em; }
.fd-ladder { list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 22px; }
.fd-ladder li { position: relative; padding-top: 12px; text-align: center; font-size: 11px; letter-spacing: 0.02em; color: var(--dim); white-space: nowrap; }
.fd-ladder li::before { content: ""; position: absolute; top: 0; left: 2px; right: 2px; height: 4px; border-radius: 2px; background: var(--line); }
.fd-ladder li.done { color: var(--fg); }
.fd-ladder li.done::before { background: var(--accent); }
.fd-ladder li.flash::before { animation: msFlash 1.6s ease-out; }
@keyframes msFlash { 0% { box-shadow: 0 0 0 0 rgba(255, 207, 90, 0.9); } 100% { box-shadow: 0 0 0 10px rgba(255, 207, 90, 0); } }
.fd-check { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.fd-pos { display: flex; flex-direction: column; font-size: 26px; letter-spacing: 0.04em; line-height: 1.2; }
.fd-verdict { margin-top: 14px; font-size: 18px; }
.fd-verdict.ok { color: var(--accent); }
.fd-check .btn { width: 100%; margin-top: 14px; }
.fd-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.fd-opts { display: flex; gap: 22px; justify-content: center; margin-top: 18px; font-size: 15px; color: #c9ced8; }
.fd-opts input { accent-color: var(--accent); width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.fd-note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--dim); text-align: center; }

/* ---------- Reise ---------- */
.rs-count { text-align: center; padding: 14px 0 6px; }
.rs-big { font-size: 56px; font-weight: 600; line-height: 1; color: var(--accent); }
.rs-lab { margin-top: 8px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: #9aa1b0; }
.rs-flights { list-style: none; border-top: 1px solid var(--line); }
.rs-flights li { display: grid; grid-template-columns: 86px 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.rs-d { color: #9aa1b0; font-size: 14px; padding-top: 1px; }
.rs-r b { font-weight: 600; margin-right: 4px; }
.rs-no { color: var(--accent); font-size: 14px; letter-spacing: 0.06em; padding-top: 1px; }
.rs-note { margin-top: 10px; }

/* ---------- Würfel ---------- */
.dc-q { display: block; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); }
.dc-q input { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: 18px var(--font); color: var(--fg); background: #0b0e15; border: 1px solid var(--line); border-radius: 4px; }
.dc-q input:focus { outline: none; border-color: var(--accent); }
.dc-read { display: flex; justify-content: center; margin-top: 30px; }
.dc-read .line { height: 92px; gap: 10px; }
.dc-read .cell { width: 66px; height: 92px; border-bottom-width: 3px; }
.dc-read .strip div { height: 92px; line-height: 92px; font-size: 84px; font-weight: 600; }
.dc-read .cell.lead { color: #343947; }
.dc-scale { position: relative; display: flex; justify-content: space-between; margin: 40px 6px 0; padding-top: 12px; font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); }
.dc-scale i { position: absolute; top: -5px; width: 2px; height: 9px; margin-left: -1px; background: var(--accent); box-shadow: 0 0 8px rgba(255, 207, 90, 0.8); transition: left 400ms cubic-bezier(.2, .8, .2, 1); }
.dc-hist { list-style: none; border-top: 1px solid var(--line); }
.dc-hist li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.dc-hist b { font-size: 22px; font-weight: 600; color: var(--accent); }
.dc-hist time { color: var(--dim); font-size: 13px; }

/* ---------- Arabisch ---------- */
.vc-sync { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); padding-right: 12px; }
.vc-sync.off { color: var(--dim); }
.vc-today { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-top: 18px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vc-today b { display: block; font-size: 40px; font-weight: 600; line-height: 1; color: var(--accent); }
.vc-today span { display: block; margin-top: 6px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: #9aa1b0; }
.vc-bar { display: flex; height: 6px; margin-top: 18px; border-radius: 3px; background: var(--line); overflow: hidden; }
.vc-bar i { display: block; height: 100%; }
.vc-bar .k, .vc-legend .k { background: var(--accent); }
.vc-bar .l, .vc-legend .l { background: rgba(255, 207, 90, 0.4); }
.vc-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; color: #9aa1b0; }
.vc-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-right: 6px; }
.vc-set { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: #c9ced8; }
.vc-set select { font: 17px var(--font); color: var(--fg); background: #0b0e15; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; }
.vc-meta { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #9aa1b0; }
.vc-card { position: relative; margin-top: 16px; min-height: 260px; padding: 40px 18px 64px; border: 1px solid var(--line); border-radius: 6px; text-align: center; background: rgba(11, 14, 21, 0.7); }
.vc-tr { font-size: 40px; font-weight: 600; line-height: 1.15; color: var(--accent); overflow-wrap: anywhere; }
.vc-en { font-size: 30px; line-height: 1.2; }
.vc-hint { margin-top: 12px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.vc-sep { width: 40px; height: 1px; margin: 22px auto; background: var(--accent); opacity: 0.6; }
.vc-play { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent); background: none; color: var(--accent); cursor: pointer; padding: 0; }
.vc-play svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; vertical-align: middle; }
.vc-ans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.vc-ans .btn { padding: 12px 4px; }
.vc-ans small { display: block; margin-top: 3px; font-size: 12px; opacity: 0.75; }
.vc-stop { display: block; margin: 18px auto 0; }
.vc-find { display: block; width: 100%; margin-top: 12px; padding: 11px 12px; font: 17px var(--font); color: var(--fg); background: #0b0e15; border: 1px solid var(--line); border-radius: 4px; }
.vc-find:focus { outline: none; border-color: var(--accent); }
.vc-list { list-style: none; border-top: 1px solid var(--line); }
.vc-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) minmax(0, 1.2fr) 34px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.vc-list li[hidden] { display: none; }
.vc-list b { font-weight: 600; color: var(--accent); }
.vc-list span { color: #c9ced8; font-size: 15px; }
.vc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.vc-dot.lernt { background: rgba(255, 207, 90, 0.4); }
.vc-dot.sitzt { background: var(--accent); }
.vc-mini { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--accent); font-size: 11px; cursor: pointer; }
.vc-code { margin: 18px 0 8px; font-size: 30px; font-weight: 600; letter-spacing: 0.08em; text-align: center; color: var(--accent); user-select: all; }
