/*
 * Stärken-Fang (Renderer „catch“, js/strength-catch.js).
 * Alle Regeln sind unter .ssb-catch gekapselt. Farben kommen aus css/tokens.css;
 * eigene Variablen tragen das Präfix --ssb-catch-. Bildsprache wie das Stärken-Duell.
 */
.ssb-catch {
  --ssb-catch-primary: var(--accent-color, var(--ss-blue-deep, #356D9F));
  --ssb-catch-blue: var(--ss-blue-deep, #356D9F);
  --ssb-catch-blue-soft: var(--ss-blue-verylight, #EEF5FF);
  --ssb-catch-blue-pale: var(--ss-blue-pale, #D7E8FF);
  --ssb-catch-a: var(--ss-cat-a, #356D9F);
  --ssb-catch-a-soft: var(--ss-cat-a-light, #EEF5FF);
  --ssb-catch-b: var(--ss-cat-b, #E63946);
  --ssb-catch-b-soft: var(--ss-cat-b-light, #FBE7E9);
  --ssb-catch-warm: var(--ss-yellow, #F4A261);
  --ssb-catch-warm-soft: var(--ss-yellow-light, #FFF2E5);
  --ssb-catch-fresh: var(--ss-green, #2A9D8F);
  --ssb-catch-fresh-soft: #E5F5F1;
  --ssb-catch-text: var(--ss-blue-deep, #356D9F);
  --ssb-catch-border: var(--ss-border, #CBD5E1);
  --ssb-catch-surface: #FFFFFF;
  --ssb-catch-radius: 20px;
  --ssb-catch-shadow: 0 10px 30px rgba(31, 52, 84, 0.10);

  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  margin: 8px auto;
  padding: clamp(18px, 4vw, 34px);
  border-radius: var(--ssb-catch-radius);
  background:
    radial-gradient(120% 80% at 0% 0%, var(--ssb-catch-a-soft) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(120% 80% at 100% 100%, var(--ssb-catch-warm-soft) 0%, rgba(255, 255, 255, 0) 55%),
    var(--ssb-catch-surface);
  border: 1px solid var(--ssb-catch-border);
  box-shadow: var(--ssb-catch-shadow);
  color: var(--ssb-catch-text);
  font-size: var(--ss-font-body, 1rem);
  line-height: 1.45;
  text-align: left;
  overflow: hidden;
  scroll-margin-top: 24px;
}

/* Gegen die globale Ergebnisregel, die sonst die Akzentfarbe vererbt. */
.ssb-catch.ssb-catch {
  color: var(--ssb-catch-text);
}

.ssb-catch *,
.ssb-catch *::before,
.ssb-catch *::after {
  box-sizing: border-box;
}

.ssb-catch button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.25;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ssb-catch button:disabled {
  cursor: default;
}

.ssb-catch button:focus-visible,
.ssb-catch .ssb-catch__stage:focus-visible,
.ssb-catch summary:focus-visible {
  outline: 3px solid var(--ssb-catch-warm);
  outline-offset: 3px;
}

.ssb-catch .ssb-catch__sr {
  color: var(--ssb-catch-text);
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Kopf ------------------------------------------------------------------- */

.ssb-catch .ssb-catch__intro {
  position: relative;
  text-align: center;
}

.ssb-catch .ssb-catch__title {
  margin: 6px 0 8px;
  padding: 0;
  font-size: var(--ss-font-h4, 1.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ssb-catch-text);
  outline: none;
}

.ssb-catch .ssb-catch__subtitle {
  max-width: 34em;
  margin: 0 auto 6px;
  padding: 0;
  color: var(--ssb-catch-text);
}

.ssb-catch .ssb-catch__hint,
.ssb-catch .ssb-catch__basis {
  max-width: 34em;
  margin: 14px auto 0;
  padding: 0;
  font-size: 0.88em;
  color: var(--ssb-catch-text);
  text-align: center;
}

.ssb-catch .ssb-catch__basis {
  margin-top: 4px;
  font-weight: 700;
}

.ssb-catch .ssb-catch__notice {
  margin: 18px auto 0;
  padding: 14px 16px;
  max-width: 34em;
  border-radius: 14px;
  background: var(--ssb-catch-warm-soft);
  border: 1px solid var(--ssb-catch-warm);
  color: var(--ssb-catch-text);
  text-align: center;
}

/* Emblem: drei Tropfen fallen in ein Sieb ------------------------------- */

.ssb-catch .ssb-catch__emblem {
  position: relative;
  width: 96px;
  height: 78px;
  margin: 0 auto 4px;
}

.ssb-catch .ssb-catch__emblem-drop {
  position: absolute;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--ssb-catch-a);
  box-shadow: 0 3px 8px rgba(31, 52, 84, 0.18);
  animation: ssb-catch-emblem-fall 2.4s cubic-bezier(.45, 0, .55, 1) infinite;
  animation-delay: calc(var(--ssb-catch-i, 0) * -0.8s);
}

.ssb-catch .ssb-catch__emblem-drop--a { left: 22px; }
.ssb-catch .ssb-catch__emblem-drop--b { left: 42px; background: var(--ssb-catch-b); }
.ssb-catch .ssb-catch__emblem-drop--warm { left: 62px; background: var(--ssb-catch-warm); }

.ssb-catch .ssb-catch__emblem-sieve {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 34px;
  border: 3px solid var(--ssb-catch-blue);
  border-top-width: 4px;
  border-radius: 4px 4px 40px 40px;
  background:
    repeating-linear-gradient(45deg, rgba(53, 109, 159, 0.22) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(-45deg, rgba(53, 109, 159, 0.22) 0 2px, transparent 2px 7px),
    #FFFFFF;
  box-shadow: 0 6px 14px rgba(31, 52, 84, 0.14);
}

.ssb-catch .ssb-catch__emblem-sieve::before,
.ssb-catch .ssb-catch__emblem-sieve::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 12px;
  height: 4px;
  border-radius: 3px;
  background: var(--ssb-catch-blue);
}

.ssb-catch .ssb-catch__emblem-sieve::before { left: -14px; }
.ssb-catch .ssb-catch__emblem-sieve::after { right: -14px; }

.ssb-catch .ssb-catch__emblem--result .ssb-catch__emblem-drop {
  animation: ssb-catch-emblem-settle 0.7s cubic-bezier(.2, .9, .3, 1.3) both;
  animation-delay: calc(var(--ssb-catch-i, 0) * 0.12s);
}

.ssb-catch .ssb-catch__emblem-count {
  position: absolute;
  right: -6px;
  top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ssb-catch-warm) 0%, var(--ssb-catch-b) 100%);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(230, 57, 70, 0.28);
  animation: ssb-catch-pop 0.4s cubic-bezier(.2, .9, .3, 1.4) 0.35s both;
}

/* Startbildschirm: drei Schritte ---------------------------------------- */

.ssb-catch .ssb-catch__steps {
  display: grid;
  gap: 8px;
  max-width: 30em;
  margin: 18px auto 0;
  padding: 0;
  list-style: none;
}

.ssb-catch .ssb-catch__step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--ssb-catch-blue-pale);
  color: var(--ssb-catch-text);
  animation: ssb-catch-rise 0.4s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--ssb-catch-i, 0) * 90ms);
}

.ssb-catch .ssb-catch__step::before {
  content: none;
}

.ssb-catch .ssb-catch__step-no {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ssb-catch-a) 0%, var(--ssb-catch-fresh) 100%);
  color: #FFFFFF;
  font-weight: 900;
}

.ssb-catch .ssb-catch__step-text {
  font-weight: 600;
}

/* Buttons --------------------------------------------------------------- */

.ssb-catch .ssb-catch__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 30px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ssb-catch-a) 0%, var(--ssb-catch-primary) 55%, var(--ssb-catch-fresh) 130%);
  color: #FFFFFF;
  font-size: 1.05em;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(53, 109, 159, 0.30);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ssb-catch .ssb-catch__screen--start .ssb-catch__primary {
  display: flex;
  margin: 20px auto 0;
}

.ssb-catch .ssb-catch__primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 24px rgba(53, 109, 159, 0.36);
  color: #FFFFFF;
}

.ssb-catch .ssb-catch__primary:active {
  transform: translateY(1px) scale(0.99);
}

.ssb-catch .ssb-catch__primary--small {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 0.95em;
}

.ssb-catch .ssb-catch__ghost,
.ssb-catch .ssb-catch__ghost:focus,
.ssb-catch .ssb-catch__ghost:active,
.ssb-catch .ssb-catch__ghost:disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid var(--ssb-catch-blue);
  border-radius: 999px;
  background: var(--ssb-catch-blue-soft);
  color: var(--ssb-catch-blue);
  font-size: 0.95em;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.ssb-catch .ssb-catch__ghost:hover {
  background: var(--ssb-catch-blue-pale);
  color: var(--ssb-catch-blue);
}

.ssb-catch .ssb-catch__ghost:disabled {
  opacity: 0.45;
}

/* Kopfzeile im Spiel ---------------------------------------------------- */

.ssb-catch .ssb-catch__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.ssb-catch .ssb-catch__meta {
  flex: 1 1 auto;
  min-width: 0;
}

.ssb-catch .ssb-catch__progress {
  margin: 0 0 6px;
  padding: 0;
  font-size: 0.85em;
  font-weight: 700;
  color: var(--ssb-catch-text);
}

.ssb-catch .ssb-catch__bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.55);
  overflow: hidden;
}

.ssb-catch .ssb-catch__bar-fill {
  display: block;
  width: 0;
  height: 100%;
  min-width: 10px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ssb-catch-a) 0%, var(--ssb-catch-fresh) 60%, var(--ssb-catch-warm) 100%);
  transition: width 0.45s ease;
}

