:root {
    --gsq-primary: #3498db;
    --gsq-bg: #ffffff;
    --gsq-text: #34495e;
    --gsq-border: #eaedef;
    --gsq-yellow: #f1c40f;
    --gsq-green: #2ecc71;
    --gsq-red: #e74c3c;
}

.gsq-quest-floating-wrap {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000000;
    width: 90%;
    max-width: 420px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    pointer-events: none;
}

.gsq-quest-floating-wrap.gsq-active {
    bottom: 30px;
    pointer-events: auto;
}

.gsq-quest-box-minimal {
    background: var(--gsq-bg);
    border: 1px solid var(--gsq-border);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gsq-upper-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gsq-icon-box {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gsq-text);
    flex-shrink: 0;
}

.gsq-icon-box span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gsq-status-text {
    font-size: 13px;
    font-weight: 400;
    color: var(--gsq-text);
    flex-grow: 1;
}

.gsq-timer-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--gsq-red);
    background: #fdf2f1;
    padding: 2px 8px;
    border-radius: 6px;
    display: none;
}

.gsq-progress-container {
    height: 4px;
    background: #f1f3f5;
    border-radius: 4px;
    overflow: visible;
    position: relative;
    margin-top: 15px;
    /* Space for the horse */
}

.gsq-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gsq-green);
    border-radius: 4px;
    transition: width 1s linear;
    /* Smooth linear transition for timer */
    position: relative;
}

.gsq-horse-runner {
    position: absolute;
    right: -53px;
    top: -40px; 
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gsq-horse-active {
    opacity: 1;
}

.gsq-horse-runner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Color States */
.gsq-bar-active {
    background: var(--gsq-green) !important;
}

.gsq-bar-error {
    background: var(--gsq-red) !important;
}

.gsq-bar-scrolling {
    background: var(--gsq-yellow) !important;
}

.gsq-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
}

/* Professional Glow Link: Yellow, Bold, Flashing */
.gsq-glow-link {
    font-weight: 800 !important;
    background: #FFD700 !important;
    /* Gold/Yellow */
    color: #000 !important;
    padding: 2px 6px !important;
    border-radius: 4px;
    text-decoration: none !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: gsq-flash-pulse 1s infinite alternate;
}

.gsq-pulsing {
    animation: gsqPulse 2s infinite ease-in-out;
}

@keyframes gsqPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(34, 113, 177, 0.15);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
}

@keyframes gsq-flash-pulse {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0.7;
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

.gsq-code-display {
    font-size: 16px;
    font-weight: 700;
    color: var(--gsq-green);
    background: rgba(46, 204, 113, 0.05);
    padding: 10px;
    border-radius: 8px;
    display: block;
    text-align: center;
    border: 1px dashed var(--gsq-green);
}

@media (max-width: 480px) {
    .gsq-quest-floating-wrap {
        width: 94%;
    }
}