/* ══════════════════════════════════════════════════════════════
   css/dasara-rewards.css — Dasara Special Rewards: Unlock the Treasure
   Premium festive modal, login-gate, interactive chest, & trophy cabinet
   ══════════════════════════════════════════════════════════════ */

:root {
    --dr-gold: #f59e0b;
    --dr-gold-light: #fbbf24;
    --dr-gold-glow: #fef08a;
    --dr-gold-dark: #b45309;
    --dr-saffron: #ea580c;
    --dr-crimson: #7f1d1d;
    --dr-maroon: #5b0619;
    --dr-plum-dark: #120516;
    --dr-plum-card: #1f0b26;
    --dr-plum-surface: #2a1033;
    --dr-border-gold: rgba(245, 158, 11, 0.38);
    --dr-border-subtle: rgba(245, 158, 11, 0.18);
    --dr-shadow: 0 12px 40px rgba(10, 2, 14, 0.65), 0 0 30px rgba(245, 158, 11, 0.15);
}

/* ── Interactive SPECIAL REWARDS in strip ── */
.dasara-offers-strip__item--rewards {
    cursor: pointer;
    user-select: none;
    position: relative;
    border-radius: 12px;
    padding: 6px 12px;
    margin: -6px -12px;
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.22s ease,
                background-color 0.22s ease;
}

.dasara-offers-strip__item--rewards:hover {
    transform: translateY(-2px);
    background-color: rgba(245, 158, 11, 0.12);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.dasara-offers-strip__item--rewards:active {
    transform: translateY(0);
}

.dasara-offers-strip__item--rewards:focus-visible {
    outline: 2px solid var(--dr-gold);
    outline-offset: 3px;
}

/* Pulsing notification pip for rewards */
.dasara-rewards-pip {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 9px;
    height: 9px;
    background: #ef4444;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: drPipPulse 2s infinite ease-in-out;
}

@keyframes drPipPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

/* ══════════════════════════════════════════════════════════════
   MODAL CONTAINER & BACKDROP
   ══════════════════════════════════════════════════════════════ */

.dr-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999999 !important;
    background: rgba(10, 3, 14, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 36px 16px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.dr-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.dr-modal-dialog {
    margin: auto;
    position: relative;
    width: 100%;
    max-width: 980px;
    max-height: min(600px, calc(100vh - 40px));
    overflow: hidden;
    background: linear-gradient(175deg, #1d0924 0%, #14041b 55%, #0a010e 100%);
    border: 2px solid var(--dr-border-gold);
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 36px rgba(245, 158, 11, 0.25);
    color: #fef3c7;
    padding: 22px 26px 18px;
    box-sizing: border-box;
    transform: scale(0.92) translateY(16px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dr-modal-backdrop.is-open .dr-modal-dialog {
    transform: scale(1) translateY(0);
}

/* Custom golden scrollbar */
.dr-modal-dialog::-webkit-scrollbar {
    width: 7px;
}
.dr-modal-dialog::-webkit-scrollbar-track {
    background: rgba(25, 8, 30, 0.6);
    border-radius: 4px;
}
.dr-modal-dialog::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.4);
    border-radius: 4px;
}
.dr-modal-dialog::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.7);
}

/* Close button */
.dr-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 50%;
    color: #fef08a;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, border-color 0.2s;
    z-index: 25;
}

.dr-modal-close:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
    transform: rotate(90deg);
}

.dr-modal-close:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Top marigold garland trim */
.dr-garland-trim {
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 10px;
    background-image: radial-gradient(circle at 10px 4px, #f59e0b 3px, transparent 3.5px),
                      radial-gradient(circle at 20px 7px, #ea580c 2.5px, transparent 3px);
    background-size: 20px 10px;
    opacity: 0.95;
    border-radius: 0 0 8px 8px;
}

/* ══════════════════════════════════════════════════════════════
   1. LOGGED-OUT LOGIN-GATE EXPERIENCE
   ══════════════════════════════════════════════════════════════ */

.dr-login-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 10px 8px;
}

.dr-login-gate__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    padding: 4px 14px;
    margin-bottom: 12px;
}

