/* ============================================================
   IMAGINE THE GAME — DEDICATED MOBILE STYLESHEET (css/mobile.css)
   Exclusively active on viewports <= 900px.
   Desktop version (width > 900px) remains 100% untouched.
   ============================================================ */

/* Hide mobile navigation by default on desktop */
.mobile-header,
.mobile-nav-drawer,
.mobile-nav-backdrop {
    display: none;
}

@media (max-width: 900px) {

    /* ----------------------------------------------------
       1. CORE VIEWPORT & FLUID TYPOGRAPHY OVERRIDES
       ---------------------------------------------------- */
    html {
        font-size: 15px !important;
        scroll-behavior: smooth;
        -webkit-text-size-adjust: 100%;
    }

    body {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
    }

    /* Prevent horizontal scrolling on all elements */
    #smooth-wrapper,
    #smooth-content {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* ----------------------------------------------------
       2. MOBILE HEADER & NAVIGATION DRAWER
       ---------------------------------------------------- */
    .mobile-header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 64px;
        padding: 0 1.25rem;
        background: rgba(2, 6, 16, 0.85);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(212, 175, 55, 0.15);
        z-index: 9990;
        align-items: center;
        justify-content: space-between;
        transition: transform 0.3s ease, background 0.3s ease;
    }

    .mobile-header-brand {
        display: flex;
        align-items: center;
        text-decoration: none;
        height: 100%;
    }

    .mobile-header-logo {
        height: 28px;
        width: auto;
        max-width: 130px;
        object-fit: contain;
        opacity: 0.95;
    }

    /* Animated Hamburger Button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10001;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        margin: 3px 0;
        background: #D4AF37;
        border-radius: 2px;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.3s ease;
    }

    /* Hamburger into 'X' when active */
    .mobile-menu-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: #ffffff;
    }

    .mobile-menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: #ffffff;
    }

    /* Drawer Backdrop */
    .mobile-nav-backdrop {
        display: block !important;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .mobile-nav-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Mobile Drawer */
    .mobile-nav-drawer {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(340px, 85vw);
        background: linear-gradient(180deg, #050e1a 0%, #01040a 100%);
        border-left: 1px solid rgba(212, 175, 55, 0.25);
        box-shadow: -15px 0 35px rgba(0, 0, 0, 0.75);
        z-index: 10000;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 5rem 1.8rem 2.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-nav-drawer.is-open {
        transform: translateX(0);
    }

    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .mobile-nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 0.9rem;
    }

    .mobile-nav-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #f5f5f7;
        font-size: 1.15rem;
        font-weight: 400;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        text-decoration: none;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .mobile-nav-link:active,
    .mobile-nav-link.is-active {
        color: #D4AF37;
        transform: translateX(4px);
    }

    .mobile-nav-link .nav-arrow {
        font-size: 0.85rem;
        color: #D4AF37;
        opacity: 0.6;
    }

    /* Special Highlight for Gamefound in Menu */
    .mobile-nav-item.highlight-item {
        margin-top: 0.8rem;
        padding-bottom: 0;
        border-bottom: none;
    }

    .mobile-nav-gf-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        width: 100%;
        padding: 0.9rem 1.2rem;
        background: linear-gradient(135deg, #00e59b 0%, #00b377 100%);
        color: #011612;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 50px;
        box-shadow: 0 4px 18px rgba(0, 229, 155, 0.35);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-nav-gf-btn:active {
        transform: scale(0.98);
    }

    .mobile-nav-footer {
        margin-top: auto;
        padding-top: 2rem;
        text-align: center;
    }

    .mobile-nav-brand-text {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.4);
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    /* ----------------------------------------------------
       3. HOMEPAGE RESPONSIVE TUNING (index.html)
       ---------------------------------------------------- */
    /* Push top content down to account for the fixed header */
    .hero {
        padding-top: 85px !important;
        min-height: 90vh !important;
        justify-content: center !important;
    }

    /* Alignments: Stop 40vw squeezing on mobile screens */
    .align-left,
    .align-right,
    .align-center {
        padding-left: 6vw !important;
        padding-right: 6vw !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .panel {
        min-height: auto !important;
        padding: 5rem 0 !important;
    }

    /* Hero Branding */
    .brand-logo {
        max-width: 140px !important;
        margin-bottom: 2rem !important;
    }

    .hero-title {
        font-size: clamp(2.4rem, 9.5vw, 3.8rem) !important;
        line-height: 1.12 !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-subtitle {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
        max-width: 100% !important;
    }

    /* Studio Section */
    .studio {
        padding: 4rem 0 !important;
    }

    .studio .large-text.desc {
        font-size: 1.35rem !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
    }

    .studio .craft-desc {
        font-size: 1.1rem !important;
        margin-top: 1.5rem !important;
    }

    .studio-brand-logo {
        max-width: min(280px, 80vw) !important;
        margin-top: 2.5rem !important;
    }

    /* Strategic Pillars Section */
    .pillars-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 3.5rem !important;
        padding: 3rem 6vw !important;
    }

    .pillar {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .pillar-content {
        display: flex;
        flex-direction: column;
    }

    .pillar-title {
        font-size: 1.8rem !important;
        margin-bottom: 0.8rem !important;
    }

    .pillar-desc {
        font-size: 0.95rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1.25rem !important;
        color: rgba(245, 245, 247, 0.75) !important;
    }

    .pillar-img-wrapper {
        width: 100% !important;
        max-width: 256px !important;
        margin: 0 auto !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        aspect-ratio: 3 / 4 !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .pillar-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Timeline Section */
    .timeline-section {
        padding: 4rem 0 !important;
        min-height: auto !important;
    }

    .timeline-section .section-title {
        font-size: clamp(2.2rem, 8vw, 3.2rem) !important;
        line-height: 1.15 !important;
    }

    .timeline {
        margin-top: 2.5rem !important;
        margin-left: 0.5rem !important;
    }

    .timeline-item {
        padding-left: 2rem !important;
        padding-bottom: 2.5rem !important;
    }

    .timeline-step {
        font-size: 1.35rem !important;
    }

    .timeline-desc {
        font-size: 0.95rem !important;
        max-width: 100% !important;
    }

    /* First Game Section (Pirate Piggies) */
    .panel.product {
        padding: 4rem 0 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .panel.product .align-left {
        text-align: center !important;
        padding: 0 6vw !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .panel.product .massive-title {
        font-size: clamp(2.6rem, 10vw, 3.8rem) !important;
        text-align: center !important;
    }

    .panel.product .large-text.desc {
        font-size: 1.1rem !important;
        max-width: 520px !important;
        margin: 0 auto 2rem auto !important;
        text-align: center !important;
    }

    .rope-outer-container {
        width: 100% !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 1rem auto 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .rope-bg-image {
        display: none !important;
    }

    .rope-layout-wrapper {
        aspect-ratio: auto !important;
        height: auto !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        width: 100% !important;
        transform: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Vertical stacked column of cards, perfectly centered */
    .rope-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1.8rem !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        height: auto !important;
    }

    /* Reset all desktop [data-char-id] absolute coordinates to align 100% dead-center vertically */
    .rope-grid .character-card,
    .rope-grid .character-card[data-char-id],
    .rope-grid .character-card[data-char-id="carta-grog"],
    .rope-grid .character-card[data-char-id="carta-astuta"],
    .rope-grid .character-card[data-char-id="carta-cap"],
    .rope-grid .character-card[data-char-id="carta-hummm"],
    .rope-grid .character-card[data-char-id="carta-ladra"],
    .rope-grid .character-card[data-char-id="carta-nonsense"] {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        margin: 0 auto !important;
        width: 190px !important;
        max-width: 190px !important;
        aspect-ratio: 2 / 3 !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        display: block !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        filter: none !important;
        -webkit-filter: none !important;
        border: none !important;
        outline: none !important;
        transform: none !important;
        transition: transform 0.25s ease !important;
    }

    .rope-grid .character-card:hover,
    .rope-grid .character-card:active,
    .rope-grid .character-card[data-char-id]:hover,
    .rope-grid .character-card[data-char-id]:active {
        transform: scale(0.97) !important;
        box-shadow: none !important;
        filter: none !important;
        left: auto !important;
        top: auto !important;
    }

    .character-poster,
    .rope-grid .character-poster,
    .rope-grid .character-card[data-char-id] .character-poster {
        border-radius: 14px !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        filter: none !important;
        -webkit-filter: none !important;
        animation: none !important;
        transform: none !important;
        width: 100% !important;
        height: 100% !important;
    }

    .character-poster img,
    .rope-grid .character-poster img {
        border-radius: 14px !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        filter: none !important;
        -webkit-filter: none !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .rope-grid .character-overlay {
        padding: 1rem 0.8rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-end !important;
        text-align: center !important;
        box-shadow: none !important;
    }

    .char-name {
        font-size: 1.15rem !important;
        text-align: center !important;
        margin-bottom: 0.2rem !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
    }

    .char-action {
        font-size: 0.72rem !important;
        padding: 0.3rem 0.65rem !important;
        text-align: center !important;
        opacity: 0.95 !important;
        transform: none !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
    }

    /* Footer Section */
    .panel.cta {
        min-height: auto !important;
        padding: 5rem 6vw 4rem !important;
    }

    .cta-title {
        font-size: clamp(1.8rem, 6.5vw, 2.6rem) !important;
        margin-bottom: 2.5rem !important;
    }

    .footer-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
        align-items: center !important;
    }

    /* Transform dropdown into interactive retractable submenu on mobile */
    .footer-links .dropdown {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .footer-links .dropdown > .link {
        cursor: pointer;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        min-height: 44px;
        padding: 0.4rem 1.2rem !important;
        -webkit-tap-highlight-color: transparent;
    }

    /* Seta indicadora de submenu retrátil no mobile */
    .footer-links .dropdown > .link::after {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-right: 2px solid #D4AF37;
        border-bottom: 2px solid #D4AF37;
        transform: rotate(45deg);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        margin-left: 0.35rem;
        margin-top: -3px;
    }

    /* Seta rotacionada para cima quando aberto */
    .footer-links .dropdown.is-open > .link::after {
        transform: rotate(-135deg);
        margin-top: 3px;
    }

    /* Submenu fechado por padrão no mobile */
    .footer-links .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.3s ease !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    /* Submenu aberto suavemente ao toque */
    .footer-links .dropdown.is-open .dropdown-menu {
        opacity: 1 !important;
        max-height: 120px !important;
        pointer-events: auto !important;
        margin-top: 0.5rem !important;
        padding: 0.2rem 0 0.6rem !important;
    }

    .footer-links .dropdown-link {
        font-size: 0.92rem !important;
        color: #D4AF37 !important;
        padding: 0.45rem 1.3rem !important;
        background: rgba(212, 175, 55, 0.08) !important;
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
        border-radius: 20px !important;
        text-decoration: none !important;
        display: inline-block !important;
        letter-spacing: 0.1em !important;
        transition: background 0.2s ease, transform 0.2s ease !important;
    }

    .footer-links .dropdown-link:active {
        transform: scale(0.96) !important;
        background: rgba(212, 175, 55, 0.2) !important;
    }

    .footer-links .link {
        font-size: 1.05rem !important;
        padding: 0.4rem 1rem !important;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* ----------------------------------------------------
       4. CHARACTER STORIES 3D MODAL (Mobile Tuning)
       ---------------------------------------------------- */
    .story-overlay {
        padding: 0 !important;
    }

    .story-close-btn {
        top: 15px !important;
        right: 15px !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(0, 0, 0, 0.6) !important;
        border: 1px solid rgba(212, 175, 55, 0.4) !important;
        border-radius: 50% !important;
        z-index: 10020 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.8rem !important;
        line-height: 1 !important;
        color: #ffffff !important;
    }

    .story-modal-wrapper {
        flex-direction: column !important;
        padding: 4.5rem 1.2rem 2rem !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        justify-content: flex-start !important;
        gap: 1rem !important;
        transform: none !important;
    }

    /* Ambient Portrait Background */
    .story-portrait-side {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        opacity: 0.1 !important;
        pointer-events: none !important;
        z-index: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .story-char-img {
        max-height: 70vh !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .story-content-side {
        position: relative !important;
        z-index: 2 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Swipeable Character Icon Bar */
    .story-menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0.6rem !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.4rem 0.5rem 0.8rem !important;
        margin-bottom: 1rem !important;
        scrollbar-width: none;
    }

    .story-menu::-webkit-scrollbar {
        display: none;
    }

    .story-menu-item {
        flex: 0 0 auto !important;
        padding: 4px !important;
    }

    .menu-char-icon {
        height: 52px !important;
        width: auto !important;
    }

    .story-char-title {
        max-height: 48px !important;
        max-width: 80% !important;
        object-fit: contain !important;
        margin-bottom: 1.2rem !important;
    }

    /* Story Card Scene */
    .carousel-3d-scene {
        height: auto !important;
        min-height: 220px !important;
        max-height: 38vh !important;
        width: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        perspective: none !important;
        transform: none !important;
    }

    .carousel-3d-ring {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        transform: none !important;
        transform-style: flat !important;
    }

    .carousel-3d-card {
        width: 100% !important;
        height: auto !important;
        padding: 1rem 0.5rem !important;
        position: relative !important;
        transform: none !important;
    }

    .story-text {
        font-size: 1.02rem !important;
        line-height: 1.6 !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
    }

    /* Navigation Controls */
    .story-controls {
        margin-top: 1.2rem !important;
        max-width: 260px !important;
        width: 100% !important;
    }

    .story-nav-btn img {
        height: 36px !important;
    }

    /* ----------------------------------------------------
       5. NEWS POPUP (Mobile Accessible Tap & Scale)
       ---------------------------------------------------- */
    .news-popup-overlay {
        padding: 1.5rem !important;
    }

    .news-popup-content {
        max-width: min(380px, 92vw) !important;
        border-radius: 14px !important;
    }

    /* Match desktop: transparent hotspot over the painted 'X' on the top-right of POPUP_NEWS */
    .news-popup-close {
        top: 9.6% !important;
        right: 14.2% !important;
        width: 10.5% !important;
        height: 12% !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: block !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .news-popup-close::after {
        display: none !important;
    }

    .news-popup-close::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 44px;
        min-height: 44px;
        width: 125%;
        height: 125%;
    }

    /* Tone down particle intensity on mobile */
    .popup-particles-container {
        opacity: 0.4 !important;
    }

    /* ----------------------------------------------------
       6. PIRATE PIGGIES CREW PAGE (pirate-piggies.html)
       ---------------------------------------------------- */
    .contact-nav {
        display: none !important; /* Managed by mobile-header */
    }

    .pp-main {
        flex-direction: column !important;
        padding: 75px 1.25rem 2.5rem !important;
        gap: 1.25rem !important;
        min-height: 100vh !important;
        height: auto !important;
    }

    .pp-portrait-side {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }

    .pp-portrait-img {
        max-height: 36vh !important;
        width: auto !important;
    }

    .pp-brushstroke {
        opacity: 0.35 !important;
    }

    .pp-decor-barrel.barrel-1 {
        width: 90px !important;
        left: -10% !important;
        bottom: 0 !important;
    }

    .pp-decor-barrel.barrel-2 {
        width: 70px !important;
        left: -15% !important;
        bottom: 25% !important;
    }

    .pp-content-side {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .pp-menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: clamp(4px, 1.8vw, 8px) !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.3rem 0.4rem 0.7rem !important;
        margin: 0 auto 0.8rem auto !important;
        overflow-x: visible !important;
        box-sizing: border-box !important;
    }

    .pp-menu::-webkit-scrollbar {
        display: none;
    }

    .pp-menu-btn {
        padding: 0.2rem 0.15rem !important;
        flex-shrink: 1 !important;
    }

    .pp-menu-btn img {
        height: clamp(38px, 9.8vw, 46px) !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    .pp-name-img {
        max-width: 250px !important;
        height: auto !important;
        margin-bottom: 0.8rem !important;
    }

    .pp-carousel {
        width: 100% !important;
        max-width: 480px !important;
        min-height: 200px !important;
        height: auto !important;
        position: relative !important;
        overflow-y: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        -webkit-overflow-scrolling: touch !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .pp-carousel::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .pp-cards-track {
        width: 100% !important;
        min-height: 200px !important;
        height: 100% !important;
        position: relative !important;
    }

    .pp-card {
        display: flex !important;
        align-items: flex-start !important; /* Top aligned: guarantees NO text is ever cut off at the top */
        justify-content: center !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        padding: 0.25rem 0.5rem !important;
    }

    .pp-card p {
        font-family: 'Caveat', cursive, sans-serif !important;
        font-size: 1.15rem !important;
        font-weight: 600 !important;
        line-height: 1.45 !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .pp-controls {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 310px !important;
        margin: 1.2rem auto 0 auto !important;
        padding: 0 0.4rem !important;
        box-sizing: border-box !important;
        gap: 0.6rem !important;
    }

    .pp-nav-btn {
        padding: 0.2rem !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .pp-nav-btn img {
        height: clamp(26px, 7.2vw, 32px) !important;
        width: auto !important;
        max-width: 105px !important;
        object-fit: contain !important;
    }

    .pp-dots {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        flex-shrink: 0 !important;
    }

    .pp-cta-btn-img {
        margin: 1.5rem auto 0 !important;
        max-width: 190px !important;
    }

    /* ----------------------------------------------------
       7. PIRATE PIGGIES GAME PAGE (piratepiggies_game.html)
       ---------------------------------------------------- */
    .game-nav {
        display: none !important; /* Replaced by unified mobile-header */
    }

    /* Ocultar elementos decorativos e ilustrações de fundo no mobile para máxima legibilidade */
    .pp-bg-wrapper,
    .pp-bg-overlay,
    .pp-brand-glow,
    .cannonball-container,
    .cannon-flash {
        display: none !important;
    }

    body.pp-game-page {
        background: #050e1a !important; /* Fundo limpo e neutro */
    }

    /* Enquadrar container na largura total da tela, sem margens ou paddings laterais */
    .game-container {
        padding: 64px 0 2rem 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        perspective: none !important;
        overflow-x: hidden !important;
    }

    .game-content-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        transform-style: flat !important;
    }

    .game-features-images {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .game-feature-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important; /* Evita deslocamento acidental no toque */
    }

    .game-feature-pt7-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    /* Ensure Gamefound & Social Link Overlays maintain accessible touch targets */
    .pt7-gamefound-btn {
        min-height: 40px !important;
        border-radius: 8px !important;
    }

    .pt7-social-link {
        min-width: 44px !important;
        min-height: 44px !important;
    }

    /* ----------------------------------------------------
       8. CREW, NEWS & CONTACT PAGES TUNING
       ---------------------------------------------------- */
    .team-page,
    .contact-page,
    .news-page {
        padding-top: 64px !important;
    }

    /* Team Grid on Mobile */
    .team-container {
        padding: 2rem 5vw 3rem !important;
    }

    .team-header .massive-title {
        font-size: clamp(2.8rem, 10vw, 4.2rem) !important;
    }

    .team-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }

    .team-card {
        max-width: 100% !important;
        flex: auto !important;
    }

    .member-image-wrapper {
        width: min(120px, 32vw) !important;
        height: min(120px, 32vw) !important;
        margin: 0 auto 0.8rem !important;
    }

    .member-name {
        font-size: 1.15rem !important;
    }

    .member-role {
        font-size: 0.8rem !important;
    }

    /* Contact Page on Mobile */
    .contact-container {
        padding: 2rem 6vw 3rem !important;
    }

    .contact-left .massive-title {
        font-size: clamp(2.6rem, 9.5vw, 3.8rem) !important;
        line-height: 1.15 !important;
    }

    .contact-info-block {
        padding: 1.2rem 0 !important;
        text-decoration: none !important;
        color: inherit !important;
        display: flex !important;
        align-items: center !important;
        -webkit-tap-highlight-color: transparent;
    }

    .contact-info-block:active {
        opacity: 0.75;
    }

    /* News Page on Mobile */
    .news-container {
        padding: 2rem 6vw 3rem !important;
    }

    .news-left .massive-title {
        font-size: clamp(2.6rem, 9.5vw, 3.8rem) !important;
    }

    .news-html-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        width: 100% !important;
    }

    .news-input-wrapper {
        width: 100% !important;
    }

    .news-input-field {
        width: 100% !important;
        height: 48px !important;
        border-radius: 8px !important;
        clip-path: none !important;
    }

    .news-submit-btn {
        width: 100% !important;
        height: 48px !important;
        margin-left: 0 !important;
        border-radius: 8px !important;
        clip-path: none !important;
        padding-left: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ----------------------------------------------------
   9. EXTRA SMALL PHONES TUNING (<= 480px)
   ---------------------------------------------------- */
@media (max-width: 480px) {
    .rope-grid {
        gap: 1.5rem !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .rope-grid .character-card {
        width: 180px !important;
        max-width: 180px !important;
        margin: 0 auto !important;
        box-shadow: none !important;
        filter: none !important;
    }

    .team-grid {
        grid-template-columns: 1fr !important;
        max-width: 260px !important;
        margin: 0 auto !important;
    }

    .hero-title {
        font-size: 2.3rem !important;
    }
}
