
/* ==================================================
   APP ZONE — PROFESSIONAL STORE THEME
   Microsoft Store-inspired, not an exact copy
================================================== */

:root {
    --az-bg: #0b1118;
    --az-surface: #111b26;
    --az-card: #152333;
    --az-card-hover: #20364a;
    --az-blue: #a8d9ff;
    --az-blue-strong: #63b9ff;
    --az-blue-wash: rgba(99, 185, 255, 0.13);
    --az-border: rgba(174, 214, 246, 0.14);
    --az-text: #f5f9ff;
    --az-muted: #a9b8c8;
    --az-radius: 18px;
    --az-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--az-bg);
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(
            ellipse at 80% 0%,
            rgba(49, 113, 163, 0.13),
            transparent 38%
        ),
        var(--az-bg);
    color: var(--az-text);
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body, button, input {
    font-family: "Segoe UI", Inter, Arial, sans-serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

/* ==================================================
   SIDEBAR
================================================== */

.sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: 76px !important;
    height: 100dvh !important;
    padding: 0 9px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 2001 !important;
    background: rgba(14, 24, 35, 0.97) !important;
    border-right: 1px solid var(--az-border);
    backdrop-filter: blur(22px);
    transition: width 260ms ease;
}

.sidebar.active {
    width: 258px !important;
}

.menu-button {
    position: sticky;
    top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 10px 5px 12px;
    z-index: 2;
    color: var(--az-text);
    background: var(--az-blue-wash);
    border: 1px solid var(--az-border);
    border-radius: 14px;
    font-size: 27px;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

.menu-button:hover {
    background: rgba(99, 185, 255, 0.24);
    transform: translateY(-1px);
}

.sidebar .menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar .menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar .menu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 49px;
    margin: 0;
    padding: 0 15px;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
    color: #c8d6e5;
    border: 1px solid transparent;
    border-radius: 12px;
    transition:
        background 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
}

.sidebar .menu a:hover {
    color: #fff;
    background: rgba(159, 211, 255, 0.10);
    border-color: rgba(159, 211, 255, 0.10);
}

.sidebar .menu a.active,
.sidebar .menu a[aria-current="page"] {
    color: #eaf6ff;
    background: rgba(99, 185, 255, 0.17);
    border-color: rgba(144, 207, 255, 0.2);
}

.sidebar .menu a.active::before,
.sidebar .menu a[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 3px;
    border-radius: 4px;
    background: var(--az-blue);
}

.sidebar .icon {
    display: inline-flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    width: 22px;
    font-size: 19px;
}

.sidebar .text {
    display: inline-block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-5px);
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        visibility 180ms ease;
}

.sidebar.active .text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Darken the page while the navigation is expanded */

.sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(2, 7, 13, 0.72);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(3px);
    transition: opacity 220ms ease, visibility 220ms ease;
}

body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ==================================================
   TOP HEADER AND SEARCH
================================================== */

header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 76px !important;
    height: 66px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 0 30px !important;
    z-index: 1000 !important;
    background: rgba(11, 17, 24, 0.83) !important;
    border-bottom: 1px solid rgba(174, 214, 246, 0.09);
    backdrop-filter: blur(20px);
}

header > a {
    color: var(--az-text);
    font-size: 21px;
    font-weight: 750;
    letter-spacing: 1.4px;
    text-decoration: none;
    white-space: nowrap;
}

header input[type="search"],
header input[type="text"],
header input:not([type]) {
    width: min(440px, 48vw);
    height: 42px;
    padding: 0 17px;
    color: var(--az-text);
    background: rgba(150, 194, 230, 0.08);
    border: 1px solid var(--az-border);
    border-radius: 12px;
    outline: none;
    transition: border-color 180ms ease, background 180ms ease;
}

header input:focus {
    background: rgba(150, 194, 230, 0.12);
    border-color: rgba(134, 202, 255, 0.65);
}

header input::placeholder {
    color: #9eafc0;
}

/* ==================================================
   MAIN PAGE LAYOUT
================================================== */

.main-content {
    position: relative;
    min-width: 0;
    min-height: 100vh;
    margin-left: 76px !important;
    padding: 94px 34px 55px !important;
    transition: none;
}

.app-zone {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* ==================================================
   FEATURED BANNERS
================================================== */

.featured-apps {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(230px, 0.9fr);
    grid-template-rows: repeat(2, minmax(155px, 1fr));
    gap: 18px;
    margin-bottom: 45px;
}

.featured-card {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 170px;
    overflow: hidden;
    isolation: isolate;
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #1b3044, #101a26);
    border: 1px solid var(--az-border);
    border-radius: 21px;
    box-shadow: var(--az-shadow);
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.featured-main {
    grid-row: 1 / 3;
    min-height: 355px;
}

.featured-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 550ms cubic-bezier(.2, .7, .2, 1);
}

.featured-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(5, 12, 20, 0.91) 0%,
        rgba(5, 12, 20, 0.58) 46%,
        rgba(5, 12, 20, 0.06) 100%
    );
}

