/* Sportheim-Quiz · Beamer (Bühne 1920×1080, wird aufs Fenster skaliert) */

html, body { height: 100%; overflow: hidden; background: var(--azure-deep); }
body.idle, body.idle * { cursor: none !important; }

#viewport { position: fixed; inset: 0; background: var(--azure-deep); }
#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  overflow: hidden; color: var(--white);
  transform-origin: 50% 50%;
}
.bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 760px at 16% 6%, rgba(255, 255, 255, .2), transparent 62%),
    radial-gradient(1000px 760px at 102% 104%, rgba(0, 38, 140, .38), transparent 64%),
    linear-gradient(160deg, #1b8dff 0%, #007fff 46%, #006ae0 100%);
}

/* ---------- Animations-Bausteine ---------- */
.wipe { animation: wipe .62s var(--ease-out) both; animation-delay: var(--d, 0s); }
.rise { animation: rise .7s var(--ease-out) both; animation-delay: var(--d, 0s); }
.pop { animation: pop .7s var(--ease-back) both; animation-delay: var(--d, 0s); }
.fade { animation: fade .8s ease both; animation-delay: var(--d, 0s); }
.stamp { animation: stamp .65s var(--ease-back) both; animation-delay: var(--d, 0s); }
@keyframes wipe { from { clip-path: inset(-8% 100% -8% 0); } to { clip-path: inset(-8% -4% -8% 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(38px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes stamp { from { opacity: 0; transform: scale(1.9) rotate(-16deg); } to { opacity: 1; transform: rotate(-6deg); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-20px) rotate(calc(var(--r) + 5deg)); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }

/* ---------- Deko & Schwarzwald ---------- */
.deco { position: absolute; inset: 0; pointer-events: none; transition: opacity .9s ease; z-index: 0; }
.deco > * { position: absolute; display: block; animation: float 7s ease-in-out infinite; animation-delay: calc(var(--i) * -1.4s); }
.d-q { font-family: var(--cond); font-weight: 900; line-height: 1; width: auto !important; height: auto !important; }
.d-q.n { color: #0b55d6; }
.d-q.l { color: #69b6ff; }
.d-svg svg { width: 100%; height: 100%; display: block; }
.d-svg.squig { color: #0b55d6; }
#stage[data-kind='question'] .deco, #stage[data-kind='answer'] .deco { opacity: .14; }
#stage[data-kind='score'] .deco { opacity: .3; }

#forestWrap { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; pointer-events: none; z-index: 0; transition: transform 1.3s var(--ease-out); transform: translateY(110px); }
.forest { width: 100%; height: 100%; display: block; }
.forest .f1 { fill: #0b6fe8; opacity: .55; }
.forest .f2 { fill: #075bc6; opacity: .75; }
.forest .f3 { fill: #0a3f8f; opacity: .9; }
#stage[data-kind='title'] #forestWrap { transform: translateY(18px); }
#stage[data-kind='final'] #forestWrap { transform: translateY(40px); }
#stage[data-kind='question'] #forestWrap, #stage[data-kind='answer'] #forestWrap { transform: translateY(196px); }

/* ---------- Szenen ---------- */
#scenes { position: absolute; inset: 0; z-index: 1; }
.scene { position: absolute; inset: 0; }
.scene.leave { animation: sceneOut .45s ease forwards; pointer-events: none; z-index: 0; }
@keyframes sceneOut { to { opacity: 0; } }
.scene.soft, .scene.soft * { animation-delay: 0s !important; animation-duration: 0s !important; }
.scene.soft .q-splash { display: none; }

/* Übergang zwischen großen Abschnitten */
#wiper { position: absolute; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; visibility: hidden; }
#wiper.go { visibility: visible; }
#wiper i { position: absolute; top: -10%; bottom: -10%; left: -18%; width: 136%; transform: translateX(-125%) skewX(-10deg); }
#wiper i:nth-child(1) { background: var(--sun); }
#wiper i:nth-child(2) { background: var(--navy); }
#wiper img { position: absolute; left: 50%; top: 50%; width: 230px; translate: -50% -50%; opacity: 0; }
#wiper.go i { animation: across 1.08s cubic-bezier(.75, 0, .25, 1) forwards; }
#wiper.go i:nth-child(2) { animation-delay: .07s; }
#wiper.go img { animation: logoFlash 1.15s ease forwards; }
@keyframes across { 0% { transform: translateX(-125%) skewX(-10deg); } 42%, 58% { transform: translateX(0) skewX(-10deg); } 100% { transform: translateX(125%) skewX(-10deg); } }
@keyframes logoFlash { 0%, 36% { opacity: 0; transform: scale(.6); } 48% { opacity: 1; transform: scale(1.05); } 58% { opacity: 1; transform: scale(1); } 68%, 100% { opacity: 0; transform: scale(.9); } }

/* Zeit-ist-um-Blitz */
#stage.flash::after { content: ''; position: absolute; inset: 0; z-index: 35; background: var(--bollen); pointer-events: none; animation: flash 1s ease-out forwards; }
@keyframes flash { 0% { opacity: .42; } 25% { opacity: 0; } 45% { opacity: .26; } 100% { opacity: 0; } }

/* ---------- Kopfzeile ---------- */
.hud { position: absolute; left: 96px; right: 96px; top: 44px; height: 88px; display: flex; align-items: center; justify-content: space-between; z-index: 3; }
.hud-l { display: flex; align-items: center; gap: 12px; }
.hud-logo { height: 88px; width: auto; margin-right: 10px; filter: drop-shadow(0 6px 14px rgba(0, 30, 90, .35)); }
.hud .tape { font-size: 34px; }
.hud-r { display: flex; gap: 12px; }
.hud-dots { display: flex; gap: 10px; }
.hud-dots i { display: block; width: 30px; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .28); }
.hud-dots i.done { background: var(--white); }
.hud-dots i.cur { background: var(--sun); width: 66px; }

/* ---------- Titel ---------- */
.t-crew { position: absolute; left: 0; bottom: -58px; width: 1010px; animation: crewIn 1.2s var(--ease-out) both .15s; }
.t-crew-in { position: relative; animation: bob 6s ease-in-out infinite 1.4s; }
.t-crew-img { position: relative; z-index: 1; width: 100%; display: block; }
.t-glow { position: absolute; left: 49.7%; top: 17%; width: 44%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 236, 140, .85), rgba(255, 220, 80, .25) 45%, transparent 68%); animation: bulbOn 1.4s steps(1) both 1s, glow 3.2s ease-in-out infinite 2.4s; }
.t-rays { position: absolute; left: 49.7%; top: 17%; width: 52%; aspect-ratio: 1; translate: -50% -50%; z-index: 0; animation: pop .6s var(--ease-back) both 1.25s; }
.t-rays svg { width: 100%; height: 100%; overflow: visible; }
.t-rays line { stroke: var(--sun); stroke-width: 15; stroke-linecap: round; transform-origin: 250px 250px; animation: ray 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .13s + 1.8s); }
@keyframes crewIn { from { opacity: 0; transform: translateY(140px); } }
@keyframes bob { 50% { transform: translateY(-12px); } }
@keyframes ray { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.07); } }
@keyframes bulbOn { 0% { opacity: 0; } 20% { opacity: .9; } 30% { opacity: 0; } 45% { opacity: 1; } 55% { opacity: .2; } 70%, 100% { opacity: 1; } }
@keyframes glow { 50% { opacity: .65; } }

.t-side { position: absolute; left: 1000px; right: 70px; top: 96px; display: flex; flex-direction: column; align-items: flex-start; }
.t-club { display: flex; align-items: center; gap: 20px; margin-bottom: 34px; }
.t-club img { width: 92px; height: auto; filter: drop-shadow(0 8px 16px rgba(0, 30, 90, .35)); }
.t-club .tape { font-size: 34px; }
.t-title { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-size: 16px; }
.t-l1 .tape { font-size: 166px; line-height: .9; padding: .1em .2em .02em; }
.t-l2 { display: flex; align-items: center; gap: 22px; margin-left: -4px; }
.t-l2 .tape { font-size: 250px; line-height: .84; padding: .08em .18em 0; }
.ltr { display: inline-block; animation: ltr .75s var(--ease-back) both; animation-delay: var(--d); }
@keyframes ltr { from { opacity: 0; transform: translateY(55%) rotate(9deg); } }
.dash { display: flex; flex-direction: column; gap: 22px; width: 66px; }
.dash b { display: block; height: 13px; border-radius: 7px; background: var(--sun); animation: grow .45s var(--ease-out) both 1.45s; }
.dash.l b { transform-origin: right center; }
.dash.r b { transform-origin: left center; }
.dash.l b:nth-child(1), .dash.r b:nth-child(3) { rotate: 24deg; }
.dash.l b:nth-child(3), .dash.r b:nth-child(1) { rotate: -24deg; }
.t-date { display: flex; margin-top: 36px; }
.t-date .tape { font-size: 62px; }
.t-team { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 40px; max-width: 760px; }
.t-team-l { font-family: var(--cond); font-weight: 800; font-size: 30px; letter-spacing: .08em; text-transform: uppercase; margin-right: 8px; }
.t-team .tape { font-size: 38px; }
.t-special { position: absolute; left: 1270px; top: 872px; z-index: 2; }
.t-special span { display: block; background: var(--sun); color: var(--navy); font-weight: 800; font-style: italic; font-size: 48px; padding: 30px 56px 34px; animation: wobble 5s ease-in-out infinite 3s;
  clip-path: polygon(2% 14%, 9% 2%, 17% 11%, 25% 0, 33% 10%, 41% 1%, 50% 11%, 58% 0, 66% 10%, 75% 1%, 83% 11%, 91% 0, 98% 13%, 100% 50%, 98% 87%, 91% 100%, 83% 89%, 75% 99%, 66% 90%, 58% 100%, 50% 89%, 41% 99%, 33% 90%, 25% 100%, 17% 89%, 9% 98%, 2% 86%, 0 50%); }
@keyframes wobble { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-4deg) scale(1.05); } 94% { transform: rotate(3deg) scale(1.04); } }

/* ---------- Runden-Intro ---------- */
.i-wrap { position: absolute; inset: 0; display: grid; grid-template-columns: auto minmax(0, auto); justify-content: center; align-items: center; gap: 150px; padding: 0 120px 90px; }
.i-left { display: flex; flex-direction: column; align-items: flex-start; }
.i-label { font-size: 96px; }
.i-num { font-family: var(--cond); font-weight: 900; font-size: 620px; line-height: .76; letter-spacing: -.03em; color: var(--white); text-shadow: 22px 22px 0 var(--navy); margin: 18px 0 30px -20px; animation: numIn .95s var(--ease-back) both .45s; }
@keyframes numIn { from { opacity: 0; transform: scale(.3) rotate(-22deg); } }
.i-of { font-size: 52px; }
.i-right { display: flex; align-items: center; gap: 64px; min-width: 0; }
.i-avatar { width: 390px; height: 390px; flex: none; position: relative; }
.i-avatar::before { content: ''; position: absolute; inset: -20px; border-radius: 50%; border: 7px solid var(--sun); translate: 24px 20px; }
.i-avatar img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 14px solid var(--white); background: var(--white); box-shadow: 0 30px 60px rgba(0, 30, 90, .35); }
.i-info { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; max-width: 680px; }
.i-name { font-size: 104px; white-space: normal; max-width: 100%; }
.i-title { font-size: 42px; line-height: 1.12; max-width: 620px; }
.i-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.i-stats .tape { font-size: 44px; }

/* ---------- Frage ---------- */
.q-splash { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; pointer-events: none; animation: splash 1.2s var(--ease-out) both; }
.q-splash::before { content: ''; position: absolute; left: 50%; top: 50%; width: 720px; height: 720px; margin: -360px 0 0 -360px; border-radius: 50%; background: var(--sun); z-index: -1; box-shadow: 0 40px 120px rgba(0, 30, 90, .35); }
.q-splash .tape { font-size: 60px; }
.q-splash b { font-family: var(--cond); font-weight: 900; font-size: 430px; line-height: .8; color: var(--navy); letter-spacing: -.02em; }
.q-splash small { font-family: var(--cond); font-weight: 800; font-size: 46px; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); }
@keyframes splash { 0% { opacity: 0; transform: scale(.45) rotate(-12deg); } 16% { opacity: 1; transform: scale(1.04) rotate(1deg); } 26% { transform: scale(1) rotate(0); } 64% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translate(-760px, -380px) scale(.18); } }

