/* Ballon-Duell (Claude, 28.09.2026). Grundlage: assets/basis.css der Rechen-Tafeln. */

:root {
  --team-0: #e11d48;
  --team-0-fill: #fb7185;
  --team-0-tint: #fff1f4;
  --team-1: #2563eb;
  --team-1-fill: #60a5fa;
  --team-1-tint: #eff6ff;
  --sky-top: #e3f1ff;
  --sky-bottom: #fbfdff;
}

.app { grid-template-rows: auto minmax(0, 1fr); }

.title-ballons { display: flex; width: auto; gap: 0; }
.title-ballons svg { width: clamp(22px, 3.6vh, 30px); height: auto; }
.title-ballons svg + svg { margin-left: -6px; transform: translateY(4px) rotate(8deg); }

.team-punkt {
  flex: none;
  width: 16px;
  height: 16px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--team);
}

/* ---------- Spielfläche: Feld links, Riesenballons, Feld rechts ---------- */

.duell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 32%) minmax(0, 1fr);
  grid-template-areas: "links arena rechts";
  gap: var(--gap);
  min-width: 0;
  min-height: 0;
}

.feld[data-feld="0"] { grid-area: links; }
.feld[data-feld="1"] { grid-area: rechts; }
.arena { grid-area: arena; }

.feld {
  --c: var(--team);
  --tint: var(--team-tint);
  grid-template-rows: auto auto minmax(0, 1fr);
}

.feld .card-title { color: var(--team); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 11px 0 7px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.stat svg { width: 22px; height: 22px; }
.stat b { font-weight: 700; }
.stat-ok { --art-color: var(--ok); }
.stat-bad { --art-color: var(--warn); }
.stat.is-bump { animation: pop .25s ease-out; }

/* Aufgabe oben im Feld: groß, damit die Klasse mitlesen kann */
.aufgabe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .12em .28em;
  min-height: 1.5em;
  margin: 0;
  padding: .12em .3em 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, min(7.2vh, 4.4vw), 4.4rem);
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.aufgabe .zeichen { color: var(--muted); font-weight: 700; }

.luecke {
  display: inline-grid;
  place-items: center;
  min-width: 1.5em;
  height: 1.12em;
  padding: .06em .18em 0;
  border: 3px dashed var(--team);
  border-radius: 14px;
  background: var(--team-tint);
  color: var(--team);
  line-height: 1;
}
.aufgabe.is-right .luecke { border-style: solid; border-color: var(--ok); background: var(--ok-soft); color: #11632f; animation: pop .2s ease-out; }
.aufgabe.is-missed .luecke { border-style: solid; border-color: var(--hint); background: var(--hint-soft); color: #92400e; }
.aufgabe.is-wrong { animation: shake .42s; }
.aufgabe.is-wrong .luecke { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }

/* Himmel, in dem die Ballons aufsteigen */
.himmel {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-radius: 16px;
  background:
    radial-gradient(60px 22px at 18% 30%, rgba(255, 255, 255, .95) 60%, transparent 62%),
    radial-gradient(44px 18px at 25% 27%, rgba(255, 255, 255, .95) 60%, transparent 62%),
    radial-gradient(70px 24px at 78% 62%, rgba(255, 255, 255, .9) 60%, transparent 62%),
    radial-gradient(46px 18px at 70% 59%, rgba(255, 255, 255, .9) 60%, transparent 62%),
    linear-gradient(var(--sky-top), var(--sky-bottom));
  touch-action: none;
  --bw: 96px;
}

.ballon {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--bw);
  height: calc(var(--bw) * 1.5);
  padding: 0;
  border: 0;
  background: none;
  color: var(--b);
  will-change: transform;
  touch-action: none;
}
.ballon svg { width: 100%; height: 100%; overflow: visible; transition: transform .16s ease-out, opacity .16s ease-out; }
.ballon b {
  position: absolute;
  top: 12%;
  left: 6%;
  right: 6%;
  display: grid;
  place-items: center;
  height: 50%;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: calc(var(--bw) * var(--fs, .4));
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transform: translateY(.06em);
  pointer-events: none;
}
.ballon:focus-visible { outline: none; }
.ballon:focus-visible svg { filter: drop-shadow(0 0 0 #2563eb) drop-shadow(0 0 4px #2563eb); }
.ballon.is-weg { pointer-events: none; }
.ballon.is-weg svg { transform: scale(1.3); opacity: 0; }
.ballon.is-weg b { opacity: 0; transition: opacity .1s; }
.ballon.is-daneben { pointer-events: none; }
.ballon.is-daneben svg { animation: pfff .4s ease-in forwards; }
.ballon.is-daneben b { opacity: 0; transition: opacity .15s; }
.ballon.is-flucht { pointer-events: none; opacity: .5; transition: opacity .4s; }

@keyframes pfff {
  0% { transform: none; }
  30% { transform: rotate(-14deg) scale(.85, .95); }
  60% { transform: translateY(-20%) rotate(18deg) scale(.55); opacity: .9; }
  100% { transform: translateY(-50%) rotate(-30deg) scale(.15); opacity: 0; }
}

/* ---------- Riesenballons in der Mitte ---------- */

.arena {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 4px;
}
.arena .card-head { justify-content: center; }
.arena .card-title { font-size: 1.25rem; }

.riesen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-height: 0;
}

.riese {
  display: grid;
  grid-template-rows: minmax(0, 1fr) clamp(18px, 7%, 40px) auto;
  justify-items: center;
  min-width: 0;
  min-height: 0;
}

.riese-platz { position: relative; width: 100%; height: 100%; min-height: 0; transform-origin: 50% 100%; }

.riese-wackel {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
}

.riese-wackel svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--fill);
  transform: scale(var(--s, .7));
  transform-origin: 50% 100%;
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), opacity .15s;
}

