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

body {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(to bottom, #1a1a2e 0%, #0f3460 50%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 20px 0;
}

/* Snow animation */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: white;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Game container */
.game-container {
    z-index: 10;
    position: relative;
    padding: 20px;
}

.screen {
    /* background: #2d4059; */
    border: 8px solid #ea5455;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(234, 84, 85, 0.6),
                inset 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 90vw;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.title {
    color: #f6f6f6;
    font-size: clamp(12px, 3vw, 24px);
    text-shadow: 4px 4px 0 #ea5455,
                 8px 8px 0 rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 4px 4px 0 #ea5455,
                     8px 8px 0 rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 4px 4px 0 #ff6b6b,
                     8px 8px 0 rgba(0, 0, 0, 0.3),
                     0 0 20px #ea5455;
    }
}

.hearts {
    font-size: 24px;
    animation: pulse 1s ease-in-out infinite;
}

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

/* Game area */
.game-area {
    /* background: #16213e; */
    /* border: 4px solid #0f3460; */
    border-radius: 10px;
    min-height: 350px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Snowman */
.snowman {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    animation: idle 3s ease-in-out infinite;
}

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

.snowman-head {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    border: 4px solid #333;
    position: relative;
    z-index: 3;
}

.eyes {
    display: flex;
    justify-content: space-around;
    padding: 20px 15px 0;
}

.eye {
    font-size: 20px;
    color: #333;
}

.carrot-nose {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 20px solid #ff6b35;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    top: 40px;
}

.mouth {
    font-size: 24px;
    text-align: center;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.mouth.happy {
    color: #333;
}

.mouth.super-happy {
    color: #ea5455;
    animation: smile 0.5s ease-in-out;
}

.mouth.sad {
    color: #4a4a4a;
    transform: rotate(180deg);
}

@keyframes smile {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

.snowman-body {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    border: 4px solid #333;
    margin-top: -10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.button {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
}

.snowman-base {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    border: 4px solid #333;
    margin-top: -10px;
    z-index: 1;
}

.stick-arms {
    position: absolute;
    width: 200px;
    top: 120px;
    display: flex;
    justify-content: space-between;
}

.arm {
    font-size: 40px;
    color: #8b4513;
    text-shadow: 2px 2px 0 #333;
}

.arm.left {
    transform: rotate(-20deg);
}

.arm.right {
    transform: rotate(20deg);
}

/* Animations */
.snowman.happy-dance {
    animation: dance 0.5s ease-in-out infinite;
}

@keyframes dance {
    0%, 100% {
        transform: rotate(-5deg) translateY(-5px);
    }
    50% {
        transform: rotate(5deg) translateY(-15px);
    }
}

.snowman.crying {
    animation: cry 0.5s ease-in-out infinite;
}

@keyframes cry {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(5px);
    }
}

.tear {
    position: absolute;
    font-size: 20px;
    animation: tearfall 2s ease-in forwards;
    z-index: 10;
}

@keyframes tearfall {
    0% {
        top: 60px;
        opacity: 1;
    }
    100% {
        top: 300px;
        opacity: 0;
    }
}

.confetti {
    position: absolute;
    font-size: 24px;
    animation: confettiFall 2s ease-out forwards;
    pointer-events: none;
}

@keyframes confettiFall {
    0% {
        top: 0;
        opacity: 1;
        transform: rotate(0deg);
    }
    100% {
        top: 100%;
        opacity: 0;
        transform: rotate(720deg);
    }
}

/* Dialog box */
.dialog-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid #333;
    border-radius: 15px;
    padding: 20px;
    max-width: 500px;
    box-shadow: 0 8px 0 #333;
    transition: all 0.3s ease;
}

.question {
    font-size: clamp(14px, 2vw, 18px);
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-button {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(12px, 1.5vw, 16px);
    padding: 15px 30px;
    border: 4px solid #333;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 0 #333;
    position: relative;
    top: 0;
}

.game-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #333;
}

.game-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #333;
}

.yes-button {
    background: #4ecca3;
    color: white;
}

.yes-button:hover {
    background: #5fddb4;
}

.no-button {
    background: #ea5455;
    color: white;
}

.no-button:hover {
    background: #ff6b6b;
}

.retry-button {
    background: #f6b93b;
    color: #333;
    margin-top: 20px;
}

.retry-button:hover {
    background: #feca57;
}

.play-again-button {
    background: #4ecca3;
    color: white;
    margin-top: 20px;
}

.play-again-button:hover {
    background: #5fddb4;
}

/* Response box */
.response-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid #333;
    border-radius: 15px;
    padding: 20px;
    max-width: 500px;
    box-shadow: 0 8px 0 #333;
    animation: slideIn 0.5s ease-out;
}

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

#responseText {
    font-size: clamp(12px, 1.8vw, 16px);
    color: #333;
    line-height: 1.8;
}

.hidden {
    display: none !important;
}

/* Footer */
/* .footer {
    margin-top: 15px;
    text-align: center;
} */

.pixel-text {
    color: #a4b0be;
    font-size: clamp(8px, 1.2vw, 12px);
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .screen {
        padding: 20px;
        border-width: 4px;
    }
    
    .snowman-head {
        width: 60px;
        height: 60px;
    }
    
    .snowman-body {
        width: 80px;
        height: 80px;
    }
    
    .snowman-base {
        width: 100px;
        height: 100px;
    }
    
    .stick-arms {
        width: 160px;
        top: 100px;
    }
    
    .arm {
        font-size: 30px;
    }
    
    .game-button {
        padding: 12px 20px;
    }
}