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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5e6f0 0%, #e8d5e3 50%, #f0e6f5 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

header {
    margin-bottom: 30px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #8b5a7d;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(139, 90, 125, 0.2);
}

.subtitle {
    font-size: 1.1rem;
    color: #a67fa0;
    font-weight: 300;
}

.game-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(139, 90, 125, 0.15);
    backdrop-filter: blur(10px);
}

.message {
    font-size: 1.2rem;
    color: #8b5a7d;
    margin-bottom: 25px;
    min-height: 30px;
    font-weight: 500;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.cell {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f8e8f4 0%, #f0d9e8 100%);
    border: 3px solid #d4a5c4;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #8b5a7d;
    box-shadow: 0 4px 15px rgba(139, 90, 125, 0.1);
}

.cell:hover:not(.disabled) {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 90, 125, 0.2);
    background: linear-gradient(135deg, #fce8f4 0%, #f5d9e8 100%);
}

.cell.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.cell.x {
    color: #c77d9e;
}

.cell.o {
    color: #9b7fb8;
}

.promo-code-container {
    background: linear-gradient(135deg, #f8e8f4 0%, #f0d9e8 100%);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
    border: 3px solid #d4a5c4;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-code-label {
    font-size: 1rem;
    color: #8b5a7d;
    margin-bottom: 15px;
    font-weight: 500;
}

.promo-code {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8b5a7d;
    font-family: 'Playfair Display', serif;
    letter-spacing: 5px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(139, 90, 125, 0.2);
    margin-bottom: 10px;
}

.promo-message {
    font-size: 1rem;
    color: #a67fa0;
    margin-top: 10px;
}

.play-again-container {
    margin-top: 25px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.play-again-btn {
    background: linear-gradient(135deg, #c77d9e 0%, #b86a8f 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(199, 125, 158, 0.3);
    font-family: 'Poppins', sans-serif;
}

.play-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 125, 158, 0.4);
    background: linear-gradient(135deg, #d18ba8 0%, #c77d9e 100%);
}

.play-again-btn:active {
    transform: translateY(0);
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .game-container {
        padding: 25px;
    }
    
    .cell {
        font-size: 2.5rem;
    }
    
    .promo-code {
        font-size: 2rem;
        letter-spacing: 3px;
    }
}

