@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap'); /* Fantasy-Schriftart */

body {
    font-family: 'MedievalSharp', cursive; /* WoW-ähnliche Schriftart */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    /* Standard-Hintergrund (Pergament) */
    background-image: url('https://wow.zamimg.com/images/textures/parchment/parchment_bg.jpg'), linear-gradient(to bottom, #4a3f30, #3b3125);
    background-size: cover, cover;
    background-blend-mode: overlay;
    color: #f0e6d2; /* Helle Textfarbe auf dunklem Grund */
    /* Verbesserte Übergänge für Hintergrund UND Textfarbe */
    transition: background-image 1.5s ease-in-out, 
                color 1.5s ease-in-out,
                text-shadow 1.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Farbige Overlay-Elemente für die Übergänge */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, background 1.5s ease-in-out;
    pointer-events: none;
}

/* Horde Hintergrund-Stil */
body.horde-turn {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), linear-gradient(to bottom right, #600, #a00, #300); /* Roter Verlauf mit Verdunklung */
    color: #f5c57a; /* Leicht goldenere Textfarbe auf Rot */
}

body.horde-turn::before {
    background: radial-gradient(circle at center, rgba(200, 0, 0, 0.2) 0%, rgba(180, 0, 0, 0.1) 40%, transparent 70%);
    opacity: 1;
}

/* Allianz Hintergrund-Stil */
body.alliance-turn {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), linear-gradient(to bottom right, #036, #05a, #013); /* Blauer Verlauf mit Verdunklung */
    color: #aaddff; /* Hellere blaue Textfarbe */
}

body.alliance-turn::before {
    background: radial-gradient(circle at center, rgba(0, 50, 200, 0.2) 0%, rgba(0, 100, 200, 0.1) 40%, transparent 70%);
    opacity: 1;
}

/* Verbesserte Übergänge für alle relevanten Elemente */
h1 {
    margin-bottom: 30px;
    /* Farbe wird jetzt durch Body-Klasse gesteuert */
    font-size: 3em;
    text-shadow: 3px 3px 5px rgba(0,0,0,0.7);
    transition: color 1.5s ease-in-out, text-shadow 1.5s ease-in-out; /* Textfarbe auch animieren */
}

#gameBoard {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 8px; /* Etwas Abstand */
    margin-bottom: 30px;
    background-color: rgba(0, 0, 0, 0.3); /* Dunkler, halbtransparent */
    padding: 15px;
    border: 3px solid #8c7853; /* Dickerer, "goldener" Rand */
    border-radius: 5px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 5px 15px rgba(0,0,0,0.5); /* Innen- und Außenschatten */
    /* Perspective hinzufügen für 3D-Effekte der Kinder */
    perspective: 1000px;
    /* Übergang für Randfarbe hinzufügen */
    transition: all 0.5s ease-out;
    position: relative;
    z-index: 9999;
}

/* Verbesserte Basis-Zellenstile für echte 3D-Kacheln */
.cell {
    width: 100px;
    height: 100px;
    background-color: transparent; /* Hintergrund transparent machen */
    border: 2px solid #5c4e3a; /* Dunkler Steinrand */
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5em;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
    /* Verbesserte 3D-Perspektive */
    perspective: 1000px;
}

/* Hover-Effekt für normale Kacheln */
.cell:hover:not(.x):not(.o):not(.flipping) {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Neue Struktur für Vorder- und Rückseite der Kachel */
.cell .front-face,
.cell .back-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    border-radius: 3px;
    font-weight: bold;
    font-family: sans-serif;
}

