body {
    font-family: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    background:
        linear-gradient(rgba(2, 4, 10, 0.6), rgba(2, 4, 10, 0.6)),
        url('/images/Backgrounds/bg-blue-texture.webp') top center / cover no-repeat,
        #0a0e17;
    color: #f2f2f2;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Sticky footer: the footer always sits at the true bottom of the viewport,
   even when a page's content is too short to fill it. */

.wwg-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wwg-page-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.wwg-page-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 992px) {
    .navbar-nav .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease,
            visibility 0s linear 0.2s, pointer-events 0s linear 0.2s;
        margin-top: 0;
        min-width: 230px;
        padding: 0.35rem 0;
        background:
            linear-gradient(rgba(8, 11, 16, 0.7), rgba(8, 11, 16, 0.78)),
            url('/images/Backgrounds/bg-wooden-table.webp') top left / 220px 220px repeat;
        border: 1px solid rgba(46, 163, 242, 0.3);
        border-top: 2px solid #2ea3f2;
        border-radius: 0 0 0.85rem 0.85rem;
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.55);
    }

    .navbar-nav .dropdown:hover > .dropdown-menu,
    .navbar-nav .dropdown-submenu:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition: opacity 0.2s ease, transform 0.2s ease,
            visibility 0s linear 0s, pointer-events 0s linear 0s;
    }

    .navbar-nav > .nav-item.dropdown > .dropdown-menu {
        right: 0;
        left: auto;
    }

    .navbar-nav .dropdown-submenu {
        position: relative;
    }

    .navbar-nav .dropdown-submenu > .dropdown-menu {
        top: -0.4rem;
        right: 100%;
        left: auto;
        margin-top: 0;
        margin-right: -2px;
        transform: translateX(8px);
        border-radius: 0.85rem;
        border-top: 1px solid rgba(46, 163, 242, 0.3);
        border-right: 2px solid #2ea3f2;
    }

    .navbar-nav .dropdown-submenu:hover > .dropdown-menu {
        transform: translateX(0);
    }

    .navbar-nav .dropdown-item {
        position: relative;
        padding: 0.5rem 1rem 0.5rem 1.6rem;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .navbar-nav .dropdown-item::before {
        content: "";
        position: absolute;
        left: 0.7rem;
        top: 50%;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #2ea3f2;
        transform: translateY(-50%) scale(0);
        transition: transform 0.15s ease;
    }

    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: rgba(46, 163, 242, 0.14);
        color: #fff;
    }

    .navbar-nav .dropdown-item:hover::before,
    .navbar-nav .dropdown-item:focus::before {
        transform: translateY(-50%) scale(1);
    }

    .navbar-nav .dropdown-menu > li:last-child > .dropdown-item {
        border-bottom-left-radius: 0.7rem;
        border-bottom-right-radius: 0.7rem;
    }

    .navbar-nav .dropdown-submenu > .dropdown-menu > li:first-child > .dropdown-item {
        border-top-left-radius: 0.7rem;
        border-top-right-radius: 0.7rem;
    }

    .navbar-nav .dropdown-toggle::after {
        transition: transform 0.2s ease;
    }

    .navbar-nav .dropdown:hover > .dropdown-toggle::after {
        transform: rotate(-180deg);
    }

    .navbar-nav .dropdown-submenu:hover > .dropdown-toggle::after {
        transform: rotate(-90deg);
    }
}

@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static;
        display: block;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding-left: 0;
        margin: 0;
    }

    .navbar-nav .dropdown-submenu > .dropdown-menu {
        padding-left: 1rem;
    }

    .navbar-nav > .nav-item.dropdown {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0.75rem 0;
    }

    .navbar-nav > .nav-item.dropdown:last-child {
        border-bottom: 0;
    }

    .navbar-nav .nav-link.dropdown-toggle {
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-size: 0.9rem;
        color: #2ea3f2;
        padding-bottom: 0.5rem;
        margin-bottom: 0.25rem;
    }

    .navbar-nav .nav-link.dropdown-toggle::after,
    .navbar-nav .dropdown-item.dropdown-toggle::after {
        display: none;
    }

    .navbar-nav .dropdown-item {
        padding: 0.55rem 1rem;
        border-radius: 0.4rem;
        font-size: 0.95rem;
    }

    .navbar-nav .dropdown-item.dropdown-toggle {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding-top: 0.75rem;
    }

    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus,
    .navbar-nav .dropdown-item:active {
        background-color: rgba(46, 163, 242, 0.14);
        color: #fff;
    }
}

/* News cards (markdownwebgen hooks) */

.mdwg-news-card {
    display: block;
    color: inherit;
    background-color: #0c2840;
    border: 1px solid #527092;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.mdwg-news-card:hover {
    background-color: #123354;
    border-color: #6fa0d0;
}

.mdwg-news-card-body {
    padding: 1rem;
}

.mdwg-news-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
    display: block;
}

.mdwg-news-title {
    font-weight: 700;
}

