/* ==========================================================================
   Bahasa Daerah - Hardware Accelerated Premium Animations (60 FPS)
   ========================================================================== */

/* 1. Indonesia SVG Map Hover Glow & Spring Transitions */
.map-region {
    cursor: pointer;
    outline: none;
    will-change: transform, filter;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), filter 0.35s ease;
    backface-visibility: hidden;
}

.map-region:hover {
    transform: scale(1.03) translate3d(0, -2px, 0);
    filter: drop-shadow(0 10px 20px rgba(50, 214, 107, 0.42));
}

.map-region path {
    transition: fill 0.35s ease, stroke 0.35s ease, stroke-width 0.35s ease;
}

.map-region.active path {
    fill: url(#activeIslandGradient) !important;
    stroke: var(--green) !important;
    stroke-width: 2px !important;
}

/* 2. Interactive Cursor Follow Glow on Culture Cards */
.culture-card-link {
    position: relative;
    overflow: hidden;
    will-change: transform, border-color, box-shadow;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
    backface-visibility: hidden;
}

.culture-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(200px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(50, 214, 107, 0.12), transparent 85%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.culture-card-link:hover::after {
    opacity: 1;
}

.culture-card-link:hover {
    transform: translate3d(0, -8px, 0) scale(1.02) !important;
    border-color: var(--green) !important;
    box-shadow: 0 20px 40px rgba(50, 214, 107, 0.2) !important;
}

/* 3. Achievements Lencana / Badges Floating & Lock Shake */
.badge-item {
    will-change: transform, filter, box-shadow;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
    backface-visibility: hidden;
}

.badge-item:not(.locked) {
    animation: softBob 5s ease-in-out infinite alternate;
    border-color: rgba(50, 214, 107, 0.45) !important;
    box-shadow: 0 10px 30px rgba(50, 214, 107, 0.1) !important;
    background: linear-gradient(180deg, var(--white) 0%, rgba(50, 214, 107, 0.04) 100%) !important;
    transform: translate3d(0, 0, 0);
}

.badge-item.locked {
    opacity: 0.58;
    filter: grayscale(0.9);
}

.badge-item.locked:hover {
    filter: grayscale(0.4);
    transform: scale(0.96);
    animation: badgeShake 0.4s ease;
}

@keyframes badgeShake {
    0%, 100% { transform: translate3d(0, 0, 0) scale(0.96); }
    20%, 60% { transform: translate3d(-4px, 0, 0) scale(0.96); }
    40%, 80% { transform: translate3d(4px, 0, 0) scale(0.96); }
}

/* 4. Active Region Chips Glow Pulse */
.region-chip {
    will-change: transform, box-shadow;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    position: relative;
    overflow: hidden;
    backface-visibility: hidden;
}

.region-chip:hover {
    transform: scale(1.08) translate3d(0, -2px, 0);
    box-shadow: 0 8px 20px rgba(102, 112, 133, 0.12);
}

.region-chip.active {
    animation: activeChipGlow 2.5s infinite ease-in-out;
    transform: scale(1.05) translate3d(0, 0, 0);
}

@keyframes activeChipGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(50, 214, 107, 0.35); }
    50% { box-shadow: 0 0 15px 5px rgba(50, 214, 107, 0.18); }
}

/* 5. Drawer Phrase Cards Staggered Slide In */
.drawer-phrase-card {
    will-change: transform, opacity;
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    animation: drawerPhraseSlide 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.drawer-phrase-card:nth-child(1) { animation-delay: 50ms; }
.drawer-phrase-card:nth-child(2) { animation-delay: 100ms; }
.drawer-phrase-card:nth-child(3) { animation-delay: 150ms; }
.drawer-phrase-card:nth-child(4) { animation-delay: 200ms; }

@keyframes drawerPhraseSlide {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* 6. Micro-animations for Badges and Mini Tags */
.badge, .mini-tag {
    will-change: transform;
    animation: badgePulse 3.5s infinite ease-in-out alternate;
    transform: translate3d(0, 0, 0);
}

@keyframes badgePulse {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, 0, 0) scale(1.035); opacity: 0.94; }
}

/* 7. Wavy Floating Phone Mockup */
.language-phone {
    will-change: transform;
    animation: phoneMockupBob 6s ease-in-out infinite alternate !important;
}

@keyframes phoneMockupBob {
    0% { transform: rotate(2deg) translate3d(0, 0, 0); }
    100% { transform: rotate(3.5deg) translate3d(0, -14px, 0); }
}

