*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:              #102116;
  --card:            #1e3828;
  --card-border:     #2f5a3f;
  --card-active:     #263f2e;
  --text:            #e8f5ec;
  --text-muted:      #7aaa8a;
  --accent:          #3d7548;
  --correct:         #3d7548;
  --correct-bg:      #122d1d;
  --correct-border:  #3d7548;
  --correct-text:    #b5dcc1;
  --wrong:           #f87171;
  --wrong-bg:        #450a0a;
  --wrong-border:    #ef4444;
  --wrong-text:      #fecaca;
  --modal-bg:        #122218;
  --modal-border:    #2f5a3f;
  --item-bg:         #1c3625;
  --progress-bg:     #2f5a3f;
  --progress-fill:   #f59e0b;
  --btn-bg:          #3d7548;
  --btn-text:        #e8f5ec;
}

html {
  font-size: 16px;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(720px 560px at 10% 2%, rgba(52, 191, 149, 0.26), transparent 60%),
    radial-gradient(680px 600px at 98% 8%, rgba(245, 158, 11, 0.18), transparent 58%),
    radial-gradient(760px 680px at 50% 98%, rgba(14, 165, 180, 0.22), transparent 62%),
    radial-gradient(640px 560px at 90% 62%, rgba(132, 204, 70, 0.15), transparent 60%),
    linear-gradient(168deg, #11331f 0%, #102116 50%, #0d2016 100%);
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── Header ── */

header {
  padding: 28px 20px 16px;
  text-align: center;
}

.header-logo {
  display: block;
  margin: 0 auto 12px;
  max-width: 120px;
  height: auto;
}

header h1 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

header p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 6px;
}

/* ── Interaktive Plakate Card ── */

.plakate-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 0;
  padding: 16px 18px;
  background: linear-gradient(135deg, #20402b, #16301f);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.plakate-card:active {
  transform: scale(0.98);
  border-color: var(--progress-fill);
}

.plakate-card-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--card-active);
  border-radius: 12px;
}

.plakate-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.plakate-card-text strong {
  font-size: 1.02rem;
  font-weight: 700;
}

.plakate-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.plakate-card-arrow {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--progress-fill);
}

/* ── Category Grid ── */

#category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px;
}

.category-card {
  aspect-ratio: 1;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text);
  padding: 12px 8px;
  transition: transform 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.category-card:active {
  transform: scale(0.94);
  background: var(--card-active);
}

.cat-emoji {
  font-size: 2.6rem;
  line-height: 1;
}

.cat-icon-wrap {
  position: relative;
  border-radius: 18px;
  line-height: 0;
}

.cat-icon-gold {
  padding: 3px;
  background: linear-gradient(135deg, #b45309, #fde68a, #f59e0b, #fbbf24, #b45309);
  background-size: 300% 300%;
  animation: gold-border-shift 2s ease-in-out infinite;
  box-shadow:
    0 0 14px rgba(245, 158, 11, 0.55),
    0 0 30px rgba(245, 158, 11, 0.25);
}

.cat-icon-gold .cat-icon-img {
  border-radius: 15px;
  display: block;
}

.cat-icon-gold::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 15px;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 80%
  );
  background-size: 250% 100%;
  animation: glitter-sweep 2.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.cat-icon-gold::after {
  content: '✦';
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 1rem;
  color: #fde68a;
  animation: sparkle-spin 3s ease-in-out infinite;
  z-index: 2;
  line-height: 1;
}

@keyframes gold-border-shift {
  0%, 100% {
    background-position: 0% 50%;
    box-shadow: 0 0 14px rgba(245,158,11,0.55), 0 0 30px rgba(245,158,11,0.25);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 22px rgba(251,191,36,0.8), 0 0 46px rgba(245,158,11,0.45);
  }
}

