* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #0f0c29;
    overflow-x: hidden;
}

body.mobile-home {
    margin: 0;
    min-height: 100vh;
    color: #edf3ff;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 18% 0%, rgba(77, 150, 255, 0.24), transparent 34rem),
        radial-gradient(circle at 84% 12%, rgba(255, 217, 61, 0.16), transparent 25rem),
        linear-gradient(145deg, #0f0c29 0%, #1b164c 44%, #24243e 100%);
    overflow-x: hidden;
}

body.mobile-home::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 72%);
}

a {
    color: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mobile-shell {
    width: min(100%, 760px);
    margin: 0 auto;
    padding-inline: max(18px, env(safe-area-inset-left));
}

.mobile-hero {
    position: relative;
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: 18px;
}

.mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.mobile-logo {
    font-size: 1.2rem;
    font-weight: 950;
    text-decoration: none;
    letter-spacing: -0.03em;
    color: #ffd93d;
}

.mobile-nav-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    color: #c8d2e6;
    text-decoration: none;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}

.mobile-kicker {
    margin: 0 0 8px;
    color: #57f2e5;
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mobile-hero h1 {
    margin: 0;
    max-width: 11ch;
    color: #ffd93d;
    font-size: clamp(2.35rem, 11.4vw, 4.9rem);
    line-height: 0.92;
    letter-spacing: -0.075em;
    text-wrap: balance;
}

.mobile-hero-copy {
    max-width: 31rem;
    margin: 12px 0 0;
    color: #d7ddf1;
    font-size: 1.02rem;
    line-height: 1.55;
}

.mobile-search {
    margin-top: 16px;
}

.mobile-search input {
    width: 100%;
    min-height: 54px;
    border: 2px solid rgba(77, 150, 255, 0.85);
    border-radius: 18px;
    padding: 0 18px;
    background: rgba(9, 13, 32, 0.82);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 16px 42px rgba(0,0,0,0.28);
}

.mobile-search input:focus {
    border-color: #ffd93d;
    box-shadow: 0 0 0 4px rgba(255,217,61,0.14), 0 18px 48px rgba(0,0,0,0.32);
}

.mobile-hero-actions {
    display: flex;
    gap: 9px;
    margin-top: 14px;
    padding-bottom: 4px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.mobile-hero-actions::-webkit-scrollbar,
.mobile-card-row::-webkit-scrollbar {
    display: none;
}

.mobile-pill {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    color: #e8eefc;
    background: rgba(255,255,255,0.08);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 850;
}

.mobile-pill.is-active {
    color: #11172d;
    background: linear-gradient(135deg, #ffd93d, #6bcb77);
    border-color: transparent;
}

.mobile-ad {
    margin: 18px auto 10px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.mobile-ad-placeholder {
    min-height: 52px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255,255,255,0.14);
    border-radius: 16px;
    color: rgba(232,238,252,0.42);
    background: rgba(255,255,255,0.035);
    font-size: 0.78rem;
}

.mobile-ad-placeholder--promo {
    gap: 8px;
    padding: 10px;
}

.mobile-suppi-promo {
    display: inline-flex;
    line-height: 0;
}

.mobile-suppi-promo img {
    display: block;
    width: 165px;
    max-width: min(165px, 82vw);
    height: auto;
}

.mobile-ad > ins.adsbygoogle {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 52px;
}

.mobile-section {
    margin-top: 24px;
}

.mobile-section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 12px;
}

.mobile-section h2 {
    margin: 0;
    color: #ffd93d;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
}

.mobile-feature-stack {
    display: grid;
    gap: 12px;
}

.mobile-card-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, 76%);
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.mobile-card-grid {
    display: grid;
    gap: 12px;
}

.mobile-game-card {
    position: relative;
    min-height: 150px;
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 14px;
    align-items: center;
    padding: 15px;
    overflow: hidden;
    border-radius: 24px;
    color: #e8eefc;
    text-decoration: none;
    background:
        radial-gradient(circle at 22% 18%, color-mix(in srgb, var(--accent, #4d96ff) 40%, transparent), transparent 34%),
        linear-gradient(145deg, rgba(26,26,62,0.96), rgba(42,26,78,0.92));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 20px 50px rgba(0,0,0,0.24);
    scroll-snap-align: start;
}

.mobile-game-card--hero {
    min-height: 178px;
    grid-template-columns: 94px 1fr;
    border-color: rgba(255,217,61,0.28);
}

.mobile-game-card::before {
    content: "";
    position: absolute;
    inset: auto -18% -46% 24%;
    height: 120px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent2, #ffd93d) 24%, transparent);
    filter: blur(2px);
    transform: rotate(-8deg);
}

.mobile-card-art {
    position: relative;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    font-size: 2.25rem;
    background:
        radial-gradient(circle at 30% 24%, rgba(255,255,255,0.34), transparent 20%),
        linear-gradient(145deg, color-mix(in srgb, var(--accent, #4d96ff) 75%, #fff), color-mix(in srgb, var(--accent2, #ffd93d) 70%, #11172d));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 12px 30px color-mix(in srgb, var(--accent, #4d96ff) 30%, transparent);
}

.mobile-game-card--hero .mobile-card-art {
    width: 94px;
    height: 94px;
    font-size: 2.7rem;
}

.mobile-card-body {
    position: relative;
    min-width: 0;
}

.mobile-card-body h3 {
    margin: 0 0 6px;
    color: #fff3a1;
    font-size: 1.22rem;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.mobile-card-body p {
    margin: 0;
    color: #c8d2e6;
    font-size: 0.88rem;
    line-height: 1.38;
}

.mobile-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.mobile-badge {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    color: #0b1024;
    background: #57f2e5;
    font-size: 0.72rem;
    font-weight: 950;
}

.mobile-badge--soft {
    color: #e8eefc;
    background: rgba(255,255,255,0.11);
}

.mobile-badge--new {
    color: #0b1024;
    background: #ffd93d;
    box-shadow: 0 0 0 2px rgba(255, 217, 61, 0.35);
    animation: mobileBadgePulse 1.6s ease-in-out infinite;
}

@keyframes mobileBadgePulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(255, 217, 61, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(255, 217, 61, 0); }
}

.mobile-empty {
    margin: -4px 0 12px;
    color: #c8d2e6;
}

.mobile-info-card {
    margin: 26px 0;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255,217,61,0.22);
    background: rgba(17,23,45,0.72);
}

.mobile-info-card h2 {
    margin: 0 0 8px;
    color: #ffd93d;
}

.mobile-info-card p {
    margin: 0 0 14px;
    color: #c8d2e6;
    line-height: 1.58;
}

.mobile-info-card a {
    color: #57f2e5;
    font-weight: 900;
}

.mobile-footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-bottom: max(26px, env(safe-area-inset-bottom));
}

.mobile-footer a {
    min-height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #c8d2e6;
    text-decoration: none;
    background: rgba(255,255,255,0.065);
    border: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 720px) {
    .mobile-card-row {
        grid-auto-columns: minmax(250px, 32%);
    }

    .mobile-feature-stack {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-game-card--hero:first-child {
        grid-column: span 2;
    }

    .mobile-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@supports not (background: color-mix(in srgb, red 50%, transparent)) {
    .mobile-game-card {
        background: linear-gradient(145deg, rgba(26,26,62,0.96), rgba(42,26,78,0.92));
    }

    .mobile-card-art {
        background: linear-gradient(145deg, var(--accent, #4d96ff), var(--accent2, #ffd93d));
    }
}
