* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

:root {
    
    --void: #000000;
    --abyss: #0a0a0a;
    --midnight: #111111;
    --twilight: #1a1a1a;
    --shadow: #222222;
    --dusk: #333333;
    --stone: #444444;
    --smoke: #555555;
    --ash: #666666;
    --dust: #777777;
    --fog: #888888;
    --mist: #999999;
    --haze: #aaaaaa;
    --cloud: #bbbbbb;
    --silver: #cccccc;
    --pearl: #dddddd;
    --frost: #eeeeee;
    --glacier: #ffffff;
    
    
    --glass-dark: rgba(0, 0, 0, 0.2);
    --glass-light: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    
    --glow-subtle: rgba(255, 255, 255, 0.02);
    --glow-gentle: rgba(255, 255, 255, 0.04);
    --glow-visible: rgba(255, 255, 255, 0.08);
    
    
    --shadow-light: rgba(0, 0, 0, 0.25);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --shadow-deep: rgba(0, 0, 0, 0.6);
}

body {
    background: var(--void);
    color: var(--pearl);
    min-height: 100vh;
    overflow-x: hidden;
}


.grid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--midnight) 1px, transparent 1px),
        linear-gradient(90deg, var(--midnight) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.05;
    pointer-events: none;
    z-index: -2;
    animation: gridPulse 20s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.08; }
}


.luminous-aura {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vmax;
    height: 100vmax;
    background: radial-gradient(
        circle at center,
        var(--glow-gentle) 0%,
        rgba(255, 255, 255, 0.02) 30%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
    animation: auraFloat 15s ease-in-out infinite;
}

@keyframes auraFloat {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-48%, -52%) scale(1.1);
        opacity: 0.5;
    }
}


.home-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.central-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    z-index: 1;
}


.emblem {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.icon-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--abyss) 0%, var(--midnight) 100%);
    border: 2px solid var(--shadow);
    border-radius: 24px;
    margin-bottom: 1.5rem;
    box-shadow: 
        0 0 40px var(--glow-gentle),
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.icon-wrapper:hover::before {
    opacity: 1;
}

.icon-wrapper:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--dusk);
    box-shadow: 
        0 0 80px var(--glow-visible),
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.icon-wrapper i {
    font-size: 3rem;
    color: var(--glacier);
}

.title {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--frost);
    text-align: center;
}


.search-module {
    width: 100%;
    max-width: 800px;
    height: 70px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--abyss) 0%, var(--midnight) 100%);
    border: 2px solid var(--shadow);
    border-radius: 20px;
    margin-bottom: 4rem;
    padding: 0 1.5rem;
    box-shadow: 
        0 8px 32px var(--shadow-light),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.search-module::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.search-module:hover::after,
.search-module:focus-within::after {
    left: 100%;
}

.search-module:hover,
.search-module:focus-within {
    border-color: var(--dusk);
    box-shadow: 
        0 15px 50px var(--shadow-medium),
        0 0 30px var(--glow-gentle),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.search-glyph {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-glyph i {
    font-size: 1.2rem;
    color: var(--fog);
}

.search-field {
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--glacier);
    font-size: 1.1rem;
    padding: 0 1.5rem;
    outline: none;
}

.search-field::placeholder {
    color: var(--ash);
}

.settings-capsule {
    width: 50px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--midnight);
    border: 1px solid var(--shadow);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-capsule:hover {
    background: var(--dusk);
    border-color: var(--stone);
    transform: translateY(-1px);
}

.settings-capsule i {
    font-size: 1.1rem;
    color: var(--haze);
}


.tile-collection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.8rem;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 5rem;
}

.tile {
    background: linear-gradient(135deg, var(--abyss) 0%, var(--midnight) 100%);
    border: 1px solid var(--shadow);
    border-radius: 20px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px var(--shadow-light),
        0 0 0 1px var(--glow-subtle);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tile:hover::before {
    left: 100%;
}

.tile:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--dusk);
    background: linear-gradient(135deg, var(--midnight) 0%, var(--dusk) 100%);
    box-shadow: 
        0 25px 60px var(--shadow-medium),
        0 0 40px var(--glow-gentle),
        0 0 0 1px var(--glow-gentle);
}

.tile-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--glacier);
}

.tile-label {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--haze);
    letter-spacing: 0.03em;
    text-align: center;
}

.tile-add {
    border-style: dashed;
    border-color: var(--ash);
    opacity: 0.7;
}