@keyframes glitter-sweep {
  0%   { background-position: 200% center; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { background-position: -100% center; opacity: 0; }
}

@keyframes sparkle-spin {
  0%, 100% { transform: scale(1) rotate(0deg);   opacity: 1; }
  25%       { transform: scale(1.4) rotate(90deg);  opacity: 0.7; }
  50%       { transform: scale(0.8) rotate(180deg); opacity: 1; }
  75%       { transform: scale(1.3) rotate(270deg); opacity: 0.6; }
}

.cat-icon-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 32px;
}

.cat-icon-img--sm {
  width: 98px;
  height: 98px;
}

.card-label {
  font-size: 0.96rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  color: var(--text);
}

.card-score {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

.category-card.completed {
  background: #1a3323;
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.category-card.completed .card-score {
  color: #f59e0b;
  font-weight: 700;
}

/* ── Score Section ── */

#score-section {
  padding: 24px 16px 40px;
}

#score-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

#score-label strong {
  color: var(--text);
  font-size: 0.95rem;
}

#progress-bar {
  height: 10px;
  background: var(--progress-bg);
  border-radius: 999px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  background: var(--progress-fill);
  border-radius: 999px;
  width: 0%;
  transition: width 0.45s ease;
}

/* ── Back to Video Button ── */

#btn-back-to-video {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 20px;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#btn-back-to-video:active {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ── Overlay ── */

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Bottom Sheet Modal ── */

.modal-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--modal-bg);
  border-top: 1px solid var(--modal-border);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 200;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.modal-sheet.open {
  transform: translateY(0);
}

#modal-question {
  z-index: 300;
}

.drag-handle {
  width: 40px;
  height: 4px;
  background: #2f5a3f;
  border-radius: 2px;
  margin: 12px auto 4px;
  flex-shrink: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 14px;
  border-bottom: 1px solid var(--modal-border);
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 0.15s;
}

.close-btn:hover {
  color: var(--text);
}

/* ── Poster List ── */

#poster-list {
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.poster-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  background: var(--item-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.poster-btn:active {
  transform: scale(0.97);
}

.poster-btn.correct {
  background: var(--correct-bg);
  border-color: var(--correct-border);
  color: var(--correct-text);
}

.poster-btn.wrong {
  background: var(--wrong-bg);
  border-color: var(--wrong-border);
  color: var(--wrong-text);
}

.poster-status {
  font-size: 1.3rem;
  font-weight: 700;
  min-width: 24px;
  text-align: right;
}

/* ── Question Modal ── */

.modal-body {
  padding: 16px 20px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#question-text {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  padding: 4px 0;
}

#answers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answer-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--item-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  cursor: pointer;
  min-height: 52px;
  transition: border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.answer-option input[type="radio"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.answer-option:has(input:checked) {
  border-color: var(--accent);
}

.answer-option.correct-answer {
  background: var(--correct-bg);
  border-color: var(--correct-border);
  color: var(--correct-text);
}

.answer-option.wrong-answer {
  background: var(--wrong-bg);
  border-color: var(--wrong-border);
  color: var(--wrong-text);
}

.answer-option input[type="radio"]:disabled {
  cursor: default;
}

.answer-letter {
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 20px;
}

.answer-option.correct-answer .answer-letter,
.answer-option.wrong-answer .answer-letter {
  color: inherit;
}

.answer-text {
  line-height: 1.45;
  font-size: 0.97rem;
}

/* ── Result Banner ── */

#question-result {
  font-size: 0.92rem;
  font-weight: 600;
  padding: 13px 16px;
  border-radius: 12px;
  line-height: 1.4;
  display: none;
}

#question-result.correct {
  display: block;
  background: var(--correct-bg);
  color: var(--correct-text);
  border: 1px solid var(--correct-border);
}

#question-result.wrong {
  display: block;
  background: var(--wrong-bg);
  color: var(--wrong-text);
  border: 1px solid var(--wrong-border);
}

/* ── Submit Button ── */

#submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#submit-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#submit-btn:not(:disabled):active {
  opacity: 0.82;
  transform: scale(0.98);
}

/* ── Desktop Centering ── */