.dr-login-gate__heading {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 3.8vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.dr-login-gate__desc {
    max-width: 580px;
    margin: 0 auto 24px;
    font-size: 15px;
    line-height: 1.6;
    color: #fde68a;
    opacity: 0.92;
}

/* Visual container: Locked chest with hovering key */
.dr-gate-visual {
    position: relative;
    width: 220px;
    height: 190px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dr-gate-visual__glow {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(234, 88, 12, 0.15) 50%, transparent 70%);
    filter: blur(16px);
    animation: drGlowPulse 3s infinite alternate ease-in-out;
}

@keyframes drGlowPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 1; }
}

.dr-gate-visual__key {
    position: absolute;
    top: 4px;
    width: 64px;
    height: 64px;
    z-index: 3;
    animation: drFloatKey 3s infinite ease-in-out;
    filter: drop-shadow(0 0 12px rgba(254, 240, 138, 0.85));
}

@keyframes drFloatKey {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(4deg); }
}

.dr-gate-visual__chest {
    position: absolute;
    bottom: 0;
    width: 170px;
    height: 135px;
    z-index: 2;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6));
}

/* Actions in login gate */
.dr-login-gate__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 380px;
    margin-bottom: 20px;
}

.dr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    padding: 13px 26px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-sizing: border-box;
}

.dr-btn--primary {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #b45309 100%);
    color: #ffffff;
    border: 1.5px solid rgba(254, 240, 138, 0.6);
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dr-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(245, 158, 11, 0.55);
    filter: brightness(1.06);
}

.dr-btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fef08a;
    border: 1.5px solid rgba(245, 158, 11, 0.35);
}

.dr-btn--secondary:hover {
    background: rgba(245, 158, 11, 0.16);
    border-color: #f59e0b;
    transform: translateY(-2px);
}