/* Vorderseite (leer) */
.cell .front-face {
    background-color: #dbcba7;
    transform: rotateY(0deg);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

/* Rückseite (Symbol) */
.cell .back-face {
    background-color: #dbcba7;
    transform: rotateY(180deg);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

/* Symbole auf der Rückseite */
.cell.x .back-face::before {
    content: 'X';
    color: #C82C36; /* Horde Rot */
    text-shadow: 2px 2px 3px rgba(0,0,0,0.7);
}

.cell.o .back-face::before {
    content: 'O';
    color: #00A1E0; /* Allianz Blau */
    text-shadow: 2px 2px 3px rgba(0,0,0,0.7);
}

/* Helle Kanten-Effekte für 3D-Aussehen */
.cell .front-face::after,
.cell .back-face::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 3px;
    box-shadow: inset 0 0 2px rgba(255,255,255,0.5);
    pointer-events: none;
}

/* Animation für Kachel-Flip */
.cell.flipping {
    animation: smooth-flip 0.8s ease-out forwards;
}

@keyframes smooth-flip {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(180deg);
    }
}

/* Glow-Effekt für das Symbol nach dem Flip */
@keyframes glow-effect {
    0% {
        /* Normaler Zustand (wie in .cell.x/o .back-face::before) */
        text-shadow: 2px 2px 3px rgba(0,0,0,0.7);
        opacity: 1;
    }
    50% {
        /* Heller, leuchtender Schatten */
        text-shadow: 0 0 15px currentColor, 0 0 8px currentColor, 2px 2px 3px rgba(0,0,0,0.5);
        opacity: 1;
    }
    100% {
        /* Zurück zum Normalzustand */
        text-shadow: 2px 2px 3px rgba(0,0,0,0.7);
        opacity: 1;
    }
}

/* Animation zum Symbol hinzufügen, wenn es erscheint */
.cell.flipped.x .back-face::before,
.cell.flipped.o .back-face::before {
    /* Die ursprünglichen Regeln bleiben wichtig, besonders color und content */
    /* content und color werden von .cell.x .back-face::before etc. geerbt */
    animation: glow-effect 0.6s ease-out forwards;
    /* Optional: Kleine Verzögerung, um sicherzustellen, dass der Flip abgeschlossen ist */
    /* animation-delay: 0.1s; */
}

/* Nach der Animation in der gedrehten Position bleiben */
.cell.flipped {
    transform: rotateY(180deg);
}

/* Aktive Gewinnzellen */
.cell.winning-cell .front-face,
.cell.winning-cell .back-face {
    animation: pulse 0.8s infinite ease-in-out;
}

/* Entferne alte CSS-Regeln, die nicht mehr benötigt werden */
.cell::before, 
.cell::after,
.cell.x::after,
.cell.o::after,
.cell.flipping::before,
.cell.flipped::before,
.cell.placed::before {
    content: none;
}

/* Regeln für Horde/Allianz Symbole entfernen */
/*
.cell.horde {
    ...
}
.cell.alliance {
    ...
}
*/

#statusArea {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5); /* Dunkler */
    padding: 15px 25px;
    border-radius: 5px;
    border: 2px solid #8c7853;
    box-shadow: 0 5px 10px rgba(0,0,0,0.4);
    z-index:9999;
}

#statusText {
    margin-bottom: 15px;
    font-size: 1.5em; /* Größer */
    font-weight: normal;
    color: #f0e6d2; /* Pergamentfarbe */
    text-shadow: 2px 2px 3px rgba(0,0,0,0.6);
    transition: color 1.5s ease-in-out, text-shadow 1.5s ease-in-out;
}

#restartButton {
    padding: 10px 20px;
    font-size: 1.2em;
    font-family: 'MedievalSharp', cursive;
    font-weight: normal;
    cursor: pointer;
    background: linear-gradient(to bottom, #8c7853, #5c4e3a); /* Metallisch/Holz */
    color: #f0e6d2;
    border: 2px outset #a08f6b;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#restartButton:hover {
    background: linear-gradient(to bottom, #a08f6b, #6e5e48);
    border-color: #b3a27d;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
    transform: translateY(-1px);
}

#restartButton:active {
    background: linear-gradient(to top, #8c7853, #5c4e3a);
    border-style: inset;
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Style für Spielstandsanzeige */
#scoreBoard {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px 25px;
    border: 2px solid #8c7853;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex; /* Nebeneinander anordnen */
    justify-content: space-between; /* Mehr Platz zwischen den Fraktionen */
    min-width: 300px; /* Mehr Platz für Herzen */
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    transition: border-color 1.5s ease-in-out, box-shadow 1.5s ease-in-out;
    z-index:9999;
}

.faction-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.faction-name {
    font-size: 1.4em;
    color: #f0e6d2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    margin-bottom: 8px;
}

/* Positionierung der Herzen in den Ecken */
.corner-hearts {
    position: fixed;
    z-index: 9999;
    padding: 15px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.7));
}

