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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #FFD6E8 0%, #FFF0F5 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-size: 16px;
}

.screen {
    display: none;
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.5s ease-in;
}

.screen.active {
    display: flex;
}

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

.container {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 8px 30px rgba(255, 192, 217, 0.4);
    width: 100%;
    text-align: center;
}

.title {
    font-size: 2.5rem;
    color: #FF69B4;
    margin-bottom: 30px;
    font-weight: bold;
}

.subtitle {
    font-size: 1.8rem;
    color: #FF69B4;
    margin-bottom: 20px;
    font-weight: bold;
}

.question {
    font-size: 1.3rem;
    color: #FF1493;
    margin-bottom: 25px;
    line-height: 1.5;
    font-weight: 600;
}

.explanation {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn-primary {
    background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
    min-width: 200px;
    min-height: 50px;
    font-weight: bold;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.option {
    background: white;
    border: 3px solid #FFD6E8;
    padding: 16px 20px;
    font-size: 1.1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
    min-height: 50px;
    font-weight: 500;
}

.option:hover {
    border-color: #FF69B4;
    transform: scale(1.02);
}

.option:active {
    transform: scale(0.98);
}

.option.correct {
    background: #90EE90;
    border-color: #32CD32;
    color: #006400;
    font-weight: bold;
}

.option.incorrect {
    background: #FFB6C1;
    border-color: #FF1493;
    color: #8B0000;
}

.option:disabled {
    cursor: not-allowed;
}

.btn-next {
    background: #FFD6E8;
    color: #FF1493;
    border: none;
    padding: 14px 35px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    min-height: 48px;
    font-weight: bold;
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next:not(:disabled):hover {
    background: #FFC0D9;
    transform: translateY(-2px);
}

.gameboy-screen {
    background: #E6D5F5;
    border-radius: 20px;
    padding: 20px;
    min-height: 80vh;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

.gameboy-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    min-height: 70vh;
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

.text-box {
    background: white;
    border: 4px solid #333;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    min-height: 140px;
    position: relative;
    box-sizing: border-box;
}

.text-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    text-align: left;
    font-family: 'Courier New', monospace;
    margin: 0;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.character-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    flex-shrink: 0;
}

.character-sprite {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.gameboy-btn {
    background: #FF69B4;
    color: white;
    border: none;
    padding: 14px 35px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    transition: all 0.3s;
    min-height: 48px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: auto;
}

.gameboy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gameboy-btn:not(:disabled):hover {
    background: #FF1493;
    transform: translateY(-2px);
}

.gameboy-btn:active {
    transform: scale(0.95);
}

.final-screen {
    min-height: 80vh;
}

.final-screen .container {
    background: #FFD6E8;
    padding: 60px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.birthday-text {
    font-size: 3rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(255, 105, 180, 0.6);
    font-weight: bold;
    line-height: 1.3;
    letter-spacing: 3px;
}

@media (min-width: 768px) {
    body {
        font-size: 18px;
    }

    .title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 2.2rem;
    }

    .question {
        font-size: 1.5rem;
    }

    .birthday-text {
        font-size: 4rem;
    }
}

@media (max-width: 360px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .question {
        font-size: 1.1rem;
    }

    .birthday-text {
        font-size: 2.5rem;
    }
}
