/* ==========================================
   1. Global Resets & Typography
   ========================================== */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
    scroll-behavior: smooth;
    background-image: url('assets/images/site-texture.png') !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* ==========================================
   2. Desktop Core Structural Layout (Pointer-Only Devices)
   ========================================== */
@media (min-width: 1025px) {
    .navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #b1cae8 !important;
        height: 95px !important;
        padding: 10px 30px !important;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        z-index: 9999 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        box-sizing: border-box !important;
    }

    .navbar.scrolled {
        padding: 8px 20px !important;
        height: 55px;
        background-color: rgba(177, 202, 232, 0.95) !important;
    }

    .nav-logo img {
        height: 90px;
        width: auto;
        display: block;
        position: relative;
        top: 25px;
        margin-top: 15px;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
        transition: all 0.3s ease;
    }

    .navbar.scrolled .nav-logo img {
        height: 60px !important;
        top: 5px !important;
    }

    .nav-links {
        display: flex;
        gap: 15px !important;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .navbar a {
        font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
        text-decoration: none;
        color: #163683 !important;
        font-weight: 800;
        font-size: 1.0rem !important;
        text-transform: uppercase;
        letter-spacing: 2px !important;
        transition: opacity 0.2s ease;
    }

    .navbar .nav-links,
    .navbar ul {
        display: flex !important;
        gap: 30px !important;
    }

    .navbar a:hover {
        opacity: 0.6;
        color: #163683 !important;
    }

    #launch-gate {
        width: 100% !important;
        min-height: calc(100vh - 70px) !important;
        background-color: rgba(255, 255, 255, 0.50) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 70px 0 30px 0 !important;
        box-sizing: border-box !important;
        position: relative !important;
    }

    .hero-graphics-row {
        margin-top: 20px !important;
        margin-bottom: 0px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }

    #launch-gate a[href="#coloring-corner-section"] {
        display: block !important;
        margin-left: 500px !important;
        margin-top: 15px !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }

    .lets-color-bar-wrapper {
        display: flex !important;
        justify-content: flex-end !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px auto 0 auto !important;
        padding-right: 50px !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 15 !important;
    }

    .lets-color-custom-btn {
        display: block !important;
        width: 460px !important;
        height: 46px !important;
        background-image: url('assets/images/lets-color-btn-sprite.png') !important;
        background-color: transparent !important;
        background-repeat: no-repeat !important;
        background-position: 0 0 !important;
        background-size: 460px 92px !important;
        border: none !important;
        box-shadow: none !important;
        text-indent: -9999px !important;
        overflow: hidden !important;
        text-decoration: none !important;
    }

    .lets-color-custom-btn:hover {
        background-position: 0 -46px !important;
        transform: none !important;
    }

    .banner-amazon-btn {
        position: absolute !important;
        bottom: 4% !important;
        right: 5% !important;
        display: block !important;
        width: 150px !important;
        height: 46px !important;
        background-image: url('assets/images/amazon-button-sprite.png') !important;
        background-color: transparent !important;
        background-repeat: no-repeat !important;
        background-position: 0 0 !important;
        background-size: 150px 92px !important;
        border: none !important;
        box-shadow: none !important;
        font-size: 0 !important;
        line-height: 0 !important;
        text-decoration: none !important;
        z-index: 20 !important;
        overflow: hidden !important;
    }

    .banner-amazon-btn:hover {
        background-position: 0 -46px !important;
        transform: none !important;
    }

    /* Desktop Mouse Trigger Configurations */
    #coloring-corner-section .klaus {
        position: absolute !important;
        z-index: 1 !important;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1) 0.15s !important;
    }

    .klaus-pop-1 {
        width: 130px !important;
        height: auto !important;
        left: calc(50% - 460px) !important;
        top: 42% !important;
        transform: translateX(0);
    }

    .klaus-pop-6 {
        width: 160px !important;
        height: auto !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(0);
        bottom: 85px !important;
    }

    #color:has(.coloring-card:nth-child(-n+4):hover)~.klaus-pop-1,
    #color:has(.coloring-card:nth-child(-n+4):focus-within)~.klaus-pop-1 {
        transform: translateX(-100px) !important;
        transition-delay: 0s !important;
    }

    #color:has(.coloring-card:nth-child(n+5):hover)~.klaus-pop-6,
    #color:has(.coloring-card:nth-child(n+5):focus-within)~.klaus-pop-6 {
        transform: translateX(-50%) translateY(95px) !important;
        transition-delay: 0s !important;
    }

    .coloring-card:hover::after {
        opacity: 1 !important;
    }

    .btn-download:hover {
        background-image: url('assets/images/download-btn-hover.png') !important;
        transform: none !important;
    }
}

