:root {
    --bg: #121111;
    --panel: #1e1e1e;
    --accent: #81b64c; 
    --text: #ffffff;
    --gold: #FFD700;
}

body {
    margin: 0; padding: 0;
    background-color: var(--bg); color: var(--text);
    font-family: 'Poppins', sans-serif;
    overflow: hidden; touch-action: none;
    position: fixed; width: 100%; height: 100%;
}

/* Scrollable Areas */
.scrollable-content {
    height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 50px;
}

#landingPage, #botSelectionPage, #scannerPage {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg); z-index: 10;
}

/* NAVBAR */
nav { padding: 15px; background: rgba(0,0,0,0.9); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; height: 60px; box-sizing: border-box; }
.brand-logo { width: 30px; height: 30px; object-fit: contain; }
.brand-text { font-family: 'Orbitron', sans-serif; font-size: 1.1rem; margin-left: 10px; color: white; }
.highlight { color: var(--gold); }
.icon-btn { background: none; border: none; color: #aaa; font-size: 1rem; cursor: pointer; display: flex; align-items: center; gap: 5px; }

/* HERO */
.hero-section { text-align: center; padding: 30px 15px; background: radial-gradient(circle, #222 0%, #121111 100%); }
.hero-section h1 { font-size: 1.8rem; margin-bottom: 5px; color: white; }
.hero-buttons { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.play-big-btn { background: var(--accent); color: white; border: none; padding: 12px 25px; border-radius: 8px; font-weight: bold; font-size: 1rem; box-shadow: 0 4px 0 #5a8235; cursor: pointer; }
.scan-btn { background: #333; color: white; border: 1px solid #555; padding: 12px 20px; border-radius: 8px; font-weight: bold; cursor: pointer; }

/* IMAGES FIX */
.yt-grid { display: flex; gap: 15px; overflow-x: auto; padding: 10px 0; }
.yt-card { min-width: 70px; text-align: center; text-decoration: none; color: white; display: flex; flex-direction: column; align-items: center; }

/* STRICT SIZE LOCK */
.yt-card img, .p-img, .s-img, .bot-card img, .avatar-img { 
    width: 50px !important; 
    height: 50px !important; 
    min-width: 50px !important;
    min-height: 50px !important;
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid #333;
    display: block;
}

/* BOT GRID (3 Columns) */
.bot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px; }
.bot-card { background: #1a1a1a; padding: 10px; border-radius: 8px; text-align: center; border: 2px solid transparent; }
.bot-card:hover { border-color: var(--accent); }
.bot-card.premium { border-color: var(--gold); background: #222; }
.bot-info h4 { margin: 5px 0 0 0; font-size: 0.8rem; color: white; }
.bot-info span { font-size: 0.7rem; color: #888; }

/* GAME AREA (BOARD FIX) */
#gameContainer { 
    height: 100vh; width: 100vw;
    display: flex; flex-direction: column; 
    background: #262421; 
    position: fixed; top: 0; left: 0; z-index: 100;
}
.game-header { padding: 10px; display: flex; justify-content: space-between; background: #1e1e1e; height: 50px; box-sizing: border-box; }

.player-bar { display: flex; align-items: center; padding: 5px 10px; gap: 10px; height: 60px; flex-shrink: 0; }
.user-av { width: 45px; height: 45px; background: #333; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 1.5rem; color: #888; }
.info-box { flex: 1; }
.p-name { display: block; font-weight: bold; font-size: 0.9rem; color: white; }
.p-status { font-size: 0.7rem; color: #aaa; }
.timer-box { background: #111; padding: 5px 10px; border-radius: 4px; font-family: monospace; font-size: 1.2rem; color: white; }

#boardWrapper { 
    flex-grow: 1; 
    display: flex; justify-content: center; align-items: center;
    width: 100%;
    background: #262421;
}
#myBoard { 
    width: 95vw; height: 95vw;
    max-width: 65vh; max-height: 65vh; 
}

/* Dots */
.highlight-move { box-shadow: inset 0 0 3px 3px rgba(155, 199, 0, 0.6); }
.legal-dot { width: 20px; height: 20px; background: rgba(0,0,0,0.25); border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }

/* Info Section (Promo, Players) */
.info-section { padding: 15px; border-top: 1px solid #222; }
.player-row { display: flex; align-items: center; gap: 12px; background: #1a1a1a; padding: 10px; border-radius: 8px; margin-bottom: 8px; }
.p-info h3 { margin: 0; font-size: 0.9rem; color: white; }
.p-info p { margin: 0; font-size: 0.7rem; color: #888; }
.spouse-info { margin-left: auto; text-align: center; }

.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.promo-card { background: #1a1a1a; padding: 10px; border-radius: 8px; border: 1px solid #333; display: flex; align-items: center; gap: 10px; }
.promo-icon { color: var(--gold); font-size: 1.2rem; }
.promo-info h3 { margin: 0; font-size: 0.8rem; color: white; }
.link-text { color: var(--accent); font-size: 0.7rem; text-decoration: none; }

