@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #00d2ff;
    --danger: #ff6b6b;
    --success: #00ff88;
    --gold: #ffd700;
    --dark: #0a0a0a;
    --card-bg: rgba(20, 20, 30, 0.9);
    --border: rgba(255, 255, 255, 0.1);
    --text: rgba(255, 255, 255, 0.9);
    --text-dim: rgba(255, 255, 255, 0.6);
    --glow-primary: 0 0 30px rgba(102, 126, 234, 0.6);
    --glow-accent: 0 0 30px rgba(0, 210, 255, 0.6);
    --glow-danger: 0 0 30px rgba(255, 107, 107, 0.6);
    --glow-success: 0 0 30px rgba(0, 255, 136, 0.6);
    --glow-gold: 0 0 30px rgba(255, 215, 0, 0.6);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    min-height: 100vh;
    color: var(--text);
    overflow-x: hidden;
    position: relative;
}

/* Enhanced Background Effects */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 107, 107, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(0, 210, 255, 0.2) 0%, transparent 50%);
    animation: bgRotate 30s linear infinite;
}

@keyframes bgRotate {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    to { transform: rotate(360deg) scale(1); }
}

/* Matrix Rain Effect */
#matrixCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
}

.crypto-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    font-size: 20px;
    animation: floatUp 15s linear infinite;
    opacity: 0.3;
    filter: blur(0px);
    transition: all 0.3s ease;
}

.particle:hover {
    filter: blur(2px) brightness(2);
    transform: scale(1.5);
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% { 
        opacity: 0.3;
        transform: translateY(90vh) translateX(20px) rotate(36deg) scale(1);
    }
    90% { 
        opacity: 0.3;
        transform: translateY(10vh) translateX(-20px) rotate(324deg) scale(1);
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg) scale(0);
        opacity: 0;
    }
}

/* Enhanced Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    animation: navSlideDown 0.5s ease-out;
}

@keyframes navSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    position: relative;
    display: inline-block;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.5em;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 0.5;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* Enhanced Wallet Display */
.wallet-display {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wallet-icon {
    font-size: 1.5em;
    animation: walletBounce 2s ease-in-out infinite;
}

@keyframes walletBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(-5deg); }
    75% { transform: translateY(-3px) rotate(5deg); }
}

.wallet-info {
    display: flex;
    flex-direction: column;
}

.wallet-label {
    font-size: 0.75em;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance {
    font-family: 'Orbitron', monospace;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.wallet-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50px;
    border: 1px solid var(--gold);
    opacity: 0;
    animation: walletPulse 2s ease-out infinite;
}

@keyframes walletPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

.wallet-display:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.05));
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--glow-gold);
}

/* Enhanced User Avatar */
.user-avatar-small {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.avatar-emoji {
    font-size: 1.5em;
    z-index: 2;
}

.avatar-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--accent), var(--secondary));
    z-index: -1;
    animation: avatarRingRotate 3s linear infinite;
}

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

.user-avatar-small:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: var(--glow-primary);
}

/* Enhanced Glass Cards */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.5s ease-out;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Enhanced Buttons */
.btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.btn:hover .btn-shine {
    animation: btnShine 0.6s ease-out;
}

@keyframes btnShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

.btn-glow {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.btn-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: -1;
    animation: btnPulse 2s ease-out infinite;
}

@keyframes btnPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.btn-play {
    background: linear-gradient(135deg, var(--success), var(--accent));
    font-size: 1.2em;
    padding: 20px 50px;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-play:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--glow-success);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(102, 126, 234, 0.1);
    box-shadow: var(--glow-primary);
}

/* OTP Input Fields */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.5em;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
    box-shadow: var(--glow-primary);
}

.otp-input.filled {
    border-color: var(--success);
    animation: otpBounce 0.3s ease;
}

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

/* Avatar Selection Enhanced */
.avatar-option {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.avatar-option[data-rarity="rare"] {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.avatar-option[data-rarity="epic"] {
    background: linear-gradient(135deg, rgba(150, 0, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.avatar-option[data-rarity="legendary"] {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.05));
}

.avatar-option[data-rarity="mythic"] {
    background: linear-gradient(135deg, rgba(255, 0, 100, 0.1), rgba(255, 255, 255, 0.05));
    animation: mythicGlow 3s ease-in-out infinite;
}

@keyframes mythicGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 100, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 0, 100, 0.6); }
}

.avatar-option:hover {
    transform: scale(1.15) rotate(10deg);
    background: rgba(255, 255, 255, 0.1);
}

.avatar-option.selected {
    border-color: var(--accent);
    background: rgba(0, 210, 255, 0.2);
    animation: avatarSelected 0.5s ease;
    box-shadow: var(--glow-accent);
}

