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

:root { --primary: #6200ea; --accent: #00e676; --dark-bg: #121212; --card-bg: #1e1e1e; --text: #ffffff; }
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
body { background-color: var(--dark-bg); color: var(--text); padding-bottom: 70px; margin: 0; }

/* Header */
header { background: #151515; padding: 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; }
.logo { font-size: 20px; font-weight: bold; color: var(--accent); }
nav a { color: #aaa; text-decoration: none; font-size: 14px; }

/* 💰 BANNER AD STYLES */
/* Common Container */
.ad-container, .banner-ad-top, .ad-box-rect, .grid-ad-full, .ad-middle, .ad-sticky-top, .ad-sticky-bottom {
    display: flex; justify-content: center; align-items: center; 
    background: #000; overflow: hidden; border: 1px solid #333; width: 100%;
}

/* Specific Positions */
.ad-sticky-top { position: sticky; top: 0; z-index: 100; height: 60px; border-bottom: 1px solid #444; }
.ad-sticky-bottom { position: fixed; bottom: 0; left: 0; z-index: 100; height: 60px; border-top: 1px solid #444; }
.ad-middle { margin: 15px 0; height: 60px; }
.grid-ad-full { grid-column: 1 / -1; height: 60px; margin: 10px 0; border-radius: 8px; }
.ad-box-rect { width: 300px; height: 250px; background: #fff; margin: 20px 0; border-radius: 8px; }

/* App Banner */
.app-promo-box {
    background: linear-gradient(135deg, #11998e, #38ef7d); border-radius: 12px; padding: 15px;
    margin: 15px; display: flex; align-items: center; justify-content: space-between; color: white;
}
.app-content { display: flex; align-items: center; gap: 10px; }
.app-icon-img { width: 50px; height: 50px; border-radius: 10px; background: white; }
.app-text h3 { font-size: 16px; margin: 0; }
.app-text p { font-size: 12px; margin: 0; }
.install-btn { background: #000; color: #fff; padding: 8px 15px; border-radius: 5px; text-decoration: none; font-weight: bold; font-size: 12px; }

/* Game Grid */
.container { padding: 0 15px; }
.section-title { margin: 15px 0; border-left: 4px solid var(--accent); padding-left: 10px; }
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.game-card { background: var(--card-bg); border-radius: 10px; overflow: hidden; cursor: pointer; transition: 0.3s; }
.game-card:hover { transform: translateY(-3px); border: 1px solid var(--accent); }
.game-thumb { width: 100%; height: 100px; object-fit: cover; background: #222; }
.game-info { padding: 10px; text-align: center; }
.game-title { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-btn-small { display: block; margin-top: 5px; background: var(--primary); color: white; padding: 4px; border-radius: 4px; font-size: 12px; }

/* Category Buttons */
.category-wrapper { overflow-x: auto; padding: 10px 15px; white-space: nowrap; }
.category-container { display: flex; gap: 10px; }
.cat-btn { background: #2c2c2c; color: #ccc; border: 1px solid #444; padding: 8px 16px; border-radius: 20px; font-size: 12px; cursor: pointer; }
.cat-btn.active { background: var(--accent); color: black; border-color: var(--accent); font-weight: bold; }

/* Popups */
#inactivityBar { position: fixed; top: 60px; left: 0; width: 100%; background: rgba(220, 20, 60, 0.95); color: white; text-align: center; padding: 12px; font-weight: bold; z-index: 20000; display: none; }
.overlay-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,1); z-index: 10000; display: flex; justify-content: center; align-items: center; }
.popup-box { background: #1e1e1e; padding: 30px; border-radius: 15px; width: 90%; max-width: 400px; border: 2px solid #333; text-align: center; }
#countdown { font-size: 40px; font-weight: bold; color: #ff3b30; display: block; margin: 10px 0; }
input { width: 100%; padding: 12px; margin-bottom: 15px; border-radius: 8px; border: 1px solid #555; background: #121212; color: white; }
.pop-btn, .info-btn { background: #00e676; color: black; font-weight: bold; padding: 12px 30px; border: none; border-radius: 30px; width: 100%; cursor: pointer; margin-top: 10px; }

/* Game Page */
.game-nav { background: #1e1e1e; padding: 10px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; height: 60px; }
.back-btn { background: #d32f2f; color: white; border: none; padding: 5px 15px; border-radius: 20px; font-weight: bold; cursor: pointer; }
.stats { font-size: 14px; color: var(--accent); font-weight: bold; text-align: right; }
iframe { width: 100%; height: calc(100vh - 60px); border: none; display: block; }
#startOverlay { flex-direction: column; background: rgba(0,0,0,0.95); }
.big-play-btn { background: linear-gradient(45deg, #00e676, #00c853); color: white; border: none; padding: 15px 50px; font-size: 20px; font-weight: bold; border-radius: 30px; cursor: pointer; box-shadow: 0 0 20px rgba(0,230,118,0.5); margin-top: 20px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
footer { text-align: center; margin-top: 30px; font-size: 12px; color: #777; }