/* ==========================================================================
   Browser Games List — modern light theme
   No external fonts or CSS frameworks. System font stack only.
   ========================================================================== */

:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-soft: #f1f3fa;
    --ink: #14162a;
    --ink-2: #3e435b;
    --muted: #666d84;
    --line: #e4e7f1;
    --line-strong: #d2d7e6;
    --primary: #5a4bff;
    --primary-soft: #eeeaff;
    --accent: #00b89c;
    --accent-soft: #e1faf5;
    --gradient: linear-gradient(135deg, #5a4bff 0%, #8a5cff 48%, #00c2a8 100%);
    --shadow-sm: 0 1px 2px rgba(20, 22, 50, .05), 0 10px 30px -24px rgba(20, 22, 50, .35);
    --shadow: 0 28px 70px -42px rgba(31, 25, 90, .42);
    --radius: 18px;
    --radius-lg: 26px;
    --container: 1200px;
    --header-h: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(900px 540px at 82% -12%, rgba(90, 75, 255, .10), transparent 64%),
        radial-gradient(760px 460px at -8% 18%, rgba(0, 194, 168, .07), transparent 62%);
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
picture,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: var(--primary);
}

a:hover {
    color: #3f2ee6;
}

:focus-visible {
    outline: 3px solid rgba(90, 75, 255, .38);
    outline-offset: 2px;
}

::selection {
    color: #fff;
    background: var(--primary);
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: .7rem 1rem;
    color: #fff;
    background: var(--ink);
    border-radius: 10px;
    transform: translateY(-160%);
    transition: transform .18s ease;
}

.skip-link:focus {
    transform: translateY(0);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(228, 231, 241, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    color: var(--ink);
    text-decoration: none;
}

.brand:hover {
    color: var(--ink);
}

.brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 10px 22px -14px rgba(90, 75, 255, .7);
}

.brand__copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand__name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.025em;
}

.brand__sub {
    margin-top: 4px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .24em;
    color: var(--primary);
    text-transform: uppercase;
}

.header-panel {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    min-width: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 3px;
}

.site-nav a {
    padding: .55rem .78rem;
    color: var(--ink-2);
    border-radius: 999px;
    font-size: .87rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, background-color .18s ease;
}

.site-nav a:hover {
    color: var(--ink);
    background: var(--surface-soft);
}

