:root {
    --primary-color: #ffffff;
    --accent-color: #007bff;
    --overlay-bg: rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
    --font-family: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background-color: #000;
    color: var(--text-color);
    overflow: hidden;
    /* Prevent body scroll, we handle it manually */
    height: 100vh;
    width: 100vw;
}

/* Fullscreen Game Container */
.game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}


/* Overlays */
.overlay-ui {
    position: fixed;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through to game mostly */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.overlay-element {
    pointer-events: auto;
    /* Re-enable clicks for specific buttons */
    position: absolute;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.overlay-element:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Top Left: Submit Button */


/* Top Right: Social Avatar */
/* Bottom Left: UI Container */
.bottom-left-ui {
    position: absolute;
    bottom: 30px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    z-index: 20;
}

/* Info Button */
.btn-info {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(225, 225, 225, 0.1);
    border: 1px solid rgba(225, 225, 225, 0.2);
    backdrop-filter: blur(10px) brightness(0.9);
    -webkit-backdrop-filter: blur(10px) brightness(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    pointer-events: auto;
    color: white;
    text-decoration: none;
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-info svg {
    width: 20px;
    height: 20px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.follow-creator-link {
    /* Removed absolute positioning */
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: auto;
    transition: color 0.2s, transform 0.2s;
    background: rgba(225, 225, 225, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(225, 225, 225, 0.2);
    backdrop-filter: blur(5px) brightness(0.9);
    -webkit-backdrop-filter: blur(5px) brightness(0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.follow-creator-link:hover {
    color: white;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

/* Bottom Right: Navigation Arrows */
.nav-controls {
    position: absolute;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: auto;
}

.btn-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(225, 225, 225, 0.1);
    border: 1px solid rgba(225, 225, 225, 0.2);
    backdrop-filter: blur(10px) brightness(0.9);
    -webkit-backdrop-filter: blur(10px) brightness(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-nav svg {
    width: 24px;
    height: 24px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Form Pages (Submit/Admin) */
.page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px;
    overflow-y: auto;
}

.glass-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-form.wide {
    max-width: 800px;
}

.form-title {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.4);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #007bff, #00d2ff);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.status-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.status-success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.status-error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Success Animation Overlay */
.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 33, 62, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #2ecc71;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-overlay.active .checkmark-circle {
    transform: scale(1);
    transition-delay: 0.2s;
}

.checkmark {
    width: 40px;
    height: 40px;
    fill: white;
}

.success-text {
    font-size: 1.2rem;
    color: white;
    text-align: center;
    max-width: 80%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.success-overlay.active .success-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: none;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* About Page Text */
.gradient-text {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(270deg, #ff00cc, #3333ff, #00ccff, #ff00cc);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-animation 12s ease infinite;
    margin-bottom: 20px;
    line-height: 1.2;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.about-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Neumorphic Card */
.neumorphic-card {
    background: linear-gradient(145deg, #171729, #1c1c32);
    box-shadow: 20px 20px 60px #121222,
        -20px -20px 60px #22254a;
    border-radius: 30px;
    padding: 60px 40px;
    width: 100%;
    max-width: 800px;
    border: none;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .btn-nav {
        width: 40px;
        height: 40px;
    }

    .btn-nav svg {
        width: 20px;
        height: 20px;
    }
}

/* Follow Section */
.follow-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-out forwards;
}

.follow-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.neumorphic-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, #171729, #1c1c32);
    box-shadow: 8px 8px 16px #121222,
        -8px -8px 16px #22254a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.neumorphic-circle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 12px 12px 20px #121222,
        -12px -12px 20px #22254a;
    background: linear-gradient(145deg, #1c1c32, #171729);
}

.social-icon {
    width: 57px;
    height: 57px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}