.ssb-catch .ssb-catch__pause {
  flex: 0 0 auto;
}

.ssb-catch .ssb-catch__pause::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 12px;
  margin-right: 8px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

/* Bühne: Himmel mit Sieb-Rand ------------------------------------------- */

.ssb-catch .ssb-catch__stage {
  position: relative;
  width: 100%;
  height: clamp(300px, 56vh, 440px);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #DCEBFF 0%, #EEF5FF 45%, #FFF6EC 88%, #FFEBD8 100%);
  border: 1px solid var(--ssb-catch-blue-pale);
  box-shadow: inset 0 2px 10px rgba(53, 109, 159, 0.10);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

.ssb-catch .ssb-catch__stage--lively {
  background: linear-gradient(180deg, #CFE3FF 0%, #E6F0FF 40%, #FFEFE0 85%, #FFE2CC 100%);
}

/* Weiche Wolken und funkelnde Punkte im Hintergrund. */
.ssb-catch .ssb-catch__sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60px 26px at 18% 22%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%),
    radial-gradient(90px 34px at 72% 14%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 70%),
    radial-gradient(70px 28px at 52% 44%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 70%),
    radial-gradient(3px 3px at 10% 60%, rgba(244, 162, 97, 0.9), transparent),
    radial-gradient(3px 3px at 86% 52%, rgba(42, 157, 143, 0.8), transparent),
    radial-gradient(2px 2px at 34% 76%, rgba(230, 57, 70, 0.7), transparent),
    radial-gradient(2px 2px at 64% 30%, rgba(53, 109, 159, 0.7), transparent);
  animation: ssb-catch-drift 18s ease-in-out infinite alternate;
}