.site-nav a.is-active {
    color: var(--primary);
    background: var(--primary-soft);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 252px;
    padding: 4px 4px 4px 13px;
    background: var(--surface-soft);
    border: 1px solid transparent;
    border-radius: 999px;
    transition: width .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.header-search:focus-within {
    width: 292px;
    background: #fff;
    border-color: var(--line-strong);
    box-shadow: 0 0 0 4px rgba(90, 75, 255, .08);
}

.header-search > svg {
    flex-shrink: 0;
    color: #8a90a6;
}

.header-search input {
    width: 100%;
    min-width: 0;
    padding: .35rem 0;
    color: var(--ink);
    font: inherit;
    font-size: .86rem;
    background: transparent;
    border: 0;
    outline: 0;
}

.header-search input::placeholder {
    color: #8a90a6;
}

.header-search button {
    flex-shrink: 0;
    padding: .4rem .68rem;
    color: #fff;
    font: inherit;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
    background: var(--ink);
    border: 0;
    border-radius: 999px;
}

.header-search button:hover {
    background: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0 11px;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .78rem 1.15rem;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 750;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 18px 32px -18px rgba(90, 75, 255, .72);
}

.btn--primary:hover {
    color: #fff;
    box-shadow: 0 22px 38px -18px rgba(90, 75, 255, .85);
}

.btn--ghost {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
    color: var(--ink);
    background: #fbfbfe;
    border-color: var(--line-strong);
}

.btn--large {
    padding: .95rem 1.3rem;
    font-size: .95rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding: 74px 0 58px;
    overflow: hidden;
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background-image:
        linear-gradient(rgba(90, 75, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 75, 255, .055) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at 52% 32%, #000 12%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at 52% 32%, #000 12%, transparent 72%);
    pointer-events: none;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: .44rem .8rem;
    color: var(--ink-2);
    font-size: .75rem;
    font-weight: 750;
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.eyebrow__dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 194, 168, .14);
}

.hero h1 {
    margin: 22px 0 20px;
    font-size: clamp(2.7rem, 5.4vw, 4.65rem);
    font-weight: 850;
    line-height: 1.01;
    letter-spacing: -.05em;
}

.gradient-text {
    color: transparent;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
}

.hero__lede {
    max-width: 34rem;
    margin: 0 0 28px;
    color: var(--ink-2);
    font-size: clamp(1.02rem, 1.5vw, 1.16rem);
    line-height: 1.68;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.hero__stats {
    display: flex;
    gap: 30px;
    max-width: 34rem;
    padding: 22px 0 0;
    margin: 34px 0 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.hero__stats li {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hero__stats strong {
    font-size: 1.4rem;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.hero__stats span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 650;
}

.hero__art {
    position: relative;
    min-height: 520px;
}

.hero-glow {
    position: absolute;
    inset: 10% 2% 8% 8%;
    background: radial-gradient(circle at 50% 50%, rgba(124, 92, 255, .32), rgba(0, 194, 168, .12) 52%, transparent 70%);
    filter: blur(30px);
}

.hero-tile {
    position: absolute;
    display: block;
    overflow: hidden;
    text-decoration: none;
    background: #14172a;
    border-radius: 24px;
    box-shadow: 0 34px 64px -32px rgba(20, 22, 50, .62), inset 0 0 0 1px rgba(255, 255, 255, .14);
    transition: transform .3s ease;
}

.hero-tile:hover {
    transform: translateY(-5px) rotate(0deg);
}

.hero-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-tile--1 {
    top: 9%;
    left: 0;
    z-index: 3;
    width: 74%;
    height: 63%;
    transform: rotate(-4deg);
}

.hero-tile--2 {
    top: 0;
    right: 2%;
    z-index: 2;
    width: 47%;
    height: 39%;
    transform: rotate(5deg);
}

.hero-tile--3 {
    right: 4%;
    bottom: 1%;
    z-index: 4;
    width: 52%;
    height: 41%;
    transform: rotate(-2deg);
}

.hero-tile__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 34%, rgba(8, 10, 25, .86));
}

.hero-tile__caption {
    position: absolute;
    right: 18px;
    bottom: 16px;
    left: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #fff;
}

.hero-tile__caption strong {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .32);
}

.hero-tile--1 .hero-tile__caption strong {
    font-size: 1.32rem;
}

.hero-tile__tag {
    align-self: flex-start;
    padding: .2rem .5rem;
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .17);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.hero-tile__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: hsl(var(--tone) 55% 28% / .6);
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: -.07em;
    background:
        radial-gradient(circle at 24% 18%, hsl(var(--tone) 90% 82% / .85), transparent 46%),
        linear-gradient(135deg, hsl(var(--tone) 86% 94%), hsl(calc(var(--tone) + 44) 82% 88%));
}

.hero-bubble {
    position: absolute;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: .55rem .8rem;
    color: var(--ink-2);
    font-size: .73rem;
    font-weight: 750;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 20px 44px -26px rgba(20, 22, 50, .44);
}

.hero-bubble--play {
    top: 0;
    left: -4%;
    transform: rotate(-3deg);
}

.hero-bubble--browser {
    right: -2%;
    bottom: 12%;
    transform: rotate(2deg);
}

.hero-bubble__icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #fff;
    font-size: .58rem;
    background: linear-gradient(135deg, #5a4bff, #00c2a8);
    border-radius: 50%;
}

.hero-bubble--browser .hero-bubble__icon {
    background: linear-gradient(135deg, #00c2a8, #5a4bff);
}

/* --------------------------------------------------------------------------
   Spotlight / sponsored picks
   -------------------------------------------------------------------------- */

.spotlight {
    padding: 6px 0 52px;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.spotlight-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.spotlight-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.spotlight-card > a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 13px;
    color: inherit;
    text-decoration: none;
}

.spotlight-card img,
.spotlight-card__fallback {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--surface-soft);
    border-radius: 12px;
    object-fit: cover;
}

.spotlight-card__fallback {
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
}

