/* =============================================================
   Gaming Corner theme (P7).

   Loaded after every other stylesheet on every page. It holds the
   design tokens and the shared look: dark background, one amber
   accent (the "Gaming" color of the logo), purple only in small
   marks, a thin see-through header, and thumbnails of one shape.
   ============================================================= */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(/fonts/inter-latin-wght.woff2) format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(/fonts/inter-latin-ext-wght.woff2) format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #0b0b11;
    --bg-page: #0b0b11;
    --surface: #14141c;
    --surface-2: #1c1c27;
    --surface-3: #262633;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.14);

    --text: #f3f3f7;
    --text-2: #a9a9bc;
    --text-3: #6f6f84;

    --accent: #ffa31a;
    --accent-strong: #f57e12;
    --accent-soft: rgba(255, 163, 26, 0.14);
    --accent-glow: rgba(255, 163, 26, 0.35);
    --accent-ink: #1d1203;

    /* Purple stays only in small marks. The logo has no purple. */
    --brand: #5a10e4;
    --brand-soft: rgba(90, 16, 228, 0.22);

    /* Old token names used by base.css, game.css and the page stylesheets. */
    --accent-yellow: var(--accent);
    --accent-amber: var(--accent-strong);
    --accent-gold: #ffb547;
    --accent2: #ffb547;
    --gold: var(--accent);
    --glow: var(--accent-soft);
    --card: var(--surface);
    --hover: var(--surface-2);
    --border: var(--line-strong);
    --bg-card: var(--surface);
    --bg-elevated: var(--surface);
    --bg-dark: var(--bg);
    --purple: var(--accent-strong);
    --purple-light: #ffb547;
    --purple-bright: #ffb547;

    --thumb-radius: 14px;
    --thumb-ratio: 16 / 10;
    --header-h: 64px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    background: var(--bg);
    color-scheme: dark;
}

body {
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(90, 16, 228, 0.10), transparent 60%),
        radial-gradient(900px 400px at -10% 0%, rgba(255, 163, 26, 0.05), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- Icons ---------- */
svg.icon {
    width: 1em;
    height: 1em;
    flex: none;
    display: inline-block;
    vertical-align: -0.125em;
}

/* ---------- Header: thin, see-through, stays on top ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 11, 17, 0.72);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid var(--line);
}

.header .container {
    height: var(--header-h);
    max-width: 1400px;
    gap: 16px;
}

.header .logo-icon {
    width: auto;
    height: 36px;
    border-radius: 0;
    object-fit: contain;
}

.site-footer .footer-logo-img {
    width: auto;
    height: 36px;
    border-radius: 0;
}

.header .navbar {
    gap: 2px;
}

.header .navbar a {
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 999px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.header .navbar a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.header .navbar a.active {
    color: var(--accent-ink);
    background: var(--accent);
}

.header .search-box {
    height: 38px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
}

.header .search-box .search-icon-gradient {
    color: var(--accent);
}

.header .menu-btn {
    color: var(--text);
}

/* ---------- Phone menu ---------- */
.sidebar {
    background: var(--surface);
    border-left: 1px solid var(--line);
}

.mobile-nav a.active {
    color: var(--accent);
}

/* ---------- Thumbnails: one shape, rounded, soft glow on hover ---------- */
.game-card,
.auto-gallery__card,
.related-games-row a,
.grid a,
.top-game-card,
.gc-card__thumb {
    border-radius: var(--thumb-radius);
    overflow: hidden;
    background: var(--surface-2);
    box-shadow: 0 0 0 1px var(--line);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.auto-gallery__card,
.gc-card__thumb {
    aspect-ratio: var(--thumb-ratio);
}

.game-card img,
.auto-gallery__card img,
.related-games-row a img,
.grid a img,
.gc-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.game-card:hover,
.game-card:focus-visible,
.auto-gallery__card:hover,
.auto-gallery__card:focus-visible,
.related-games-row a:hover,
.related-games-row a:focus-visible,
.grid a:hover,
.grid a:focus-visible,
a:hover > .gc-card__thumb,
a:focus-visible > .gc-card__thumb {
    transform: translateY(-3px);
    box-shadow: 0 0 0 2px var(--accent), 0 10px 32px var(--accent-glow);
}

/* Category pages: show the game name on each card. */
.auto-gallery__title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 12px 9px;
    background: linear-gradient(to top, rgba(8, 8, 12, 0.92), rgba(8, 8, 12, 0));
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    opacity: 1;
    transform: none;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* ---------- Buttons and small accents ---------- */
.share-btn,
.play-btn,
.fs-btn {
    border-radius: 999px;
}

.share-btn {
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.fs-btn,
.fs-exit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Category tiles on /categories and the homepage. */
.category-grid .card div.icon,
#all-categories .card div.icon {
    background: var(--accent-soft);
    color: var(--accent);
}

.category-grid .card a,
#all-categories .card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* The icon inside a tile, and the arrow link, keep a fixed small size. */
#all-categories .card svg.icon,
.category-grid .card svg.icon {
    width: 28px;
    height: 28px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    transform: none;
}

#all-categories .card a svg.icon,
.category-grid .card a svg.icon {
    width: 18px;
    height: 18px;
}

.category-grid .card a,
#all-categories .card a {
    border-color: var(--line-strong);
    color: var(--accent);
}

.category-grid .card a:hover,
#all-categories .card a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.fs-btn {
    color: var(--accent-ink);
}