.schnur { width: 20px; height: 100%; }

.riese-luft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 2px 0 0;
  padding: 3px 12px 2px 8px;
  border-radius: 999px;
  background: var(--soft);
  font-weight: 600;
  white-space: nowrap;
}
.riese-luft span:not(.team-punkt) { overflow: hidden; text-overflow: ellipsis; }
.riese-luft b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; transform: translateY(.08em); }

/* kurz vor dem Platzen: zittert und glänzt dünner */
.riese.is-prall .riese-wackel { animation: zittern .28s ease-in-out infinite; }
.riese.is-prall svg { filter: saturate(.75) brightness(1.08); }
.riese.is-kritisch .riese-wackel { animation-duration: .16s; }
/* Solo: die Größe folgt der Luft laufend, deshalb weicher und ohne Nachfedern */
.is-solo .riese-wackel svg { transition: transform .35s ease-out, opacity .15s; }
.riese.is-leer .riese-wackel { animation: schlaff 1.1s ease-in-out infinite; }
.riese.is-leer .riese-wackel svg { filter: saturate(.55) brightness(1.05); }

.riese.is-geplatzt svg { transform: scale(calc(var(--s, .7) * 1.25)); opacity: 0; transition: transform .12s ease-out, opacity .1s .08s; }
.riese.is-geplatzt .riese-wackel,
.riese.is-schlapp .riese-wackel { animation: none; }
.riese.is-schlapp .riese-wackel svg { opacity: 0; transition: none; }

/* Nach dem Platzen bleibt der Knoten mit Gummifetzen an der Schnur */
.riese-rest {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 34%;
  max-width: 96px;
  height: auto;
  color: var(--fill);
  opacity: 0;
  transform: translateX(-50%) scale(.2);
  transform-origin: 50% 100%;
  pointer-events: none;
}
.riese.is-geplatzt .riese-rest { opacity: 1; transform: translateX(-50%) scale(1); transition: transform .35s .12s cubic-bezier(.34, 1.56, .64, 1), opacity .1s .12s; }

