/**
 * ArtBox Gaming Tool - Custom Styles
 * Fully responsive gaming interface with fixed white space issues
 */

/* ArtBox-specific styles - scoped to prevent global conflicts */
#artbox-gaming-tool,
.artbox-container {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
    background: #1a1e1a;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Ensure full viewport coverage for ArtBox only */
.artbox-container {
    background: linear-gradient(135deg, #1a1e1a 0%, #2a2e2a 50%, #1a1e1a 100%);
}

/* ArtBox container - full screen fix */
#artbox-gaming-tool, .artbox-container {
    min-height: 100vh;
    min-height: 100dvh; /* Modern viewport units */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.artbox-container * {
    box-sizing: border-box;
}

/* Animated Background - ensure full coverage */
.artbox-animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(181, 140, 66, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(163, 18, 23, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(181, 140, 66, 0.05) 0%, transparent 70%);
    animation: artbox-glow 8s ease-in-out infinite;
    z-index: 1;
    min-height: 100vh;
}

@keyframes artbox-glow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Service Status Glow Animation */
@keyframes service-glow {
    0%, 100% {
        border-color: rgba(181, 140, 66, 0.6);
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(181, 140, 66, 0.2);
    }
    50% {
        border-color: rgba(181, 140, 66, 0.8);
        box-shadow: 
            0 8px 30px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(181, 140, 66, 0.3),
            inset 0 1px 0 rgba(181, 140, 66, 0.3);
    }
}

/* Enhanced Background Particles */
.artbox-animated-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(181, 140, 66, 0.05) 0%, transparent 15%),
        radial-gradient(circle at 90% 80%, rgba(163, 18, 23, 0.05) 0%, transparent 15%),
        radial-gradient(circle at 50% 90%, rgba(181, 140, 66, 0.03) 0%, transparent 10%);
    animation: artbox-particles 15s linear infinite;
}

@keyframes artbox-particles {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100%) rotate(360deg); }
}

/* Modern UI Enhancements */
.artbox-container {
    position: relative;
    overflow: hidden;
}

.artbox-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(181, 140, 66, 0.05) 0%, transparent 70%);
    animation: artbox-rotate 20s linear infinite;
    z-index: 0;
}

@keyframes artbox-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.artbox-panel {
    position: relative;
    z-index: 2;
}

/* Container and Layout - Fixed height issues */
.artbox-container {
    background: linear-gradient(135deg, #1a1e1a 0%, #2a2e2a 50%, #1a1e1a 100%);
    font-family: 'Asap', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #b58c42;
    margin: 0;
    padding: 0; /* Remove padding for full screen */
    box-sizing: border-box;
    border-radius: 0; /* Remove border radius */
    border: none; /* Remove border */
    backdrop-filter: blur(10px);
    box-shadow: none; /* Remove shadow */
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.artbox-panel {
    background: rgba(36, 40, 36, 0.95);
    border-radius: 0; /* Remove border radius */
    padding: clamp(15px, 3vw, 25px);
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 100%; /* Full width */
    margin: 0;
}

/* Scrollbar styling */
.artbox-panel::-webkit-scrollbar {
    width: 8px;
}

.artbox-panel::-webkit-scrollbar-track {
    background: rgba(36, 40, 36, 0.5);
    border-radius: 4px;
}

.artbox-panel::-webkit-scrollbar-thumb {
    background: #b58c42;
    border-radius: 4px;
}

.artbox-panel::-webkit-scrollbar-thumb:hover {
    background: #d4a652;
}

/* Content layout */
.artbox-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
}

/* Typography - Responsive font sizing with unique sizes - Override global styles */
.artbox-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem) !important;
    font-family: 'Asap', sans-serif !important;
    font-weight: 700 !important;
    color: #b58c42 !important;
    text-shadow:
        0 0 20px rgba(181, 140, 66, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.8) !important;
    letter-spacing: 1px !important;
    margin-bottom: clamp(10px, 2vw, 20px) !important;
    line-height: 1.2 !important;
    text-align: center !important;
    flex-shrink: 0;
}

/* ArtBox-specific heading styles - scoped to prevent global conflicts */
.artbox-container h1,
.artbox-container h2,
.artbox-container h3,
.artbox-container h4,
.artbox-container h5,
.artbox-container h6,
#artbox-gaming-tool h1,
#artbox-gaming-tool h2,
#artbox-gaming-tool h3,
#artbox-gaming-tool h4,
#artbox-gaming-tool h5,
#artbox-gaming-tool h6 {
    font-family: 'Asap', sans-serif !important;
    color: #b58c42 !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.artbox-container h1,
#artbox-gaming-tool h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem) !important; }
.artbox-container h2,
#artbox-gaming-tool h2 { font-size: clamp(1.4rem, 3.5vw, 2.0rem) !important; }
.artbox-container h3,
#artbox-gaming-tool h3 { font-size: clamp(1.2rem, 3vw, 1.6rem) !important; }
.artbox-container h4,
#artbox-gaming-tool h4 { font-size: clamp(1.0rem, 2.5vw, 1.3rem) !important; }
.artbox-container h5,
#artbox-gaming-tool h5 { font-size: clamp(0.9rem, 2.2vw, 1.1rem) !important; }
.artbox-container h6,
#artbox-gaming-tool h6 { font-size: clamp(0.8rem, 2vw, 1.0rem) !important; }

.artbox-section {
    margin-bottom: clamp(15px, 3vw, 25px);
    flex-shrink: 0;
}

.artbox-section-title {
    color: #b58c42 !important;
    font-family: 'Asap', sans-serif !important;
    font-weight: 600 !important;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem) !important;
    text-align: center !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    margin-bottom: clamp(8px, 1.8vw, 12px) !important;
    line-height: 1.2 !important;
    position: relative;
    padding-bottom: 6px;
}

.artbox-section-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b58c42, transparent);
    margin: 5px auto 0;
}

/* Enhanced Service Status Indicator */
.artbox-service-status {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 30, 26, 0.95) 0%, rgba(36, 40, 36, 0.95) 100%);
    border: 3px solid rgba(181, 140, 66, 0.6);
    border-radius: 20px;
    padding: clamp(12px, 2.5vw, 18px) clamp(20px, 4vw, 30px);
    margin: clamp(15px, 3vw, 25px) auto;
    width: 75%;
    max-width: 1000px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(181, 140, 66, 0.2);
    backdrop-filter: blur(10px);
    animation: service-glow 3s ease-in-out infinite;
}

.artbox-service-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(181, 140, 66, 0.1), transparent);
    animation: status-shimmer 4s ease-in-out infinite;
}

