/* ============ Spieler-App ============ */
html, body { min-height: 100%; }
body { overscroll-behavior-y: none; }
#app { min-height: 100dvh; }
.wrap { width: min(100%, 580px); margin: 0 auto; padding: 0 18px; }

/* Hintergrund: weiche Farbfelder + Routenlinie */
.aura { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aura::before, .aura::after { content: ''; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.aura::before { width: 70vmax; height: 70vmax; left: -30vmax; top: -34vmax; background: radial-gradient(circle, rgba(var(--accent-rgb), .20), transparent 62%); }
.aura::after { width: 60vmax; height: 60vmax; right: -28vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(196, 180, 140, .45), transparent 65%); }

/* ============ Startseite ============ */
.landing { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding-top: calc(18px + var(--safe-t)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.mark .logo { width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--sh-1); }
.mark .logo svg { width: 16px; height: 16px; }
.mark small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .02em; }
.langsw { display: inline-flex; border-radius: 999px; padding: 3px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--line); }
.langsw button { border: 0; background: none; font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; color: var(--ink-3); transition: background-color 200ms ease, color 200ms ease; }
.langsw button.on { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.hero { align-self: center; padding: 40px 0 24px; isolation: isolate; }
.hero .display { margin: 22px 0 18px; }
.hero .lead { max-width: 30ch; margin: 0 0 30px; }
.route-art { position: absolute; right: -40px; top: 90px; width: 300px; opacity: .55; pointer-events: none; z-index: -1; }
.route-art path { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 7; }
.route-art .draw { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 3.2s var(--ease-io) .4s forwards; }
.route-art circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.route-art circle.hot { fill: var(--accent); stroke: none; }
@keyframes draw { to { stroke-dashoffset: 0 } }

.codebox { display: grid; gap: 16px; padding: 18px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; position: relative; }
.otp .cell {
  height: 62px; border-radius: 15px; background: var(--paper); display: grid; place-items: center; font-family: var(--mono); font-size: 25px; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 200ms ease, background-color 200ms ease, transform 200ms var(--ease-out);
}
.otp .cell.f { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2), var(--sh-1); }
.otp .cell.cur { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 5px rgba(18, 18, 17, .06); background: #fff; }
.otp .cell.cur::after { content: ''; width: 2px; height: 26px; background: var(--ink); border-radius: 2px; animation: blink 1s steps(2) infinite; }
.otp .cell.f::after { display: none; }
@keyframes blink { 50% { opacity: 0 } }
.otp input { position: absolute; inset: 0; opacity: 0; font-size: 16px; letter-spacing: 3em; caret-color: transparent; text-transform: uppercase; }
.err { display: flex; gap: 8px; align-items: flex-start; color: var(--bad); font-size: 14px; font-weight: 500; }
.foot { padding: 20px 0 calc(22px + var(--safe-b)); color: var(--ink-3); font-size: 12px; display: flex; justify-content: space-between; gap: 12px; }

/* ============ Vorbereitung / Briefing ============ */
.page { padding-top: calc(16px + var(--safe-t)); padding-bottom: calc(40px + var(--safe-b)); }
.cover {
  position: relative; border-radius: calc(var(--r-xl) - var(--bezel)); overflow: hidden; min-height: 210px; padding: 22px; display: grid; align-content: end;
  background: radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb), .9), rgba(var(--accent-rgb), .55) 45%, #2A221C 100%); color: #fff;
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10, 8, 6, .55)); }
.cover > * { position: relative; z-index: 1; }
.cover .h1 { color: #fff; }
.cover .sub { opacity: .85; margin-top: 8px; font-size: 14.5px; max-width: 34ch; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 16px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.stepper b { min-width: 42px; text-align: center; font-family: var(--mono); font-size: 18px; font-weight: 500; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--sh-1); display: grid; place-items: center; transition: transform 140ms var(--ease-out); }
.stepper button:active { transform: scale(.92); }
.perm { display: flex; gap: 14px; align-items: flex-start; }
.perm .pi { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.perm.ok .pi { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.rules { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rules li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.rules li span.n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); flex: none; }

/* Halten-zum-Starten */
.hold { --p: 0; position: relative; width: 100%; height: 68px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; overflow: hidden; font-weight: 580; font-size: 16px; user-select: none; -webkit-user-select: none; touch-action: none; -webkit-touch-callout: none; box-shadow: 0 16px 34px -16px rgba(18, 18, 17, .6); transition: transform 160ms var(--ease-out); }
.hold:active { transform: scale(.985); }
.hold .fill { position: absolute; inset: 0; background: var(--accent); clip-path: inset(0 calc(100% - var(--p) * 100%) 0 0 round 999px); }
.hold .lbl { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.hold .ring { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); }

/* ============ Spiel-Rahmen ============ */
.hud {
  position: fixed; z-index: 400; top: calc(10px + var(--safe-t)); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; width: max-content; max-width: calc(100vw - 20px);
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--line), var(--sh-2); animation: hudIn 700ms var(--ease-drawer) both;
}
@keyframes hudIn { from { opacity: 0; transform: translate(-50%, -140%); } to { opacity: 1; transform: translate(-50%, 0); } }
.hud .ringp { position: relative; width: 38px; height: 38px; display: grid; place-items: center; }
.hud .ringp svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.hud .ringp .t { font-family: var(--mono); font-size: 11px; font-weight: 600; }
.hud .timer { display: flex; flex-direction: column; align-items: flex-start; padding: 0 10px 0 4px; line-height: 1.05; }
.hud .timer b { font-family: var(--mono); font-size: 19px; font-weight: 500; letter-spacing: -0.03em; font-feature-settings: 'tnum'; }
.hud .timer small { font-size: 10.5px; color: var(--ink-3); font-weight: 520; letter-spacing: .04em; }
.hud .timer small.pen { color: var(--bad); }
.hud .sep { width: 1px; height: 26px; background: var(--line-2); }
.hud .team { font-size: 13px; font-weight: 580; padding: 0 8px; max-width: 26vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dock {
  position: fixed; z-index: 400; bottom: calc(12px + var(--safe-b)); left: 50%; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 999px; width: min(400px, calc(100vw - 24px));
  background: rgba(18, 18, 17, .88); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08); animation: dockIn 760ms var(--ease-drawer) 80ms both;
}
@keyframes dockIn { from { opacity: 0; transform: translate(-50%, 150%); } to { opacity: 1; transform: translate(-50%, 0); } }
.dock .pill { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4); border-radius: 999px; background: rgba(255, 255, 255, .13); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); transition: transform 420ms var(--ease-drawer); }
.dock button { position: relative; z-index: 1; border: 0; background: none; color: rgba(255, 255, 255, .55); height: 50px; border-radius: 999px; display: grid; place-items: center; align-content: center; gap: 2px; font-size: 10.5px; font-weight: 560; letter-spacing: .03em; transition: color 220ms ease, transform 160ms var(--ease-out); }
.dock button:active { transform: scale(.94); }
.dock button.on { color: #fff; }
.dock button .badge { top: 4px; right: calc(50% - 20px); box-shadow: 0 0 0 2px #1d1d1b; }

.stage { padding-top: calc(80px + var(--safe-t)); padding-bottom: calc(112px + var(--safe-b)); min-height: 100dvh; }
.topfade { position: fixed; z-index: 390; left: 0; right: 0; top: 0; height: calc(78px + var(--safe-t)); pointer-events: none; background: linear-gradient(180deg, var(--paper) 45%, rgba(243, 240, 232, 0)); }

/* ============ Station ============ */
.st-head { padding: 18px 4px 6px; }
.st-head .h1 { margin: 16px 0 14px; }
.progress-dots { display: flex; gap: 5px; margin-top: 18px; }
.progress-dots i { height: 4px; flex: 1; border-radius: 4px; background: var(--paper-3); transition: background-color 400ms ease; }
.progress-dots i.d { background: var(--ink); } .progress-dots i.c { background: var(--accent); }

.route { display: grid; gap: 16px; }
.dirline { display: flex; align-items: center; gap: 14px; }
.compass { position: relative; width: 64px; height: 64px; border-radius: 50%; flex: none; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; }
.compass .n { position: absolute; top: 4px; font-size: 9px; font-weight: 700; color: var(--ink-3); }
.compass .arrow { width: 30px; height: 30px; color: var(--accent); transition: transform 700ms var(--ease-out); }
.dist { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.radar { position: relative; width: 22px; height: 22px; }
.radar::before, .radar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid currentColor; animation: radar 1.4s var(--ease-out) infinite; }
.radar::after { animation-delay: .7s; }
@keyframes radar { from { transform: scale(.3); opacity: 1 } to { transform: scale(1.5); opacity: 0 } }

.mini-map { height: 180px; border-radius: 18px; overflow: hidden; background: var(--paper-2); position: relative; }
.media { display: grid; gap: 10px; }
.media img, .media video { width: 100%; border-radius: 16px; background: var(--paper-2); }
.media audio { width: 100%; }
.media figcaption { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* ============ Rätsel ============ */
.pz { display: grid; gap: 18px; }
.pz-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pz .q { font-size: 17.5px; line-height: 1.5; color: var(--ink); }
.pz-solved { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.pz-solved .ck { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.pz-solved .ck.skip { background: var(--warn-soft); color: var(--warn); }
.pz-solved .t { font-weight: 560; font-size: 14.5px; }
.pz-solved .s { color: var(--ink-2); font-size: 14px; margin-top: 3px; }
.stack-solved { display: grid; gap: 8px; }

.opts { display: grid; gap: 9px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; padding: 15px 16px; border-radius: 17px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 16px; font-weight: 500;
  transition: box-shadow 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
}
.opt:active { transform: scale(.985); }
.opt .mk { width: 24px; height: 24px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px var(--ink-4); display: grid; place-items: center; transition: background-color 200ms ease, box-shadow 200ms ease; }
.opt.sq .mk { border-radius: 8px; }
.opt.on { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink), var(--sh-1); }
.opt.on .mk { background: var(--ink); box-shadow: none; color: #fff; }
.opt .num { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600; background: var(--paper-3); color: var(--ink-3); transition: background-color 200ms ease, color 200ms ease, transform 300ms var(--ease-spring); }
.opt.on .num { background: var(--accent); color: #fff; transform: scale(1.06); }
.opt img { width: 54px; height: 54px; object-fit: cover; border-radius: 12px; }

/* Zahlenschloss */
.lock { display: flex; justify-content: center; gap: 10px; padding: 18px 10px; border-radius: 22px; background: linear-gradient(180deg, #2A2926, #121211); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 20px 40px -20px rgba(0, 0, 0, .6); }
.dial { display: grid; justify-items: center; gap: 6px; touch-action: none; }
.dial button { width: 52px; height: 30px; border: 0; background: none; color: rgba(255, 255, 255, .55); display: grid; place-items: center; }
.dial button:active { color: #fff; }
.dial .win { position: relative; width: 52px; height: 72px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #0B0B0A, #2B2A27 50%, #0B0B0A); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 8px 14px rgba(0, 0, 0, .6), inset 0 -8px 14px rgba(0, 0, 0, .6); }
.dial .reel { position: absolute; left: 0; right: 0; top: 0; transition: transform 380ms var(--ease-out); }
.dial .reel span { display: grid; place-items: center; height: 72px; font-family: var(--mono); font-size: 34px; font-weight: 500; color: #F5F2EA; }
.dial .win::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(var(--accent-rgb), .5); }

.answer-row { display: grid; gap: 10px; }
.feedback { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 520; min-height: 22px; }
.feedback.bad { color: var(--bad); } .feedback.warn { color: var(--warn); } .feedback.ok { color: var(--ok); }
.helpbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.hintbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; border: 0; background: rgba(var(--accent-rgb), .1); color: var(--accent); font-weight: 580; font-size: 14px; transition: transform 160ms var(--ease-out); }
.hintbtn:active { transform: scale(.96); }
.hintbtn small { color: var(--ink-3); font-weight: 500; }
.hint-item { padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--sh-1); display: flex; gap: 12px; }
.hint-item .lv { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(var(--accent-rgb), .12); color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 600; }

/* Kamera / QR */
.cam { position: relative; border-radius: 20px; overflow: hidden; background: #0d0d0c; aspect-ratio: 3/4; }
.cam video { width: 100%; height: 100%; object-fit: cover; }
.cam .frame { position: absolute; inset: 18%; border-radius: 22px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.cam .frame::before { content: ''; position: absolute; inset: 0; border-radius: 22px; border: 2px solid rgba(255, 255, 255, .85); }
.cam .scanline { position: absolute; left: 18%; right: 18%; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); top: 18%; animation: scan 2s var(--ease-io) infinite alternate; }
@keyframes scan { to { top: 82% } }
.photo-prev { position: relative; border-radius: 20px; overflow: hidden; }
.photo-prev img { width: 100%; max-height: 420px; object-fit: cover; }

/* Erfolg */
.win-card { position: fixed; z-index: 720; left: 50%; top: 50%; width: min(420px, calc(100vw - 32px)); transform: translate(-50%, -50%); animation: winIn 520ms var(--ease-spring) both; }
@keyframes winIn { from { opacity: 0; transform: translate(-50%, -44%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%); } }
.check-anim { width: 76px; height: 76px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; margin: 4px auto 14px; box-shadow: 0 16px 34px -14px rgba(29, 138, 87, .7); animation: pop 520ms var(--ease-spring) both; }
.check-anim svg path { stroke: #fff; stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: dash 420ms var(--ease-out) 220ms forwards; }
@keyframes dash { to { stroke-dashoffset: 0 } }

/* Stationsende */
.done-hero { text-align: center; padding: 34px 22px 26px; }
.done-hero .seal { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); animation: pop 600ms var(--ease-spring) both; }

/* ============ Karte ============ */
.map-full, .map-full.maplibregl-map { position: fixed; inset: 0; z-index: 1; background: var(--paper-2); }
.map-full .maplibregl-ctrl-attrib { font-size: 10px; background: rgba(255, 255, 255, .7); border-radius: 8px; }
.map-full .maplibregl-ctrl-bottom-right { bottom: calc(84px + var(--safe-b)); }
.map-full .maplibregl-ctrl-bottom-left { display: none; }
.map-fab { position: fixed; z-index: 402; right: 16px; bottom: calc(96px + var(--safe-b)); display: grid; gap: 10px; }
.map-legend { position: fixed; z-index: 402; left: 12px; right: 12px; top: calc(76px + var(--safe-t)); display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.map-legend::-webkit-scrollbar { display: none; }
.map-legend .chip { background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); height: 32px; }
.mk.st { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600; background: #fff; color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink), 0 8px 18px -8px rgba(0, 0, 0, .5); }
.mk.st.done { background: var(--ink); color: #fff; }
.mk.st.cur { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .25), 0 10px 20px -8px rgba(var(--accent-rgb), .8); animation: mkPulse 2s var(--ease-out) infinite; }
@keyframes mkPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .5), 0 10px 20px -8px rgba(var(--accent-rgb), .8) } 100% { box-shadow: 0 0 0 16px rgba(var(--accent-rgb), 0), 0 10px 20px -8px rgba(var(--accent-rgb), .8) } }
.mk.me { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #fff, 0 0 0 10px rgba(47, 107, 255, .18), 0 6px 14px rgba(0, 0, 0, .3); }
.mk.team { min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; display: grid; place-items: center; font-size: 11.5px; font-weight: 650; color: #fff; background: var(--ink); box-shadow: 0 0 0 3px #fff, 0 8px 16px -6px rgba(0, 0, 0, .5); white-space: nowrap; }

/* ============ Akte ============ */
.log { display: grid; gap: 12px; }
.log-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.log-item .li { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--sh-1); color: var(--ink-2); }
.log-item .li.acc { background: var(--accent); color: #fff; box-shadow: none; }
.log-item .lb { padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.log-item .lh { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.log-item img { border-radius: 12px; margin-top: 8px; }

/* ============ Funk / Chat ============ */
.chat { display: grid; gap: 10px; padding-bottom: 10px; }
.bubble { max-width: 82%; padding: 11px 15px; border-radius: 20px; font-size: 15px; line-height: 1.4; animation: rise 420ms var(--ease-out) both; }
.bubble.me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 7px; }
.bubble.them { justify-self: start; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--sh-1); border-bottom-left-radius: 7px; }
.bubble.hint { background: rgba(var(--accent-rgb), .1); box-shadow: none; }
.bubble .who { font-size: 11px; font-weight: 600; letter-spacing: .04em; opacity: .6; margin-bottom: 3px; text-transform: uppercase; }
.bubble .at { font-size: 10.5px; opacity: .5; margin-top: 4px; text-align: right; }
.composer { position: fixed; z-index: 401; left: 50%; transform: translateX(-50%); bottom: calc(80px + var(--safe-b)); width: min(556px, calc(100vw - 24px)); display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 0 0 1px var(--line), var(--sh-2); }
.composer input { flex: 1; border: 0; background: transparent; outline: none; padding: 0 14px; font-size: 16px; min-width: 0; }
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; }
.quick::-webkit-scrollbar { display: none; }
.quick button { border: 0; flex: none; height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line-2); font-size: 13.5px; font-weight: 520; }

/* ============ Anruf / Botschaften ============ */
.call { position: fixed; inset: 0; z-index: 800; display: grid; grid-template-rows: 1fr auto; padding: calc(60px + var(--safe-t)) 28px calc(50px + var(--safe-b)); color: #fff; background: radial-gradient(120% 80% at 50% 0%, #3A342C, #11100E 70%); animation: fadein 300ms ease both; }
.call .who { text-align: center; }
.call .avatar { position: relative; width: 112px; height: 112px; border-radius: 50%; margin: 20px auto 22px; display: grid; place-items: center; background: linear-gradient(160deg, #5A5248, #2A2622); font-family: var(--serif); font-size: 50px; }
.call .avatar::before, .call .avatar::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); animation: ringOut 2s var(--ease-out) infinite; }
.call .avatar::after { animation-delay: 1s; }
.call.live .avatar::before, .call.live .avatar::after { display: none; }
@keyframes ringOut { from { transform: scale(.9); opacity: 1 } to { transform: scale(1.5); opacity: 0 } }
.call .name { font-family: var(--serif); font-size: 38px; line-height: 1; }
.call .sub { opacity: .6; margin-top: 10px; font-size: 14px; letter-spacing: .04em; }
.call .transcript { margin: 30px auto 0; max-width: 32ch; font-family: var(--serif); font-size: 23px; line-height: 1.3; text-align: center; min-height: 3em; }
.call .transcript span { opacity: 0; animation: wordIn 420ms var(--ease-out) forwards; }
@keyframes wordIn { from { opacity: 0; filter: blur(4px) } to { opacity: 1; filter: blur(0) } }
.call .actions { display: flex; justify-content: space-around; }
.call .cbtn { display: grid; justify-items: center; gap: 10px; font-size: 13px; opacity: .9; background: none; border: 0; color: #fff; }
.call .cbtn i { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-style: normal; transition: transform 160ms var(--ease-out); }
.call .cbtn:active i { transform: scale(.92); }
.call .cbtn.yes i { background: #2FBF71; box-shadow: 0 12px 30px -10px #2FBF71; animation: nudge 1.2s var(--ease-io) infinite; }
.call .cbtn.no i { background: #E5484D; }
@keyframes nudge { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }

.notice { position: fixed; z-index: 790; left: 50%; top: calc(12px + var(--safe-t)); width: min(460px, calc(100vw - 20px)); transform: translateX(-50%); animation: noticeIn 520ms var(--ease-drawer) both; }
@keyframes noticeIn { from { opacity: 0; transform: translate(-50%, -130%); } to { opacity: 1; transform: translate(-50%, 0); } }
.notice .core { padding: 16px 18px; }
.notice .from { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.notice .from .av { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; }
.notice .body { font-family: var(--serif); font-size: 21px; line-height: 1.28; }
.fullmedia { position: fixed; inset: 0; z-index: 800; background: #0A0A09; display: grid; place-items: center; animation: fadein 260ms ease both; }
.fullmedia video, .fullmedia img { max-width: 100%; max-height: 100dvh; }
.fullmedia .x { position: absolute; top: calc(14px + var(--safe-t)); right: 14px; }

/* ============ Ziel ============ */
.finish { padding-top: calc(40px + var(--safe-t)); padding-bottom: calc(60px + var(--safe-b)); }
.bigtime { font-family: var(--mono); font-size: clamp(56px, 18vw, 96px); font-weight: 400; letter-spacing: -0.06em; line-height: .9; font-feature-settings: 'tnum', 'zero'; }
.pin { display: flex; justify-content: center; gap: 10px; }
.pin span { width: 58px; height: 74px; border-radius: 16px; display: grid; place-items: center; font-family: var(--mono); font-size: 36px; font-weight: 500; background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 30px -14px rgba(0, 0, 0, .6); animation: flip 620ms var(--ease-spring) both; }
.pin span:nth-child(2) { animation-delay: 90ms } .pin span:nth-child(3) { animation-delay: 180ms } .pin span:nth-child(4) { animation-delay: 270ms } .pin span:nth-child(5) { animation-delay: 360ms } .pin span:nth-child(6) { animation-delay: 450ms }
@keyframes flip { from { transform: rotateX(90deg); opacity: 0 } to { transform: none; opacity: 1 } }
.pin.hidden span { background: var(--paper-3); color: transparent; box-shadow: inset 0 0 0 1px var(--line-2); animation: none; }
.stars { display: flex; gap: 6px; justify-content: center; }
.stars button { border: 0; background: none; color: var(--paper-3); padding: 4px; transition: transform 200ms var(--ease-spring), color 200ms ease; }
.stars button.on { color: #F2A93B; transform: scale(1.08); }
.board { display: grid; gap: 4px; }
.board .r { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.board .r.me { background: rgba(var(--accent-rgb), .1); }
.board .r b { font-family: var(--mono); font-weight: 500; }
.board .r .p { font-family: var(--mono); color: var(--ink-3); font-size: 13px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kv > div { padding: 12px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.kv b { display: block; font-family: var(--mono); font-size: 18px; font-weight: 500; margin-top: 3px; }
.kv span { font-size: 11px; color: var(--ink-3); font-weight: 560; letter-spacing: .05em; text-transform: uppercase; }

.offline-pill { position: fixed; z-index: 850; left: 50%; bottom: calc(84px + var(--safe-b)); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--warn); color: #fff; font-size: 13px; font-weight: 560; box-shadow: var(--sh-2); animation: toastIn 400ms var(--ease-drawer) both; }
.loading-screen { min-height: 100dvh; display: grid; place-items: center; }

/* ============ AR / Scanner ============ */
.arcam { position: fixed; inset: 0; z-index: 820; background: #050505; overflow: hidden; animation: fadein 260ms ease both; }
.arcam > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-ov { position: absolute; left: 0; top: 0; width: 480px; transform-origin: 0 0; opacity: 0; transition: opacity 240ms ease; will-change: transform; pointer-events: none; }
.ar-ov video, .ar-ov img { width: 100%; display: block; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 2px rgba(255, 255, 255, .85); }
.ar-audio { width: 100%; aspect-ratio: 16/9; display: grid; place-items: center; border-radius: 14px; background: rgba(var(--accent-rgb), .9); color: #fff; }
.ar-frame { position: absolute; left: 50%; top: 44%; width: min(62vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); transition: transform 300ms var(--ease-spring); }
.ar-frame i { position: absolute; width: 44px; height: 44px; border: 3px solid rgba(255, 255, 255, .92); }
.ar-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 20px; }
.ar-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 20px; }
.ar-frame i:nth-child(3) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 20px; }
.ar-frame i:nth-child(4) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 20px; }
.ar-frame { animation: arBreath 2.4s var(--ease-io) infinite; }
@keyframes arBreath { 50% { transform: translate(-50%, -50%) scale(.94) } }
.ar-frame.hit { animation: none; transform: translate(-50%, -50%) scale(1.05); }
.ar-frame.hit i { border-color: var(--accent); }
.ar-top { position: absolute; left: 0; right: 0; top: calc(12px + var(--safe-t)); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.ar-top .iconbtn { background: rgba(0, 0, 0, .45); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ar-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-pill .rec { width: 8px; height: 8px; border-radius: 50%; background: #FF4D4D; animation: blink 1.2s steps(2) infinite; }
.ar-bottom { position: absolute; left: 0; right: 0; bottom: calc(18px + var(--safe-b)); padding: 0 14px; display: grid; justify-items: center; }
.ar-hint { padding: 12px 18px; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 14.5px; font-weight: 520; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; gap: 10px; }
.ar-card { width: min(460px, 100%); display: grid; gap: 12px; padding: 18px; border-radius: 26px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.ok-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.ar-teaser { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, #1B1A18, #2E2A24); color: #fff; }
.ar-teaser .small { color: rgba(255, 255, 255, .7) !important; margin-top: 4px; }
.ar-art { position: relative; width: 66px; height: 66px; flex: none; display: grid; place-items: center; color: var(--accent); }
.ar-art span { position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .8); }
.ar-art span:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.ar-art span:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.ar-art span:nth-child(3) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.ar-art span:nth-child(4) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }

/* ============ Tablet ============ */
@media (min-width: 740px) {
  .wrap { width: min(100%, 700px); padding-left: 28px; padding-right: 28px; }
  body { font-size: 16px; }
  .story { font-size: 25px; }
  .pz .q { font-size: 19px; }
  .dock { width: 460px; }
  .dock button { height: 54px; font-size: 11.5px; }
  .opt { padding: 18px 20px; font-size: 17px; }
  .dial .win { width: 62px; height: 84px; } .dial .reel span { height: 84px; font-size: 40px; } .dial button { width: 62px; }
  .map-legend { left: 50%; transform: translateX(-50%); right: auto; max-width: 90vw; }
}
@media (min-width: 1000px) {
  .wrap.stage { width: min(100%, 1180px); }
  .st-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
  .st-grid .st-left { position: sticky; top: calc(96px + var(--safe-t)); }
  .st-grid .st-right { padding-top: 22px; display: grid; gap: 16px; }
  .wrap.finish, .wrap.page { width: min(100%, 760px); }
}
@media (min-width: 740px) and (max-width: 999px) {
  .st-grid { display: grid; gap: 16px; }
  .st-grid .st-right { display: grid; gap: 16px; }
}
@media (max-width: 739px) {
  .st-grid, .st-grid .st-right { display: grid; gap: 16px; }
}

/* ============ AR 3D & Erkennung ============ */
.ar-quad { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ar-quad polygon { fill: rgba(var(--accent-rgb), .16); stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; opacity: 0; transition: opacity 160ms ease; filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), .7)); }
.ar-glwrap { position: absolute; inset: 0; pointer-events: none; }
.ar-glwrap canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.ar-unmute { position: absolute; left: 50%; top: calc(76px + var(--safe-t)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font: 600 13.5px var(--sans); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); cursor: pointer; }
.ar-art.compass { display: grid; place-items: center; color: var(--accent); }
.win-media { width: 100%; margin-top: 16px; border-radius: 16px; display: block; background: #000; max-height: 46vh; object-fit: contain; }

/* ============ UV-Lampe ============ */
.uv { --x: 50%; --y: 40%; --r: 96px; position: relative; border-radius: var(--r-md); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; background: #111; box-shadow: var(--sh-2); }
.uv img { display: block; width: 100%; pointer-events: none; -webkit-user-drag: none; }
.uv-base { transition: filter 300ms ease; }
.uv-dark, .uv-glow, .uv-ring { position: absolute; inset: 0; opacity: 0; transition: opacity 260ms ease; pointer-events: none; }
.uv-dark { background: rgba(14, 6, 32, .78); -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), transparent 58%, #000 100%); mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), transparent 58%, #000 100%); }
.uv-glow { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 55%, transparent 100%); mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 55%, transparent 100%); }
.uv-ring { inset: auto; left: var(--x); top: var(--y); width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(186, 140, 255, .55), 0 0 40px 6px rgba(140, 80, 255, .35), inset 0 0 40px rgba(140, 80, 255, .35); }
.uv.on .uv-dark, .uv.on .uv-glow, .uv.on .uv-ring { opacity: 1; }
.uv-tip { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 999px; background: rgba(18, 18, 17, .72); color: #fff; font-size: 13px; font-weight: 560; white-space: nowrap; backdrop-filter: blur(8px); animation: tipBreath 2.4s var(--ease-io) infinite; }
@keyframes tipBreath { 50% { transform: translateX(-50%) scale(.96); } }

/* ============ Funkgerät ============ */
.radio { display: grid; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: linear-gradient(180deg, #232220, #161615); color: #EDE9E0; box-shadow: var(--sh-2), inset 0 1px 0 rgba(255, 255, 255, .08); }
.radio-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lcd { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 14px; background: #0B0F0C; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 8px 20px rgba(0, 0, 0, .5); font-family: var(--mono); color: #6B7A6E; transition: color 300ms ease, text-shadow 300ms ease; }
.radio.on .lcd { color: #9CF5B8; text-shadow: 0 0 12px rgba(120, 255, 170, .55); }
.lcd .band { font-size: 12px; letter-spacing: .1em; } .lcd .freq { font-size: 34px; font-weight: 600; letter-spacing: -.02em; min-width: 3.4ch; text-align: right; } .lcd .unit { font-size: 12px; }
.sig { display: flex; align-items: flex-end; gap: 4px; height: 28px; }
.sig i { width: 6px; border-radius: 2px; background: rgba(255, 255, 255, .14); transition: background-color 200ms ease; }
.sig i.on { background: #9CF5B8; box-shadow: 0 0 8px rgba(120, 255, 170, .6); }
.dial-strip { position: relative; height: 64px; border-radius: 14px; overflow: hidden; background: repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 2px, transparent 2px 6px), #0F0F0E; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); touch-action: none; cursor: ew-resize; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.dial-strip .scale { position: absolute; inset: 0; will-change: transform; }
.tk { position: absolute; bottom: 10px; width: 1px; height: 10px; background: rgba(255, 255, 255, .28); }
.tk.major { height: 18px; background: rgba(255, 255, 255, .5); }
.tk b { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font: 500 11px var(--mono); color: rgba(255, 255, 255, .6); }
.needle { position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; margin-left: -1px; background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), .9); border-radius: 2px; }
.radio-bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.radio-bot .iconbtn { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.radio .status { font: 500 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.radio .btn.soft { background: rgba(255, 255, 255, .1); color: #fff; }

/* ============ Suchbild ============ */
.hs { position: relative; border-radius: var(--r-md); overflow: hidden; cursor: crosshair; box-shadow: var(--sh-2); user-select: none; -webkit-user-select: none; }
.hs img { display: block; width: 100%; pointer-events: none; }
.hs-pin { position: absolute; width: 0; height: 0; }
.hs-pin i { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--accent), 0 6px 18px rgba(0, 0, 0, .35); animation: pinDrop 420ms var(--ease-spring) both; }
.hs-pin i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--accent); }
@keyframes pinDrop { from { transform: scale(1.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ============ Karte antippen ============ */
.maptap { height: min(52vh, 380px); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-2); }
.mk.pin { width: 30px; height: 40px; }
.mk.pin span { position: absolute; left: 3px; top: 0; width: 24px; height: 24px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); box-shadow: 0 0 0 3px #fff, 0 8px 16px -4px rgba(0, 0, 0, .45); animation: pinDrop 380ms var(--ease-spring) both; }

/* ============ Kompass-Suche ============ */
.compassv { touch-action: none; }
.cv-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, transparent 30%, rgba(0, 0, 0, .45) 100%); pointer-events: none; }
.cv-tape { position: absolute; left: 0; right: 0; top: calc(70px + var(--safe-t)); height: 34px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); pointer-events: none; }
.cv-tape-in { position: absolute; left: 50%; top: 0; bottom: 0; will-change: transform; }
.cv-tape span { position: absolute; top: 8px; transform: translateX(-50%); font: 500 12px var(--mono); color: rgba(255, 255, 255, .6); }
.cv-tape span.card { color: #fff; font-weight: 700; font-size: 14px; }
.cv-center { position: absolute; left: 50%; top: 0; width: 2px; height: 8px; margin-left: -1px; background: var(--accent); }
.cv-orb, .cv-holo-wrap { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.cv-orb { transition: opacity 200ms ease; }
.cv-core.done span { animation: none; transform: scale(.8); border-color: var(--accent); box-shadow: 0 0 30px rgba(var(--accent-rgb), .6); }
.cv-core { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; display: grid; place-items: center; }
.cv-core span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(95, 224, 255, .8); animation: cvPulse 2.2s var(--ease-out) infinite; box-shadow: 0 0 24px rgba(95, 224, 255, .5), inset 0 0 24px rgba(95, 224, 255, .4); }
.cv-core span:nth-child(2) { animation-delay: .7s; } .cv-core span:nth-child(3) { animation-delay: 1.4s; }
.cv-core b { position: relative; padding: 6px 12px; border-radius: 999px; background: rgba(0, 20, 30, .6); color: #BDF3FF; font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 0 20px rgba(95, 224, 255, .6); }
.cv-core::before { content: ''; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #fff, #5FE0FF 45%, rgba(95, 224, 255, 0) 70%); box-shadow: 0 0 40px 12px rgba(95, 224, 255, .55); top: 20px; }
@keyframes cvPulse { from { transform: scale(.35); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.cv-ring { position: absolute; left: -70px; top: -70px; width: 140px; height: 140px; transform: rotate(-90deg); --p: 0; }
.cv-ring circle { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: calc(339.3 * (1 - var(--p))); filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), .8)); }
.cv-orb.checking .cv-core span { animation-duration: .8s; }
.cv-holo { position: absolute; left: 0; top: 0; width: min(92vw, 560px); max-width: none; transform: translate(-50%, -50%); mix-blend-mode: screen; animation: holoIn 700ms var(--ease-out) both; cursor: pointer; display: block; }
@keyframes holoIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.6) translateY(40px); filter: blur(8px); } to { opacity: 1; transform: translate(-50%, -50%); filter: none; } }
.cv-arrow { position: absolute; top: 42%; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: #fff; opacity: 0; transition: opacity 200ms ease; pointer-events: none; backdrop-filter: blur(8px); }
.cv-arrow[data-side="l"] { left: 14px; opacity: 1; animation: nudgeL 1.2s var(--ease-io) infinite; }
.cv-arrow[data-side="r"] { right: 14px; opacity: 1; transform: scaleX(-1); animation: nudgeR 1.2s var(--ease-io) infinite; }
@keyframes nudgeL { 50% { transform: translateX(-6px); } }
@keyframes nudgeR { 50% { transform: scaleX(-1) translateX(-6px); } }

/* ============ Videobotschaft ============ */
.fullmedia .x { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); z-index: 3; }
.fullmedia.vid video { width: 100%; height: 100dvh; object-fit: contain; transition: filter 500ms var(--ease-out), transform 700ms var(--ease-out); }
.fullmedia.vid.intro video, .fullmedia.vid.end video { filter: blur(18px) brightness(.45); transform: scale(1.08); }
.fm-intro { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; color: #fff; z-index: 2; }
.fm-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.fm-eyebrow .rec { width: 8px; height: 8px; border-radius: 50%; background: #FF4D4D; animation: blink 1.2s steps(2) infinite; }
.fm-play { position: relative; width: 104px; height: 104px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 20px 50px -10px rgba(var(--accent-rgb), .8); transition: transform 160ms var(--ease-out); margin: 10px 0; }
.fm-play:active { transform: scale(.95); }
.fm-play svg { margin-left: 5px; }
.fm-play i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(var(--accent-rgb), .8); animation: cvPulse 2s var(--ease-out) infinite; }
.fm-play i + i { animation-delay: 1s; }
.fm-who { font-weight: 650; font-size: 17px; }
.fm-text { font-size: 22px; line-height: 1.3; max-width: 30ch; color: rgba(255, 255, 255, .88); }
.fm-skip { color: rgba(255, 255, 255, .7) !important; margin-top: 8px; }
.fm-end { grid-auto-flow: row; gap: 12px; }
.fm-end .btn { min-width: 240px; }
.fm-paused { position: absolute; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: #fff; pointer-events: none; backdrop-filter: blur(8px); }
.fm-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); z-index: 3; }
.fm-bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.fm-cap { position: absolute; left: 0; right: 0; bottom: calc(30px + var(--safe-b)); padding: 0 24px; color: #fff; text-align: center; font-size: 22px; line-height: 1.3; }

.cv-holo-bg { position: absolute; left: 0; top: 0; width: min(110vw, 660px); aspect-ratio: 16 / 10; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, rgba(2, 10, 18, .72) 0%, rgba(2, 10, 18, .45) 45%, rgba(2, 10, 18, 0) 72%); animation: fadein 600ms ease both; pointer-events: none; }
