/* Button Components */

/* Primary CTA Button */
.cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px;
    width: 100%;
    min-height: var(--min-touch-target, 44px);
    background-color: #FF3AA2;
    border: none;
    border-bottom: 4px solid #BA0062;
    border-radius: 16px;
    box-shadow: 0px 4px 0px 0px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 11;
}

/* Notification Badges */
/* COMMENTED OUT FOR MAINTENANCE - Notification badges temporarily disabled
.notification-badge {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #FF7B00;
    border: 2px solid #FEE4CC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Finger Paint', cursive;
    font-weight: 500;
    font-size: 12px;
    color: #FEE4CC;
    z-index: 101;
    animation: pulse 2s infinite;
}

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

/* Enhanced button hover effects */
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 0px 0px rgba(0, 0, 0, 0.16);
}

.cta-button:active {
    transform: translateY(2px);
    box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.16);
}

.button-label {
    font-family: 'Finger Paint', cursive;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.25em;
    letter-spacing: 0.01em;
    color: #FFFFFF;
}

/* Icon Buttons */
.zoom-btn, .plus-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    min-width: var(--min-touch-target, 44px);
    min-height: var(--min-touch-target, 44px);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.24);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zoom-btn img, .plus-btn img {
    width: 32px;
    height: 32px;
}

.zoom-btn:hover, .plus-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
}

/* Navigation Buttons */
.donut-farm-btn, .binder-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 12px 72px;
    background-color: #FFD58A;
    border: none;
    border-bottom: 4px solid #8F5C00;
    border-radius: 16px;
    box-shadow: 0px 4px 0px 0px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: var(--min-touch-target, 44px);
    height: 56px;
    position: relative;
}

.donut-farm-btn img, .binder-btn img {
    position: absolute;
    left: -24px;
    top: -24px;
    width: 96px;
    height: 96px;
}

.donut-farm-btn span, .binder-btn span {
    font-family: 'Finger Paint', cursive;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.25em;
    letter-spacing: 0.01em;
    color: #532700;
}

.donut-farm-btn:hover, .binder-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0px 5px 0px 0px rgba(0, 0, 0, 0.16);
}

/* Toggle Buttons */
.toggle-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}
.toggle-buttons-wrap {
    display: inline-block;
    transition: transform 0.2s;
}
.toggle-buttons-wrap:hover {
    transform: scale(1.08);
    z-index: 2;
}
.toggle-btn {
    padding: 4px 12px;
    width: 72px;
    height: 48px;
    background: rgba(255, 255, 255, 0.24);
    border: none;
    font-family: 'Finger Paint', cursive;
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease, transform 0.2s;
}
.toggle-btn:hover {
    /* Remove individual scale effect */
    transform: none;
    z-index: auto;
}
.toggle-btn.active {
    background: #FF3AA2;
    border-bottom: 2px solid #BA0062;
    box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.16);
    /* Remove transform and z-index */
}


.toggle-btn:first-child {
    border-radius: 16px 0 0 16px;
}
.toggle-btn:last-child {
    border-radius: 0 16px 16px 0;
}

/* Donut Pass Button */
.donut-pass-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 48px;
    overflow: hidden;
}

.donut-pass-btn img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.donut-pass-btn span {
    font-family: 'Finger Paint', cursive;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.donut-pass-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

/* Crown active state with pulsing animation */
.donut-pass-btn.crown-active {
    border: 2px solid #FFD700;
    background: rgba(255, 215, 0, 0.1);
    animation: crownPulse 2s infinite;
}

.donut-pass-btn.crown-active:hover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.2);
    animation: crownPulse 0.5s infinite;
}

@keyframes crownPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 215, 0, 0);
    }
}

/* Item Counter */
.item-counter {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 4px 4px 16px;
    background: rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    height: 48px;
}

.counter-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.counter-content img {
    width: 24px;
    height: 24px;
}

.counter-content span {
    font-family: 'Finger Paint', cursive;
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
}

.plus-btn {
    width: 40px;
    height: 40px;
    background: #FF3AA2;
    border-bottom: 2px solid #BA0062;
    border-radius: 12px;
    box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.16);
}

