body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #a6f1ff, #ffffff);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    animation: backgroundPulse 10s infinite alternate;
}

@keyframes backgroundPulse {
    0% { background: linear-gradient(135deg, #a6f1ff, #ffffff); }
    100% { background: linear-gradient(135deg, #ffb6c1, #ffffff); }
}

.container {
    text-align: center;
    background: #ffffffcc;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: popIn 1s ease;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

h1 {
    color: #ff6f91;
    margin-bottom: 25px;
    text-shadow: 2px 2px #fff;
}

.avatar-preview {
    width: 220px;
    height: 320px;
    margin: 0 auto 30px;
    position: relative;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.avatar-preview:hover {
    transform: translateY(-10px);
}

.avatar-head {
    top: 60px;
    width: 110px;
    height: 110px;
    background: #ffd1a4;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset -5px -5px 10px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

.avatar-hair {
    top: 30px;
    width: 130px;
    height: 70px;
    border-radius: 50%;
    background: #ffcc00;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.avatar-eyes {
    top: 95px;
    width: 80px;
    display: flex;
    justify-content: space-between;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.eye {
    width: 20px;
    height: 20px;
    background: #0000ff;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: blink 5s infinite;
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    92%, 94% { transform: scaleY(0.1); }
}

.avatar-mouth {
    top: 140px;
    width: 50px;
    height: 20px;
    border-radius: 10px;
    background: #ff6666;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.avatar-accessory {
    top: 10px;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.avatar-outfit {
    bottom: 0;
    width: 120px;
    height: 80px;
    border-radius: 20px 20px 0 0;
    background: #6bc1ff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: background 0.3s ease;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

select, input[type="color"] {
    padding: 8px 12px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

select:hover, input[type="color"]:hover {
    transform: scale(1.1);
}