.tile-add:hover {
    opacity: 1;
    border-color: var(--fog);
}

.delete-tile {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    background: var(--shadow-deep);
    border: 1px solid var(--shadow);
    border-radius: 8px;
    color: var(--pearl);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.tile:hover .delete-tile {
    opacity: 1;
}

.delete-tile:hover {
    background: var(--dusk);
    border-color: var(--stone);
}


.footer-cluster {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    display: flex;
    gap: 1.8rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    padding: 1.2rem 2rem;
    border-radius: 18px;
    border: 1px solid var(--shadow);
    box-shadow: 
        0 8px 32px var(--shadow-light),
        inset 0 1px 0 var(--glow-subtle);
}

.footer-link {
    color: var(--fog);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--glacier);
    transform: translateY(-2px);
}


.hidden {
    display: none;
}


.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--fog);
    border-top-color: var(--glacier);
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
}

@keyframes loading-spin {
    to { transform: rotate(360deg); }
}


.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    display: none;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.announcement-content {
    background: var(--abyss);
    border: 1px solid var(--shadow);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px var(--shadow-deep);
    position: relative;
    animation: slideUp 0.5s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.announcement-title {
    font-size: 2rem;
    color: var(--frost);
    margin-bottom: 1.5rem;
    text-align: center;
}

.announcement-message {
    color: var(--pearl);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.announcement-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--shadow);
}

.announcement-credits {
    color: var(--dust);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.announcement-credits img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--shadow);
    object-fit: cover;
}