@media (min-width: 500px) {
  body {
    max-width: 480px;
    margin: 0 auto;
  }

  .modal-sheet {
    left: 50%;
    right: auto;
    width: 480px;
    transform: translateX(-50%) translateY(100%);
    border-radius: 22px 22px 0 0;
  }

  .modal-sheet.open {
    transform: translateX(-50%) translateY(0);
  }
}

/* ══════════════════════════════════════
   Onboarding Screens
   ══════════════════════════════════════ */

.ob-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(10px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ob-screen.ob-active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* ── Screen 1: Start ── */

#screen-start {
  background: radial-gradient(ellipse at 50% 38%, #1e3828 0%, var(--bg) 68%);
  cursor: pointer;
  user-select: none;
}

.ob-start-inner {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
  gap: 52px;
}

.ob-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ob-logo-img {
  max-width: 220px;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 32px rgba(59, 114, 72, 0.35));
}

.ob-logo-fallback {
  display: none;
  font-size: 5rem;
  line-height: 1;
  filter: drop-shadow(0 0 24px rgba(59, 114, 72, 0.45));
}

.ob-tap-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  animation: ob-breathe 2.4s ease-in-out infinite;
}

.ob-pulse-dot {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: ob-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes ob-dot-pulse {
  0%, 100% { transform: scale(1);    opacity: 1;    }
  50%       { transform: scale(0.6); opacity: 0.45; }
}

@keyframes ob-breathe {
  0%, 100% { opacity: 1;   }
  50%       { opacity: 0.5; }
}

/* ── Screen 2: Video ── */

.ob-video-inner {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #000;
}

.ob-video-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
  background: #000;
}

#intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

.ob-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.15s ease;
}
.ob-play-overlay:active { transform: translate(-50%, -50%) scale(0.92); }
.ob-play-overlay.hidden { opacity: 0; pointer-events: none; }

.ob-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #fff;
  margin-left: 6px;
}

.ob-unmute {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  animation: ob-unmute-pulse 1.8s ease-in-out infinite;
}
.ob-unmute.hidden { display: none; }
.ob-unmute:active { transform: translateX(-50%) scale(0.95); }

.ob-sound {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: #fff;
}

@keyframes ob-unmute-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.0); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12); }
}

.ob-video-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: rgba(0, 0, 0, 0.88);
  flex-shrink: 0;
}
.ob-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
}
.ob-time:last-child { text-align: right; }
.ob-seek {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  overflow: hidden;
}
.ob-seek-fill {
  height: 100%;
  width: 0;
  background: var(--progress-fill);
  border-radius: 3px;
}

.ob-video-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.88);
  gap: 12px;
  flex-shrink: 0;
}

.ob-video-label {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.5);
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ob-skip-btn {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  flex-shrink: 0;
}

.ob-skip-btn:active {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ── Screen 3: Info ── */

#screen-info {
  background: linear-gradient(180deg, #122218 0%, var(--bg) 28%);
}

.ob-info-inner {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 44px 20px 48px;
  gap: 28px;
}

.ob-info-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.ob-info-badge {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 4px;
}

.ob-info-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}

.ob-info-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 290px;
}

/* Tiles */

.ob-tiles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ob-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.ob-tile:active {
  transform: scale(0.97);
  background: var(--card-active);
}

.ob-tile--gold {
  background: #1c2a12;
  border-color: #a16207;
}

