/* Sternesystem für "Mein kleiner Tierhof"
   Eigenes Stylesheet - style.css bleibt unangetastet. */

.sternen-abzeichen {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.6rem;
    padding: 0.35rem 0.85rem;
    border: 2px solid rgba(249, 168, 37, 0.55);
    border-radius: 999px;
    background: rgba(253, 230, 138, 0.22);
    color: #7c4a03;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.sternen-abzeichen-symbol {
    font-size: 1.35rem;
    line-height: 1;
}

.sternen-abzeichen-name {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sternen-abzeichen-sterne {
    white-space: nowrap;
}

/* Grosser goldener Stern beim Belohnen */
.sternen-stern {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 900;
    transform: translate(-50%, -50%);
    font-size: 9rem;
    line-height: 1;
    pointer-events: none;
    animation: sternen-stern-aufblitzen 2.1s ease-out forwards;
    filter: drop-shadow(0 6px 18px rgba(180, 120, 0, 0.45));
}

@keyframes sternen-stern-aufblitzen {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
    18%  { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
    30%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    75%  { opacity: 1; transform: translate(-50%, -55%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -62%) scale(0.92); }
}

/* Konfetti: sanftes Fallen, kein Blinken */
.sternen-konfetti {
    position: fixed;
    inset: 0;
    z-index: 890;
    overflow: hidden;
    pointer-events: none;
}

.sternen-konfetti-teil {
    position: absolute;
    top: -18px;
    width: 10px;
    height: 15px;
    border-radius: 2px;
    opacity: 0.95;
    animation-name: sternen-konfetti-fallen;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
}

@keyframes sternen-konfetti-fallen {
    0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
    8%   { opacity: 0.95; }
    100% { opacity: 0; transform: translateY(102vh) rotate(var(--sternen-drehung, 1turn)); }
}

/* Hinweisbox (z. B. Speicherfehler) */
.sternen-meldung {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 950;
    max-width: min(90vw, 32rem);
    padding: 0.7rem 1rem;
    border: 2px solid rgba(56, 189, 248, 0.5);
    border-radius: 14px;
    background: rgba(224, 242, 254, 0.97);
    color: #0c4a6e;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: pre-line;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.sternen-meldung--sichtbar {
    opacity: 1;
}

.sternen-meldung--fehler {
    border-color: rgba(248, 113, 113, 0.65);
    background: rgba(254, 226, 226, 0.97);
    color: #7f1d1d;
}

/* Profilseite */
.profil-abschnitt {
    margin-bottom: 2rem;
    padding: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
}

.profil-abschnitt h2 {
    margin: 0 0 0.6rem;
    font-size: 1.35rem;
    color: #1e293b;
}

.profil-abschnitt p {
    margin: 0.3rem 0;
    color: #475569;
}

.profil-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 0.8rem 0 0;
}

.profil-kachel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 8.5rem;
    padding: 0.9rem 0.7rem;
    border: 3px solid #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
    cursor: pointer;
    font: inherit;
    color: #1e293b;
}

.profil-kachel--aktiv {
    border-color: #f9a825;
    background: #fef9c3;
    box-shadow: 0 4px 12px rgba(249, 168, 37, 0.3);
}

.profil-symbol {
    font-size: 2.6rem;
    line-height: 1.1;
}

.profil-name {
    font-size: 1.15rem;
    font-weight: 700;
}

.profil-sterne {
    font-size: 1.05rem;
    font-weight: 700;
    color: #a16207;
}

.profil-hinweis {
    color: #64748b;
    font-style: italic;
}

.profil-formular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.6rem;
}

.profil-name-feld {
    flex: 1 1 12rem;
    min-width: 10rem;
    padding: 0.65rem 0.8rem;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1.05rem;
    color: #1e293b;
}

.symbol-auswahl {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.8rem 0;
}

.symbol-knopf {
    width: 2.9rem;
    height: 2.9rem;
    border: 3px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.symbol-knopf--gewaehlt {
    border-color: #f9a825;
    background: #fef9c3;
}

.import-liste {
    margin: 0.5rem 0 0.8rem;
    padding-left: 1.2rem;
    color: #334155;
    font-size: 1rem;
    line-height: 1.6;
}