.featured-small::after {
    background: linear-gradient(
        0deg,
        rgba(5, 12, 20, 0.9) 0%,
        rgba(5, 12, 20, 0.28) 65%,
        rgba(5, 12, 20, 0.04) 100%
    );
}

.featured-card:hover {
    transform: translateY(-4px);
    border-color: rgba(164, 216, 255, 0.48);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

.featured-card:hover img {
    transform: scale(1.045);
}

.featured-info {
    position: absolute;
    right: 25px;
    bottom: 26px;
    left: 25px;
    max-width: 490px;
}

.featured-info h1,
.featured-info h2,
.featured-info h3 {
    margin: 0 0 9px;
    color: white;
    font-size: clamp(22px, 2.5vw, 37px);
    line-height: 1.12;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.featured-small .featured-info {
    right: 19px;
    bottom: 18px;
    left: 19px;
}

.featured-small .featured-info h2,
.featured-small .featured-info h3 {
    font-size: clamp(18px, 1.6vw, 24px);
}

.featured-info p {
    margin: 0 0 14px;
    max-width: 430px;
    color: #d1dfed;
    font-size: 14px;
    line-height: 1.6;
}

.app-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 17px;
    color: #071522;
    background: var(--az-blue);
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 180ms ease, transform 180ms ease;
}

.featured-card:hover .app-action {
    background: #d4edff;
    transform: translateY(-1px);
}

/* ==================================================
   SECTION HEADINGS
================================================== */

.games-heading {
    margin: 18px 0 27px;
}

.games-heading h1 {
    margin: 0 0 8px;
    color: var(--az-text);
    font-size: clamp(27px, 3vw, 37px);
    font-weight: 750;
    letter-spacing: -1px;
}

.games-heading p {
    margin: 0;
    color: var(--az-muted);
    font-size: 15px;
    line-height: 1.6;
}

.game-section {
    min-width: 0;
    margin: 0 0 43px;
}

.game-section > h2 {
    margin: 0 0 18px;
    color: var(--az-text);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* ==================================================
   APP AND GAME CARDS
================================================== */

.game-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 17px;
    align-items: stretch;
}

.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    color: var(--az-text);
    text-decoration: none;
    background:
        linear-gradient(
            145deg,
            rgba(108, 180, 235, 0.09),
            transparent 60%
        ),
        var(--az-card);
    border: 1px solid var(--az-border);
    border-radius: var(--az-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.10);
    transition:
        transform 220ms ease,
        background 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.game-card:hover {
    transform: translateY(-5px);
    background:
        linear-gradient(
            145deg,
            rgba(132, 203, 255, 0.17),
            transparent 70%
        ),
        var(--az-card-hover);
    border-color: rgba(155, 211, 255, 0.45);
    box-shadow: 0 15px 32px rgba(0, 0, 0, 0.25);
}

.game-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 0.83;
    object-fit: cover;
    background: #1b2938;
    transition: transform 350ms ease, filter 350ms ease;
}

.game-card:hover img {
    transform: scale(1.035);
    filter: brightness(1.06);
}

.game-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 15px;
}

.game-info h3,
.game-info h4 {
    margin: 0;
    color: #f3f8ff;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 650;
}

.game-info p {
    margin: 0;
    color: var(--az-muted);
    font-size: 12px;
    line-height: 1.5;
}

.game-info .app-action {
    margin-top: auto;
}

/* Other common card classes used on existing pages */

.app-card {
    color: var(--az-text);
    background: var(--az-card);
    border: 1px solid var(--az-border);
    border-radius: var(--az-radius);
    transition: transform 200ms ease, border-color 200ms ease;
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: rgba(155, 211, 255, 0.45);
}

/* ==================================================
   GENERAL CONTROLS AND SCROLLBARS
================================================== */

button,
input,
select,
textarea {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--az-blue);
    outline-offset: 3px;
}

::selection {
    color: #061321;
    background: var(--az-blue);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0b1118;
}

::-webkit-scrollbar-thumb {
    background: #304458;
    border: 2px solid #0b1118;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #52799a;
}

/* ==================================================
   RESPONSIVE LAYOUT
================================================== */