.q-body { position: absolute; left: 96px; right: 96px; top: 178px; bottom: 140px; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 90px; z-index: 2; }
.q-body.has-img { grid-template-columns: minmax(0, 1fr) 640px; gap: 70px; }
.q-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.q-head { display: flex; align-items: flex-end; gap: 30px; margin-bottom: 30px; }
.q-num { font-family: var(--cond); font-weight: 900; font-size: 186px; line-height: .78; letter-spacing: -.02em; color: var(--white); text-shadow: 10px 10px 0 var(--navy); flex: none; }
.q-num.sm { font-size: 124px; text-shadow: 7px 7px 0 var(--navy); }
.q-tapes { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding-bottom: 4px; min-width: 0; }
.q-tapes .tape { font-size: 40px; }
.q-text { font-weight: 700; font-size: 72px; line-height: 1.13; max-height: 500px; overflow: hidden; text-wrap: balance; flex: none; }
.type-choice .q-text, .type-match .q-text, .type-order .q-text { max-height: 250px; }
.q-hint { display: flex; align-items: center; gap: 16px; margin-top: 26px; font-size: 36px; font-weight: 600; font-style: italic; color: var(--sun); }
.q-hint .icon { width: 58px; height: 58px; flex: none; color: var(--navy); }

.q-side { display: flex; flex-direction: column; align-items: center; gap: 60px; padding-top: 4px; min-height: 0; }
.has-img .q-side { gap: 40px; align-items: flex-end; }
.frame { position: relative; }
.frame::before { content: ''; position: absolute; inset: 0; border: 5px solid var(--sun); translate: 20px 20px; border-radius: inherit; }
.frame > * { position: relative; z-index: 1; }
.q-icon { width: 290px; height: 290px; border-radius: 50%; }
.q-icon .in { width: 100%; height: 100%; border-radius: 50%; background: var(--white); color: var(--navy); padding: 46px; box-shadow: 0 24px 50px rgba(0, 30, 90, .3); }
.q-icon .icon { animation: float 6s ease-in-out infinite 2s; --r: 0deg; }
.q-img, .a-img { margin: 0; width: fit-content; max-width: 100%; min-height: 0; }
.q-img img, .a-img img { display: block; max-width: 100%; max-height: 500px; width: auto; height: auto; box-shadow: 0 24px 50px rgba(0, 30, 90, .35); background: var(--white); }
.has-img .q-img img { max-height: 470px; }