/* <--- CRITICAL FIX: Properly closes the desktop media query block right here! */

/* ==========================================
   3. Global Shared Component Layouts (All Devices)
   ========================================== */
.hero-combined {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 1050px !important;
    height: auto !important;
    object-fit: contain !important;
    z-index: 1 !important;
    margin: 0 auto !important;
}

#launch-gate [style*="background-color: #ffffd7"] {
    margin-top: -20px !important;
}

#launch-gate div[style*="background-color: #ffffd7"] {
    align-items: flex-start !important;
    padding-top: 4vh !important;
    padding-bottom: 4vh !important;
}

.yellow-banner-bar {
    background-color: #ffffd7 !important;
    width: 100% !important;
    height: 110px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    margin: 0 0 2vh 0 !important;
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.25), 0 -12px 30px rgba(0, 0, 0, 0.20) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    z-index: 10 !important;
    overflow: visible !important;
}

.yellow-banner-inner {
    width: 100% !important;
    max-width: 1200px !important;
    display: flex !important;
    justify-content: flex-end !important;
    box-sizing: border-box !important;
    padding: 0 50px !important;
}

.yellow-banner-section {
    width: 100% !important;
    margin: 0 !important;
    background-color: transparent !important;
}

.banner-wrapper {
    width: 100% !important;
    background-color: transparent !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.banner-message-card {
    width: 680px !important;
    max-width: 90% !important;
    height: auto !important;
    position: relative !important;
    z-index: 50 !important;
    margin-top: -35px !important;
    margin-left: 500px !important;
    filter: drop-shadow(0px 8px 22px rgba(0, 0, 0, 0.28)) !important;
}

.banner-card-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.coloring-container {
    position: relative !important;
    width: 92% !important;
    max-width: 920px !important;
    margin: 10px auto 30px auto !important;
    padding: 80px 20px 25px 20px !important;
    background-color: #1a365d !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    box-sizing: border-box !important;
    z-index: 2 !important;
}

.coloring-intro {
    color: #e2e8f0 !important;
    font-family: sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    margin: 0 auto 20px auto !important;
    text-align: center !important;
    max-width: 700px !important;
}

.coloring-header-row {
    display: flex !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto 15px auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.coloring-header-row img {
    height: auto !important;
    max-height: 95px !important;
    object-fit: contain !important;
}

.coloring-header-overlap {
    position: absolute !important;
    top: -45px !important;
    left: 5% !important;
    max-width: 90% !important;
    z-index: 10 !important;
}

.coloring-header-img {
    height: auto !important;
    width: 100% !important;
    max-width: 380px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)) !important;
}

.download-all-header-btn {
    position: absolute !important;
    top: -20px !important;
    right: 25px !important;
    background-color: #ffffff !important;
    color: #1a365d !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    z-index: 20 !important;
    transition: all 0.2s ease !important;
}

.coloring-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 8px !important;
    row-gap: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.coloring-card {
    height: 275px !important;
    padding: 10px 10px 10px 10px !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.coloring-card:nth-child(1) {
    background-image: url('assets/images/coloring-card-1-base.png') !important;
}

.coloring-card:nth-child(2) {
    background-image: url('assets/images/coloring-card-2-base.png') !important;
}

.coloring-card:nth-child(3) {
    background-image: url('assets/images/coloring-card-3-base.png') !important;
}

.coloring-card:nth-child(4) {
    background-image: url('assets/images/coloring-card-4-base.png') !important;
}

.coloring-card:nth-child(5) {
    background-image: url('assets/images/coloring-card-5-base.png') !important;
}

.coloring-card:nth-child(6) {
    background-image: url('assets/images/coloring-card-6-base.png') !important;
}

.coloring-card:nth-child(7) {
    background-image: url('assets/images/coloring-card-7-base.png') !important;
}

.coloring-card:nth-child(8) {
    background-image: url('assets/images/coloring-card-8-base.png') !important;
}

.image-container {
    width: 100% !important;
    height: 165px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
}

.image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.coloring-card:nth-child(-n+4) .image-container img {
    transform: scale(1.1) !important;
}

.coloring-card:nth-child(n+5) .image-container img {
    transform: scale(1.2) !important;
}

.btn-download {
    display: block !important;
    width: 200px !important;
    height: 55px !important;
    margin: 0 !important;
    background-image: url('assets/images/download-btn-rest.png') !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
    border: none !important;
    box-shadow: none !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

.btn-download:active {
    background-image: url('assets/images/download-btn-click.png') !important;
}

/* Zero-Flicker Safari Overlay Elements */
.coloring-card {
    position: relative !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: none !important;
}

.coloring-card::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
    opacity: 0 !important;
    transition: opacity 0.1s ease !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.coloring-card .btn-download {
    position: relative !important;
    z-index: 2 !important;
}

.coloring-card:nth-child(1)::after {
    background-image: url('assets/images/coloring-card-1-hover.png') !important;
}

.coloring-card:nth-child(2)::after {
    background-image: url('assets/images/coloring-card-2-hover.png') !important;
}

.coloring-card:nth-child(3)::after {
    background-image: url('assets/images/coloring-card-3-hover.png') !important;
}

.coloring-card:nth-child(4)::after {
    background-image: url('assets/images/coloring-card-4-hover.png') !important;
}

.coloring-card:nth-child(5)::after {
    background-image: url('assets/images/coloring-card-5-hover.png') !important;
}

.coloring-card:nth-child(6)::after {
    background-image: url('assets/images/coloring-card-6-hover.png') !important;
}

.coloring-card:nth-child(7)::after {
    background-image: url('assets/images/coloring-card-7-hover.png') !important;
}

.coloring-card:nth-child(8)::after {
    background-image: url('assets/images/coloring-card-8-hover.png') !important;
}

/* Contact Form & Footer Architecture */
#coming-soon {
    background: rgba(27, 54, 93, 0.75) !important;
    color: white;
    position: relative;
    padding: 50px 20px 50px 20px !important;
    width: 92% !important;
    max-width: 1050px !important;
    margin: 120px auto 80px auto !important;
    border-radius: 16px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

#coming-soon h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-style: normal !important;
    font-weight: 300 !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    font-size: 2.6rem !important;
}

.contact-card-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 2;
    width: 100% !important;
    max-width: 900px !important;
}

