/* Testpublikum: Farben wie Flutlicht (Nacht, Kreide, Rot, Flutlicht-Gold) */
:root {
  --night: #09090b;
  --turf: #111114;
  --turf-2: #18181d;
  --line: #2a2a33;
  --chalk: #f5f5f4;
  --mute: #9b9ba6;
  --red: #e5251e;
  --hit: #ffb224;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --display: "Barlow Condensed", system-ui, sans-serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --video: "Montserrat", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--night); color: var(--chalk); font-family: var(--sans); }
body { overflow: hidden; overscroll-behavior: none; }
input, textarea { font: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--hit); outline-offset: 2px; }

.screen { position: fixed; inset: 0; display: flex; flex-direction: column; padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); }
.display { font-family: var(--display); text-transform: uppercase; font-weight: 800; line-height: 0.95; letter-spacing: 0.005em; }
.muted { color: var(--mute); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 17px; background: var(--turf-2); border: 1px solid var(--line); transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--chalk); color: var(--night); border-color: var(--chalk); }
.btn[disabled] { opacity: 0.35; pointer-events: none; }

/* Start */
.start { justify-content: flex-end; gap: 28px; background:
  radial-gradient(120% 70% at 50% -10%, rgba(255, 178, 36, 0.16), transparent 60%),
  radial-gradient(80% 50% at 100% 100%, rgba(229, 37, 30, 0.12), transparent 60%), var(--night); }
.start h1 { font-size: clamp(52px, 15vw, 84px); }
.start h1 em { font-style: normal; color: var(--hit); }
.start p { font-size: 18px; line-height: 1.45; max-width: 34ch; }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice button { min-height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--turf); font-weight: 600; transition: transform 160ms var(--ease-out), border-color 160ms ease, background-color 160ms ease; }
.choice button:active { transform: scale(0.97); }
.choice button[aria-pressed="true"] { border-color: var(--chalk); background: var(--chalk); color: var(--night); }
.field label { display: block; font-size: 14px; color: var(--mute); margin-bottom: 6px; }
.field input, textarea { width: 100%; min-height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--turf); color: var(--chalk); padding: 12px 14px; font-size: 16px; }
textarea { resize: none; }
.how { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 15px; color: var(--mute); }
.how b { color: var(--chalk); font-weight: 600; }

/* Feed */
.feed { position: fixed; inset: 0; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.card { position: relative; container-type: size; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; user-select: none; touch-action: pan-y; }
.card .bg { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(9, 9, 11, 0.2) 0%, rgba(9, 9, 11, 0) 30%, rgba(9, 9, 11, 0.85) 100%),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 22%),
  radial-gradient(90% 60% at 50% 35%, var(--tint), transparent 70%), var(--night); }
.card .frame { --fw: max(100cqw, calc(100cqh * 9 / 16)); position: absolute; left: calc((100cqw - var(--fw)) * var(--fx, 50) / 100); top: 50%; width: var(--fw); aspect-ratio: 9 / 16; transform: translateY(-50%); pointer-events: none; }
.card .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card .ring { position: absolute; transform: translate(-50%, -50%) rotate(-6deg); border: 4px solid var(--red); border-radius: 50%; filter: drop-shadow(0 0 8px rgba(229, 37, 30, 0.45)); }
.card .bg.over { background: linear-gradient(180deg, rgba(9, 9, 11, 0.55) 0%, rgba(9, 9, 11, 0) 28%, rgba(9, 9, 11, 0) 52%, rgba(9, 9, 11, 0.92) 100%); }
.card .pov { position: absolute; top: max(64px, calc(env(safe-area-inset-top) + 48px)); left: 22px; right: 22px; text-align: center; font-family: var(--video); font-weight: 800; font-size: clamp(22px, 6.4vw, 30px); line-height: 1.15; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 2px 8px rgba(0, 0, 0, 0.8); }
.card .circle { position: absolute; left: 50%; top: 46%; width: 46vw; max-width: 220px; aspect-ratio: 1.3; transform: translate(-50%, -50%) rotate(-6deg); border: 4px solid var(--red); border-radius: 50%; opacity: 0.9; filter: drop-shadow(0 0 10px rgba(229, 37, 30, 0.35)); }
.card .teaser { position: absolute; left: 20px; right: 84px; bottom: max(110px, calc(env(safe-area-inset-bottom) + 96px)); font-size: 18px; line-height: 1.4; }
.card .teaser small { display: block; font-size: 14px; color: var(--mute); margin-bottom: 6px; font-weight: 600; }
.card .side { position: absolute; right: 12px; bottom: max(120px, calc(env(safe-area-inset-bottom) + 104px)); display: flex; flex-direction: column; gap: 18px; align-items: center; }
.card .side button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; text-shadow: 0 1px 4px #000; }
.card .side svg { width: 38px; height: 38px; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6)); transition: transform 160ms var(--ease-out); }
.card .side button:active svg { transform: scale(0.88); }
.card .heart-btn[aria-pressed="true"] svg { color: var(--red); fill: var(--red); }
.card .hint { position: absolute; left: 0; right: 0; bottom: max(28px, env(safe-area-inset-bottom)); text-align: center; font-size: 14px; color: var(--mute); }
.progress { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; gap: 4px; z-index: 5; pointer-events: none; }
.progress i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); transition: background-color 200ms ease; }
.progress i.on { background: var(--chalk); }

