* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

head {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    color: #800020;
    text-align: center;
}

body {
    font-family: 'Playfair Display', serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eeeece;
    position: relative;
}

/* Heart background */
.heart-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60vmin;
    height: 60vmin;
    background-color: #ff4081;
    transform: translate(-50%, -43%) rotate(-45deg) scale(0.95);
    animation: throb 2s infinite alternate ease-in-out;
    z-index: -1;
}

.heart-bg:before,
.heart-bg:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #ff4081;
    border-radius: 50%;
}

.heart-bg:before {
    top: -50%;
    left: 0;
}

.heart-bg:after {
    top: 0;
    left: 50%;
}

@keyframes throb {
    0% {
        transform: translate(-50%, -43%) rotate(-45deg) scale(0.95);
    }
    100% {
        transform: translate(-50%, -43%) rotate(-45deg) scale(1.05);
    }
}

/* Main content wrapper to keep elements aligned */
.content-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

/* Main game container in the center */
.game-container {
    width: 500px; /* Fixed width */
    max-width: 90%;
    text-align: center;
    position: relative;
    z-index: 5;
}

/* Shimmer animation */
@keyframes shimmer {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1);
    }
}

/* Rococo-inspired title styling */
.rococo-title-container {
    position: relative;
    width: 100%;
    margin-bottom: 2.5rem;
    text-align: center;
}

.rococo-title {
    font-family: 'Tangerine', cursive;
    font-size: 5.5rem;
    color: #800020;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 5;
    margin: 0;
    padding: 0.5rem 0;
    animation: shimmer 3s infinite alternate;
}

.rococo-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: #b33864;
    margin-top: -1rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Lace background and decorative elements */
.lace-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200" fill="none"><path d="M50,50 Q75,25 100,50 Q125,75 150,50 Q175,25 200,50 Q175,75 200,100 Q175,125 150,100 Q125,75 100,100 Q75,125 50,100 Q25,75 50,50" stroke="rgba(255,255,255,0.8)" fill="none" stroke-width="1"/></svg>');
    background-size: 100px 100px;
    opacity: 0.15;
    z-index: 1;
}

/* Ornate frame for the title */
.rococo-frame {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    height: calc(100% + 40px);
    border: 3px solid rgba(255, 192, 203, 0.7);
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 192, 203, 0.4);
    z-index: 0;
}

.rococo-frame:before, .rococo-frame:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><path d="M10,50 C10,30 30,10 50,10 C70,10 90,30 90,50 C90,70 70,90 50,90 C30,90 10,70 10,50 Z" stroke="%23d8389d" fill="none" stroke-width="2"/><path d="M20,50 C20,35 35,20 50,20 C65,20 80,35 80,50 C80,65 65,80 50,80 C35,80 20,65 20,50 Z" stroke="%23d8389d" fill="none" stroke-width="1.5"/><path d="M30,50 C30,40 40,30 50,30 C60,30 70,40 70,50 C70,60 60,70 50,70 C40,70 30,60 30,50 Z" stroke="%23d8389d" fill="none" stroke-width="1"/><path d="M50,10 L50,30 M90,50 L70,50 M50,90 L50,70 M10,50 L30,50" stroke="%23d8389d" stroke-width="1"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.rococo-frame:before {
    top: -40px;
    left: -40px;
}

.rococo-frame:after {
    top: -40px;
    right: -40px;
}

/* Corner decorations */
.corner-decoration {
    position: absolute;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
}

.corner-decoration.top-left {
    top: -15px;
    left: -15px;
    transform: rotate(0deg);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><path d="M20,80 C40,40 80,40 80,20 C80,60 60,80 20,80 Z" fill="%23d8389d" fill-opacity="0.3"/><path d="M30,70 C40,50 70,50 70,30 C70,55 55,70 30,70 Z" stroke="%23800020" fill="none" stroke-width="1"/></svg>');
}