.contact-card-box h2 {
    font-style: italic;
    font-size: 2.2rem;
    margin-bottom: 0;
}

.contact-white-card {
    background-image: url('assets/images/contact-card.png') !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 100% 100% !important;
    box-shadow: none !important;
    color: #333333;
    padding: 60px 40px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    font-family: "Copperplate", "Copperplate Gothic Light", fantasy !important;
}

.contact-white-card .brand-title {
    font-size: 1.8rem !important;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: #111111;
}

.contact-white-card .location-text {
    font-size: 0.95rem !important;
    color: #666666;
    margin-bottom: 25px;
}

.contact-white-card .contact-form {
    width: 100% !important;
    max-width: 520px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
}

.contact-white-card .contact-email-input {
    width: 100% !important;
    max-width: 520px !important;
    height: 44px !important;
    padding: 10px 15px !important;
    font-size: 0.95rem !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-style: normal !important;
    color: #333333 !important;
    text-align: left !important;
    border: 1px solid #cccccc !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    outline: none !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
}

.contact-white-card .contact-message-input {
    width: 100% !important;
    max-width: 520px !important;
    height: 120px !important;
    padding: 10px 15px !important;
    font-size: 0.95rem !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-style: normal !important;
    color: #333333 !important;
    border: 1px solid #cccccc !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    resize: vertical !important;
    outline: none !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
}

.contact-white-card .contact-send-btn {
    width: auto !important;
    min-width: 130px !important;
    height: 42px !important;
    background-color: #111111 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    align-self: flex-end !important;
}

