:root {
    --jeopardy-blue: #060CE9;
    --jeopardy-gold: #FFCC00;
    --bg-color: #000000;
    --text-light: #FFFFFF;
}

body {
    font-family: sans-serif;
    background-color: var(--bg-color);
    color: var(--text-light);
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* Shared utility */
.hidden { display: none !important; }
.btn {
    background: var(--jeopardy-blue);
    color: var(--text-light);
    border: 2px solid var(--jeopardy-gold);
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.setup-screen { display: flex; flex-direction: column; max-width: 400px; margin: 0 auto; gap: 15px; }
input { padding: 10px; font-size: 1rem; border-radius: 5px; }

/* Top Bar (Scores) */
.scoreboard {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.player-card {
    background: var(--jeopardy-blue);
    border: 2px solid var(--jeopardy-gold);
    padding: 10px 20px;
    border-radius: 8px;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.player-card .name {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255,204,0,0.3);
}

.player-card .score {
    display: block;
    font-size: 1.8rem;
    color: var(--jeopardy-gold);
}

/* Board View */
.board-grid {
    display: grid;
    gap: 10px;
    width: 100%;
    height: 80vh;
}
.board-header {
    background: var(--jeopardy-blue);
    color: var(--text-light);
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--text-light);
    font-size: 1.5vw;
}
.board-tile {
    background: var(--jeopardy-blue);
    color: var(--jeopardy-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3vw;
    font-weight: bold;
    border: 2px solid var(--text-light);
    cursor: pointer;
    position: relative;
}
.board-tile.blank { color: transparent; cursor: default; }

.active-tile {
    border: 4px solid #fff !important;
    box-shadow: inset 0 0 15px #fff;
    z-index: 10;
}

/* Overlay Pop-up */
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.overlay-content {
    background: var(--jeopardy-blue);
    border: 5px solid var(--jeopardy-gold);
    padding: 50px;
    font-size: 4vw;
    text-align: center;
    width: 80%;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

/* Player Mobile View */
.player-view { display: flex; flex-direction: column; height: 90vh; text-align: center; }
.question-box { flex: 1; border: 2px solid var(--jeopardy-gold); margin: 20px 0; padding: 20px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.buzzer { height: 250px; border-radius: 50%; font-size: 2rem; background: #e74c3c; border: 10px solid #c0392b; cursor: pointer; transition: background 0.1s; }
.buzzer:active { background: #f1c40f; border-color: #f39c12; }
.buzzer:disabled { background: #7f8c8d; border-color: #95a5a6; }

/* Host View Layout */
.host-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.host-tile:hover { background: rgba(255, 255, 255, 0.2); }
.played-gray { background: #555 !important; color: #888 !important; }