.corner-decoration.top-right {
    top: -15px;
    right: -15px;
    transform: rotate(90deg);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><path d="M20,80 C40,40 80,40 80,20 C80,60 60,80 20,80 Z" fill="%23d8389d" fill-opacity="0.3"/><path d="M30,70 C40,50 70,50 70,30 C70,55 55,70 30,70 Z" stroke="%23800020" fill="none" stroke-width="1"/></svg>');
}

.corner-decoration.bottom-left {
    bottom: -15px;
    left: -15px;
    transform: rotate(270deg);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><path d="M20,80 C40,40 80,40 80,20 C80,60 60,80 20,80 Z" fill="%23d8389d" fill-opacity="0.3"/><path d="M30,70 C40,50 70,50 70,30 C70,55 55,70 30,70 Z" stroke="%23800020" fill="none" stroke-width="1"/></svg>');
}

.corner-decoration.bottom-right {
    bottom: -15px;
    right: -15px;
    transform: rotate(180deg);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><path d="M20,80 C40,40 80,40 80,20 C80,60 60,80 20,80 Z" fill="%23d8389d" fill-opacity="0.3"/><path d="M30,70 C40,50 70,50 70,30 C70,55 55,70 30,70 Z" stroke="%23800020" fill="none" stroke-width="1"/></svg>');
}

/* Ornate divider below title */
.ornate-divider {
    position: relative;
    height: 30px;
    width: 80%;
    margin: 0 auto;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 30" fill="none"><path d="M0,15 C50,0 100,30 150,15 C200,0 250,30 300,15" stroke="%23d8389d" stroke-width="1" fill="none"/><circle cx="150" cy="15" r="5" fill="%23d8389d" fill-opacity="0.3"/><circle cx="100" cy="15" r="2" fill="%23d8389d" fill-opacity="0.3"/><circle cx="200" cy="15" r="2" fill="%23d8389d" fill-opacity="0.3"/><circle cx="50" cy="15" r="1" fill="%23d8389d" fill-opacity="0.3"/><circle cx="250" cy="15" r="1" fill="%23d8389d" fill-opacity="0.3"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 2;
}

/* Wheel section */
.wheel-container {
    width: 350px;
    height: 350px;
    margin: 0 auto 2rem;
    position: relative;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.01, 0.99);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border: 8px solid #d8389d;
    z-index: 500; /* Lower than cupcake */
    transform-origin: center;
}

.wheel-center {
    display: none; /* Hidden */
}

.wheel-section {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform-origin: center;
    border: 1px solid rgb(252, 173, 217);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(238, 232, 182);
    font-weight: bold;
    font-size: 1.25rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.pointer {
    display: none; /* Hidden */
}

/* Hide old controls */
.controls,
.spin-button {
    display: none;
}

/* Hide old result container */
.result-container {
    display: none;
}

/* Coin mechanism on the left */
.coin-mechanism {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    margin-right: 20px;
}

#coin-slot {
    width: 180px;
    height: 200px;
    background: linear-gradient(to right, #b8860b, #ffd700, #b8860b);
    border-radius: 10px;
    border: 4px solid #8b5e3c;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

#coin-slot:after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 10px;
    background: #000;
    border-radius: 5px;
}

.coin-slot-hover {
    box-shadow: 0 0 15px #ffd700 !important;
}

#penny {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, #f48003, #8b5e3c);
    border-radius: 50%;
    cursor: grab;
    margin-top: 20px;
    border: 2px solid #8b5e3c;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2f0404;
    font-weight: bold;
    font-size:1rem;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

#penny:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Cupcake Button Styles */
.cupcake-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    z-index: 1000; /* High z-index to appear above wheel */
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto; /* Ensure it remains clickable */
}

.cupcake-container.disabled {
    cursor: not-allowed;
    filter: grayscale(70%);
    opacity: 0.7;
}

.cupcake-container:not(.disabled):hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.cupcake-container:not(.disabled):active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Make sure the cupcake elements are visible */
.cupcake-wrapper, 
.cupcake, 
.cupcake-base, 
.cupcake-liner, 
.cupcake-frosting,
.cherry,
.spin-text {
    z-index: 1001; /* Higher than container */
}