.contact-white-card .contact-send-btn:hover {
    background-color: #444444 !important;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.copyright-text,
.illustrator-text {
    font-size: 0.85rem !important;
    opacity: 0.7;
    margin-bottom: 4px;
    color: white;
}

/* Hardware Rendering Optimization Engines */
.banner-message-card,
.banner-card-img,
.lets-color-custom-btn,
.coloring-card,
.lets-color-bar-wrapper {
    contain: layout paint !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    will-change: transform, opacity, background-image !important;
}

html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* ==========================================
   4. Mobile Responsive Systems (All Touchscreens under 1024px)
   ========================================== */
@media (max-width: 1024px) {

    /* 1. STRUCTURAL WRAPPER RESET */
    #launch-gate {
        min-height: unset !important;
        height: auto !important;
        justify-content: flex-start !important;
        padding: 95px 0 10px 0 !important;
        gap: 0 !important;
        width: 100% !important;
    }

    /* 2. DYNAMIC MULTI-LINE NAVBAR FIX - Hard-locks it to the top layer */
    .navbar,
    .navbar.scrolled {
        position: fixed !important;
        /* Forces it to stay pinned in place when scrolling */
        top: 0 !important;
        /* Anchors it flush against the very top edge of the viewport */
        left: 0 !important;
        width: 100% !important;
        background-color: #b1cae8 !important;
        /* Forces your solid light blue background color */
        height: auto !important;
        /* Lets container depth grow organically to cradle links layout rows */
        min-height: 90px !important;
        padding: 10px 10px 14px 10px !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 6px !important;
        z-index: 999999 !important;
        /* High stack number guarantees it sits on the absolute top visual layer */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    }

    .nav-logo,
    .nav-logo img,
    .navbar.scrolled .nav-logo img {
        height: 48px !important;
        width: auto !important;
        position: static !important;
        margin: 0 auto !important;
        transform: none !important;
        transition: none !important;
    }

    .navbar .nav-links,
    .navbar ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px 18px !important;
        padding-right: 0 !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        list-style: none !important;
    }

    .navbar a {
        font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif !important;
        text-decoration: none !important;
        color: #163683 !important;
        font-weight: 800 !important;
        font-size: 0.80rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    /* 3. HERO SPACING CONFIGURATIONS */
    .hero-graphics-row {
        margin-top: 15px !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    .hero-combined {
        max-width: 100% !important;
        height: auto !important;
    }

    /* 4. ANNOUNCEMENT & AMAZON BUTTON CONTROLS */
    .yellow-banner-bar {
        height: auto !important;
        min-height: unset !important;
        padding: 15px 15px !important;
        margin-top: 0 !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        flex-direction: column !important;
    }

    .yellow-banner-inner {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .banner-message-card {
        width: 100% !important;
        max-width: 440px !important;
        margin: 0 auto !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        filter: drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.18)) !important;
    }

    .banner-amazon-btn {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        display: block !important;
        width: 120px !important;
        height: 37px !important;
        margin: 4px auto 0 auto !important;
        background-image: url('assets/images/amazon-button-sprite.png') !important;
        background-size: 120px 74px !important;
        background-position: 0 0 !important;
        overflow: hidden !important;
        text-indent: -9999px !important;
    }

    /* 5. FORCE THE BLUE BANNER BAR TO RE-APPEAR TRANSVERSELY */
    .lets-color-bar-wrapper {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        margin: 15px auto 0 auto !important;
        box-sizing: border-box !important;
    }

    #launch-gate a[href="#coloring-corner-section"].lets-color-custom-btn,
    .lets-color-custom-btn {
        display: block !important;
        visibility: visible !important;
        width: 320px !important;
        max-width: 95% !important;
        height: 32px !important;
        background-image: url('assets/images/lets-color-btn-sprite.png') !important;
        background-size: 320px 64px !important;
        background-position: 0 0 !important;
        margin: 0 auto !important;
        position: relative !important;
        overflow: hidden !important;
        text-indent: -9999px !important;
    }

    /* 6. HARD LOCK INTERACTIONS */
    #coloring-corner-section img.klaus,
    #coloring-corner-section .klaus-pop-1,
    #coloring-corner-section .klaus-pop-6,
    .klaus {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        pointer-events: none !important;
    }

    /* 7. COLOR SHEET CONTAINER GRID LOGIC */
    .coloring-container {
        position: relative !important;
        max-width: 520px !important;
        margin: 45px auto 30px auto !important;
        padding-top: 60px !important;
        width: 92% !important;
    }

    .coloring-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        column-gap: 12px !important;
        row-gap: 18px !important;
    }

    .coloring-card {
        height: 220px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding-bottom: 15px !important;
    }

    .image-container {
        height: 130px !important;
    }

    .btn-download {
        display: block !important;
        width: 120px !important;
        height: 36px !important;
        background-size: contain !important;
    }

    #coming-soon {
        width: 92% !important;
        max-width: 600px !important;
        margin: 60px auto 40px auto !important;
        padding: 30px 15px !important;
    }

    .contact-white-card {
        padding: 40px 25px !important;
        width: 100% !important;
        max-width: 500px !important;
    }
}

/* ==========================================
5. Pure Touchscreen Gesture Control Overrides
========================================== */
@media (hover: none) {
    .navbar a:hover {
        opacity: 1 !important;
        color: #163683 !important;
    }

    /* ALLOW THE HIGHLIGHT CONTAINER TO EXIST ON TOUCH DEVICES */
    .coloring-card::after {
        content: '' !important;
        display: block !important;
        /* Changes 'none' to 'block' so the asset can render */
        opacity: 0 !important;
        /* Keeps it completely hidden until you actually tap it */
    }

    /* FLASH THE TRUE HOVER SPRITE IMAGE ON INSTANT TOUCH PRESS */
    .coloring-card:active::after {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ==========================================
   6. iPad Landscape Precision Layout Override Track
   ========================================== */
@media (min-width: 1024px) and (max-width: 1365px) {

    /* 1. RESTORE ROW STRUCTURE: Breaks the mobile vertical stack and layout row */
    #launch-gate .yellow-banner-inner {
        display: flex !important;
        flex-direction: row !important;
        /* Forces side-by-side card flow layout track */
        justify-content: flex-end !important;
        /* Locks elements securely to the right edge bounds */
        align-items: center !important;
        padding-right: 8% !important;
        /* Sets a safe inner content buffer away from glass edge */
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 2. REALIGN & DOWNSIZE THE WELCOME MESSAGE CARD */
    #launch-gate .banner-message-card {
        width: 480px !important;
        /* Reduces card width footprint so it fits the viewport safely */
        max-width: 480px !important;
        margin: -35px 0 0 auto !important;
        /* Pulls it flush with the right boundary wall layer */
        position: relative !important;
        left: auto !important;
        right: auto !important;
    }

    /* 3. PIN THE AMAZON BUY BUTTON INSIDE THE CARD FOOTPRINT */
    #launch-gate .banner-amazon-btn {
        position: absolute !important;
        bottom: 6% !important;
        /* Locks inside the card's text description padding space */
        right: 6% !important;
        /* Align flush with right content limits */
        display: block !important;
        width: 120px !important;
        height: 37px !important;
        background-size: 120px 74px !important;
        margin: 0 !important;
    }
}

