/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 100%;
    height: 100svh;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.background {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 100%;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* Main Content Container - Centered */
.main-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 500px;
    height: 100svh;
    overflow: hidden;
}

/* Logo - Centered */
.main-content .logo {
    position: absolute;
    top: 10.5%;
    left:30%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* Wheel Elements - All Centered */
.coin, .frame, .wheels, .middle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.coin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomInOut 2s ease-in-out infinite alternate;
}

.frame {
    max-width: 450px;
}

.wheels {
    max-width: 310px;
    transition: transform 5s cubic-bezier(0.23, 1, 0.32, 1);
}

.middle {
    max-width: 80px;
}

.pointer {
    position: absolute;
    top: 21.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 50px;
}

.pointer img, .middle img, .wheels img, .frame img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Action Buttons - Bottom Centered */
.buttons {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 1002;
}

.buttons img {
    width: 100%;
    height: auto;
    animation: smoothZoom 1.5s ease-in-out infinite;
    cursor: pointer;
}

/* Animations */
@keyframes zoomInOut {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

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

/* Popup Modal Styles */
.popup-modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-content {
    position: relative;
    width: min(520px, calc(100vw - 32px));
}

.popup-message {
    width: 100%;
    border-radius: 15px;
}

.popup-button {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .frame { max-width: 400px; }
    .wheels { max-width: 300px; }
    .middle { max-width: 70px; }
    .buttons { bottom: 8%; max-width: 320px; }
}

@media (max-width: 480px) {
    .main-content .logo { max-width: 220px; top: 12%; }
    .frame { max-width: 320px; }
    .wheels { max-width: 240px; }
    .buttons { bottom: 5%; max-width: 280px; }
}