* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F8F5EF;
    font-family: Georgia, serif;
    color: #51463D;
}

.game-container {
    text-align: center;
    width: 90%;
    max-width: 600px;
    padding: 30px;
}

h1 {
    font-size: 42px;
    color: #9B7955;
    font-weight: normal;
}

.subtitle {
    margin: 12px 0 30px;
    color: #8D8175;
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    font-size: 17px;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

#restartBtn {
    margin-top: 30px;
    padding: 13px 30px;
    background: #9B7955;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-family: Georgia, serif;
}

.memory-card {
    aspect-ratio: 1 / 1;
    background: #E9DED0;
    border: 1px solid #D5C2AC;
    border-radius: 12px;
    font-size: 32px;
    color: #9B7955;
    cursor: pointer;
    transition: 0.3s;
}

.memory-card:hover {
    background: #E2D2BF;
    transform: translateY(-3px);
}

.memory-card.flipped {
    background: #FFFFFF;
}

.memory-card.matched {
    background: #E5EBDD;
    border-color: #A8B69A;
    cursor: default;
}