/* ===== Quest System Styles ===== */

/* Container */
.quest-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    background: var(--gradient-game-dark);
    color: var(--color-text-primary);
    min-height: 100vh;
}

/* Welcome Card for No Character */
.quest-welcome-card {
    background: var(--gradient-game-primary);
    border-radius: 24px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
    text-align: center;
    box-shadow: var(--shadow-game-purple);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.quest-welcome-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(0, 255, 255, 0.1) 0%,
        transparent 50%
    );
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0%,
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.3;
    }
}

.quest-welcome-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-game-neon);
}

.quest-welcome-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.quest-welcome-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--color-text-primary);
}

.quest-welcome-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Character Selection Button */
.character-selection-btn {
    background: var(--gradient-game-secondary);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    color: var(--color-text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-game-purple);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.character-selection-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
    z-index: -1;
}

.character-selection-btn:hover::before {
    left: 100%;
}

.character-selection-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-game-neon);
}

/* Character Selection Modal */
.character-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem;
}

.character-modal-content {
    background: var(--color-game-dark-surface);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(168, 85, 247, 0.3);
    box-shadow: var(--shadow-game-purple);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.character-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.character-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-game-purple-200);
    margin-bottom: 0.5rem;
    background: var(--gradient-game-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.character-modal-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.character-card {
    background: var(--color-game-dark-card);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid rgba(168, 85, 247, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-game-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.character-card:hover::before,
.character-card.selected::before {
    transform: scaleX(1);
}

.character-card:hover {
    border-color: var(--color-game-neon-cyan);
    transform: translateY(-5px);
    box-shadow: var(--shadow-game-neon);
}

.character-card.selected {
    border-color: var(--color-game-purple-400);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(116, 75, 162, 0.1) 100%);
    box-shadow: var(--shadow-game-purple);
}

.character-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--gradient-game-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-text-primary);
    overflow: hidden;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.character-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.character-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.character-level {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.character-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-game-primary);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-game-purple);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-game-neon);
}

.btn-secondary {
    background: var(--color-game-dark-card);
    color: var(--color-text-secondary);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.btn-secondary:hover {
    background: var(--color-game-dark-surface);
    transform: translateY(-2px);
    border-color: var(--color-game-purple-400);
}

/* Rewards Chain */
.rewards-section {
    margin-top: 3rem;
}

.rewards-header {
    text-align: center;
    margin-bottom: 3rem;
}

.rewards-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-game-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.rewards-description {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.reward-card {
    background: var(--color-game-dark-card);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(168, 85, 247, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.reward-card:nth-child(1) {
    animation-delay: 0.1s;
}
.reward-card:nth-child(2) {
    animation-delay: 0.2s;
}
.reward-card:nth-child(3) {
    animation-delay: 0.3s;
}
.reward-card:nth-child(4) {
    animation-delay: 0.4s;
}
.reward-card:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reward-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-game-neon);
    border-color: var(--color-game-neon-cyan);
}

.reward-day-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--gradient-game-secondary);
    color: var(--color-text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-game-purple);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.reward-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.reward-item.normal {
    background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
    border-left: 4px solid #38b2ac;
}

.reward-item.vip {
    background: linear-gradient(135deg, #fef5e7 0%, #fed7aa 100%);
    border-left: 4px solid #ed8936;
}

.reward-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.reward-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.reward-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reward-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.reward-details p {
    color: #718096;
    font-size: 0.9rem;
}

.reward-count {
    background: #4a5568;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.reward-item.vip .reward-count {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.reward-item.normal .reward-count {
    background: linear-gradient(135deg, #38b2ac 0%, #319795 100%);
}

/* Loading States */
.quest-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #718096;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Quest Dashboard Styles */
.quest-dashboard {
    margin-top: 2rem;
}

.quest-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quest-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-game-purple-800);
    margin-bottom: 2rem;
    background: var(--gradient-game-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

/* Quest Main Container - Split Layout */
.quest-main-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 100%;
    overflow: hidden;
}

.quest-left-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0; /* يمنع التمدد الزائد */
}

.quest-right-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0; /* يمنع التمدد الزائد */
}

/* Quest Duration Section */
.quest-duration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.75rem;
    background: linear-gradient(
        135deg,
        rgba(168, 85, 247, 0.05) 0%,
        rgba(124, 58, 237, 0.05) 100%
    );
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.duration-card {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    flex: 1;
}

.duration-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-game-purple);
    border-color: rgba(168, 85, 247, 0.2);
}

.duration-icon {
    font-size: 1rem;
    padding: 0.25rem;
    border-radius: 6px;
    background: var(--gradient-game-primary);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: var(--shadow-game-glow);
    }
    to {
        box-shadow: var(--shadow-game-neon);
    }
}

