body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #faf8ef;
    color: #776e65;
    padding-top: 40px;
}

.page-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
}

.container {
    width: 500px;
    text-align: center;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 60px;
    font-weight: bold;
    margin: 0;
}

.score-container {
    display: flex;
    gap: 8px;
}

.score-box {
    background-color: #bbada0;
    color: #eee4da;
    padding: 15px 25px;
    border-radius: 3px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
}

.score-box span:last-child {
    color: #fff;
    font-size: 25px;
}

.controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

#new-game-button {
    background-color: #8f7a66;
    color: #f9f6f2;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#new-game-button:hover {
    background-color: #9f8b77;
}

.instructions {
    margin-top: 20px;
    font-size: 16px;
    color: #8f7a66;
}

.home-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #8f7a66;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 10px;
    background-color: #bbada0;
    border-radius: 6px;
    padding: 10px;
    width: 500px;
    height: 500px;
    box-sizing: border-box;
}

.grid-cell {
    background-color: #eee4da;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
    color: #776e65;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.grid-cell:hover {
    background-color: #ede0c8;
    transform: scale(1.05);
}

.grid-cell:active {
    transform: scale(0.95);
}

.ranking-column {
    width: 250px;
    padding: 20px;
    border: 2px solid #bbada0;
    background-color: #faf8ef;
    border-radius: 8px;
    color: #776e65;
}

.ranking-column h2 {
    text-align: center;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #bbada0;
}

#ranking-list {
    list-style-type: decimal;
    padding-left: 20px;
    margin: 0;
}

#ranking-list li {
    font-size: 1.1em;
    padding: 8px 5px;
    border-bottom: 1px solid #eee4da;
}

#ranking-list li:first-child {
    font-weight: bold;
    color: #f65e3b;
}