/* =======================================================
   7. UNIFIED RESPONSIVE ELEMENT OVERRIDE TRACK
   ======================================================= */

/* TARGETS ALL TOUCH PRIVILEGED SCREENS AND TABLETS (All Viewports 1024px and Down) */
@media (max-width: 1024px) {

    /* 1. COMPLETELY BREAKS THE HOVER LINK CONFLICT: Forces the button out of peek-a-boo states */
    .coloring-card::after {
        display: none !important;
        content: none !important;
        opacity: 0 !important;
    }

    /* 2. RE-STABILIZES CONTAINER BOX SECTIONS */
    .coloring-container {
        padding-top: 15px !important;
        /* Drops the heavy desktop ceiling padding completely */
        margin: 35px auto 15px auto !important;
        width: 92% !important;
        max-width: 520px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        overflow: visible !important;
        /* Stop shifting elements from clipping edge walls */
    }

    /* 3. FLUID CONTENT FLOW LOGIC: Stacks the logo image safely ABOVE the cards row */
    .coloring-header-overlap {
        position: relative !important;
        /* Releases the fixed layout grid track */
        top: 0 !important;
        left: auto !important;
        width: 100% !important;
        max-width: 320px !important;
        /* Trims the width footprint so it stops blocking card views */
        margin: 15px auto 15px auto !important;
        display: flex !important;
        justify-content: center !important;
        order: 1 !important;
        /* Hard-locks top visual slot */
    }

    .coloring-header-img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Forces your 2-column sheets grid to render directly beneath the title logo */
    .coloring-grid {
        order: 2 !important;
        /* Hard-locks middle visual slot */
        margin-bottom: 25px !important;
    }

    /* 4. THE EXTERNAL FLOATING ANCHOR: Forced to display neatly right under the blue box bounds */
    .download-all-header-btn {
        position: relative !important;
        /* Disconnects it from absolute tracking math traps */
        top: 0 !important;
        right: auto !important;
        left: auto !important;
        order: 3 !important;
        /* Hard-locks bottom visual slot below the container floor line */
        margin: 10px auto 0 auto !important;
        display: inline-block !important;

        /* Shape, colors, and premium 3D bevel properties */
        padding: 10px 20px !important;
        font-size: 0.88rem !important;
        background-color: #ffffff !important;
        color: #1a365d !important;
        border-radius: 50px !important;
        box-shadow: 0 4px 0px #8ea1b4, 0 6px 12px rgba(0, 0, 0, 0.15) !important;
    }

    .download-all-header-btn:active {
        transform: translateY(2px) !important;
        /* Clean physical sinking upon active finger touch clicks */
        box-shadow: 0 1px 0px #8ea1b4, 0 4px 8px rgba(0, 0, 0, 0.12) !important;
    }
}

/* -------------------------------------------------------
   8. SPECIFIC RATIO VIEWPORT TUNING ENGINES
   ------------------------------------------------------- */
/* iPad Portrait Active Touch State Trigger */
@media (min-width: 744px) and (max-width: 1024px) and (orientation: portrait) {
    .coloring-card {
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    /* Uses a core brightness flash that responds instantly to portrait tablet finger presses */
    .coloring-card:active {
        filter: brightness(1.12) contrast(1.05) !important;
        transition: filter 0.05s ease !important;
    }
}

/* Vertical Mobile Phone Tuning Profile */
@media (max-width: 480px) {

    .navbar,
    .navbar.scrolled {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        min-height: unset !important;
        height: auto !important;
    }

    .coloring-header-overlap {
        max-width: 240px !important;

        /* THE CRITICAL CENTERING OVERRIDE: 
           By anchoring both left and right edges to zero and letting the margin handle the rest,
           we override the left: 5% desktop rule and force the logo perfectly into the middle vector lane! */
        position: absolute !important;
        top: -30px !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
    }

    .download-all-header-btn {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
    }
}

/* Sideways Mobile Phone Tuning Profile */
@media (max-width: 930px) and (max-height: 500px) {

    .navbar,
    .navbar.scrolled {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 6px 20px !important;
    }

    .nav-logo img {
        max-height: 30px !important;
    }

    #launch-gate {
        padding-top: 105px !important;
    }

    .coloring-header-overlap {
        max-width: 220px !important;
    }

    .coloring-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        row-gap: 15px !important;
    }
}