.duration-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.duration-label {
    font-size: 0.6rem;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.duration-value {
    font-size: 0.75rem;
    color: var(--color-game-purple-800);
    font-weight: 700;
}

.duration-separator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0.25rem;
}

.separator-line {
    width: 12px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-game-purple-600) 50%,
        transparent 100%
    );
    border-radius: 1px;
}

.separator-icon {
    font-size: 0.7rem;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Quest Progress Bar */
.quest-progress-bar {
    margin: 0;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-game-purple);
    border: 1px solid rgba(168, 85, 247, 0.1);
}

/* Quest Duration Section inside Progress Bar */
.quest-progress-bar .quest-duration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    padding: 0;
    background: none;
    border-radius: 0;
    border: none;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.progress-label {
    font-size: 0.7rem;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.progress-percentage {
    font-size: 1.1rem;
    color: var(--color-game-purple-800);
    font-weight: 800;
    background: var(--gradient-game-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.days-remaining {
    text-align: right;
}

.remaining-text {
    font-size: 0.7rem;
    color: var(--color-game-neon-pink);
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 0, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 255, 0.2);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.3);
}

.remaining-text.completed {
    color: var(--color-game-neon-green);
    background: rgba(57, 255, 20, 0.1);
    border-color: rgba(57, 255, 20, 0.2);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
}

.progress-track {
    position: relative;
    width: 100%;
    height: 8px;
    background: var(--color-game-purple-100);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-game-secondary);
    border-radius: 4px;
    position: relative;
    transition: width 0.8s ease-in-out;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 25px;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 255, 255, 0.6) 50%,
        transparent 100%
    );
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-25px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(25px);
        opacity: 0;
    }
}

.progress-marker {
    position: absolute;
    top: -4px;
    transform: translateX(-50%);
    z-index: 2;
}

.marker-dot {
    width: 10px;
    height: 10px;

    border: 2px solid var(--color-game-purple-600);
    border-radius: 50%;
    box-shadow: var(--shadow-game-glow);
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.marker-label {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--color-game-purple-600);
    font-weight: 600;

    padding: 0.15rem 0.3rem;
    border-radius: 4px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    text-shadow: 0 0 3px rgba(168, 85, 247, 0.3);
}

.quest-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.stat-card {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-game-purple);
}

