/* Hide the activity-section divider right before the quiz */
.activity-section:has(+ .dq-wrap) .divider-dot {
    display: none;
}

/* Daily Quiz Widget */
.dq-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid rgba(138, 118, 200, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    color: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.dq-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8a76c8, #c084fc, #8a76c8);
    background-size: 200% 100%;
    animation: dq-shimmer 3s ease-in-out infinite;
}

@keyframes dq-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.dq-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.dq-icon {
    font-size: 24px;
}

.dq-title {
    margin: 0;
    font-size: 20px;
    color: #c084fc;
    flex-grow: 1;
}

.dq-info {
    font-size: 14px;
    color: #a0a0b8;
    margin-bottom: 16px;
    line-height: 1.5;
}

.dq-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #c084fc;
    font-weight: 600;
}

.dq-current-streak {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    font-size: 14px;
    color: #f59e0b;
    font-weight: 600;
}

.dq-next-bonus {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    color: #a0a0a0;
    font-weight: 400;
    font-style: italic;
}

.dq-balance-count {
    background: rgba(138, 118, 200, 0.2);
    padding: 2px 10px;
    border-radius: 12px;
    color: #e0e0e0;
}

.dq-info .dq-link {
    color: #c084fc;
    text-decoration: underline;
}

.dq-question-text {
    font-size: 17px;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Timer */
.dq-timer-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.dq-timer-ring {
    width: 44px;
    height: 44px;
    transform: rotate(-90deg);
}

.dq-timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
}

.dq-timer-progress {
    fill: none;
    stroke: #8a76c8;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear, stroke 0.3s;
}

.dq-timer-progress.dq-timer--warning {
    stroke: #f59e0b;
}

.dq-timer-progress.dq-timer--critical {
    stroke: #ef4444;
}

.dq-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

/* Options */
.dq-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.dq-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(138, 118, 200, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #e0e0e0;
    font-size: 15px;
    text-align: left;
    width: 100%;
}

.dq-option:hover:not(.dq-option--disabled) {
    background: rgba(138, 118, 200, 0.15);
    border-color: rgba(138, 118, 200, 0.5);
    transform: translateX(4px);
}

.dq-option--disabled {
    cursor: default;
    opacity: 0.7;
}

.dq-option--selected {
    border-color: #8a76c8;
    background: rgba(138, 118, 200, 0.2);
}

.dq-option--correct-answer {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.15) !important;
    opacity: 1 !important;
}

.dq-option--wrong-answer {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.15) !important;
    opacity: 1 !important;
}

.dq-option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(138, 118, 200, 0.2);
    font-weight: 700;
    font-size: 13px;
    color: #c084fc;
    flex-shrink: 0;
}

.dq-option--correct-answer .dq-option-letter {
    background: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.dq-option--wrong-answer .dq-option-letter {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Results */
.dq-result-message {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    column-gap: 10px;
}

.dq-result-correct {
    font-size: 18px;
    font-weight: 700;
    color: #22c55e;
}

.dq-result-wrong {
    font-size: 18px;
    font-weight: 700;
    color: #ef4444;
}

.dq-result-timeout {
    font-size: 18px;
    font-weight: 700;
    color: #f59e0b;
}

.dq-correct-was {
    font-size: 14px;
    color: #a0a0b8;
    margin-left: 10px;
}

.dq-reward {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #8a76c8, #c084fc);
    color: #fff;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.dq-reward--animate {
    animation: dq-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dq-pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.dq-streak-bonus {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.dq-streak {
    font-size: 14px;
    color: #f59e0b;
    font-weight: 600;
}

.dq-come-back {
    margin-top: 12px;
    font-size: 13px;
    color: #a0a0b8;
    font-style: italic;
}

.dq-guest-notice {
    font-size: 14px;
    color: #a0a0b8;
    margin-top: 8px;
}

.dq-guest-notice a {
    color: #c084fc;
    font-weight: 600;
}

.dq-no-questions {
    color: #a0a0b8;
    font-style: italic;
}

/* Timeout pulse */
@keyframes dq-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
}
.dq-pulse {
    display: inline-block;
    animation: dq-pulse 0.9s ease-in-out infinite;
}

.dq-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 8px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-weight: 700;
    font-size: 18px;
}

/* New balance line after correct answer */
.dq-new-balance {
    width: 100%;
    margin-top: 8px;
    font-size: 14px;
    color: #c084fc;
    font-weight: 600;
}

/* Second chance */
.dq-second-chance {
    text-align: center;
}

.dq-planet-message {
    font-size: 15px;
    color: #c084fc;
    font-style: italic;
    margin: 14px 0;
    line-height: 1.5;
}

.dq-second-chance-btn {
    margin-top: 8px;
}

/* Start button */
.dq-start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #8a76c8, #6d5aad);
    border: 1px solid rgba(138, 118, 200, 0.4);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.3px;
}

.dq-start-btn:hover {
    background: linear-gradient(135deg, #9d88d8, #8a76c8);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(138, 118, 200, 0.3);
}

.dq-start-btn:active {
    transform: translateY(0);
}

.dq-start-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* Card state colors */
.dq-card--correct {
    border-color: rgba(34, 197, 94, 0.3);
}

.dq-card--wrong {
    border-color: rgba(239, 68, 68, 0.3);
}

/* Shake animation for critical timer */
@keyframes dq-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.dq-shake {
    animation: dq-shake 0.3s ease;
}

/* Responsive */
@media (max-width: 480px) {
    .dq-card {
        padding: 16px;
    }
    .dq-question-text {
        font-size: 15px;
    }
    .dq-option {
        padding: 10px 12px;
        font-size: 14px;
    }
}
