/* Demo-Ebene der Sek-1-Edition (Kopie der Grundschul-Demo, editions/grundschule/demo/demo.css). Übernommen aus der Vocab-Cup-Demo (demo-src/demo.css),
   Texte deutsch, Wortbereich entfällt, Aufgabenbereich (Math Cup) ergänzt. */
.is-demo-locked {
  position: relative;
  opacity: .42;
  filter: grayscale(.3);
  cursor: not-allowed;
  transition: opacity .18s ease;
}

.is-demo-locked > * {
  pointer-events: none !important;
}

.is-demo-locked:hover {
  opacity: .66;
}

/* Schloss sitzt in der oberen rechten Ecke und ueberlagert keinen Text. */
.is-demo-locked::after {
  content: "🔒";
  position: absolute;
  top: 4px;
  right: 6px;
  z-index: 4;
  font-size: 13px;
  line-height: 1;
  opacity: .85;
  pointer-events: none;
}

/* Kleine Felder: Schloss direkt an den Rand, damit nichts verrutscht. */
.is-demo-locked-small::after {
  top: 2px;
  right: 3px;
  font-size: 11px;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #d5a62e;
  color: #0b1f33;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  vertical-align: middle;
}


/* Feste Demo-Einstellung: bleibt gut lesbar, damit man sieht, was eingestellt
   ist (Teams, Farben, Spielregeln). Nur das Schloss zeigt: hier nicht aenderbar. */
.is-demo-locked.is-demo-fixed {
  opacity: .82;
  filter: none;
}

.is-demo-locked.is-demo-fixed:hover {
  opacity: .95;
}

/* Wortbereich der Demo: statt der technischen Auswahlablage (Rundengroesse,
   Zufallsschluessel, Listen speichern) nur ein klarer dritter Schritt. */
.is-demo-locked .setup-help {
  pointer-events: auto !important;
  cursor: help;
}

.demo-badge-small {
  margin-left: 12px;
  padding: 3px 9px;
  font-size: 11px;
  letter-spacing: .1em;
}

/* --- Spielstart-Karte ---------------------------------------------------------
   Oben auf der Startseite: Paarung, zwei Spielmodi, Play. Farben, Kicker und
   Knopf kommen aus der App (setup-welcome, match-flow-option, start-game-button). */
.demo-play {
  display: grid;
  gap: 16px;
  margin: 18px 0 22px;
  padding: 20px 22px;
  border: 1px solid rgba(247, 216, 74, .62);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(247, 216, 74, .2), transparent 60%),
    linear-gradient(135deg, rgba(20, 44, 72, .94), rgba(6, 18, 32, .94));
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}

.demo-play-head {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.demo-play-head .setup-welcome-kicker {
  margin: 0;
}

.demo-play-head h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  text-wrap: balance;
}

.demo-play-head h2 em {
  color: #f7d84a;
  font-size: .55em;
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.demo-play-team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.demo-play-team img {
  width: clamp(44px, 5vw, 64px);
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45));
}

.demo-play-head > p:last-child {
  margin: 0;
  color: rgba(226, 240, 244, .82);
  font-size: 15px;
  font-weight: 650;
}

.demo-play .match-flow-settings {
  margin: 0;
}

.demo-play .match-flow-option {
  cursor: pointer;
}

/* Spielfeld-Animation rechts in der Modus-Karte, wie im Bereich „Spiel“. */
#setup .demo-play label.has-mode-preview .mca-preview {
  grid-row: auto;
}

.demo-play-actions.setup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
}

.demo-play-actions .start-game-button {
  width: 100%;
}

@media (max-width: 640px) {
  .demo-play .match-flow-settings {
    grid-template-columns: 1fr;
  }
}

/* --- Schaufenster: Stadien und Baelle der Vollversion --------------------------
   Gesperrt, aber in Farbe: man soll sehen, was es alles gibt. */