.ob-tile-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ob-tile-grade {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.ob-tile-grade--sm {
  font-size: 1.45rem;
}

.ob-tile--gold .ob-tile-grade {
  color: #f59e0b;
}

.ob-tile-unit {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ob-tile-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ob-tile-dur {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.ob-tile-play {
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: #052e16;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding-left: 3px;
  flex-shrink: 0;
}

.ob-tile-play--gold {
  background: #f59e0b;
  color: #1c1000;
}

/* CTA Button */

.ob-cta {
  width: 100%;
  padding: 18px;
  margin-top: auto;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: -0.01em;
  transition: opacity 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.ob-cta:active {
  opacity: 0.82;
  transform: scale(0.98);
}

.ob-cta-arrow {
  font-size: 1.25rem;
  line-height: 1;
}

/* Desktop centering for onboarding */

@media (min-width: 500px) {
  .ob-screen {
    left: 50%;
    right: auto;
    width: 480px;
    transform: translateX(-50%) translateY(10px);
  }

  .ob-screen.ob-active {
    transform: translateX(-50%) translateY(0);
  }

  /* Intro-Video läuft über das ganze Fenster (nicht in der 480px-Spalte);
     Hochformat-Video mittig in voller Höhe -> schwarze Ränder links/rechts. */
  #screen-video,
  #screen-video.ob-active {
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
  }
  #intro-video { object-fit: contain; }
}


/* ══════════════════════════════════════
   Completion Banner
   ══════════════════════════════════════ */

.compl-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #172d20, #1e3828);
  border: 1px solid #a16207;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.compl-banner.compl-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.compl-trophy {
  font-size: 1.8rem;
  flex-shrink: 0;
  animation: compl-bob 2.5s ease-in-out infinite;
}

@keyframes compl-bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%       { transform: translateY(-5px) rotate(4deg); }
}

.compl-text-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.compl-text-wrap strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f59e0b;
}

.compl-text-wrap span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.compl-cta {
  background: #f59e0b;
  color: #1c1000;
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  animation: compl-pulse-glow 2.5s ease-in-out infinite;
}

.compl-cta:active {
  opacity: 0.82;
  transform: scale(0.96);
}

@keyframes compl-pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0   rgba(245,158,11,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(245,158,11,0);   }
}

.compl-arrow {
  font-size: 1rem;
}

/* ══════════════════════════════════════
   Aktiv werden Screen
   ══════════════════════════════════════ */

#screen-aktiv {
  background: radial-gradient(ellipse at 50% 28%, #2d2000 0%, var(--bg) 62%);
}

.aktiv-inner {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 52px;
  gap: 22px;
  text-align: center;
}

.aktiv-star {
  font-size: 4.5rem;
  line-height: 1;
  animation: aktiv-float 3s ease-in-out infinite;
}

@keyframes aktiv-float {
  0%, 100% { transform: translateY(0) scale(1);    }
  50%       { transform: translateY(-10px) scale(1.06); }
}

.aktiv-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}

.aktiv-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.aktiv-callout {
  width: 100%;
  background: #1a3323;
  border: 1px solid #a16207;
  border-left: 4px solid #f59e0b;
  border-radius: 14px;
  padding: 18px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aktiv-callout-head {
  font-size: 1rem;
  font-weight: 700;
  color: #f59e0b;
  display: block;
}

.aktiv-callout p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
}

.aktiv-callout strong {
  color: var(--accent);
}

.aktiv-prompts {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aktiv-prompt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  text-align: left;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.45;
}

.aktiv-prompt-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.aktiv-prompt em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

.aktiv-back-btn {
  margin-top: auto;
  background: none;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.aktiv-back-btn:active {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ══════════════════════════════════════
   Bestätigungs-Dialog
   ══════════════════════════════════════ */

.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.confirm-backdrop.confirm-open {
  opacity: 1;
  pointer-events: all;
}

.confirm-card {
  background: var(--modal-bg);
  border: 1px solid var(--modal-border);
  border-radius: 20px;
  padding: 28px 24px 24px;
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transform: scale(0.88);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-backdrop.confirm-open .confirm-card {
  transform: scale(1);
}

.confirm-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.confirm-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
}

.confirm-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.confirm-btn-cancel {
  flex: 1;
  padding: 13px;
  background: var(--item-bg);
  color: var(--text);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.confirm-btn-cancel:active {
  background: var(--card-active);
}

.confirm-btn-confirm {
  flex: 1;
  padding: 13px;
  background: #7f1d1d;
  color: #fecaca;
  border: 1px solid #ef4444;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.confirm-btn-confirm:active {
  background: #991b1b;
}
