/* Landing Page Styles */
#landing-page .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#landing-page .content {
    width: 648px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 24px;
}

#landing-page .message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 600px;
}

#landing-page .illustration-container {
    position: relative;
    width: 892.5px;
    height: 490px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#landing-page .illustration-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#landing-page .donut-illustration {
    position: absolute;
    top: 25px;
    left: 101px;
    width: 307px;
    height: 307px;
    z-index: 1;
    animation: float 4s ease-in-out infinite;
}

#landing-page .title {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 505px;
    height: 96px;
    z-index: 2;
}

#landing-page .description {
    font-family: 'Finger Paint', cursive;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.167em;
    letter-spacing: 0.01em;
    text-align: center;
    color: #FFFFFF;
    width: 100%;
}

#landing-page .button-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 352px;
    position: relative;
    z-index: 10;
}

#landing-page .wallet-instruction {
    font-family: 'Finger Paint', cursive;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25em;
    letter-spacing: 0.01em;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    width: 100%;
}

/* Map Page Styles */
#map-page {
    position: relative;
}

/* Top Navigation */
.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 112px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    z-index: 100;
}

.left-nav {
    display: flex;
    align-items: center;
    gap: 80px;
}

.center-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.right-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #8b4513;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #2a1810;
    border-left: 3px solid #8b4513;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: #f4a460;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu-item {
    background: transparent;
    border: none;
    color: #d2b48c;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    min-height: 44px;
}

.mobile-menu-item img {
    width: 24px;
    height: 24px;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    background: rgba(139, 69, 19, 0.2);
    color: #f4a460;
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(139, 69, 19, 0.4);
    margin: 12px 0;
}

/* Map Container */
.map-wrapper {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 540px;
    height: 540px;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    /* Remove any clipping or background that creates window effect */
}

#map-container {
    position: relative;
    width: 540px;
    height: 540px;
    transform-origin: center;
    /* Remove transition to prevent interference with dragging */
}

/* Map Layers */
.map-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-layer * {
    pointer-events: auto;
}

/* Base Map Islands */
.island {
    position: absolute;
    transition: all 0.3s ease;
    cursor: pointer; /* Pointer cursor for better UX */
}

.island img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.island-grayed {
    opacity: 1;
}

.island-activated {
    opacity: 0;
}

.island-colored {
    opacity: 0;
}

.island.activated .island-grayed {
    opacity: 0;
}

.island.activated .island-activated {
    opacity: 1;
}

.island.activated .island-colored {
    opacity: 0;
}

.island.colored .island-grayed {
    opacity: 0;
}

.island.colored .island-activated {
    opacity: 0;
}

.island.colored .island-colored {
    opacity: 1;
}



/* Interactive Elements Layer */
#interactive-elements {
    z-index: 10;
    pointer-events: none; /* Don't block mouse events from reaching islands below */
}

.glazetopia-elements {
    position: absolute;
    pointer-events: auto; /* Re-enable pointer events for interactive elements */
}

/* Level Indicators */
.level-indicator {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; /* Pointer cursor for better UX */
    transition: all 0.3s ease;
    font-family: 'Finger Paint', cursive;
    font-weight: 500;
    font-size: 12px;
    color: white;
    z-index: 20;
}

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

.level-indicator.active {
    background: #FF3AA2;
    border: 2px solid #FFFFFF;
    box-shadow: 0px 2px 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; /* Override any parent hover effects */
}

.level-number {
    text-align: center;
    line-height: 1;
}

/* Collectible Elements */
.collectible {
    position: absolute;
    cursor: pointer; /* Pointer cursor for better UX */
    transition: all 0.3s ease;
    z-index: 15;
}

.collectible img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.collectible.crystal img {
    width: 20px;
    height: 20px;
}

.collectible.lollipop img {
    width: 15px;
    height: 23px;
}

.collectible.cream-peak img {
    width: 44px;
    height: 34px;
}

.collectible:hover {
    transform: scale(1.1) !important; /* Override any parent hover effects */
}

.collectible.collected {
    opacity: 0.3;
    transform: scale(0.8);
    pointer-events: none;
}