/* =======================================================
   9. STRICT ABSOLUTE FLOATING ESCAPE ENGINE
   ======================================================= */

/* UNIVERSAL TARGET TRACK FOR SCREENS UNDER 1024px (Mobile & Tablets) */
@media (max-width: 1024px) {

    /* 1. LOCKS CONTAINER WALLS: Adds a heavy bottom layout padding block to protect the canvas floor */
    .coloring-container {
        position: relative !important;
        margin-bottom: 95px !important;
        /* Forces extra page space right below the box for the button to live in */
    }

    /* 2. THE ABSOLUTE ESCAPE HATCH: Drops the capsule button cleanly outside and BELOW the blue walls */
    .download-all-header-btn {
        position: absolute !important;
        /* Force-overrides the desktop top-right positioning limits */
        top: 100% !important;
        /* Measures the height of the dark blue box and anchors the button to its lower baseline */
        margin-top: 25px !important;
        /* Generates a perfect layout safety cushion below the blue panel line */

        /* Forces flawless horizontal center alignment on all touch screens */
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        display: inline-block !important;
        z-index: 999999 !important;
        /* Keeps it sitting on the absolute top visual layer */
    }

    /* Maintains your clean active button click physics perfectly */
    .download-all-header-btn:active {
        transform: translateX(-50%) translateY(2px) !important;
    }
}

/* Micro-tuning profile adjustment for small vertical phone screens */
@media (max-width: 480px) {
    .coloring-container {
        margin-bottom: 75px !important;
    }

    .download-all-header-btn {
        margin-top: 15px !important;
    }
}

/* =======================================================
   10. MOBILE LANDSCAPE 4-COLUMN FORMATTING TRACK
   ======================================================= */

/* SENSES WHEN A SMARTPHONE FLIPS SIDEWAYS (Widescreen Mobile Views) */
@media (max-width: 930px) and (max-height: 500px) {

    /* 1. Recalibrates the blue wrapper width so it can absorb 4 columns safely */
    .coloring-container {
        max-width: 95% !important;
        width: 95% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* 2. THE 4 OVER 4 LOCK: Re-allocates horizontal real estate into 4 matching slots */
    .coloring-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        /* Forces your beautiful 4 over 4 card look! */
        column-gap: 8px !important;
        row-gap: 12px !important;
    }

    /* 3. Downscales individual card asset dimensions so they fit tight display heights */
    .coloring-card {
        height: 145px !important;
        /* Prevents long card frames from forcing infinite page scrolling */
        min-height: 145px !important;
        padding: 6px 6px 8px 6px !important;
    }

    .image-container {
        height: 80px !important;
        /* Compact drawing frame window alignment */
        margin-bottom: 4px !important;
    }

    .image-container img {
        max-height: 80px !important;
    }

    /* 4. Keeps your blue download links perfectly crisp and un-clipped */
    .btn-download {
        width: 100% !important;
        max-width: 105px !important;
        height: 28px !important;
        background-size: 100% 100% !important;
    }
}

/* =======================================================
   11. HTML INTERACTION PASS-THROUGH TUNING ENGINE
   ======================================================= */

