* { box-sizing: border-box; }
body {
    font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #14171c;
    color: #eee;
    margin: 0;
    padding: 0;
}
.topbar {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: #1d2129;
    font-size: 14px;
}
.topbar a { color: #6cb6ff; text-decoration: none; }

.auth-box, .game-box {
    max-width: 420px;
    margin: 40px auto;
    padding: 24px;
    background: #1d2129;
    border-radius: 12px;
    text-align: center;
}
h1 { font-size: 26px; margin-bottom: 20px; }
h2 { font-size: 20px; }

input, select, button {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid #333;
    font-size: 16px;
}
input, select { background: #0f1115; color: #eee; }
button {
    background: #4f8cff;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
button.secondary { background: #333; }
button:disabled { opacity: 0.4; cursor: not-allowed; }

.error { color: #ff6b6b; }
.hint { color: #999; font-size: 14px; }

hr { border-color: #333; margin: 20px 0; }

.player-list { list-style: none; padding: 0; text-align: left; }
.player-list li {
    padding: 10px 14px;
    background: #0f1115;
    border-radius: 8px;
    margin-bottom: 6px;
}

.timer {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: #4f8cff;
}

.role-card {
    background: #0f1115;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}
.role-card.spy { border: 2px solid #ff6b6b; }
.role-card.spy h2 { color: #ff6b6b; }

.vote-list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.vote-btn {
    background: #0f1115;
    border: 1px solid #333;
    color: #eee;
}
.vote-btn.selected { border-color: #4f8cff; background: #16233b; }

.result-row {
    padding: 10px 14px;
    background: #0f1115;
    border-radius: 8px;
    margin-bottom: 6px;
    text-align: left;
}
.result-row.was-spy { border: 1px solid #ff6b6b; }

.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 10px 0 16px;
}
.loc-btn {
    background: #0f1115;
    border: 1px solid #333;
    color: #eee;
    font-size: 14px;
    padding: 10px 6px;
}
.loc-btn.selected { border-color: #4f8cff; background: #16233b; }

.banner {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-weight: 600;
}
.banner.win { background: #16331f; border: 1px solid #3ecf6b; color: #6bffa0; }
.banner.lose { background: #331616; border: 1px solid #ff6b6b; color: #ff9b9b; }

table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { padding: 8px; border-bottom: 1px solid #333; text-align: left; }
