.stopptanz-bild { display:flex; align-items:center; justify-content:center; gap:clamp(15px,4vw,55px); height:min(28vh,240px); color:#ffe39a; font-size:clamp(2rem,6vw,5rem); }
.stopptanz-flocke { display:inline-block; color:#b8e6ff; font-size:clamp(5rem,12vw,10rem); transform-origin:center; }
.stopptanz-wahl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.stopptanz .knopf:disabled { opacity:.5; cursor:default; }
.stopptanz-status { min-height:1.5em; font-weight:700; }
.stopptanz .knopf { min-width:120px; min-height:96px; }
@media (prefers-reduced-motion:no-preference) {
  body:not(.bf-cvi):not(.bf-bewegung-wenig):not(.bf-ruhig) .stopptanz-laeuft .stopptanz-flocke { animation:stopptanz-wiegen 3s ease-in-out infinite alternate; }
}
@keyframes stopptanz-wiegen { from { transform:rotate(-12deg); } to { transform:rotate(12deg); } }
@media (max-width:600px) { .stopptanz-wahl { grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; } .stopptanz-wahl .knopf { min-width:120px; min-height:96px; padding:8px; overflow-wrap:anywhere; } }
/* Niedrig: Szene etwas kleiner, Knöpfe bleiben ≥ 120 × 96 */
@media (max-height:420px) {
  .stopptanz-bild { height:auto; }
  .stopptanz-flocke { font-size:3rem; }
  .stopptanz p { margin-block:4px; }
  .stopptanz .knopf { min-width:120px; min-height:96px; padding:6px; }
  .stopptanz-fuss { margin-top:4px; }
  .stopptanz-wahl { grid-template-columns:repeat(3,minmax(120px,1fr)); }
}

/* Tanzfläche (13.11.2026): drei Figuren tanzen im Schnee, bei „Stopp!“ frieren sie ein. */
.stopptanz-bild { height:auto; display:block; margin:6px auto 2px; }
.stopptanz-bild svg { display:block; width:auto; max-width:100%; height:min(48vh, 520px); margin:0 auto; border-radius:22px; box-shadow:0 12px 30px #0008, inset 0 0 0 2px #ffffff22; }
.stopptanz-taenzer { transform-box:fill-box; transform-origin:50% 100%; }
.stopptanz-eis { opacity:0; transition:opacity .3s; }
.stopptanz-pause .stopptanz-eis { opacity:1; }
.stopptanz-runde { margin: 0; color: #f6d592; font-weight: 800; }
.stopptanz-pause .stopptanz-status { color: #ffe9a8; font-weight: 700; }
.stopptanz-pause .stopptanz-taenzer { filter:saturate(.55) brightness(1.08); }
@media (prefers-reduced-motion:no-preference) {
  body:not(.bf-cvi):not(.bf-bewegung-wenig):not(.bf-ruhig):not(.christmas-ruhig) .stopptanz-laeuft .stopptanz-t1 { animation:stopptanz-huepfen .9s ease-in-out infinite alternate; }
  body:not(.bf-cvi):not(.bf-bewegung-wenig):not(.bf-ruhig):not(.christmas-ruhig) .stopptanz-laeuft .stopptanz-t2 { animation:stopptanz-wippen 1.1s ease-in-out infinite alternate; }
  body:not(.bf-cvi):not(.bf-bewegung-wenig):not(.bf-ruhig):not(.christmas-ruhig) .stopptanz-laeuft .stopptanz-t3 { animation:stopptanz-huepfen 1s ease-in-out .3s infinite alternate; }
  body:not(.bf-cvi):not(.bf-bewegung-wenig):not(.bf-ruhig):not(.christmas-ruhig) .stopptanz-laeuft .stopptanz-flocken { animation:stopptanz-schnee 6s linear infinite; }
}
@keyframes stopptanz-huepfen { from { transform:translateY(0) rotate(-6deg); } to { transform:translateY(-16px) rotate(6deg); } }
@keyframes stopptanz-wippen { from { transform:rotate(-12deg); } to { transform:rotate(12deg) translateY(-6px); } }
@keyframes stopptanz-schnee { from { transform:translateY(0); } to { transform:translateY(60px); } }
@media (max-height:650px) { .stopptanz-bild svg { height:min(40vh,340px); } }
body.bf-cvi .stopptanz-bild svg { box-shadow:none; outline:3px solid var(--bf-cvi-farbe,#ffd400); }

/* Die Tanzfläche soll sichtbar sein; untere Bedienleiste bleibt frei. */
#app .stopptanz .stopptanz-bild svg svg {width:130px;height:130px!important;max-width:none;margin:0;border-radius:0;box-shadow:none}
@media (min-width:1200px) and (min-height:700px) {
  #app > section.stopptanz > :is(h1,p,.stopptanz-bild,.stopptanz-wahl) {max-width:min(92vw,1500px)}
  #app .stopptanz .stopptanz-bild > svg {height:min(46vh,480px)!important}
}
@media (min-width:850px) and (min-height:451px) and (max-height:650px) {
  #app .stopptanz .stopptanz-bild > svg {height:min(36vh,280px)!important}
}

/* ------------------------------------------------------------------ 3D Vollbild */
.stopptanz.stopptanz-3d, .stopptanz.stopptanz-laedt {
  position: fixed; inset: 0; max-width: none; margin: 0; overflow: hidden;
  display: block; box-sizing: border-box;
  --stopptanz-leiste: calc(var(--zurueck-h, 112px) + var(--knopf-min-h, 96px) + 24px);
  background: #0d2246; color: var(--text, #fbf7ee); padding: 0;
}
.stopptanz-3d > h1, .stopptanz-laedt > h1,
.stopptanz-3d > p:not(.stopptanz-status):not(.stopptanz-lied),
.stopptanz-laedt > p:not(.stopptanz-status):not(.stopptanz-lied) {
  position: absolute; z-index: 2; left: var(--links, 10px); right: auto;
  max-width: min(42rem, 70vw); pointer-events: none; text-shadow: 0 2px 8px #000c; margin: 0;
}
@media (max-height: 700px) {
  .stopptanz-3d > p:not(.stopptanz-status):not(.stopptanz-lied),
  .stopptanz-laedt > p:not(.stopptanz-status):not(.stopptanz-lied) { display: none; }
}
.stopptanz-3d > h1, .stopptanz-laedt > h1 { top: var(--oben, 10px); }
.stopptanz-3d > p:not(.stopptanz-status):not(.stopptanz-lied),
.stopptanz-laedt > p:not(.stopptanz-status):not(.stopptanz-lied) {
  top: calc(var(--s-titel, 32px) + var(--oben, 10px) + 4px); font-size: var(--s-text, 16px);
}
.stopptanz-3d .stopptanz-bild { display: none; }
.stopptanz-3d .stopptanz-status, .stopptanz-laedt .stopptanz-status {
  position: absolute; z-index: 2; left: var(--links, 10px); right: auto;
  bottom: calc(var(--stopptanz-leiste) + var(--unten, 10px) + 8px);
  top: auto; width: max-content; max-width: min(90vw, 36rem);
  padding: 10px 14px; border-radius: 12px;
  background: var(--flaeche-glas, #0b1622d8); margin: 0; pointer-events: none;
}
/* Grid 1024×600: Leiste (Zurück+Wahl) schiebt Status sonst in die Mitte über 3D-Ziele */
@media (max-height: 650px) {
  .stopptanz-3d .stopptanz-status, .stopptanz-laedt .stopptanz-status {
    bottom: auto; top: calc(var(--s-titel, 32px) + var(--oben, 10px) + 8px);
  }
}
.stopptanz-3d .stopptanz-wahl, .stopptanz-laedt .stopptanz-wahl {
  position: absolute; z-index: 4; left: var(--links, 10px); right: var(--rechts, 10px);
  bottom: calc(var(--zurueck-h, 112px) + var(--unten, 10px) + var(--luecke, 8px));
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.stopptanz-3d .stopptanz-wahl .knopf, .stopptanz-3d .stopptanz-fuss .knopf {
  min-width: var(--knopf-b, 120px); min-height: var(--knopf-min-h, 96px);
}
.stopptanz-3d .stopptanz-fuss, .stopptanz-laedt .stopptanz-fuss {
  position: absolute; left: var(--links, 10px); right: var(--rechts, 10px); bottom: var(--unten, 10px);
  z-index: 4; margin: 0; display: flex; flex-wrap: wrap; gap: 8px;
}
.stopptanz-3d .stopptanz-fuss .knopf[data-stopptanz="zurueck"],
.stopptanz-laedt .stopptanz-fuss .knopf[data-stopptanz="zurueck"] {
  min-width: var(--zurueck-b, 220px); min-height: var(--zurueck-h, 112px);
}
.stopptanz-3d .stopptanz-lied, .stopptanz-laedt .stopptanz-lied { display: none; }
.stopptanz-3d .stopptanz-3d-scene, .stopptanz-laedt .stopptanz-3d-scene {
  position: absolute; inset: 0 0 calc(var(--stopptanz-leiste) + var(--unten, 10px)) !important;
  overflow: hidden;
}
.stopptanz-3d-scene > canvas { width: 100%; height: 100%; display: block; }
.stopptanz-3d.stopptanz-pause .stopptanz-3d-scene { filter: saturate(.7) brightness(1.05); }
