Files
dogfather-universe/workspace/assets/css/wartezeit.css
T
DogFatherGitandClaude Opus 5.5 434871c591 Wartezeit im Saal (Neuplan C2): Ring, Ton vorbereiten, Umfrage
- Ring um den Countdown: zwei Halbbögen, nur transform (keine Neuzeichnung)
- "Ton vorbereiten": zeigt, ob der Browser den Ton schon freigibt
  (userActivation), der Druck selbst ist die Freigabe
- Umfrage "Was schauen wir danach?": Regie stellt sie im Wartebereich,
  2–4 Antworten (Text oder YouTube, Titel von YouTube), eine Stimme je
  Person, Zahlen erst nach der eigenen Stimme, keine Namen; beim Schließen
  wird ein eindeutiger Gewinner-Video auf Wunsch ein Vorschlag
  (reaktion_umfragen, reaktion_umfrage_stimmen, Löschfrist 30 Tage)
- Name "Wartezeit": #vorraum ist der Einladungsdialog für Gäste – eine
  zweite Kennung davor hätte die Einladung zerbrochen (Wache dazu)
- Wartebereich rollt in sich, Bild kleiner mit Umfrage (gemessen)
- pruef-reaktion Abschnitt 24 (800 Prüfungen)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:14:35 +01:00

