:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --primary: #00ff88;
    --accent: #ff0055;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --header-height: 70px;
    --radius: 8px;
    
    
    --ad-leaderboard-h: 250px;  
    --ad-sidebar-w: 300px;      
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

 
.main-header {
    height: var(--header-height);
    background: rgba(30, 30, 30, 0.95);
    border-bottom: 1px solid #333;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; position: sticky; top: 0; z-index: 100;
}
.logo { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }

 
.ad-container { display: flex; justify-content: center; align-items: center; background: #000; margin: 10px auto; overflow: hidden; }
.ad-header { width: 970px; height: 250px; max-width: 100%; }
.ad-side { width: 300px; height: 600px; position: sticky; top: 90px; } 
.ad-content-bottom { width: 970px; height: 250px; max-width: 100%; margin-top: 20px; }


.layout-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 100%;
}

 
.layout-sidebar {
    width: var(--ad-sidebar-w);
    flex-shrink: 0;
    display: none;  
}

 
.layout-main {
    flex: 1;
    max-width: 1000px;  
    min-width: 0;  
}

 
.game-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;  
    box-shadow: 0 0 20px rgba(0,255,136,0.1);
}

.game-iframe { width: 100%; height: 100%; border: none; }

 
.game-cloak {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 10;
    background-color: #000;
}
.game-cloak::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); 
    backdrop-filter: blur(5px);
}

.play-btn {
    position: relative; z-index: 11;
    background: var(--primary); color: #000;
    width: 100px; height: 100px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; cursor: pointer;
    box-shadow: 0 0 30px var(--primary);
    animation: pulse 1.5s infinite;
    border: none;
}
.play-text {
    position: relative; z-index: 11;
    color: white; margin-top: 20px; font-size: 24px; font-weight: bold; text-transform: uppercase;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 20px rgba(0, 255, 136, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

 
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 30px; }
.game-card { background: #222; border-radius: 8px; overflow: hidden; position: relative; }
.game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.game-card .title { padding: 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #ddd; }

 
@media (min-width: 1400px) {
    .layout-sidebar { display: block; } / 
}
@media (max-width: 1000px) {
    .ad-header, .ad-content-bottom { display: none; }  
}

 
.main-footer {
    width: 100%;
    background: #0f0f0f;  
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid #333;
    
   
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.main-footer p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.footer-links a {
    color: #888;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary);
}
  .home-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-family: sans-serif;
    transition: background 0.3s ease;
  }

  .home-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .home-button:hover {
    background-color: #2980b9;
  }