/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Consolas', monospace;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: background 0.3s ease;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 0, 0, 0.02) 0px,
            transparent 1px,
            transparent 2px,
            rgba(255, 0, 0, 0.02) 3px
        );
    pointer-events: none;
    z-index: 0;
}

body.night-mode {
    background: linear-gradient(135deg, #000000 0%, #1a0033 50%, #0d0221 100%);
}

body.night-mode::before {
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 0, 255, 0.05) 0px,
            transparent 1px,
            transparent 2px,
            rgba(255, 0, 255, 0.05) 3px
        );
}

.hidden {
    display: none !important;
}

/* Menu Screen */
.menu-screen {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 0 40px rgba(255, 0, 0, 0.2),
        0 0 80px rgba(255, 0, 0, 0.1),
        inset 0 0 60px rgba(255, 0, 0, 0.03);
    max-width: 600px;
    width: 100%;
    animation: fadeIn 0.5s ease-in;
    border: 2px solid rgba(255, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

body.night-mode .menu-screen {
    background: rgba(13, 2, 33, 0.95);
    border-color: rgba(255, 0, 255, 0.4);
    box-shadow: 
        0 0 40px rgba(255, 0, 255, 0.3),
        0 0 80px rgba(255, 0, 255, 0.1),
        inset 0 0 60px rgba(255, 0, 255, 0.05);
}

.menu-container {
    text-align: center;
}

.menu-container h1 {
    color: #dc0000;
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 0.5rem;
    text-shadow: 
        0 0 10px rgba(255, 0, 0, 0.3),
        0 0 20px rgba(255, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
}

body.night-mode .menu-container h1 {
    color: #ff00ff;
    text-shadow: 
        0 0 10px rgba(255, 0, 255, 0.8),
        0 0 20px rgba(255, 0, 255, 0.6);
}

.menu-container h2 {
    color: #666;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 2rem;
    font-weight: 500;
}

body.night-mode .menu-container h2 {
    color: #bbb;
}

.menu-container h3 {
    color: #dc0000;
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

body.night-mode .menu-container h3 {
    color: #ff00ff;
}

.menu-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.menu-btn {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(220, 0, 0, 0.15));
    border: 3px solid rgba(255, 0, 0, 0.3);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 10px rgba(255, 0, 0, 0.15),
        inset 0 0 10px rgba(255, 0, 0, 0.05);
    min-width: 200px;
    flex: 1;
    max-width: 250px;
    position: relative;
    overflow: hidden;
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.menu-btn:hover::before {
    width: 300px;
    height: 300px;
}

.menu-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(220, 0, 0, 0.25));
    transform: translateY(-5px);
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.3),
        0 10px 25px rgba(255, 0, 0, 0.2),
        inset 0 0 15px rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.5);
}

body.night-mode .menu-btn {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(200, 0, 200, 0.3));
    border-color: rgba(255, 0, 255, 0.5);
    box-shadow: 
        0 0 10px rgba(255, 0, 255, 0.3),
        inset 0 0 10px rgba(255, 0, 255, 0.1);
}

body.night-mode .menu-btn::before {
    background: rgba(255, 0, 255, 0.3);
}

body.night-mode .menu-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.3), rgba(200, 0, 200, 0.4));
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.5),
        0 10px 25px rgba(255, 0, 255, 0.4),
        inset 0 0 15px rgba(255, 0, 255, 0.2);
    border-color: rgba(255, 0, 255, 0.8);
}

.menu-btn-icon {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1rem;
}