/* 8. Global Transition smoothness overrides */
.btn, .filter-opt-btn, .clear-search-btn {
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.drawer-overlay {
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.detail-drawer {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: 680px !important;
    max-width: 90vw !important;
    max-height: 85vh !important;
    border-radius: 28px !important;
    border: 1px solid var(--border) !important;
    transform: translate(-50%, -50%) scale(0.95) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.detail-drawer.active {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ==========================================================================
   9. Layout Spacing Overrides (Fix Cramped/Mepet Elements)
   ========================================================================== */
body[data-page="bahasa"] .indonesia-map-panel {
    margin-bottom: 28px !important;
}

body[data-page="bahasa"] .search-filter-panel {
    margin-bottom: 28px !important;
}

body[data-page="bahasa"] .region-chip-row {
    margin-top: 8px !important;
    margin-bottom: 32px !important;
    gap: 12px !important;
}

body[data-page="bahasa"] .culture-grid-header {
    margin-bottom: 28px !important;
    padding: 20px 24px !important;
}

body[data-page="bahasa"] .culture-grid {
    gap: 28px 24px !important;
}

body[data-page="bahasa"] .culture-card-main {
    padding: 22px 24px !important;
    gap: 18px !important;
}

body[data-page="bahasa"] .culture-card-actions a {
    min-height: 48px !important;
    font-size: 14px !important;
}

/* Responsive Overrides */
@media (max-width: 720px) {
    body[data-page="bahasa"] .indonesia-map-panel {
        margin-bottom: 20px !important;
    }
    body[data-page="bahasa"] .search-filter-panel {
        margin-bottom: 20px !important;
    }
    body[data-page="bahasa"] .region-chip-row {
        margin-bottom: 24px !important;
    }
    body[data-page="bahasa"] .culture-grid-header {
        padding: 16px !important;
        margin-bottom: 20px !important;
    }
    body[data-page="bahasa"] .culture-grid {
        gap: 18px 16px !important;
    }
    body[data-page="bahasa"] .culture-card-main {
        padding: 18px !important;
        gap: 14px !important;
    }
    body[data-page="bahasa"] .detail-drawer {
        width: 94vw !important;
        max-width: 94vw !important;
        max-height: 90vh !important;
        border-radius: 24px !important;
        transform: translate(-50%, -50%) scale(0.95) !important;
    }
    body[data-page="bahasa"] .detail-drawer.active {
        transform: translate(-50%, -50%) scale(1) !important;
    }
}

/* ==========================================================================
   10. Gamification, Synthesizer & Interactive Elements CSS
   ========================================================================== */

/* RPG Level Card styling */
.kasta-level-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 18px 20px;
    margin: 24px 0 16px 0;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.dark-theme .kasta-level-card {
    background: linear-gradient(135deg, rgba(50, 214, 107, 0.06) 0%, rgba(79, 140, 255, 0.02) 100%);
    border-color: rgba(50, 214, 107, 0.15);
}

.kasta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.kasta-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

#kastaLevelName {
    font-size: 18px;
    font-weight: 800;
    margin: 4px 0 0 0;
    background: linear-gradient(135deg, #32d66b 0%, #4f8cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kasta-badge {
    background: linear-gradient(135deg, #32d66b, #4f8cff);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(50, 214, 107, 0.25);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.kasta-xp-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.kasta-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #32d66b, #4f8cff);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(50, 214, 107, 0.5);
}

.kasta-footer {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

/* Museum Pusaka grid */
.museum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.museum-item {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.museum-item.locked {
    opacity: 0.48;
    filter: grayscale(0.85);
    background: rgba(255, 255, 255, 0.02);
    border-style: dashed;
}

.museum-item.unlocked {
    background: linear-gradient(180deg, var(--card-bg, #ffffff) 0%, rgba(255, 207, 79, 0.05) 100%);
    border-color: rgba(255, 207, 79, 0.4);
    box-shadow: 0 10px 25px rgba(255, 207, 79, 0.08);
}

.museum-item.unlocked:hover {
    transform: translate3d(0, -6px, 0) scale(1.04);
    border-color: #ffcf4f;
    box-shadow: 0 15px 30px rgba(255, 207, 79, 0.25);
}

.museum-icon {
    font-size: 32px;
    margin-bottom: 10px;
    transition: transform 0.4s ease;
}

.museum-item.unlocked:hover .museum-icon {
    transform: rotate(15deg) scale(1.15);
}

.museum-item strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.museum-item small {
    font-size: 11px;
    color: var(--muted);
}

/* Treasure Hunt widget styles */
.hunt-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-theme .hunt-card {
    background: linear-gradient(135deg, rgba(255, 207, 79, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-color: rgba(255, 207, 79, 0.15);
}

.hunt-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #ffcf4f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ffcf4f;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 207, 79, 0.7);
    animation: goldPulse 1.8s infinite;
}

@keyframes goldPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 207, 79, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 207, 79, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 207, 79, 0); }
}

.riddle-text {
    font-size: 14px;
    line-height: 1.5;
    font-style: italic;
    color: var(--text);
    margin-bottom: 12px;
}

.hunt-footer small {
    color: var(--muted);
    font-size: 11px;
}

.hunt-done-card {
    background: linear-gradient(135deg, rgba(50, 214, 107, 0.06) 0%, rgba(255, 207, 79, 0.02) 100%);
    border: 1px solid rgba(50, 214, 107, 0.2);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
}

.gold-crown {
    font-size: 38px;
    display: block;
    margin-bottom: 10px;
    animation: softBob 4s infinite alternate;
}

/* Spin Wheel Section */
.spin-wheel-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 28px;
    margin-top: 32px;
    margin-bottom: 32px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dark-theme .spin-wheel-section {
    background: linear-gradient(135deg, rgba(30, 47, 71, 0.6) 0%, rgba(17, 32, 51, 0.2) 100%);
    border-color: rgba(50, 214, 107, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.spin-wheel-section:hover {
    border-color: var(--blue);
    box-shadow: 0 20px 45px rgba(79, 140, 255, 0.12);
}

.pro-golden-glow {
    border-color: #d4af37;
    background: radial-gradient(circle at 80% 20%, rgba(255, 215, 64, 0.18), transparent 38%), var(--card-bg, #fff);
    box-shadow: 0 0 18px rgba(255, 207, 79, 0.4), 0 22px 55px rgba(111, 82, 0, 0.22);
}

.pro-golden-glow #wheelCanvas {
    box-shadow: 0 0 18px #ffcf4f, 0 0 42px rgba(255, 207, 79, 0.45);
}

.radar-active path {
    transform-box: fill-box;
    transform-origin: center;
    animation: radarPulse 1.1s ease-in-out infinite;
    filter: drop-shadow(0 0 8px #ffcf4f) drop-shadow(0 0 18px #d4af37);
}

@keyframes radarPulse {
    0%, 100% { opacity: 0.72; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); fill: #ffcf4f; }
}

.subscription-demo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    font-size: 13px;
    font-weight: 800;
}

.subscription-toggle {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card-bg, #fff);
}

.subscription-option {
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}

.subscription-option.active {
    color: #201700;
    background: linear-gradient(135deg, #ffed8a, #d4af37);
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.35);
}

.radar-btn {
    margin-top: 14px;
    width: 100%;
}

.wheel-copy {
    flex: 1;
    max-width: 320px;
}

.wheel-copy h3 {
    font-size: 22px;
    font-weight: 800;
    margin-top: 10px;
}

.wheel-copy p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 12px 0 20px 0;
}

.wheel-container-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wheelCanvas {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
    transition: box-shadow 0.5s ease;
}

.spin-wheel-section:hover #wheelCanvas {
    box-shadow: 0 20px 45px rgba(79, 140, 255, 0.25);
}

.wheel-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 24px solid #ffcf4f; /* gold color pointer */
    filter: drop-shadow(0 2px 8px rgba(255, 207, 79, 0.5));
    z-index: 10;
}

/* Tab Alat Musik & Instruments */
.instrument-box {
    text-align: center;
    padding: 10px 0;
}

.instrument-box h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.virtual-key-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
}

.instrument-key {
    background: linear-gradient(180deg, #32d66b, #1fba54);
    border: none;
    border-radius: 12px;
    min-width: 60px;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
    color: white;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 6px 0 #188c3e, 0 10px 20px rgba(50, 214, 107, 0.2);
    transition: all 0.1s ease;
    outline: none;
}

.instrument-key:active, .instrument-key.hit {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #188c3e, 0 4px 10px rgba(50, 214, 107, 0.1);
}

/* Different keys colors per instrument */
.virtual-key-row.scale-sasando .instrument-key {
    background: linear-gradient(180deg, #4f8cff, #2a6ae6);
    box-shadow: 0 6px 0 #1c4bb3, 0 10px 20px rgba(79, 140, 255, 0.2);
}
.virtual-key-row.scale-sasando .instrument-key:active, 
.virtual-key-row.scale-sasando .instrument-key.hit {
    box-shadow: 0 2px 0 #1c4bb3, 0 4px 10px rgba(79, 140, 255, 0.1);
}

.virtual-key-row.scale-tifa .instrument-key {
    background: linear-gradient(180deg, #e67e22, #d35400);
    box-shadow: 0 6px 0 #a04000, 0 10px 20px rgba(230, 126, 34, 0.2);
    min-width: 54px;
}
.virtual-key-row.scale-tifa .instrument-key:active, 
.virtual-key-row.scale-tifa .instrument-key.hit {
    box-shadow: 0 2px 0 #a04000, 0 4px 10px rgba(230, 126, 34, 0.1);
}

.virtual-key-row.scale-suling .instrument-key {
    background: linear-gradient(180deg, #b94fff, #9c27b0);
    box-shadow: 0 6px 0 #7b1fa2, 0 10px 20px rgba(185, 79, 255, 0.2);
}
.virtual-key-row.scale-suling .instrument-key:active, 
.virtual-key-row.scale-suling .instrument-key.hit {
    box-shadow: 0 2px 0 #7b1fa2, 0 4px 10px rgba(185, 79, 255, 0.1);
}

.instrument-control-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.scale-selector {
    display: grid;
    gap: 7px;
    max-width: 260px;
    margin: 18px auto 0;
    text-align: left;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.scale-selector select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    background: var(--card-bg, #fff);
    font: inherit;
}

/* Voice Challenge Speech Banner styling */
.mic-challenge-btn {
    transition: all 0.3s ease;
}

.mic-challenge-btn.listening {
    background: #e74c3c !important;
    color: white !important;
    animation: micRedPulse 1.5s infinite;
}

@keyframes micRedPulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.speech-status-banner {
    border-radius: 16px;
    padding: 12px 16px;
    margin: 16px 0 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    animation: drawerPhraseSlide 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.speech-status-banner.status-listening {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.speech-status-banner.status-success {
    background: rgba(50, 214, 107, 0.08);
    border: 1px solid rgba(50, 214, 107, 0.2);
    color: #27ae60;
}

.speech-status-banner.status-fail {
    background: rgba(243, 156, 18, 0.08);
    border: 1px solid rgba(243, 156, 18, 0.2);
    color: #d35400;
}

.speech-status-banner.status-error {
    background: rgba(127, 140, 141, 0.08);
    border: 1px solid rgba(127, 140, 141, 0.2);
    color: #7f8c8d;
}

.speech-waveform {
    display: none;
    height: 38px;
    margin: 10px 0 2px;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.speech-waveform.active {
    display: flex;
}

.speech-waveform i {
    width: 4px;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(#ffcf4f, #e74c3c);
    animation: waveformBeat 0.75s ease-in-out infinite alternate;
}

.speech-waveform i:nth-child(3n + 1) { animation-delay: -0.2s; }
.speech-waveform i:nth-child(3n + 2) { animation-delay: -0.45s; }

@keyframes waveformBeat {
    from { height: 7px; opacity: 0.55; }
    to { height: 34px; opacity: 1; }
}

/* Level Up Custom Modal */
.level-up-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 20, 28, 0.82);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.level-up-modal-box {
    background: #181b26;
    border: 1px solid rgba(50, 214, 107, 0.3);
    border-radius: 32px;
    padding: 36px 40px;
    width: 440px;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
    transform: scale(0.9);
    opacity: 0;
    animation: modalBoxScale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 50ms;
}

.level-up-modal-box.gold-theme {
    border-color: rgba(255, 207, 79, 0.35);
}

@keyframes modalFadeIn {
    to { opacity: 1; }
}

@keyframes modalBoxScale {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.level-up-modal-overlay.fade-out {
    animation: modalFadeOut 0.4s ease forwards;
}

@keyframes modalFadeOut {
    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

.crown-icon {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 10px rgba(50,214,107,0.3));
}

.gold-theme .crown-icon {
    filter: drop-shadow(0 4px 10px rgba(255,207,79,0.3));
}

.level-up-modal-box h2 {
    font-size: 24px;
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
}

.level-up-modal-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.kasta-pill {
    background: linear-gradient(135deg, #32d66b 0%, #4f8cff 100%);
    color: white;
    font-size: 16px;
    font-weight: 800;
    padding: 10px 24px;
    border-radius: 18px;
    display: inline-block;
    margin-bottom: 28px;
    box-shadow: 0 8px 20px rgba(50, 214, 107, 0.3);
}

.kasta-pill.gold {
    background: linear-gradient(135deg, #ffcf4f 0%, #ffae19 100%);
    box-shadow: 0 8px 20px rgba(255, 207, 79, 0.3);
}

/* Media Query Responsive for Spin Wheel */
@media (max-width: 720px) {
    .spin-wheel-section {
        flex-direction: column;
        gap: 24px;
        padding: 20px;
        text-align: center;
    }
    .wheel-copy {
        max-width: 100%;
    }
}

