.cinema-sticker-wrap {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1vw 0;
    min-height: 0;
    min-width: 0;
}

.cinema-sticker-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.12);
    border-radius: 1vw;
}
html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

#cinema-app {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
    color: #111;
    --cinema-fortschritt-groesse: 100px;
    --cinema-fortschritt-gap: 6px;
    --cinema-bild-sichtbar-left: 0px;
    --cinema-bild-sichtbar-width: 100vw;
}

#cinema-buehne {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

#cinema-hintergrund {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

#cinema-app.cinema-hochformat #cinema-hintergrund {
    object-fit: cover;
}

@keyframes cinema-flimmern {
    0%   { opacity: 0;    filter: brightness(3) contrast(1.2); }
    7%   { opacity: 1;    filter: brightness(1.9); }
    14%  { opacity: 0.25; filter: brightness(0.3); }
    21%  { opacity: 1;    filter: brightness(1.7); }
    31%  { opacity: 0.55; filter: brightness(0.65); }
    42%  { opacity: 1;    filter: brightness(1.25); }
    54%  { opacity: 0.88; filter: brightness(0.92); }
    68%  { opacity: 1;    filter: brightness(1.1); }
    83%  { opacity: 0.97; filter: brightness(1.03); }
    100% { opacity: 1;    filter: brightness(1); }
}

#cinema-aufgabe-fenster.cinema-flimmern {
    animation: cinema-flimmern 0.6s ease-out forwards;
}

#cinema-aufgabe-fenster {
    position: absolute;
    z-index: 1;
    left: var(--cinema-aufgabe-left, 0px);
    top: var(--cinema-aufgabe-top, 0px);
    width: var(--cinema-aufgabe-width, 0px);
    height: var(--cinema-aufgabe-height, 0px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    background: #fff;
    color: #000;
}

#cinema-aufgabe-fenster .cinema-aufgabe-inhalt {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#cinema-aufgabe-fenster .cinema-aufgabe-inhalt img {
    max-width: 100%;
    max-height: 100%;
}

#cinema-aufgabe-fenster [data-rz-typ="text"] {
    display: inline-block;
    padding: 8px;
    color: #000;
}

#cinema-antwort-bereich {
    position: absolute;
    z-index: 20;
    left: var(--cinema-antwort-left, 0px);
    top: var(--cinema-antwort-top, 0px);
    width: var(--cinema-antwort-width, 0px);
    height: var(--cinema-antwort-height, 0px);
    display: grid;
    align-content: start;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px 12px;
    box-sizing: border-box;
    pointer-events: auto;
}

#cinema-fortschritt {
    position: absolute;
    left: var(--cinema-bild-sichtbar-left, 0px);
    bottom: 50px;
    z-index: 26;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--cinema-fortschritt-gap, 6px);
    width: var(--cinema-bild-sichtbar-width, 100vw);
    pointer-events: none;
}

.cinema-fortschritt-bild {
    width: var(--cinema-fortschritt-groesse, 100px);
    height: var(--cinema-fortschritt-groesse, 100px);
    object-fit: contain;
    display: block;
}

.cinema-antwort {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    color: #111;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
}

.cinema-antwort:disabled {
    opacity: 0.95;
    cursor: default;
}

.cinema-antwort.ist-richtig {
    border-color: #57b15f;
}

.cinema-antwort.ist-falsch {
    border-color: #cc4f4f;
}

.cinema-antwort .option-inhalt,
.cinema-antwort .cinema-text {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cinema-antwort .option-inhalt img {
    max-width: 100%;
    max-height: 100%;
}

.cinema-eingabe-kachel {
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

.cinema-eingabe-zeile {
    flex: 1 1 auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.cinema-eingabe-zeile-doppelt {
    align-items: stretch;
}

.cinema-antwort-feld {
    width: 100%;
    height: 100%;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1.2rem;
    text-align: center;
}

.cinema-antwort-gruppe {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cinema-antwort-label {
    font-size: 0.95rem;
    text-align: center;
}

.cinema-pruefen {
    height: 48px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #f7f7f7;
    font-family: inherit;
    cursor: pointer;
}

#cinema-abschluss {
    position: absolute;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
}

#cinema-abschluss.aktiv {
    display: flex;
}

.cinema-abschlussbox {
        background: #fff;
        border-radius: 10px;
        padding: 2.5vw 2vw;
        min-width: 200px;
        min-height: 120px;
        text-align: center;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* Responsive Größe: nimmt 70% der Breite oder Höhe, je nach Format, max. 98vw/vh */
        width: 70vw;
        height: 70vh;
        max-width: 98vw;
        max-height: 98vh;
}

@media (max-aspect-ratio: 1/1) {
    /* Hochformat: Breite anpassen, Höhe dominiert */
    .cinema-abschlussbox {
        width: 90vw;
        height: 70vh;
        max-width: 98vw;
        max-height: 98vh;
    }
}

@media (min-aspect-ratio: 1/1) {
    /* Querformat: Höhe anpassen, Breite dominiert */
    .cinema-abschlussbox {
        width: 70vw;
        height: 90vh;
        max-width: 98vw;
        max-height: 98vh;
    }
}

.cinema-neustart {
    margin-top: 12px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #f4f4f4;
    padding: 10px 16px;
    cursor: pointer;
}

/* Geldanzeige aus Meta (einzelne Münzen/Scheine) */
#cinema-app .geld-render {
    width: 100%;
    height: 100%;
    display: grid;
    gap: 6px;
    place-items: center;
    align-content: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

#cinema-app .geldteil-wrap {
    position: relative;
    display: block;
    box-sizing: border-box;
}

#cinema-app .geldteil-img {
    display: block;
    border: none;
    box-shadow: none;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    object-fit: contain;
}

#cinema-app .geldteil-img.geld-rot {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* Geldrechnen: Rechenzeichen lesefreundlich */
#cinema-app .geldrechnen-zeichen > span {
    display: block;
    font-size: clamp(1.2rem, 2vw, 2.4rem);
    line-height: 1;
    font-weight: 700;
    color: #111;
}

/* Geldrechnen: Text-Summanden */
#cinema-app .geldrechnen-summand > span {
    display: block;
    font-size: clamp(1.2rem, 2vw, 2.4rem);
    line-height: 1.1;
    font-weight: 700;
    color: #111;
}