/* Central Crystal */
.central-crystal {
    position: absolute;
    cursor: pointer; /* Pointer cursor for better UX */
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: auto; /* Re-enable pointer events for central crystal */
}

.central-crystal .crystal-part {
    position: absolute;
    transition: all 0.3s ease;
}

.central-crystal .crystal-part img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Crystal part visibility is handled by JavaScript directly */

.central-crystal .crystal-full {
    position: absolute;
    transition: all 0.3s ease;
}

.central-crystal .crystal-full img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.central-crystal:hover {
    transform: scale(1.08) translateY(-2px) !important; /* Override any parent hover effects */
}

.central-crystal:hover .crystal-part img {
    filter: brightness(1.1);
}

/* Island Unlock Animation */
@keyframes islandUnlock {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.5) drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

/* Clean Island Hover Effects - Pop/Zoom only (matching crystals/lollipops) */
.island:hover {
    transform: scale(1.08) translateY(-2px) !important;
    filter: brightness(1.1) !important;
}

.island.activated:hover {
    transform: scale(1.1) translateY(-3px) !important;
    filter: brightness(1.15) !important;
}

.island:not(.activated):hover {
    transform: scale(1.08) translateY(-2px) !important;
    filter: brightness(1.1) !important;
}

/* Special hover effect for Glazetopia */
.island[data-island="glazetopia"]:hover {
    transform: scale(1.1) translateY(-3px) !important;
    filter: brightness(1.15) saturate(1.2) !important;
}

/* Individual hover effects for interactive elements are defined in their respective sections */

/* Floating Text Animation */
.floating-text {
    position: fixed;
    font-family: 'Finger Paint', cursive;
    font-weight: 600;
    font-size: 16px;
    color: #FF3AA2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 100;
    animation: floatUp 2s ease-out forwards;
    transform: translateX(-50%);
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-30px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0.9);
    }
}

/* Map Container Responsive */

/* Zoom Constraints - Updated for progressive zooming */
#map-container.zoom-1 {
    transform: scale(1);
}

#map-container.zoom-2 {
    transform: scale(1.2);
}

#map-container.zoom-3 {
    transform: scale(1.4);
}

#map-container.zoom-4 {
    transform: scale(1.6);
}

#map-container.zoom-5 {
    transform: scale(1.8);
}

#map-container.zoom-6 {
    transform: scale(2.0);
}

#map-container.zoom-7 {
    transform: scale(2.2);
}

#map-container.zoom-8 {
    transform: scale(2.4);
}

/* Prevent overflow and white space */
#map-container {
    will-change: transform;
}

