body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

#scoreboard {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}
#timer {
    color: #d32f2f;
    font-weight: bold;
}
#current-user {
    color: #1976d2;
    font-weight: bold;
}

#player-input {
    margin: 20px 0 10px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}
#player-name {
    padding: 8px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #bbb;
}
#start-game {
    padding: 8px 18px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    background: #43a047;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
#start-game:hover {
    background: #2e7031;
}

h1 {
    margin-top: 40px;
    color: #333;
}
#game-board {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    grid-gap: 15px;
    margin: 40px 0 20px 0;
}
.card {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, transform 0.2s;
}
.card.flipped, .card.matched {
    background: #4caf50;
    color: #fff;
    transform: scale(1.05);
}
#restart {
    padding: 10px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    background: #2196f3;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
#restart:hover {
    background: #1769aa;
}
