body {
    margin: 0; padding: 0;
    background: #121212; color: white;
    font-family: 'Poppins', sans-serif;
    overflow: hidden; /* No Body Scroll */
    height: 100vh; width: 100vw;
}

/* Page Management */
.active-page { display: flex; flex-direction: column; height: 100%; width: 100%; }
.hidden-page { display: none !important; }

/* Navigation */
nav { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; background: #1e1e1e; border-bottom: 1px solid #333; flex-shrink: 0; }
.logo { font-weight: 800; font-size: 1.2rem; }
.gold { color: #FFD700; }
.icon-btn { background: none; border: none; color: #ccc; font-size: 1.2rem; }

/* Scrollable Content Area */
.content-scroll { flex: 1; overflow-y: auto; padding: 15px; }

/* Hero */
.hero { text-align: center; padding: 20px 0; background: #1a1a1a; margin-bottom: 20px; border-radius: 10px; }
.btn-row { display: flex; gap: 10px; justify-content: center; margin-top: 15px; }
.btn-primary { background: #81b64c; color: white; border: none; padding: 10px 20px; border-radius: 5px; font-weight: bold; }
.btn-secondary { background: #333; color: white; border: 1px solid #555; padding: 10px 20px; border-radius: 5px; font-weight: bold; }

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card { background: #1e1e1e; padding: 10px; border-radius: 8px; text-align: center; border: 1px solid #333; }
.premium { border-color: #FFD700; background: #222; }

/* IMAGES FIX (Strict 50px) */
.avatar-item img, .bot-card img, .p-avatar {
    width: 50px !important; height: 50px !important;
    border-radius: 50%; object-fit: cover;
    display: block; margin: 0 auto 5px auto;
    border: 2px solid #444;
}
.scroll-row { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; }
.avatar-item { text-decoration: none; color: white; font-size: 0.8rem; text-align: center; display: block; }

/* GAME AREA (The Fix) */
#game-board-area {
    width: 100vw; height: 100vw; /* Square */
    max-width: 95vh; max-height: 95vh;
    margin: 10px auto; /* Center */
    background: #262421;
}
#myBoard { width: 100%; height: 100%; }

.player-top, .player-bottom {
    display: flex; align-items: center; gap: 10px; padding: 5px 15px;
    height: 60px; background: #121212; flex-shrink: 0;
}
.user-icon { background: #333; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.p-info { flex: 1; font-size: 0.9rem; }
.timer { background: #333; padding: 5px 10px; border-radius: 4px; font-family: monospace; font-size: 1.2rem; }
.game-actions { display: flex; gap: 10px; padding: 10px; justify-content: center; }
.game-actions button { background: #333; color: white; border: none; padding: 10px 20px; border-radius: 5px; width: 45%; }

/* Scanner & Modal */
.upload-box { border: 2px dashed #81b64c; color: #888; cursor: pointer; }
.scan-text { background: black; color: #81b64c; padding: 10px; margin: 10px 0; min-height: 50px; font-family: monospace; font-size: 0.8rem; }
.modal-wrap { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 999; }
.modal-box { background: #222; padding: 20px; border-radius: 10px; text-align: center; width: 80%; }

/* 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.3); border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