/* Donut Land */
.donut-land {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.map-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Glazetopia Region */
.glazetopia-region {
    position: absolute;
    top: 99px;
    left: 24px;
    width: 175px;
    height: 164px;
    z-index: 10;
}

/* Level Progression */
.level-progression {
    position: relative;
    width: 100%;
    height: 100%;
}

.level-line {
    position: absolute;
    top: 84px;
    left: 14px;
    width: 10px;
    height: 9px;
    background: none;
    border: 2px solid #FFFFFF;
    z-index: 1;
}

/* Position Level Indicators */
.level-indicator[data-level="1"] {
    top: 87px;
    left: -4px;
}

.level-indicator[data-level="2"] {
    top: 65px;
    left: 19px;
}

.level-indicator[data-level="3"] {
    top: 34px;
    left: 13px;
}

.level-indicator[data-level="4"] {
    top: 6px;
    left: 42px;
}

.level-indicator[data-level="5"] {
    top: 55px;
    left: 107px;
}

.level-indicator[data-level="6"] {
    top: 83px;
    left: 73px;
}

.level-indicator[data-level="7"] {
    top: 91px;
    left: 113px;
}

.level-indicator[data-level="8"] {
    top: 25px;
    left: 82px;
}

.level-indicator[data-level="9"] {
    top: 49px;
    left: 54px;
}

/* Interactive Elements */
.cream-peak, .lollipop {
    position: absolute;
    cursor: pointer; /* Pointer cursor for better UX */
    transition: all 0.3s ease;
    z-index: 5;
}

.cream-peak:hover, .lollipop:hover {
    transform: scale(1.1) !important; /* Override any parent hover effects */
}

.cream-peak[data-position="top"] {
    top: 81px;
    left: 27px;
    width: 44px;
    height: 34px;
}

.cream-peak[data-position="bottom"] {
    top: -29px;
    left: 34px;
    width: 38px;
    height: 29px;
}

.lollipop[data-position="left"] {
    top: 3px;
    left: 22px;
    width: 15px;
    height: 23px;
}

.lollipop[data-position="bottom"] {
    top: 56px;
    left: 3px;
    width: 15px;
    height: 23px;
}

.lollipop[data-position="right"] {
    top: 72px;
    left: 139px;
    width: 15px;
    height: 23px;
}

.cream-peak-visual {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #F5F5F5, #C6DFFF);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.lollipop-visual {
    width: 100%;
    height: 100%;
    background: linear-gradient(circle, #F95428, #FFD58A);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
}

.lollipop-visual::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: #FFD58A;
}

/* Crystals */
.crystal {
    position: absolute;
    width: 120px;
    height: 120px;
    cursor: inherit; /* Inherit cursor from parent map container */
    transition: all 0.3s ease;
    z-index: 6;
}

.crystal:hover {
    transform: scale(1.05) !important; /* Override any parent hover effects */
}

.crystal[data-position="crystal-1"] {
    top: 210px;
    left: 210px;
}

.crystal[data-position="crystal-2"] {
    top: 210px;
    left: 210px;
}

.crystal img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0px 0px 64px rgba(185, 255, 227, 1));
}

/* Tooltip Modal */
.tooltip-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.24);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none; /* Allow clicks through the backdrop when positioning */
}

.tooltip-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Re-enable pointer events when visible */
}

.tooltip-container {
    position: relative;
    width: 200px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -24px;
    pointer-events: auto; /* Ensure tooltip content is clickable */
    overflow: visible;
}

.tooltip-top {
    width: 100%;
    height: 16px;
    background: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.torn-edge {
    width: 100%;
    height: 16px;
    background: #FFD58A;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    border-radius: 0;
    clip-path: polygon(
        15% 0%,
        0% 40%,
        25% 0%,
        0% 70%,
        35% 0%,
        100% 0%,
        100% 100%,
        0% 100%,
        0% 70%
    );
}

.tooltip-content {
    background: #FFD58A;
    border-radius: 0 0 4px 4px;
    padding: 0 8px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-shadow: 0px 2px 0px 0px #8F5C00;
    margin-top: -2px;
    overflow: visible;
}

.tooltip-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.tooltip-title {
    font-family: 'Finger Paint', cursive;
    font-weight: 600;
    font-size: 16px;
    color: #532700;
    text-align: center;
    margin: 0;
}

.tooltip-description {
    font-family: 'Finger Paint', cursive;
    font-weight: 400;
    font-size: 12px;
    color: #532700;
    text-align: center;
    margin: 0;
}

.tooltip-button {
    background: #FF3AA2;
    border: none;
    border-bottom: 2px solid #BA0062;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.16);
}

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

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

.tooltip-button span {
    font-family: 'Finger Paint', cursive;
    font-weight: 600;
    font-size: 14px;
    color: #FFFFFF;
}

.completed-level-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.completed-level-buttons .tooltip-button.see-pages {
    background: #FF3AA2;
    border-bottom: 2px solid #BA0062;
}

.completed-level-buttons .tooltip-button.see-pages:hover {
    background: #FF4DB8;
}

.completed-level-buttons .tooltip-button.mint-nfts {
    background: #FF7B00;
    border-bottom: 2px solid #BA5A00;
}

.completed-level-buttons .tooltip-button.mint-nfts:hover {
    background: #FF8C1A;
}

.tooltip-bottom {
    width: 20px;
    height: 10px;
    position: relative;
}



/* 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;
}
*/

.card-binder-badge {
    bottom: 88px;
    left: 209px;
}

.story-toggle-badge {
    top: 40px;
    left: 672px;
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 100;
}

/* Card Binder */
.card-binder {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 100;
}

/* Card Binder Modal Mobile Slide-Up Panel */
.card-detail-slide-up {
    position: fixed;
    top: 80px;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2a1810;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 10001;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.card-detail-slide-up.active {
    transform: translateY(0);
}

.slide-up-handle {
    width: 40px;
    height: 4px;
    background: rgba(139, 69, 19, 0.4);
    border-radius: 2px;
    margin: 12px auto 8px;
    cursor: grab;
}

.slide-up-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow-y: auto;
}

.slide-up-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.slide-up-close {
    background: transparent;
    border: none;
    color: #f4a460;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
/* Tablet adjustments (769px to 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
    .top-nav {
        padding: 24px;
    }

    .left-nav {
        gap: 32px;
    }

    .right-nav {
        gap: 8px;
    }

    /* Hide Glazed Pass text on tablet, show only icon */
    .right-nav .donut-pass-btn span {
        display: none;
    }

    .right-nav .donut-pass-btn {
        width: 48px;
        min-width: 48px;
        padding: 12px;
    }

    .right-nav .donut-pass-btn img {
        margin: 0;
    }

    .right-nav .item-counter {
        min-width: auto;
        padding: 6px;
        gap: 6px;
    }

    .right-nav .item-counter .counter-content {
        gap: 6px;
        padding-right: 6px;
    }

    .right-nav .item-counter .counter-content span {
        font-size: 14px;
    }

    .right-nav .item-counter .plus-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 8px;
    }

    .right-nav .item-counter .plus-btn img {
        width: 20px;
        height: 20px;
    }
}