.arena-style-settings.demo-arena-gallery {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 700px) {
  .arena-style-settings.demo-arena-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.demo-arena-gallery .mode-option {
  grid-template-columns: 22px minmax(0, 1fr);
  align-content: start;
  gap: 8px 10px;
  padding: 8px 8px 10px;
}

.demo-arena-thumb {
  grid-column: 1 / -1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

.is-demo-locked.is-demo-showcase {
  opacity: .92;
  filter: none;
}

.is-demo-locked.is-demo-showcase:hover {
  opacity: 1;
}

.is-demo-locked.is-demo-showcase::after {
  content: "🔒 Vollversion";
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(4, 15, 28, .8);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Release-Test 02.10.2026: Das Schild lag über Ball und Namen; jetzt sitzt es als Reiter auf der Kante. */
.ball-style-option.is-demo-showcase,
.ball-style-option.is-demo-included-tile {
  overflow: visible;
}

.ball-style-option.is-demo-showcase::after,
.ball-style-option.is-demo-included-tile::after {
  top: -9px;
  right: 8px;
  padding: 2px 7px;
  font-size: 9px;
}

/* Release-Test 02.10.2026: Skyline ist in der Demo das Stadion des Stils Classic. */
.is-demo-included-tile.is-demo-classic-only::after {
  content: "✓ Demo · Classic";
}

.season-full-hub-title .setup-section-title .demo-badge-small {
  display: inline-flex;
  width: auto;
  margin-left: 10px;
  padding: 2px 8px;
  font-size: 10px;
  line-height: 1.4;
}

/* --- Vollversion: Schaufenster am Ende der Startseite -------------------------- */
.demo-full {
  display: grid;
  gap: 18px;
  margin: 26px 0 8px;
  padding: 22px;
  border: 1px solid rgba(247, 216, 74, .38);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(247, 216, 74, .12), transparent 55%),
    linear-gradient(135deg, rgba(20, 44, 72, .92), rgba(6, 18, 32, .94));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.demo-full-head {
  display: grid;
  gap: 6px;
}

.demo-full-head .setup-welcome-kicker {
  margin: 0;
}

.demo-full-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  text-wrap: balance;
}

.demo-full-stadiums {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 640px) {
  .demo-full-stadiums {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.demo-full-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-full-stadiums figure {
  display: grid;
  gap: 6px;
  margin: 0;
}

.demo-full-stadiums .demo-moods {
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
}

.demo-full-stadiums .is-demo-arena .demo-moods {
  border-color: rgba(247, 216, 74, .8);
}

.demo-full-stadiums figcaption {
  color: #b9d7e6;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.demo-full-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.demo-full-balls .ball-style-preview {
  width: 46px;
  height: 46px;
}

.demo-full-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-full-features li {
  display: grid;
  gap: 3px;
  padding-left: 26px;
  position: relative;
}

.demo-full-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #f7d84a;
  font-weight: 1000;
}

.demo-full-features strong {
  color: #fff;
  font-size: 15px;
}

.demo-full-features span {
  color: rgba(226, 240, 244, .78);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.demo-full-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.demo-full-cta p {
  margin: 0;
  color: rgba(226, 240, 244, .85);
  font-size: 15px;
  font-weight: 700;
}

.demo-full-cta .tool {
  margin: 0;
  text-decoration: none;
}

/* Nach dem Spiel: Hinweis im Ergebnisfenster, klar unter dem Ergebnis. */
.demo-result-offer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: center;
  margin: 4px 0 10px;
  padding: 8px 12px;
  border: 1px solid rgba(247, 216, 74, .35);
  border-radius: 12px;
  background: rgba(247, 216, 74, .08);
  text-align: center;
}

.demo-result-offer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.demo-result-offer .tool {
  margin: 0;
  text-decoration: none;
}

/* --- Get the Full Version: Knopf oben rechts ---------------------------------- */
.demo-top-actions {
  position: absolute;
  top: 24px;
  right: 26px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.demo-top-actions .setup-tutorial-tab {
  position: relative;
  top: auto;
  right: auto;
}

.demo-full-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px 0 8px;
  border: 1px solid rgba(255, 236, 160, .9);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .28), transparent 50%),
    linear-gradient(135deg, #f7d84a, #f09b2f);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3), 0 0 26px rgba(247, 216, 74, .22);
  color: #1b1400;
  font: 900 16px/1 Inter, Aptos, "Segoe UI", Arial, sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
}

.demo-full-tab svg {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(27, 20, 0, .16);
  fill: #1b1400;
}

.demo-full-tab:hover {
  filter: brightness(1.06);
}

.demo-full-tab:focus-visible {
  outline: 3px solid #4cc9f0;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .demo-top-actions {
    position: relative;
    top: auto;
    right: auto;
    justify-content: flex-start;
    margin: 0 0 12px;
  }
}

/* --- Get the Full Version: die Szene ------------------------------------------
   Aufbau wie die Tour: dunkle Bühne, 960 × 560 große Leinwand, die auf den
   Bildschirm skaliert wird, Fortschrittsbalken, Zurück / Pause / Weiter. */
.demo-moods {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.demo-mood {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-mood-challenge,
.demo-mood-elite {
  opacity: 0;
}

.demo-mood-labels {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: grid;
}

.demo-mood-label {
  grid-area: 1 / 1;
  justify-self: start;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(4, 15, 28, .82);
  color: #f7d84a;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.demo-mood-label.demo-mood-challenge,
.demo-mood-label.demo-mood-elite {
  opacity: 0;
}

.demo-mood.demo-mood-challenge,
.demo-mood-label.demo-mood-challenge {
  animation: demoMoodChallenge 9s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .3s);
}

.demo-mood.demo-mood-elite,
.demo-mood-label.demo-mood-elite {
  animation: demoMoodElite 9s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .3s);
}

.demo-mood-label.demo-mood-normal {
  animation: demoMoodNormal 9s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .3s);
}

.demo-moods .demo-mood-label {
  animation-delay: calc(var(--i, 0) * .3s);
}

/* Release-Test 02.10.2026: außerhalb des Bildes angehalten (siehe demo-mode.js, nurSichtbarAnimieren). */
.demo-moods:not(.is-live) .demo-mood,
.demo-moods:not(.is-live) .demo-mood-label {
  animation-play-state: paused;
}

@keyframes demoMoodNormal {
  0%, 30% { opacity: 1; }
  36%, 94% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes demoMoodChallenge {
  0%, 30% { opacity: 0; }
  36%, 63% { opacity: 1; }
  69%, 100% { opacity: 0; }
}

@keyframes demoMoodElite {
  0%, 63% { opacity: 0; }
  69%, 94% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-mood,
  .demo-mood-label {
    animation: none !important;
  }
}

/* --- In der Demo enthalten: kein Schloss, volle Farbe ---------------------------- */
.is-demo-included {
  position: relative;
  cursor: default;
}

.is-demo-included > * {
  pointer-events: none;
}

.is-demo-included input:disabled {
  opacity: 1;
}

.is-demo-included-tile::after {
  content: "✓ In der Demo";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(4, 15, 28, .82);
  color: #49e58f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}



.dp-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dp-top-link.tool {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  text-decoration: none;
}

@media (max-width: 640px) {
  .dp-top-link.tool {
    padding: 0 12px;
    font-size: 13px;
  }
}

/* --- Math Cup: Ergänzungen ------------------------------------------------------------------ */
.demo-kicker {
  margin: 0;
  color: #f7d84a;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Klassenwahl in der Spielstart-Karte: sechs Knöpfe (Klasse 5–10) mit den Demo-Themen der Klasse. */
.demo-play-grades {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.demo-play-grades button {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.demo-play-grades button strong {
  font-size: 17px;
}

.demo-play-grades button small {
  color: rgba(226, 240, 244, .8);
  font-size: 12.5px;
  font-weight: 650;
}

.demo-play-grades button.is-active {
  border-color: #f7d84a;
  background: rgba(247, 216, 74, .16);
  box-shadow: inset 0 0 0 1px #f7d84a;
}

@media (max-width: 1100px) {
  .demo-play-grades {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .demo-play-grades {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Aufgabenbereich: Demo-Baustein bleibt voll lesbar, die übrigen als gesperrte Vorschau. */
.mc-block.is-demo-choice {
  opacity: 1;
}

.mc-block.is-demo-showcase::after {
  content: "🔒";
  top: 6px;
  right: 8px;
  padding: 0;
  background: none;
  font-size: 12px;
}

/* Sek: Themen statt Bausteine. Demo-Themen voll lesbar, die übrigen der Klasse gesperrt. */
.mc-topic.is-demo-choice {
  opacity: 1;
}

.mc-topic.is-demo-showcase::after {
  content: "🔒";
  top: 6px;
  right: 8px;
  padding: 0;
  background: none;
  font-size: 12px;
}

.demo-math-note {
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid rgba(247, 216, 74, .5);
  border-radius: 12px;
  background: rgba(247, 216, 74, .1);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.demo-eduki-pending {
  opacity: .6;
  cursor: default;
}

.demo-inline-link {
  color: #f7d84a;
  font-weight: 800;
}

/* --- Szene „Vollversion ansehen“ (aus der Vocab-Cup-Demo) ------------------------------------ */
body.demo-promo-open {
  overflow: hidden;
}

.demo-promo {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px 22px 20px;
  background:
    radial-gradient(ellipse at 72% -10%, rgba(76, 201, 240, .13), transparent 52%),
    radial-gradient(ellipse at 8% 110%, rgba(247, 216, 74, .12), transparent 46%),
    #050d18;
  color: #f7fbff;
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
}

.demo-promo[hidden] {
  display: none;
}

.dp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dp-brand {
  display: grid;
  gap: 2px;
}

.dp-brand small {
  color: #f7d84a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.dp-brand strong {
  font-size: 20px;
}

.dp-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.dp-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.dp-frame {
  position: relative;
  width: calc(960px * var(--dp-scale, 1));
  height: calc(560px * var(--dp-scale, 1));
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(247, 216, 74, .16), transparent 58%),
    radial-gradient(ellipse at 50% 120%, rgba(34, 139, 84, .22), transparent 60%),
    linear-gradient(160deg, #0c2440, #06121f 72%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .1);
}

.dp-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 960px;
  height: 560px;
  transform: scale(var(--dp-scale, 1));
  transform-origin: 0 0;
}

.dp-scene {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 36px 48px;
  text-align: center;
}

.dp-scene.is-active {
  display: flex;
}

.dp-head {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.dp-kicker {
  margin: 0;
  color: #f7d84a;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.dp-title {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.08;
  text-wrap: balance;
}

.dp-sub {
  max-width: 640px;
  margin: 0;
  color: #b9d7e6;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
}

/* Intro und Full Cup: Pokale */
.dp-trophies {
  display: flex;
  align-items: flex-end;
  gap: 26px;
}

.dp-trophies img {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .5));
}

.dp-trophies img:nth-child(2) {
  width: 132px;
}

.dp-trophies img:nth-child(3) {
  width: 154px;
}

.dp-levels {
  display: flex;
  align-items: flex-end;
  gap: 32px;
}

.dp-level {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.dp-level-arena {
  width: 230px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .45);
}

.dp-level-cup {
  width: 96px;
  height: auto;
  margin-top: -46px;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .55));
}

.dp-level:nth-child(2) .dp-level-cup {
  width: 106px;
  margin-top: -52px;
}

.dp-level:nth-child(3) .dp-level-cup {
  width: 118px;
  margin-top: -58px;
}

.dp-level strong {
  font-size: 22px;
}

.dp-level small {
  color: #f7d84a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Stadien */
.dp-stadiums {
  gap: 20px;
}

.dp-stadiums .dp-title {
  font-size: 34px;
}

.dp-stadium-grid {
  display: grid;
  grid-template-columns: repeat(5, 156px);
  gap: 14px;
}

.dp-stadium-grid figure {
  display: grid;
  gap: 6px;
  margin: 0;
}

.dp-stadium-grid .demo-moods {
  width: 156px;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .4);
}

.dp-stadium-grid figcaption {
  color: #b9d7e6;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Bälle */
.dp-ball-row {
  display: flex;
  gap: 30px;
}

.dp-ball {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.dp-ball .ball-style-preview {
  width: 96px;
  height: 96px;
}

.dp-ball small {
  color: #b9d7e6;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Wörter */
.dp-counter {
  display: grid;
  gap: 2px;
}

.dp-count {
  color: #f7d84a;
  font-size: 100px;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 10px 40px rgba(247, 216, 74, .35);
}

.dp-counter span {
  font-size: 20px;
  font-weight: 800;
}

.dp-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 780px;
}

.dp-chip {
  padding: 9px 14px;
  border: 1px solid rgba(76, 201, 240, .45);
  border-radius: 999px;
  background: rgba(76, 201, 240, .1);
  font-size: 15px;
  font-weight: 800;
}

.dp-own {
  margin: 0;
  color: #b9d7e6;
  font-size: 16px;
  font-weight: 750;
}

/* Season Mode */
.dp-season {
  gap: 16px;
}

.dp-season .dp-title {
  font-size: 34px;
}

.dp-season-stage {
  display: flex;
  align-items: center;
  gap: 44px;
}

.dp-season-team {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.dp-emblem {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .5));
}

.dp-season-team strong {
  font-size: 22px;
}

.dp-pairs {
  display: flex;
  gap: 8px;
}

.dp-pairs img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.dp-vs {
  padding: 10px 14px;
  border: 1px solid rgba(247, 216, 74, .5);
  border-radius: 12px;
  color: #f7d84a;
  font-size: 22px;
  font-weight: 1000;
}

.dp-season-bottom {
  display: flex;
  align-items: center;
  gap: 28px;
}

.dp-table {
  display: grid;
  gap: 6px;
  min-width: 340px;
}

.dp-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 44px 64px;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(4, 15, 28, .75);
  font-size: 16px;
  font-weight: 800;
  text-align: left;
}

.dp-table-row span:not(:first-child) {
  color: #b9d7e6;
  text-align: right;
}

.dp-table-row span:last-child {
  color: #f7d84a;
}

.dp-mvp {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.dp-mvp img {
  width: 72px;
  height: auto;
}

.dp-mvp span {
  color: #f7d84a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Einstellungen */
.dp-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  width: 100%;
  max-width: 780px;
}

.dp-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(4, 15, 28, .72);
  font-size: 17px;
  font-weight: 800;
  text-align: left;
}

.dp-switch {
  position: relative;
  flex: none;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}

.dp-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
}

/* Abschluss */
.dp-final {
  gap: 18px;
}

.dp-final-emblems {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dp-final-emblems img {
  position: absolute;
  top: 150px;
  width: 130px;
  height: auto;
  opacity: .92;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .5));
}

.dp-final-emblems img:first-child {
  left: 90px;
}

.dp-final-emblems img:last-child {
  right: 90px;
}

.dp-final-cup {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(247, 216, 74, .3));
}

.dp-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.dp-actions .tool {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin: 0;
  padding: 0 22px;
  font-size: 17px;
  text-decoration: none;
}

/* Steuerleiste */
.dp-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 22px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: rgba(8, 22, 39, .82);
}

.dp-progress {
  display: flex;
  gap: 6px;
}

.dp-progress-step {
  position: relative;
  flex: 1;
  height: 6px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, .15);
  cursor: pointer;
}

.dp-progress-step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #f7d84a;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.dp-progress-step.is-done::after,
.demo-promo.is-last .dp-progress-step.is-current::after {
  transform: scaleX(1);
}

.demo-promo:not(.is-last) .dp-progress-step.is-current::after {
  animation: dpProgress var(--dp-step-ms, 5000ms) linear forwards;
}

.demo-promo.is-paused .dp-progress-step.is-current::after {
  animation-play-state: paused;
}

.dp-nav {
  display: flex;
  gap: 8px;
}

.dp-nav .tool {
  min-height: 40px;
  margin: 0;
}

.demo-promo button:focus-visible,
.demo-promo a:focus-visible {
  outline: 3px solid #4cc9f0;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .dp-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Bewegungen: jedes Element bringt seinen Platz in der Reihe (--i) mit. */
.is-active .dp-fade {
  animation: dpFade .6s ease both;
}

.is-active .dp-head .dp-title {
  animation-delay: .12s;
}

.is-active .dp-head .dp-sub {
  animation-delay: .26s;
}

.is-active .dp-rise {
  animation: dpRise .85s cubic-bezier(.2, .8, .2, 1.1) both;
  animation-delay: calc(.2s + var(--i, 0) * .18s);
}

.is-active .dp-fly {
  animation: dpFly .7s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(.35s + var(--i, 0) * .09s);
}

.is-active .dp-roll {
  animation: dpFade .5s ease both;
  animation-delay: calc(.3s + var(--i, 0) * .14s);
}

.is-active .dp-roll .ball-style-preview {
  animation: dpRoll .95s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(.3s + var(--i, 0) * .14s);
}

.is-active .dp-pop {
  animation: dpPop .5s cubic-bezier(.2, 1.4, .4, 1) both;
  animation-delay: calc(.3s + var(--i, 0) * .12s);
}

.is-active .dp-drop {
  animation: dpDrop .7s cubic-bezier(.2, 1.3, .4, 1) both;
  animation-delay: calc(.3s + var(--i, 0) * .12s);
}

.is-active .dp-slide-left {
  animation: dpSlideLeft .7s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(.15s + var(--i, 0) * .1s);
}

.is-active .dp-slide-right {
  animation: dpSlideRight .7s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(.15s + var(--i, 0) * .1s);
}

.is-active .dp-switch {
  animation: dpSwitchTrack .35s ease both;
  animation-delay: calc(1s + var(--i, 0) * .3s);
}

.is-active .dp-switch::after {
  animation: dpSwitchKnob .35s ease both;
  animation-delay: calc(1s + var(--i, 0) * .3s);
}

@keyframes dpFade {
  from { opacity: 0; transform: translateY(12px); }
}

@keyframes dpRise {
  from { opacity: 0; transform: translateY(70px) scale(.8); }
}

@keyframes dpFly {
  from { opacity: 0; transform: translateY(44px) rotate(-3deg) scale(.9); }
}

@keyframes dpRoll {
  from { opacity: 0; transform: translateX(-320px) rotate(-420deg); }
}

@keyframes dpPop {
  from { opacity: 0; transform: scale(.4); }
}

@keyframes dpDrop {
  from { opacity: 0; transform: translateY(-90px); }
}

@keyframes dpSlideLeft {
  from { opacity: 0; transform: translateX(-140px); }
}

@keyframes dpSlideRight {
  from { opacity: 0; transform: translateX(140px); }
}

@keyframes dpSwitchTrack {
  to { background: #f7d84a; }
}

@keyframes dpSwitchKnob {
  to { transform: translateX(24px); background: #1b1400; }
}

@keyframes dpProgress {
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-promo *,
  .demo-promo *::after {
    animation: none !important;
  }

  .demo-promo .dp-switch {
    background: #f7d84a;
  }

  .demo-promo .dp-switch::after {
    transform: translateX(24px);
    background: #1b1400;
  }
}

/* --- Drei Stimmungen je Stadion --------------------------------------------------
   Normal liegt unten, Challenge und Elite blenden nacheinander darüber.
   Jede Kachel startet etwas später (--i), so läuft eine ruhige Welle
   von Tag zu Flutlicht über die Galerie. */

/* math-cup.css setzt „#setup .setup-row-primary“ auf block: gleiche Gewichtung nötig. */
#setup .demo-play .demo-play-actions.setup-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

#setup .demo-play .demo-play-actions .start-game-button {
  flex: 1 1 auto;
  width: auto;
}

.demo-play .demo-play-more {
  flex: 0 0 auto;
  align-self: stretch;
  padding-inline: 22px;
  white-space: nowrap;
}

/* Deutsche Tabellenköpfe sind länger als „3 W / 2 L / 6 pts“. */
.dp-table {
  min-width: 420px;
}

.dp-table-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 14px;
}

.dp-table-row span {
  white-space: nowrap;
}

/* Hinweis auf die festen Beispielaufgaben (29.09.2026). */
.demo-play-head .demo-fixed-tasks {
  justify-self: center;
  max-width: 96ch;
  margin: 6px auto 0;
  padding: 6px 14px;
  border: 1px solid rgba(247, 216, 74, 0.55);
  border-radius: 18px;
  background: rgba(247, 216, 74, 0.14);
  color: #ffeaa0;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

/* Hinweis beim Antippen gesperrter Knöpfe (Game-Design-Test D2). */
.demo-lock-toast {
  position: fixed;
  z-index: 400;
  max-width: min(420px, calc(100vw - 24px));
  padding: 10px 14px;
  border: 1px solid rgba(247, 216, 74, 0.7);
  border-radius: 12px;
  background: rgba(8, 20, 34, 0.95);
  color: #fff6cf;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  animation: demo-toast-in 0.18s ease-out;
}

@keyframes demo-toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Beispielsaison: freundlicher Hinweis statt roter Warnung. */
.demo-season-note {
  border-color: rgba(247, 216, 74, 0.45) !important;
  background: rgba(247, 216, 74, 0.12) !important;
  color: #ffeaa0 !important;
  text-transform: none !important;
}

/* Setup der Vollversion eingeklappt (Game-Design-Test D5). */
#setup .demo-setup-toggle {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 12px 0;
  font-size: 15px;
}

#setup .setup-dashboard[hidden] {
  display: none !important;
}

/* Season-Tour in der Demo (29.09.2026): Einladung immer sichtbar, der Season Mode selbst bleibt Vollversion. */
.season-tour-invite {
  display: flex;
}

.demo-full-features .demo-season-tour-button {
  justify-self: start;
  margin-top: 8px;
  border-color: rgba(255, 210, 63, 0.9);
  background: #ffd23f;
  color: #17324a;
  font-weight: 900;
}