.ssb-catch .ssb-catch__rim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  z-index: 1;
  pointer-events: none;
  border-top: 3px solid var(--ssb-catch-blue);
  border-radius: 50% 50% 0 0 / 14px 14px 0 0;
  background:
    repeating-linear-gradient(45deg, rgba(53, 109, 159, 0.28) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(-45deg, rgba(53, 109, 159, 0.28) 0 2px, transparent 2px 8px),
    rgba(255, 255, 255, 0.75);
}

.ssb-catch .ssb-catch__stage.is-dripping .ssb-catch__rim {
  animation: ssb-catch-ripple 0.42s ease-out;
}

/* Fallende Stärken ------------------------------------------------------- */

.ssb-catch .ssb-catch__drop,
.ssb-catch .ssb-catch__drop:hover,
.ssb-catch .ssb-catch__drop:focus,
.ssb-catch .ssb-catch__drop:active {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px 9px 12px;
  border: 2px solid var(--ssb-catch-a);
  border-radius: 999px;
  background: linear-gradient(160deg, #FFFFFF 0%, var(--ssb-catch-a-soft) 100%);
  color: var(--ssb-catch-text);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  box-shadow: 0 8px 18px rgba(31, 52, 84, 0.16);
  will-change: transform;
  touch-action: manipulation;
}

.ssb-catch .ssb-catch__drop::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--ssb-catch-a);
}