/* Decorative side lines next to the FAQ. */
.faq__line {
    display: none;
}

/* FAQ accordion marks on the category pages and the homepage. */
.faq__q-icon {
    background: var(--accent-soft);
    color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.site-footer .footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 991px) {
    .site-footer .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 500px) {
    .site-footer .footer-inner {
        grid-template-columns: 1fr;
    }
}

.site-footer h4 {
    color: var(--text);
}

.site-footer a {
    color: var(--text-2);
    transition: color 0.2s var(--ease);
}

.site-footer a:hover {
    color: var(--accent);
}

.site-footer .footer-tagline,
.site-footer .footer-bottom p {
    color: var(--text-3);
}

.footer-made .heart-icon,
.footer-made svg.icon {
    color: var(--accent);
    width: 14px;
    height: 14px;
    vertical-align: -2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* =============================================================
   Shared helpers
   ============================================================= */
.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;
}

.gc-section-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 14px;
}

.gc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    text-decoration: none;
    white-space: nowrap;
}

a.gc-chip:hover {
    background: var(--accent);
    color: var(--accent-ink);
}

.gc-chip--quiet {
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.06);
}

.gc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--text);
    font: 600 14px/1 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.gc-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.gc-btn[aria-pressed="true"] {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.gc-btn[aria-pressed="true"] svg.icon path {
    fill: currentColor;
}

kbd {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 8px;
    border-radius: 7px;
    border: 1px solid var(--line-strong);
    border-bottom-width: 3px;
    background: var(--surface-2);
    color: var(--text);
    font: 600 12px/1 'Inter', system-ui, sans-serif;
    white-space: nowrap;
}

/* =============================================================
   Game card (games.json)
   ============================================================= */
.gc-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}

.gc-card__thumb {
    position: relative;
    display: block;
}

.gc-card__name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-card:hover .gc-card__name {
    color: var(--accent);
}

.gc-card__badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
}

.gc-badge {
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
}

.gc-badge--new {
    background: var(--accent);
    color: var(--accent-ink);
}

.gc-badge--exclusive {
    background: var(--brand);
    color: #fff;
}

.gc-card__phone {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(11, 11, 17, 0.78);
    color: var(--text);
    font-size: 15px;
}

.gc-card--sm .gc-card__name {
    font-size: 13px;
}

/* A row of cards that scrolls sideways. */
.gc-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 200px;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 4px 4px 12px;
    margin: 0 -4px;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-3) transparent;
}

.gc-row > * {
    scroll-snap-align: start;
}

/* =============================================================
   Game page theater (P3)
   ============================================================= */
.gc-theater {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 8px;
}

.gc-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - var(--header-h) - 120px);
    min-height: 320px;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.45);
}

