body {
    background-color: #0b1020;
    color: #f2f2f2;
}

a {
    color: #4da3ff;
}

.sr-navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 992px) {
    .sr-navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

@media (max-width: 991.98px) {
    .sr-navbar .dropdown-toggle::after {
        display: none;
    }

    .sr-navbar .dropdown-menu {
        display: block;
        position: static;
        margin-top: .25rem;
        margin-bottom: .5rem;
        margin-left: 1rem;
        border: 0;
        border-left: 2px solid rgba(255, 255, 255, 0.15);
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .sr-navbar .dropdown-menu .dropdown-item {
        padding: .4rem 1rem;
        font-size: .9rem;
        color: rgba(255, 255, 255, 0.7);
    }

    .sr-navbar .dropdown-menu .dropdown-item:hover,
    .sr-navbar .dropdown-menu .dropdown-item:focus {
        color: #fff;
        background-color: rgba(255, 255, 255, 0.08);
    }
}

.sr-brand {
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.sr-brand-logo {
    height: 80px;
    width: auto;
}

.sr-brand-logo--footer {
    height: 64px;
}

.sr-search-icon {
    font-size: 1.1rem;
}

.sr-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    background-color: #05070f;
}

.sr-footer-brand {
    font-size: 1.1rem;
}

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

.sr-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #131b33;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sr-footer-heading {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.85);
}

.sr-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.sr-footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.sr-footer-links a:hover {
    color: #fff;
}

.sr-footer-subtext {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.sr-subscribe-form {
    gap: 0.4rem;
}

.sr-footer-separator {
    border-color: rgba(255, 255, 255, 0.1);
}

.sr-footer-policy-links {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.sr-footer-policy-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.sr-footer-policy-links a:hover {
    color: #fff;
}

/* Everything below styles markup produced by the markdownwebgen shortcodes
   (::: hero, ::: section, ::: carousel, ::: icon-row, ::: about-split, news-*)
   and is namespaced mdwg- so it can be reused/reskinned by other apps. */

/* Sections */

.mdwg-section--a {
    background-color: #0b1020;
}

.mdwg-section--b {
    background-color: #10152a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mdwg-section--play-anywhere {
    background-color: #10152a;
    background-image: url('/images/Backgrounds/sr_phone_tablet_preview.png');
    background-size: cover;
    background-position: center;
    min-height: 560px;
}

.mdwg-section--play-anywhere .mdwg-section-title {
    font-size: 3rem;
}

.mdwg-section--play-anywhere .mdwg-hero-subtitle {
    font-size: 1.35rem;
    max-width: 560px;
}

.mdwg-section--play-anywhere .mdwg-icon-row {
    gap: 2.5rem;
    margin-top: 2rem;
}

.mdwg-section--play-anywhere .mdwg-icon-item {
    font-size: 1.1rem;
    gap: 0.6rem;
}

.mdwg-section--play-anywhere .mdwg-icon-item img {
    width: 56px;
    height: 56px;
}

.mdwg-section--about {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mdwg-section-title {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Hero */

.mdwg-hero {
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mdwg-hero-crest {
    width: 240px;
    height: auto;
}

.mdwg-hero-title {
    font-weight: 800;
    letter-spacing: 0.03em;
    font-size: 2.5rem;
}

.mdwg-hero-title--sm {
    font-size: 2rem;
}

.mdwg-hero-title-accent {
    color: #4da3ff;
}

.mdwg-hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
}

.mdwg-btn-cta {
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Trailer row: give the video more width than the default 50/50 columns split,
   and nudge the text column inward so it isn't flush against the edge. */
@media (min-width: 992px) {
    .mdwg-trailer-row > .col-lg-6:first-child {
        flex: 0 0 42%;
        max-width: 42%;
        padding-left: 2rem;
    }

    .mdwg-trailer-row > .col-lg-6:last-child {
        flex: 0 0 58%;
        max-width: 58%;
    }
}

/* Store badges */

.mdwg-store-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 240px;
}

.mdwg-store-badges img {
    height: 60px;
    width: auto;
}

/* youtube: embed sizing (markdown default caps it at 600px via inline style) */

.container .ratio.ratio-16x9 {
    max-width: 100% !important;
}

/* News cards (markdownwebgen hooks) */

.mdwg-news-grid {
    justify-content: center;
}

.mdwg-news-card {
    display: block;
    color: inherit;
    background-color: #131b33;
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 1rem;
    height: 100%;
    position: relative;
}

.mdwg-news-card:hover {
    background-color: #1b2a4a;
}

.mdwg-news-card--row {
    display: flex;
    height: auto;
    flex: 0 0 auto;
    padding: 1.25rem;
    align-items: center;
    gap: 1.25rem;
}

.mdwg-news-card--row .mdwg-news-title {
    font-size: 1.05rem;
}

.mdwg-news-card--row .mdwg-news-excerpt {
    font-size: 0.95rem;
}

/* Give the pinned hero card less width than the side list so the list's
   thumbnails can be bigger, and the pinned image reads less oversized. */
@media (min-width: 992px) {
    .mdwg-news-latest > .col-lg-6:first-child {
        flex: 0 0 38%;
        max-width: 38%;
    }

    .mdwg-news-latest > .col-lg-6:last-child {
        flex: 0 0 62%;
        max-width: 62%;
        justify-content: space-between;
    }
}

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

.mdwg-news-image--thumb {
    width: 220px;
    height: 140px;
    object-fit: cover;
    margin-bottom: 0;
    flex-shrink: 0;
}

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

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

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

.mdwg-news-card--pinned .mdwg-news-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mdwg-news-card--pinned .mdwg-news-date::after {
    content: "Read More \2192";
    background-color: #2f6fed;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.375rem;
    white-space: nowrap;
}

.mdwg-news-card--row::after,
.mdwg-news-card--grid::after,
.mdwg-carousel-tile::after {
    content: "\2192";
    color: #4da3ff;
    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-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);
}

@media (max-width: 575.98px) {
    .mdwg-news-card--row {
        display: block;
        padding: 0.75rem;
    }

    .mdwg-news-image--thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        margin-bottom: 0.75rem;
    }

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

    .mdwg-news-card--row::after {
        display: none;
    }
}

.mdwg-feature-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.mdwg-feature-thumb {
    width: 140px;
    aspect-ratio: 7 / 5;
    object-fit: cover;
    border-right: 2px solid rgba(255, 255, 255, 0.18);
}

@media (min-width: 576px) {
    .mdwg-feature-row {
        height: 7.75rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .mdwg-feature-row h4 {
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .mdwg-feature-row {
        display: block;
    }

    .mdwg-feature-thumb {
        width: 100%;
        height: auto;
        border-right: 0;
        border-bottom: 2px solid rgba(255, 255, 255, 0.18);
    }

    .mdwg-buy-card img {
        max-height: 220px;
        width: auto;
    }
}

/* Carousel */

.mdwg-carousel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mdwg-carousel-track {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    flex: 1;
}

.mdwg-carousel-track::-webkit-scrollbar {
    display: none;
}

.mdwg-carousel-tile {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.mdwg-carousel-tile .mdwg-news-image {
    aspect-ratio: 1 / 1;
}

.mdwg-carousel-arrow {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: #131b33;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdwg-carousel-arrow:hover {
    background-color: #1b2a4a;
}

/* Generic placeholder box */

.mdwg-placeholder-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1b2a4a;
    color: rgba(255, 255, 255, 0.35);
    border-radius: 0.5rem;
}


.mdwg-placeholder-box--product {
    aspect-ratio: 3 / 4;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.mdwg-product-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: contain;
    background-color: #05070f;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.5rem;
    padding: 0.75rem;
    box-sizing: border-box;
    margin: 0 auto 0.75rem;
}

/* Icon row (Play Anywhere platform icons) */

.mdwg-icon-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.mdwg-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.mdwg-icon-item img {
    width: 32px;
    height: 32px;
}

.mdwg-rule-icon img {
    height: 150px;
    width: auto;
    margin: 0 auto 0.75rem;
    display: block;
}

/* Products */

.mdwg-product-card {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: inherit;
}

.mdwg-product-card:hover .mdwg-placeholder-box--product {
    background-color: #24345e;
}

.mdwg-product-card .card-body {
    padding: 0;
}

.mdwg-product-name {
    font-weight: 600;
    font-size: 0.85rem;
}

/* About split */

.mdwg-about-image {
    position: relative;
    min-height: 420px;
}

.mdwg-about-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 55%, #0b1020 100%);
}

@media (max-width: 991.98px) {
    .mdwg-about-image::after {
        background: linear-gradient(to bottom, transparent 55%, #0b1020 100%);
    }
}

.mdwg-about-content {
    padding: 3rem;
    text-align: left;
}

.mdwg-about-content .mdwg-hero-subtitle {
    max-width: 480px;
}

/* News article page */

.mdwg-news-article {
    padding-top: 2rem;
}

.mdwg-news-article img {
    border-radius: 1.7rem;
}

.mdwg-news-article .mdwg-news-title {
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
}

.mdwg-news-byline {
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1.05rem);
}

.mdwg-news-article-excerpt {
    margin-top: 1rem;
    font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.1rem);
}

.mdwg-table-wrap {
    margin-top: 2.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.mdwg-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.mdwg-table-wrap::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.mdwg-table-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.mdwg-table-wrap table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: clamp(0.7rem, 0.55rem + 0.6vw, 1rem);
}

.mdwg-table-wrap th,
.mdwg-table-wrap td {
    padding: 0.5rem 0.6rem;
    border: none;
    text-align: left;
}

@media (min-width: 576px) {
    .mdwg-table-wrap th,
    .mdwg-table-wrap td {
        padding: 0.75rem 1rem;
    }
}

.mdwg-table-wrap thead th {
    background-color: #1b2a4a;
    font-weight: 700;
}

.mdwg-table-wrap tbody tr:nth-child(odd) {
    background-color: #131b33;
}

.mdwg-table-wrap tbody tr:nth-child(even) {
    background-color: #0b1020;
}

/* Paginated table controls - matches /card-gallery's pill/circle button style */

.mdwg-paginated-table__size {
    background-color: rgba(32, 57, 106, 0.55);
    border: 1px solid #1d5a78;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
}

.mdwg-paginated-table__size:focus {
    border-color: #00d7fd;
    box-shadow: 0 0 0 1px #00d7fd;
    outline: none;
}

.mdwg-paginated-table__pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.mdwg-paginated-table__page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #1d5a78;
    background-color: rgba(32, 57, 106, 0.55);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdwg-paginated-table__page-btn:hover:not(:disabled) {
    border-color: #00d7fd;
}

.mdwg-paginated-table__page-btn.active {
    background-color: #00d7fd;
    border-color: #00d7fd;
    color: #0b1020;
}

.mdwg-paginated-table__page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.mdwg-paginated-table__page-ellipsis {
    color: rgba(255, 255, 255, 0.5);
    padding: 0 0.25rem;
}

.mdwg-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.mdwg-card-grid > hr {
    display: none;
}

.mdwg-card-grid-item,
.mdwg-card-grid > p {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdwg-card-img,
.mdwg-card-grid-item img,
.mdwg-card-grid > p img {
    display: block;
    width: auto;
    height: clamp(180px, 24vw, 320px);
    max-width: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    outline: 3px solid #ffffff;
    outline-offset: -3px;
}

.mdwg-card-img {
    margin: 2.5rem auto 0;
}

@media (max-width: 575px) {
    .mdwg-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 576px) {
    .mdwg-card-grid:has(> p:nth-of-type(3)):not(:has(> p:nth-of-type(4))) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.mdwg-btn-next-article {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #1b2a4a;
    color: #ffffff;
    font-weight: 700;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
}

.mdwg-btn-next-article:hover {
    background-color: #24345e;
    color: #ffffff;
}

/* Command Decks */

.mdwg-hero-tint {
    background-color: rgba(77, 163, 255, 0.08);
    border-bottom: 1px solid rgba(77, 163, 255, 0.15);
}

.mdwg-command-card {
    background: none;
    border: none;
    height: 100%;
    text-align: left;
}

.mdwg-command-card .card-body {
    padding: 0;
}

.mdwg-command-deck-img {
    max-width: 160px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* Rise of Empire */

.mdwg-roe-subnav {
    background-color: #00457A;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 2rem;
}

.mdwg-roe-subnav p {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.5rem;
    margin: 0;
}

.mdwg-roe-subnav a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.mdwg-roe-subnav a:hover {
    color: #EDF000;
}

.mdwg-roe-subnav a strong {
    color: #EDF000;
}

.mdwg-roe-spoiler {
    background-color: #131b33;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.mdwg-roe-spoiler summary {
    cursor: pointer;
    font-weight: 700;
}

.mdwg-roe-spoiler[open] summary {
    margin-bottom: 0.5rem;
}

.mdwg-roe-spoiler ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.mdwg-newsletter-card {
    background-color: #131b33;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 2rem;
    width: 560px;
    max-width: 100%;
    margin: 0 auto;
}

.mdwg-newsletter-title {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.mdwg-newsletter-required {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

#mc_embed_signup .asterisk {
    color: #ff6b6b;
}

.mdwg-newsletter-field {
    margin-bottom: 1rem;
}

.mdwg-newsletter-field label {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.mdwg-newsletter-gdpr {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.mdwg-newsletter-gdpr label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.mdwg-newsletter-gdpr a {
    color: #4da3ff;
}

.mdwg-newsletter-gdpr .mc_fieldset {
    border: none;
    padding: 0;
    margin: 0.75rem 0;
}

.mdwg-newsletter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400 !important;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.mdwg-newsletter-checkbox input[type=checkbox] {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    accent-color: #4da3ff;
}

.mdwg-newsletter-responses .response {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

#mce-error-response {
    color: #ff6b6b;
}

#mce-success-response {
    color: #6ee787;
}

.mdwg-newsletter-submit-row {
    margin-top: 1.25rem;
}

#mc_embed_signup div.mce_inline_error {
    background-color: rgba(255, 107, 107, 0.15) !important;
    color: #ff6b6b !important;
    border: 1px solid rgba(255, 107, 107, 0.4) !important;
    border-radius: 0.375rem !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    padding: 0.4rem 0.75rem !important;
    margin: 0.35rem 0 0.75rem 0 !important;
}

#mc_embed_signup input.mce_inline_error {
    border-color: #ff6b6b !important;
}

