/* Basis-Reset und Schriftart */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    /* Moderner dynamischer Farbverlauf */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%, #171b36 100%);
    background-size: 200% 200%;
    animation: gradientBG 10s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glassmorphism Container */
.container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 650px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

header, main {
    position: relative;
    z-index: 1;
}

header {
    margin-bottom: 35px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    font-weight: 800;
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 10px rgba(79, 172, 254, 0.3);
}

.score-board {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.25);
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.score {
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.score span:first-child {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #b0c4de;
    margin-bottom: 5px;
}

.score span:last-child {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Screens und Übergänge */
.screen {
    display: none;
    margin-top: 20px;
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.screen.active {
    display: block;
}

@keyframes slideUpFade {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.98); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #ffffff;
}

.instruction {
    font-size: 1.05rem;
    margin-bottom: 35px;
    color: #ced4ea;
}

.lock-icon {
    font-size: 2rem;
    vertical-align: middle;
}

/* Auswahl-Buttons */
.choices {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.choice-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 130px;
    height: 130px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    outline: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.choice-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(79, 172, 254, 0.4);
    border-color: rgba(79, 172, 254, 0.8);
}

.choice-btn:active {
    transform: scale(0.95) translateY(0);
}

.emoji {
    font-size: 3.5rem;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.choice-btn:hover .emoji {
    transform: scale(1.15) rotate(5deg);
}

.label {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Aktions-Buttons (Weiter, Neustart) */
.action-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #0b1120;
    border: none;
    padding: 16px 35px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.4);
    outline: none;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(79, 172, 254, 0.6);
    filter: brightness(1.1);
}

.action-btn:active {
    transform: translateY(1px);
}

.action-btn.secondary {
    background: transparent;
    color: #4facfe;
    border: 2px solid #4facfe;
    box-shadow: none;
}

.action-btn.secondary:hover {
    background: rgba(79, 172, 254, 0.1);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.2);
}

.result-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

/* Ergebnisse */
.results {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 40px 0;
    background: rgba(0, 0, 0, 0.15);
    padding: 30px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-result h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #b0c4de;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chosen-emoji {
    font-size: 4.5rem;
    animation: bounce 2s infinite ease-in-out alternate;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.2));
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-15px); }
}

.vs {
    font-size: 2.5rem;
    font-weight: 800;
    font-style: italic;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 20px;
}

/* Responsiveness für Mobile */
@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
        width: 95%;
    }
    .choices { gap: 15px; }
    .choice-btn { 
        width: 100px; 
        height: 100px; 
    }
    .emoji { font-size: 2.5rem; }
    .label { font-size: 0.85rem; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .chosen-emoji { font-size: 3.5rem; }
    .vs { font-size: 1.8rem; }
    .score span:last-child { font-size: 2.2rem; }
}