.gc-stage iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

.gc-stage__cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.gc-stage__cover[hidden] {
    display: none;
}

.gc-stage__backdrop {
    position: absolute;
    inset: -40px;
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(28px) brightness(0.45) saturate(1.2);
}

.gc-stage__art {
    position: relative;
    width: auto;
    height: auto;
    max-width: min(62%, 640px);
    max-height: 62%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    transform: translateY(-28px);
}

.gc-play {
    position: absolute;
    left: 50%;
    bottom: 9%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 30px 0 22px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 10px 30px var(--accent-glow), inset 0 -3px 0 rgba(0, 0, 0, 0.18);
    transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.gc-play:hover,
.gc-play:focus-visible {
    background: #ffb547;
    transform: translateX(-50%) scale(1.05);
}

.gc-play__icon {
    font-size: 22px;
    display: inline-flex;
}

.gc-desktop-note {
    display: none;
}

.gc-fs-exit {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(11, 11, 17, 0.8);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s var(--ease);
}

.gc-stage.fullscreen-active {
    position: fixed;
    inset: 0;
    z-index: 1000;
    max-height: none;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    aspect-ratio: auto;
    border-radius: 0;
}

.gc-stage.fullscreen-active .gc-fs-exit {
    display: inline-flex;
}

.gc-stage.fullscreen-active.idle .gc-fs-exit {
    opacity: 0;
}

body.fs-locked {
    overflow: hidden;
}

.gc-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    padding: 14px 4px 0;
}

.gc-bar__info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.gc-bar__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-bar__keys {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gc-bar__actions {
    display: flex;
    gap: 8px;
}

.gc-related {
    padding: 28px 0 8px;
}

@media (max-width: 760px) {
    .gc-theater {
        padding: 12px 12px 4px;
    }

    .gc-stage {
        aspect-ratio: auto;
        height: min(72svh, 600px);
        max-height: none;
        border-radius: 14px;
    }

    .gc-stage__art {
        max-width: 84%;
        max-height: 55%;
        transform: translateY(-36px);
    }

    .gc-bar__keys {
        display: none;
    }

    .gc-bar__actions .gc-btn span {
        display: none;
    }

    .gc-bar__actions .gc-btn {
        width: 40px;
        padding: 0;
        justify-content: center;
    }

    .gc-row {
        grid-auto-columns: 46%;
        gap: 12px;
    }
}

/* Phones and tablets: keyboard-only games say so and offer phone games. */
@media (hover: none) and (pointer: coarse) {
    .gc-desktop-note {
        display: block;
        position: absolute;
        inset: auto 12px 12px 12px;
        padding: 12px;
        border-radius: 14px;
        background: rgba(11, 11, 17, 0.9);
        border: 1px solid var(--line-strong);
    }

    .gc-stage:has(.gc-desktop-note) .gc-play {
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -50%);
        height: 48px;
        font-size: 16px;
    }

    .gc-stage:has(.gc-desktop-note) .gc-stage__art {
        transform: translateY(-110px);
        max-width: 60%;
        max-height: 30%;
    }

    .gc-desktop-note__title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 15px;
        font-weight: 800;
        color: var(--accent);
        margin: 0;
    }

    .gc-desktop-note__text {
        font-size: 13px;
        color: var(--text-2);
        margin: 4px 0 10px;
    }

    .gc-desktop-note__games {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
}

/* Article images never grow wider than the text column. */
.game-info-section img,
.faq-section img {
    max-width: 100%;
    height: auto;
}

.gc-card--sm .gc-card__badges {
    display: none;
}

/* =============================================================
   Homepage (P4)
   ============================================================= */
.gc-home {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 0;
}

.gc-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    padding: 18px;
    border-radius: 22px;
    background:
        radial-gradient(600px 300px at 0% 0%, rgba(90, 16, 228, 0.28), transparent 70%),
        radial-gradient(500px 260px at 100% 100%, rgba(255, 163, 26, 0.14), transparent 70%),
        var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
}

