@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@400;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

.ellord-title {
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.cell-content {
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    from {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}

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

.x-mark {
    color: #22d3ee; /* cyan-400 */
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6));
}

.o-mark {
    color: #f472b6; /* pink-400 */
    filter: drop-shadow(0 0 8px rgba(244, 114, 182, 0.6));
}

/* Winning Line Animation */
.line-horizontal {
    height: 6px;
    width: 0%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation: drawLineHorizontal 0.5s forwards ease-in-out;
}

.line-vertical {
    width: 6px;
    height: 0%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    animation: drawLineVertical 0.5s forwards ease-in-out;
}

.line-diagonal-1 {
    width: 0%;
    height: 6px;
    top: 0;
    left: 0;
    transform-origin: top left;
    transform: rotate(45deg);
    animation: drawLineDiag 0.5s forwards ease-in-out;
}

.line-diagonal-2 {
    width: 0%;
    height: 6px;
    top: 0;
    right: 0;
    transform-origin: top right;
    transform: rotate(-45deg);
    animation: drawLineDiag 0.5s forwards ease-in-out;
}

@keyframes drawLineHorizontal { to { width: 100%; } }
@keyframes drawLineVertical { to { height: 100%; } }
@keyframes drawLineDiag { to { width: 142%; } } /* sqrt(2) * 100 approx 141.4% */

/* Modal Animation */
.modal-active {
    display: flex !important;
    opacity: 1 !important;
}

.modal-content-active {
    transform: scale(1) !important;
}

/* Floating particles simulation */
#particles::before, #particles::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particleMove 20s linear infinite;
}

#particles::after {
    background-size: 70px 70px;
    animation: particleMove 30s linear infinite reverse;
    opacity: 0.5;
}

@keyframes particleMove {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}