@keyframes status-shimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.artbox-service-status .status-dot {
    width: clamp(14px, 2.5vw, 18px);
    height: clamp(14px, 2.5vw, 18px);
    border-radius: 50%;
    background: radial-gradient(circle, #00ff41 0%, #00cc33 100%);
    margin-right: clamp(12px, 3vw, 18px);
    box-shadow: 
        0 0 15px rgba(0, 255, 65, 0.8),
        0 0 30px rgba(0, 255, 65, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: enhanced-pulse 2s ease-in-out infinite;
    position: relative;
}

.artbox-service-status .status-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: dot-shine 3s ease-in-out infinite;
}

.artbox-service-status.offline .status-dot {
    background: radial-gradient(circle, #ff4141 0%, #cc1111 100%);
    box-shadow: 
        0 0 15px rgba(255, 65, 65, 0.8),
        0 0 30px rgba(255, 65, 65, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Enhanced Pulse Animation */
@keyframes enhanced-pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
        box-shadow: 
            0 0 15px rgba(0, 255, 65, 0.8),
            0 0 30px rgba(0, 255, 65, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        transform: scale(1.15); 
        opacity: 0.9;
        box-shadow: 
            0 0 20px rgba(0, 255, 65, 1),
            0 0 40px rgba(0, 255, 65, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* Dot Shine Animation */
@keyframes dot-shine {
    0%, 100% { 
        opacity: 0.4; 
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Legacy pulse for compatibility */
@keyframes artbox-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.artbox-service-status .status-text {
    color: #d4a652;
    font-family: 'Asap', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(181, 140, 66, 0.3);
    letter-spacing: 0.5px;
    position: relative;
}

.artbox-service-status .status-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(181, 140, 66, 0.5), transparent);
    animation: text-glow 4s ease-in-out infinite;
}

@keyframes text-glow {
    0%, 100% { 
        opacity: 0.3;
        transform: scaleX(0.8);
    }
    50% { 
        opacity: 0.8;
        transform: scaleX(1.2);
    }
}

/* Welcome Section */
.artbox-welcome {
    margin-bottom: clamp(15px, 3vw, 25px);
    text-align: center;
    flex-shrink: 0;
}

.artbox-welcome h4 {
    color: #b58c42 !important;
    font-family: 'Asap', sans-serif !important;
    font-weight: 600 !important;
    padding: clamp(10px, 2vw, 15px);
    background: rgba(181, 140, 66, 0.1);
    border: 1px solid rgba(181, 140, 66, 0.3);
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 0 !important;
    font-size: clamp(0.85rem, 1.8vw, 1.0rem) !important;
}

/* Info Boxes - Enhanced theme design */
.artbox-info-box {
    background: linear-gradient(135deg, rgba(36, 40, 36, 0.85) 0%, rgba(26, 30, 26, 0.9) 100%);
    border: 2px solid rgba(181, 140, 66, 0.4);
    border-radius: 15px;
    padding: clamp(20px, 3.5vw, 28px) clamp(16px, 3vw, 22px);
    color: #d4a652;
    font-family: 'Asap', sans-serif;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: clamp(15px, 2.5vw, 20px);
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(181, 140, 66, 0.2);
}

.artbox-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(181, 140, 66, 0.1), transparent);
    transition: left 0.6s ease-in-out;
}

.artbox-info-box:hover::before {
    left: 100%;
}

.artbox-info-box:hover {
    border-color: rgba(181, 140, 66, 0.6);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(181, 140, 66, 0.3);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.artbox-info-box p {
    margin: 0;
    position: relative;
    z-index: 1;
}

.artbox-info-small {
    background: rgba(181, 140, 66, 0.1);
    border: 1px solid rgba(181, 140, 66, 0.3);
    border-radius: 12px;
    padding: clamp(15px, 3vw, 22px);
    color: rgba(181, 140, 66, 0.85);
    font-family: 'Asap', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    text-align: center;
    font-weight: 500;
    margin-bottom: clamp(10px, 2vw, 15px);
}

.artbox-info-large {
    background: linear-gradient(135deg, rgba(181, 140, 66, 0.15) 0%, rgba(148, 116, 54, 0.18) 100%);
    border: 2px solid rgba(181, 140, 66, 0.4);
    border-radius: 12px;
    padding: clamp(20px, 4vw, 28px);
    color: #b58c42;
    font-family: 'Asap', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: clamp(15px, 3vw, 25px);
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Form Controls - Responsive sizing */
.artbox-input {
    background: rgba(26, 30, 26, 0.95);
    color: #ffffff;
    border: 2px solid #3a3e3a;
    border-radius: 12px;
    padding: clamp(10px, 2vw, 12px) clamp(12px, 2.5vw, 15px);
    font-family: 'Asap', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
    width: 100%;
}

.artbox-input:focus {
    border-color: #b58c42;
    background: rgba(46, 50, 46, 0.95);
    box-shadow: 0 0 0 0.2rem rgba(181, 140, 66, 0.25), 0 0 20px rgba(181, 140, 66, 0.2);
    color: #ffffff;
    outline: none;
}

/* Input Group Spacing */
.artbox-input-group {
    display: flex;
    gap: clamp(10px, 2vw, 15px);
    margin-bottom: clamp(15px, 3vw, 20px);
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.artbox-input-group .artbox-input {
    flex: 1;
    min-width: 200px;
}

/* Box Configuration */
.artbox-box-config {
    margin-bottom: clamp(15px, 3vw, 25px);
    flex-shrink: 0;
}

.artbox-box-config .artbox-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Always 50/50 split */
    gap: clamp(15px, 3vw, 20px);
    justify-content: center;
    width: 100%;
}

.artbox-box-config .artbox-btn-group .artbox-btn {
    margin-right: 0;
    width: 100%;
    padding: clamp(15px, 3vw, 20px);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 600;
}

/* Single Lock/Unlock Toggle Button - Full Width */
.artbox-lock-toggle-btn {
    margin-top: 15px;
    width: 100%;
    padding: clamp(15px, 3vw, 20px);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

/* Dynamic Player ID Section */
.artbox-player-id-section {
    position: relative;
    margin-bottom: clamp(25px, 5vw, 35px);
    width: 100%;
}

.artbox-id-container {
    width: 100%;
    margin-bottom: 0;
}

.artbox-game-id-wrapper {
    background: linear-gradient(135deg, rgba(26, 30, 26, 0.3) 0%, rgba(36, 40, 36, 0.3) 100%);
    border: 2px solid rgba(181, 140, 66, 0.3);
    border-radius: 15px;
    padding: clamp(15px, 3vw, 20px);
    position: relative;
    transition: all 0.3s ease;
    width: 100% !important;
    margin: 0 auto;
}

.artbox-game-id-wrapper.locked {
    background: linear-gradient(135deg, rgba(181, 140, 66, 0.15) 0%, rgba(163, 18, 23, 0.1) 100%);
    border-color: rgba(181, 140, 66, 0.6);
    box-shadow: 0 0 20px rgba(181, 140, 66, 0.2);
}

.artbox-input-wrapper {
    position: relative;
    margin-bottom: clamp(8px, 2vw, 10px);
    width: 100% !important;
}

.artbox-game-id-input {
    width: 100% !important;
}

/* Legacy support for old Activision ID classes */
.artbox-activision-section {
    position: relative;
    margin-bottom: clamp(25px, 5vw, 35px);
    width: 100%;
}

.artbox-activision-container {
    background: linear-gradient(135deg, rgba(26, 30, 26, 0.3) 0%, rgba(36, 40, 36, 0.3) 100%);
    border: 2px solid rgba(181, 140, 66, 0.3);
    border-radius: 15px;
    padding: clamp(15px, 3vw, 20px);
    position: relative;
    transition: all 0.3s ease;
    width: 100% !important;
    margin: 0 auto;
}

.artbox-activision-container.locked {
    background: linear-gradient(135deg, rgba(181, 140, 66, 0.15) 0%, rgba(163, 18, 23, 0.1) 100%);
    border-color: rgba(181, 140, 66, 0.6);
    box-shadow: 0 0 20px rgba(181, 140, 66, 0.2);
}

.artbox-activision-input {
    width: 100% !important;
}

.artbox-btn-lock {
    width: 100% !important;
    padding: clamp(15px, 3.5vw, 20px) !important; /* Increased padding for better touch targets */
    font-size: clamp(1.1rem, 2.8vw, 1.3rem) !important; /* Slightly larger text */
    font-weight: 600 !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: clamp(50px, 8vw, 65px);
    margin-top: 10px;
}

.artbox-btn-lock.locked {
    background: linear-gradient(135deg, rgba(163, 18, 23, 0.8) 0%, rgba(181, 140, 66, 0.7) 100%);
    border-color: rgba(181, 140, 66, 0.8);
}

.artbox-btn-lock.unlocked {
    background: linear-gradient(135deg, rgba(58, 62, 58, 0.9) 0%, rgba(181, 140, 66, 0.6) 100%);
    border-color: rgba(181, 140, 66, 0.5);
}


/* Enhanced Mode Option Design */
.artbox-mode-option {
    position: relative;
    overflow: hidden;
}

.artbox-mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(181, 140, 66, 0.3), transparent);
    transition: left 0.5s ease;
}

.artbox-mode-option:hover::before {
    left: 100%;
}

.artbox-mode-option.active {
    background: linear-gradient(135deg, rgba(163, 18, 23, 0.6) 0%, rgba(181, 140, 66, 0.6) 100%);
    color: #ffffff;
    box-shadow: inset 0 0 20px rgba(181, 140, 66, 0.3);
}

.artbox-mode-option:not(.active):hover {
    background: rgba(68, 72, 68, 0.9);
    color: #d4a652;
}

/* Mobile specific improvements */
@media screen and (max-width: 768px) {
    /* Make lock/unlock button full width on mobile */
    .artbox-input-group {
        flex-direction: column;
        gap: clamp(10px, 3vw, 15px);
    }
    
    .artbox-input-group .artbox-input {
        width: 100%;
        min-width: unset;
    }
    
    .artbox-input-group .artbox-btn {
        width: 100%;
    }
    
    /* Ensure lock button is full width on mobile */
    .artbox-btn-lock {
        width: 100% !important;
        min-height: clamp(55px, 10vw, 70px);
        font-size: clamp(1rem, 3vw, 1.2rem) !important;
    }
    
    /* Improve box config buttons on mobile */
    .artbox-box-config .artbox-btn-group {
        grid-template-columns: 1fr 1fr;
        gap: clamp(10px, 3vw, 15px);
    }
    
    /* Better mode selector on mobile - maintain full width 50/50 */
    .artbox-mode-selector {
        flex-direction: row;
        width: 100% !important; /* Force full width on mobile */
    }
    
    .artbox-mode-option {
        flex: 1 !important; /* Maintain 50/50 split on mobile */
        width: 50% !important; /* Force exactly 50% width on mobile */
        padding: clamp(12px, 3vw, 15px) clamp(8px, 2vw, 15px);
        font-size: clamp(0.85rem, 2vw, 1rem);
        box-sizing: border-box !important;
    }
}

@media screen and (max-width: 480px) {
    /* Ultra mobile optimizations */

    .artbox-activision-container {
        max-width: 100% !important;
        width: 100% !important;
    }

    .artbox-input-wrapper {
        margin-bottom: 10px;
    }
    
    /* Ensure 50/50 split for box buttons even on small screens */
    .artbox-box-config .artbox-btn-group {
        grid-template-columns: 1fr 1fr;
    }
    
    .artbox-box-config .artbox-btn-group .artbox-btn {
        padding: clamp(12px, 3vw, 15px) clamp(8px, 2vw, 12px);
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    
    /* Ensure mode selector remains full width 50/50 on small screens */
    .artbox-mode-selector {
        width: 100% !important; /* Force full width on small screens */
        flex-direction: row !important; /* Keep horizontal layout */
    }
    
    .artbox-mode-option {
        flex: 1 !important; /* Perfect 50/50 split on small screens */
        width: 50% !important; /* Force exactly 50% width */
        box-sizing: border-box !important;
        padding: clamp(10px, 2.5vw, 12px) clamp(6px, 1.5vw, 10px);
        font-size: clamp(0.8rem, 2vw, 0.95rem);
    }
}

/* Server selection improvements */
.artbox-server-selector-btn {
    animation: subtle-glow 3s ease-in-out infinite;
}

@keyframes subtle-glow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(181, 140, 66, 0.2);
    }
    50% {
        box-shadow: 0 8px 25px rgba(181, 140, 66, 0.35);
    }
}

/* Queue section improvements */
.artbox-queue-section {
    animation: queue-entrance 0.5s ease-out;
}

@keyframes queue-entrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress bar for queue */
.artbox-progress-container {
    width: 100%;
    height: 8px;
    background: rgba(26, 30, 26, 0.5);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.artbox-progress-bar {
    width: 100%;
    height: 100%;
    position: relative;
}

.artbox-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #a31217, #b58c42);
    border-radius: 4px;
    animation: progress-animation 3s ease-in-out infinite;
}

@keyframes progress-animation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Enhanced Server Selection Section - Redesigned */
.artbox-section {
    margin-bottom: clamp(15px, 3vw, 25px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.artbox-section-title {
    color: #b58c42 !important;
    font-family: 'Asap', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(0.8rem, 2vw, 1rem) !important; /* Smaller text */
    text-align: center !important;
    text-shadow: 
        0 0 15px rgba(181, 140, 66, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.8) !important;
    margin-bottom: clamp(15px, 3vw, 20px) !important;
    line-height: 1.2 !important;
    position: relative;
    padding: clamp(12px, 2.5vw, 18px) clamp(20px, 4vw, 30px);
    background: linear-gradient(135deg, rgba(181, 140, 66, 0.1) 0%, rgba(163, 18, 23, 0.08) 100%);
    border: 2px solid rgba(181, 140, 66, 0.4);
    border-radius: 15px;
    letter-spacing: 2px;
    backdrop-filter: blur(5px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(181, 140, 66, 0.2);
    animation: title-glow 4s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(181, 140, 66, 0.2),
            inset 0 1px 0 rgba(181, 140, 66, 0.2);
    }
    50% {
        box-shadow: 
            0 8px 30px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(181, 140, 66, 0.4),
            inset 0 1px 0 rgba(181, 140, 66, 0.3);
    }
}

/* Random Mode Toggle - Full Width */
.artbox-random-mode-toggle {
    background: linear-gradient(135deg, rgba(26, 30, 26, 0.8) 0%, rgba(36, 40, 36, 0.8) 100%);
    border: 3px solid rgba(181, 140, 66, 0.4);
    border-radius: 20px;
    padding: clamp(25px, 5vw, 35px);
    margin: clamp(20px, 4vw, 30px) 0; /* Remove auto centering */
    text-align: center;
    flex-shrink: 0;
    width: 100%; /* Full width - no max-width constraint */
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(181, 140, 66, 0.1);
    animation: container-glow 6s ease-in-out infinite;
}

@keyframes container-glow {
    0%, 100% {
        border-color: rgba(181, 140, 66, 0.4);
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(181, 140, 66, 0.1);
    }
    50% {
        border-color: rgba(181, 140, 66, 0.6);
        box-shadow: 
            0 10px 35px rgba(0, 0, 0, 0.5),
            0 0 25px rgba(181, 140, 66, 0.3),
            inset 0 1px 0 rgba(181, 140, 66, 0.2);
    }
}

.artbox-random-mode-toggle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(181, 140, 66, 0.05) 0%, transparent 70%);
    animation: artbox-rotate 25s linear infinite;
    z-index: 0;
}

.artbox-random-mode-toggle > * {
    position: relative;
    z-index: 1;
}

.artbox-mode-selector {
    display: flex;
    width: 100%; /* Full width - no max-width constraint */
    margin: 0 0 clamp(20px, 4vw, 25px) 0; /* Remove auto centering */
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid rgba(181, 140, 66, 0.5);
    background: linear-gradient(135deg, rgba(26, 30, 26, 0.95) 0%, rgba(36, 40, 36, 0.95) 100%);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(181, 140, 66, 0.1);
}

.artbox-mode-option {
    flex: 1; /* Perfect 50/50 split */
    width: 50%; /* Force exactly 50% width */
    padding: clamp(12px, 2.5vw, 16px) clamp(8px, 1.5vw, 15px);
    background: rgba(58, 62, 58, 0.9);
    color: #b58c42;
    border: none;
    font-family: 'Asap', sans-serif;
    font-weight: 600;
    font-size: clamp(0.75rem, 1.8vw, 0.9rem); /* Smaller text */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    min-height: clamp(45px, 8vw, 55px);
    box-sizing: border-box; /* Ensure padding doesn't affect width calculation */
}

.artbox-mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(181, 140, 66, 0.2), transparent);
    transition: left 0.5s ease;
}

.artbox-mode-option:hover::before {
    left: 100%;
}

.artbox-mode-option.active {
    background: linear-gradient(135deg, #a31217 0%, #b58c42 100%);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 
        inset 0 0 20px rgba(181, 140, 66, 0.3),
        0 0 15px rgba(181, 140, 66, 0.4);
    transform: scale(1.02);
}

.artbox-mode-option:not(.active):hover {
    background: linear-gradient(135deg, rgba(68, 72, 68, 0.9) 0%, rgba(58, 62, 58, 0.9) 100%);
    color: #d4a652;
    transform: translateY(-1px);
}

.artbox-mode-description {
    font-size: clamp(0.9rem, 2.2vw, 1.1rem); /* Same size as queue instructions */
    color: rgba(181, 140, 66, 0.85);
    font-weight: 500;
    line-height: 1.4;
    max-width: 450px;
    margin: 0 auto;
    padding: 0 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Enhanced Server Selection Button - Full Width */
.artbox-server-selector-btn {
    background: linear-gradient(135deg, rgba(58, 62, 58, 0.95) 0%, rgba(38, 42, 38, 0.95) 100%);
    color: #b58c42;
    border: 3px solid rgba(181, 140, 66, 0.6);
    border-radius: 18px;
    padding: clamp(15px, 3vw, 20px) clamp(20px, 4vw, 25px);
    font-family: 'Asap', sans-serif;
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 1.1rem); /* Smaller text */
    min-height: clamp(55px, 8vw, 70px); /* Smaller height */
    width: 100%; /* Full width - no max-width constraint */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(181, 140, 66, 0.2),
        inset 0 1px 0 rgba(181, 140, 66, 0.1);
    backdrop-filter: blur(8px);
}

.artbox-server-selector-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(181, 140, 66, 0.2), transparent);
    transition: left 0.5s ease;
}

.artbox-server-selector-btn:hover::before {
    left: 100%;
}

.artbox-server-selector-btn:hover {
    border-color: rgba(181, 140, 66, 0.8);
    background: linear-gradient(135deg, rgba(68, 72, 68, 0.9) 0%, rgba(48, 52, 48, 0.9) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(181, 140, 66, 0.3);
}

.artbox-selected-servers-text {
    flex: 1;
    text-align: left;
    padding-right: 15px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Fix for empty server selector text */
#artbox-selected-servers-text:empty::before {
    content: "Click to Select Servers";
    opacity: 0.8;
}

.artbox-chevron {
    font-size: clamp(1rem, 2.5vw, 1.3rem); /* Smaller chevron */
    transition: transform 0.3s ease;
    color: #d4a652;
    opacity: 0.8;
}

.artbox-server-selector-btn:hover .artbox-chevron {
    transform: translateY(2px);
}

/* Queue Status Section - Fully Centered and Enhanced */
.artbox-queue-section {
    margin: clamp(20px, 4vw, 30px) auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(163, 18, 23, 0.15) 0%, rgba(181, 140, 66, 0.15) 100%);
    border: 3px solid rgba(181, 140, 66, 0.6);
    border-radius: 20px;
    padding: clamp(30px, 6vw, 45px);
    max-width: 100%;
    width: 100%;
    box-shadow: 0 10px 30px rgba(163, 18, 23, 0.3);
    position: relative;
    overflow: hidden;
}

.artbox-queue-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(181, 140, 66, 0.1) 0%, transparent 70%);
    animation: artbox-rotate 30s linear infinite;
    z-index: 0;
}

