:root {
  --bg: #050416;
  --blue: #0d1b5e;
  --blue2: #132b93;
  --gold: #f7c948;
  --gold2: #ffed9a;
  --text: #f8f7ff;
  --muted: #b8b7d9;
  --danger: #ff4d6d;
  --good: #42f58d;
  --panel: rgba(12, 16, 54, 0.86);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 5%, rgba(65,95,255,.45), transparent 30%),
    radial-gradient(circle at 15% 80%, rgba(247,201,72,.22), transparent 25%),
    linear-gradient(135deg, #02020b, var(--bg) 55%, #000);
  color: var(--text);
  overflow-x: hidden;
}
.bg-orbs::before, .bg-orbs::after {
  content: ""; position: fixed; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0;
}
.bg-orbs::before { width: 320px; height: 320px; background: #1e55ff; top: 8%; left: -80px; }
.bg-orbs::after { width: 280px; height: 280px; background: #f7c948; bottom: -100px; right: -60px; }
.game-shell { position: relative; z-index: 1; min-height: 100vh; }
.screen { display: none; min-height: 100vh; padding: 28px; align-items: center; justify-content: center; }
.screen.active { display: flex; animation: fadeIn .45s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
.logo-card, .panel {
  width: min(900px, 94vw);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(247,201,72,.35);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(8,12,48,.92), rgba(10,22,92,.72));
  box-shadow: 0 0 60px rgba(30,85,255,.28), inset 0 0 40px rgba(255,255,255,.04);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.logo-card::before, .panel::before {
  content: ""; position: absolute; inset: -2px; background: linear-gradient(90deg, transparent, rgba(247,201,72,.18), transparent); transform: translateX(-100%); animation: shimmer 4s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 45%,100% { transform: translateX(100%); } }
.small-label { color: var(--gold2); letter-spacing: .22em; text-transform: uppercase; font-size: .78rem; margin-bottom: 16px; }
h1 { font-size: clamp(2.6rem, 8vw, 6rem); line-height: .95; margin: 0 0 24px; text-shadow: 0 0 25px rgba(247,201,72,.45); }
h1 span { color: var(--gold); }
h2 { font-size: clamp(1.7rem, 4vw, 3rem); margin: 0 0 20px; }
p { color: var(--muted); line-height: 1.75; font-size: 1.08rem; }
.intro { max-width: 620px; margin: 0 auto 34px; }
.primary-btn, .secondary-btn, .answers button, .joker {
  border: 0; cursor: pointer; font-weight: 800; letter-spacing: .03em; transition: .2s ease; font-family: inherit;
}
.primary-btn {
  display: inline-block; text-decoration: none; color: #111; background: linear-gradient(180deg, var(--gold2), var(--gold));
  padding: 16px 30px; border-radius: 999px; box-shadow: 0 12px 35px rgba(247,201,72,.28);
}
.primary-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 45px rgba(247,201,72,.38); }
.secondary-btn { margin-top: 18px; background: transparent; color: var(--gold2); border: 1px solid rgba(247,201,72,.4); padding: 12px 22px; border-radius: 999px; }
.quiz-screen { align-items: stretch; gap: 22px; }
.stage { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 980px; margin: 0 auto; }
.ladder {
  width: 220px; border: 1px solid rgba(247,201,72,.25); border-radius: 24px; padding: 16px; background: rgba(3,8,36,.65); align-self: center;
}
.ladder-item { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 12px; color: var(--muted); font-weight: 700; }
.ladder-item.active { background: linear-gradient(90deg, var(--gold), var(--gold2)); color: #121212; transform: scale(1.04); }
.topbar, .joker-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.timer, .question-counter, .joker, .host-box, .question-box, .answers button {
  border: 1px solid rgba(247,201,72,.32); background: rgba(5,10,42,.82); border-radius: 18px;
}
.timer, .question-counter { padding: 12px 18px; color: var(--gold2); font-weight: 900; }
.joker { color: var(--gold2); padding: 11px 18px; }
.joker.used { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.host-box { padding: 18px 22px; color: var(--muted); margin: 16px 0; min-height: 62px; }
.question-box { padding: clamp(22px, 4vw, 38px); text-align: center; margin: 18px 0; box-shadow: inset 0 0 30px rgba(30,85,255,.18); }
.question-value { color: var(--gold); font-weight: 900; margin-bottom: 12px; }
.question-box h2 { font-size: clamp(1.35rem, 3vw, 2.3rem); }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.answers button { color: var(--text); text-align: left; padding: 18px 20px; font-size: 1rem; }
.answers button:hover { transform: translateY(-2px); border-color: var(--gold); background: rgba(18,43,147,.9); }
.answers button.correct { background: rgba(66,245,141,.18); border-color: var(--good); }
.answers button.wrong { background: rgba(255,77,109,.18); border-color: var(--danger); }
.answer-letter { color: var(--gold); margin-right: 10px; font-weight: 900; }
.heart-text { color: #fff; font-size: 1.22rem; }
.prize-btn { margin-top: 10px; }
.confetti span { position: fixed; top: -20px; width: 10px; height: 18px; background: var(--gold); animation: fall linear forwards; z-index: 10; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: 0; } }
@media (max-width: 900px) {
  .quiz-screen { flex-direction: column; }
  .ladder { width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); font-size: .82rem; }
  .answers { grid-template-columns: 1fr; }
  .screen { padding: 16px; }
}
.question-image-wrap {
  display: none;
  width: min(620px, 100%);
  margin: 0 auto 22px;
  border: 1px solid rgba(247,201,72,.36);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 0 34px rgba(247,201,72,.12), inset 0 0 20px rgba(255,255,255,.05);
  background: rgba(0,0,0,.25);
}
.question-image-wrap.visible { display: block; animation: fadeIn .35s ease both; }
.question-image-wrap img {
  display: block;
  width: 100%;
  max-height: 478px;
  object-fit: cover;
  transition: filter 1.4s ease, transform 1.4s ease;
}
.question-image-wrap.pixel-reveal-active img {
  image-rendering: pixelated;
}
.question-image-wrap.pixel-reveal-active::after {
  content: "Bild wird rekonstruiert...";
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(2, 5, 24, .76);
  border: 1px solid rgba(247,201,72,.34);
  color: var(--gold2);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.question-image-wrap { position: relative; }
.solution-track {
  margin: 0 auto 18px;
  color: var(--gold2);
  font-weight: 900;
  letter-spacing: .12em;
  font-size: .92rem;
  opacity: .95;
}
.solution-final {
  color: var(--gold);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 1000;
  letter-spacing: .08em;
  margin: 8px 0 24px;
  text-shadow: 0 0 28px rgba(247,201,72,.45);
}
.solution-intro {
  color: var(--muted);
  margin-bottom: 0;
}
.personal-panel {
  width: min(980px, 94vw);
  text-align: left;
}
.personal-panel h2,
.personal-panel .small-label {
  text-align: center;
}
.personal-text {
  max-width: 780px;
  margin: 24px auto 30px;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(247,201,72,.22);
  border-radius: 26px;
  background: rgba(2, 5, 24, .42);
  box-shadow: inset 0 0 28px rgba(255,255,255,.035);
}
.personal-text p {
  color: #f4f1ff;
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin: 0 0 18px;
}
.personal-text p:last-child {
  margin-bottom: 0;
}
.personal-text strong {
  color: var(--gold2);
}
.ps-text {
  margin-top: 28px !important;
  padding-top: 18px;
  border-top: 1px solid rgba(247,201,72,.24);
  color: var(--gold2) !important;
}
.personal-panel .prize-btn {
  display: table;
  margin: 12px auto 0;
}


.penalty-panel {
  width: min(860px, 94vw);
}
.penalty-panel h2 {
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--danger);
  text-shadow: 0 0 28px rgba(255,77,109,.45);
}
.penalty-main {
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
  max-width: 720px;
  margin: 0 auto 22px;
}
.penalty-sub {
  color: var(--gold2);
  font-weight: 800;
  min-height: 64px;
  max-width: 720px;
  margin: 0 auto;
}