/* Mobile adjustments (768px and below) */
@media (max-width: 768px) {
    #landing-page .content {
        width: 90vw;
        max-width: 500px;
        padding: 20px;
        gap: 30px;
    }
    
    #landing-page .message {
        width: 100%;
    }
    
    #landing-page .illustration-container {
        width: 100%;
        height: 180px;
        position: relative;
        z-index: 1;
    }
    
    #landing-page .donut-illustration {
        width: 250px;
        height: 250px;
        top: 10px;
    }
    
    #landing-page .title {
        width: 90%;
        height: auto;
        bottom: -10px;
    }
    
    #landing-page .description {
        font-size: 20px;
    }
    
    #landing-page .button-section {
        width: 100%;
        max-width: 300px;
        margin-top: 20px;
        position: relative;
        z-index: 10;
    }

    /* Map page mobile adjustments */
    .top-nav {
        flex-direction: row;
        height: 72px;
        padding: 16px 20px;
        gap: 12px;
        justify-content: space-between;
    }

    /* Show mobile page toggle on mobile */
    .mobile-page-toggle {
        display: flex;
        order: 1;
        margin-right: auto;
    }

    /* Hide center nav (Map/Story toggle) on mobile */
    .center-nav {
        display: none;
    }

    .left-nav {
        gap: 12px;
        order: 2;
        flex-shrink: 1;
        min-width: 0;
        display: none; /* Hide left-nav entirely on mobile (donut farm is hidden anyway) */
    }

    /* Hide donut farm button on mobile */
    .left-nav .donut-farm-btn {
        display: none;
    }

    .right-nav {
        gap: 6px;
        order: 3;
        flex-shrink: 1;
        margin-left: auto;
        min-width: 0;
    }

    .right-nav .donut-pass-btn span {
        display: none;
    }

    .right-nav .donut-pass-btn img {
        margin: 0;
    }

    .right-nav .donut-pass-btn {
        width: 40px;
        min-width: 40px;
        padding: 8px;
    }

    .right-nav .item-counter {
        min-width: auto;
        padding: 4px;
        gap: 4px;
    }

    .right-nav .item-counter .counter-content {
        gap: 4px;
        padding-right: 4px;
    }

    .right-nav .item-counter .counter-content span {
        font-size: 14px;
    }

    .right-nav .item-counter .plus-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        padding: 6px;
    }

    .right-nav .item-counter .plus-btn img {
        width: 20px;
        height: 20px;
    }

    .right-nav .wallet-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 8px;
    }

    .right-nav .wallet-btn img {
        width: 28px;
        height: 28px;
    }

    .map-wrapper {
        top: 90px;
        left: 20px;
        right: 20px;
        width: auto;
        height: 400px;
    }

    #map-container {
        top: 90px;
        left: 20px;
        right: 20px;
        width: auto;
        height: 400px;
    }

    .map-container {
        top: 90px;
        left: 20px;
        right: 20px;
        width: auto;
        height: 400px;
    }

    .zoom-controls {
        display: none; /* Hide zoom buttons on mobile - use pinch instead */
    }

    .card-binder {
        bottom: 60px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 99 !important; /* Keep below top nav */
    }

    .card-binder .binder-btn {
        min-height: 44px;
        padding: 12px 24px 12px 72px;
    }

    /* Card Binder Modal Mobile Layout */
    .card-binder-modal-content {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        gap: 0 !important;
    }

    /* Show close button on mobile for card binder */
    .card-binder-modal-content .close-button {
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        z-index: 10002 !important;
        width: 48px !important;
        height: 48px !important;
        background: rgba(0, 0, 0, 0.6) !important;
    }

    .modal-wrapper {
        margin-left: 0 !important;
        margin-top: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .left-container {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        flex-shrink: 0 !important;
    }

    .left-container .card-binder {
        width: 100% !important;
        height: 100% !important;
    }

    /* Hide right container on mobile (use slide-up instead) */
    .right-container {
        display: none !important;
    }

    /* Adjust card grid for mobile */
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    .card-item {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 0.7 !important;
    }

    /* Story page chapter selector for mobile */
    .story-tabs-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        margin-bottom: 48px;
    }

    .story-tabs {
        position: relative;
        overflow: visible;
        flex-wrap: nowrap;
        justify-content: center;
        padding: 0;
        min-height: 48px;
        flex: 0 1 auto;
    }

    .story-tab {
        display: none !important;
    }

    .story-tab.active {
        display: flex !important;
        align-items: center;
        gap: 8px;
        justify-content: center;
    }

    .chapter-nav-arrow {
        width: 40px;
        height: 40px;
        min-width: 40px;
        background: rgba(255, 255, 255, 0.24);
        border: none;
        border-radius: 50%;
        color: #fff;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }

    .chapter-nav-arrow:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.32);
        transform: scale(1.05);
    }

    .chapter-nav-arrow:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    /* Story card grid - single column on mobile */
    .story-card-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 20px !important;
    }

    /* Align card binder modal to bottom so top tabs are visible */
    .card-binder-modal-container .card-binder-modal-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    .card-binder-modal-container .modal-wrapper {
        align-items: flex-start !important;
        margin: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .card-binder-modal-container .card-binder-modal-content {
        max-height: 90vh !important;
        height: 90vh !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 10vh !important;
        overflow-y: visible !important;
    }

    .card-binder-modal-content .left-container {
        height: 100% !important;
        max-height: 100% !important;
        overflow-y: visible !important;
    }

    /* Make sure the card binder itself shows all content including top tabs */
    .card-binder-modal-content .left-container .card-binder {
        height: 100% !important;
        overflow-y: visible !important;
    }

    /* Tab list container with purple/green tabs should be visible */
    .tab-list-container {
        flex-shrink: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Content area should scroll, not the whole container */
    .content-area {
        flex: 1 !important;
        overflow: hidden !important;
    }

    .cards-holder {
        overflow-y: auto !important;
        flex: 1 !important;
    }

    .card-binder-modal-content .modal-wrapper {
        margin-top: 0 !important;
    }

    /* Ensure chapter tabs are visible */
    .chapter-tabs-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 480px) {
    #landing-page .title {
        width: 85%;
        bottom: -5px;
    }

    #landing-page .description {
        font-size: 18px;
    }

    #landing-page .donut-illustration {
        width: 200px;
        height: 200px;
    }

    #landing-page .button-section {
        margin-top: 30px;
        position: relative;
        z-index: 10;
    }

    /* Ensure text is hidden and buttons remain good size on very small screens */
    .right-nav .donut-pass-btn span {
        display: none !important;
    }

    .right-nav .donut-pass-btn {
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 10px;
    }

    .right-nav .donut-pass-btn img {
        width: 28px;
        height: 28px;
    }

    .right-nav .wallet-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 10px;
    }

    .right-nav .wallet-btn img {
        width: 28px;
        height: 28px;
    }

    /* Card binder modal adjustments for very small screens */
    .card-binder-modal-container .card-binder-modal-content {
        max-height: 90vh !important;
        height: 90vh !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 10vh !important;
    }

    .card-binder-modal-content .left-container {
        height: 100% !important;
        max-height: 100% !important;
    }

    .tab-list-container {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Binder chapter navigation arrows for mobile */
    .binder-chapter-nav-arrow {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        background: rgba(255, 255, 255, 0.24) !important;
        border: none !important;
        border-radius: 50% !important;
        color: #532700 !important;
        font-size: 24px !important;
        line-height: 1 !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        transition: all 0.2s ease !important;
    }

    .binder-chapter-nav-arrow:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.32) !important;
        transform: scale(1.05) !important;
    }

    .binder-chapter-nav-arrow:disabled {
        cursor: not-allowed !important;
    }
} 