.plus-btn img {
    width: 24px;
    height: 24px;
}

/* Mobile Page Toggle */
.mobile-page-toggle {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 10px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.24);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #FFFFFF;
}

.mobile-page-toggle svg {
    width: 24px;
    height: 24px;
}

.mobile-page-toggle:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
}

.mobile-page-toggle:active {
    background: #FF3AA2;
    transform: translateY(0);
}

/* Wallet Button */
.wallet-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.24);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wallet-btn img {
    width: 36px;
    height: 36px;
}

.success-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: #1FA305;
    border: 2px solid #D5FFCD;
    border-radius: 50%;
}

.wallet-btn:hover {
    background: rgba(255, 255, 255, 0.32);
}

/* Level Indicators */
.level-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-family: 'Finger Paint', cursive;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.33em;
    letter-spacing: 0.01em;
    color: #FFFFFF;
    cursor: pointer; /* Pointer cursor for better UX */
    transition: all 0.2s ease;
    position: absolute;
}

.level-indicator.active {
    background: #FF3AA2;
    border: 2px solid #FFFFFF;
    box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.24);
}

.level-indicator.missing {
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.24);
}

.level-indicator:hover {
    transform: scale(1.1) !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Sparkle effect class */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFFFFF;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle 0.6s ease-out forwards;
    z-index: 1000;
} 

/* Interactive element effects */
.crystal:hover {
    transform: scale(1.1) translateY(-2px) !important;
    filter: brightness(1.1) !important;
}

.lollipop:hover, .cream-peak:hover {
    transform: scale(1.1) translateY(-2px) !important;
    filter: brightness(1.1) !important;
}

/* Island base styles */
.island {
    transition: all 0.3s ease;
    cursor: pointer; /* Pointer cursor for better UX */
    transform-origin: center;
}



.island:hover img {
    transition: all 0.3s ease;
}



/* Crystal parts styling */
.crystal-part {
    position: absolute;
    overflow: visible;
}

.crystal-part img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
    transition: all 0.3s ease;
}

/* Crystal part lit state - no special effects */

/* Crystal full styling */
.crystal-full {
    position: absolute;
    left: -20px !important;
    top: -40px !important;
    width: 160px !important;
    height: 200px !important;
    z-index: 10;
    display: none !important; /* Always hidden since we use individual parts */
}

.crystal-full img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 0px 20px rgba(98, 200, 186, 1));
}

/* Island layering fix */
.island {
    position: relative;
    z-index: 1;
}

.island[data-island="glazetopia"] {
    z-index: 2; /* Ensure Glazetopia appears above other islands */
}

/* Interactive elements should be above islands */
#interactive-elements {
    z-index: 10;
}

/* Ensure all island images are properly positioned within their containers */
.island img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Layer colored images on top of activated images for Glazetopia */
.island[data-island="glazetopia"] .island-activated {
    z-index: 1;
}

.island[data-island="glazetopia"] .island-colored {
    z-index: 2;
}

/* Collected state styles */
.crystal[data-collected="true"] {
    opacity: 0.5 !important;
    transform: scale(0.8) !important;
    filter: grayscale(0.5);
}

.lollipop[data-collected="true"], 
.cream-peak[data-collected="true"] {
    opacity: 0.5 !important;
    transform: scale(0.8) !important;
    filter: grayscale(0.5);
}

/* Tooltip Close Button - Universal Style */
.tooltip-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    padding: 0;
}

.tooltip-close-btn:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

/* Wallet Tooltip Component - Completely Separate from Modal System */
.wallet-tooltip-popup {
    position: fixed;
    z-index: 1000;
    pointer-events: auto;
    max-width: 90vw;
    max-height: 90vh;
}

.wallet-tooltip-popup.hidden {
    display: none;
}

.wallet-tooltip-popup .tooltip-container {
    width: 240px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: none;
    padding: 0;
    position: relative;
}

.wallet-tooltip-popup .tooltip-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #FFD58A;
    margin: 0 auto;
    margin-left: calc(50% - 8px);
}

