* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #f5f5dc;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: #ffffff;
    padding: 40px;
    border: 8px solid #000000;
    box-shadow: 12px 12px 0 #000000;
    text-align: center;
}

h1 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 8px;
    border-bottom: 6px solid #000000;
    padding-bottom: 15px;
}

.mode-selector {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
}

.mode-btn {
    background: #ffffff;
    color: #000000;
    border: 4px solid #000000;
    padding: 12px 25px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.1s;
}

.mode-btn:first-child {
    border-right: 2px solid #000000;
}

.mode-btn:last-child {
    border-left: 2px solid #000000;
}

.mode-btn:hover {
    background: #ffff00;
}

.mode-btn.active {
    background: #000000;
    color: #ffffff;
}

.status {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #000000;
    font-weight: bold;
    min-height: 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    grid-template-rows: repeat(3, 120px);
    gap: 0;
    margin: 0 auto 30px;
    border: 6px solid #000000;
}

.cell {
    background: #ffffff;
    border: 4px solid #000000;
    font-size: 4rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.1s;
    font-family: 'Courier New', monospace;
}

.cell:hover {
    background: #ffff00;
}

.cell.x {
    color: #ff0000;
}

.cell.o {
    color: #0000ff;
}

.cell.winner {
    background: #00ff00;
}

.restart-btn {
    background: #000000;
    color: #ffffff;
    border: 4px solid #000000;
    padding: 18px 50px;
    font-size: 1.3rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.1s;
    margin-bottom: 25px;
    font-weight: bold;
}

.restart-btn:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 6px 6px 0 #000000;
    transform: translate(-3px, -3px);
}

.restart-btn:active {
    box-shadow: none;
    transform: translate(0, 0);
}

.score {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.1rem;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.score span {
    background: #ffffff;
    padding: 12px 20px;
    border: 4px solid #000000;
    font-weight: bold;
}

.status.winner-x {
    color: #ff0000;
    background: #ffff00;
    padding: 10px;
    border: 4px solid #000000;
}

.status.winner-o {
    color: #0000ff;
    background: #ffff00;
    padding: 10px;
    border: 4px solid #000000;
}

.status.tie {
    color: #000000;
    background: #ff6600;
    padding: 10px;
    border: 4px solid #000000;
}