.menu-btn-text {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: bold;
    color: #dc0000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

body.night-mode .menu-btn-text {
    color: #ff00ff;
}

.menu-btn-desc {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #666;
}

body.night-mode .menu-btn-desc {
    color: #bbb;
}

.difficulty-selector {
    background: rgba(255, 0, 0, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    animation: slideDown 0.4s ease;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

body.night-mode .difficulty-selector {
    background: rgba(255, 0, 255, 0.1);
    border-color: rgba(255, 0, 255, 0.3);
}

.difficulty-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.difficulty-btn {
    padding: 1rem 2rem;
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 600;
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    background: rgba(255, 0, 0, 0.05);
    color: #dc0000;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.difficulty-btn:hover {
    background: rgba(255, 0, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.5);
}

body.night-mode .difficulty-btn {
    background: rgba(255, 0, 255, 0.1);
    color: #ff00ff;
    border-color: rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

body.night-mode .difficulty-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    border-color: rgba(255, 0, 255, 0.8);
}

.difficulty-btn[data-difficulty="easy"]:hover {
    background: #2ecc71;
    border-color: #2ecc71;
    color: white;
}

.difficulty-btn[data-difficulty="medium"]:hover {
    background: #f39c12;
    border-color: #f39c12;
    color: white;
}

.difficulty-btn[data-difficulty="hard"]:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

/* Container */
.container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 0 40px rgba(255, 0, 0, 0.2),
        0 0 80px rgba(255, 0, 0, 0.1),
        inset 0 0 60px rgba(255, 0, 0, 0.03);
    max-width: 600px;
    width: 100%;
    animation: fadeIn 0.5s ease-in;
    border: 2px solid rgba(255, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

body.night-mode .container {
    background: rgba(13, 2, 33, 0.95);
    border-color: rgba(255, 0, 255, 0.4);
    box-shadow: 
        0 0 40px rgba(255, 0, 255, 0.3),
        0 0 80px rgba(255, 0, 255, 0.1),
        inset 0 0 60px rgba(255, 0, 255, 0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Title */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    color: #dc0000;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin: 0;
    text-shadow: 
        0 0 10px rgba(255, 0, 0, 0.3),
        0 0 20px rgba(255, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
}

body.night-mode h1 {
    color: #ff00ff;
    text-shadow: 
        0 0 10px rgba(255, 0, 255, 0.8),
        0 0 20px rgba(255, 0, 255, 0.6);
}

.night-mode-btn {
    position: absolute;
    right: 0;
    padding: 8px 12px;
    font-size: 20px;
    background: rgba(255, 0, 0, 0.05);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.15);
}

.night-mode-btn:hover {
    background: rgba(255, 0, 0, 0.15);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.5);
}

body.night-mode .night-mode-btn {
    background: rgba(255, 0, 255, 0.1);
    border-color: rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

body.night-mode .night-mode-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.5);
}

.back-btn {
    position: absolute;
    left: 0;
    padding: 8px 12px;
    font-size: 14px;
    background: rgba(255, 0, 0, 0.05);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    color: #dc0000;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.15);
    display: inline-block;
}

.back-btn:hover {
    background: rgba(255, 0, 0, 0.15);
    transform: translateX(-3px);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.5);
}

body.night-mode .back-btn {
    background: rgba(255, 0, 255, 0.1);
    border-color: rgba(255, 0, 255, 0.5);
    color: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

body.night-mode .back-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.5);
}

/* Game Mode Display */
.game-mode-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(255, 0, 0, 0.05);
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 0.5rem;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

body.night-mode .game-mode-display {
    background: rgba(255, 0, 255, 0.1);
    border-color: rgba(255, 0, 255, 0.3);
}

#game-mode-text {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 600;
    color: #dc0000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

body.night-mode #game-mode-text {
    color: #ff00ff;
}

.btn-back {
    padding: 0.5rem 1rem;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 600;
    border: 2px solid rgba(255, 0, 0, 0.3);
    background: rgba(255, 0, 0, 0.05);
    color: #dc0000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-back:hover {
    background: rgba(255, 0, 0, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.5);
}

body.night-mode .btn-back {
    background: rgba(255, 0, 255, 0.1);
    color: #ff00ff;
    border-color: rgba(255, 0, 255, 0.5);
}

body.night-mode .btn-back:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
    border-color: rgba(255, 0, 255, 0.8);
}

/* Game Info Section */
.game-info {
    margin-bottom: 1.5rem;
}

.player-turn {
    text-align: center;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

#current-player {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#current-player.player-x {
    background-color: #3498db;
    color: white;
}

#current-player.player-o {
    background-color: #e74c3c;
    color: white;
}