.ssb-catch .ssb-catch__drop-label {
  overflow-wrap: anywhere;
}

.ssb-catch .ssb-catch__drop--b,
.ssb-catch .ssb-catch__drop--b:hover,
.ssb-catch .ssb-catch__drop--b:focus,
.ssb-catch .ssb-catch__drop--b:active {
  border-color: var(--ssb-catch-b);
  background: linear-gradient(160deg, #FFFFFF 0%, var(--ssb-catch-b-soft) 100%);
  color: var(--ssb-catch-b);
}

.ssb-catch .ssb-catch__drop--b::before { background: var(--ssb-catch-b); }

.ssb-catch .ssb-catch__drop--warm,
.ssb-catch .ssb-catch__drop--warm:hover,
.ssb-catch .ssb-catch__drop--warm:focus,
.ssb-catch .ssb-catch__drop--warm:active {
  border-color: var(--ssb-catch-warm);
  background: linear-gradient(160deg, #FFFFFF 0%, var(--ssb-catch-warm-soft) 100%);
}

.ssb-catch .ssb-catch__drop--warm::before { background: var(--ssb-catch-warm); }

.ssb-catch .ssb-catch__drop--fresh,
.ssb-catch .ssb-catch__drop--fresh:hover,
.ssb-catch .ssb-catch__drop--fresh:focus,
.ssb-catch .ssb-catch__drop--fresh:active {
  border-color: var(--ssb-catch-fresh);
  background: linear-gradient(160deg, #FFFFFF 0%, var(--ssb-catch-fresh-soft) 100%);
}

.ssb-catch .ssb-catch__drop--fresh::before { background: var(--ssb-catch-fresh); }

.ssb-catch .ssb-catch__drop.is-far {
  z-index: 1;
  opacity: 0.86;
  box-shadow: 0 4px 10px rgba(31, 52, 84, 0.10);
}

@media (hover: hover) {
  .ssb-catch .ssb-catch__drop:hover {
    box-shadow: 0 0 0 4px rgba(244, 162, 97, 0.35), 0 10px 22px rgba(31, 52, 84, 0.2);
    opacity: 1;
  }
}

.ssb-catch .ssb-catch__drop-label {
  pointer-events: none;
}

.ssb-catch .ssb-catch__drop.is-blocked .ssb-catch__drop-label,
.ssb-catch .ssb-catch__drop.is-blocked::before {
  animation: ssb-catch-shake 0.4s ease;
}

.ssb-catch .ssb-catch__drop.is-gone {
  pointer-events: none;
  animation: ssb-catch-through 0.42s ease-in forwards;
}

/* Funken und Lob beim Fangen. */
.ssb-catch .ssb-catch__burst {
  position: absolute;
  z-index: 3;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ssb-catch .ssb-catch__spark {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ssb-catch-a);
  animation: ssb-catch-spark 0.6s cubic-bezier(.2, .8, .3, 1) forwards;
}

.ssb-catch .ssb-catch__spark--b { background: var(--ssb-catch-b); }
.ssb-catch .ssb-catch__spark--warm { background: var(--ssb-catch-warm); }
.ssb-catch .ssb-catch__spark--fresh { background: var(--ssb-catch-fresh); }

.ssb-catch .ssb-catch__praise {
  position: absolute;
  left: 0;
  top: -12px;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ssb-catch-fresh) 0%, var(--ssb-catch-a) 100%);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(42, 157, 143, 0.3);
  animation: ssb-catch-praise 0.85s ease-out forwards;
}

/* Overlay: Countdown, Pause, Ende --------------------------------------- */

.ssb-catch .ssb-catch__overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ssb-catch .ssb-catch__overlay[hidden] {
  display: none;
}

.ssb-catch .ssb-catch__overlay--pause {
  background: rgba(238, 245, 255, 0.82);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.ssb-catch .ssb-catch__count {
  display: block;
  font-size: clamp(3.2rem, 14vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--ssb-catch-a);
  background: linear-gradient(135deg, var(--ssb-catch-a) 0%, var(--ssb-catch-fresh) 60%, var(--ssb-catch-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(31, 52, 84, 0.18));
  animation: ssb-catch-count 0.62s cubic-bezier(.2, .9, .3, 1.3) both;
}

.ssb-catch .ssb-catch__count--done {
  font-size: clamp(2.2rem, 9vw, 3.4rem);
}

.ssb-catch .ssb-catch__pausebox {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: min(260px, 100%);
  padding: 20px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid var(--ssb-catch-blue-pale);
  box-shadow: var(--ssb-catch-shadow);
  text-align: center;
  animation: ssb-catch-pop 0.25s cubic-bezier(.2, .9, .3, 1.3) both;
}

.ssb-catch .ssb-catch__pause-title {
  margin: 0 0 4px;
  padding: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ssb-catch-text);
}

.ssb-catch.is-paused .ssb-catch__drop {
  pointer-events: none;
}

/* Hinweis und Sieb ------------------------------------------------------- */

.ssb-catch .ssb-catch__note {
  min-height: 1.4em;
  margin: 10px 0 0;
  padding: 0;
  font-size: 0.9em;
  font-weight: 700;
  color: var(--ssb-catch-b);
  text-align: center;
}

.ssb-catch .ssb-catch__note:empty {
  min-height: 0;
  margin: 0;
}

.ssb-catch .ssb-catch__sieve {
  position: relative;
  margin-top: 12px;
  padding: 12px 14px 18px;
  border: 2px solid var(--ssb-catch-blue-pale);
  border-top: 4px solid var(--ssb-catch-blue);
  border-radius: 6px 6px 34px 34px;
  background:
    repeating-linear-gradient(45deg, rgba(53, 109, 159, 0.05) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(-45deg, rgba(53, 109, 159, 0.05) 0 2px, transparent 2px 12px),
    #FFFFFF;
  box-shadow: 0 8px 20px rgba(31, 52, 84, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ssb-catch .ssb-catch__sieve.is-full {
  border-color: var(--ssb-catch-warm);
  border-top-color: var(--ssb-catch-warm);
  box-shadow: 0 0 0 4px rgba(244, 162, 97, 0.18), 0 8px 20px rgba(31, 52, 84, 0.08);
}

.ssb-catch .ssb-catch__sieve.is-nudged {
  animation: ssb-catch-nudge 0.4s ease;
}

.ssb-catch .ssb-catch__sieve-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ssb-catch .ssb-catch__sieve-title {
  font-weight: 800;
  color: var(--ssb-catch-text);
}

.ssb-catch .ssb-catch__sieve-count {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ssb-catch-blue-soft);
  color: var(--ssb-catch-text);
  font-size: 0.9em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ssb-catch .ssb-catch__sieve.is-full .ssb-catch__sieve-count {
  background: var(--ssb-catch-warm);
  color: #FFFFFF;
}

.ssb-catch .ssb-catch__slots {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
}

.ssb-catch .ssb-catch__slots[data-empty-text]::after {
  content: attr(data-empty-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88em;
  font-weight: 700;
  color: var(--ssb-catch-text);
  opacity: 0.7;
  pointer-events: none;
}

.ssb-catch .ssb-catch__slot-item {
  display: inline-flex;
  max-width: 100%;
}

.ssb-catch .ssb-catch__slot {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 999px;
}

.ssb-catch .ssb-catch__slot--empty {
  width: 74px;
  border: 2px dashed var(--ssb-catch-blue-pale);
  background: rgba(238, 245, 255, 0.6);
}

.ssb-catch .ssb-catch__slots[data-empty-text] .ssb-catch__slot--empty {
  opacity: 0.45;
}

.ssb-catch .ssb-catch__slot--filled,
.ssb-catch .ssb-catch__slot--filled:hover,
.ssb-catch .ssb-catch__slot--filled:focus,
.ssb-catch .ssb-catch__slot--filled:active {
  gap: 8px;
  max-width: 100%;
  padding: 7px 8px 7px 14px;
  border: 2px solid var(--ssb-catch-fresh);
  background: linear-gradient(160deg, #FFFFFF 0%, var(--ssb-catch-fresh-soft) 100%);
  color: var(--ssb-catch-text);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(42, 157, 143, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ssb-catch .ssb-catch__slot-label {
  overflow-wrap: anywhere;
}

.ssb-catch .ssb-catch__slot-x {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ssb-catch-blue-soft);
  color: var(--ssb-catch-text);
  font-size: 1rem;
  line-height: 1;
}

@media (hover: hover) {
  .ssb-catch .ssb-catch__slot--filled:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(42, 157, 143, 0.22);
  }

  .ssb-catch .ssb-catch__slot--filled:hover .ssb-catch__slot-x {
    background: var(--ssb-catch-b);
    color: #FFFFFF;
  }
}

.ssb-catch .ssb-catch__slot--filled.is-new {
  animation: ssb-catch-land 0.5s cubic-bezier(.2, .9, .3, 1.3) both;
}

/* Ergebnis --------------------------------------------------------------- */

.ssb-catch .ssb-catch__confetti {
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 160px;
  overflow: hidden;
  pointer-events: none;
}

.ssb-catch .ssb-catch__flake {
  position: absolute;
  top: -12px;
  left: var(--ssb-catch-x, 50%);
  width: 9px;
  height: 14px;
  border-radius: 3px;
  background: var(--ssb-catch-a);
  opacity: 0;
  animation: ssb-catch-confetti 1.6s cubic-bezier(.3, .6, .4, 1) forwards;
  animation-delay: var(--ssb-catch-d, 0s);
}

.ssb-catch .ssb-catch__flake--b { background: var(--ssb-catch-b); }
.ssb-catch .ssb-catch__flake--warm { background: var(--ssb-catch-warm); border-radius: 50%; width: 10px; height: 10px; }
.ssb-catch .ssb-catch__flake--fresh { background: var(--ssb-catch-fresh); }

.ssb-catch .ssb-catch__chip-hint {
  margin: 18px 0 0;
  padding: 0;
  font-size: 0.9em;
  font-weight: 700;
  color: var(--ssb-catch-text);
  text-align: center;
}

.ssb-catch .ssb-catch__chips {
  margin: 10px 0 0;
}

.ssb-catch .ssb-catch__chips .ai-chip-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.ssb-catch .ssb-catch__chips .staerkensieb-ai-controls:empty {
  display: none;
}

.ssb-catch .ai-chip.ssb-catch__chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 8px 52px 8px 12px;
  border: 2px solid var(--ssb-catch-a);
  border-radius: 14px;
  background: linear-gradient(100deg, var(--ssb-catch-a-soft) 0%, #FFFFFF 70%);
  color: var(--ssb-catch-text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.ssb-catch .ai-chip.ssb-catch__chip::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0 4px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--ssb-catch-a);
}

.ssb-catch .ai-chip.ssb-catch__chip--b {
  border-color: var(--ssb-catch-b);
  background: linear-gradient(100deg, var(--ssb-catch-b-soft) 0%, #FFFFFF 70%);
}

.ssb-catch .ai-chip.ssb-catch__chip--b::before { background: var(--ssb-catch-b); }

.ssb-catch .ai-chip.ssb-catch__chip--warm {
  border-color: var(--ssb-catch-warm);
  background: linear-gradient(100deg, var(--ssb-catch-warm-soft) 0%, #FFFFFF 70%);
}

.ssb-catch .ai-chip.ssb-catch__chip--warm::before { background: var(--ssb-catch-warm); }

.ssb-catch .ai-chip.ssb-catch__chip--fresh {
  border-color: var(--ssb-catch-fresh);
  background: linear-gradient(100deg, var(--ssb-catch-fresh-soft) 0%, #FFFFFF 70%);
}

.ssb-catch .ai-chip.ssb-catch__chip--fresh::before { background: var(--ssb-catch-fresh); }

/* Verpasste Stärken sind zurückhaltender. */
.ssb-catch .ai-chip.ssb-catch__chip--missed {
  min-height: 46px;
  border-width: 1px;
  border-color: var(--ssb-catch-border);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.ssb-catch .ai-chip.ssb-catch__chip--missed::before {
  opacity: 0.55;
}

.ssb-catch .ai-chip.ssb-catch__chip::after {
  content: "+";
  position: absolute;
  right: 12px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  border: 2px solid var(--ssb-catch-primary);
  color: var(--ssb-catch-primary);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

@media (hover: hover) {
  .ssb-catch .ai-chip.ssb-catch__chip:hover {
    color: var(--ssb-catch-text);
    box-shadow: 0 6px 16px rgba(31, 52, 84, 0.12);
    transform: translateY(-1px);
  }
}

.ssb-catch .ai-chip.ssb-catch__chip:active {
  transform: scale(0.99);
}

.ssb-catch .ai-chip.ssb-catch__chip:focus-visible {
  outline: 3px solid var(--ssb-catch-warm);
  outline-offset: 3px;
}

.ssb-catch .ai-chip.ssb-catch__chip.ai-chip--applied,
.ssb-catch .ai-chip.ssb-catch__chip.ai-chip--applied:hover {
  border-color: var(--ssb-catch-fresh);
  background: linear-gradient(100deg, var(--ssb-catch-fresh-soft) 0%, #FFFFFF 75%);
  color: var(--ssb-catch-text);
}

.ssb-catch .ai-chip.ssb-catch__chip.ai-chip--applied::after {
  content: "\2713";
  border-color: var(--ssb-catch-fresh);
  background: var(--ssb-catch-fresh);
  color: #FFFFFF;
}

.ssb-catch .ssb-catch__screen--result.is-celebrating .ai-chip.ssb-catch__chip--caught,
.ssb-catch .ssb-catch__screen--result.is-celebrating .ssb-catch__list-item {
  animation: ssb-catch-rise 0.4s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(0.3s + var(--ssb-catch-i, 0) * 70ms);
}

.ssb-catch .ssb-catch__list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ssb-catch .ssb-catch__list-item {
  margin: 0;
  padding: 12px 14px;
  border: 2px solid var(--ssb-catch-fresh);
  border-radius: 14px;
  background: linear-gradient(100deg, var(--ssb-catch-fresh-soft) 0%, #FFFFFF 70%);
  font-weight: 800;
}

.ssb-catch .ssb-catch__list--missed .ssb-catch__list-item {
  border: 1px solid var(--ssb-catch-border);
  background: #FFFFFF;
  font-weight: 700;
}

.ssb-catch .ssb-catch__missed {
  margin-top: 20px;
  border: 1px solid var(--ssb-catch-blue-pale);
  border-radius: 16px;
  background: rgba(238, 245, 255, 0.55);
}

.ssb-catch .ssb-catch__missed-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-weight: 800;
  color: var(--ssb-catch-text);
  cursor: pointer;
  list-style: none;
}

.ssb-catch .ssb-catch__missed-title::-webkit-details-marker {
  display: none;
}

.ssb-catch .ssb-catch__missed-title::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.ssb-catch .ssb-catch__missed[open] > .ssb-catch__missed-title::before {
  transform: rotate(45deg);
}

.ssb-catch .ssb-catch__missed-body {
  padding: 0 14px 14px;
}

.ssb-catch .ssb-catch__missed-body .ssb-catch__chip-hint {
  margin-top: 0;
  font-weight: 600;
}

.ssb-catch .ssb-catch__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

/* Schmale Bildschirme ---------------------------------------------------- */

@media (max-width: 599px) {
  .ssb-catch {
    border-radius: 16px;
    padding: 16px 12px;
  }

  .ssb-catch .ssb-catch__stage {
    height: clamp(300px, 58vh, 420px);
  }

  .ssb-catch .ssb-catch__drop {
    font-size: 0.92rem;
    padding: 8px 14px 8px 10px;
  }

  .ssb-catch .ssb-catch__pause {
    padding: 8px 14px;
  }

  .ssb-catch .ssb-catch__actions > button {
    flex: 1 1 auto;
  }

  .ssb-catch .ssb-catch__screen--start .ssb-catch__primary {
    width: 100%;
  }
}

/* Animationen ------------------------------------------------------------ */

@keyframes ssb-catch-emblem-fall {
  0% { opacity: 0; transform: translateY(-6px) rotate(-45deg); }
  15% { opacity: 1; }
  70% { opacity: 1; transform: translateY(34px) rotate(-45deg); }
  100% { opacity: 0; transform: translateY(40px) rotate(-45deg) scale(0.6); }
}

@keyframes ssb-catch-emblem-settle {
  from { opacity: 0; transform: translateY(-14px) rotate(-45deg); }
  to { opacity: 1; transform: translateY(36px) rotate(-45deg); }
}

@keyframes ssb-catch-pop {
  0% { opacity: 0; transform: scale(0.4); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes ssb-catch-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes ssb-catch-drift {
  from { background-position: 0 0; }
  to { background-position: 40px 6px; }
}

@keyframes ssb-catch-count {
  0% { opacity: 0; transform: scale(0.3); }
  60% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes ssb-catch-spark {
  from { opacity: 1; transform: rotate(var(--ssb-catch-a, 0deg)) translateX(0) scale(1); }
  to { opacity: 0; transform: rotate(var(--ssb-catch-a, 0deg)) translateX(46px) scale(0.3); }
}

@keyframes ssb-catch-praise {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(0.7); }
  20% { opacity: 1; transform: translate(-50%, -6px) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, -40px) scale(1); }
}

@keyframes ssb-catch-shake {
  0%, 100% { translate: 0 0; }
  20% { translate: -5px 0; }
  40% { translate: 5px 0; }
  60% { translate: -3px 0; }
  80% { translate: 3px 0; }
}

@keyframes ssb-catch-nudge {
  0%, 100% { transform: none; }
  30% { transform: translateY(-3px); }
  60% { transform: translateY(2px); }
}

@keyframes ssb-catch-through {
  to { opacity: 0; filter: blur(2px); }
}

@keyframes ssb-catch-ripple {
  0% { border-top-color: var(--ssb-catch-blue); }
  40% { border-top-color: var(--ssb-catch-warm); }
  100% { border-top-color: var(--ssb-catch-blue); }
}

@keyframes ssb-catch-land {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes ssb-catch-confetti {
  0% { opacity: 0; transform: translateY(0) rotate(0deg); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translateY(150px) rotate(320deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ssb-catch *,
  .ssb-catch *::before,
  .ssb-catch *::after {
    animation: none !important;
    transition: none !important;
  }

  .ssb-catch .ssb-catch__emblem-drop {
    transform: translateY(12px) rotate(-45deg);
  }
}
