body {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    background-color: #0a0a0a;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    color: #e0e0e0;
}

html {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    overflow: visible;
    padding: 15px 10px 20px;
}
.game-wrapper {
    position: relative;
    /* Three constraints: max cap, horizontal fit, vertical fit (keep 16:9 video on screen) */
    width: min(1400px, calc(100vw - 20px), calc((100vh - 160px) * 3 / 2));
    margin: 0 auto 0;
    transform-origin: top center;
    transition: transform 0.3s ease, width 0.3s ease;
}

.site-logo-link {
    position: fixed;
    top: 18px;
    left: 20px;
    z-index: 1000;
    display: inline-block;
    line-height: 0;
    cursor: pointer;
}
.site-logo {
    height: 2.73rem;
    width: auto;
    display: block;
    user-select: none;
}

.modern-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.82rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: none;
    margin: 10px 0 14px 0;
}
.modern-title .pan { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 700; color: #ffffff; }
.modern-title .arcadia { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; color: #ffffff; }

@keyframes cyberpunk-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(120, 255, 60, 0.3); }
    50% { text-shadow: 0 0 30px rgba(120, 255, 60, 0.5); }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes glowing {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
}

@keyframes gentle-pulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(243, 156, 18, 0.2);
    }
    50% {
        box-shadow: 0 0 12px rgba(243, 156, 18, 0.3);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Disclaimer Subtitle */
.disclaimer-subtitle {
    text-align: center;
    margin-top: -5px;
    margin-bottom: 20px;
    padding: 0 20px;
    max-width: 900px;
}

.disclaimer-subtitle p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #888;
    line-height: 1.5;
    font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .disclaimer-subtitle {
        margin-bottom: 15px;
        padding: 0 15px;
    }

    .disclaimer-subtitle p {
        font-size: 13px;
    }
}
