/* Statsy mobile layout: real touch devices and narrow coarse-pointer viewports */

html.is-coarse-mobile,
html.is-coarse-mobile body {
    height: 100%;
    max-width: 100%;
    overflow: hidden;
}

html.is-coarse-mobile .page-scroll,
html.is-coarse-mobile .container {
    max-width: 100%;
    overflow-x: hidden;
}

html.is-coarse-mobile .page-scroll {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html.is-coarse-mobile .page-scroll::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    html,
    body {
        height: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .page-scroll,
    .container {
        overflow-x: hidden;
        max-width: 100%;
    }

    .page-scroll {
        height: 100%;
        overflow-y: auto;
        padding: 12px;
        touch-action: pan-y;
        -webkit-text-size-adjust: 100%;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .page-scroll::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }

    .bg-glow {
        display: none;
    }

    .hero-img--desktop {
        display: none;
    }

    .hero-img--mobile {
        display: block;
        animation: none;
    }

    .card,
    .footer,
    .card.scroll-reveal,
    .footer.scroll-reveal {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .card,
    .pink-paws-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.18);
    }

    .card.stats-card {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .network-stats-bar {
        max-width: 100%;
        word-break: break-word;
        border-radius: 16px;
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .cards-grid {
        gap: 14px;
    }

    .card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .stats-column {
        display: contents;
    }

    .wheel-layout {
        flex-direction: column;
    }

    .wheel-panel--visual {
        order: -1;
    }

    .slot-hero-img {
        max-width: 100%;
        height: auto;
    }

    .tokenomics-grid {
        grid-template-columns: 1fr;
    }

    .timeline-list {
        max-height: none;
    }

    /* Hide desktop carousel on mobile: replaced by dropdown UI */
    .stats-carousel {
        display: none;
    }

    .stats-mobile {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
        min-width: 0;
    }

    .stats-mobile-pickers {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .stats-mobile-field {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .stats-mobile-label {
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.75);
    }

    .stats-mobile-select {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        background: rgba(255, 255, 255, 0.95);
        color: #2d3748;
        font: inherit;
        font-size: 1rem;
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232d3748' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 36px;
    }

    .stats-mobile-chart-wrap {
        width: 100%;
        min-width: 0;
        height: 260px;
        border-radius: 14px;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .stats-mobile-chart-wrap canvas {
        display: block;
        width: 100% !important;
        height: 100% !important;
    }

    .stats-charts-root {
        overflow: hidden;
        max-width: 100%;
    }
}
