body {
    background: linear-gradient(120deg, #232526, #414345);
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
}

main, #login-area, #leaderboard-area {
    max-width: 400px;
    margin: 40px auto 0 auto;
    padding: 24px;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 24px #0008;
    text-align: center;
}

h1 {
    margin-bottom: 8px;
    letter-spacing: 2px;
    font-size: 2.2em;
}

.subtitle {
    color: #bdbdbd;
    margin-bottom: 24px;
}

#game-board {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cell {
    width: 48px;
    height: 48px;
    border: 2px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    background: #222;
    color: #fff;
    border-radius: 8px;
    transition: background 0.2s, border 0.2s;
    text-transform: uppercase;
    font-weight: bold;
}

.cell.correct {
    background: #6aaa64;
    border-color: #6aaa64;
}

.cell.present {
    background: #c9b458;
    border-color: #c9b458;
}

.cell.absent {
    background: #555;
    border-color: #555;
}

#guess-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

#guess-input {
    width: 120px;
    font-size: 1.2em;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #888;
    text-align: center;
    text-transform: uppercase;
    outline: none;
}

#guess-btn, #restart-btn, #login-btn {
    background: #6aaa64;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

#guess-btn:disabled, #restart-btn:disabled, #login-btn:disabled {
    background: #888;
    cursor: not-allowed;
}

#message, #login-msg {
    min-height: 24px;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #ffd700;
}

footer {
    text-align: center;
    margin: 32px 0 0 0;
    color: #aaa;
    font-size: 0.9em;
}

#leaderboard-area {
    margin-top: 30px;
    background: rgba(30, 30, 30, 0.95);
}

#leaderboard {
    text-align: left;
    margin: 0 auto;
    max-width: 300px;
    color: #fff;
    font-size: 1.1em;
}

#switch-to-login, #switch-to-signup {
    margin-top: 16px;
    color: #bdbdbd;
    font-size: 0.9em;
}

#switch-to-login a, #switch-to-signup a {
    color: #6aaa64;
    text-decoration: none;
    font-weight: bold;
}

#switch-to-login a:hover, #switch-to-signup a:hover {
    text-decoration: underline;
}

#signup-msg {
    min-height: 24px;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #ffd700;
}