.wallet-tooltip-popup .torn-edge {
    width: 100%;
    height: 16px;
    background: #FFD58A;
    position: relative;
    border-radius: 4px 4px 0 0;
    z-index: 2;
    /* Two triangular torn cuts in top left */
    clip-path: polygon(
        15% 0%,
        0% 40%,
        25% 0%,
        0% 70%,
        35% 0%,
        100% 0%,
        100% 100%,
        0% 100%,
        0% 70%
    );
}

.wallet-tooltip-popup .tooltip-content {
    background-color: #FFD58A;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    margin-top: -2px;
}

.wallet-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.wallet-label {
    font-family: 'Finger Paint', cursive;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.25em;
    letter-spacing: 0.01em;
    color: #532700;
}

.wallet-value {
    font-family: 'Finger Paint', cursive;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25em;
    letter-spacing: 0.01em;
    color: #532700;
}

.wallet-value.error {
    color: #D92500;
}

.wallet-action-button {
    background-color: #FF3AA2;
    color: #FFFFFF;
    border: none;
    border-bottom: 2px solid #BA0062;
    border-radius: 8px;
    padding: 8px;
    font-family: 'Finger Paint', cursive;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2857142857142858em;
    letter-spacing: 0.01em;
    cursor: pointer;
    width: 100%;
    box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.16);
    transition: transform 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wallet-action-button:hover {
    transform: translateY(1px);
    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.16);
}

.wallet-action-button:active {
    transform: translateY(2px);
    box-shadow: none;
}

.wallet-error-message {
    font-family: 'Finger Paint', cursive;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.3333333333333333em;
    letter-spacing: 0.01em;
    color: rgba(83, 39, 0, 0.4);
    text-align: center;
    width: 100%;
}

/* Donut Pass Tooltip Component - Similar to Wallet Tooltip */
.donut-pass-tooltip-popup {
    position: fixed;
    z-index: 1000;
    pointer-events: auto;
    max-width: 90vw;
    max-height: 90vh;
}

.donut-pass-tooltip-popup.hidden {
    display: none;
}

.donut-pass-tooltip-popup .tooltip-container {
    width: 240px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: none;
    padding: 0;
    position: relative;
}

.donut-pass-tooltip-popup .tooltip-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(102, 102, 102, 0.8);
    margin: 0 auto;
    margin-left: calc(50% - 8px);
}

.donut-pass-tooltip-popup .torn-edge {
    width: 100%;
    height: 16px;
    background: rgba(102, 102, 102, 0.8);
    position: relative;
    border-radius: 4px 4px 0 0;
    z-index: 2;
    /* Two triangular torn cuts in top left */
    clip-path: polygon(
        15% 0%,
        0% 40%,
        25% 0%,
        0% 70%,
        35% 0%,
        100% 0%,
        100% 100%,
        0% 100%,
        0% 70%
    );
}

.donut-pass-tooltip-popup .tooltip-content {
    background-color: rgba(102, 102, 102, 0.8);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    margin-top: -2px;
}

.donut-pass-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.donut-pass-message {
    font-family: 'Finger Paint', cursive;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.33em;
    letter-spacing: 1%;
    text-align: center;
    color: #FFFFFF;
    width: 100%;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .level-indicator {
        width: 20px;
        height: 20px;
    }
    
    .crystal {
        width: 80px;
        height: 80px;
    }
    
    .tooltip-container {
        width: 180px;
    }
    
    .wallet-tooltip-popup .tooltip-container {
        width: 200px;
    }
    
    .wallet-tooltip-popup .tooltip-content {
        padding: 0px 12px 12px;
        gap: 6px;
    }
    
    .wallet-label,
    .wallet-value {
        font-size: 14px;
    }
    
    .wallet-action-button {
        font-size: 12px;
        padding: 6px;
    }
} 

/* Tutorial Modal Styles */
.tutorial-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.tutorial-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    pointer-events: auto;
}

/* Center step 2 content using flexbox on overlay - always when step-2 */
.tutorial-modal-container.step-2 .tutorial-modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center content for step 3 within the overlay - always when step-3 */
.tutorial-modal-container.step-3 .tutorial-modal-overlay .tutorial-modal-content.step-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Remove duplicate - handled by rule above */