.cupcake-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.cupcake-container:not(.disabled):hover .cupcake-wrapper {
    animation: cupcakeHover 1s infinite alternate ease-in-out;
}

.cupcake-container.spinning .cupcake-wrapper {
    animation: cupcakeSpinInPlace 4s forwards cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.cupcake {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

/* White circular background behind cupcake */
.cupcake-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    z-index: 999; /* Just below the cupcake */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Cupcake Base */
.cupcake-base {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 45%;
    background: linear-gradient(to bottom, #d19f6e, #9e7245);
    border-radius: 0 0 30% 30% / 0 0 40% 40%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1;
}

.cupcake-base:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.1) 5px,
        transparent 5px,
        transparent 10px
    );
}

.cupcake-liner {
    position: absolute;
    bottom: 7%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 15%;
    background: #ff69b4;
    border-radius: 5px 5px 30% 30% / 5px 5px 40% 40%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 2;
}

.cupcake-liner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.3) 3px,
        transparent 3px,
        transparent 6px
    );
}

/* Cupcake Frosting */
.cupcake-frosting {
    position: absolute;
    bottom: 35%;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 75%;
    background: linear-gradient(to bottom, #ff80ed, #ff40c0);
    border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 3;
}

.cupcake-frosting:before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 60%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    transform: rotate(-5deg);
}

/* Sprinkles */
.sprinkle {
    position: absolute;
    width: 8px;
    height: 2px;
    background-color: #ffff00;
    border-radius: 1px;
    z-index: 4;
}

.sprinkle:nth-child(2n) {
    background-color: #00ffff;
}

.sprinkle:nth-child(3n) {
    background-color: #ff0000;
}

.sprinkle:nth-child(5n) {
    background-color: #00ff00;
}

/* Cherry on top */
.cherry {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 25%;
    height: 25%;
    background: radial-gradient(circle at 70% 30%, #ff0000, #aa0000);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 4;
}

.cherry:before {
    content: '';
    position: absolute;
    top: -100%;
    left: 50%;
    width: 30%;
    height: 120%;
    background: #5d8000;
    border-radius: 50% / 10%;
    transform: translateX(-50%) rotate(-15deg);
    z-index: -1;
}

.cherry:after {
    content: '';
    position: absolute;
    top: 20%;
    left: 70%;
    width: 30%;
    height: 30%;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

/* Spin text */
.spin-text {
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 1.2rem;
    color: #800020;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: sparkleText 2s infinite alternate;
    white-space: nowrap;
}

/* Add a glowing effect during spin */
.cupcake-container.spinning {
    filter: drop-shadow(0 0 10px rgba(255, 192, 203, 0.8));
}

/* Back button with kaleidoscope */
.back-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    margin-left: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button .kaleidoscope-button {
    width: 100px;
    height: 100px;
    transition: all 0.3s ease;
}

.back-button:hover .kaleidoscope-button {
    transform: scale(1.05);
}

.back-button span {
    display: block;
    color: #800020;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
    font-weight: bold;
}

/* Cloud Results Animation */
.cloud-result-container {
    position: fixed; /* Fixed positioning */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999; /* Very high z-index */
}

.result-cloud {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 320px;
    height: 200px;
    padding: 30px;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 50%;
    z-index: 1200;
    animation: none;
    pointer-events: none;
}

.result-cloud.active {
    animation: floatCloud 10s forwards cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.result-cloud-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0) 100%);
    filter: blur(5px);
    border-radius: 50%;
    z-index: -1;
}

.result-cloud-shape:before,
.result-cloud-shape:after {
    content: '';
    position: absolute;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
}

.result-cloud-shape:before {
    width: 70%;
    height: 70%;
    top: -30%;
    left: -10%;
}

.result-cloud-shape:after {
    width: 80%;
    height: 80%;
    top: -20%;
    right: -20%;
}

.result-text {
    font-family: 'Playfair Display', serif;
    color: #800020;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.6);
    z-index: 1201;
    opacity: 0;
    animation: fadeInText 1s 1s forwards;
}