.burst { position: absolute; left: 0; top: 0; width: 110px; height: 110px; margin: -55px 0 0 -55px; color: var(--red); pointer-events: none; animation: burst 700ms var(--ease-out) forwards; }
@keyframes burst { 0% { opacity: 0; transform: scale(0.6) rotate(-12deg); } 25% { opacity: 1; transform: scale(1.1) rotate(-6deg); } 100% { opacity: 0; transform: scale(1) translateY(-60px) rotate(-6deg); } }

/* Nachfrage-Sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 200ms ease; }
.sheet-wrap.open { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--turf-2); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 12px 20px max(20px, env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform 320ms var(--ease-drawer); display: flex; flex-direction: column; gap: 18px; max-height: 88dvh; overflow-y: auto; }
.sheet-wrap.open .sheet { transform: translateY(0); }
.sheet .grab { width: 40px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto; }
.sheet h2 { font-size: 30px; }
.sheet .q { font-weight: 700; margin-bottom: 8px; }
.range { width: 100%; accent-color: var(--hit); height: 32px; }
.range-labels { display: flex; justify-content: space-between; font-size: 14px; color: var(--mute); margin-top: 2px; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yesno button { min-height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--turf); font-weight: 600; transition: transform 160ms var(--ease-out); }
.yesno button:active { transform: scale(0.97); }
.yesno button[aria-pressed="true"] { background: var(--chalk); color: var(--night); border-color: var(--chalk); }
.sheet .row { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }

/* Duell */
.duel { justify-content: center; gap: 20px; }
.duel h2 { font-size: 42px; }
.duel .vs { display: grid; gap: 12px; }
.duel .opt { text-align: left; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--turf); font-family: var(--video); font-weight: 800; font-size: 19px; line-height: 1.2; transition: transform 160ms var(--ease-out), border-color 160ms ease; }
.duel .opt:active { transform: scale(0.98); border-color: var(--hit); }
.duel .or { text-align: center; color: var(--mute); font-weight: 700; }
.duel .vs.pics { grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.duel .vs.pics .or { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--video); font-weight: 800; font-size: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); pointer-events: none; }
.duel .opt.pic { padding: 0; overflow: hidden; display: flex; flex-direction: column; font-size: 15px; }
.duel .opt.pic img { width: 100%; aspect-ratio: 9 / 15; object-fit: cover; display: block; pointer-events: none; }
.duel .opt.pic span { padding: 10px 12px 12px; }
.step-in { animation: stepin 260ms var(--ease-out); }
@keyframes stepin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Ende */
.end { justify-content: center; gap: 22px; background: radial-gradient(120% 70% at 50% 0%, rgba(255, 178, 36, 0.14), transparent 60%), var(--night); }
.end h2 { font-size: clamp(48px, 13vw, 72px); }
.end ol { list-style: none; display: grid; gap: 10px; counter-reset: t; }
.end li { counter-increment: t; display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-family: var(--video); font-weight: 800; font-size: 17px; line-height: 1.25; }
.end li::before { content: counter(t); font-family: var(--display); font-size: 30px; line-height: 0.9; color: var(--hit); }
.center { text-align: center; }
.error { justify-content: center; text-align: center; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