.top-left {
    top: 20px;
    left: 20px;
}

.top-right {
    top: 20px;
    right: 20px;
}

/* Verbesserte Größe und Anordnung der Herzen */
.hearts-container {
    display: flex;
    gap: 10px;
}

/* Größere Herzen */
.hearts-container .fa-heart {
    font-size: 3.5em; /* Erheblich größer */
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.7));
    transition: color 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

/* Horde-Herzen (rot) mit verbesserten Effekten */
.horde-hearts .fa-heart {
    color: #C82C36; /* Horde Rot */
}

/* Horde-Herzen-Effekte für aktive Herzen */
.horde-hearts .fa-heart.active {
    color: #ff3c48; /* Helleres Rot */
    filter: drop-shadow(0 0 8px rgba(255,60,60,0.9));
    transform: scale(1.1);
}

/* Allianz-Herzen (blau) mit verbesserten Effekten */
.alliance-hearts .fa-heart {
    color: #00A1E0; /* Allianz Blau */
}

/* Allianz-Herzen-Effekte für aktive Herzen */
.alliance-hearts .fa-heart.active {
    color: #40c0ff; /* Helleres Blau */
    filter: drop-shadow(0 0 8px rgba(64,192,255,0.9));
    transform: scale(1.1);
}

/* Stil für verlorene Herzen (ausgegraut) */
.hearts-container .fa-heart.lost {
    color: #5a5a5a;
    opacity: 0.4;
    transform: scale(0.85);
    filter: grayscale(100%) drop-shadow(0 0 3px rgba(0,0,0,0.3));
}

/* Anpassung des Scoreboards ohne Herzen */
#scoreBoard {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px 25px;
    border: 2px solid #8c7853;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex; /* Nebeneinander anordnen */
    justify-content: space-between; /* Mehr Platz zwischen den Fraktionen */
    min-width: 300px; /* Mehr Platz für Herzen */
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    transition: border-color 1.5s ease-in-out, box-shadow 1.5s ease-in-out;
    z-index: 9999;
}

.faction-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

/* Verbesserte Animation für Herzenverlust */
@keyframes heartLost {
    0% { 
        transform: scale(1.5); 
        filter: drop-shadow(0 0 15px rgba(255,0,0,0.9));
        opacity: 1;
    }
    25% { 
        transform: scale(1.7) rotate(10deg); 
    }
    50% { 
        transform: scale(1.5) rotate(-10deg);
    }
    100% { 
        transform: scale(0.85);
        filter: grayscale(100%) drop-shadow(0 0 3px rgba(0,0,0,0.3));
        opacity: 0.4;
    }
}

.hearts-container .fa-heart.losing {
    animation: heartLost 1s forwards;
}

/* Anpassungen für Horde/Allianz Text im Scoreboard */
body.horde-turn .faction-name {
    color: #f5c57a;
    text-shadow: 2px 2px 3px rgba(100, 0, 0, 0.5);
    transition: color 1.5s ease-in-out, text-shadow 1.5s ease-in-out;
}

body.alliance-turn .faction-name {
    color: #aaddff;
    text-shadow: 2px 2px 3px rgba(0, 50, 120, 0.5);
    transition: color 1.5s ease-in-out, text-shadow 1.5s ease-in-out;
}