/* „noch 3“: wie viele Luftstöße bis zum Platzen fehlen */
.riese-noch {
  position: absolute;
  z-index: 2;
  top: 2%;
  left: 50%;
  padding: .16em .55em .02em;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--warn);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.4vh, 1.9rem);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 0 var(--ink);
  transform: translateX(-50%);
  animation: noch .7s ease-in-out infinite alternate;
  pointer-events: none;
}
.riese.is-kritisch .riese-noch { background: var(--warn); color: #fff; }

@keyframes noch {
  from { transform: translateX(-50%) scale(1); }
  to { transform: translateX(-50%) scale(1.12) rotate(-2deg); }
}
@keyframes schlaff {
  0%, 100% { transform: rotate(-3deg) scale(1, .96); }
  50% { transform: rotate(3deg) scale(.97, 1); }
}

@keyframes zittern {
  0%, 100% { transform: rotate(-1.4deg); }
  50% { transform: rotate(1.4deg); }
}

/* Waage: Striche von der Mitte nach außen, gefüllt auf der Seite des dickeren Ballons */
.waage {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 4px;
}
.waage-seite { display: flex; flex: 1; gap: 2px; height: 100%; align-items: center; }
.waage-links { flex-direction: row-reverse; }
.waage-seite i {
  flex: 1;
  height: 12px;
  min-width: 2px;
  border-radius: 4px;
  background: var(--line);
  transition: background .3s, height .3s;
}
.waage-seite i:last-child { height: 20px; border-radius: 6px; background: #d4d8e2; }
.waage-links i.is-voll { background: var(--team-0-fill); height: 16px; }
.waage-rechts i.is-voll { background: var(--team-1-fill); height: 16px; }
.waage-seite i.is-voll:last-child { height: 22px; }
.waage-mitte { flex: none; width: 4px; height: 26px; border-radius: 2px; background: var(--ink); }

.waage-text {
  min-height: 2.5em;
  margin: 0;
  padding: 0 6px;
  color: var(--muted);
  font-size: clamp(.85rem, 2vh, 1.05rem);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}
.waage-text b { color: var(--ink); font-weight: 700; }
.waage-text.is-gefahr { color: var(--warn); font-family: var(--font-display); font-size: clamp(1.05rem, 2.8vh, 1.45rem); font-weight: 800; }
.waage-text.is-gefahr b { color: inherit; }

/* Solo: Luftanzeige statt Waage, füllt sich bis „Peng!“ */
.luftbalken-zeile { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.luftbalken {
  --n: 13;
  --f: 0;
  position: relative;
  flex: 1;
  height: 26px;
  overflow: hidden;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}
.luftbalken-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--f) * 100%);
  background: var(--team-0-fill);
  transition: width .3s linear;
}
.luftbalken::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--n) - 2px), rgba(28, 34, 48, .28) calc(100% / var(--n) - 2px) calc(100% / var(--n)));
}
.luftbalken-peng { flex: none; color: var(--rose); font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; line-height: 1; transform: rotate(-6deg) translateY(.1em); }

/* ---------- Effekte ---------- */

.puff,
.fetzen {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  pointer-events: none;
}
.puff {
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--pc, #fff);
}
.puff.puff-gross {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-width: 3px;
  box-shadow: inset -5px -6px 0 rgba(28, 34, 48, .12), inset 5px 5px 0 rgba(255, 255, 255, .5);
}
.puff.puff-leck {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid #94a3b8;
  background: #fff;
}
.fetzen {
  width: 14px;
  height: 9px;
  margin: -5px 0 0 -7px;
  border: 2px solid var(--ink);
  border-radius: 40% 60% 30% 70%;
  background: var(--pc, #fff);
}
.peng {
  position: fixed;
  z-index: 55;
  top: 0;
  left: 0;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 22vh, 12rem);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  paint-order: stroke fill;
  -webkit-text-stroke: 12px var(--ink);
  text-shadow: 0 10px 0 var(--ink);
  transform: translate(-50%, -50%);
}

/* Luftstrom-Bogen mit Pfeilspitze zwischen den Ballons */
.bahn { position: fixed; z-index: 49; top: 0; left: 0; width: 100vw; height: 100vh; overflow: visible; pointer-events: none; }
.bahn-rand, .bahn-spur { fill: none; stroke-linecap: round; }
.bahn-rand { stroke: var(--ink); stroke-width: 17; }
.bahn-spur { stroke: var(--pc); stroke-width: 10; }
.bahn-rand.is-duenn { stroke-width: 11; }
.bahn-spur.is-duenn { stroke-width: 6; }
.bahn-pfeil { fill: var(--pc); stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; }

/* +1 / −1 über dem Riesenballon */
.luft-zahl {
  position: fixed;
  z-index: 56;
  top: 0;
  left: 0;
  margin: 0;
  color: var(--pc);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vh, 5rem);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  paint-order: stroke fill;
  -webkit-text-stroke: 8px var(--ink);
}