.mdwg-news-card--grid .mdwg-news-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: calc(1.3em * 2);
}

.mdwg-news-excerpt {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.mdwg-news-card--grid .mdwg-news-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: calc(1.35em * 3);
}

.mdwg-news-date {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
}

.mdwg-news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.wwg-news-arrow {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(77, 163, 255, 0.15);
    color: #4da3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mdwg-news-card:hover .wwg-news-arrow {
    background-color: #4da3ff;
    color: #0c2840;
    transform: translateX(3px);
}

/* Outline download buttons (matches the original site's WordPress button style) */

.wwg-download-btn {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.4rem 1.5rem 0.4rem 0.8rem;
    border: 2px solid #2ea3f2;
    border-radius: 3px;
    color: #2ea3f2 !important;
    background-color: transparent;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.wwg-download-btn:hover {
    border-color: transparent;
    background-color: rgba(255, 255, 255, 0.08);
    color: #2ea3f2 !important;
    padding: 0.4rem 2rem 0.4rem 0.8rem;
}

.wwg-download-btn::after {
    content: "\2192";
    display: inline-block;
    opacity: 0;
    margin-left: 0;
    transition: all 0.2s ease;
}

.wwg-download-btn:hover::after {
    opacity: 1;
    margin-left: 0.5rem;
}

/* Header */

.wwg-navbar-logo {
    height: 44px;
    width: 44px;
    object-fit: contain;
    margin-left: 2rem;
}

.wwg-navbar .nav-link.dropdown-toggle {
    color: #2ea3f2;
    transition: color 0.2s ease;
}

.wwg-navbar .nav-link.dropdown-toggle:hover,
.wwg-navbar .nav-link.dropdown-toggle:focus,
.wwg-navbar .dropdown-item:hover,
.wwg-navbar .dropdown-item:focus,
.wwg-navbar .dropdown.show > .nav-link.dropdown-toggle {
    color: #fff;
}

/* Buttons */

.wwg-btn {
    background-color: #007de2;
    border: 2px solid #8dc9fd;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.wwg-btn:hover,
.wwg-btn:focus {
    background-color: #0068bd;
    border-color: #8dc9fd;
    color: #fff;
}

/* Hero */

html {
    scroll-behavior: smooth;
}

.wwg-hero {
    position: relative;
    min-height: 88vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 3rem 1rem;
    align-items: flex-start;
    overflow: hidden;
}

.wwg-hero-content {
    z-index: 1;
    padding-top: 8vh;
}

.wwg-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%),
        rgba(0, 0, 0, 0.4);
}

.wwg-hero-logo {
    max-width: 380px;
    width: 70%;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.65));
}

.wwg-hero-tagline {
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: clamp(1.6rem, 4vw, 2.75rem);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    margin: 0 0 2.5rem;
}