.announcement-close {
    background: var(--midnight);
    border: 1px solid var(--shadow);
    border-radius: 12px;
    color: var(--pearl);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.announcement-close:hover {
    background: var(--dusk);
    border-color: var(--stone);
    transform: translateY(-2px);
}


.games-counter {
    position: fixed;
    bottom: 2.5rem;
    left: 2.5rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    padding: 0.8rem 1.5rem;
    border-radius: 18px;
    border: 1px solid var(--shadow);
    box-shadow: 0 8px 32px var(--shadow-light);
    color: var(--frost);
    font-size: 0.9rem;
    z-index: 100;
}

.games-counter-number {
    color: var(--glacier);
    font-weight: 600;
    font-size: 1.2rem;
}


.footer-cluster {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    display: flex;
    gap: 1.8rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    padding: 1.2rem 2rem;
    border-radius: 18px;
    border: 1px solid var(--shadow);
    box-shadow: 0 8px 32px var(--shadow-light),
                inset 0 1px 0 var(--glow-subtle);
}



body.theme-dark {
    
}

body.theme-blue .grid-canvas {
    background-image: 
        linear-gradient(#0a1a2a 1px, transparent 1px),
        linear-gradient(90deg, #0a1a2a 1px, transparent 1px);
}

body.theme-purple .grid-canvas {
    background-image: 
        linear-gradient(#1a0a2a 1px, transparent 1px),
        linear-gradient(90deg, #1a0a2a 1px, transparent 1px);
}

body.theme-green .grid-canvas {
    background-image: 
        linear-gradient(#0a2a1a 1px, transparent 1px),
        linear-gradient(90deg, #0a2a1a 1px, transparent 1px);
}

body.theme-red .grid-canvas {
    background-image: 
        linear-gradient(#2a0a0a 1px, transparent 1px),
        linear-gradient(90deg, #2a0a0a 1px, transparent 1px);
}


body.theme-blue .luminous-aura {
    background: radial-gradient(
        circle at center,
        rgba(10, 26, 42, 0.3) 0%,
        transparent 60%
    );
}

body.theme-purple .luminous-aura {
    background: radial-gradient(
        circle at center,
        rgba(26, 10, 42, 0.3) 0%,
        transparent 60%
    );
}

body.theme-green .luminous-aura {
    background: radial-gradient(
        circle at center,
        rgba(10, 42, 26, 0.3) 0%,
        transparent 60%
    );
}

body.theme-red .luminous-aura {
    background: radial-gradient(
        circle at center,
        rgba(42, 10, 10, 0.3) 0%,
        transparent 60%
    );
}


.announcement-modal.theme-blue {
    background: rgba(0, 12, 26, 0.9);
}

.announcement-modal.theme-purple {
    background: rgba(10, 0, 26, 0.9);
}

.announcement-modal.theme-green {
    background: rgba(0, 26, 10, 0.9);
}

.announcement-modal.theme-red {
    background: rgba(26, 0, 0, 0.9);
}


.central-container.theme-blue {
    background: transparent;
}


.proxy-interface.theme-blue {
    background: #000c1a;
}

.proxy-interface.theme-purple {
    background: #0a001a;
}

.proxy-interface.theme-green {
    background: #001a0a;
}

.proxy-interface.theme-red {
    background: #1a0000;
}


.no-animations * {
    animation: none !important;
    transition: none !important;
}

.no-animations .tile:hover {
    transform: none !important;
}

.no-animations .icon-wrapper:hover {
    transform: none !important;
}

.no-animations .search-module:hover {
    transform: none !important;
}


.compact-mode .tile-collection {
    gap: 1rem;
}

.compact-mode .tile {
    padding: 1.5rem 0.8rem;
}

.compact-mode .tile-icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.compact-mode .tile-label {
    font-size: 0.85rem;
}

.compact-mode .search-module {
    height: 60px;
    margin-bottom: 2rem;
}

.compact-mode .icon-wrapper {
    width: 80px;
    height: 80px;
}

.compact-mode .icon-wrapper i {
    font-size: 2.5rem;
}

.compact-mode .title {
    font-size: 2.8rem;
}


.compact-mode .games-grid {
    gap: 1.5rem;
}

.compact-mode .game-card {
    aspect-ratio: 3/2;
}

.compact-mode .game-name {
    font-size: 1rem;
}


iframe {
    background: var(--void) !important;
}

/* Floating Dust Particles Effect - Wind Gust from Right to Left */
.dust-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.dust-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3), 0 0 16px rgba(255, 255, 255, 0.2);
    opacity: 0;
    animation: floatDustWind 15s infinite linear;
}

/* Larger particles for more visibility */
.dust-particle:nth-child(odd) {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4), 0 0 24px rgba(255, 255, 255, 0.3);
}

.dust-particle:nth-child(1) { top: 10%; animation-delay: 0s; animation-duration: 12s; }
.dust-particle:nth-child(2) { top: 15%; animation-delay: 0.5s; animation-duration: 14s; }
.dust-particle:nth-child(3) { top: 20%; animation-delay: 1s; animation-duration: 13s; }
.dust-particle:nth-child(4) { top: 25%; animation-delay: 1.5s; animation-duration: 15s; }
.dust-particle:nth-child(5) { top: 30%; animation-delay: 2s; animation-duration: 12s; }
.dust-particle:nth-child(6) { top: 35%; animation-delay: 2.5s; animation-duration: 14s; }
.dust-particle:nth-child(7) { top: 40%; animation-delay: 3s; animation-duration: 13s; }
.dust-particle:nth-child(8) { top: 45%; animation-delay: 3.5s; animation-duration: 15s; }
.dust-particle:nth-child(9) { top: 50%; animation-delay: 4s; animation-duration: 12s; }
.dust-particle:nth-child(10) { top: 55%; animation-delay: 4.5s; animation-duration: 14s; }
.dust-particle:nth-child(11) { top: 60%; animation-delay: 5s; animation-duration: 13s; }
.dust-particle:nth-child(12) { top: 65%; animation-delay: 5.5s; animation-duration: 15s; }
.dust-particle:nth-child(13) { top: 70%; animation-delay: 6s; animation-duration: 12s; }
.dust-particle:nth-child(14) { top: 75%; animation-delay: 6.5s; animation-duration: 14s; }
.dust-particle:nth-child(15) { top: 80%; animation-delay: 7s; animation-duration: 13s; }
.dust-particle:nth-child(16) { top: 85%; animation-delay: 7.5s; animation-duration: 15s; }
.dust-particle:nth-child(17) { top: 90%; animation-delay: 8s; animation-duration: 12s; }
.dust-particle:nth-child(18) { top: 5%; animation-delay: 8.5s; animation-duration: 14s; }
.dust-particle:nth-child(19) { top: 95%; animation-delay: 9s; animation-duration: 13s; }
.dust-particle:nth-child(20) { top: 12%; animation-delay: 9.5s; animation-duration: 15s; }

@keyframes floatDustWind {
    0% {
        opacity: 0;
        transform: translateX(120vw) translateY(0) rotate(0deg);
    }
    5% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
        transform: translateX(50vw) translateY(-20px) rotate(180deg);
    }
    95% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateX(-20vw) translateY(-40px) rotate(360deg);
    }
}

.dust-particles.hidden {
    display: none;
}