/* Überarbeitete Animation fürs Zeichen setzen */
@keyframes placeMarkEffect {
    0% {
        /* Startet klein, gedreht (unsichtbar), und leicht nach hinten */
        transform: scale(0.3) rotateY(180deg) translateZ(-50px);
        opacity: 0;
    }
    40% {
        /* Dreht sich nach vorne, kommt näher, wird größer */
        transform: scale(1.1) rotateY(0deg) translateZ(80px);
        opacity: 1;
    }
    70% {
        /* Bewegt sich leicht zurück, behält Größe */
        transform: scale(1.1) rotateY(0deg) translateZ(20px);
        opacity: 1;
    }
    100% {
        /* Landet auf Endposition */
        transform: scale(1) rotateY(0deg) translateZ(0px);
        opacity: 1;
    }
}

.cell.placed::before {
    /* Dauer leicht erhöht für komplexere Animation */
    animation: placeMarkEffect 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; /* Andere Easing-Funktion für Bounce-Effekt */
}

/* Flammen-Animation Keyframes */
@keyframes flameEffect {
    0% {
        box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 5px 15px rgba(0,0,0,0.5), 0 0 10px rgba(255, 165, 0, 0.5);
        border-color: #FF8C00; /* Dunkelorange */
    }
    25% {
        box-shadow: inset 0 0 12px rgba(0,0,0,0.6), 0 6px 18px rgba(0,0,0,0.6), 0 0 30px rgba(255, 100, 0, 0.8), 0 0 15px rgba(255, 200, 0, 0.7);
        border-color: #FF4500; /* Orangerot */
    }
    50% {
        box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 5px 15px rgba(0,0,0,0.5), 0 0 20px rgba(255, 50, 0, 0.6), 0 0 10px rgba(255, 215, 0, 0.6); /* Gold */
        border-color: #FFA500; /* Orange */
    }
    75% {
        box-shadow: inset 0 0 12px rgba(0,0,0,0.6), 0 6px 18px rgba(0,0,0,0.6), 0 0 40px rgba(255, 180, 0, 0.9), 0 0 25px rgba(255, 80, 0, 0.8);
        border-color: #FF6347; /* Tomate */
    }
    100% {
        box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 5px 15px rgba(0,0,0,0.5), 0 0 15px rgba(255, 165, 0, 0.6);
        border-color: #FF7F50; /* Koralle */
    }
}

/* Horde Flammen (Rot) */
@keyframes hordeFlameEffect {
    0% {
        box-shadow: inset 0 0 15px rgba(0,0,0,0.6), 
                    0 0 30px rgba(255, 0, 0, 0.6), 
                    0 0 60px rgba(255, 50, 0, 0.4);
        border-color: #a00; /* Horde Rot */
    }
    25% {
        box-shadow: inset 0 0 20px rgba(0,0,0,0.7), 
                    0 0 40px rgba(255, 30, 0, 0.8), 
                    0 0 80px rgba(255, 80, 0, 0.6);
        border-color: #c00; /* Helleres Rot */
    }
    50% {
        box-shadow: inset 0 0 15px rgba(0,0,0,0.6), 
                    0 0 50px rgba(200, 0, 0, 0.9), 
                    0 0 100px rgba(255, 100, 0, 0.7);
        border-color: #800; /* Dunkleres Rot */
    }
    75% {
        box-shadow: inset 0 0 20px rgba(0,0,0,0.7), 
                    0 0 60px rgba(255, 50, 0, 0.8), 
                    0 0 90px rgba(255, 120, 0, 0.6);
        border-color: #d00; /* Kräftiges Rot */
    }
    100% {
        box-shadow: inset 0 0 15px rgba(0,0,0,0.6), 
                    0 0 40px rgba(255, 0, 0, 0.7), 
                    0 0 70px rgba(255, 70, 0, 0.5);
        border-color: #b00; /* Standard Horde Rot */
    }
}