.spotlight-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.spotlight-card__tag {
    color: var(--accent);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.spotlight-card strong {
    overflow: hidden;
    color: var(--ink);
    font-size: .87rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spotlight-card__body > span:last-child {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: .73rem;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */

.section-heading {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 26px;
}

.section-heading h2 {
    margin: 6px 0 7px;
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    font-weight: 830;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.section-heading p {
    max-width: 42rem;
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.kicker {
    display: inline-block;
    color: var(--primary);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.section-note {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 600;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Game directory and cards
   -------------------------------------------------------------------------- */

.game-directory {
    padding: 46px 0 62px;
}

.game-directory--search {
    padding-top: 24px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.game-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.game-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--surface-soft);
}

.game-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.game-card:hover .game-card__media img {
    transform: scale(1.045);
}

.game-card__badge {
    position: absolute;
    top: 13px;
    left: 13px;
    padding: .28rem .58rem;
    color: var(--ink);
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .93);
    border-radius: 999px;
    box-shadow: 0 8px 20px -14px rgba(20, 22, 50, .55);
    backdrop-filter: blur(10px);
}

.game-card__badge--new {
    color: #fff;
    background: var(--gradient);
}

.game-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 18%, hsl(var(--tone) 88% 78% / .85), transparent 44%),
        linear-gradient(135deg, hsl(var(--tone) 86% 94%), hsl(calc(var(--tone) + 44) 82% 87%));
}

.game-card__placeholder span {
    color: hsl(var(--tone) 55% 29% / .48);
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -.07em;
}

.game-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 19px 20px 17px;
}

.game-card__title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.27;
    letter-spacing: -.025em;
}

.game-card__title a {
    color: var(--ink);
    text-decoration: none;
}

.game-card__title a:hover {
    color: var(--primary);
}

.game-card__excerpt {
    display: -webkit-box;
    min-height: 3.9em;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.game-card__footer {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid #eef0f7;
}

.game-card__meta {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--muted);
    font-size: .71rem;
    font-weight: 700;
}

.game-card__link {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    color: var(--primary);
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}

.game-card__link:hover {
    gap: 8px;
}

.empty-state {
    padding: 48px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.empty-state h3 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0 0 18px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-top: 42px;
}

.page-link {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    color: var(--ink-2);
    font-size: .84rem;
    font-weight: 750;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(20, 22, 50, .04);
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.page-link:hover {
    color: var(--ink);
    background: var(--surface-soft);
    border-color: var(--line-strong);
}

.page-link.is-current {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
    box-shadow: 0 12px 24px -16px rgba(20, 22, 50, .65);
}

.page-link.is-disabled {
    color: #b3b8c9;
    pointer-events: none;
    opacity: .55;
}

.page-link--arrow {
    padding: 0 15px;
}

.page-ellipsis {
    padding: 0 4px;
    color: var(--muted);
    font-weight: 700;
}

.archive-note {
    margin: 26px 0 0;
    color: var(--muted);
    font-size: .84rem;
    text-align: center;
}

.archive-note a {
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Page heads, breadcrumbs, search
   -------------------------------------------------------------------------- */

.page-head {
    padding: 38px 0 10px;
}

.page-head .breadcrumb {
    margin: 0 0 22px;
}

.page-head h1 {
    margin: 8px 0 12px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 840;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.page-head__lede {
    max-width: 46rem;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.breadcrumb {
    margin: 22px 0 0;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: .77rem;
}

.breadcrumb li {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--muted);
}

.breadcrumb li + li::before {
    color: #b8bdcf;
    content: "/";
}

.breadcrumb a {
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb [aria-current="page"] {
    color: var(--ink-2);
    font-weight: 700;
}

.page-search {
    display: flex;
    gap: 9px;
    align-items: center;
    max-width: 640px;
    padding: 7px 7px 7px 16px;
    margin-top: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.page-search > svg {
    flex-shrink: 0;
    color: #8a90a6;
}

.page-search input {
    flex: 1;
    min-width: 0;
    padding: .55rem 0;
    color: var(--ink);
    font: inherit;
    background: transparent;
    border: 0;
    outline: 0;
}

.page-search .btn {
    padding: .65rem 1rem;
    font-size: .82rem;
}

.page-search--compact {
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
}

/* --------------------------------------------------------------------------
   Editorial content and FAQ
   -------------------------------------------------------------------------- */

.content-panel {
    padding: 66px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .92));
    border-top: 1px solid var(--line);
}

.content-panel__head {
    max-width: 760px;
}

.content-panel__head h2 {
    margin: 8px 0 12px;
    font-size: clamp(1.75rem, 3.2vw, 2.55rem);
    font-weight: 830;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.content-panel__lead {
    margin: 0;
    color: var(--ink-2);
    font-size: 1.05rem;
    line-height: 1.7;
}

.content-panel__body {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 50px;
    align-items: start;
    margin-top: 34px;
}

.prose {
    min-width: 0;
}

.prose h3 {
    margin: 28px 0 10px;
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.prose h3:first-child {
    margin-top: 0;
}

.prose p {
    margin: 0 0 15px;
    color: var(--ink-2);
    font-size: .95rem;
    line-height: 1.72;
}

.prose ul {
    padding-left: 1.15rem;
    margin: 0 0 16px;
    color: var(--ink-2);
}

.prose li {
    margin: 7px 0;
    line-height: 1.65;
}

.prose strong {
    color: var(--ink);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.feature__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(90, 75, 255, .12), rgba(0, 194, 168, .14));
    border-radius: 12px;
}

.feature div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature strong {
    font-size: .9rem;
}

.feature span {
    color: var(--muted);
    font-size: .79rem;
    line-height: 1.5;
}

.faq {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: 50px;
    align-items: start;
    padding-top: 52px;
    margin-top: 54px;
    border-top: 1px solid var(--line);
}

.faq h2 {
    margin: 8px 0 0;
    font-size: clamp(1.6rem, 2.8vw, 2.15rem);
    font-weight: 830;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq__item {
    padding: 0 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 1px 2px rgba(20, 22, 50, .04);
}

.faq__item summary {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 16px 0;
    font-size: .91rem;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    content: "+";
}

.faq__item[open] summary::after {
    content: "−";
}

.faq__item p {
    margin: 0;
    padding: 0 26px 17px 0;
    color: var(--muted);
    font-size: .87rem;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Game detail
   -------------------------------------------------------------------------- */

.game-detail {
    padding: 20px 0 36px;
}

.game-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 44px;
    align-items: center;
    margin-bottom: 46px;
}

.game-hero__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--surface-soft);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

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

.game-hero__placeholder {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: hsl(var(--tone) 55% 28% / .66);
    font-size: .9rem;
    font-weight: 750;
    background:
        radial-gradient(circle at 24% 18%, hsl(var(--tone) 90% 82% / .9), transparent 46%),
        linear-gradient(135deg, hsl(var(--tone) 86% 94%), hsl(calc(var(--tone) + 44) 82% 88%));
}

.game-hero__placeholder-mark {
    font-size: 7rem;
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.07em;
    opacity: .55;
}

.game-hero__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: .32rem .62rem;
    color: var(--ink);
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .94);
    border-radius: 999px;
    box-shadow: 0 8px 20px -14px rgba(20, 22, 50, .55);
    backdrop-filter: blur(10px);
}

.game-hero__info h1 {
    margin: 10px 0 14px;
    font-size: clamp(2.2rem, 4.3vw, 3.65rem);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -.05em;
}

.game-hero__lede {
    margin: 0 0 24px;
    color: var(--ink-2);
    font-size: 1rem;
    line-height: 1.67;
}

.game-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.game-hero__note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: .74rem;
}

.game-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.game-chips li {
    padding: .34rem .68rem;
    color: var(--ink-2);
    font-size: .72rem;
    font-weight: 700;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.game-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 38px;
    align-items: start;
    margin-bottom: 46px;
}

.game-content {
    min-width: 0;
}

.prose--game {
    padding: clamp(22px, 4vw, 40px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.prose--game h2 {
    margin: 8px 0 20px;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 830;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.prose--game p {
    margin: 0 0 16px;
    color: var(--ink-2);
    font-size: .94rem;
    line-height: 1.76;
}

.prose--game p:last-child {
    margin-bottom: 0;
}

.game-callout {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 26px 28px;
    margin-top: 22px;
    color: #fff;
    background: linear-gradient(135deg, #15172a, #2a2460);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.game-callout h2 {
    margin: 6px 0;
    color: #fff;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.game-callout p {
    max-width: 34rem;
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: .85rem;
    line-height: 1.6;
}

.game-callout .kicker {
    color: #8ff5e5;
}

.game-callout .btn {
    flex-shrink: 0;
}

.game-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-card,
.sidebar-games {
    padding: 21px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.info-card h2,
.sidebar-games h2 {
    margin: 0 0 14px;
    font-size: .98rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.info-card dl {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.info-card dl > div {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef0f7;
}

.info-card dl > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.info-card dt {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 600;
}

.info-card dd {
    margin: 0;
    color: var(--ink);
    font-size: .78rem;
    font-weight: 750;
    text-align: right;
}

.info-card dd a {
    color: var(--primary);
    text-decoration: none;
}

.sidebar-games ul {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-games li a {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 5px;
    color: var(--ink-2);
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 11px;
}

.sidebar-games li a:hover {
    color: var(--primary);
    background: #f6f7fc;
}

.sidebar-games img,
.sidebar-games__fallback {
    flex-shrink: 0;
    width: 64px;
    height: 47px;
    background: var(--surface-soft);
    border-radius: 8px;
    object-fit: cover;
}

.sidebar-games__fallback {
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 850;
    background: linear-gradient(135deg, #e9ecf8, #dfe4f5);
}

.text-link {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-top: 12px;
    color: var(--primary);
    font-size: .77rem;
    font-weight: 800;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.not-found {
    padding: 54px 0 22px;
    text-align: center;
}

.not-found__inner {
    max-width: 720px;
    margin-inline: auto;
}

.not-found__code {
    display: block;
    margin-bottom: 6px;
    font-size: clamp(4.4rem, 12vw, 9rem);
    font-weight: 900;
    line-height: .92;
    letter-spacing: -.07em;
    color: transparent;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    opacity: .92;
}

.not-found h1 {
    margin: 8px 0 12px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 840;
    line-height: 1.06;
    letter-spacing: -.045em;
}

.not-found p {
    max-width: 36rem;
    margin: 0 auto 10px;
    color: var(--muted);
    font-size: .97rem;
}

.not-found .page-search {
    margin-right: auto;
    margin-left: auto;
}

.not-found .btn--ghost {
    margin-top: 14px;
}

/* --------------------------------------------------------------------------
   Ads
   -------------------------------------------------------------------------- */

.ad-band {
    padding: 17px;
    margin: 0 0 60px;
    text-align: center;
    background: rgba(255, 255, 255, .56);
    border: 1px dashed var(--line-strong);
    border-radius: 20px;
}

.ad-band__label,
.ad-slot__label {
    display: block;
    color: #9aa0b4;
    font-size: .58rem;
    font-weight: 750;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.ad-band__slots {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-top: 10px;
}

.ad-band .ad-slot {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: center;
    min-width: 0;
    padding: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.ad-band .ad-slot__label {
    display: none;
}

.ad-slot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.game-sidebar .ad-slot {
    padding: 16px 10px 10px;
    background: rgba(255, 255, 255, .6);
    border: 1px dashed var(--line-strong);
    border-radius: 18px;
}

.game-sidebar .ad-slot > div,
.container > .ad-slot > div {
    max-width: 100%;
    overflow: hidden;
}

.container > .ad-slot {
    width: 300px;
    margin: 0 auto 58px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    padding-top: 56px;
    margin-top: 36px;
    color: #aab0c8;
    background: #111326;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .8fr 1fr 1.1fr;
    gap: 42px;
    padding-bottom: 44px;
}

.brand--footer .brand__name {
    color: #fff;
}

.brand--footer .brand__sub {
    color: #8ff5e5;
}

.brand--footer:hover .brand__name {
    color: #fff;
}

.footer-brand p {
    max-width: 26rem;
    margin: 16px 0;
    color: #8c93ad;
    font-size: .82rem;
    line-height: 1.7;
}

.footer-pill {
    display: inline-flex;
    padding: .34rem .64rem;
    color: #c8cde2;
    font-size: .68rem;
    font-weight: 700;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
}

.footer-col h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.footer-col a {
    color: #9ba2ba;
    font-size: .83rem;
    text-decoration: none;
}

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

.footer-note {
    margin: 6px 0 0;
    color: #7c839c;
    font-size: .73rem;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-bottom p {
    margin: 0;
    color: #7c839c;
    font-size: .73rem;
}

.back-to-top {
    color: #c8cde2;
    font-size: .74rem;
    font-weight: 700;
    text-decoration: none;
}

.back-to-top:hover {
    color: #fff;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .hero-tile--2 {
        animation: float 7s ease-in-out infinite;
    }

    .hero-tile--3 {
        animation: float 9s ease-in-out infinite reverse;
    }

    .hero-bubble--play {
        animation: float 6s ease-in-out infinite;
    }

    .hero-bubble--browser {
        animation: float 8s ease-in-out infinite reverse;
    }
}

@keyframes float {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .hero__inner {
        gap: 38px;
    }

    .hero__art {
        min-height: 460px;
    }

    .spotlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-body {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .content-panel__body,
    .faq {
        gap: 34px;
    }
}

@media (max-width: 900px) {
    :root {
        --header-h: 68px;
    }

    .header-inner {
        min-height: var(--header-h);
    }

    .header-panel {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        gap: 14px;
        align-items: stretch;
        padding: 18px 20px 22px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 30px 44px -30px rgba(20, 22, 50, .4);
    }

    .site-header.is-open .header-panel {
        display: flex;
    }

    .site-nav {
        flex-direction: column;
        gap: 2px;
        align-items: stretch;
    }

    .site-nav a {
        padding: .72rem .85rem;
        border-radius: 11px;
    }

    .header-search {
        width: 100%;
    }

    .header-search:focus-within {
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero__art {
        width: min(100%, 560px);
        min-height: 420px;
        margin-inline: auto;
    }

    .hero__stats {
        max-width: none;
    }

    .game-hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .game-hero__media {
        max-width: 720px;
    }

    .game-body {
        grid-template-columns: 1fr;
    }

    .game-sidebar {
        position: static;
    }

    .content-panel__body,
    .faq {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .faq {
        padding-top: 38px;
        margin-top: 42px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .container {
        width: calc(100% - 32px);
    }

    .section-heading {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .section-note {
        white-space: normal;
    }

    .game-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .game-card__excerpt {
        min-height: 0;
    }

    .spotlight-grid {
        grid-template-columns: 1fr;
    }

    .hero__stats {
        gap: 20px;
        justify-content: space-between;
    }

    .hero__stats strong {
        font-size: 1.2rem;
    }

    .hero__art {
        min-height: 330px;
    }

    .hero-tile {
        border-radius: 18px;
    }

    .hero-tile__caption {
        right: 13px;
        bottom: 12px;
        left: 13px;
    }

    .hero-tile__caption strong {
        font-size: .85rem;
    }

    .hero-tile--1 .hero-tile__caption strong {
        font-size: 1rem;
    }

    .hero-bubble {
        display: none;
    }

    .game-hero__actions .btn,
    .hero__actions .btn {
        width: 100%;
    }

    .game-callout {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 22px;
    }

    .game-callout .btn {
        width: 100%;
    }

    .game-detail {
        padding-top: 10px;
    }

    .game-hero__info h1 {
        font-size: clamp(2rem, 11vw, 2.9rem);
    }

    .prose--game {
        border-radius: 18px;
    }

    .page-search {
        flex-wrap: wrap;
        padding: 12px;
    }

    .page-search > svg {
        margin-left: 4px;
    }

    .page-search input {
        flex: 1 1 calc(100% - 48px);
    }

    .page-search .btn {
        width: 100%;
    }

    .ad-band {
        padding: 12px 8px;
    }

    .ad-band .ad-slot {
        padding: 4px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-link--arrow span {
        display: none;
    }
}

@media (max-width: 420px) {
    .hero__stats {
        flex-wrap: wrap;
    }

    .page-link {
        min-width: 38px;
        height: 38px;
        padding: 0 9px;
        font-size: .8rem;
    }
}