/* TARGETS ONLY PORTRAIT TABLETS (Widths: 744px to 1024px) */
@media (min-width: 744px) and (max-width: 1024px) and (orientation: portrait) {

    /* 1. Forces the tablet touch engine to treat the card frame as a clickable element */
    .coloring-card {
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
        /* Clears the native gray box Safari adds on tap */
    }

    /* 2. THE CHOSEN INTERACTIVE TRICK: Stops the thumbnail image from blocking your finger */
    .image-container,
    .image-container img {
        pointer-events: none !important;
        /* Touch passes right through the picture down to the card! */
    }

    /* 3. RE-ACTIVATES THE VISIBILITY OVERRIDE: Tells the browser to exist on click press */
    .coloring-card::after {
        content: '' !important;
        display: block !important;
    }

    /* 4. TRUE TOUCH SPRITE HIGHLIGHT LOCK: Flashes your custom hover sprite asset instantly on tap */
    .coloring-card:active::after {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* =======================================================
   12. GLOBAL TABLET ONE-TAP SPRITE INTERACTION LOCK
   ======================================================= */

/* SENSES ALL IPADS & TOUCH TABLETS OVER 744px (Both Portrait & Landscape Views) */
@media (min-width: 744px) and (max-width: 1366px) {

    /* 1. Alerts mobile Safari to treat the card frames as true interactive pointer targets */
    .coloring-card {
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
        /* Clears the native gray splash overlay Safari adds on tap */
    }

    /* 2. THE CHOSEN INTERACTIVE UNLOCK: Passes touch inputs right through the pictures down to the card */
    .image-container,
    .image-container img {
        pointer-events: none !important;
    }

    /* 3. RE-ACTIVATES THE VISIBILITY OVERRIDE: Forces the highlight container to exist on touch devices */
    .coloring-card::after {
        content: '' !important;
        display: block !important;
    }

    /* 4. THE STICKY SYNCHRONIZER: 
       By forcing both views to listen to the touch-adapted hover state instead of active click states, 
       tablets will now follow the "One-Tap On, One-Tap Anywhere Else Off" logic across BOTH orientations! */
    .coloring-card:hover::after,
    .coloring-card:active::after {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* =======================================================
   13. GLOBAL CLICK-LOCK TOGGLE HIGHLIGHT ENGINE
   ======================================================= */

/* TARGETS ALL MOBILE DEVICES AND TOUCH PANELS UNIVERSALLY (All Screens Under 1366px) */
@media (max-width: 1366px) {

    /* 1. Alerts all mobile Safari and Android phone browsers to treat cards as interactive targets */
    .coloring-card {
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
        /* Removes the native gray block splash Safari adds on tap */
    }

    /* 2. INTRINSIC PASS-THROUGH: Passes finger inputs straight through the pictures down to the card canvas */
    .image-container,
    .image-container img {
        pointer-events: none !important;
    }

    /* 3. RE-ACTIVATES VISIBILITY CONTROLS: Forces the highlight layer container to exist on mobile screen flows */
    .coloring-card::after {
        content: '' !important;
        display: block !important;
    }

    /* 4. TURNS OFF HOVER CONFUSION: Erases the unpredictable, sticky browser native mouse fallbacks */
    .coloring-card:hover::after {
        opacity: 0 !important;
    }

    /* 5. THE GLOBAL HIGHLIGHT LOCK: 
       When your JavaScript adds the class on a clean finger tap, force your 
       custom yellow highlight sprite frame asset to instantly load and lock open! */
    .coloring-card.active-highlight::after {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* =======================================================
   14. PORTRAIT IPAD BUTTON CUTOUT FILLER TRACK
   ======================================================= */

/* TARGETS ONLY PORTRAIT TABLETS (Protects Mobile Phones completely) */
@media (min-width: 744px) and (max-width: 1024px) {

    /* 1. Anchors content down to your built-in sprite floor line */
    .coloring-card {
        justify-content: flex-end !important;
        padding-bottom: 12px !important;
        /* Safety cushion rests button over lower bevel lip */
    }

    /* 2. Keeps drawing page preview boxes float-aligned upwards */
    .image-container {
        height: auto !important;
        max-height: 165px !important;
        margin-bottom: auto !important;
    }

    /* 3. THE TABLET FILLER LOCK: Forces the 3D button to fill the card shelf space */
    .btn-download {
        display: block !important;
        position: relative !important;
        width: 86% !important;
        /* Dynamically matches your tablet card's fluid width bounds */
        max-width: 190px !important;
        /* Caps horizontal footprint so it can never bleed over edges */
        height: 46px !important;
        /* Restores full depth so 3D asset details display clean and crisp */
        background-size: 100% 100% !important;
        /* Maps the blue bevel graphic flush to container lines */
        margin: 5px auto 0 auto !important;
        /* Centers the asset perfectly horizontally */
    }
}

/* =======================================================
   15. FINAL LANDSCAPE PHONE & IPAD PORTRAIT POLISH TRACK
   ======================================================= */

/* MICRO-TUNING FOR VERTICAL TABLETS: Locks the iPad portrait button perfectly into the bottom lip cutout */
@media (min-width: 744px) and (max-width: 1024px) and (orientation: portrait) {

    /* 1. Sets up the main container box to act as a stable layout baseline */
    .coloring-card {
        position: relative !important;
        /* Establishes a rock-solid coordinate coordinate zone for the button */
        height: 275px !important;
        min-height: 275px !important;
        padding-bottom: 0px !important;
        /* Wipes out internal padding barriers completely */
    }

    /* 2. Forces your thumbnail image container box to claim the full card canvas space */
    .image-container {
        width: 100% !important;
        height: 100% !important;
        /* Lets the light-blue drawing asset canvas stretch to its intended dimensions */
        margin: 0 !important;
    }

    .image-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    /* 3. THE INTERNAL SHELF LOCK: Pins the button directly into the drawing asset's built-in space */
    .btn-download {
        position: absolute !important;
        /* Unchains the button entirely from container padding flows */

        /* THE VISUAL HIGHER CEILING: Hard-locks the top line exactly where it sits, 
           while letting the expanded depth naturally push downward toward the floor */
        bottom: 8px !important;
        /* Slightly lowered from 12px to absorb the extra expanded height footprint safely */

        /* Keeps the absolute coordinate horizontal center lock running flawlessly */
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
        transform: none !important;

        /* EXPANDS OUTWARD: Increased width scale allows the button edges to spread sideways */
        width: 90% !important;
        /* Stepped up from 86% for broader horizontal presence */
        max-width: 195px !important;
        /* Stepped up from 175px to give it a rich, full desktop footprint feel */

        /* EXPANDS DOWNWARD: Increased height depth grows the 3D bevel downward toward the lower lip edge */
        height: 50px !important;
        /* Stepped up from 44px to make the 3D beveled graphics pop beautifully */

        background-size: 100% 100% !important;
        z-index: 10 !important;
        /* Forcefully floats the button graphic over your drawing previews */
    }
}

/* MICRO-TUNING FOR SIDEWAYS MOBILE PHONES: Minimizes card button vertical squishing */
@media (max-width: 930px) and (max-height: 500px) {

    /* 1. Scales down individual card heights slightly so the box proportions match your 4-column row layout */
    .coloring-card {
        height: 155px !important;
        min-height: 155px !important;
        padding-bottom: 8px !important;
    }

    /* 2. Tightens the thumbnail preview window bounds to leave maximum space for the button below it */
    .image-container {
        height: 85px !important;
        margin-bottom: auto !important;
    }

    .image-container img {
        max-height: 85px !important;
    }

    /* 3. ASSET LOCK: Scales down the blue download link button height so it stops clipping your drawing frames */
    .btn-download {
        width: 100% !important;
        max-width: 110px !important;
        /* Proportional horizontal scale ensures it stays crisp */
        height: 30px !important;
        /* Compresses vertical size layout bounds to prevent character clipping */
        background-size: 100% 100% !important;
        margin: 4px auto 0 auto !important;
    }
}

/* =======================================================
   16. FINAL PHONE PORTRAIT LOGO CENTER-LOCK
   ======================================================= */

/* TARGETS ONLY UPRIGHT MOBILE PHONE VIEWS (Screens 480px and narrower) */
@media (max-width: 480px) {
    .coloring-header-overlap {
        position: absolute !important;
        top: -30px !important;

        /* THE ESCAPE KEY: 
           By forcing left to auto, we completely wipe out the old left: 5% rules.
           This unlocks the alignment so margin: 0 auto can cleanly snap it to the center! */
        left: auto !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 240px !important;
        margin: 0 auto !important;
    }
}

/* =======================================================
   16. IPAD PORTRAIT NAVBAR SPACING ENGINE
   ======================================================= */

/* TARGETS ONLY PORTRAIT TABLETS (Widths: 744px to 1024px) */
@media (min-width: 744px) and (max-width: 1024px) and (orientation: portrait) {

    /* THE GAP CURE: Cuts the excessive mobile top padding in half to pull the hero up flush! */
    #launch-gate {
        padding-top: 45px !important;
    }

    /* 1. RESTORES ROW LAYOUT FLOW - Overrides the vertical mobile stacking trap completely */
    .navbar,
    .navbar.scrolled {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        height: 95px !important;
        min-height: 95px !important;
    }

    /* 2. PRESERVES BASE BRAND LOGO DIMENSIONS */
    .nav-logo,
    .nav-logo img,
    .navbar.scrolled .nav-logo img {
        height: 48px !important;
        /* Locks it back exactly to your clean mobile size baseline */
        width: auto !important;
        position: static !important;
        margin: 0 !important;
        /* Clears out centralizing layout shifts completely */
        transform: none !important;
    }

    /* 3. THE SPACING KEY: Pushes menu links flush to the far right wall edge line */
    .navbar .nav-links,
    .navbar ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        /* Stops navigation menu links from breaking onto multi-line rows */
        align-items: center !important;

        /* The Secret: margin-left auto calculates remaining space and pushes links right */
        margin-left: auto !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;

        gap: 15px !important;
        /* Clean horizontal layout cushion padding between text buttons */
        padding: 0 !important;
    }

    .navbar a {
        font-size: 0.82rem !important;
        /* Trimmed font scale ensures words don't overflow tablet bounds */
        letter-spacing: 0.5px !important;
    }
}