.welle {
  position: fixed;
  z-index: 54;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border: 7px solid var(--pc);
  border-radius: 50%;
  pointer-events: none;
}
.blitz { position: fixed; z-index: 53; inset: 0; background: #fff; pointer-events: none; }
.flieger { position: fixed; z-index: 52; top: 0; left: 0; color: var(--team-0-fill); pointer-events: none; }
.flieger svg { width: 100%; height: 100%; overflow: visible; }

/* ---------- Start, Pause, Ende ---------- */

.schleier {
  position: absolute;
  z-index: 30;
  inset: calc(var(--gap) * -.5);
  display: grid;
  place-items: center;
  padding: var(--gap);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(244, 245, 249, .62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.schleier.is-offen-nur-countdown { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }

.tafel-karte {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(760px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 26px clamp(18px, 3vw, 34px) 24px;
  border: 2px solid transparent;
  border-image: var(--frame) 34 fill / 24px / 0 stretch;
  border-radius: 24px;
  box-shadow: 0 24px 60px -24px rgba(20, 27, 45, .45);
  text-align: center;
  animation: slide .22s ease-out;
}

.karte-titel {
  margin: 0;
  color: var(--rose);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vh, 3.6rem);
  font-weight: 800;
  line-height: 1;
  text-wrap: balance;
}
.karte-lead { max-width: 52ch; margin: 0; color: var(--ink); font-size: clamp(1rem, 2.3vh, 1.2rem); line-height: 1.4; text-wrap: balance; }
.karte-peng { margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(2.6rem, 9vh, 4.6rem); font-weight: 800; line-height: 1; paint-order: stroke fill; -webkit-text-stroke: 7px var(--ink); transform: rotate(-4deg); }
.karte-stats { margin: 0; color: var(--muted); font-size: 1rem; font-weight: 500; line-height: 1.5; }
.karte-stats b { color: var(--ink); font-weight: 700; }
.sieger { color: var(--sieger, var(--rose)); }

.regeln {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.regel {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 14px 12px 12px;
  border: 2px solid transparent;
  border-image: var(--frame-soft) 34 fill / 20px / 0 stretch;
  font-size: clamp(.92rem, 2vh, 1.05rem);
  line-height: 1.35;
}
.regel p { margin: 0; }
.regel b { display: block; margin-bottom: 2px; font-family: var(--font-display); font-size: 1.2em; font-weight: 800; }
.regel-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; }
.regel-icon svg { width: 30px; height: 30px; }
.regel-ok .regel-icon { background: var(--ok-soft); --art-color: var(--ok); }
.regel-bad .regel-icon { background: var(--warn-soft); --art-color: var(--warn); }
.regel-peng .regel-icon { background: var(--hint-soft); --art-color: var(--hint); }

.los { min-width: 220px; font-size: 1.25rem; }

/* Spielart oben auf der Startkarte */
.modus-wahl button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px 0 14px; font-size: 1.1rem; }
.mini-ballons { display: inline-flex; }
.mini-ballons svg { width: 18px; height: 27px; }
.mini-ballons svg + svg { margin-left: -5px; transform: translateY(3px) rotate(8deg); }
.menu-seg .mini-ballons { display: none; }
.karte-lead b { font-weight: 700; }
.pause-karte { width: auto; min-width: 280px; }

.countdown {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vh, 11rem);
  font-weight: 800;
  line-height: 1;
  paint-order: stroke fill;
  -webkit-text-stroke: 10px var(--ink);
  animation: tick .6s ease-out;
}

/* Rolltor wie im Blitzblick (Alex, 29.09.2026): 3 – 2 – 1 – Los! steht auf dem Tor, dann rollt es hoch.
   Der Schleier schneidet es ab, damit es oben nicht über den Kopf rollt. */
.schleier.is-offen-nur-countdown { overflow: hidden; padding: 0; }
.rolltor {
  --slat: clamp(22px, 4.5vh, 38px);
  --rail: clamp(14px, 2.8vh, 24px);
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  border: 2px solid transparent;
  border-image: var(--frame-soft) 34 / 24px / 0 stretch;
  border-radius: calc(var(--radius) + 4px);
  /* Rolltor: leicht unruhige Lamellen (Kachel 200 × 30, auf Lamellenhöhe gestaucht) */
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='30' viewBox='0 0 200 30' preserveAspectRatio='none'%3E%3Crect width='200' height='30' fill='%23eef1f6'/%3E%3Cpath d='M0 5Q50 4.2 100 5.1T200 5' fill='none' stroke='%23fafbfd' stroke-width='3.2'/%3E%3Cpath d='M0 26.4Q50 25.6 100 26.7T200 26.4' fill='none' stroke='%23c6cddb' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M0 28.9Q50 28.4 100 29.1T200 28.9' fill='none' stroke='%23ffffff' stroke-width='1.3'/%3E%3C/svg%3E") 0 0 / 200px var(--slat) repeat;
  transform-origin: 50% 100%;
}

/* Endleiste mit Griff */
.rolltor::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--rail);
  border-top: 2px solid #b9c0ce;
  border-radius: 0 0 calc(var(--radius) + 2px) calc(var(--radius) + 2px);
  background: linear-gradient(#e6e9f0, #cfd5e0);
}
.rolltor::before {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: calc(var(--rail) * .3);
  left: 50%;
  width: clamp(70px, 10vw, 150px);
  height: calc(var(--rail) * .38);
  border-radius: 999px;
  background: #a3abbc;
  transform: translateX(-50%);
}