@keyframes avatarSelected {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
    100% { transform: scale(1.1) rotate(360deg); }
}

/* Game Screen Enhancements */
.jackpot-container {
    position: relative;
    margin-bottom: 30px;
}

.jackpot-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.9em;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.jackpot-display {
    font-family: 'Orbitron', monospace;
    font-size: 3em;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    position: relative;
    display: inline-block;
}

.currency-symbol {
    font-size: 0.7em;
    vertical-align: super;
}

.jackpot-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    filter: blur(20px);
    animation: jackpotPulse 2s ease-in-out infinite;
}

@keyframes jackpotPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.jackpot-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Game Logo Animation */
.game-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 3em;
}

.game-logo-split {
    animation: logoFloat 3s ease-in-out infinite;
}

.game-logo-vs {
    font-family: 'Orbitron', monospace;
    font-size: 0.7em;
    color: var(--danger);
    animation: logoGlow 2s ease-in-out infinite;
}

.game-logo-steal {
    animation: logoFloat 3s ease-in-out infinite reverse;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(10deg); }
}

@keyframes logoGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 107, 107, 0.5); }
    50% { text-shadow: 0 0 30px rgba(255, 107, 107, 0.8); }
}

/* Matchmaking Radar */
.matchmaking-radar {
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: relative;
    margin: 40px auto;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    transform-origin: left center;
    animation: radarSweep 2s linear infinite;
}

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

.radar-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: radarPing 2s ease-out infinite;
}

.radar-dot.dot-1 {
    top: 30%;
    left: 60%;
    animation-delay: 0s;
}

.radar-dot.dot-2 {
    top: 70%;
    left: 30%;
    animation-delay: 0.7s;
}

.radar-dot.dot-3 {
    top: 50%;
    left: 80%;
    animation-delay: 1.4s;
}

@keyframes radarPing {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(2);
        opacity: 0.5;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Enhanced Choice Buttons */
.choice-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 4px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.choice-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.choice-icon {
    font-size: 4em;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.choice-label {
    font-family: 'Orbitron', monospace;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 2px;
}

.choice-desc {
    font-size: 0.8em;
    color: var(--text-dim);
    margin-top: 5px;
}

.choice-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 4px solid transparent;
    transition: all 0.3s ease;
}

.choice-btn.split .choice-ring {
    background: linear-gradient(45deg, var(--success), var(--accent));
}

.choice-btn.steal .choice-ring {
    background: linear-gradient(45deg, var(--danger), var(--gold));
}

.choice-btn:hover .choice-icon {
    transform: scale(1.2) rotate(10deg);
}

.choice-btn.split:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--glow-success);
}

.choice-btn.steal:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--glow-danger);
}

.choice-btn.selected {
    transform: scale(1.15);
    animation: choiceSelected 0.5s ease;
}

.choice-btn.selected.split {
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.6);
}

.choice-btn.selected.steal {
    background: rgba(255, 107, 107, 0.2);
    box-shadow: 0 0 50px rgba(255, 107, 107, 0.6);
}

@keyframes choiceSelected {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
    100% { transform: scale(1.15) rotate(360deg); }
}

/* Timer Enhancements */
.timer-container {
    position: relative;
    margin: 30px auto;
    max-width: 500px;
}

.timer-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.timer-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--accent));
    border-radius: 20px;
    transition: width 0.1s linear;
    position: relative;
    overflow: hidden;
}

.timer-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: timerShine 2s infinite;
}

.timer-fill.danger {
    background: linear-gradient(90deg, var(--danger), #ff006e);
    animation: dangerFlash 0.5s ease-in-out infinite;
}

@keyframes dangerFlash {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.8; filter: brightness(1.2); }
}

.timer-text {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--text);
    font-size: 0.9em;
}

/* VS Container */
.vs-container {
    position: relative;
}

.vs-indicator {
    font-family: 'Orbitron', monospace;
    font-size: 2.5em;
    font-weight: 900;
    background: linear-gradient(135deg, var(--danger), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: vsGlow 2s ease-in-out infinite;
}

.vs-lightning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 100px;
    pointer-events: none;
}

/* Result Animations */
.result-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 250px;
    animation: toastSlide 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes toastSlide {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-color: var(--success);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.toast.error {
    border-color: var(--danger);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0 15px;
    }
    
    .glass-card {
        padding: 20px;
    }
    
    .choice-area {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .choice-btn {
        width: 160px;
        height: 160px;
    }
    
    .players-area {
        flex-direction: column;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Utility Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* Screen Transitions */
.screen {
    display: none;
    width: 100%;
    max-width: 1200px;
    animation: screenFade 0.5s ease-out;
}

.screen.active {
    display: block;
}

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

/* Additional Grid Layouts */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin: 30px 0;
}