.stat-icon {
    font-size: 1.4rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-label {
    font-size: 0.7rem;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-value {
    font-size: 1rem;
    color: var(--color-game-purple-800);
    font-weight: 800;
}

/* Progress Section - Right Side */
.progress-section {
    background: white;
    padding: 0.6rem;
    border-radius: 10px;
    box-shadow: var(--shadow-game-purple);
    border: 1px solid rgba(168, 85, 247, 0.1);
    height: fit-content;
    max-width: 100%;
    overflow: hidden;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-game-purple-800);
    margin-bottom: 0.6rem;
    text-align: center;
    background: var(--gradient-game-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
    max-width: 100%;
    width: 100%;
}

.day-box {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    font-size: 0.28rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-width: 0;
    min-height: 0;
}

.day-box:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.day-box.completed {
    background: linear-gradient(
        135deg,
        var(--color-game-neon-green) 0%,
        #32d74b 100%
    );
    border-color: var(--color-game-neon-green);
    color: white;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
}

.day-box.current {
    background: linear-gradient(
        135deg,
        var(--color-game-purple-500) 0%,
        var(--color-game-purple-600) 100%
    );
    border-color: var(--color-game-purple-600);
    color: white;
    box-shadow: var(--shadow-game-glow);
}

.day-box.today {
    animation: todayPulse 2s ease-in-out infinite;
    border-color: var(--color-game-neon-cyan);
    box-shadow: var(--shadow-game-neon);
}

@keyframes todayPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.day-box.upcoming {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #94a3b8;
}

.day-number {
    font-size: 0.3rem;
    font-weight: 700;
    line-height: 1;
}

.day-status {
    font-size: 0.33rem;
    margin-top: 0.05rem;
    line-height: 1;
}

.today-label {
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.23rem;
    background: var(--color-game-neon-cyan);
    color: black;
    padding: 0.05rem 0.12rem;
    border-radius: 1px;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: none;
}

.stat-card {
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 180px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

/* Progress Section */
.progress-section {
    margin: 3rem 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    margin-bottom: 2rem;
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.day-box {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.day-box.completed {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    border-color: #38a169;
    color: #22543d;
    animation: completedBounce 0.5s ease-out;
}

.day-box.current {
    background: linear-gradient(135deg, #fef5e7 0%, #fed7aa 100%);
    border-color: #ed8936;
    color: #744210;
}

.day-box.upcoming {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #a0aec0;
}

.day-box.today {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #5a67d8;
    animation: todayPulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

@keyframes completedBounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes todayPulse {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
        transform: scale(1.05);
    }
}

.day-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.day-number {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.day-status {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.today-label {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.no-characters-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #718096;
    font-size: 1.1rem;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .quest-dashboard {
        color: #e2e8f0;
    }

    .quest-title {
        color: #e2e8f0;
    }

    .stat-card {
        background: #4a5568;
        color: #e2e8f0;
    }

    .stat-value {
        color: #e2e8f0;
    }

    .section-title {
        color: #e2e8f0;
    }

    .day-box {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }

    .day-box.upcoming {
        background: #2d3748;
        border-color: #4a5568;
        color: #718096;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .quest-container {
        padding: 1rem;
    }

    .quest-welcome-title {
        font-size: 2rem;
    }

    .quest-main-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .quest-left-section {
        order: 1;
        gap: 1rem;
    }

    .quest-right-section {
        order: 2;
    }

    .quest-duration {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .duration-separator {
        transform: rotate(90deg);
        margin: 0;
    }

    .separator-line {
        width: 15px;
    }

    .progress-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .progress-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.3rem;
    }

    .day-box {
        font-size: 0.5rem;
        border-radius: 4px;
    }

    .day-number {
        font-size: 0.55rem;
    }

    .day-status {
        font-size: 0.6rem;
    }

    .today-label {
        font-size: 0.4rem;
        bottom: -0.8rem;
    }

    .quest-progress-bar {
        margin: 1rem 0;
        padding: 1rem;
    }

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .progress-percentage {
        font-size: 1.25rem;
    }

    .days-remaining {
        text-align: left;
    }

    .marker-label {
        font-size: 0.65rem;
    }

    .quest-stats {
        gap: 0.75rem;
    }

    .stat-card {
        padding: 0.75rem 1rem;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .rewards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .character-modal {
        padding: 1rem;
    }

    .character-modal-content {
        padding: 1.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .character-modal-content {
        background: #2d3748;
        color: #e2e8f0;
    }

    .character-card {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }

    .character-card.selected {
        background: #5a6c7d;
    }

    .reward-card {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
}

/* Modal Overlay */
[x-cloak] {
    display: none !important;
}

.character-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal Content */
.character-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Header */
.character-modal-header {
    text-align: center;
    padding: 40px 30px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.character-modal-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.character-modal-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0;
}

/* Characters Grid */
.characters-grid {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.character-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.6s;
}

.character-card:hover::before {
    left: 100%;
}

.character-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.character-card.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.character-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    font-size: 2.5rem;
}

.character-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-name {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.character-level {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.character-level::before {
    content: "⭐";
}

/* No Characters Message */
.no-characters-message {
    text-align: center;
    padding: 60px 30px;
    color: rgba(255, 255, 255, 0.7);
}

.no-characters-message h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0 0 15px;
}

/* Modal Actions */
.character-modal-actions {
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.modal-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.modal-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .character-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }

    .characters-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 20px;
    }

    .character-modal-header {
        padding: 30px 20px 20px;
    }

    .character-modal-title {
        font-size: 2rem;
    }

    .character-modal-actions {
        padding: 20px;
        flex-direction: column;
    }
}

/* Get Quest Modal Styles */
.get-quest-modal-content {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quest-illustration {
    text-align: center;
    padding: 40px 30px 20px;
    position: relative;
}

.quest-scroll {
    font-size: 6rem;
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}

.quest-sparkles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.7;
    animation: sparkle 2s ease-in-out infinite alternate;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes sparkle {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.quest-content {
    padding: 0 30px 30px;
    text-align: center;
}

.quest-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.quest-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 25px;
}

.quest-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.quest-feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.quest-feature-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.quest-feature-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.get-quest-actions {
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    justify-content: center;
}

.quest-btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.3);
}

.quest-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4);
}

.quest-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 35px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quest-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .get-quest-modal-content {
        margin: 10px;
    }

    .quest-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .get-quest-actions {
        flex-direction: column;
        padding: 20px;
    }

    .quest-title {
        font-size: 1.8rem;
    }
}

/* ===== Congratulations Modal Styles ===== */
.congratulations-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.congratulations-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    max-width: 600px;
    width: 90%;
    color: white;
    text-align: center;
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.congratulations-modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.congrats-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.congrats-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.success-animation {
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-checkmark {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.check-icon {
    font-size: 4rem;
    animation: bounceIn 0.8s ease-out;
    z-index: 2;
    position: relative;
}

.success-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.success-rings .success-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

.success-rings .ring-1 {
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.success-rings .ring-2 {
    width: 120px;
    height: 120px;
    animation-delay: 0.3s;
}

.success-rings .ring-3 {
    width: 160px;
    height: 160px;
    animation-delay: 0.6s;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.congratulations-content {
    position: relative;
    z-index: 2;
}

.congrats-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.6s ease-out 0.3s both;
}

.congrats-message {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInUp 0.6s ease-out 0.5s both;
}

.quest-summary {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.6s ease-out 0.7s both;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.summary-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.summary-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.2rem;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.tomorrow-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInUp 0.6s ease-out 0.9s both;
}

.tomorrow-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.tomorrow-message {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.congrats-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: slideInUp 0.6s ease-out 1.1s both;
}

.congrats-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.congrats-btn.primary {
    background: #ffd700;
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.congrats-btn.primary:hover {
    background: #ffed4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.congrats-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.congrats-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.1rem;
}

.streak-reminder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInUp 0.6s ease-out 1.3s both;
}

.streak-icon {
    font-size: 1.5rem;
}

.streak-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.streak-text span {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.streak-text small {
    opacity: 0.8;
    font-size: 0.9rem;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsiveness for Congratulations Modal */
@media (max-width: 768px) {
    .congratulations-modal {
        width: 95%;
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .congrats-title {
        font-size: 2rem;
    }

    .congrats-message {
        font-size: 1rem;
    }

    .congrats-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .congrats-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
    }

    .quest-summary {
        padding: 1rem;
    }

    .tomorrow-section {
        padding: 1rem;
    }

    .streak-reminder {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .streak-text {
        text-align: center;
    }
}

/* ===== Congratulations Card Styles (Inline) ===== */
.task-card.congratulations {
    background: var(--gradient-game-primary);
    border: 2px solid rgba(0, 255, 255, 0.5);
    color: var(--color-text-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: celebrationGlow 2s ease-in-out infinite alternate;
    box-shadow: var(--shadow-game-neon);
}

.task-card.congratulations::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes celebrationGlow {
    0% {
        box-shadow: var(--shadow-game-purple);
        border-color: rgba(168, 85, 247, 0.5);
    }
    100% {
        box-shadow: var(--shadow-game-neon);
        border-color: rgba(0, 255, 255, 0.8);
    }
}

.task-card.congratulations .success-animation {
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.task-card.congratulations .success-checkmark {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.task-card.congratulations .check-icon {
    font-size: 3rem;
    animation: bounceIn 0.8s ease-out;
    z-index: 2;
    position: relative;
}

.task-card.congratulations .success-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.task-card.congratulations .success-rings .success-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

.task-card.congratulations .success-rings .ring-1 {
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

.task-card.congratulations .success-rings .ring-2 {
    width: 90px;
    height: 90px;
    animation-delay: 0.3s;
}

.task-card.congratulations .success-rings .ring-3 {
    width: 120px;
    height: 120px;
    animation-delay: 0.6s;
}

.task-card.congratulations .congratulations-content {
    position: relative;
    z-index: 2;
}

.task-card.congratulations .congrats-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    color: var(--color-game-neon-cyan);
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    0% {
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
        color: var(--color-game-neon-cyan);
    }
    100% {
        text-shadow: 0 0 30px rgba(0, 255, 255, 1);
        color: rgba(0, 255, 255, 0.9);
    }
}

.task-card.congratulations .congrats-message {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    color: var(--color-text-primary);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.quest-summary-compact {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.stat-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.stat-text {
    flex: 1;
    text-align: left;
}

.tomorrow-section-compact {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tomorrow-section-compact .tomorrow-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.tomorrow-section-compact .tomorrow-message {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.streak-reminder-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    font-weight: 500;
}

.streak-reminder-compact .streak-icon {
    font-size: 1.2rem;
}

/* Mobile Responsiveness for Congratulations Card */
@media (max-width: 768px) {
    .task-card.congratulations .congrats-title {
        font-size: 1.6rem;
    }

    .task-card.congratulations .congrats-message {
        font-size: 0.9rem;
    }

    .summary-stats {
        gap: 0.3rem;
    }

    .stat-item {
        font-size: 0.8rem;
    }

    .tomorrow-section-compact .tomorrow-title {
        font-size: 1.1rem;
    }

    .tomorrow-section-compact .tomorrow-message {
        font-size: 0.8rem;
    }

    .streak-reminder-compact {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
}