/* Fällt wie ein Rolltor: beschleunigt, schlägt nach 250 ms auf, federt zweimal nach */
.rolltor.is-rolling { animation: roll-down .4s both; will-change: transform; }
.rolltor.is-opening { animation: roll-up .5s both; pointer-events: none; will-change: transform; }
/* Ziffern auf dem Tor in den Farben des Blitz-Countdowns */
.rolltor .countdown { color: #3b82f6; -webkit-text-stroke: 0; }
.rolltor .countdown[data-count="2"] { color: #f59e0b; }
.rolltor .countdown[data-count="1"] { color: #e11d48; }
.rolltor .countdown[data-count="Los!"] { color: #16a34a; }

/* ---------- Mannschaftsnamen im Menü ---------- */

.team-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  padding: 0 4px;
}
.team-input input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  font-weight: 600;
}
.team-input input:focus-visible { border-color: #2563eb; outline: none; box-shadow: 0 0 0 3px #bfdbfe; }
.menu-gap-top { margin-top: 12px; }

/* ---------- Solo: ein Feld, rechts der Riesenballon ---------- */

.duell.is-solo {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 34%);
  grid-template-areas: "links arena";
}
.is-solo .feld[data-feld="1"],
.is-solo .riese[data-riese="1"],
.is-solo .waage { display: none; }
.is-solo .riesen { grid-template-columns: minmax(0, 1fr); }

/* ---------- Hochformat (Tablet hochkant): Riesenballons oben, Felder nebeneinander ---------- */

@media (max-aspect-ratio: 1/1) {
  .duell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1.35fr);
    grid-template-areas: "arena arena" "links rechts";
  }
  .riesen { grid-template-columns: repeat(2, minmax(0, 150px)); justify-content: center; gap: 12%; }
  .duell.is-solo {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-areas: "arena" "links";
  }
  .is-solo .riesen { grid-template-columns: minmax(0, 230px); }
  .aufgabe { font-size: clamp(1.6rem, min(4.6vh, 6.4vw), 3.4rem); }
  .regeln { grid-template-columns: minmax(0, 1fr); }
  .regel { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; text-align: left; }
}

/* Sechs Knöpfe rechts: Beschriftungen früher ausblenden als in basis.css, sonst wird der Zahlenraum abgeschnitten */
@media (max-width: 1200px) {
  .chip-btn.has-label { width: 46px; padding: 0; }
  .chip-label { display: none; }
}

@media (max-width: 700px) {
  .stat { height: 30px; padding: 0 8px 0 5px; font-size: .95rem; }
  .feld .card-head { flex-wrap: wrap; }
  .feld .card-tools { gap: 4px; }
  .regeln { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .feld .card-tools { display: none; }
  .riese-luft { padding: 2px 8px 1px 6px; font-size: .85rem; }
}

@keyframes roll-down {
  0% { transform: translateY(-102%); animation-timing-function: cubic-bezier(.11, 0, .5, 0); }
  62.5% { transform: scaleY(.985); animation-timing-function: cubic-bezier(.5, 1, .89, 1); }
  75% { transform: translateY(-4%); animation-timing-function: cubic-bezier(.11, 0, .5, 0); }
  87.5% { transform: scaleY(.995); animation-timing-function: cubic-bezier(.5, 1, .89, 1); }
  93.5% { transform: translateY(-1%); animation-timing-function: cubic-bezier(.11, 0, .5, 0); }
  100% { transform: none; }
}
@keyframes roll-up {
  0% { transform: none; animation-timing-function: cubic-bezier(.3, 0, .6, 1); }
  14% { transform: translateY(1.5%); animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
  100% { transform: translateY(-102%); }
}