.tutorial-modal-container.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tutorial-modal-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    overflow: visible;
    pointer-events: auto;
    cursor: default;
}

/* Step 1: Tooltip Action Modal */
.tutorial-modal-content.step-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    align-items: flex-start;
    justify-content: flex-start;
    pointer-events: none;
}

/* Step 2: Transparent Modal with Spinning Swirl */
.tutorial-modal-content.step-2 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    pointer-events: auto;
}

.swirl-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 454px;
    height: 454px;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.spinning-swirl {
    width: 100%;
    height: 100%;
    animation: spin 3s linear infinite;
}

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

.modal-content-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 24px;
    width: 400px;
    background: transparent;
    margin: 0 auto;
}

.text-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
}

.modal-title {
    font-family: 'Finger Paint', cursive;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.2em;
    letter-spacing: 1%;
    text-align: center;
    color: #FFFFFF;
}

.modal-description {
    font-family: 'Finger Paint', cursive;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25em;
    letter-spacing: 1%;
    text-align: center;
    color: #FFFFFF;
}

.scroll-image {
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutorial-primary-button.big {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 8px;
    padding: 12px;
    background-color: #FF3AA2;
    border: none;
    border-bottom: 4px solid #BA0062;
    border-radius: 16px;
    box-shadow: 0px 4px 0px 0px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    font-family: 'Finger Paint', cursive;
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
    transition: all 0.2s ease;
}

/* Step 3: Donut Pass Modal */
.tutorial-modal-content.step-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    z-index: 1;
}

.tutorial-modal-container .tutorial-modal-content.step-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    pointer-events: auto;
}

.tutorial-modal-content.step-3 .donut-pass-modal {
    width: 380px;
    margin: 0 auto;
}

.donut-pass-modal .tooltip-content {
    background: #FFD58A;
    border-radius: 0 0 16px 16px;
    padding: 16px 48px 40px;
}

.pass-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 32px;
}

.pass-content .text-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.crown-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 0px;
}

.crown-icon img {
    width: 100%;
    height: 100%;
}

.text-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
}

.pass-title {
    font-family: 'Finger Paint', cursive;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.2em;
    letter-spacing: 1%;
    text-align: center;
    color: #532700;
}

.pass-subtitle {
    font-family: 'Finger Paint', cursive;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25em;
    letter-spacing: 1%;
    text-align: center;
    color: #532700;
}

.pass-disclaimer {
    font-family: 'Finger Paint', cursive;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.33em;
    letter-spacing: 1%;
    text-align: center;
    color: rgba(83, 39, 0, 0.4);
}

.buttons-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.price-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.original-price {
    text-decoration: line-through;
    font-size: 12px;
    opacity: 0.7;
}

.discounted-price {
    font-size: 14px;
    font-weight: 700;
}

.tutorial-secondary-button.big {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 8px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.24);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-family: 'Finger Paint', cursive;
    font-weight: 600;
    font-size: 16px;
    color: #532700;
    transition: all 0.2s ease;
}

/* Smaller buttons for donut pass modal */
.donut-pass-modal .tutorial-primary-button.big {
    padding: 8px 16px;
    font-size: 14px;
}

.donut-pass-modal .tutorial-secondary-button.big {
    padding: 8px 16px;
    font-size: 14px;
}

/* Hover effects for buttons */
.tutorial-primary-button:hover,
.tutorial-secondary-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.tutorial-primary-button:active,
.tutorial-secondary-button:active {
    transform: translateY(0);
    filter: brightness(0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tutorial-modal-content {
        max-width: 95vw;
        padding: 10px;
        overflow: visible;
    }
    
    .modal-content-inner {
        width: 300px;
        padding: 16px;
    }
    
    .donut-pass-modal {
        max-width: 500px;
    }
    
    .modal-title,
    .pass-title {
        font-size: 28px;
    }
    
    .swirl-background {
        width: 300px;
        height: 300px;
    }
    

}

.tutorial-step-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFD58A;
    border-radius: 24px;
    padding: 48px 40px 32px;
    width: 500px;
    min-height: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.tutorial-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #532700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tutorial-close:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.tutorial-step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.tutorial-step-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 8px;
}

