/* --- BACKGROUND IMAGE --- */
body {
    margin: 0;
    /* MAKE SURE YOU HAVE background.jpg IN YOUR FOLDER */
    background-image: url('background.jpg'); 
    background-size: cover; 
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

#dormdebatle-game-container { 
    font-family: 'Inter', sans-serif; 
    max-width: 700px; 
    width: 95%; 
    margin: 10px auto; 
    text-align: center; 
    /* Semi-transparent background */
    background: rgba(18, 18, 19, 0.95);
    color: white; 
    padding: 20px 15px; 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    position: relative; 
    box-sizing: border-box; 
}

#player-search { width: 100%; padding: 14px; background: #212121; border: 2px solid #3a3a3c; color: white; border-radius: 8px; font-size: 16px; box-sizing: border-box; }
#player-search:focus { border-color: #538d4e; outline: none; }
.autocomplete-items { position: absolute; border: 1px solid #3a3a3c; z-index: 9999; top: 100%; left: 0; right: 0; background-color: #212121; max-height: 250px; overflow-y: auto; border-radius: 0 0 8px 8px; display: none; }
.autocomplete-item { padding: 12px 15px; cursor: pointer; text-align: left; border-bottom: 1px solid #333; color: #eee; font-size: 14px; }
.autocomplete-item:hover { background-color: #3a3a3c; }
.autocomplete-item strong { color: #6aaa64; }
.side-btn, .diff-btn, #guess-button { cursor: pointer; font-weight: 800; transition: all 0.2s; }
.side-btn { background: #212121; border: 2px solid #3a3a3c; color: #818384; padding: 8px 16px; border-radius: 6px; font-size: 13px; }
.side-btn.active { border-color: #538d4e; color: white; background: #1a1a1b; }
.diff-btn { background: #3a3a3c; font-size: 12px; padding: 8px 12px; border: none; color: white; border-radius: 8px; }
#btn-easy.active { background: #6aaa64 !important; }
#btn-medium.active { background: #c9b458 !important; color: black; }
#btn-hard.active { background: #ce3131 !important; }
#btn-extreme.active { background: #8544d6 !important; }
#guess-button { padding: 14px 20px; background: #538d4e; border: none; color: white; border-radius: 8px; }

#stats-labels, .guess-row { display: grid; grid-template-columns: 2.2fr 1fr 1.5fr 1fr 0.8fr 0.8fr; gap: 2px; }

/* TABLE HEADERS: White Text */
#stats-labels { 
    font-weight: 800; 
    margin-top: 20px; 
    font-size: 11px; 
    color: white; 
    letter-spacing: 1px; 
    text-align: center;
}

/* TABLE TILES: White Border, White Text */
.attribute-tile { 
    height: 50px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 11px; 
    font-weight: 800; 
    background: #3a3a3c; 
    border: 1px solid white; 
    text-transform: uppercase; 
    overflow: hidden; 
    word-break: break-word; 
    text-align: center; 
    color: white !important;
}

.name-tile { 
    text-transform: none; 
    background: #212121; 
    padding: 0 2px; 
}

.correct { background-color: #6aaa64 !important; }
.partial { background-color: #c9b458 !important; } 
.wrong { background-color: #ce3131 !important; }
.spinner { margin: 25px auto; width: 40px; height: 40px; border: 4px solid #3a3a3c; border-top: 4px solid #538d4e; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

@media (min-width: 600px) {
    #stats-labels { font-size: 13px; }
    .attribute-tile { height: 60px; font-size: 13px; }
    .diff-btn { font-size: 13px; padding: 10px 18px; }
    #dormdebatle-game-container { padding: 40px 30px; }
}