:root {
    --color-lavender: #cdb4db;
    --color-pale-pink: #ffc8dd;
    --color-pink: #ffafcc;
    --color-sky-blue: #bde0fe;
    --color-soft-blue: #a2d2ff;
    --white-sheen: rgba(255, 255, 255, 0.8);
}

* {
    box-sizing: border-box;
    position: relative;
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: radial-gradient(circle at 100%, rgba(255, 200, 221, 1) 0%, rgba(205, 180, 219, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    width: 25rem;
    height: 25rem;
}

.cake-wrapper {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: float 5s ease-in-out infinite;
}

.wish-text {
    position: absolute;
    top: -2.5rem;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 2rem;
    text-shadow: 0.125rem 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.cake {
    position: absolute;
    width: 15.625rem;
    height: 12.5rem;
    bottom: 5rem;
}

.tier {
    position: absolute;
    border-radius: 0.75rem 0.75rem 0.5rem 0.5rem;
    box-shadow: inset -0.9375rem 0 1.25rem rgba(0, 0, 0, 0.05), 0 0.625rem 1.25rem rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tier-1 {
    width: 80%;
    left: 10%;
    height: 5rem;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-soft-blue) 0%, #ffffff 100%);
}

.tier-2 {
    height: 4.375rem;
    bottom: 5rem;
    width: 65%;
    left: 17.5%;
    background: linear-gradient(135deg, var(--color-pink) 0%, #ffffff 100%);
}

.tier-3 {
    height: 3.75rem;
    bottom: 9.375rem;
    width: 45%;
    left: 27.5%;
    background: linear-gradient(135deg, var(--color-pale-pink) 0%, #ffffff 100%);
}

.filling {
    position: absolute;
    height: 0.3125rem;
    width: 100%;
    top: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.icing-group {
    position: absolute;
    width: 100%;
    height: 1.875rem;
    display: flex;
    top: 0;
}

.icing {
    flex: 1;
    height: 1.25rem;
    border-radius: 0 0 1.25rem 1.25rem;
    background-color: white;
}

.plate {
    position: absolute;
    width: 20rem;
    height: 1.25rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    bottom: 4.0625rem;
    z-index: -1;
    backdrop-filter: blur(0.3125rem);
}

.candles {
    position: absolute;
    width: 40%;
    left: 30%;
    height: 3.125rem;
    bottom: 13.125rem;
}

.candle {
    position: absolute;
    background: linear-gradient(to right, var(--color-lavender), #e5d9f2);
    left: 50%;
    transform: translateX(-50%);
    width: 0.875rem;
    height: 2.5rem;
    bottom: 0;
    border-radius: 0.25rem;
}

.flame-in {
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    background-color: #fec31e;
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    animation: flicker 0.1s ease-in-out infinite alternate;
    box-shadow: 0 0 1.5625rem #fec31e;
    left: -0.1875rem;
    bottom: 0.9375rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1.25rem);
    }
}

@keyframes flicker {
    0% {
        transform: rotate(45deg) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: rotate(45deg) scale(1.1);
        opacity: 1;
    }
}