/* Allianz Flammen (Blau) */
@keyframes allianceFlameEffect {
    0% {
        box-shadow: inset 0 0 15px rgba(0,0,0,0.6), 
                    0 0 30px rgba(0, 50, 255, 0.6), 
                    0 0 60px rgba(0, 100, 255, 0.4);
        border-color: #05a; /* Allianz Blau */
    }
    25% {
        box-shadow: inset 0 0 20px rgba(0,0,0,0.7), 
                    0 0 40px rgba(30, 100, 255, 0.8), 
                    0 0 80px rgba(50, 150, 255, 0.6);
        border-color: #08f; /* Helleres Blau */
    }
    50% {
        box-shadow: inset 0 0 15px rgba(0,0,0,0.6), 
                    0 0 50px rgba(0, 70, 200, 0.9), 
                    0 0 100px rgba(0, 120, 255, 0.7);
        border-color: #036; /* Dunkleres Blau */
    }
    75% {
        box-shadow: inset 0 0 20px rgba(0,0,0,0.7), 
                    0 0 60px rgba(50, 100, 255, 0.8), 
                    0 0 90px rgba(100, 160, 255, 0.6);
        border-color: #07c; /* Kräftiges Blau */
    }
    100% {
        box-shadow: inset 0 0 15px rgba(0,0,0,0.6), 
                    0 0 40px rgba(0, 80, 255, 0.7), 
                    0 0 70px rgba(70, 130, 255, 0.5);
        border-color: #05a; /* Standard Allianz Blau */
    }
}

/* Anwendung der Flammenanimationen */
#gameBoard.horde-flames {
    animation: hordeFlameEffect 1s ease-out infinite alternate;
    transition: box-shadow 0.5s, border-color 0.5s;
    border-width: 5px; /* Dickerer Rand für bessere Sichtbarkeit */
}

#gameBoard.alliance-flames {
    animation: allianceFlameEffect 1s ease-out infinite alternate;
    transition: box-shadow 0.5s, border-color 0.5s;
    border-width: 5px; /* Dickerer Rand für bessere Sichtbarkeit */
}

/* Klasse, um die Animation auszulösen */
#gameBoard.flame-burst {
    /* Randfarbe wird direkt in Keyframes gesetzt */
    animation: flameEffect 1.5s ease-out forwards;
}

/* Verbesserte Flammeneffekte mit pseudo-Elementen */
#gameBoard.horde-flames::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    z-index: -1;
    border-radius: 8px;
    background-color: transparent;
    filter: blur(8px);
    animation: hordePulse 2s infinite alternate;
}

#gameBoard.alliance-flames::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    z-index: -1;
    border-radius: 8px;
    background-color: transparent;
    filter: blur(8px);
    animation: alliancePulse 2s infinite alternate;
}

@keyframes hordePulse {
    0% {
        box-shadow: 0 0 20px 10px rgba(200, 0, 0, 0.6), 0 0 40px 20px rgba(255, 80, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 30px 15px rgba(220, 50, 0, 0.8), 0 0 60px 30px rgba(255, 120, 0, 0.6);
    }
}

@keyframes alliancePulse {
    0% {
        box-shadow: 0 0 20px 10px rgba(0, 80, 200, 0.6), 0 0 40px 20px rgba(50, 120, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 30px 15px rgba(30, 100, 220, 0.8), 0 0 60px 30px rgba(70, 150, 255, 0.6);
    }
}

/* Übergangsanimation zwischen Fraktionen */
.faction-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.faction-transition-overlay.active {
    opacity: 0.85;
}

/* Übergang zur Horde (rot) */
.faction-transition-overlay.to-horde {
    background: radial-gradient(circle at center, #d00 10%, transparent 75%);
    box-shadow: inset 0 0 100px 50px rgba(200, 0, 0, 0.5);
}

/* Übergang zur Allianz (blau) */
.faction-transition-overlay.to-alliance {
    background: radial-gradient(circle at center, #06c 10%, transparent 75%);
    box-shadow: inset 0 0 100px 50px rgba(0, 80, 200, 0.5);
}

/* Verbesserte Horde-Allianz Textfarbwechsel */
body.horde-turn #statusText,
body.horde-turn #scoreBoard span {
    color: #f5c57a;
    text-shadow: 2px 2px 3px rgba(100, 0, 0, 0.5);
    transition: color 1.5s ease-in-out, text-shadow 1.5s ease-in-out;
}

body.alliance-turn #statusText,
body.alliance-turn #scoreBoard span {
    color: #aaddff;
    text-shadow: 2px 2px 3px rgba(0, 50, 120, 0.5);
    transition: color 1.5s ease-in-out, text-shadow 1.5s ease-in-out;
}

/* Horde-spezifische Akzente */
body.horde-turn #scoreBoard {
    border-color: rgba(200, 50, 50, 0.7); 
    box-shadow: 0 3px 8px rgba(150, 0, 0, 0.3);
}

/* Allianz-spezifische Akzente */
body.alliance-turn #scoreBoard {
    border-color: rgba(50, 100, 200, 0.7);
    box-shadow: 0 3px 8px rgba(0, 50, 150, 0.3);
}