/* Score Board */
.score-board {
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: rgba(255, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

body.night-mode .score-board {
    background: rgba(255, 0, 255, 0.1);
    border-color: rgba(255, 0, 255, 0.3);
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 80px;
}

.score-label {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    color: #dc0000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

body.night-mode .score-label {
    color: #ff00ff;
}

.score-item span:last-child {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: bold;
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

body.night-mode .score-item span:last-child {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* Game Board */
.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    margin: 1.5rem auto;
    max-width: 450px;
    width: 100%;
    aspect-ratio: 1;
}

.cell {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(220, 0, 0, 0.15));
    border: 3px solid rgba(255, 0, 0, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 10px rgba(255, 0, 0, 0.15),
        inset 0 0 10px rgba(255, 0, 0, 0.05);
    min-height: 0;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.cell::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cell:hover:not(.taken)::before {
    width: 300px;
    height: 300px;
}

.cell:hover:not(.taken) {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(220, 0, 0, 0.25));
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.3),
        inset 0 0 15px rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.5);
}

body.night-mode .cell {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(200, 0, 200, 0.3));
    border-color: rgba(255, 0, 255, 0.5);
    box-shadow: 
        0 0 10px rgba(255, 0, 255, 0.3),
        inset 0 0 10px rgba(255, 0, 255, 0.1);
}

body.night-mode .cell::before {
    background: rgba(255, 0, 255, 0.3);
}

body.night-mode .cell:hover:not(.taken) {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.3), rgba(200, 0, 200, 0.4));
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.5),
        inset 0 0 15px rgba(255, 0, 255, 0.2);
    border-color: rgba(255, 0, 255, 0.8);
}

.cell.taken {
    cursor: not-allowed;
}

.cell.player-x {
    color: #3498db;
    animation: placeToken 0.3s ease;
}

.cell.player-o {
    color: #e74c3c;
    animation: placeToken 0.3s ease;
}

.cell.winner {
    background: linear-gradient(145deg, #ffd700, #ffed4e);
    animation: winnerPulse 0.6s ease infinite;
}

@keyframes placeToken {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes winnerPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    }
}

/* Game Controls */
.game-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 600;
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 10px rgba(255, 0, 0, 0.15),
        inset 0 0 10px rgba(255, 0, 0, 0.05);
    flex: 1;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.3),
        inset 0 0 15px rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(220, 0, 0, 0.3));
    color: #dc0000;
}

body.night-mode .btn {
    border-color: rgba(255, 0, 255, 0.5);
    box-shadow: 
        0 0 10px rgba(255, 0, 255, 0.3),
        inset 0 0 10px rgba(255, 0, 255, 0.1);
}

body.night-mode .btn::before {
    background: rgba(255, 0, 255, 0.3);
}

body.night-mode .btn:hover {
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.5),
        inset 0 0 15px rgba(255, 0, 255, 0.2);
    border-color: rgba(255, 0, 255, 0.8);
}

body.night-mode .btn-primary {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.3), rgba(200, 0, 200, 0.4));
    color: #ff00ff;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.3), rgba(240, 147, 251, 0.3));
    color: #f5576c;
}

body.night-mode .btn-secondary {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.4), rgba(240, 147, 251, 0.4));
}

.btn-large {
    padding: 1rem 2rem;
    font-size: clamp(1rem, 3vw, 1.2rem);
    min-width: 180px;
}

/* Game Message Modal */
.game-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.game-message.hidden {
    display: none;
}

.message-content {
    background: rgba(255, 255, 255, 0.98);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 
        0 0 40px rgba(255, 0, 0, 0.4),
        0 0 80px rgba(255, 0, 0, 0.2);
    animation: slideDown 0.4s ease;
    max-width: 90%;
    border: 2px solid rgba(255, 0, 0, 0.3);
}

body.night-mode .message-content {
    background: rgba(13, 2, 33, 0.98);
    border-color: rgba(255, 0, 255, 0.5);
    box-shadow: 
        0 0 40px rgba(255, 0, 255, 0.6),
        0 0 80px rgba(255, 0, 255, 0.3);
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.message-content h2 {
    color: #dc0000;
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

body.night-mode .message-content h2 {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .container, .menu-screen {
        padding: 1.5rem;
    }

    .game-board {
        gap: 8px;
    }

    .cell {
        border-width: 2px;
    }

    .score-board {
        padding: 0.8rem;
    }

    .btn {
        min-width: 120px;
        padding: 0.7rem 1.2rem;
    }
}

@media (max-width: 360px) {
    .container, .menu-screen {
        padding: 1rem;
    }

    .game-board {
        gap: 6px;
    }

    .score-board {
        gap: 0.3rem;
    }
}

/* Landscape Mode Optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .container, .menu-screen {
        padding: 1rem;
        max-width: 90vw;
    }

    h1 {
        margin-bottom: 0.5rem;
    }

    .game-info {
        margin-bottom: 0.8rem;
    }

    .game-board {
        margin: 0.8rem auto;
        max-width: 300px;
    }

    .game-controls {
        margin-top: 0.8rem;
    }
}