125 lines
5.9 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* =====================================================================
DIE WARTEZEIT (04.11.2026, Neuplan C2 „Vorraum“) – Ring, Ton, Umfrage
(nicht `.vorraum` – das ist der Einladungsdialog für Gäste)
Augenschonend und ruhig: Bewegt wird nur `transform` (der Ring dreht
zwei Halbbögen, die Balken skalieren), nichts blinkt. Farbe: das
Bernstein von „gleich“ (`--gleich` aus reaktion.css).
===================================================================== */
/* ---- Der Ring im Countdown-Kasten ----------------------------------- */
.vr-ring {
position: relative; flex: none; align-self: center;
width: 40px; height: 40px; margin-right: 2px;
border-radius: 50%;
box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .09);
}
.vr-ring[hidden] { display: none; }
.vr-ring__halb { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; }
.vr-ring__halb--r { left: 50%; }
.vr-ring__halb--l { left: 0; }
.vr-ring__bogen {
position: absolute; top: 0; bottom: 0; width: 200%;
border-radius: 50%;
box-shadow: inset 0 0 0 4px var(--gleich, #e0a13a);
transform: rotate(-180deg);
transition: transform .9s linear;
}
/* Rechts der rechte Halbbogen, links der linke – jeder dreht sich von
außerhalb seiner Hälfte hinein (siehe wartezeit.js, ringTakt). */
.vr-ring__halb--r .vr-ring__bogen { left: -100%; clip-path: inset(0 0 0 50%); }
.vr-ring__halb--l .vr-ring__bogen { left: 0; clip-path: inset(0 50% 0 0); }
.vr-ring[data-voll="ja"] .vr-ring__bogen { box-shadow: inset 0 0 0 4px #ffd9a0; }
/* ---- Der Vorraum-Kasten unter dem Satz ----------------------------- */
.wartezeit {
display: grid; justify-items: center; gap: 12px;
width: min(100%, 34rem); margin: 18px auto 0;
}
.vr-ton {
appearance: none; display: inline-flex; align-items: center; gap: 9px;
min-height: 44px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
font: inherit; font-size: .9rem; font-weight: 700;
color: #ffe2b3;
background: rgba(224, 161, 58, .12);
border: 1px solid rgba(224, 161, 58, .45);
}
.vr-ton:focus-visible { outline: 2px solid #ffd9a0; outline-offset: 3px; }
.vr-ton[data-bereit="ja"] {
color: #9ff0cf; background: rgba(124, 240, 192, .09); border-color: rgba(124, 240, 192, .4);
font-weight: 600;
}
.vr-ton__zeichen { font-size: 1rem; }
/* ---- Die Umfrage ----------------------------------------------------- */
.vr-umfrage {
width: 100%; text-align: left;
padding: 14px 16px 12px; border-radius: 16px;
background: rgba(10, 9, 18, .82);
border: 1px solid rgba(224, 161, 58, .28);
}
.vr-umfrage[hidden] { display: none; }
.vr-umfrage__kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.vr-umfrage__ueber { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffd9a0; }
.vr-umfrage__zahl { font-size: .78rem; color: #c3bfd6; font-variant-numeric: tabular-nums; }
.vr-umfrage__frage { margin: 6px 0 10px; font-size: 1.05rem; font-weight: 800; color: #f4f1fb; }
.vr-umfrage__satz { margin: 8px 0 0; font-size: .8rem; color: #b9b4cc; }
.vr-antworten { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.vr-antwort__knopf {
position: relative; overflow: hidden; isolation: isolate;
appearance: none; width: 100%; min-height: 44px; cursor: pointer;
display: flex; align-items: center; justify-content: space-between; gap: 10px;
padding: 9px 14px; border-radius: 12px;
font: inherit; font-size: .9rem; color: #ece8f6; text-align: left;
background: rgba(255, 255, 255, .03);
border: 1px solid rgba(255, 255, 255, .12);
}
.vr-antwort__knopf:disabled { cursor: default; }
.vr-antwort__knopf:focus-visible { outline: 2px solid #ffd9a0; outline-offset: 2px; }
.vr-antwort__knopf[data-mein="ja"] { border-color: rgba(224, 161, 58, .6); }
.vr-antwort__balken {
position: absolute; inset: 0; z-index: -1;
background: rgba(224, 161, 58, .16);
transform-origin: left center;
transition: transform .5s ease;
}
.vr-antwort__knopf[data-mein="ja"] .vr-antwort__balken { background: rgba(224, 161, 58, .26); }
.vr-antwort__text { min-width: 0; overflow-wrap: anywhere; }
.vr-antwort__zahl { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; color: #ffd9a0; }
.vr-umfrage__fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.vr-umfrage__wahl { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: #c3bfd6; min-height: 44px; }
.vr-umfrage__wahl input { width: 18px; height: 18px; accent-color: #e0a13a; }
.vr-umfrage__zu, .vr-umfrage__neu, .vr-form__los { min-height: 40px; }
.vr-umfrage__neu { margin-top: 10px; }
.vr-form { display: grid; gap: 8px; }
.vr-feld { width: 100%; }
.vr-form__los { justify-self: end; margin-top: 4px; }
.vr-hinweis { margin: 0; font-size: .82rem; color: #9ff0cf; }
.vr-hinweis[hidden] { display: none; }
@media (pointer: coarse) {
.vr-umfrage__zu, .vr-umfrage__neu, .vr-form__los { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
.vr-ring__bogen, .vr-antwort__balken { transition: none; }
}
/* ==== PLATZ FÜR DIE UMFRAGE (04.11.2026, gemessen auf 1440 x 900) ======
Bild + Titel + Countdown + Ton + Umfrage waren höher als die Bühne, und
die Karte lief unten über den Rand hinaus. Steht eine Umfrage da, wird
das Vorschaubild kleiner – und der Wartebereich rollt in sich, statt
über seinen Rand zu laufen (min-height: 0, sonst wächst das Raster). */
#teil-warte { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
/* Oben 52 px frei: Dort steht das Schild „Gleich · n dabei“ des Saals. */
.warte__buehne:has(.vr-umfrage:not([hidden])) { gap: 16px; padding-block: 52px 12px; }
.warte__buehne:has(.vr-umfrage:not([hidden])) .warte__bild {
/* Beide Maße ausdrücklich: Eine Fläche nur mit Hintergrundbild hat keinen
Inhalt, aus dem `width: auto` eine Breite machen könnte (gemessen: 0 px). */
height: 34vh; width: min(100%, calc(34vh * 16 / 9)); justify-self: center;
}