/* Sparkles and Stardust */
.sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    pointer-events: none;
    z-index: 1100;
    opacity: 0;
}

.stardust {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: rgba(255, 220, 250, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.6);
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
}

/* Background clouds */
.background-cloud {
    position: absolute;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4) 60%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0;
    z-index: 1050;
    pointer-events: none;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 0;
    text-align: center;
    border-top: 2px solid #ff4081;
    z-index: 100; /* Lower z-index so clouds can appear above */
}

.footer p {
    color: #800020;
    font-size: 0.9rem;
}

/* Animations */
@keyframes floatCloud {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    15% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    20% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    70% {
        transform: translate(-10%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(100%, -50%) scale(0.8);
        opacity: 0;
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatBackgroundCloud {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    20% {
        transform: translate(10%, -10%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(100%, -30%) scale(0.8);
        opacity: 0;
    }
}

@keyframes sparkleAnim {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    20% {
        transform: translate(10px, -10px) scale(1.5);
        opacity: 1;
    }
    100% {
        transform: translate(50px, -50px) scale(0);
        opacity: 0;
    }
}

@keyframes stardustAnim {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    30% {
        transform: translate(15px, -20px) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(40px, -60px) scale(0);
        opacity: 0;
    }
}

@keyframes cupcakeHover {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes cupcakeSpinInPlace {
    0% {
        transform: rotate(0deg);
    }
    30% {
        transform: rotate(180deg);
    }
    60% {
        transform: rotate(720deg);
    }
    80% {
        transform: rotate(1080deg);
    }
    100% {
        transform: rotate(1440deg);
    }
}

@keyframes sparkleText {
    0% {
        text-shadow: 0 0 5px rgba(255, 105, 180, 0.5), 0 0 10px rgba(255, 105, 180, 0.3);
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 105, 180, 0.8), 0 0 20px rgba(255, 105, 180, 0.5);
    }
}

/* Bounce animation for cupcake when enabled */
@keyframes bounce {
    0%, 100% { 
        transform: translate(-50%, -50%); 
    }
    50% { 
        transform: translate(-50%, -60%); 
    }
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .content-wrapper {
        flex-direction: column;
        padding: 20px;
    }
    
    .coin-mechanism {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .back-button {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .game-container {
        margin: 30px 0;
    }
}

@media (max-width: 768px) {
    .rococo-title {
        font-size: 4rem;
    }
    
    .rococo-subtitle {
        font-size: 1.2rem;
    }
    
    .rococo-frame:before, .rococo-frame:after {
        width: 60px;
        height: 60px;
    }
    
    .corner-decoration {
        width: 60px;
        height: 60px;
    }
    
    .cupcake-container {
        width: 100px;
        height: 100px;
    }
    
    .cupcake-background {
        width: 120px;
        height: 120px;
    }
    
    .spin-text {
        font-size: 1rem;
    }
    
    .result-cloud {
        width: 280px;
        height: 180px;
    }
    
    .result-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .wheel-container {
        width: 250px;
        height: 250px;
    }
    
    .rococo-title {
        font-size: 3.5rem;
    }
    
    .rococo-subtitle {
        font-size: 1rem;
    }
    
    .result {
        font-size: 1.2rem;
    }
    
    .cupcake-container {
        width: 80px;
        height: 80px;
    }
    
    .cupcake-background {
        width: 100px;
        height: 100px;
    }
    
    .spin-text {
        font-size: 0.9rem;
    }
    
    #coin-slot {
        width: 140px;
        height: 160px;
    }
    
    #penny {
        width: 70px;
        height: 70px;
    }
    
    .back-button .kaleidoscope-button {
        width: 80px;
        height: 80px;
    }
    
    .rococo-frame:before, .rococo-frame:after {
        width: 40px;
        height: 40px;
    }
    
    .corner-decoration {
        width: 40px;
        height: 40px;
    }
    
    .ornate-divider {
        height: 20px;
    }
    
    .result-cloud {
        width: 240px;
        height: 150px;
    }
    
    .result-text {
        font-size: 1rem;
    }
}