.island-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transition: all 0.3s ease;
    transform-origin: center center;
}

.island-wrapper:hover {
    transform: scale(1.08) translateY(-2px);
    z-index: 5;
}

.island-wrapper .island {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

/* Remove hover effect from .island and .island.activated */
.island:hover,
.island.activated:hover,
.island:not(.activated):hover,
.island[data-island="glazetopia"]:hover {
    transform: none !important;
    filter: none !important;
} 

/* Story Page Styles */
#story-page {
  min-height: 100vh;
  width: 100vw;
  background: radial-gradient(ellipse at 50% 50%, #07002B 64%, #000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.story-main-content {
  max-width: 1100px;
  margin: 130px auto 0 auto; /* 160px below top */
  background: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.story-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}
.story-tab {
  background: none;
  border: none;
  border-radius: 100px;
  padding: 8px 18px;
  color: rgba(255,255,255,0.56);
  font-family: 'Finger Paint', cursive;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.story-tab:hover {
  color: rgba(255,255,255,0.85);
  transform: scale(1.08);
  z-index: 2;
}
.story-tab.active {
  background: rgba(255,255,255,0.16);
  color: #fff;
  box-shadow: 0 2px 0px 0 rgba(0,0,0,0.16);
  transform: scale(1.08);
  z-index: 3;
}
.story-tab.active:hover {
  transform: scale(1.15);
  z-index: 4;
}
.story-tab .chapter-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}
.story-tab:hover .chapter-icon {
  animation: spin 3s linear infinite;
}

.chapter-icon { animation: spin 3s linear infinite; } 
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.story-title-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}
.story-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 205.23px);
  grid-template-rows: repeat(4, 180px);
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin: 0 auto 0 auto;
  max-width: 1000px;
  position: relative;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  padding-bottom: 24px;
  box-sizing: content-box;
}