/* Timer */
.timer { position: relative; width: 420px; height: 420px; }
.has-img .timer { width: 260px; height: 260px; }
.timer svg { width: 100%; height: 100%; display: block; transform: rotate(-90deg); overflow: visible; }
.t-bg { fill: var(--navy); }
.t-track { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 24; }
.t-prog { fill: none; stroke: var(--white); stroke-width: 24; stroke-linecap: round; stroke-dasharray: 1005.3; stroke-dashoffset: 0; transition: stroke .4s ease, stroke-dashoffset .3s linear; }
.timer.urgent .t-prog { stroke: var(--sun); }
.timer.critical .t-prog { stroke: var(--bollen); }
.timer.critical svg { filter: drop-shadow(0 0 28px rgba(255, 61, 85, .7)); }
.t-num { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 34px; font-family: var(--cond); font-weight: 900; font-size: 186px; line-height: 1; font-variant-numeric: tabular-nums; transition: opacity .3s; }
.t-num.long { font-size: 140px; }
.has-img .t-num { font-size: 116px; padding-bottom: 24px; }
.has-img .t-num.long { font-size: 88px; }
.t-num.beat { animation: beat .38s var(--ease-out); }
@keyframes beat { from { transform: scale(1.13); } }
.timer.critical .t-num { color: #ffd0d6; }
.t-unit { position: absolute; left: 0; right: 0; top: 66%; text-align: center; font-family: var(--cond); font-weight: 800; font-size: 30px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.has-img .t-unit { font-size: 22px; }
.timer.is-paused .t-unit { color: var(--sun); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.t-stamp { position: absolute; left: 50%; top: 50%; translate: -50% -50%; opacity: 0; pointer-events: none; transform: rotate(-10deg) scale(2); }
.t-stamp .tape { font-size: 124px; box-shadow: 8px 8px 0 var(--navy); }
.has-img .t-stamp .tape { font-size: 84px; }
.timer.is-done .t-stamp { animation: stampIn .5s var(--ease-back) forwards; }
.timer.is-done .t-num, .timer.is-done .t-unit { opacity: .12; }
.timer.is-done .t-prog { stroke: var(--bollen); }
@keyframes stampIn { to { opacity: 1; transform: rotate(-10deg) scale(1); } }

/* Antwort-Varianten in der Frage */
.x-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.opt { display: flex; align-items: center; gap: 22px; background: var(--white); color: var(--navy); padding: 16px 24px 16px 16px; min-height: 108px; box-shadow: 8px 8px 0 var(--navy); }
.opt .tape { font-size: 52px; flex: none; }
.opt-t { flex: 1; min-width: 0; font-weight: 800; font-size: 44px; line-height: 1.1; max-height: 2.3em; overflow: hidden; }
.x-match { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; margin-top: 30px; }
.x-match .col { display: flex; flex-direction: column; gap: 14px; }
.m-item { display: flex; align-items: center; gap: 18px; background: var(--white); color: var(--navy); font-weight: 800; font-size: 38px; line-height: 1.1; padding: 10px 22px 10px 10px; box-shadow: 6px 6px 0 var(--navy); }
.m-item b { font-family: var(--cond); font-weight: 900; font-size: 44px; background: var(--navy); color: var(--white); min-width: 58px; text-align: center; padding: 2px 8px; flex: none; }
.m-item.val { background: var(--sun); }
.m-item.val b { color: var(--sun); }
.x-dir { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.x-dir .tape { font-size: 34px; }
.x-dir i { position: relative; width: 130px; height: 6px; background: var(--white); }
.x-dir i::after { content: ''; position: absolute; right: -4px; top: -9px; border: 12px solid transparent; border-left: 16px solid var(--white); border-right: 0; }
.x-order { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; gap: 14px; background: var(--white); color: var(--navy); font-weight: 800; font-size: 38px; padding: 8px 20px 8px 8px; box-shadow: 6px 6px 0 var(--navy); }
.chip b { font-family: var(--cond); font-weight: 900; font-size: 40px; background: var(--sun); padding: 2px 13px; }

/* ---------- Auflösung ---------- */
.a-body { position: absolute; left: 96px; right: 96px; top: 172px; bottom: 112px; display: flex; flex-direction: column; z-index: 2; }
.a-q { display: flex; gap: 30px; align-items: flex-start; margin-bottom: 22px; flex: none; }
.a-qmain { flex: 1; min-width: 0; }
.a-qmain .q-tapes .tape { font-size: 32px; }
.a-qtext { font-weight: 700; font-size: 46px; line-height: 1.16; max-height: 112px; overflow: hidden; margin-top: 12px; color: rgba(255, 255, 255, .94); }
.a-sol { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.a-sol.in > * { animation: fade .3s ease both; }

.a-mystery { flex: 1; display: flex; align-items: center; justify-content: center; gap: 70px; min-height: 0; }
.a-mystery.with-x { justify-content: space-between; }
.a-mx { flex: 1; min-width: 0; }
.a-mx .x-choice, .a-mx .x-match { margin-top: 0; }
.a-qm { display: flex; flex-direction: column; align-items: center; gap: 26px; flex: none; }
.a-qm b { width: 330px; height: 330px; border-radius: 50%; background: var(--sun); color: var(--navy); display: grid; place-items: center; font-family: var(--cond); font-weight: 900; font-size: 290px; line-height: 1; padding-top: 14px; box-shadow: 14px 14px 0 var(--navy); animation: qmPulse 1.9s ease-in-out infinite; }
.with-x .a-qm b { width: 250px; height: 250px; font-size: 210px; }
.a-qm .tape { font-size: 40px; }
@keyframes qmPulse { 50% { transform: scale(1.06) rotate(5deg); } }

.a-reveal { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 70px; align-items: safe center; align-content: safe center; }
.a-reveal:has(.pairs) { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 56px; }
.a-reveal.solo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.a-reveal.wide { grid-template-columns: minmax(0, 1fr); align-content: safe center; gap: 44px; }
.a-main { min-width: 0; display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.solo .a-main { align-items: center; text-align: center; }
.a-side { min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.wide .a-side { flex-direction: row; align-items: flex-start; }
.wide .a-side .fact { flex: 1; }
.ans-card { align-self: flex-start; background: var(--sun); color: var(--navy); padding: 30px 44px 34px; box-shadow: 14px 14px 0 var(--navy); max-width: 100%; }
.solo .ans-card { align-self: center; }
.ans-card span { display: block; font-family: var(--cond); font-weight: 900; text-transform: uppercase; font-size: 96px; line-height: 1.02; max-height: 430px; overflow: hidden; }
.ans-card.small span { font-size: 60px; max-height: 190px; }
.ans-count { display: flex; align-items: baseline; gap: 26px; }
.solo .ans-count { justify-content: center; }
.ans-count b { font-family: var(--cond); font-weight: 900; font-size: 300px; line-height: .84; letter-spacing: -.02em; color: var(--white); text-shadow: 14px 14px 0 var(--navy); font-variant-numeric: tabular-nums; }
.ans-count span { font-family: var(--cond); font-weight: 800; font-size: 76px; text-transform: uppercase; }
.ans-count.done b { animation: countDone .6s var(--ease-back); }
@keyframes countDone { 50% { transform: scale(1.08); } }
.ans-text { font-weight: 700; font-size: 40px; line-height: 1.2; }

.fact { position: relative; background: var(--white); color: var(--navy); padding: 40px 40px 36px; box-shadow: 14px 14px 0 var(--navy); }
.fact .tape { position: absolute; top: -24px; left: 30px; font-size: 40px; }
.fact p { margin: 8px 0 0; font-weight: 600; font-size: 36px; line-height: 1.3; max-height: 420px; overflow: hidden; }
.wide .fact p { max-height: 150px; }
.a-img img { max-height: 380px; }
.wide .a-img img { max-height: 220px; }

.a-foot { flex: none; margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 44px; align-items: center; font-size: 26px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.a-foot .tape { font-size: 24px; margin-right: 12px; vertical-align: 2px; }

.x-choice.reveal { margin-top: 0; }
.x-choice.reveal .opt.no { animation: dim .5s ease both; animation-delay: calc(var(--d) + .2s); }
.x-choice.reveal .opt.ok { background: var(--sun); box-shadow: 10px 10px 0 var(--navy); animation: okPop .7s var(--ease-back) both; animation-delay: calc(var(--d) + .45s); }
.opt.ok .tape { background: var(--navy); color: var(--sun); }
.check { width: 64px; height: 64px; flex: none; color: var(--navy); animation: pop .5s var(--ease-back) both .9s; }
.check svg { width: 100%; height: 100%; }
@keyframes dim { to { opacity: .3; transform: scale(.97); } }
@keyframes okPop { 0% { transform: scale(1); } 55% { transform: scale(1.08); } 100% { transform: scale(1.03); } }

.pairs { display: flex; flex-direction: column; gap: 18px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; align-items: center; animation: rise .55s var(--ease-out) both; animation-delay: var(--d); }
.p-left { background: var(--white); color: var(--navy); font-weight: 800; font-size: 40px; line-height: 1.1; padding: 14px 26px; box-shadow: 8px 8px 0 var(--navy); }
.p-line { height: 8px; background: var(--sun); transform-origin: left center; animation: grow .45s var(--ease-out) both; animation-delay: calc(var(--d) + .25s); }
.p-right { font-size: 64px; min-width: 190px; text-align: center; animation: pop .5s var(--ease-back) both; animation-delay: calc(var(--d) + .5s); box-shadow: 8px 8px 0 var(--navy); }

.line { display: flex; align-items: center; gap: 30px; padding: 120px 0 110px; }
.line-end { font-size: 38px; flex: none; }
.line-track { position: relative; flex: 1; height: 24px; }
.line-rail { position: absolute; inset: 0; border-radius: 12px; background: rgba(255, 255, 255, .22); }
.line-fill { position: absolute; inset: 0; border-radius: 12px; background: var(--sun); transform-origin: left center; animation: grow var(--dur) linear both .2s; }
.stop { position: absolute; top: 50%; width: 0; height: 0; z-index: 1; }
.stop i { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 9px solid var(--navy); animation: pop .4s var(--ease-back) both; animation-delay: var(--d); }
.stop b { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; display: grid; place-items: center; font-family: var(--cond); font-weight: 900; font-size: 30px; color: var(--navy); animation: fade .3s both; animation-delay: var(--d); }
.stop span { position: absolute; left: 0; translate: -50% 0; white-space: nowrap; font-family: var(--cond); font-weight: 800; font-size: 40px; text-transform: uppercase; background: var(--white); color: var(--navy); padding: 6px 14px 4px; box-shadow: 6px 6px 0 var(--navy); animation: rise .45s var(--ease-out) both; animation-delay: calc(var(--d) + .1s); }
.stop.up span { bottom: 50px; }
.stop.dn span { top: 50px; }
.line-train { position: absolute; top: 50%; left: 0; width: 92px; height: 92px; translate: -50% -58%; z-index: 2; color: var(--navy); animation: ride var(--dur) linear both .2s; }
@keyframes ride { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.olist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 10), auto); }
.olist li { display: flex; align-items: center; gap: 18px; background: var(--white); color: var(--navy); font-weight: 800; font-size: 40px; padding: 8px 22px 8px 8px; box-shadow: 6px 6px 0 var(--navy); }
.olist b { font-family: var(--cond); font-weight: 900; font-size: 44px; background: var(--sun); min-width: 62px; text-align: center; }

/* ---------- Stifte weg ---------- */
.sv-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding-bottom: 110px; text-align: center; }
.sv-icon { width: 230px; height: 230px; color: var(--navy); margin-bottom: 18px; }
.sv-icon .icon { animation: wiggle 1.7s ease-in-out infinite 1s; }
.sv-wrap h1, .sv-wrap h2 { margin: 0; }
.sv-wrap h1 .tape { font-size: 230px; }
.sv-wrap h2 .tape { font-size: 86px; }
.sv-wrap p { margin: 26px 0 0; font-size: 44px; font-weight: 600; }

/* ---------- Zwischenstand ---------- */
.sc-wrap { position: absolute; left: 120px; right: 120px; top: 70px; bottom: 150px; display: flex; flex-direction: column; }
.sc-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 44px; }
.sc-head img { height: 110px; margin-right: 12px; }
.sc-head .tape { font-size: 64px; }
.sc-head .tape.big { font-size: 130px; }
.sc-rows { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.sc-row { position: relative; display: grid; grid-template-columns: 120px minmax(0, 720px) minmax(0, 1fr) 210px; align-items: center; gap: 28px; height: min(150px, calc((100% - (var(--n) - 1) * 20px) / var(--n))); }
.sc-rank { font-family: var(--cond); font-weight: 900; font-size: 110px; line-height: 1; text-align: right; color: var(--white); text-shadow: 6px 6px 0 var(--navy); }
.sc-name { min-width: 0; }
.sc-name .tape { font-size: 56px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sc-bar { height: 56%; background: rgba(255, 255, 255, .14); position: relative; overflow: hidden; }
.sc-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--white); transform-origin: left center; }
.sc-total { display: flex; align-items: baseline; gap: 14px; justify-content: flex-end; }
.sc-total b { font-family: var(--cond); font-weight: 900; font-size: 104px; line-height: 1; font-variant-numeric: tabular-nums; }
.sc-total small { font-family: var(--cond); font-weight: 800; font-size: 36px; color: var(--sun); }
.sc-row.hidden .sc-rank { opacity: .45; }
.sc-row.hidden .sc-name .tape { background: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .85); }
.sc-row.hidden .sc-bar { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .12) 0 18px, rgba(255, 255, 255, .05) 18px 36px); }
.sc-row.hidden .sc-total b { opacity: .35; }
.sc-row.lead .sc-name .tape { background: var(--sun); }
.sc-row.lead .sc-bar i { background: var(--sun); }
.sc-row.lead .sc-rank { color: var(--sun); }
.sc-crown { position: absolute; left: 150px; top: -46px; width: 86px; height: 70px; color: var(--navy); rotate: -14deg; z-index: 2; }
.sc-row.fresh .sc-name .tape { animation: wipe .6s var(--ease-out) both; }
.sc-row.fresh .sc-bar i { animation: grow 1.2s var(--ease-out) both .2s; }
.sc-row.fresh .sc-total { animation: pop .6s var(--ease-back) both .3s; }
.sc-row.fresh .sc-rank { animation: pop .5s var(--ease-back) both; }
@keyframes crown { from { opacity: 0; transform: translateY(-80px) scale(.4); } }
@keyframes leadGlow { 50% { filter: drop-shadow(0 0 22px rgba(255, 212, 59, .55)); } }

/* ---------- Finale ---------- */
.confetti { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.fi-wrap { position: absolute; inset: 0; display: grid; grid-template-columns: 920px 1fr; }
.fi-crew { width: 920px; align-self: end; margin-bottom: -56px; }
.fi-text { align-self: center; padding: 0 60px 120px 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.fi-text h1 { margin: 0; line-height: 1; }
.fi-text h1 .tape { font-size: 112px; }
.fi-text h1 .tape:first-child { font-size: 250px; margin-bottom: 12px; }
.fi-text p { margin: 10px 0 0; }
.fi-text p .tape { font-size: 50px; white-space: normal; }
.fi-club { display: flex; align-items: center; gap: 16px; margin-top: 34px; font-family: var(--cond); font-weight: 800; font-size: 36px; text-transform: uppercase; letter-spacing: .04em; }
.fi-club img { width: 86px; }

/* ---------- Overlays ---------- */
#overlay { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.ov { display: flex; align-items: center; justify-content: center; background: rgba(10, 31, 68, .96); animation: fade .4s ease both; }
.ov-black { background: #000; }
.ov-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; padding-bottom: 130px; }
.ov-icon { width: 230px; height: 230px; padding: 38px; border-radius: 50%; background: var(--white); color: var(--navy); margin-bottom: 10px; }
.ov h1, .ov p { margin: 0; }
.ov h1 .tape { font-size: 200px; }
.ov p .tape { font-size: 54px; }
.ov-next { font-size: 44px; font-weight: 700; }
.ov .ov-forest { position: absolute; left: 0; right: 0; bottom: -40px; height: 300px; }
.ov-forest .f1 { fill: #1d3f7e; opacity: 1; }
.ov-forest .f2 { fill: #163469; opacity: 1; }
.ov-forest .f3 { fill: #0f2853; opacity: 1; }
.ov-inner.help { padding-bottom: 0; align-items: center; }
.help-url { font-size: 60px; font-weight: 800; }
.help-url b { color: var(--sun); }
.help-alt { font-size: 30px; font-weight: 600; opacity: .8; }
.keys { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; font-size: 34px; font-weight: 600; text-align: left; }
kbd { display: inline-block; font-family: var(--cond); font-weight: 800; font-size: 30px; background: var(--white); color: var(--navy); padding: 2px 14px; margin-right: 8px; border-radius: 6px; }

/* ---------- Hilfsanzeigen ---------- */
.conn { position: absolute; left: 40px; bottom: 30px; z-index: 60; background: var(--bollen); color: var(--white); font-family: var(--cond); font-weight: 800; font-size: 28px; letter-spacing: .04em; text-transform: uppercase; padding: 8px 18px 6px; }
.conn[hidden] { display: none; }
body.preview::after { content: 'Vorschau · R = Lösung an/aus'; position: fixed; top: 12px; right: 12px; z-index: 200; background: var(--bollen); color: var(--white); font-family: var(--cond); font-weight: 800; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; padding: 8px 14px 6px; }
.sc-row.suspense { animation: suspense .5s ease-in-out infinite; }
.sc-row.suspense .sc-name .tape { background: var(--sun); color: var(--navy); }
.sc-row.suspense .sc-rank { opacity: 1; color: var(--sun); }
@keyframes suspense { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.sc-row.fresh.lead .sc-crown { animation: crown .8s var(--ease-back) both .5s; }
.sc-row.lead:not(.fresh) { animation: leadGlow 2.4s ease-in-out infinite; }

/* ---------- Bildkarten (Auswahl mit Bildern, Zuordnung mit Bildern) ---------- */
.x-imgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.x-imgs.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.x-imgs.n3, .x-imgs.n5, .x-imgs.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ic { margin: 0; min-width: 0; display: flex; flex-direction: column; background: var(--white); color: var(--navy); box-shadow: 8px 8px 0 var(--navy); }
.ic-img { aspect-ratio: 4 / 3; background: var(--white); display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 3px solid #e3ebf7; }
.n2 .ic-img, .n3 .ic-img { aspect-ratio: 16 / 10; }
.n5 .ic-img, .n6 .ic-img, .n7 .ic-img, .n8 .ic-img { aspect-ratio: 16 / 9; }
.ic-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ic figcaption { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 66px; }
.ic figcaption .tape { font-size: 40px; flex: none; }
.ic-t { min-width: 0; font-weight: 800; font-size: 28px; line-height: 1.1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ic .check { margin-left: auto; width: 50px; height: 50px; }
.x-imgs.reveal .ic.no { animation: dim .5s ease both; animation-delay: calc(var(--d) + .2s); }
.x-imgs.reveal .ic.ok { background: var(--sun); box-shadow: 10px 10px 0 var(--navy), 0 0 0 8px var(--sun); animation: okPop .7s var(--ease-back) both; animation-delay: calc(var(--d) + .45s); }
.x-imgs.reveal .ic.ok .tape { background: var(--navy); color: var(--sun); }
.a-reveal.wide .ic-img { max-height: 280px; }
.a-mx .x-imgs { margin-top: 0; }
.x-vals { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.has-cards .q-text { max-height: 230px; }
.p-left { display: flex; align-items: center; gap: 18px; }
.p-img { width: 92px; height: 64px; object-fit: cover; flex: none; background: #eef3fb; }

/* ---------- Start-Knopf (Ton freischalten) ---------- */
.start-ov { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: rgba(10, 31, 68, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.start-ov[hidden] { display: none; }
.start-ov button { border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--sun); color: var(--navy); padding: 34px 70px 30px; box-shadow: 12px 12px 0 var(--navy); animation: startPulse 1.8s ease-in-out infinite; }
.start-ov button img { width: 96px; }
.start-ov button b { font-family: var(--cond); font-weight: 900; font-size: clamp(56px, 8vw, 110px); line-height: .9; text-transform: uppercase; }
.start-ov button span { font-family: var(--cond); font-weight: 800; font-size: clamp(18px, 2vw, 28px); text-transform: uppercase; letter-spacing: .04em; }
.start-ov small { color: var(--white); font-weight: 600; font-size: clamp(14px, 1.4vw, 20px); text-align: center; padding: 0 20px; }
@keyframes startPulse { 50% { transform: scale(1.04); } }
.q-body.has-cards { grid-template-columns: minmax(0, 1fr) 330px; gap: 60px; }
.has-cards .timer { width: 330px; height: 330px; }
.has-cards .t-num { font-size: 140px; padding-bottom: 28px; }
.has-cards .t-num.long { font-size: 106px; }
.has-cards .t-unit { font-size: 24px; }
.has-cards .t-stamp .tape { font-size: 96px; }
.x-imgs.matched .ic-val { padding: 0 12px 14px; }
.x-imgs.matched .ic-val .tape { display: block; text-align: center; font-size: 40px; white-space: normal; animation: pop .5s var(--ease-back) both; animation-delay: calc(var(--d) + .35s); }
