* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'ZCOOL KuaiLe', cursive;
    background: linear-gradient(135deg, #FFF9C4 0%, #FFD1DC 50%, #B3E5FC 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

.game-section, .login-section {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.game-section::before, .login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #FFD1DC, #B3E5FC, #E1BEE7);
}

.hidden {
    display: none;
}

h1 {
    color: #795548;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.heart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: heartbeat 1.5s infinite;
    color: #FFB6C1;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.game-question {
    font-size: 1.5rem;
    color: #424242;
    margin: 2rem 0;
    line-height: 1.8;
}

.game-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.game-option {
    padding: 1rem;
    background: linear-gradient(135deg, #FFD1DC 0%, #B3E5FC 100%);
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-family: 'ZCOOL KuaiLe', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #424242;
}

.game-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.game-option.correct {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    animation: pulse 0.5s ease-in-out;
}

.game-option.wrong {
    background: linear-gradient(135deg, #FF5252 0%, #FF6B6B 100%);
    color: white;
    animation: shake 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.game-progress {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: #795548;
}

.login-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    color: #795548;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 3px solid #FFD1DC;
    border-radius: 15px;
    font-size: 1.2rem;
    text-align: center;
    font-family: 'ZCOOL KuaiLe', cursive;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #B3E5FC;
    box-shadow: 0 0 10px rgba(179, 229, 252, 0.5);
}

.login-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #FFD1DC 0%, #B3E5FC 100%);
    border: none;
    border-radius: 15px;
    font-size: 1.5rem;
    font-family: 'ZCOOL KuaiLe', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #FFB6C1;
    font-weight: bold;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hint {
    margin-top: 1rem;
    font-size: 1rem;
    color: #666;
    background: #FFF9C4;
    padding: 0.8rem;
    border-radius: 10px;
    display: inline-block;
}

.hint span {
    color: #FF6B6B;
    font-weight: bold;
}

.error-message {
    color: #FF5252;
    font-size: 1.2rem;
    margin-top: 1rem;
    display: none;
}

.success-message {
    color: #4CAF50;
    font-size: 1.2rem;
    margin-top: 1rem;
    display: none;
}

.decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.decoration {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.decoration:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.decoration:nth-child(2) { top: 20%; right: 10%; animation-delay: 1s; }
.decoration:nth-child(3) { top: 60%; left: 8%; animation-delay: 2s; }
.decoration:nth-child(4) { top: 70%; right: 5%; animation-delay: 3s; }
.decoration:nth-child(5) { top: 40%; left: 15%; animation-delay: 4s; }
.decoration:nth-child(6) { top: 80%; right: 15%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    z-index: 1000;
    animation: celebrate 1s ease-in-out;
    display: none;
}

@keyframes celebrate {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .game-options { grid-template-columns: 1fr; }
    .game-section, .login-section { padding: 2rem; }
}

.penalty-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 2000;
    text-align: center;
    min-width: 300px;
    display: none;
}

.penalty-modal.show {
    display: block;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.penalty-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.penalty-overlay.show {
    display: block;
}

.penalty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.penalty-title {
    font-size: 1.8rem;
    color: #FF5252;
    margin-bottom: 1rem;
}

.penalty-countdown {
    font-size: 3rem;
    font-weight: bold;
    color: #FF6B6B;
    margin: 1rem 0;
}

.penalty-message {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}
