* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #edebe4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.game {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    width: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}
h2 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0ddcf;
    border-radius: 12px;
    background-color: #faf9f6;
    color: #4a4a4a;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237a7a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}
.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}
.cell {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 44px;
    font-weight: 300;
    cursor: pointer;
    border-radius: 14px;
    transition: background-color 0.2s, transform 0.1s;
    user-select: none;
}
.cell.empty {
    background: #e8e6e2;
}
.cell.empty:hover {
    background: #dfded9;
}
.cell.X {
    background: #e9e7ff;
    color: #4338ca;
}
.cell.O {
    background: #ffebe3;
    color: #9a3412;
}
#status {
    color: #555555;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 24px;
}
button {
    width: 100%;
    padding: 14px;
    border: 1px solid #e0ddcf;
    border-radius: 12px;
    background: #faf9f6;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
button:hover {
    background: #f0eee7;
}