@media (min-width: 1500px) {
    .game-row {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .main-content {
        padding-right: 45px !important;
        padding-left: 45px !important;
    }
}

@media (max-width: 1150px) {
    .game-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .featured-apps {
        grid-template-columns: minmax(0, 1.4fr) minmax(210px, 0.9fr);
    }

    .main-content {
        padding-right: 23px !important;
        padding-left: 23px !important;
    }
}

@media (max-width: 800px) {
    header {
        gap: 12px;
        padding: 0 15px !important;
    }

    header > a {
        font-size: 17px;
        letter-spacing: 0.8px;
    }

    header input[type="search"],
    header input[type="text"],
    header input:not([type]) {
        width: min(330px, 48vw);
    }

    .featured-apps {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 280px 165px;
        gap: 12px;
    }

    .featured-main {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 280px;
    }

    .featured-small {
        min-height: 165px;
    }

    .game-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 13px;
    }

    .game-info {
        padding: 12px;
    }
}

@media (max-width: 540px) {
    header {
        left: 70px !important;
        height: 60px !important;
        padding: 0 10px !important;
    }

    header > a {
        font-size: 14px;
        letter-spacing: 0.5px;
    }

    header input[type="search"],
    header input[type="text"],
    header input:not([type]) {
        width: 45%;
        min-width: 0;
        height: 38px;
        padding: 0 10px;
        font-size: 12px;
    }

    .sidebar {
        width: 70px !important;
    }

    .sidebar.active {
        width: min(258px, 86vw) !important;
    }

    .main-content {
        margin-left: 70px !important;
        padding: 79px 13px 35px !important;
    }

    .featured-apps {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 250px 145px;
        gap: 9px;
        margin-bottom: 32px;
    }

    .featured-main {
        min-height: 250px;
    }

    .featured-card {
        border-radius: 14px;
    }

    .featured-info {
        right: 14px;
        bottom: 15px;
        left: 14px;
    }

    .featured-info h1,
    .featured-info h2,
    .featured-info h3 {
        font-size: 20px;
    }

    .featured-info p {
        font-size: 12px;
    }

    .featured-small .featured-info h2,
    .featured-small .featured-info h3 {
        font-size: 15px;
    }

    .app-action {
        min-height: 33px;
        padding: 0 12px;
        font-size: 11px;
    }

    .games-heading h1 {
        font-size: 26px;
    }

    .game-section > h2 {
        font-size: 19px;
    }

    .game-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .game-card {
        border-radius: 13px;
    }

    .game-info {
        gap: 5px;
        padding: 10px;
    }

    .game-info h3,
    .game-info h4 {
        font-size: 13px;
    }

    .game-info p {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ==========================================
   APP ZONE — STORE-STYLE HERO CAROUSEL
========================================== */

.az-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: clamp(300px, 38vw, 475px);
    min-height: 300px;
    overflow: hidden;
    margin: 0 0 38px;
    background: #172434;
    border: 1px solid rgba(205, 229, 249, 0.15);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

/* Each slide fills the same hero frame */

.az-hero-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 450ms ease, visibility 450ms ease;
}

.az-hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Let the artwork remain the main visual */

.az-hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 5s ease;
}

.az-hero-slide.is-active .az-hero-image {
    transform: scale(1.035);
}

/* Restrained gradient on the text side only */

.az-hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(9, 19, 31, 0.78) 0%,
        rgba(9, 19, 31, 0.60) 27%,
        rgba(9, 19, 31, 0.24) 48%,
        rgba(9, 19, 31, 0.02) 72%
    );
}

/* Text placement and typography */

.az-hero-copy {
    position: absolute;
    top: 50%;
    left: clamp(25px, 4vw, 58px);
    width: min(440px, 57%);
    transform: translateY(-50%);
    color: #fff;
}

.az-hero-eyebrow {
    display: block;
    margin-bottom: 13px;
    color: #e0efff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.az-hero-copy h1,
.az-hero-copy h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(28px, 3.3vw, 43px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1.1px;
    text-wrap: balance;
}

.az-hero-copy p {
    max-width: 340px;
    margin: 0 0 21px;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 500;
    line-height: 1.6;
}

/* Clean, light action button */

.az-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 41px;
    padding: 0 21px;
    color: #192635;
    background: #f4f8fc;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition:
        background 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.az-hero-button:hover {
    color: #102033;
    background: #dceeff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

/* Subtle circular carousel controls */

.az-hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0 0 3px;
    color: #fff;
    background: rgba(15, 24, 37, 0.83);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.18);
    font-size: 31px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 180ms ease, transform 180ms ease;
}

.az-hero-arrow:hover {
    background: rgba(22, 40, 59, 0.98);
    transform: translateY(-50%) scale(1.06);
}

.az-hero-prev {
    left: 12px;
}

.az-hero-next {
    right: 12px;
}

/* Small pagination indicators */

.az-hero-dots {
    position: absolute;
    bottom: 17px;
    left: 27px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.az-hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    background: rgba(255, 255, 255, 0.56);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: width 200ms ease, background 200ms ease;
}

