/* Tildrix Map (gtamap.tildrix.dev) - dark, Vice City sunset accent. The map itself: assets/gta-map/map.css, which loads
   after this file - rules here that change its layout start with `.gm-main` to win. */
:root {
    --gm-bg: #0d0a16;
    --gm-surface: #171226;
    --gm-surface-2: #1f1833;
    --gm-border: #2e2647;
    --gm-text: #f1eefb;
    --gm-muted: #a99fc4;
    --gm-pink: #ff4fa3;
    --gm-orange: #ffb347;
    --gm-radius: 14px;
    --gta-border: var(--gm-border);
    --gta-muted: var(--gm-muted);
    --gta-tile: var(--gm-surface-2);
    --gta-accent: var(--gm-pink);
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    background: radial-gradient(1200px 500px at 85% -10%, rgba(255, 79, 163, .16), transparent 60%), radial-gradient(900px 400px at -10% 0%, rgba(255, 179, 71, .10), transparent 60%), var(--gm-bg);
    color: var(--gm-text); font: 16px/1.55 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: #ff8cc6; }
a:hover { color: #ffc2e0; }
h1, h2, h3 { font-family: 'Space Grotesk', system-ui, sans-serif; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: .2rem 0 .6rem; }
h2 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; }
h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
code { font-size: .9em; color: #ffd39a; }
.gm-skip { position: absolute; left: -999px; }
.gm-skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--gm-surface); padding: .5rem 1rem; border-radius: 8px; }

.gm-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--gm-border); background: rgba(13, 10, 22, .85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 1000; }
.gm-brand { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; color: var(--gm-text); }
.gm-brand img { display: block; height: 30px; width: auto; }
.gm-brand span { font: 700 1.25rem/1 'Space Grotesk', sans-serif; background: linear-gradient(90deg, var(--gm-pink), var(--gm-orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gm-nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.4rem); font-weight: 600; }
.gm-nav > a { color: var(--gm-text); text-decoration: none; }
.gm-nav > a:hover { color: var(--gm-pink); }
.gm-account { max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-account::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; margin-right: 6px; vertical-align: 2px; }
.gm-signin { padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--gm-pink); }
.gm-lang { position: relative; }
.gm-lang summary { list-style: none; cursor: pointer; padding: .3rem .6rem; border: 1px solid var(--gm-border); border-radius: 8px; font-size: .85rem; }
.gm-lang summary::-webkit-details-marker { display: none; }
.gm-lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: .35rem; list-style: none; background: var(--gm-surface); border: 1px solid var(--gm-border); border-radius: 10px; min-width: 10rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.gm-lang a { display: block; padding: .35rem .7rem; border-radius: 6px; color: var(--gm-text); text-decoration: none; font-weight: 500; }
.gm-lang a:hover, .gm-lang a[aria-current] { background: var(--gm-surface-2); }

