body.login-page {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.login-background {
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.ttt-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 250px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.ttt-celebration-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 9998;
}

.ttt-confetti-piece {
    position: absolute;
    bottom: -14px;
    width: 5px;
    height: 8px;
    opacity: 0;
    border-radius: 1px;
    transform-origin: center;
    animation: tttConfettiBlast 1550ms cubic-bezier(0.15, 0.82, 0.23, 1) forwards;
}

.ttt-win-cross {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ttt-win-cross.is-active {
    opacity: 1;
}

.ttt-result-banner {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 6;
}

.ttt-result-banner.is-active {
    opacity: 1;
}

.ttt-result-banner-text {
    background: linear-gradient(90deg, #ff5f6d, #ffc371, #06d6a0, #2575fc, #9b5de5, #ff5f6d);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(48px, 9vw, 108px);
    line-height: 0.9;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: none;
    animation: tttGradientShift 1200ms linear infinite;
}

.ttt-result-banner-text.is-player-win {
    filter: drop-shadow(0 10px 26px rgba(255, 95, 109, 0.28));
}

.ttt-result-banner-text.is-blendcrm-win {
    filter: drop-shadow(0 10px 26px rgba(37, 117, 252, 0.24));
}

.ttt-win-cross-line {
    position: absolute;
    width: 150px;
    height: 8px;
    border-radius: 999px;
    background: var(--ttt-primary-color, #3c8dbc);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    transform: scaleX(0);
    transform-origin: center;
}

.ttt-win-cross.is-active .ttt-win-cross-line:first-child {
    animation: tttCrossLeft 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ttt-win-cross.is-active .ttt-win-cross-line:last-child {
    animation: tttCrossRight 500ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
}

@keyframes tttCrossLeft {
    from {
        transform: rotate(45deg) scaleX(0);
    }

    to {
        transform: rotate(45deg) scaleX(1);
    }
}

@keyframes tttCrossRight {
    from {
        transform: rotate(-45deg) scaleX(0);
    }

    to {
        transform: rotate(-45deg) scaleX(1);
    }
}

@keyframes tttConfettiBlast {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(0.25);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    24% {
        transform: translate3d(var(--ttt-blast-x, 0px), var(--ttt-blast-y, -26vh), 0) rotate(300deg) scale(1.05);
        opacity: 1;
    }

    62% {
        transform: translate3d(var(--ttt-drift-x, 0px), var(--ttt-peak-y, -40vh), 0) rotate(540deg) scale(0.9);
        opacity: 0.95;
    }

    100% {
        transform: translate3d(var(--ttt-fall-x, 0px), var(--ttt-fall-y, 18vh), 0) rotate(820deg) scale(0.55);
        opacity: 0;
    }
}

@keyframes tttGradientShift {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 100% 50%;
    }
}

.ttt-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #2f2f2f;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.ttt-status {
    margin: 0 0 10px;
    color: #4b4b4b;
    font-size: 12px;
    min-height: 18px;
}

.ttt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.ttt-cell {
    border: none;
    border-radius: 10px;
    height: 56px;
    background: #ffffff;
    color: #2c2c2c;
    font-size: 24px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ttt-reset {
    margin-top: 10px;
    width: 100%;
    border: none;
    border-radius: 8px;
    height: 34px;
    color: #fff;
    background: var(--ttt-primary-color, #3c8dbc);
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 991px) {
    .ttt-overlay {
        width: 220px;
    }

    .ttt-result-banner-text {
        font-size: clamp(42px, 12vw, 72px);
    }
}