.gc-hero__art {
    display: block;
    aspect-ratio: 1.9 / 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.gc-hero__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.gc-hero__art:hover img {
    transform: scale(1.03);
}

.gc-hero__body {
    padding: 8px 12px 8px 0;
}

.gc-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-2);
}

.gc-hero__title {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--text);
}

.gc-hero__blurb {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.gc-hero__play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 28px 0 22px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 30px var(--accent-glow), inset 0 -3px 0 rgba(0, 0, 0, 0.18);
    transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.gc-hero__play:hover {
    background: #ffb547;
    transform: translateY(-1px);
}

.gc-hero__play svg.icon {
    font-size: 20px;
}

/* Category chips stay under the header while the page scrolls. */
.gc-chips {
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    display: flex;
    gap: 8px;
    margin: 24px -24px 8px;
    padding: 10px 24px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(11, 11, 17, 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.gc-chips::-webkit-scrollbar {
    display: none;
}

.gc-chips .gc-chip {
    height: 34px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.gc-chips .gc-chip:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.gc-home-row {
    padding: 22px 0 6px;
    scroll-margin-top: calc(var(--header-h) + 64px);
}

.gc-home-row[hidden] {
    display: none;
}

.gc-home-row__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.gc-home-row .gc-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gc-home-row__badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gc-home-row__more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
    text-decoration: none;
    white-space: nowrap;
}

.gc-home-row__more:hover {
    color: var(--accent);
}

.gc-home > .ad-slot {
    margin-top: 32px;
    margin-bottom: 32px;
}

/* Long text under "Read more". The text is in the HTML and rendered; only
   its height is limited until the visitor opens it (D1). */
.gc-readmore {
    position: relative;
    margin-top: 24px;
}

.gc-readmore__content {
    max-height: 560px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

.gc-readmore__toggle:checked ~ .gc-readmore__content {
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
}

.gc-readmore__btn {
    display: flex;
    width: max-content;
    margin: 8px auto 0;
    align-items: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.gc-readmore__btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.gc-readmore__toggle:focus-visible ~ .gc-readmore__btn {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.gc-readmore__less,
.gc-readmore__toggle:checked ~ .gc-readmore__btn .gc-readmore__more {
    display: none;
}

.gc-readmore__toggle:checked ~ .gc-readmore__btn .gc-readmore__less {
    display: inline;
}

@media (max-width: 860px) {
    .gc-hero {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 12px;
    }

    .gc-hero__body {
        padding: 0 4px 6px;
    }
}

@media (max-width: 760px) {
    .gc-home {
        padding: 12px 12px 0;
    }

    .gc-chips {
        margin: 16px -12px 4px;
        padding: 10px 12px;
    }

    .gc-hero__blurb {
        font-size: 15px;
        margin-bottom: 16px;
    }
}

/* =============================================================
   Player memory (P5)
   ============================================================= */
.gc-home-row__clear {
    border: 0;
    background: none;
    color: var(--text-3);
    font: 600 13px/1 'Inter', system-ui, sans-serif;
    cursor: pointer;
    padding: 6px 4px;
}

.gc-home-row__clear:hover {
    color: var(--accent);
}

.gc-btn[hidden] {
    display: none;
}

.gc-btn--fav[aria-pressed="true"] svg.icon {
    fill: currentColor;
}

/* =============================================================
   Search window and phone tab bar (P6)
   ============================================================= */
.header .search-box {
    cursor: pointer;
}

.header .search-box input {
    cursor: pointer;
}

.search-box__key {
    height: 22px;
    padding: 0 7px;
    margin-left: 6px;
    border-bottom-width: 2px;
    color: var(--text-2);
}

@media (hover: none) {
    .search-box__key {
        display: none;
    }
}

.gc-search {
    width: min(920px, calc(100vw - 32px));
    max-width: none;
    max-height: min(780px, calc(100vh - 64px));
    margin: 48px auto auto;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.gc-search::backdrop {
    background: rgba(5, 5, 9, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.gc-search__panel {
    display: flex;
    flex-direction: column;
    max-height: inherit;
}

.gc-search__top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 10px;
}

.gc-search__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 16px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    color: var(--accent);
    font-size: 20px;
}

.gc-search__field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.gc-search__field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: none;
    color: var(--text);
    font: 500 17px/1 'Inter', system-ui, sans-serif;
}

.gc-search__field input::placeholder {
    color: var(--text-3);
}

.gc-search__close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
}

.gc-search__filters {
    display: flex;
    gap: 8px;
    padding: 2px 16px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--line);
}

.gc-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--text-2);
    font: 600 13px/1 'Inter', system-ui, sans-serif;
    white-space: nowrap;
    cursor: pointer;
}

.gc-filter:hover {
    color: var(--text);
}

.gc-filter[aria-pressed="true"] {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.gc-search.is-favorites .gc-search__filters {
    display: none;
}

.gc-search__body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px 6px;
}

.gc-search__section + .gc-search__section {
    margin-top: 18px;
}

.gc-search__heading {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-2);
}

.gc-search__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.gc-search__empty {
    margin: 4px 0 12px;
    color: var(--text-2);
    font-size: 15px;
}

.gc-search__hint {
    margin: 0;
    padding: 10px 16px 12px;
    border-top: 1px solid var(--line);
    color: var(--text-3);
    font-size: 12px;
}

.gc-search__hint kbd {
    height: 20px;
    font-size: 11px;
}

/* Phone tab bar */
.gc-tabbar {
    display: none;
}

@media (max-width: 760px) {
    .gc-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        background: rgba(14, 14, 20, 0.92);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-top: 1px solid var(--line);
    }

    .gc-tabbar__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 4px 0;
        color: var(--text-2);
        font-size: 11px;
        font-weight: 600;
        text-decoration: none;
    }

    .gc-tabbar__item svg.icon {
        font-size: 22px;
    }

    .gc-tabbar__item[aria-current="page"],
    .gc-tabbar__item:active {
        color: var(--accent);
    }

    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }

    body.fs-locked .gc-tabbar {
        display: none;
    }

    .gc-search {
        width: 100vw;
        max-height: none;
        height: 100%;
        margin: 0;
        border: 0;
        border-radius: 0;
    }

    .gc-search__hint {
        display: none;
    }

    .gc-search__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* =============================================================
   Cookie consent bar (public/consent.js)
   ============================================================= */