.gm-main { flex: 1 0 auto; width: 100%; max-width: 1500px; margin: 0 auto; padding: clamp(16px, 3vw, 32px); }
.gm-eyebrow { margin: 0; font: 700 .78rem/1 'Space Grotesk', sans-serif; letter-spacing: .18em; color: var(--gm-orange); }
.gm-lead { color: #d8d1ec; max-width: 70ch; font-size: 1.05rem; margin: 0 0 1rem; }
.gm-muted { color: var(--gm-muted); }
.gm-strong { font-weight: 700; }
.gm-hero { padding: 1.5rem 0 .5rem; }

.gm-button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1.1rem; border-radius: 10px; border: 1px solid var(--gm-border); background: var(--gm-surface-2); color: var(--gm-text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.gm-button:hover { border-color: var(--gm-pink); color: var(--gm-text); }
.gm-primary { background: linear-gradient(90deg, var(--gm-pink), #ff7a6b); border-color: transparent; color: #1a0712; }
.gm-primary:hover { filter: brightness(1.08); color: #1a0712; }
.gm-linkbutton { border: 0; background: none; padding: 0; font: inherit; color: #ff8cc6; text-decoration: underline; cursor: pointer; }
.gm-chip { padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--gm-border); background: var(--gm-surface-2); color: var(--gm-text); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.gm-chip:hover { border-color: var(--gm-pink); }
.gm-switch { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; cursor: pointer; }
.gm-switch input { accent-color: var(--gm-pink); width: 1rem; height: 1rem; margin: 0; }
.gm-switch[hidden] { display: none; }

.gm-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.gm-game { display: flex; flex-direction: column; background: var(--gm-surface); border: 1px solid var(--gm-border); border-radius: var(--gm-radius); overflow: hidden; }
.gm-game-cover { display: block; height: 130px; background: var(--cover, none) center / cover no-repeat, linear-gradient(135deg, #2a0838, #8a1f5c 55%, #e8603a); position: relative; }
.gm-game-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(23, 18, 38, .9)); }
.gm-game-body { padding: .9rem 1rem .4rem; flex: 1; }
.gm-game h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.gm-game h2 a { color: var(--gm-text); text-decoration: none; }
.gm-game p { margin: .1rem 0; font-size: .92rem; }
.gm-game > .gm-button { margin: .5rem 1rem 1rem; }

.gm-popular ul { list-style: none; padding: 0; margin: .5rem 0 2rem; columns: 3 260px; column-gap: 1.5rem; }
.gm-popular li { padding: .2rem 0; break-inside: avoid; font-size: .95rem; }
.gm-alias { font-size: .75em; font-weight: 600; }
.gm-faq details { background: var(--gm-surface); border: 1px solid var(--gm-border); border-radius: 10px; padding: .7rem 1rem; margin: .5rem 0; max-width: 80ch; }
.gm-faq summary { cursor: pointer; font-weight: 700; }
.gm-faq p { margin: .5rem 0 0; color: #d8d1ec; }

.gm-crumbs { font-size: .85rem; color: var(--gm-muted); display: flex; flex-wrap: wrap; gap: .4rem; }
.gm-crumbs a { color: var(--gm-muted); }
.gm-page-head { margin: .4rem 0 1rem; }
.gm-panel { background: var(--gm-surface); border: 1px solid var(--gm-border); border-radius: var(--gm-radius); overflow: hidden; }
.gm-panel-head { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--gm-border); }
.gm-progress-note { margin: 0; padding: .6rem 1rem; font-size: .82rem; color: var(--gm-muted); border-bottom: 1px solid var(--gm-border); }
.gm-search { padding: .75rem 1rem 0; }
.gm-search input { width: 100%; padding: .5rem .7rem; border-radius: 8px; border: 1px solid var(--gm-border); background: var(--gm-bg); color: var(--gm-text); font: inherit; font-size: .9rem; }
.gm-search input:focus { outline: 2px solid var(--gm-pink); outline-offset: 0; }
.gm-loading { padding: 2rem; text-align: center; color: var(--gm-muted); }
.gta-kind > a:not(.gta-kind-link) { display: flex; align-items: center; gap: .5rem; color: var(--gm-text); text-decoration: none; flex: 1; min-width: 0; }

.gm-list ol { padding-left: 1.4rem; display: grid; gap: .6rem; }
.gm-list li { background: var(--gm-surface); border: 1px solid var(--gm-border); border-radius: 10px; padding: .6rem .9rem; }
.gm-list li p { margin: .25rem 0; color: #d8d1ec; font-size: .92rem; }
.gm-about { margin-top: 2rem; }
/* Categories under the map: one card per group, a whole row is the link - icon, name (wraps), count on the right. */
/* Columns, not a grid row: a short group ("Other") fills the space under another instead of a row of its own. */
.gm-kind-links { columns: 4 250px; column-gap: 1rem; }
.gm-kind-links > div { break-inside: avoid; margin-bottom: 1rem; padding: .75rem .5rem .5rem; border: 1px solid var(--gm-border); border-radius: var(--gm-radius); background: var(--gm-surface); }
.gm-kind-links h3 { margin: 0 .55rem .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gm-muted); }
.gm-kind-links ul { list-style: none; padding: 0; margin: 0; }
.gm-kind-links a { display: flex; align-items: baseline; gap: .55rem; padding: .36rem .55rem; border-radius: 8px; color: var(--gm-text); text-decoration: none; font-size: .92rem; }
.gm-kind-links a:hover, .gm-kind-links a:focus-visible { background: var(--gm-surface-2); color: var(--gm-text); }
.gm-kind-links a:hover .gm-kind-name { color: #ffc2e0; }
.gm-kind-icon { flex: none; width: 1.35em; text-align: center; }
.gm-kind-name { flex: 1; min-width: 0; }
.gm-kind-count { flex: none; color: var(--gm-muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.gm-sources { font-size: .85rem; color: var(--gm-muted); }

.gm-prose { max-width: 80ch; margin: 0 auto; }
.gm-prose p, .gm-prose li { color: #e2dcf2; }
.gm-note { font-size: .85rem; color: var(--gm-orange); }
.gm-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.gm-table th, .gm-table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--gm-border); }
.gm-danger { margin: 1.5rem 0; padding: 1rem; border: 1px solid #5a2440; border-radius: 10px; }
.gm-alert { margin: 0 auto 1rem; max-width: 1500px; padding: .7rem 1rem; border-radius: 10px; background: #3a1420; border: 1px solid #6b2538; }
.gm-ok { background: #123222; border-color: #22603e; }
.gm-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2600; max-width: calc(100vw - 32px); margin: 0; padding: .7rem 1.1rem; border-radius: 10px; background: #123222; border: 1px solid #22603e; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

.gm-footer { border-top: 1px solid var(--gm-border); padding: 1.2rem clamp(16px, 3vw, 32px) 1.6rem; font-size: .8rem; color: var(--gm-muted); }
.gm-footer p { max-width: 110ch; margin: .3rem 0; }
.gm-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; margin-top: .7rem !important; }
/* The owner's shop (GtaMapSite::SHOPS): a pill in the site's pink-to-orange, in its own column at the right edge of the
   footer (below the links on narrow screens). */
.gm-footer-shop { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: center; }
.gm-footer a.gm-shop { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .95rem .45rem .7rem; border-radius: 999px; border: 1px solid rgba(255, 79, 163, .55); background: linear-gradient(135deg, rgba(255, 79, 163, .2), rgba(255, 179, 71, .12)); color: var(--gm-text); text-decoration: none; line-height: 1.15; box-shadow: 0 4px 18px rgba(255, 79, 163, .12); transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.gm-footer a.gm-shop:hover, .gm-footer a.gm-shop:focus-visible { color: #fff; border-color: var(--gm-pink); background: linear-gradient(135deg, rgba(255, 79, 163, .32), rgba(255, 179, 71, .2)); box-shadow: 0 6px 22px rgba(255, 79, 163, .25); transform: translateY(-1px); }
.gm-shop-icon { flex: none; width: 22px; height: 22px; color: var(--gm-pink); }
.gm-shop-text { display: flex; flex-direction: column; }
.gm-shop-text strong { font-size: .88rem; font-weight: 700; }
.gm-shop-text small { color: var(--gm-muted); font-size: .72rem; }
.gm-shop-arrow { color: var(--gm-pink); font-weight: 700; }
@media (max-width: 760px) { .gm-footer-shop { grid-template-columns: 1fr; } .gm-footer a.gm-shop { justify-self: start; margin-top: .9rem; } }
@media (prefers-reduced-motion: reduce) { .gm-footer a.gm-shop { transition: none; transform: none; } }
.gm-footer-links a, .gm-footer-links .gm-linkbutton { color: #d8d1ec; font-size: .85rem; }

.gm-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 3000; max-width: 560px; margin-left: auto; padding: 1rem 1.2rem; border-radius: var(--gm-radius); background: var(--gm-surface); border: 1px solid var(--gm-border); box-shadow: 0 18px 50px rgba(0, 0, 0, .6); }
.gm-consent h2 { margin: 0 0 .4rem; font-size: 1.05rem; }
.gm-consent p { margin: 0 0 .8rem; font-size: .9rem; color: #d8d1ec; }
/* Reject as prominent as Accept (EDPB cookie banner report). */
.gm-consent-buttons { display: flex; gap: .6rem; }
.gm-consent-buttons .gm-button { flex: 1; }

.gm-main .gta-map-layout { height: calc(100vh - 200px); position: relative; }
/* Map pages use the whole width; on desktop the map fills the window down to its bottom edge (app.js sets --gm-fit). */
body[data-page="map"] .gm-main, body[data-page="kind"] .gm-main { max-width: none; }
.gm-fullscreen { display: none; }
.gm-side-collapse { display: none; }
/* "Nearest" on the map: top right on phones, under the full screen button on desktop. */
.gm-nearest { position: absolute; z-index: 900; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border-radius: 999px;
    border: 1px solid var(--gm-pink); background: rgba(23, 18, 38, .94); color: var(--gm-text); font: inherit; font-size: .85rem; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); cursor: pointer; transition: transform .15s ease; }
.gm-nearest:hover { transform: translateY(-1px); }
.gm-main .gta-nearest { top: 54px; background: var(--gm-surface); color: var(--gm-text); }
@media (min-width: 992px) {
    body[data-page="map"] .gm-main, body[data-page="kind"] .gm-main { padding-top: 12px; }
    body[data-page="map"] .gm-page-head, body[data-page="kind"] .gm-page-head { margin: .15rem 0 .7rem; }
    body[data-page="map"] .gm-page-head h1, body[data-page="kind"] .gm-page-head h1 { font-size: 1.6rem; margin: .1rem 0 .25rem; }
    body[data-page="map"] .gm-page-head .gm-lead, body[data-page="kind"] .gm-page-head .gm-lead { font-size: .95rem; margin: 0; max-width: none; }
    .gm-main .gta-map-layout { grid-template-columns: 330px minmax(0, 1fr); height: calc(100dvh - var(--gm-fit, 200px) - 14px); min-height: 520px; }
    .gm-fullscreen:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 10px; right: 10px; z-index: 900;
        width: 34px; height: 34px; border-radius: 8px; border: 2px solid rgba(0, 0, 0, .25); background: #fff; color: #1b1f2a; font-size: 1.1rem; line-height: 1; cursor: pointer; }
    .gm-fullscreen:hover { background: #f1f1f4; }
    /* SVG, not the ⛶ character: Windows and Android fonts do not have it (a box instead). */
    .gm-fullscreen .gm-fs-exit, .gm-fullscreen[aria-pressed="true"] .gm-fs-enter { display: none; }
    .gm-fullscreen[aria-pressed="true"] .gm-fs-exit { display: block; }
    .gm-nearest { top: 10px; right: 54px; }
    .gm-main .gta-map-layout:fullscreen { height: 100vh; min-height: 0; padding: 10px; background: var(--gm-bg); }
    /* The list hidden: one column for the map; the "Categories" pill (the phones' sheet button) brings it back. */
    .gm-side-collapse { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; margin-left: .5rem; padding: 0;
        border: 1px solid var(--gm-border); border-radius: 8px; background: var(--gm-surface-2); color: var(--gm-text); font-size: 1.05rem; line-height: 1; cursor: pointer; }
    .gm-side-collapse:hover { border-color: var(--gm-pink); }
    .gm-panel-head .gm-muted { margin-left: auto; }
    /* Hiding the list: its column shrinks to nothing (grid tracks animate), the content keeps its width and is cut off
       by the panel, so it slides away instead of squeezing; it fades out, and is out of the tab order once gone. */
    .gm-main .gta-map-layout { transition: grid-template-columns .32s cubic-bezier(.4, 0, .2, 1), column-gap .32s cubic-bezier(.4, 0, .2, 1); }
    .gm-main .gta-map-side { transition: opacity .25s ease .05s, visibility 0s linear 0s; }
    .gm-main .gta-map-side > * { min-width: 328px; }
    .gm-main .gm-side-collapsed { grid-template-columns: 0px minmax(0, 1fr); column-gap: 0; }
    .gm-main .gm-side-collapsed .gta-map-side { opacity: 0; visibility: hidden; border-width: 0; transition: opacity .15s ease, visibility 0s linear .32s; }
    .gm-side-collapsed .gm-drawer-open { display: inline-flex; align-items: center; gap: .45rem; position: absolute; left: 12px; bottom: 26px; z-index: 900;
        padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--gm-pink); background: rgba(23, 18, 38, .94); color: var(--gm-text); font: inherit; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .55); cursor: pointer; }
    .gm-side-collapsed .gm-drawer-total { font-weight: 500; font-size: .85rem; color: var(--gm-muted); }
    .gm-side-collapsed .gm-drawer-open { animation: gm-pill-in .35s .15s cubic-bezier(.2, .9, .3, 1.3) backwards; }
    .gm-side-collapsed .gm-drawer-open:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .6), 0 0 0 3px rgba(255, 79, 163, .25); }
    .gm-fullscreen { transition: transform .15s ease; }
    .gm-fullscreen:hover { transform: scale(1.08); }
    .gm-main .gta-map-layout:fullscreen .gm-fullscreen { top: 20px; right: 20px; }
}
.gm-main .gta-map { background: #0c1220; }
.gm-total-bar { height: 4px; background: var(--gm-surface-2); }
.gm-total-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gm-pink), var(--gm-orange)); transition: width .3s ease; }
.gm-error { color: #ff6b6b; }
.gm-file-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.gm-file-buttons label { margin: 0; }
.gm-progress-file { margin-top: 2rem; }
/* The categories as a sheet on phones (app.js toggles .gm-drawer-is-open); on wider screens a column beside the map. */
.gm-drawer-open, .gm-drawer-close, .gm-drawer-backdrop { display: none; }
.leaflet-container { font: inherit; }
.leaflet-control-attribution { font-size: 11px; }
@media (max-width: 991.98px) {
    .gm-nav { gap: .7rem; font-size: .92rem; }
    .gm-main .gta-map-layout { height: auto; display: block; position: relative; }
    .gm-main .gta-map { height: calc(100svh - 150px); min-height: 380px; }
    /* Map pages on a phone: the map starts high - one line of breadcrumbs, a small title, the lead cut to two lines
       (the whole text stays in the page for search engines). */
    body[data-page="map"] .gm-crumbs, body[data-page="kind"] .gm-crumbs { font-size: .78rem; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
    body[data-page="map"] .gm-page-head, body[data-page="kind"] .gm-page-head { margin: .2rem 0 .6rem; }
    body[data-page="map"] .gm-page-head h1, body[data-page="kind"] .gm-page-head h1 { font-size: 1.3rem; margin: .1rem 0 .2rem; }
    body[data-page="map"] .gm-page-head .gm-lead, body[data-page="kind"] .gm-page-head .gm-lead { font-size: .85rem; line-height: 1.35; margin: 0;
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
    .gm-drawer-open { display: inline-flex; align-items: center; gap: .45rem; position: absolute; left: 12px; bottom: 26px; z-index: 900; max-width: calc(100% - 24px);
        padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--gm-pink); background: rgba(23, 18, 38, .94); color: var(--gm-text); font: inherit; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .55); cursor: pointer; }
    .gm-drawer-total { font-weight: 500; font-size: .85rem; color: var(--gm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .gm-drawer-close { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; margin-left: .5rem; border: 1px solid var(--gm-border); border-radius: 50%; background: var(--gm-surface-2); color: var(--gm-text); font-size: 1.3rem; line-height: 1; cursor: pointer; }
    .gm-panel-head .gm-muted { margin-left: auto; }
    .gta-map-side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2500; max-height: 82svh; border-radius: 18px 18px 0 0; border-bottom: 0;
        transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; box-shadow: 0 -12px 40px rgba(0, 0, 0, .6); }
    .gm-drawer-is-open .gta-map-side { transform: none; visibility: visible; transition: transform .25s ease; }
    .gm-main .gta-map-side-body { max-height: none; padding-bottom: env(safe-area-inset-bottom); }
    .gm-drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 2400; background: rgba(0, 0, 0, .5); }
    .gm-drawer-backdrop[hidden] { display: none; }
}
/* Motion (prefers-reduced-motion turns it off below): the toast slides in, the sheet's backdrop fades, game cards rise
   one after another (--i from the template) and lift on hover, a finished category throws confetti (app.js). */
@keyframes gm-pill-in { from { opacity: 0; transform: translateY(10px) scale(.9); } }
/* Account nudge for guests (base.html.twig, app.js): a sheet from the bottom, then a quiet bar and a count on "Sign in". */
.gm-nudge { position: fixed; inset: 0; z-index: 2700; display: flex; align-items: flex-end; justify-content: center; }
.gm-nudge[hidden], .gm-nudge-bar[hidden], .gm-signin-count[hidden], .gm-langhint[hidden] { display: none; }
/* Language hint: under the sticky header, over the page; the same look as the nudge bar. */
.gm-langhint { position: fixed; top: 72px; left: 12px; right: 12px; z-index: 1100; max-width: 440px; margin: 0 auto; display: flex; align-items: center; gap: .75rem; padding: .55rem .6rem .55rem 1rem; border-radius: 12px; background: var(--gm-surface); border: 1px solid var(--gm-border); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font-size: .88rem; }
.gm-langhint span { flex: 1; color: var(--gm-muted); }
.gm-langhint a { color: var(--gm-pink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.gm-nudge-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.gm-nudge-sheet { position: relative; width: 100%; max-width: 440px; margin: 0 auto; padding: 1.1rem 1.2rem 1.2rem; border-radius: 18px 18px 0 0; background: var(--gm-surface); border: 1px solid var(--gm-border); border-bottom: 0; box-shadow: 0 -18px 50px rgba(0, 0, 0, .5); display: grid; gap: .6rem; }
.gm-nudge-head { display: flex; align-items: center; gap: .75rem; }
.gm-nudge-head h2 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.gm-nudge-count { flex: 0 0 auto; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(255, 79, 163, .16); color: var(--gm-pink); font: 700 1.1rem/1 'Space Grotesk', sans-serif; }
.gm-nudge-sheet p { margin: 0; color: var(--gm-muted); font-size: .95rem; }
.gm-nudge-sheet .gm-button { width: 100%; }
.gm-nudge-sheet .gm-nudge-note { font-size: .8rem; text-align: center; }
.gm-nudge-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 2500; max-width: 440px; margin: 0 auto; display: flex; align-items: center; gap: .75rem; padding: .55rem .6rem .55rem 1rem; border-radius: 12px; background: var(--gm-surface); border: 1px solid var(--gm-border); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font-size: .88rem; }
.gm-nudge-bar span { flex: 1; color: var(--gm-muted); }
.gm-nudge-bar a { color: var(--gm-pink); font-weight: 700; text-decoration: none; }
.gm-nudge-bar-close { border: 0; background: none; color: var(--gm-muted); font-size: 1.3rem; line-height: 1; padding: .2rem .4rem; cursor: pointer; }
.gm-signin-count { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; margin-left: .35rem; padding: 0 .35rem; border-radius: 999px; background: var(--gm-pink); color: #1a0712; font-size: .75rem; font-weight: 700; }
@keyframes gm-nudge-in { from { transform: translateY(100%); } }
.gm-nudge:not([hidden]) .gm-nudge-sheet { animation: gm-nudge-in .35s cubic-bezier(.2, .9, .3, 1.1); }
@media (min-width: 600px) { .gm-nudge { align-items: center; } .gm-nudge-sheet { border-radius: 18px; border-bottom: 1px solid var(--gm-border); } }
@keyframes gm-toast-in { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } }
@keyframes gm-fade-in { from { opacity: 0; } }
@keyframes gm-rise { from { opacity: 0; transform: translateY(14px); } }
.gm-toast:not([hidden]) { animation: gm-toast-in .4s cubic-bezier(.2, .9, .3, 1.25); }
.gm-drawer-backdrop:not([hidden]) { animation: gm-fade-in .25s ease; }
.gm-consent:not([hidden]) { animation: gm-rise .4s cubic-bezier(.2, .9, .3, 1.1); }
.gm-game { animation: gm-rise .45s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.gm-game:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); border-color: rgba(255, 79, 163, .45); }
.gm-game-cover { transition: filter .3s ease; }
/* No sliding while the page sets itself up (a list hidden last time is hidden at once, app.js). */
.gm-instant, .gm-instant * { transition: none !important; }
.gm-game:hover .gm-game-cover { filter: saturate(1.2) brightness(1.08); }
.gm-button, .gm-chip, .gm-signin { transition: border-color .15s ease, transform .15s ease, filter .15s ease, background-color .15s ease; }
.gm-button:active, .gm-chip:active { transform: scale(.96); }
.gm-confetti { position: fixed; z-index: 2700; width: 0; height: 0; pointer-events: none; }
.gm-confetti i { position: absolute; left: 0; top: 0; width: 8px; height: 12px; border-radius: 2px; background: var(--c); opacity: 0;
    animation: gm-confetti 1.1s cubic-bezier(.15, .7, .3, 1) forwards; animation-delay: var(--w, 0ms); }
@keyframes gm-confetti {
    0% { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(.6); }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .gta-map-side, .gm-drawer-is-open .gta-map-side, .gm-total-bar i, .gm-main .gta-map-layout, .gm-main .gta-map-side, .gm-game, .gm-game-cover, .gm-fullscreen { transition: none; }
    .gm-toast:not([hidden]), .gm-drawer-backdrop:not([hidden]), .gm-consent:not([hidden]), .gm-nudge:not([hidden]) .gm-nudge-sheet, .gm-game, .gm-side-collapsed .gm-drawer-open { animation: none; }
    .gm-game:hover, .gm-side-collapsed .gm-drawer-open:hover { transform: none; }
}
@media (max-width: 480px) {
    .gm-brand img { height: 24px; }
    .gm-nav > a:first-child { display: none; }
}