.artbox-queue-section > * {
    position: relative;
    z-index: 1;
}

.artbox-queue-status-large {
    background: linear-gradient(135deg, rgba(163, 18, 23, 0.2) 0%, rgba(181, 140, 66, 0.25) 100%);
    border: 3px solid rgba(181, 140, 66, 0.8);
    border-radius: 20px;
    padding: clamp(25px, 5vw, 35px);
    font-family: 'Asap', sans-serif;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
    color: #d4a652;
    text-align: center;
    margin-bottom: clamp(20px, 4vw, 30px);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
    box-shadow: 0 8px 25px rgba(163, 18, 23, 0.4);
    animation: artbox-pulse 3s ease-in-out infinite;
}

/* Modern Button Styles - Enhanced Red/Gold Theme */
.artbox-btn {
    position: relative;
    display: inline-block;
    font-family: 'Asap', sans-serif;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 2px solid transparent;
    padding: clamp(10px, 2vw, 12px) clamp(15px, 3vw, 20px);
    font-size: clamp(0.9rem, 2vw, 1rem);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(163, 18, 23, 0.8) 0%, rgba(181, 140, 66, 0.6) 100%);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.artbox-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(163, 18, 23, 0.4);
    background: linear-gradient(135deg, rgba(163, 18, 23, 0.9) 0%, rgba(181, 140, 66, 0.7) 100%);
}