/* Custom scrollbar for story-card-grid */
.story-card-grid::-webkit-scrollbar {
  width: 8px;
}

.story-card-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.story-card-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.story-card-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
.story-card-wrapper {
  position: relative;
  width: 205.23px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  transform-origin: center center;
  flex-shrink: 0;
  flex-grow: 0;
}
.story-card-wrapper:hover {
  transform: scale(1.08) translateY(-2px);
  z-index: 5;
}
.story-card-wrapper .sticky-card {
  transition: transform 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-origin: center center;
}
.story-card, .dashed-card {
  width: 100%;
  height: 180px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  flex-shrink: 0;
  flex-grow: 0;
}
.dashed-card {
  background: none;
  border: 2px dashed #fff3;
  color: #fff8;
  min-width: 0;
  min-height: 0;
}

/* Story Card Container - Following tooltip pattern */
.story-card-wrapper .story-card-top {
  width: 100%;
  height: 16px;
  background: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-card-wrapper .torn-edge {
  width: 100%;
  height: 16px;
  background: #FFD58A;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  border-radius: 0;
  clip-path: polygon(
    15% 0%,
    0% 40%,
    25% 0%,
    0% 70%,
    35% 0%,
    100% 0%,
    100% 100%,
    0% 100%,
    0% 70%
  );
}

.sticky-card {
  background: #FFD58A;
  border-radius: 0 0 4px 4px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 164px; /* Reduced height to account for torn edge */
  box-shadow: 0 4px 24px 0 #0004;
  margin-top: -1px; /* Much larger negative margin to create significant overlap */
  color: #07002B;
  font-family: 'Finger Paint', cursive;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  z-index: 1; /* Ensure card is below the torn edge */
  flex-shrink: 0;
  flex-grow: 0;
}
.sticky-card .sticky-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}
.sticky-card .sticky-desc {
  font-size: 12px;
  text-align: center;
  margin-bottom: 0;
}
.sticky-card .get-pages-btn {
  display: flex;
  height: 28px;
  padding: 8px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: #FF3AA2;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Finger Paint', cursive;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px #ff3aa2a0;
  transition: background 0.2s, box-shadow 0.2s;
}
.sticky-card .get-pages-btn:hover {
  background: #e12c8c;
  box-shadow: 0 4px 16px #ff3aa2a0;
}
.sticky-corner {
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 32px;
  background: #23213a;
  border-bottom-right-radius: 12px;
  z-index: 2;
  box-shadow: 2px 2px 8px #0002;
}
.sticky-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 8px;
}
.sticky-desc {
  font-size: 1rem;
  margin-bottom: 18px;
  opacity: 0.85;
}
.get-pages-btn {
  background: #FF3AA2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-family: 'Finger Paint', cursive;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px #ff3aa2a0;
  transition: background 0.2s, box-shadow 0.2s;
}
.get-pages-btn:hover {
  background: #e12c8c;
  box-shadow: 0 4px 16px #ff3aa2a0;
}
/* Remove card-binder-sticky from Story page */
.card-binder-sticky {
  display: none !important;
}
@media (max-width: 1100px) {
  .story-card-grid {
    grid-template-columns: repeat(3, 205.23px);
    grid-template-rows: repeat(4, 180px);
    gap: 18px;
  }
  .card-binder-sticky {
    left: 0;
    bottom: -60px;
  }
}
@media (max-width: 700px) {
  .story-main-content {
    max-width: 98vw;
    padding: 0 2vw;
  }
  .story-card-grid {
    grid-template-columns: repeat(2, 205.23px);
    grid-template-rows: repeat(6, 180px);
    gap: 12px;
  }
  .card-binder-sticky {
    left: 0;
    bottom: -60px;
  }
}