.dr-login-gate__footer {
    font-size: 12.5px;
    letter-spacing: 0.06em;
    color: #fcd34d;
    opacity: 0.75;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   2. LOGGED-IN REWARDS DASHBOARD (DUAL-COLUMN ZERO-SCROLL)
   ══════════════════════════════════════════════════════════════ */

.dr-dashboard {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Header (Ultra-compact) */
.dr-header {
    text-align: center;
    padding-top: 0;
    margin-bottom: 2px;
}

.dr-header__eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f59e0b;
    margin-bottom: 2px;
}

.dr-header__title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 2px;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dr-header__subtitle {
    margin: 0;
    font-size: 12px;
    color: #fde68a;
    opacity: 0.85;
}

/* ══════════════════════════════════════════════════════════════
   DUAL-COLUMN QUEST GRID (Zero-Vertical-Scroll Architecture)
   ══════════════════════════════════════════════════════════════ */

.dr-quest-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.dr-col-chest {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dr-col-trophies {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Interactive 3D Royal Dasara Treasure Chest Stage ── */
.dr-chest-stage {
    position: relative;
    background: radial-gradient(circle at 50% 55%, rgba(245, 158, 11, 0.18) 0%, rgba(30, 9, 36, 0.8) 60%, transparent 100%);
    border: 1px solid var(--dr-border-subtle);
    border-radius: 18px;
    padding: 12px 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 195px;
    box-shadow: inset 0 0 24px rgba(245, 158, 11, 0.08);
}

.dr-chest-interact {
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dr-chest-interact:hover {
    transform: translateY(-4px) scale(1.02);
}

.dr-chest-interact:active {
    transform: translateY(0) scale(0.98);
}

.dr-chest-interact:focus-visible {
    outline: 2px solid var(--dr-gold);
    outline-offset: 4px;
}

/* 3D Royal Chest SVG */
.dr-royal-chest-svg {
    width: 200px;
    height: 145px;
    display: block;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 20px rgba(245, 158, 11, 0.4));
    transition: filter 0.3s ease;
}

.dr-chest-interact:hover .dr-royal-chest-svg {
    filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 28px rgba(245, 158, 11, 0.65));
}

/* Rotating Celestial Aura */
.dr-aura-rays {
    transform-origin: 120px 95px;
    animation: drAuraSpin 24s linear infinite;
}

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

.dr-chest-interact:hover .dr-aura-rays {
    animation-duration: 10s;
}

/* 3D Animated Lid Opening */
.dr-chest-lid-group {
    transform-origin: 120px 42px;
    transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.dr-chest-interact.is-open .dr-chest-lid-group {
    transform: perspective(600px) rotateX(-65deg) translateY(-26px) scale(0.96);
    filter: drop-shadow(0 -10px 18px rgba(245, 158, 11, 0.5));
}

/* Lock Jiggle anticipation on hover */
.dr-chest-interact:hover .dr-latch-medallion {
    animation: drLockJiggle 0.45s ease-in-out infinite alternate;
}

@keyframes drLockJiggle {
    0% { transform: translateY(0) rotate(-1.5deg); }
    100% { transform: translateY(-1.5px) rotate(1.5deg); }
}

/* Interior Divine Light & Overflowing Treasure */
.dr-chest-interior {
    opacity: 0;
    transform: scale(0.92);
    transform-origin: 120px 90px;
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dr-chest-interact.is-open .dr-chest-interior {
    opacity: 1;
    transform: scale(1);
}

.dr-interior-rays {
    animation: drDivinePulse 2.2s infinite alternate ease-in-out;
    transform-origin: 120px 88px;
}

@keyframes drDivinePulse {
    0% { opacity: 0.65; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1.06); }
}

/* Ambient Sparkle Particles */
.dr-chest-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dr-chest-interact.is-open .dr-chest-sparkles,
.dr-chest-interact:hover .dr-chest-sparkles {
    opacity: 1;
}

.dr-sparkle {
    position: absolute;
    color: #fef08a;
    font-size: 14px;
    animation: drSparkleFloat 2.4s infinite ease-in-out;
}
.dr-sparkle:nth-child(1) { top: 12%; left: 16%; animation-delay: 0.1s; }
.dr-sparkle:nth-child(2) { top: 8%; right: 20%; animation-delay: 0.5s; font-size: 18px; }
.dr-sparkle:nth-child(3) { top: 32%; left: 10%; animation-delay: 0.9s; font-size: 12px; }
.dr-sparkle:nth-child(4) { top: 28%; right: 12%; animation-delay: 1.3s; font-size: 16px; }

@keyframes drSparkleFloat {
    0%, 100% { transform: translateY(0) scale(0.8); opacity: 0.3; }
    50% { transform: translateY(-10px) scale(1.2); opacity: 1; }
}

/* Floating Coin Burst Particles Container */
.dr-burst-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 20;
}

.dr-burst-particle {
    position: absolute;
    user-select: none;
    pointer-events: none;
    animation: drParticleFly 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drParticleFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.6) rotate(0deg);
    }
    60% {
        opacity: 1;
        transform: translate(var(--dx), var(--dy)) scale(1.25) rotate(var(--rot));
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--dx) * 1.2), calc(var(--dy) + 35px)) scale(0.7) rotate(calc(var(--rot) * 2));
    }
}

/* Prompt Status Pill */
.dr-chest-prompt {
    margin-top: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #fef08a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.38);
    border-radius: 999px;
    padding: 4px 14px;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.dr-chest-interact:hover .dr-chest-prompt {
    background: rgba(245, 158, 11, 0.28);
    border-color: #f59e0b;
    transform: scale(1.02);
}

/* ── Left Column: Compact Stats Strip (3 Chips) ── */
.dr-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.dr-summary-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--dr-border-subtle);
    border-radius: 12px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, background-color 0.2s;
}