.artbox-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(163, 18, 23, 0.3);
}

.artbox-btn.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4) !important;
}

/* Queue Button - Enhanced with Animation */
.artbox-btn-queue {
    background: linear-gradient(135deg, #a31217 0%, #b58c42 100%);
    color: #ffffff;
    border: 3px solid rgba(181, 140, 66, 0.8);
    border-radius: 15px;
    padding: clamp(18px, 4vw, 22px) clamp(25px, 5vw, 30px);
    font-family: 'Asap', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 700;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 0 8px 25px rgba(163, 18, 23, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artbox-btn-queue::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.artbox-btn-queue:hover::before {
    width: 300%;
    height: 300%;
}

@keyframes pulse-queue {
    0% {
        box-shadow: 0 8px 25px rgba(163, 18, 23, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(163, 18, 23, 0.6), 0 0 30px rgba(181, 140, 66, 0.4);
    }
    100% {
        box-shadow: 0 8px 25px rgba(163, 18, 23, 0.4);
    }
}

.artbox-btn-queue:not(:disabled) {
    animation: pulse-queue 2s ease-in-out infinite;
}

.artbox-btn-queue:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(163, 18, 23, 0.5);
    background: linear-gradient(135deg, #b31217 0%, #c59c52 100%);
}

.artbox-btn-queue:disabled {
    background: linear-gradient(135deg, #555 0%, #777 100%);
    border-color: rgba(128, 128, 128, 0.8);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Server Buttons - Responsive grid */
.artbox-server-region {
    margin-bottom: clamp(20px, 4vw, 30px);
    width: 100%;
}

.artbox-region-title {
    color: #b58c42;
    font-family: 'Asap', sans-serif;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.artbox-server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(100px, 15vw, 150px), 1fr));
    gap: clamp(8px, 2vw, 15px);
    margin-bottom: 10px;
    justify-content: center;
    width: 100%;
}

.artbox-server-btn {
    background: rgba(58, 62, 58, 0.9);
    color: #b58c42;
    border: 2px solid rgba(181, 140, 66, 0.5);
    border-radius: 12px;
    padding: clamp(12px, 2.5vw, 15px) clamp(8px, 1.5vw, 10px);
    font-family: 'Asap', sans-serif;
    font-size: clamp(0.75rem, 1.8vw, 0.9rem);
    font-weight: 500;
    min-height: clamp(50px, 7vw, 60px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.artbox-server-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(181, 140, 66, 0.3);
    background: rgba(68, 72, 68, 0.9);
}

.artbox-server-btn.active {
    background: linear-gradient(135deg, rgba(163, 18, 23, 0.7) 0%, rgba(181, 140, 66, 0.7) 100%);
    border-color: #b58c42;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(181, 140, 66, 0.4);
}

/* Responsive Design - Mobile First Approach */
@media screen and (max-width: 1200px) {
    .artbox-panel {
        max-width: 95vw;
        padding: clamp(12px, 2.5vw, 20px);
    }
}

@media screen and (max-width: 768px) {
    .artbox-container {
        padding: clamp(8px, 2vw, 15px);
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .artbox-panel {
        padding: clamp(12px, 3vw, 20px);
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        min-height: 100dvh;
        max-width: 100vw;
    }
    
    .artbox-title {
        font-size: clamp(1.2rem, 5vw, 2rem);
        margin-bottom: clamp(8px, 2vw, 15px);
    }
    
    .artbox-server-grid {
        grid-template-columns: repeat(auto-fit, minmax(clamp(90px, 20vw, 120px), 1fr));
        gap: clamp(8px, 2vw, 12px);
    }
    
    .artbox-server-btn {
        padding: clamp(10px, 2.5vw, 12px) clamp(6px, 1.5vw, 8px);
        font-size: clamp(0.7rem, 1.8vw, 0.85rem);
        min-height: clamp(45px, 8vw, 55px);
    }
    
    .artbox-btn {
        padding: clamp(10px, 2.5vw, 12px) clamp(15px, 4vw, 20px);
        font-size: clamp(0.9rem, 2.2vw, 1rem);
    }
    
    .artbox-btn-queue {
        padding: clamp(12px, 3vw, 15px) clamp(15px, 4vw, 20px);
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
}

@media screen and (max-width: 480px) {
    .artbox-container {
        padding: clamp(5px, 1.5vw, 10px);
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .artbox-panel {
        padding: clamp(10px, 3vw, 15px);
        border-radius: 0;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .artbox-title {
        font-size: clamp(1.1rem, 6vw, 1.8rem);
    }
    
    .artbox-subtitle {
        font-size: clamp(0.8rem, 3vw, 1rem);
    }
    
    .artbox-server-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(6px, 2vw, 8px);
    }
    
    .artbox-server-btn {
        padding: clamp(8px, 2vw, 10px) clamp(5px, 1vw, 6px);
        font-size: clamp(0.7rem, 2vw, 0.8rem);
        min-height: clamp(40px, 10vw, 50px);
    }
    
    .artbox-box-count-btn {
        padding: clamp(8px, 2vw, 10px) clamp(10px, 3vw, 15px);
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }
    
    .artbox-btn {
        padding: clamp(8px, 2vw, 10px) clamp(12px, 3vw, 15px);
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    }
    
    .artbox-modal-content {
        margin: clamp(10px, 2vw, 20px);
        width: calc(100% - clamp(20px, 4vw, 40px));
    }
    
    .artbox-toast {
        max-width: calc(100vw - 40px);
        margin: 10px 20px;
    }
    
    /* Enhanced small screen queue section */
    .artbox-queue-section {
        padding: 20px;
        max-width: 98%;
    }
    
    .artbox-queue-status-large {
        padding: 15px;
        font-size: 1.1rem;
    }
    
    /* Fullscreen modal for very small screens */
    .artbox-server-modal .artbox-server-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .artbox-server-modal .artbox-server-btn {
        min-height: 50px;
        font-size: 0.9rem;
    }
}

/* Ultra small screens */
@media screen and (max-width: 360px) {
    .artbox-container {
        padding: 2px;
    }
    
    .artbox-panel {
        padding: 8px;
    }
    
    .artbox-title {
        font-size: clamp(1rem, 7vw, 1.5rem);
    }
    
    .artbox-server-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }
    
    .artbox-server-btn {
        padding: 6px 4px;
        font-size: 0.7rem;
        min-height: 35px;
    }
}

/* Fix for iOS Safari bottom bar */
@supports (-webkit-touch-callout: none) {
    .artbox-container,
    #artbox-gaming-tool {
        min-height: -webkit-fill-available;
    }
}

/* Ensure no scroll issues */
.artbox-container {
    overscroll-behavior: none;
}

/* Prevent zoom on mobile */
@media screen and (max-width: 768px) {
    .artbox-container input, 
    .artbox-container select, 
    .artbox-container textarea,
    #artbox-gaming-tool input,
    #artbox-gaming-tool select,
    #artbox-gaming-tool textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .artbox-panel {
        border-width: 0.5px;
    }
}

/* Print styles */
@media print {
    .artbox-container {
        background: white;
        color: black;
    }
    
    .artbox-animated-background,
    .artbox-container::before {
        display: none;
    }
}

/* ArtBox Custom Popup - Fullscreen Implementation */
.artbox-custom-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 9999999 !important;
    display: none !important; /* Hidden by default */
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.artbox-custom-popup-overlay.active {
    display: flex !important;
}

.artbox-custom-popup-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    background: linear-gradient(135deg, #1a1e1a 0%, #2a2e2a 50%, #1a1e1a 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 9999999 !important;
}

.artbox-custom-popup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(181, 140, 66, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(163, 18, 23, 0.1) 0%, transparent 50%);
    animation: artbox-glow 8s ease-in-out infinite;
    z-index: 1;
}

.artbox-custom-popup-header {
    background: linear-gradient(135deg, rgba(163, 18, 23, 0.3) 0%, rgba(181, 140, 66, 0.2) 100%) !important;
    border-bottom: 2px solid rgba(181, 140, 66, 0.8) !important;
    padding: clamp(8px, 1.5vh, 15px) clamp(15px, 3vw, 25px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
    z-index: 2 !important;
}

.artbox-custom-popup-title {
    color: #d4a652 !important;
    font-family: 'Asap', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    text-align: center !important;
    margin: 0 !important;
    letter-spacing: 1px !important;
    line-height: 1.2 !important;
}

.artbox-custom-popup-close {
    position: absolute !important;
    right: clamp(20px, 4vw, 35px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: linear-gradient(135deg, rgba(163, 18, 23, 0.8) 0%, rgba(181, 140, 66, 0.6) 100%) !important;
    color: #ffffff !important;
    border: 2px solid rgba(181, 140, 66, 0.8) !important;
    border-radius: 12px !important;
    padding: clamp(12px, 2vw, 18px) clamp(15px, 3vw, 22px) !important;
    font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    z-index: 3 !important;
}

.artbox-custom-popup-close:hover {
    background: linear-gradient(135deg, rgba(163, 18, 23, 1) 0%, rgba(181, 140, 66, 0.8) 100%) !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(163, 18, 23, 0.5) !important;
}

.artbox-custom-popup-body {
    flex: 1 !important;
    padding: clamp(20px, 3vw, 30px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 2 !important;
    background: rgba(26, 30, 26, 0.2) !important;
    max-height: calc(100vh - 200px) !important;
    max-height: calc(100dvh - 200px) !important;
}

.artbox-custom-server-regions {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: clamp(25px, 5vw, 40px) !important;
}

.artbox-custom-server-region {
    width: 100% !important;
}

.artbox-custom-region-title {
    color: #b58c42 !important;
    font-family: 'Asap', sans-serif !important;
    font-weight: 600 !important;
    font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
    text-align: center !important;
    margin-bottom: clamp(15px, 3vw, 25px) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    position: relative !important;
    padding-bottom: 10px !important;
}

.artbox-custom-region-title::after {
    content: "";
    display: block;
    width: clamp(60px, 15vw, 120px);
    height: 3px;
    background: linear-gradient(90deg, transparent, #b58c42, transparent);
    margin: 8px auto 0;
}

.artbox-custom-server-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: clamp(8px, 2vw, 15px) !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: stretch !important;
    padding: 0 clamp(5px, 1vw, 15px) !important;
}

.artbox-custom-server-btn {
    background: linear-gradient(135deg, rgba(58, 62, 58, 0.9) 0%, rgba(38, 42, 38, 0.9) 100%) !important;
    color: #b58c42 !important;
    border: 2px solid rgba(181, 140, 66, 0.6) !important;
    border-radius: 15px !important;
    padding: clamp(15px, 3vw, 22px) clamp(10px, 2vw, 15px) !important;
    font-family: 'Asap', sans-serif !important;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem) !important;
    font-weight: 600 !important;
    min-height: clamp(60px, 12vw, 80px) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    position: relative !important;
    overflow: hidden !important;
}

.artbox-custom-server-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(181, 140, 66, 0.3), transparent);
    transition: left 0.5s ease;
}

.artbox-custom-server-btn:hover::before {
    left: 100%;
}

.artbox-custom-server-btn:hover {
    border-color: rgba(181, 140, 66, 0.8) !important;
    background: linear-gradient(135deg, rgba(68, 72, 68, 0.9) 0%, rgba(48, 52, 48, 0.9) 100%) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(181, 140, 66, 0.4) !important;
    color: #d4a652 !important;
}

.artbox-custom-server-btn.artbox-custom-active {
    background: linear-gradient(135deg, rgba(163, 18, 23, 0.8) 0%, rgba(181, 140, 66, 0.8) 100%) !important;
    border-color: rgba(181, 140, 66, 0.9) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(163, 18, 23, 0.5) !important;
    transform: translateY(-2px) !important;
}

.artbox-custom-server-btn.artbox-custom-active:hover {
    background: linear-gradient(135deg, rgba(163, 18, 23, 0.9) 0%, rgba(181, 140, 66, 0.9) 100%) !important;
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 10px 30px rgba(163, 18, 23, 0.6) !important;
}

.artbox-custom-popup-footer {
    background: linear-gradient(135deg, rgba(26, 30, 26, 0.95) 0%, rgba(36, 40, 36, 0.95) 100%) !important;
    border-top: 3px solid rgba(181, 140, 66, 0.6) !important;
    padding: clamp(15px, 3vw, 25px) !important;
    display: flex !important;
    justify-content: center !important;
    gap: clamp(15px, 3vw, 25px) !important;
    flex-shrink: 0 !important;
    z-index: 3 !important;
    position: sticky !important;
    bottom: 0 !important;
    width: 100% !important;
}

.artbox-custom-btn {
    flex: 1 !important;
    max-width: none !important;
    width: 100% !important;
    min-height: clamp(55px, 10vw, 75px) !important;
    font-size: clamp(1.1rem, 2.8vw, 1.5rem) !important;
    font-weight: 700 !important;
    border-radius: 15px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    cursor: pointer !important;
    font-family: 'Asap', sans-serif !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.artbox-custom-btn-cancel {
    background: linear-gradient(135deg, rgba(58, 62, 58, 0.9) 0%, rgba(38, 42, 38, 0.9) 100%) !important;
    color: #b58c42 !important;
    border: 3px solid rgba(181, 140, 66, 0.6) !important;
}

.artbox-custom-btn-cancel:hover {
    background: linear-gradient(135deg, rgba(78, 82, 78, 0.9) 0%, rgba(58, 62, 58, 0.9) 100%) !important;
    border-color: rgba(181, 140, 66, 0.8) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(181, 140, 66, 0.4) !important;
    color: #d4a652 !important;
}

.artbox-custom-btn-apply {
    background: linear-gradient(135deg, #a31217 0%, #b58c42 100%) !important;
    color: #ffffff !important;
    border: 3px solid rgba(181, 140, 66, 0.8) !important;
}

.artbox-custom-btn-apply:hover {
    background: linear-gradient(135deg, #b31217 0%, #c59c52 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(163, 18, 23, 0.5) !important;
}

/* Mobile Responsive Adjustments for Popup */
@media screen and (max-width: 768px) {
    .artbox-custom-popup-header {
        padding: clamp(8px, 1.2vh, 12px) clamp(12px, 2.5vw, 18px) !important;
    }
    
    .artbox-custom-popup-title {
        font-size: clamp(1rem, 3vw, 1.3rem) !important;
    }
    
    .artbox-custom-popup-body {
        padding: clamp(10px, 2vw, 20px) !important;
        max-height: calc(100vh - 150px) !important;
        max-height: calc(100dvh - 150px) !important;
    }
    
    .artbox-custom-server-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: clamp(8px, 2vw, 12px) !important;
    }
    
    .artbox-custom-popup-footer {
        padding: clamp(12px, 2vw, 20px) !important;
        flex-direction: row !important;
        gap: clamp(10px, 2vw, 15px) !important;
    }
    
    .artbox-custom-btn {
        flex: 1 !important;
        max-width: none !important;
        width: 100% !important;
        min-height: clamp(45px, 8vw, 60px) !important;
        font-size: clamp(0.9rem, 2.5vw, 1.2rem) !important;
    }
    
    .artbox-custom-server-btn {
        min-height: clamp(45px, 10vw, 60px) !important;
        font-size: clamp(0.75rem, 2vw, 0.9rem) !important;
        padding: clamp(8px, 2vw, 15px) clamp(5px, 1vw, 10px) !important;
    }
}

@media screen and (max-width: 480px) {
    .artbox-custom-popup-header {
        padding: clamp(6px, 0.8vh, 10px) clamp(10px, 2vw, 12px) !important;
    }
    
    .artbox-custom-popup-title {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem) !important;
    }
    
    .artbox-custom-server-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: clamp(6px, 1.5vw, 10px) !important;
    }
    
    .artbox-custom-server-btn {
        min-height: clamp(40px, 12vw, 55px) !important;
        font-size: clamp(0.7rem, 2vw, 0.85rem) !important;
    }
    
    .artbox-custom-popup-close {
        padding: clamp(5px, 0.8vh, 9px) clamp(8px, 1.5vw, 12px) !important;
        font-size: clamp(0.8rem, 2.5vw, 1rem) !important;
    }
}

/* Fix for very small screens */
@media screen and (max-height: 600px) {
    .artbox-custom-popup-body {
        max-height: calc(100vh - 120px) !important;
    }
    
    .artbox-custom-popup-header {
        padding: clamp(6px, 1vh, 10px) 12px !important;
    }
    
    .artbox-custom-popup-title {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem) !important;
    }
    
    .artbox-custom-popup-footer {
        padding: 10px !important;
    }
    
    .artbox-custom-btn {
        min-height: 40px !important;
    }
}

/* Notification Area - Only show when needed */
#artbox-notification-area:empty {
    display: none;
}

#artbox-notification-area:not(:empty) {
    display: block;
    margin-bottom: clamp(15px, 3vw, 20px);
    width: 100%;
    text-align: center;
}

.artbox-notification {
    background: linear-gradient(135deg, rgba(163, 18, 23, 0.1) 0%, rgba(181, 140, 66, 0.2) 100%);
    border: 2px solid rgba(181, 140, 66, 0.4);
    border-radius: 12px;
    padding: clamp(15px, 3vw, 20px);
    margin-bottom: 10px;
    color: #b58c42;
    font-weight: 600;
    animation: artbox-fade-in-up 0.5s ease-out;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Notification Close Button */
.artbox-notification-close-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, rgba(163, 18, 23, 0.8) 0%, rgba(181, 140, 66, 0.6) 100%);
    border: 2px solid rgba(181, 140, 66, 0.6);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Asap', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.artbox-notification-close-btn:hover {
    background: linear-gradient(135deg, rgba(163, 18, 23, 0.9) 0%, rgba(181, 140, 66, 0.7) 100%);
    border-color: rgba(181, 140, 66, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(163, 18, 23, 0.4);
}

.artbox-notification.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Enhanced Toast Notifications - Full Width with Close Button */
.artbox-toast {
    background: rgba(36, 40, 36, 0.98);
    border: 2px solid rgba(181, 140, 66, 0.6);
    border-radius: 15px;
    color: #ffffff;
    font-family: 'Asap', sans-serif;
    font-weight: 500;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    padding: 20px;
    min-width: 320px;
    max-width: 90vw;
    position: relative;
    animation: fadeInCenter 0.5s ease-out;
    text-align: center;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.artbox-toast-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    text-align: center;
}

.artbox-toast-header strong {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 700;
}

.artbox-toast-body {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin: 0;
}

/* Toast Close Button - Full Width 50px Height */
.artbox-toast-close-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, rgba(163, 18, 23, 0.8) 0%, rgba(181, 140, 66, 0.6) 100%);
    border: 2px solid rgba(181, 140, 66, 0.6);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Asap', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.artbox-toast-close-btn:hover {
    background: linear-gradient(135deg, rgba(163, 18, 23, 0.9) 0%, rgba(181, 140, 66, 0.7) 100%);
    border-color: rgba(181, 140, 66, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(163, 18, 23, 0.4);
}