/* Page visibility control */
.page {
  display: none;
  width: 100%;
  min-height: 100vh;
}
.page.active {
  display: block;
} 

.story-subtitle {
  font-family: 'Finger Paint', cursive;
  font-size: 20px;
  color: rgba(255,255,255,0.72);
  text-align: center;
  margin-top: 16px;
  margin-bottom: 0;
}

/* Disabled Chapter Styles */
.story-disabled-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px 20px;
}

.story-disabled-title {
  font-family: 'Finger Paint', cursive;
  font-weight: 600;
  font-size: 80px;
  line-height: 1.2em;
  letter-spacing: 0.04em;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.story-disabled-subtitle {
  font-family: 'Finger Paint', cursive;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.25em;
  letter-spacing: 0.01em;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

.story-card-wrapper .dashed-card {
  transition: transform 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-origin: center center;
  font-size: 2.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-card-wrapper:hover .dashed-card {
  transform: scale(1.08);
}

/* Unlocked Story Card Styles */
.unlocked-card {
  background: #FFD58A;
  border-radius: 0 0 4px 4px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 164px;
  box-shadow: 0 4px 24px 0 #0004;
  margin-top: -1px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  flex-shrink: 0;
  flex-grow: 0;
}

.story-page-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* Ensure unlocked cards have the torn edge */
.story-card-wrapper .unlocked-card {
  transition: transform 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-origin: center center;
}

.story-card-wrapper:hover .unlocked-card {
  transform: scale(1.08);
}

/* Page Number Styles */
.page-number {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: #FF3AA2;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Finger Paint', cursive;
  font-weight: 600;
  font-size: 12px;
  color: #FFFFFF;
  box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.24);
  z-index: 10;
}

/* Unlocked Wrapper - Full Size Image Layout */
.unlocked-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  transform-origin: center center;
  flex-shrink: 0;
  flex-grow: 0;
}

.unlocked-wrapper:hover {
  transform: scale(1.08) translateY(-2px);
  z-index: 5;
}

.story-page-full-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 24px 0 #0004;
}

