/* ===========================================================================
   Onboarding (E3): Name in Bubble-Lettern, Themenwahl, Entwurf-Streifen.
   Werte aus dem Kit; die Themenwahl ist Kit-Baustein EL35 (app/kit/themenwahl.css).
   =========================================================================== */

/* #buehne > …: sonst setzt kit/buehne.css das Feld relativ, und es ist nur so
   gross wie sein Inhalt – die grosse Onda mass sich daran und blieb klein
   (06.10.2026). */
#buehne > .ob-feld,
.ob-feld {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 72px 24px 96px;          /* Kopfzeile oben, Onda und Fusszeile unten frei */
}

/* Der Name, bevor und nachdem das Kind ihn nachfaehrt (R4.4.3) */
.ob-name { display: flex; justify-content: center; align-items: flex-end; }
.ob-name[data-nur-text="ja"] {
  font: 700 clamp(40px, 9vw, 84px)/1 var(--onda-font-display);
  color: var(--onda-petrol-deep);
  letter-spacing: .02em;
}

/* Themen: Bild mit Wort darunter (R4.4.12) – im Kit seit 20.11.2026 (EL35,
   app/kit/themenwahl.css). */

/* Wortlaut eines Satzes, der noch nicht eingesprochen ist - Pruefhilfe, kein
   Teil des Produkts (R4.3.3: nichts muss gelesen werden). Verschwindet, sobald
   die Aufnahme im Sprite ist. */
/* #buehne > …: die Buehne setzt ihre Kinder sonst relativ, und der Streifen
   rutschte auf dem Telefon quer unter den Rand (27.09.2026). */
#buehne > .ob-entwurf {
  position: absolute;
  left: 50%;
  top: 60px;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 32px));
  margin: 0;
  padding: 8px 12px;
  border: 1.5px dashed var(--onda-pink-line);
  border-radius: var(--onda-radius-chip);
  background: color-mix(in srgb, var(--onda-white) 88%, transparent);
  font: 500 14px/1.35 var(--onda-font-body);
  color: var(--onda-text-body);
  z-index: 3;
  pointer-events: none;
}
#buehne > .ob-entwurf span {
  display: block;
  font: 600 11px/1 var(--onda-font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--onda-pink-deep);
  margin-bottom: 3px;
}
#buehne > .ob-entwurf[hidden] { display: none; }

:root[data-fall="telefon-quer"] #buehne > .ob-entwurf { top: 48px; font-size: 12px; padding: 5px 10px; }

/* Onda allein in der Mitte: Atmen und Staub stehen im Kit (app/kit/auftritt.css, K13). */

/* Tierwahl (Station tier, 06.10.2026): zwoelf Tiere im weissen Kreis, wie in
   der Profilwahl; danach die Namenskarte des Kindes (.pw-karte aus profilwahl.css). */
.ob-tiere {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 116px));
  gap: 16px;
  justify-content: center;
}
:root[data-fall="telefon-quer"] .ob-tiere { grid-template-columns: repeat(6, minmax(0, 70px)); gap: 10px; }
.ob-tier {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 50%;
  background: var(--onda-white);
  box-shadow: var(--onda-shadow-card);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: pw-kommt .42s cubic-bezier(.3, 1.4, .5, 1) backwards;
  animation-delay: calc(var(--ob-i, 0) * 45ms);
}
.ob-tier img { width: 70%; height: 70%; }
.ob-tier:active { transform: scale(.94); }
.ob-tier[data-gewaehlt="ja"] { border-color: var(--onda-pink); }
.ob-namenskarte { --pw-tier: 132px; width: min(420px, 80%); padding: 22px 20px 20px; gap: 14px; cursor: default; }
:root[data-fall="telefon-quer"] .ob-namenskarte { --pw-tier: 84px; padding: 12px 14px; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .ob-tier { animation: none; } }