.artbox-toast-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.98) 0%, rgba(36, 40, 36, 0.98) 100%);
    border-color: rgba(64, 192, 87, 0.9);
}

.artbox-toast-success .artbox-toast-header strong {
    color: #28a745;
}

.artbox-toast-error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.98) 0%, rgba(36, 40, 36, 0.98) 100%);
    border-color: rgba(240, 83, 99, 0.9);
}

.artbox-toast-error .artbox-toast-header strong {
    color: #dc3545;
}

.artbox-toast-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.98) 0%, rgba(36, 40, 36, 0.98) 100%);
    border-color: rgba(255, 213, 67, 0.9);
}

.artbox-toast-warning .artbox-toast-header strong {
    color: #ffc107;
}

.artbox-toast-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.98) 0%, rgba(36, 40, 36, 0.98) 100%);
    border-color: rgba(67, 196, 207, 0.9);
}

.artbox-toast-info .artbox-toast-header strong {
    color: #17a2b8;
}

@keyframes fadeInCenter {
    from {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.artbox-toast.fade-out {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animation Utilities */
@keyframes artbox-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.artbox-fade-in {
    animation: artbox-fade-in-up 0.6s ease-out;
}

/* Loading Overlay - Full screen fix */
.artbox-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.artbox-loading-content {
    text-align: center;
}

.artbox-loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(181, 140, 66, 0.3);
    border-radius: 50%;
    border-top-color: #b58c42;
    animation: artbox-spin 1s linear infinite;
    margin: 0 auto 20px;
}

.artbox-loading-text {
    color: #b58c42;
    font-family: 'Asap', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

@keyframes artbox-spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications - Perfect Center of Current Viewport */
.artbox-toast-container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 999999 !important; /* Higher z-index to ensure visibility */
    width: clamp(320px, 85vw, 450px) !important;
    max-width: 90vw !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    pointer-events: none !important; /* Allow clicks through container */
}

.artbox-toast-container .artbox-toast {
    pointer-events: auto !important; /* Re-enable clicks on individual toasts */
    margin: 0 auto !important; /* Center individual toasts */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure perfect centering across all viewport sizes */
.artbox-toast-container {
    /* Use both vh and dvh for maximum compatibility */
    height: 100vh !important;
    height: 100dvh !important;
}

/* Fix for iOS Safari and other mobile browsers */
@supports (-webkit-touch-callout: none) {
    .artbox-toast-container {
        height: -webkit-fill-available !important;
    }
}

/* Landscape mode adjustments */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .artbox-toast-container {
        max-height: 90vh !important;
        padding: 10px !important;
    }
    
    .artbox-toast {
        padding: 15px !important;
        gap: 10px !important;
    }
    
    .artbox-toast-header strong {
        font-size: 1.1rem !important;
    }
    
    .artbox-toast-body {
        font-size: 0.95rem !important;
    }
}

@media screen and (max-width: 768px) {
    .artbox-toast-container {
        width: calc(100vw - 30px) !important;
        max-width: 420px !important;
        max-height: 75vh !important;
        padding: 15px !important;
        top: 50% !important; /* Maintain perfect center on mobile */
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}

@media screen and (max-width: 480px) {
    .artbox-toast-container {
        width: calc(100vw - 20px) !important;
        max-width: 380px !important;
        max-height: 70vh !important;
        padding: 10px !important;
        gap: 12px !important;
        top: 50% !important; /* Maintain perfect center on small screens */
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .artbox-toast {
        min-width: 280px !important;
        max-width: calc(100vw - 20px) !important;
        padding: 20px 25px !important;
    }
}

/* Game Selection Section */
.artbox-game-selection-section {
    margin-bottom: clamp(20px, 4vw, 30px);
    flex-shrink: 0;
}

.artbox-game-selector-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(163, 18, 23, 0.4) 0%, rgba(181, 140, 66, 0.3) 100%);
    border: 3px solid #b58c42;
    border-radius: 15px;
    padding: clamp(18px, 3vh, 25px) clamp(20px, 3vw, 30px);
    color: #d4a652;
    font-family: 'Asap', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 2vw, 15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.artbox-game-selector-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(181, 140, 66, 0.4);
    border-color: #d4a652;
}

.game-selector-icon {
    font-size: clamp(1.5rem, 3vw, 2rem);
    flex-shrink: 0;
}

.artbox-selected-game-text {
    flex: 1;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
}

.artbox-game-selector-btn .artbox-chevron {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.artbox-game-selector-btn:hover .artbox-chevron {
    transform: translateY(3px);
}

/* Battlefield Mode Specific Styles */
.artbox-battlefield-mode {
    /* Special styling for battlefield mode */
}

.artbox-battlefield-mode .artbox-general-info-box {
    display: none !important;
}

.artbox-battlefield-mode .artbox-lock-status {
    display: none !important;
}

.artbox-battlefield-mode .artbox-new-request-btn {
    display: none !important;
}

/* Hide box configuration for battlefield mode */
.artbox-battlefield-mode .artbox-box-config {
    display: none !important;
}

/* Hide box configuration section for battlefield mode */
.artbox-battlefield-mode .artbox-section:has(.artbox-box-config) {
    display: none !important;
}

.artbox-battlefield-mode .artbox-id-container[data-game="call-of-duty"],
.artbox-battlefield-mode .artbox-id-container[data-game="fortnite"] {
    display: none !important;
}

.artbox-battlefield-mode .artbox-id-container[data-game="battlefield"] {
    display: block !important;
}

.artbox-battlefield-mode .battlefield-info-box {
    display: block !important;
}

/* Battlefield Lobby Code Styles */
.artbox-lobby-code-container {
    margin-top: 15px;
    padding: 15px;
    background: rgba(181, 140, 66, 0.1);
    border: 2px solid rgba(181, 140, 66, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.artbox-lobby-code-container:hover {
    background: rgba(181, 140, 66, 0.15);
    border-color: rgba(181, 140, 66, 0.5);
    transform: translateY(-1px);
}

#artbox-lobby-code {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #d4a652;
    font-weight: 700;
    margin-top: 8px;
    text-align: center;
    padding: 12px;
    background: rgba(26, 30, 26, 0.5);
    border-radius: 8px;
    letter-spacing: 2px;
    border: 2px solid rgba(181, 140, 66, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: all;
}

#artbox-lobby-code:hover {
    background: rgba(36, 40, 36, 0.6);
    border-color: rgba(181, 140, 66, 0.5);
    box-shadow: 0 4px 12px rgba(181, 140, 66, 0.3);
}

/* Battlefield How To Join Section */
.battlefield-info-box ol {
    text-align: left;
    color: #d4a652;
    font-weight: 500;
    line-height: 1.6;
    margin: 15px 0;
    padding-left: 20px;
}

.battlefield-info-box li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.battlefield-info-box li::marker {
    color: #b58c42;
    font-weight: 700;
}

/* Hide friend request features for battlefield mode */
.artbox-battlefield-mode .artbox-lock-status,
.artbox-battlefield-mode .artbox-new-request-btn {
    display: none !important;
}

/* Battlefield mode specific button styling */
.artbox-battlefield-mode .artbox-lock-toggle-btn {
    background: linear-gradient(135deg, rgba(58, 62, 58, 0.9) 0%, rgba(38, 42, 38, 0.9) 100%);
    border-color: rgba(181, 140, 66, 0.5);
}

.artbox-battlefield-mode .artbox-lock-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(68, 72, 68, 0.9) 0%, rgba(48, 52, 48, 0.9) 100%);
    border-color: rgba(181, 140, 66, 0.7);
}

/* Enhanced battlefield mode description */
.artbox-battlefield-mode .artbox-mode-description {
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    color: rgba(181, 140, 66, 0.9);
    font-weight: 500;
    line-height: 1.4;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Larger screens - Increase text sizes for better readability */
@media screen and (min-width: 1024px) {
    .artbox-container h1,
    #artbox-gaming-tool h1 { font-size: 3.2rem !important; }
    .artbox-container h2,
    #artbox-gaming-tool h2 { font-size: 2.4rem !important; }
    .artbox-container h3,
    #artbox-gaming-tool h3 { font-size: 1.9rem !important; }
    .artbox-container h4,
    #artbox-gaming-tool h4 { font-size: 1.5rem !important; }
    .artbox-container h5,
    #artbox-gaming-tool h5 { font-size: 1.3rem !important; }
    .artbox-container h6,
    #artbox-gaming-tool h6 { font-size: 1.15rem !important; }

    .artbox-section-title {
        font-size: 1.3rem !important;
    }

    .artbox-info-large {
        font-size: 1.5rem !important;
    }

    .artbox-info-box {
        font-size: 1.3rem !important;
    }

    .artbox-info-small {
        font-size: 1.35rem !important;
    }

    .artbox-btn {
        font-size: 1.15rem !important;
        padding: 18px 28px !important;
    }

    .artbox-box-config .artbox-btn-group .artbox-btn {
        font-size: 1.35rem !important;
        padding: 22px !important;
    }

    .artbox-lock-toggle-btn {
        font-size: 1.35rem !important;
        padding: 22px !important;
    }

    .artbox-input {
        font-size: 1.15rem !important;
        padding: 18px !important;
    }

    .artbox-service-status .status-text {
        font-size: 1.5rem !important;
    }

    .artbox-mode-option {
        font-size: 1.05rem !important;
    }

    .artbox-server-selector-btn {
        font-size: 1.25rem !important;
        padding: 20px 25px !important;
    }

    .artbox-btn-queue {
        font-size: 1.9rem !important;
        padding: 25px !important;
    }

    .artbox-game-selector-btn {
        font-size: 1.6rem !important;
        padding: 25px 35px !important;
    }

    .game-selector-icon {
        font-size: 2.2rem !important;
    }

    /* Battlefield mode larger screen adjustments */
    #artbox-lobby-code {
        font-size: 1.4rem !important;
        padding: 15px !important;
    }

    .battlefield-info-box ol {
        font-size: 1.1rem !important;
    }
}