/* Page Number - Left Bottom Position */
.page-number-left {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  background: #FF3AA2;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Finger Paint', cursive;
  font-weight: 600;
  font-size: 12px;
  color: #FFFFFF;
  box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.24);
  z-index: 10;
}

/* Story Notification Icon - Using notification-badge style */
.story-notification-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  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: 10;
}

/* Story Viewer Modal Styles */
.story-viewer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.story-viewer-modal.visible {
  opacity: 1;
  display: flex !important;
}

.story-viewer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.story-viewer-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  height: 90%;
  max-height: 600px;
  margin: 5% auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.story-viewer-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.story-viewer-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.story-viewer-content button {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  cursor: pointer;
  z-index: 2002;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-viewer-content button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.story-viewer-content .story-viewer-close-btn {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  font-size: 24px;
}

.story-viewer-content .story-viewer-prev-btn {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 20px;
}

.story-viewer-content .story-viewer-next-btn {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 20px;
}

/* Story Viewer Title and Page Number */
.story-viewer-title-container {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  z-index: 2003;
}

.story-viewer-title {
  font-family: 'Finger Paint', cursive;
  font-size: 24px;
  font-weight: 600;
  color: #FF3AA2;
  text-align: center;
}

.story-viewer-page-number {
  font-family: 'Finger Paint', cursive;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

/* More Info Link */
.more-info-link {
  margin-left: 8px;
  font-size: 0.75em;
  color: #4A90E2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.more-info-link:hover {
  color: #2E6CB5;
  text-decoration: underline;
}

/* NFT Preview Eye Emoji and Popup */
.preview-eye {
  cursor: pointer;
  font-size: 16px;
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.2s ease;
  user-select: none;
}

.preview-eye:hover {
  transform: scale(1.2);
}

.nft-preview-popup {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  z-index: 10000;
  background: #FFF2DC;
  border: 2px solid #FFD58A;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 250px;
  max-width: 300px;
  pointer-events: auto;
}

.nft-preview-content {
  padding: 12px;
}

.preview-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-card img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
  background: #FFFFFF;
}

.preview-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-name {
  font-family: 'Finger Paint', cursive;
  font-size: 14px;
  font-weight: 600;
  color: #532700;
}

.preview-description {
  font-family: 'Finger Paint', cursive;
  font-size: 11px;
  font-weight: 400;
  color: #532700;
  line-height: 1.4;
}

.preview-loading,
.preview-error {
  font-family: 'Finger Paint', cursive;
  font-size: 12px;
  color: #532700;
  padding: 8px;
  text-align: center;
}

.preview-error {
  color: rgba(83, 39, 0, 0.6);
}

/* Supply Indicator */
.supply-indicator {
  cursor: pointer;
  font-size: 0.7em;
  margin-left: 4px;
  color: #FF6B35;
  font-weight: 600;
  transition: color 0.2s ease;
  user-select: none;
}

.supply-indicator:hover {
  color: #FF8C5E;
}

/* Supply Info Popup */
.supply-info-popup {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  z-index: 10000;
  background: transparent;
  border: none;
  pointer-events: auto;
}

.supply-info-content {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.supply-info-image {
  width: auto;
  height: auto;
  max-width: 400px;
  max-height: 400px;
  display: block;
}

/* Make item-option relative for absolute positioning of popup */
.item-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.item-option:hover:not(.owned) {
  background: rgba(255, 255, 255, 0.1);
}

.item-option.owned {
  opacity: 0.6;
}

.item-option label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.item-option.owned label {
  cursor: default;
}

.owned-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: #1FA305;
  color: #FFFFFF;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