.wwg-hero-scroll {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(46, 163, 242, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin: 0 auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.wwg-hero-scroll:hover {
    background-color: #2ea3f2;
    color: #fff;
    transform: translateY(3px);
}

/* Section heading */

.wwg-section-heading {
    font-weight: 700;
}

.wwg-section-desc {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Featured news card (home page) */

.mdwg-news-card--featured {
    background-color: #0c2840;
    border: 1px solid #527092;
    border-radius: 0.5rem;
    overflow: hidden;
}

.mdwg-news-featured-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 50%;
}

.mdwg-news-card--featured .mdwg-news-title {
    font-size: 1.5rem;
}

.mdwg-news-card--featured .mdwg-news-excerpt {
    -webkit-line-clamp: 4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mdwg-news-image--featured {
    flex: 1 1 50%;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 0;
    border-radius: 0;
}

@media (min-width: 992px) {
    .mdwg-news-image--featured {
        aspect-ratio: auto;
        max-width: 50%;
    }
}

.wwg-learn-more {
    color: #4da3ff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

/* Game cards (home page) */

.wwg-game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid #75a1d3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wwg-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.wwg-game-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
}

.wwg-game-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wwg-game-card-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(
        135deg,
        color-mix(in srgb, var(--wwg-game-color, #1c3f91) 100%, white 22%) 45%,
        var(--wwg-game-color, #1c3f91) 58%,
        var(--wwg-game-color-2, var(--wwg-game-color, #1c3f91)) 82%,
        color-mix(in srgb, var(--wwg-game-color-2, var(--wwg-game-color, #1c3f91)) 100%, black 14%) 100%
    );
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent calc(100% - 132px), #000 calc(100% - 92px), #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0, transparent calc(100% - 132px), #000 calc(100% - 92px), #000 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.wwg-game-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;
    mix-blend-mode: overlay;
    background-image: url("/images/Backgrounds/bg-blue-texture.webp");
    background-size: 220px 220px;
    background-repeat: repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent calc(100% - 132px), #000 calc(100% - 92px), #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0, transparent calc(100% - 132px), #000 calc(100% - 92px), #000 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.wwg-game-card-info {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.6rem 0.6rem 0.75rem;
    text-align: center;
    transform: translateY(-10px);
}

.wwg-game-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.3em;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.9rem;
    line-height: 1.15;
    margin-bottom: 0.1rem;
}

.wwg-game-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.7rem;
    line-height: 1.2;
}

/* Footer */

.wwg-footer {
    background: url('/images/Backgrounds/bg-footer.webp') center / cover repeat;
}

.wwg-footer-logo {
    height: 96px;
    width: auto;
}

.wwg-social-icons {
    display: flex;
    gap: 0.75rem;
}

.wwg-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #3e5f90;
    color: #fff;
    font-size: 1.1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.wwg-social-icon:hover {
    transform: scale(1.12);
    background-color: #2ea3f2;
    color: #fff;
}

.wwg-footer-separator {
    border-color: rgba(255, 255, 255, 0.15);
}

.wwg-section-divider {
    border: 0;
    border-top: 3px solid rgba(255, 255, 255, 0.35);
    opacity: 1;
}

.wwg-faq-content h3,
.wwg-faq-content h4 {
    margin-top: 3rem;
}

/* Subscribe section */

.wwg-subscribe {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    background-color: #0a0e17;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.wwg-subscribe::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(10, 40, 90, 0.45);
}

.wwg-subscribe-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 3rem 1rem;
}

.wwg-subscribe-heading {
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: #fff;
}

.wwg-subscribe-text {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: #fff;
}

/* Game info and assets (retailer/press shortcode) */

.wwg-game-assets-logo {
    width: 100%;
    display: block;
}

/* Retailer resource cards */

.wwg-retailer-card-media {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: contain;
}

/* Game product pages */

.wwg-quicklink-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid #75a1d3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wwg-quicklink-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.wwg-product-card-img {
    width: 100%;
    height: 360px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.75rem;
}

.wwg-product-title {
    min-height: 3.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.wwg-price-tag {
    color: #f2c94c;
    font-weight: 800;
    font-size: 1.3rem;
}

.wwg-subscribe-icon {
    max-width: 120px;
    width: 32%;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* Brown/wood button variant (used on pages with a warmer, wooden theme) */

.wwg-btn-brown {
    background-color: #6b4423;
    border: 2px solid #d4a44c;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.wwg-btn-brown:hover,
.wwg-btn-brown:focus {
    background-color: #543317;
    border-color: #d4a44c;
    color: #fff;
}

/* Elemystic button variant (matches the original site's gold-on-blue styling) */

.wwg-btn-elemystic {
    background-color: #096e96;
    border: 2px solid #dbc500;
    color: #edd100;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.wwg-btn-elemystic:hover,
.wwg-btn-elemystic:focus {
    background-color: #075a7a;
    border-color: #dbc500;
    color: #edd100;
}

/* Locus button variant (matches the original site's blue-on-black styling) */

.wwg-btn-locus {
    background-color: #000000;
    border: 2px solid #0c71c3;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.wwg-btn-locus:hover,
.wwg-btn-locus:focus {
    background-color: #1a1a1a;
    border-color: #0c71c3;
    color: #fff;
}

/* Kapow button variant (bold comic-book yellow to match the box art) */

.wwg-btn-kapow {
    background-color: #f7c530;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    box-shadow: 3px 3px 0 #1a1a1a;
}

.wwg-btn-kapow:hover,
.wwg-btn-kapow:focus {
    background-color: #ffd84d;
    border-color: #1a1a1a;
    color: #1a1a1a;
}

/* Wacky Wizard Games button variant (matches the original site's pink/magenta styling) */

.wwg-btn-wacky {
    background-color: #ed1590;
    border: 2px solid #990c59;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.wwg-btn-wacky:hover,
.wwg-btn-wacky:focus {
    background-color: #c8127a;
    border-color: #990c59;
    color: #fff;
}

/* Caution Signs button variant (hazard-sign yellow/black) */

.wwg-btn-caution-signs {
    background-color: #ffc72c;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.wwg-btn-caution-signs:hover,
.wwg-btn-caution-signs:focus {
    background-color: #e6b325;
    border-color: #1a1a1a;
    color: #1a1a1a;
}

/* Trademarks page */

.wwg-trademark-icon {
    height: 3em;
    width: auto;
    vertical-align: middle;
    margin-right: 0.25em;
}

/* Wooden platform/badge section */

.wwg-wood-section {
    background:
        linear-gradient(rgba(20, 12, 6, 0.55), rgba(20, 12, 6, 0.55)),
        url('/images/Backgrounds/bg-wooden-table.webp') center / 220px 220px repeat;
    border-top: 3px solid #d4a44c;
    border-bottom: 3px solid #d4a44c;
}

.wwg-wood-item {
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.wwg-wood-item:last-child {
    border-right: 0;
}

@media (max-width: 767.98px) {
    .wwg-wood-item {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
        padding-bottom: 1.5rem;
    }

    .wwg-wood-item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
}