.az-hero-dots button.is-active {
    width: 23px;
    background: #f5f9ff;
    border-radius: 8px;
}

/* Keyboard focus */

.az-hero-arrow:focus-visible,
.az-hero-dots button:focus-visible,
.az-hero-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Tablet */

@media (max-width: 800px) {
    .az-hero {
        height: 350px;
        min-height: 300px;
        border-radius: 15px;
    }

    .az-hero-copy {
        width: min(410px, 72%);
    }

    .az-hero-slide::after {
        background: linear-gradient(
            90deg,
            rgba(9, 19, 31, 0.78) 0%,
            rgba(9, 19, 31, 0.54) 48%,
            rgba(9, 19, 31, 0.10) 100%
        );
    }
}

/* Mobile */

@media (max-width: 540px) {
    .az-hero {
        height: 310px;
        min-height: 290px;
        margin-bottom: 30px;
        border-radius: 13px;
    }

    .az-hero-copy {
        left: 23px;
        width: calc(100% - 72px);
    }

    .az-hero-copy h1,
    .az-hero-copy h2 {
        font-size: 28px;
        letter-spacing: -0.6px;
    }

    .az-hero-copy p {
        max-width: 260px;
        font-size: 13px;
    }

    .az-hero-arrow {
        width: 32px;
        height: 32px;
        font-size: 25px;
    }

    .az-hero-prev {
        left: 7px;
    }

    .az-hero-next {
        right: 7px;
    }

    .az-hero-dots {
        bottom: 13px;
        left: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .az-hero-slide,
    .az-hero-image,
    .az-hero-button,
    .az-hero-arrow,
    .az-hero-dots button {
        transition: none;
    }
}

/* ==========================================
   HERO POSITION — PREVENT NAVIGATION OVERLAP
========================================== */

.main-content.page-background {
    position: relative;
    display: block;
    width: calc(100% - 76px);
    min-width: 0;
    margin: 0 0 0 76px !important;
    padding: 94px 34px 55px !important;
    overflow-x: clip;
}

.main-content.page-background > .app-zone {
    display: block;
    width: 100%;
    max-width: 1600px;
    min-width: 0;
    margin: 0 auto;
}

.az-hero {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 38px;
    isolation: isolate;
    overflow: hidden;
}

/* Ensure slide artwork stays inside the hero */
.az-hero-slide,
.az-hero-image {
    max-width: 100%;
}

/* Keep carousel controls inside the banner */
.az-hero-arrow {
    z-index: 5;
}

.az-hero-dots {
    z-index: 6;
}

/* Match the actual sidebar width on smaller screens */
@media (max-width: 540px) {
    .main-content.page-background {
        width: calc(100% - 70px);
        margin-left: 70px !important;
        padding: 79px 13px 35px !important;
    }
}

/* ==========================================
   MOBILE FIX — APP ZONE + SEARCH + SWIPE NAV
   Desktop styling remains unchanged
========================================== */

@media (max-width: 540px) {

    /* HEADER: use the full mobile width */
    header {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 60px !important;
        padding: 0 12px !important;
        gap: 10px;
        justify-content: space-between;
        z-index: 1000 !important;
    }

    /* Keep the site logo on the left */
    header > a {
        flex: 0 1 auto;
        min-width: 0;
        font-size: 14px;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

    /* Keep search on the right */
    header input[type="search"],
    header input[type="text"],
    header input:not([type]) {
        flex: 0 1 52%;
        width: 52%;
        max-width: 230px;
        min-width: 0;
        height: 37px;
        margin-left: auto;
        padding: 0 10px;
        font-size: 13px;
    }

    /* Sidebar stays off-screen until opened */
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: min(280px, 86vw) !important;
        height: 100vh !important;
        height: 100dvh !important;
        padding: 0 12px 20px;
        overflow-x: hidden;
        overflow-y: auto;
        transform: translateX(-105%);
        visibility: hidden;
        pointer-events: none;
        transition:
            transform 260ms ease,
            visibility 260ms ease;
        z-index: 2001 !important;
        box-shadow: none;
        touch-action: pan-y;
    }

    /* Show the complete navigation when opened */
    .sidebar.active,
    .sidebar.open {
        width: min(280px, 86vw) !important;
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
    }

    /* Always show menu labels in the open mobile navigation */
    .sidebar .text {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-5px);
    }

    .sidebar.active .text,
    .sidebar.open .text {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    /* Dark overlay behind the navigation */
    .sidebar-backdrop {
        position: fixed !important;
        inset: 0 !important;
        z-index: 2000 !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        background: rgba(2, 7, 13, 0.72);
        backdrop-filter: blur(3px);
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* APP ZONE occupies the full width, aligned left */
    .main-content,
    .main-content.page-background {
        position: relative;
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 76px 12px 32px !important;
        overflow-x: clip;
        z-index: 1;
    }

    .main-content > .app-zone,
    .main-content.page-background > .app-zone {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    /* Align headings and sections to the left */
    .games-heading,
    .game-section {
        width: 100%;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }

    /* Keep cards in a neat two-column mobile grid */
    .game-row {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .game-card {
        min-width: 0;
    }

    /* Keep the hero banner inside the mobile screen */
    .az-hero {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* Prevent sideways scrolling */
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }
}

/* Respect users who prefer reduced motion */
@media (max-width: 540px) and (prefers-reduced-motion: reduce) {
    .sidebar {
        transition: none;
    }
}

/* =========================================
   MOBILE HEADER + SEARCH BAR FIX
   ========================================= */

@media (max-width: 540px) {

    /* Keep the title and search in one row */
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 60px !important;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;

        padding: 0 12px !important;
        box-sizing: border-box !important;
        overflow: hidden;
        z-index: 1000 !important;
    }

    /* APP ZONE title */
    header > a {
        position: static !important;
        display: block !important;

        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 42% !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        font-size: 14px !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Search bar */
    header input[type="search"],
    header input[type="text"],
    header input:not([type]),
    header form input {
        position: static !important;
        float: none !important;
        transform: none !important;

        display: block !important;
        flex: 1 1 0% !important;

        width: 0 !important;
        min-width: 0 !important;
        max-width: none !important;

        height: 38px !important;
        margin: 0 !important;
        padding: 0 10px !important;

        box-sizing: border-box !important;
        font-size: 12px !important;
        line-height: normal !important;
    }

    /* If the search bar is inside a form */
    header form {
        display: flex !important;
        flex: 1 1 0% !important;
        width: 0 !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    /* Prevent the page from moving sideways */
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Keep page content below the fixed header */
    .main-content,
    .main-content.page-background {
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;

        padding: 74px 12px 28px !important;
        box-sizing: border-box !important;
    }

    /* Keep sections and cards inside the screen */
    .app-zone,
    .az-hero,
    .game-section,
    .games-heading {
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Make images responsive */
    .app-zone img,
    .main-content img {
        max-width: 100%;
        height: auto;
    }
}

/* Respect reduced-motion settings */
@media (max-width: 540px) and (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
}

/* SIDEBAR OVERLAY */
.sidebar {
    z-index: 2001;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
}

body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Keep the page content behind the sidebar */
header,
.app-topbar {
    z-index: 1000;
}

.main-content {
    position: relative;
    z-index: 1;
}
/* APP AND GAME CARDS — HORIZONTAL ROW */

.game-section {
    width: 100%;
    min-width: 0;
    margin-bottom: 35px;
}

.game-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 20px;
    width: 100%;
    align-items: start;
}

.game-card {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
    box-sizing: border-box;
}

.game-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}

.game-info {
    padding: 10px 2px;
    min-width: 0;
}

.game-info h3 {
    overflow-wrap: anywhere;
}

.game-info p,
.game-info span {
    overflow-wrap: anywhere;
}

/* RESPONSIVE LAYOUT */

@media (max-width: 600px) {
    .game-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* FIX: MAKE MOBILE SEARCH BAR VISIBLE */
@media (max-width: 540px) {

    header {
        gap: 8px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    header > a {
        flex: 0 0 auto !important;
        max-width: 38% !important;
        font-size: 13px !important;
    }

    header form {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    header input[type="search"],
    header input[type="text"],
    header input:not([type]),
    header form input {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 38px !important;
        font-size: 13px !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================
   MOBILE FULL-WIDTH + CARD LAYOUT FIX
   ========================================== */

@media (max-width: 540px) {

    /* Make the entire website fill the screen */
    html,
    body {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    body {
        box-sizing: border-box !important;
    }

    /* Remove fixed widths from common page containers */
    .main-content,
    .main-content.page-background,
    .app-zone,
    .games-heading,
    .game-section,
    .az-hero {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .main-content,
    .main-content.page-background {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Hero and promotional cards */
    .az-hero {
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: hidden;
        border-radius: 15px !important;
    }

    .az-hero img {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: cover;
    }

    /* App and game card grids */
    .game-row,
    .app-row,
    .apps-grid,
    .games-grid,
    .featured-apps,
    .app-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Stop individual cards from forcing a narrow layout */
    .game-card,
    .app-card,
    .featured-app,
    .app-item {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden;
        border-radius: 12px !important;
    }

    .game-card img,
    .app-card img,
    .featured-app img,
    .app-item img {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        object-fit: cover;
    }

    /* Prevent long titles and text from expanding cards */
    h1, h2, h3, p,
    .game-card *,
    .app-card *,
    .featured-app *,
    .app-item * {
        overflow-wrap: anywhere;
    }

    /* Keep the header within the viewport */
    header {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* FINAL MOBILE SCREEN FIT FIX */
@media screen and (max-width: 540px) {

    *,
    *::before,
    *::after {
        box-sizing: border-box !important;
    }

    html,
    body {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    body {
        position: relative !important;
    }

    /* Main page must use the full screen */
    .main-content,
    .main-content.page-background,
    main,
    .app-zone {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .main-content,
    .main-content.page-background {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Remove fixed widths from direct content sections */
    .main-content > *,
    .app-zone > *,
    .az-hero,
    .games-heading,
    .game-section {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    /* Responsive cards */
    .game-row,
    .app-row,
    .apps-grid,
    .games-grid,
    .featured-apps,
    .app-grid {
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .game-card,
    .app-card,
    .featured-app,
    .app-item {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Header fits inside the screen */
    header {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Images cannot stretch the page */
    img,
    video,
    iframe {
        max-width: 100% !important;
    }
}

/* MOBILE: HORIZONTAL SLIDING GAME ROW */
@media screen and (max-width: 540px) {

    .game-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;

        width: 100% !important;
        max-width: 100% !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;

        padding: 4px 2px 12px !important;
    }

    .game-row .game-card {
        flex: 0 0 78% !important;
        width: 78% !important;
        min-width: 0 !important;
        max-width: 78% !important;

        margin: 0 !important;
        scroll-snap-align: start;
    }

    /* Hide the scrollbar while keeping swipe enabled */
    .game-row {
        scrollbar-width: none;
    }

    .game-row::-webkit-scrollbar {
        display: none;
    }
}

/* APP ZONE — NORMAL MOBILE TITLES */
@media screen and (max-width: 540px) {

    /* App and game card headings */
    .app-zone .game-card h1,
    .app-zone .game-card h2,
    .app-zone .game-card h3,
    .app-zone .game-card h4,
    .app-zone .app-card h1,
    .app-zone .app-card h2,
    .app-zone .app-card h3,
    .app-zone .app-card h4,
    .game-card h1,
    .game-card h2,
    .game-card h3,
    .game-card h4,
    .app-card h1,
    .app-card h2,
    .app-card h3,
    .app-card h4 {
        font-size: 13px !important;
        line-height: 1.35 !important;
        font-weight: 500 !important;
        letter-spacing: 0 !important;
        margin: 6px 0 4px !important;
    }

    /* Titles written as links or ordinary text */
    .game-card a,
    .app-card a,
    .game-card .title,
    .app-card .title,
    .game-card .app-title,
    .app-card .app-title,
    .game-card .game-title,
    .app-card .game-title {
        font-size: 13px !important;
        line-height: 1.35 !important;
        letter-spacing: 0 !important;
    }

    /* Descriptions and supporting text */
    .game-card p,
    .app-card p {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
}

/* FINAL FIX — SMALL, NORMAL MOBILE TITLES */
@media screen and (max-width: 540px) {

    /* Reduce heading sizes inside app and game cards */
    .app-zone .game-card h1,
    .app-zone .game-card h2,
    .app-zone .game-card h3,
    .app-zone .game-card h4,
    .app-zone .app-card h1,
    .app-zone .app-card h2,
    .app-zone .app-card h3,
    .app-zone .app-card h4,
    .game-card h1,
    .game-card h2,
    .game-card h3,
    .game-card h4,
    .app-card h1,
    .app-card h2,
    .app-card h3,
    .app-card h4,
    .game-card .title,
    .app-card .title,
    .game-card .app-title,
    .app-card .app-title,
    .game-card .game-title,
    .app-card .game-title {
        font-size: 11px !important;
        line-height: 1.3 !important;
        font-weight: 500 !important;
        letter-spacing: 0 !important;
        margin: 4px 0 !important;
        padding: 0 !important;
    }

    /* Also reduce linked titles */
    .game-card a,
    .app-card a {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    /* Keep the APP ZONE page heading separate */
    .main-content > h1,
    .app-zone > h1,
    .games-heading h1 {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
}

/* MOBILE: FORCE APP AND GAME TITLES TO NORMAL SIZE */
@media screen and (max-width: 540px) {

    .game-card *,
    .app-card *,
    .featured-app *,
    .app-item * {
        letter-spacing: normal !important;
    }

    .game-card h1,
    .game-card h2,
    .game-card h3,
    .game-card h4,
    .game-card h5,
    .game-card h6,
    .app-card h1,
    .app-card h2,
    .app-card h3,
    .app-card h4,
    .app-card h5,
    .app-card h6,
    .featured-app h1,
    .featured-app h2,
    .featured-app h3,
    .featured-app h4,
    .app-item h1,
    .app-item h2,
    .app-item h3,
    .app-item h4 {
        font-size: 12px !important;
        line-height: 1.3 !important;
        font-weight: 500 !important;
        margin: 4px 0 !important;
    }

    .game-card a,
    .app-card a,
    .featured-app a,
    .app-item a,
    .game-card .title,
    .app-card .title,
    .featured-app .title,
    .app-item .title {
        font-size: 12px !important;
        line-height: 1.3 !important;
        font-weight: 500 !important;
    }
}

/* FIX GAME CARD TITLES ON MOBILE */
@media screen and (max-width: 540px) {

    .main-content .game-row .game-card .game-info h3 {
        font-family: Arial, sans-serif !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
        font-weight: 600 !important;
        letter-spacing: 0 !important;

        margin: 0 0 5px !important;
        padding: 0 !important;

        text-align: left !important;
        overflow-wrap: break-word !important;
    }

    .main-content .game-row .game-card .game-info span,
    .main-content .game-row .game-card .game-info p {
        font-size: 11px !important;
        line-height: 1.4 !important;
        margin: 3px 0 !important;
    }

    .main-content .game-row .game-card .game-info {
        padding: 10px !important;
    }
}

/* FORCE SMALLER TITLES ON MOBILE */
@media screen and (max-width: 540px) {

    .main-content .game-row .game-card .game-info h3 {
        font-size: 10px !important;
        line-height: 1.2 !important;
        font-weight: 500 !important;
        margin: 0 0 4px 0 !important;
        padding: 0 !important;
    }

    .main-content .game-row .game-card .game-info span,
    .main-content .game-row .game-card .game-info p {
        font-size: 9px !important;
        line-height: 1.2 !important;
    }

    .main-content .game-row .game-card .game-info {
        padding: 6px !important;
    }

    .main-content .featured-info h2 {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }

    .main-content .featured-info h3 {
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .main-content .games-heading h1 {
        font-size: 19px !important;
    }

    .main-content .game-section > h2 {
        font-size: 15px !important;
    }
}

/* ==========================================
   FINAL MOBILE TITLE SIZE OVERRIDE
========================================== */

@media screen and (max-width: 540px) {

    /* Titles inside game cards */
    .main-content .game-card .game-info h1,
    .main-content .game-card .game-info h2,
    .main-content .game-card .game-info h3,
    .main-content .game-card .game-info h4,
    .main-content .app-card h1,
    .main-content .app-card h2,
    .main-content .app-card h3,
    .main-content .app-card h4 {
        font-size: 10px !important;
        line-height: 1.25 !important;
        font-weight: 500 !important;
        letter-spacing: 0 !important;
        margin: 0 0 4px !important;
        padding: 0 !important;
    }

    /* Featured banner titles */
    .main-content .featured-info h1,
    .main-content .featured-info h2,
    .main-content .featured-info h3 {
        font-size: 14px !important;
        line-height: 1.25 !important;
        letter-spacing: 0 !important;
    }

    .main-content .featured-small .featured-info h2,
    .main-content .featured-small .featured-info h3 {
        font-size: 12px !important;
    }

    /* Main page heading */
    .main-content .games-heading h1 {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }

    /* Section headings */
    .main-content .game-section > h2 {
        font-size: 15px !important;
        line-height: 1.3 !important;
    }

    /* Supporting text inside cards */
    .main-content .game-card .game-info p,
    .main-content .game-card .game-info span {
        font-size: 9px !important;
        line-height: 1.3 !important;
    }
}

/* ==========================================
   APP ZONE — GLOBAL TITLE SIZE FIX
========================================== */

/* Featured banner titles */
.featured-info h1,
.featured-info h2,
.featured-info h3 {
    font-size: 24px !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
}

/* Smaller featured banner titles */
.featured-small .featured-info h2,
.featured-small .featured-info h3 {
    font-size: 18px !important;
}

/* Main page headings */
.games-heading h1 {
    font-size: 25px !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
}

/* Section headings */
.game-section > h2 {
    font-size: 19px !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
}

/* Game and app card titles */
.game-info h1,
.game-info h2,
.game-info h3,
.game-info h4,
.app-card h1,
.app-card h2,
.app-card h3,
.app-card h4 {
    font-size: 14px !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    font-weight: 500 !important;
}

/* Carousel banner titles */
.az-hero-copy h1,
.az-hero-copy h2 {
    font-size: 30px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

/* Smaller titles on mobile */
@media screen and (max-width: 540px) {
    .featured-info h1,
    .featured-info h2,
    .featured-info h3 {
        font-size: 17px !important;
    }

    .featured-small .featured-info h2,
    .featured-small .featured-info h3 {
        font-size: 13px !important;
    }

    .games-heading h1 {
        font-size: 21px !important;
    }

    .game-section > h2 {
        font-size: 16px !important;
    }

    .game-info h1,
    .game-info h2,
    .game-info h3,
    .game-info h4,
    .app-card h1,
    .app-card h2,
    .app-card h3,
    .app-card h4 {
        font-size: 11px !important;
    }

    .az-hero-copy h1,
    .az-hero-copy h2 {
        font-size: 22px !important;
    }
}
/* =====================================
   MOBILE TITLE AND CARD FIX
===================================== */

@media screen and (max-width: 600px) {

    /* Main page heading */
    .games-heading h1 {
        font-size: 23px !important;
        line-height: 1.3;
        margin: 12px 0;
    }

    /* Section headings */
    .game-section > h2 {
        font-size: 17px !important;
        line-height: 1.4;
    }

    /* Featured card titles */
    .featured-info h1,
    .featured-info h2,
    .featured-info h3 {
        font-size: 15px !important;
        line-height: 1.35;
    }

    /* Game card titles */
    .game-info h3,
    .game-info h4 {
        font-size: 13px !important;
        line-height: 1.35;
    }

    /* Prevent cards from exceeding the screen */
    .app-zone,
    .main-content,
    .games-heading,
    .game-section,
    .featured-apps {
        max-width: 100%;
        min-width: 0;
    }

    .featured-card,
    .game-card {
        min-width: 0;
        box-sizing: border-box;
    }

    .featured-card img,
    .game-card img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}
@media screen and (max-width: 600px) {
    .games-page .games-heading h1 {
        font-size: 23px;
    }

    .games-page .game-section > h2 {
        font-size: 17px;
    }

    .games-page .featured-info h2,
    .games-page .featured-info h3 {
        font-size: 15px;
    }

    .games-page .game-info h3,
    .games-page .game-info h4 {
        font-size: 13px;
    }
}

/* ==========================================
   APP ZONE — CLEAN TITLE SIZE CONTROL
   Desktop, tablet and mobile
========================================== */

/* Main page heading */
.games-heading h1 {
    font-size: 27px !important;
    line-height: 1.3;
    letter-spacing: 0;
}

/* Section headings */
.game-section > h2 {
    font-size: 20px !important;
    line-height: 1.35;
    letter-spacing: 0;
}

/* Featured banner titles */
.featured-info h1,
.featured-info h2,
.featured-info h3 {
    font-size: 25px !important;
    line-height: 1.3;
    letter-spacing: 0;
}

/* Titles on smaller featured banners */
.featured-small .featured-info h2,
.featured-small .featured-info h3 {
    font-size: 18px !important;
}

/* App and game card titles */
.game-info h1,
.game-info h2,
.game-info h3,
.game-info h4,
.app-card h1,
.app-card h2,
.app-card h3,
.app-card h4 {
    font-size: 14px !important;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

/* Hero carousel title */
.az-hero-copy h1,
.az-hero-copy h2 {
    font-size: 32px !important;
    line-height: 1.2;
    letter-spacing: 0;
}

/* Tablet */
@media screen and (max-width: 800px) {
    .games-heading h1 {
        font-size: 25px !important;
    }

    .featured-info h1,
    .featured-info h2,
    .featured-info h3 {
        font-size: 21px !important;
    }

    .featured-small .featured-info h2,
    .featured-small .featured-info h3 {
        font-size: 16px !important;
    }

    .az-hero-copy h1,
    .az-hero-copy h2 {
        font-size: 27px !important;
    }
}

/* Mobile */
@media screen and (max-width: 540px) {
    .games-heading h1 {
        font-size: 22px !important;
    }

    .game-section > h2 {
        font-size: 17px !important;
    }

    .featured-info h1,
    .featured-info h2,
    .featured-info h3 {
        font-size: 16px !important;
    }

    .featured-small .featured-info h2,
    .featured-small .featured-info h3 {
        font-size: 13px !important;
    }

    .game-info h1,
    .game-info h2,
    .game-info h3,
    .game-info h4,
    .app-card h1,
    .app-card h2,
    .app-card h3,
    .app-card h4 {
        font-size: 12px !important;
        line-height: 1.35;
    }

    .az-hero-copy h1,
    .az-hero-copy h2 {
        font-size: 22px !important;
    }
}

/* SEARCH RESULTS */

#searchResults {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(200px, 1fr)
    );
    gap: 16px;
    margin-top: 24px;
}

.search-result-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.search-result-card a {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

.search-result-card a:hover {
    color: #69b7ff;
}

.search-result-card p {
    color: #b8c4d8;
    margin-bottom: 0;
}