/* Scoreboard in den Ecken unter den Herzen */
.corner-hearts .faction-score {
    margin-top: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 8px 18px;
    border: 2px solid #8c7853;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    min-width: 100px;
    align-items: center;
    display: flex;
    flex-direction: column;
    z-index: 10000;
}

/* Optional: Score-Text etwas kleiner für die Ecke */
.corner-hearts .faction-name {
    font-size: 1.1em;
    margin-bottom: 0;
}

/* Altes zentrales Scoreboard ausblenden, falls noch vorhanden */
#scoreBoard { display: none !important; }

/* Pokal-Overlay für Gewinner */
.winner-trophy-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    background: rgba(0,0,0,0.35);
    animation: trophyIn 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}
.trophy-content {
    background: linear-gradient(135deg, #fffbe6 80%, #ffe066 100%);
    border: 4px solid #bfa13a;
    border-radius: 18px;
    box-shadow: 0 8px 32px 8px rgba(0,0,0,0.25);
    padding: 36px 48px 28px 48px;
    text-align: center;
    min-width: 220px;
    min-height: 160px;
    position: relative;
    animation: popTrophy 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}
.trophy-content .fa-trophy {
    font-size: 4.5em;
    color: #ffd700;
    text-shadow: 0 0 18px #fffbe6, 0 2px 8px #bfa13a;
    margin-bottom: 10px;
    animation: shineTrophy 1.5s infinite alternate;
}
.trophy-label {
    font-size: 1.5em;
    color: #bfa13a;
    font-family: 'MedievalSharp', cursive;
    text-shadow: 0 1px 2px #fffbe6;
    margin-top: 10px;
    display: inline-block;
}
.winner-trophy-overlay.fadeout {
    opacity: 0;
    transition: opacity 0.8s;
}
@keyframes popTrophy {
    0% { transform: scale(0.7) rotate(-10deg); opacity: 0; }
    60% { transform: scale(1.1) rotate(3deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes trophyIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes shineTrophy {
    0% { filter: brightness(1) drop-shadow(0 0 0 #fffbe6); }
    100% { filter: brightness(1.25) drop-shadow(0 0 18px #fffbe6); }
}

/* Krone-Overlay für Gesamtsieg */
.winner-crown-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 21000;
    background: rgba(0,0,0,0.45);
    animation: trophyIn 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}
.crown-content {
    background: linear-gradient(135deg, #fffbe6 80%, #ffe066 100%);
    border: 4px solid #e6c200;
    border-radius: 18px;
    box-shadow: 0 8px 32px 8px rgba(0,0,0,0.25);
    padding: 36px 48px 28px 48px;
    text-align: center;
    min-width: 220px;
    min-height: 160px;
    position: relative;
    animation: popTrophy 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}
.crown-content .fa-crown {
    font-size: 4.5em;
    color: #ffd700;
    text-shadow: 0 0 18px #fffbe6, 0 2px 8px #e6c200;
    margin-bottom: 10px;
    animation: shineTrophy 1.5s infinite alternate;
}
.crown-symbol {
    font-size: 2.5em;
    font-family: 'MedievalSharp', cursive;
    color: #bfa13a;
    text-shadow: 0 1px 2px #fffbe6, 0 0 12px #ffd700;
    margin-top: 10px;
    display: inline-block;
    letter-spacing: 0.1em;
}
.winner-crown-overlay.fadeout {
    opacity: 0;
    transition: opacity 0.8s;
} 