.tutorial-step-title {
    font-family: 'Finger Paint', cursive;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3em;
    color: #532700;
    margin: 0;
}

.tutorial-step-text {
    font-family: 'Finger Paint', cursive;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    color: #532700;
    margin: 0;
    opacity: 0.85;
}

.tutorial-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
    margin-top: 8px;
}

.tutorial-nav-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FF3AA2;
    border: none;
    border-bottom: 3px solid #BA0062;
    color: #FFFFFF;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0px 4px 0px 0px rgba(0, 0, 0, 0.16);
}

.tutorial-nav-arrow:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0px 6px 0px 0px rgba(0, 0, 0, 0.16);
}

.tutorial-nav-arrow:active:not(.disabled) {
    transform: translateY(1px);
    box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.16);
}

.tutorial-nav-arrow.disabled {
    background: rgba(255, 255, 255, 0.3);
    border-bottom: 3px solid rgba(0, 0, 0, 0.1);
    color: rgba(83, 39, 0, 0.3);
    cursor: not-allowed;
    box-shadow: none;
}

.tutorial-nav-arrow.right:not(.disabled) {
    background: #1FA305;
    border-bottom: 3px solid #155c03;
}

.tutorial-nav-arrow.right:hover:not(.disabled) {
    background: #23c006;
}

.tutorial-step-indicator {
    font-family: 'Finger Paint', cursive;
    font-weight: 600;
    font-size: 16px;
    color: #532700;
    flex: 1;
    text-align: center;
}

.tutorial-modal-content.interactive {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .tutorial-step-modal {
        padding: 40px 24px 24px;
        width: 90vw;
        max-width: 500px;
        min-height: 350px;
    }
    
    .tutorial-step-icon {
        font-size: 48px;
    }
    
    .tutorial-step-title {
        font-size: 20px;
    }
    
    .tutorial-step-text {
        font-size: 14px;
    }
    
    .tutorial-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .tutorial-step-indicator {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tutorial-step-modal {
        width: 95vw;
        padding: 36px 20px 20px;
        min-height: 320px;
    }
}

/* Background Loading Indicator */
.background-loading-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: rgba(254, 228, 204, 0.95);
    border: 2px solid #FF7B00;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.background-loading-indicator.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.background-loading-indicator .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #FFB800;
    border-top-color: #FF7B00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.background-loading-indicator .loading-text {
    font-family: 'Finger Paint', cursive;
    font-size: 12px;
    color: #FF7B00;
    font-weight: 500;
}

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

@media (max-width: 768px) {
    .background-loading-indicator {
        bottom: 16px;
        right: 16px;
        padding: 6px 10px;
    }

    .background-loading-indicator .spinner {
        width: 14px;
        height: 14px;
    }

    .background-loading-indicator .loading-text {
        font-size: 11px;
    }
}

/* Loading state for UI elements */
.loading-skeleton {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Level indicators loading state */
.level-indicator.loading {
    opacity: 0.5;
    cursor: wait;
}

/* Card binder loading state */
.binder-btn.loading {
    opacity: 0.5;
    cursor: wait;
    pointer-events: none;
    position: relative;
}

.binder-btn.loading span {
    opacity: 0.6;
}

.binder-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Story toggle button loading state */
.toggle-btn.loading {
    opacity: 0.5;
    cursor: wait;
    pointer-events: none;
    position: relative;
}

.toggle-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    border: 2px solid rgba(255, 123, 0, 0.3);
    border-top-color: rgba(255, 123, 0, 0.8);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Donut Pass button loading state */
.donut-pass-btn.loading {
    opacity: 0.5;
    cursor: wait;
    pointer-events: none;
    position: relative;
}

.donut-pass-btn.loading span {
    opacity: 0.6;
}

.donut-pass-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Story pages loading state */
.story-page-card.loading {
    opacity: 0.6;
    cursor: wait;
}
