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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0a0a1e;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #eee;
    overflow: hidden;
}

.app {
    text-align: center;
    padding: 20px;
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.aurora-canvas {
    width: 100%;
    height: 100%;
}

.content {
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.menu, .game-container, .game-over {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #fff;
    font-weight: bold;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.btn.secondary {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    margin-top: 10px;
}

.btn.secondary:hover {
    box-shadow: 0 5px 20px rgba(100, 100, 100, 0.4);
}

.btn.primary {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
}

.btn.primary:hover {
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 10px;
    margin: 30px auto;
    justify-content: center;
}

.cell {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cell:hover {
    background: rgba(255, 255, 255, 0.25);
}

.cell.X {
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
}

.cell.O {
    color: #ff6b6b;
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.7);
}

.game-info {
    margin: 20px 0;
}

.turn-info {
    font-size: 1.3rem;
    color: #ccc;
}

.loading {
    font-size: 1.5rem;
    color: #888;
}

@media (max-width: 400px) {
    .board {
        grid-template-columns: repeat(3, 80px);
        grid-template-rows: repeat(3, 80px);
    }
    
    .cell {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
}