.dr-summary-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--dr-border-gold);
}

.dr-summary-chip__icon {
    font-size: 18px;
    flex-shrink: 0;
}

.dr-summary-chip__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dr-summary-chip__label {
    font-size: 9.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fde68a;
    opacity: 0.75;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 2px;
}

.dr-summary-chip__val {
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dr-summary-chip__val small {
    font-size: 11px;
    font-weight: 600;
    color: #f59e0b;
}

.dr-summary-chip--milestone .dr-summary-chip__val {
    color: #4ade80;
    font-size: 12px;
}

/* ── Left Column: Action Buttons ── */
.dr-actions-strip {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8px;
}

.dr-action-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 999px;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.dr-action-btn--primary {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.dr-action-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.dr-action-btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fef08a;
    border-color: rgba(245, 158, 11, 0.3);
}

.dr-action-btn--secondary:hover {
    background: rgba(245, 158, 11, 0.16);
    border-color: #f59e0b;
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   RIGHT COLUMN: TROPHY CABINET & QUEST PROGRESS
   ══════════════════════════════════════════════════════════════ */

/* Quest Progress Strip */
.dr-next-progress {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--dr-border-subtle);
    border-radius: 12px;
    padding: 8px 12px;
}

.dr-next-progress__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 11.5px;
    font-weight: 600;
}

.dr-next-progress__title {
    color: #fef08a;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dr-next-progress__ratio {
    color: #f59e0b;
    font-weight: 700;
    margin-left: 6px;
    flex-shrink: 0;
}

.dr-progress-track {
    width: 100%;
    height: 7px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.dr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ea580c 0%, #f59e0b 50%, #fef08a 100%);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

/* Trophy Cabinet Heading */
.dr-cabinet-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2px;
}

.dr-cabinet-heading__text {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #fef08a;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dr-cabinet-heading__count {
    font-size: 11px;
    font-weight: 700;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 999px;
    padding: 2px 8px;
    transition: all 0.28s ease;
}

.dr-cabinet-heading__count.is-sealed {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
}

.dr-cabinet-heading__count.is-unlocked {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
}

