* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            color: #fff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .container {
            max-width: 800px;
            width: 100%;
            text-align: center;
        }
        
        h1 {
            font-size: 2.8rem;
            margin-bottom: 10px;
            color: #4cc9f0;
            text-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
        }
        
        .subtitle {
            font-size: 1.2rem;
            margin-bottom: 30px;
            color: #a5b4cb;
        }
        
        .game-info {
            display: flex;
            justify-content: space-between;
            background-color: rgba(0, 0, 0, 0.2);
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        
        .player-turn {
            font-size: 1.5rem;
            font-weight: bold;
            padding: 10px 20px;
            border-radius: 10px;
            transition: all 0.3s ease;
        }
        
        .player-x {
            color: #f72585;
            background-color: rgba(247, 37, 133, 0.1);
            border: 2px solid #f72585;
        }
        
        .player-o {
            color: #4cc9f0;
            background-color: rgba(76, 201, 240, 0.1);
            border: 2px solid #4cc9f0;
        }
        
        .stats {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            font-size: 1.1rem;
        }
        
        .stats div {
            margin-bottom: 5px;
        }
        
        .game-board {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-gap: 10px;
            margin: 0 auto 30px;
            max-width: 450px;
            background-color: rgba(255, 255, 255, 0.05);
            padding: 15px;
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
        }
        
        .cell {
            aspect-ratio: 1;
            background-color: rgba(22, 33, 62, 0.8);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 2px solid transparent;
        }
        
        .cell:hover {
            background-color: rgba(30, 45, 85, 0.9);
            transform: translateY(-3px);
            border-color: rgba(76, 201, 240, 0.3);
        }
        
        .cell.x {
            color: #f72585;
            text-shadow: 0 0 15px rgba(247, 37, 133, 0.7);
        }
        
        .cell.o {
            color: #4cc9f0;
            text-shadow: 0 0 15px rgba(76, 201, 240, 0.7);
        }
        
        .cell.winning {
            animation: pulse 1.5s infinite;
            background-color: rgba(76, 201, 240, 0.15);
        }
        
        @keyframes pulse {
            0% { box-shadow: 0 0 5px rgba(76, 201, 240, 0.5); }
            50% { box-shadow: 0 0 20px rgba(76, 201, 240, 0.8); }
            100% { box-shadow: 0 0 5px rgba(76, 201, 240, 0.5); }
        }
        
        .controls {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
        }
        
        button {
            padding: 12px 30px;
            font-size: 1.1rem;
            font-weight: bold;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        #restart-btn {
            background: linear-gradient(to right, #f72585, #b5179e);
            color: white;
        }
        
        #restart-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(247, 37, 133, 0.4);
        }
        
        #reset-stats-btn {
            background: linear-gradient(to right, #4361ee, #3a0ca3);
            color: white;
        }
        
        #reset-stats-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
        }
        
        .message {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s ease;
        }
        
        .message.show {
            opacity: 1;
            visibility: visible;
        }
        
        .message-content {
            background: linear-gradient(135deg, #16213e 0%, #0f172a 100%);
            padding: 40px;
            border-radius: 20px;
            text-align: center;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
            transform: scale(0.8);
            transition: transform 0.5s ease;
        }
        
        .message.show .message-content {
            transform: scale(1);
        }
        
        .message h2 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: #4cc9f0;
        }
        
        .message p {
            font-size: 1.5rem;
            margin-bottom: 30px;
            color: #e2e8f0;
        }
        
        #close-message {
            background: linear-gradient(to right, #f72585, #b5179e);
            color: white;
            padding: 12px 40px;
            font-size: 1.2rem;
        }
        
        footer {
            margin-top: 30px;
            color: #a5b4cb;
            font-size: 0.9rem;
            text-align: center;
            padding: 10px;
        }
        
        @media (max-width: 600px) {
            .game-info {
                flex-direction: column;
                align-items: center;
                gap: 20px;
            }
            
            .stats {
                align-items: center;
            }
            
            .cell {
                font-size: 3rem;
            }
            
            h1 {
                font-size: 2.2rem;
            }
        }