.gc-consent {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 950;
    transform: translateX(-50%);
    width: min(680px, calc(100vw - 24px));
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 10px 10px 18px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: rgba(20, 20, 28, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.gc-consent[hidden] {
    display: none;
}

.gc-consent__text {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text);
}

.gc-consent__text a {
    color: var(--text-2);
    text-decoration: underline;
    white-space: nowrap;
}

.gc-consent__actions {
    display: flex;
    gap: 8px;
    flex: none;
}

/* Both buttons have the same size and stay readable. Accept is filled. */
.gc-consent__btn {
    min-width: 92px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    font: 700 14px/1 'Inter', system-ui, sans-serif;
    cursor: pointer;
}

.gc-consent__btn--accept {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
}

.gc-consent__btn--accept:hover {
    background: #ffb547;
}

.gc-consent__btn--reject {
    border: 1px solid var(--text-2);
    background: transparent;
    color: var(--text);
}

.gc-consent__btn--reject:hover {
    border-color: var(--text);
}

.footer-link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-2);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.footer-link-btn:hover {
    color: var(--accent);
}

/* After "Reject", empty ad boxes close. */
.ads-off .ad-slot {
    display: none;
}

@media (max-width: 760px) {
    .gc-consent {
        bottom: calc(72px + env(safe-area-inset-bottom));
        gap: 10px;
        padding: 8px 8px 8px 14px;
    }

    .gc-consent__text {
        font-size: 13px;
    }

    .gc-consent__btn {
        min-width: 74px;
        height: 36px;
        padding: 0 12px;
    }
}

@media (max-width: 380px) {
    .gc-consent {
        flex-wrap: wrap;
    }

    .gc-consent__actions {
        width: 100%;
    }

    .gc-consent__btn {
        flex: 1;
    }
}