@keyframes drCountFlash {
    0% { transform: scale(1); color: #fef08a; text-shadow: 0 0 16px #f59e0b; }
    50% { transform: scale(1.15); color: #ffffff; text-shadow: 0 0 24px #fbbf24; }
    100% { transform: scale(1); }
}

/* Sealed Vault Placeholder Card (Displayed until chest is opened) */
.dr-trophies-sealed {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 18px 14px;
    border-radius: 12px;
    border: 1.5px dashed rgba(245, 158, 11, 0.45);
    background: radial-gradient(circle at 50% 30%, rgba(42, 16, 51, 0.8) 0%, rgba(20, 6, 26, 0.95) 100%);
    min-height: 152px;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s, box-shadow 0.2s;
}

.dr-trophies-sealed:hover {
    border-color: #f59e0b;
    background: radial-gradient(circle at 50% 30%, rgba(55, 20, 68, 0.85) 0%, rgba(24, 7, 32, 0.98) 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.dr-trophies-sealed:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

.dr-trophies-sealed.is-hidden {
    display: none !important;
}

.dr-trophies-sealed__glow {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
    filter: blur(12px);
    pointer-events: none;
    animation: drGlowPulse 2.5s infinite alternate ease-in-out;
}

.dr-trophies-sealed__icon-wrap {
    position: relative;
    font-size: 26px;
    line-height: 1;
    margin-bottom: 6px;
}

.dr-trophies-sealed__sparkle {
    position: absolute;
    top: -6px;
    right: -12px;
    font-size: 14px;
    animation: drSparkleBlink 1.8s infinite ease-in-out;
}

.dr-trophies-sealed__title {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fef08a;
    margin: 0 0 4px;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.dr-trophies-sealed__desc {
    font-size: 11px;
    line-height: 1.4;
    color: #fde68a;
    opacity: 0.88;
    margin: 0 0 8px;
    max-width: 320px;
}

.dr-trophies-sealed__hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    font-family: 'Poppins', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    animation: drHintPulse 1.8s infinite ease-in-out;
}

@keyframes drHintPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
    50% { transform: scale(1.04); box-shadow: 0 0 14px rgba(245, 158, 11, 0.45); }
}

/* 2x2 Badges Grid */
.dr-badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.dr-badges-grid.is-concealed {
    display: none !important;
}

.dr-badge-card.dr-badge-enter {
    animation: drBadgePopIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes drBadgePopIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.82);
    }
    70% {
        transform: translateY(-3px) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Individual Compact Badge Card */
.dr-badge-card {
    background: var(--dr-plum-card);
    border: 1.5px solid var(--dr-border-subtle);
    border-radius: 12px;
    padding: 9px 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    min-height: 72px;
    box-sizing: border-box;
}

.dr-badge-card:hover {
    transform: translateY(-2px);
    border-color: var(--dr-border-gold);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.dr-badge-card--locked {
    opacity: 0.65;
    background: rgba(22, 6, 26, 0.6);
}

.dr-badge-card--locked .dr-badge-icon-wrap {
    filter: grayscale(0.6) brightness(0.7);
}

.dr-badge-card--in_progress {
    border-color: rgba(245, 158, 11, 0.45);
    background: linear-gradient(135deg, rgba(31, 11, 38, 0.95) 0%, rgba(42, 16, 51, 0.95) 100%);
}

.dr-badge-card--unlocked {
    background: linear-gradient(135deg, #270e30 0%, #1c0822 100%);
    border-color: #f59e0b;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2), inset 0 0 12px rgba(245, 158, 11, 0.08);
}

.dr-badge-card.is-newly-unlocked {
    animation: drBadgeReveal 1.2s ease-out;
}

@keyframes drBadgeReveal {
    0% { transform: scale(0.9); box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
    40% { transform: scale(1.05); box-shadow: 0 0 28px rgba(245, 158, 11, 0.8); }
    100% { transform: scale(1); box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2); }
}

.dr-badge-icon-wrap {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dr-badge-icon-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.dr-badge-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dr-badge-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.dr-badge-title {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dr-badge-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
}

.dr-badge-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 999px;
}

.dr-badge-status-pill--unlocked {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    color: #ffffff;
}

.dr-badge-status-pill--in_progress {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.dr-badge-status-pill--locked {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.dr-badge-req {
    color: #fcd34d;
    font-weight: 600;
    font-size: 10px;
}

.dr-badge-mini-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 2px;
}

.dr-badge-mini-fill {
    height: 100%;
    background: linear-gradient(90deg, #ea580c, #f59e0b);
    border-radius: 999px;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN (Adaptive for small tablets and phones)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .dr-modal-backdrop {
        padding: 16px 8px;
    }

    .dr-modal-dialog {
        padding: 28px 14px 18px;
        max-height: calc(100vh - 20px);
        overflow-y: auto; /* Fallback only for small phones */
    }

    .dr-quest-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dr-badges-grid {
        grid-template-columns: 1fr;
    }

    .dr-gate-visual {
        width: 180px;
        height: 150px;
    }
}


/* ══════════════════════════════════════════════════════════════
   ACCESSIBILITY: REDUCED MOTION
   ══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .dr-modal-dialog,
    .dr-gate-visual__glow,
    .dr-gate-visual__key,
    .dr-chest-svg .chest-lid,
    .dr-chest-svg .chest-glow-beam,
    .dr-sparkle,
    .dr-badge-card.is-newly-unlocked,
    .dr-badge-card.dr-badge-enter,
    .dr-trophies-sealed__hint,
    .dasara-rewards-pip {
        animation: none !important;
        transition: none !important;
    }
}
