/* Lernspiele – ergänzt ../styles/style.css */

/* Bereichsfarbe: Nachthimmel über dem Bergtempel (wie im Nebensatz-Ninja) */
body.theme-spiele {
    background-color: #1c1726;
    --shadow: 0, 0, 0;
}

/* Retro-Signatur über dem Titel */
.press-start {
    margin: 0 0 1rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #e9c46a;
}

.press-start .blink { animation: blinken 1.1s steps(1) infinite; }

@keyframes blinken { 50% { opacity: 0; } }

/* Bereiche (Farbe = Lernbereich) */
.sp-grammatik { --accent: #b0261b; --tint: #f6edd2; }

/* Satz-Samurai: Satz in Satzglieder zerteilt */
.ill-samurai {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.ill-samurai .glied:nth-child(1) { --c: #b0261b; }
.ill-samurai .glied:nth-child(2) { --c: #2c3e50; }
.ill-samurai .glied:nth-child(3) { --c: #d4af37; }

/* Nebensatz-Ninja: Laternen in den Wortlücken, eine davon getroffen */
.ill-ninja {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.ninja-satz {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-end;
    gap: 0.25rem;
    white-space: nowrap;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.2;
}

.ninja-satz .wort {
    padding: 0.45rem 0.5rem 0.4rem;
    background-color: var(--card);
    border-radius: 8px;
}

.laterne {
    position: relative;
    width: 0.7rem;
    height: 1rem;
    margin-bottom: 0.55rem;
    background-color: #e9c46a;
    border-radius: 3px;
    box-shadow: 0 0 0 2px #6b3a1e;
    opacity: 0.45;
}

.laterne.treffer {
    opacity: 1;
    box-shadow: 0 0 0 2px #6b3a1e, 0 0 12px 3px rgba(233, 196, 106, 0.9);
}

.laterne.treffer::after {
    content: ",";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 0.8;
    color: #b0261b;
}

.wurfstern {
    width: 1.6rem;
    height: 1.6rem;
    background-color: #2c3e50;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    transform: rotate(18deg);
}

/* Platzhalter */
.bald {
    height: 100%;
    min-height: 14rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.45);
    border-radius: 28px;
    text-align: center;
}

.bald strong {
    font-family: 'UniNeueRegular', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.2;
}

.bald span { font-size: 1rem; opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
    .press-start .blink { animation: none; }
}
