/* Tildrix Map (maps.tildrix.dev) - dark, Vice City sunset accent; game themes on top: themes.css. 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; }
/* Home page: the game search over the cards (app.js filters them). */
.gm-game-search { margin: 1.4rem 0 .2rem; }
.gm-game-search-box { display: flex; align-items: center; gap: .6rem; max-width: 560px; padding: .15rem .5rem .15rem .9rem; border: 1px solid var(--gm-border); border-radius: 12px; background: var(--gm-surface); transition: border-color .15s ease, box-shadow .15s ease; }
.gm-game-search-box:focus-within { border-color: rgba(255, 79, 163, .6); box-shadow: 0 0 0 3px rgba(255, 79, 163, .15); }
.gm-game-search-box input { flex: 1; min-width: 0; padding: .65rem 0; border: 0; outline: 0; background: none; color: var(--gm-text); font: inherit; font-size: 1rem; }
.gm-game-search-box input::placeholder { color: var(--gm-muted); }
.gm-game-search-box kbd { padding: .1rem .45rem; border: 1px solid var(--gm-border); border-radius: 6px; color: var(--gm-muted); font: .75rem/1.4 ui-monospace, monospace; }
.gm-game-search-box:focus-within kbd { display: none; }
.gm-game-search-none { margin: .8rem 0 0; }
.gm-game[hidden] { display: none; }
@media (hover: none) { .gm-game-search-box kbd { display: none; } }
/* Home page: box art cards like a game library (2 columns on a phone). */
.gm-games-box { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .9rem; }
.gm-game-art { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: linear-gradient(135deg, #2a0838, #8a1f5c 55%, #e8603a); }
.gm-game-art img, .gm-game-art-map { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, filter .3s ease; }
.gm-game-art-map { background: var(--cover, none) center / cover no-repeat; }
.gm-game-box .gm-game-body { padding: .6rem .75rem .75rem; }
.gm-game-box h2 { font-size: 1rem; line-height: 1.25; }
.gm-game-box .gm-alias { display: block; font-size: .8rem; font-weight: 400; }
.gm-game-box p { font-size: .82rem; }
.gm-game-box:hover .gm-game-art img, .gm-game-box:hover .gm-game-art-map { transform: scale(1.04); filter: saturate(1.15) brightness(1.06); }
.gm-covers-credit { margin: -1rem 0 2rem; font-size: .8rem; }
/* Favourite games (Favorites): a star in the corner of the box art, and a pill next to a game page's heading. */
.gm-game-box { position: relative; }
.gm-fav { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font: inherit; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.gm-game-box > .gm-fav { position: absolute; top: .45rem; right: .45rem; z-index: 2; width: 2.2rem; height: 2.2rem; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(10, 8, 20, .62); color: #fff; font-size: 1.15rem; line-height: 1; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); transition: transform .15s ease, background .15s ease, color .15s ease; }
.gm-game-box > .gm-fav:hover { transform: scale(1.08); background: rgba(10, 8, 20, .8); }
.gm-game-box > a.gm-fav { opacity: .8; }
.gm-fav[aria-pressed="true"] .gm-fav-star { color: #ffcf4a; text-shadow: 0 0 10px rgba(255, 207, 74, .55); }
.gm-game-box.is-favorite { border-color: rgba(255, 207, 74, .55); box-shadow: 0 0 0 1px rgba(255, 207, 74, .25); }
.gm-fav-head { margin: .1rem 0 .5rem; padding: .35rem .8rem; border: 1px solid var(--gm-border); border-radius: 999px; background: var(--gm-surface); color: var(--gm-text); font-size: .9rem; transition: border-color .15s ease; }
.gm-fav-head:hover { border-color: rgba(255, 207, 74, .6); }
.gm-fav-head[aria-pressed="true"] { border-color: rgba(255, 207, 74, .6); }
.gm-fav:disabled { cursor: progress; }
.gm-fav:focus-visible { outline: 2px solid #ffcf4a; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .gm-game-box > .gm-fav { transition: none; } .gm-game-box > .gm-fav:hover { transform: none; } }
@media (max-width: 480px) { .gm-games-box { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } }
@media (prefers-reduced-motion: reduce) { .gm-game-art img, .gm-game-art-map { transition: none; } .gm-game-box:hover .gm-game-art img, .gm-game-box:hover .gm-game-art-map { transform: none; } }

.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; }
/* The game theme switch (GtaMap\Themes, app.js): "Look: Tildrix | <game>", the active one lit. */
.gm-theme-switch { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 .8rem !important; }
.gm-theme-switch span { font-weight: 700; color: var(--gm-text); }
.gm-theme-switch .gm-chip[aria-pressed="true"] { border-color: var(--gm-pink); background: color-mix(in srgb, var(--gm-pink) 18%, var(--gm-surface-2)); }

.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; }
/* The place's popup in the site's colours (map.css keeps the panel's light one): dark card, pink "found" button, small
   actions as quiet pills instead of underlined blue links (owner 26.11.2026: "trochę brzydko to wygląda"). */
.gm-main .leaflet-popup-content-wrapper { background: var(--gm-surface-2); color: var(--gm-text); border: 1px solid var(--gm-border); border-radius: var(--gm-radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.gm-main .leaflet-popup-content { margin: 14px 16px 14px; }
.gm-main .leaflet-popup-tip { background: var(--gm-surface-2); border: 1px solid var(--gm-border); box-shadow: none; }
.gm-main .leaflet-container a.leaflet-popup-close-button { color: var(--gm-muted); top: 6px; right: 6px; width: 26px; height: 26px; font: 20px/24px system-ui, sans-serif; border-radius: 8px; }
.gm-main .leaflet-container a.leaflet-popup-close-button:hover { color: var(--gm-text); background: rgba(255, 255, 255, .07); }
.gm-main .gta-popup { color: var(--gm-text); min-width: 230px; }
.gm-main .gta-popup-type { color: var(--gm-muted); font-size: .76rem; padding-right: 1.4rem; }
.gm-main .gta-popup-name { font-size: 1.05rem; line-height: 1.3; margin: .1rem 1.2rem .1rem 0; }
.gm-main .gta-popup-desc { color: #d8d1ec; font-size: .84rem; line-height: 1.45; }
.gm-main .gta-popup img { background: var(--gm-surface); border-radius: 10px; }
.gm-main .gta-popup-credit { color: var(--gm-muted); }
.gm-main .gta-found-button { display: block; width: 100%; margin-top: .6rem; padding: .5rem .8rem; border: 0; border-radius: 10px; background: linear-gradient(90deg, var(--gm-pink), #ff7a6b); color: #1a0712; font-weight: 700; font-size: .86rem; transition: filter .15s ease, transform .15s ease; }
.gm-main .gta-found-button:hover { filter: brightness(1.08); }
.gm-main .gta-found-button:active { transform: scale(.98); }
.gm-main .gta-found-button.is-found { background: rgba(47, 191, 113, .16); color: #6fe3a4; box-shadow: inset 0 0 0 1px rgba(47, 191, 113, .55); }
.gm-main .gta-found-button.is-found::before { content: '✓ '; }
.gm-main .gta-popup-actions { gap: .4rem; margin-top: .55rem; }
.gm-main .gta-popup-actions button { padding: .28rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--gm-muted); text-decoration: none; font-size: .76rem; font-weight: 600; transition: background .15s ease, color .15s ease; }
.gm-main .gta-popup-actions button:hover { background: rgba(255, 79, 163, .14); color: var(--gm-text); }
.gm-main .gta-popup-actions .gta-report-send { background: var(--gm-pink); color: #1a0712; }
.gm-main .gta-popup-note { color: #6fe3a4; }
.gm-main .gta-popup-note.gta-error, .gm-main .gta-popup .gta-error { color: #ff8a95; }
.gm-main .gta-popup-link, .gm-main .gta-report textarea { background: var(--gm-surface); color: var(--gm-text); border: 1px solid var(--gm-border); border-radius: 8px; }
.gm-main .gta-report label { color: var(--gm-muted); }
.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; }
}
/* Error pages (templates/gtamap/error.html.twig). */
.gm-error-page { padding-top: clamp(2rem, 8vh, 5rem); min-height: 50vh; }
.gm-error-page .gm-eyebrow { font-size: 1rem; }

/* Chinese, Japanese, Korean (lang from GtaMapSite::tag): no letter-spacing or slanted text - tracked or synthetic italic
   ideographs look broken; Korean keeps its words whole when a line wraps. */
html:is([lang="ja"], [lang="ko"], [lang="zh-Hans"]) :is(h1, h2, h3, .gm-eyebrow, .gm-kind-links h3, .gta-kind-group, .gta-district) { letter-spacing: 0; font-style: normal; }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: anywhere; }
/* The account page's reports (Reports::ofUser) and the switch of their thank-you e-mails. */
.gm-my-reports { margin: 2rem 0; }
.gm-report-state { white-space: nowrap; font-size: .9rem; color: var(--gm-muted); }
.gm-report-fixed { color: #3fcf8e; font-weight: 600; }
.gm-report-mails { margin-top: 1rem; }

/* --- Tildrix Trophies (templates/gtamap/trophies, docs/gtamap/README.md "Trofea") ------------------------------------- */
.gm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gm-brand-trophies span { background: linear-gradient(90deg, #ffd56b, var(--gm-orange) 55%, var(--gm-pink)); -webkit-background-clip: text; background-clip: text; }
.gm-nav > a[aria-current="page"] { color: #ffd56b; }
.gm-nav-icon { display: none; }
.gm-signin { white-space: nowrap; }
@media (max-width: 480px) {
    .gm-nav .gm-nav-icon { display: inline; font-size: 1.25rem; line-height: 1; }
    .gm-nav .gm-nav-text { display: none; }
    .gm-nav > a.gm-nav-maps { display: inline; }
    body[data-product="trophies"] .gm-nav > a.gm-nav-trophies { display: none; }
    body[data-product="trophies"] .gm-brand span { font-size: 1.02rem; }
    body[data-product="trophies"] .gm-nav { gap: .55rem; }
}
.tt-hero .gm-eyebrow { color: #ffd56b; }
/* Home page of the maps: the way to Tildrix Trophies. */
.tt-promo { display: flex; align-items: center; gap: .9rem; max-width: 820px; margin: .4rem 0 .2rem; padding: .75rem 1rem; border: 1px solid rgba(255, 213, 107, .35); border-radius: var(--gm-radius);
    background: linear-gradient(120deg, rgba(255, 213, 107, .12), rgba(255, 79, 163, .08)); color: var(--gm-text); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.tt-promo:hover { border-color: rgba(255, 213, 107, .7); color: var(--gm-text); transform: translateY(-1px); }
.tt-promo-icon { font-size: 1.7rem; line-height: 1; }
.tt-promos { display: grid; gap: .6rem; margin: .4rem 0 .2rem; max-width: 820px; }
.tt-promos .tt-promo { margin: 0; }
.tt-promo .gm-muted { display: block; font-size: .9rem; }
.tt-promo-arrow { margin-left: auto; font-size: 1.5rem; color: #ffd56b; }
/* The account's platforms. */
.tt-connect { margin: 1rem 0 .5rem; }
.tt-connect h2 { margin-top: .5rem; }
.tt-platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; max-width: 900px; }
.tt-platform { padding: .9rem 1rem; border: 1px solid var(--gm-border); border-radius: var(--gm-radius); background: var(--gm-surface); }
.tt-platform.is-linked { border-color: rgba(47, 191, 113, .45); }
.tt-platform-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.tt-platform-logo { font: 700 .78rem/1 'Space Grotesk', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--gm-muted); }
.tt-platform-steam .tt-platform-logo { color: #8fc3ee; }
.tt-platform-psn .tt-platform-logo { color: #6fa8ff; }
.tt-platform-name { font-weight: 700; }
.tt-platform-state { margin: .2rem 0 .4rem; font-size: .88rem; }
.tt-platform p { margin: .4rem 0; }
.tt-note { font-size: .82rem; }
.tt-error { color: #ffb0b0; }
.tt-steam-button { background: linear-gradient(90deg, #1b2838, #2a475e); color: #fff; border-color: #66c0f4; }
.tt-steam-button:hover { color: #fff; filter: brightness(1.15); }
.tt-psn-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; }
.tt-psn-field { display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; color: var(--gm-muted); flex: 1; min-width: 150px; }
.tt-psn-field input { padding: .5rem .7rem; border-radius: 8px; border: 1px solid var(--gm-border); background: var(--gm-bg); color: var(--gm-text); font: inherit; font-size: .95rem; }
.tt-psn-field input:focus { outline: 2px solid var(--gm-pink); outline-offset: 0; }
.tt-refresh { margin: .7rem 0 0; }
.tt-connect-compact { margin-top: 2rem; }
.tt-cta { max-width: 900px; padding: .6rem .9rem; border: 1px dashed var(--gm-border); border-radius: 10px; color: #d8d1ec; font-size: .92rem; }
/* The games of the hub. */
.tt-chips { display: flex; flex-wrap: wrap; gap: .25rem; margin: .35rem 0 0 !important; }
.tt-platform-chip { padding: .05rem .45rem; border-radius: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .03em; background: var(--gm-surface-2); color: var(--gm-muted); border: 1px solid var(--gm-border); }
.tt-pf-steam.tt-platform-chip { color: #8fc3ee; }
.tt-pf-ps5.tt-platform-chip, .tt-pf-ps4.tt-platform-chip { color: #8bb6ff; }
.tt-art-empty { display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.tt-playing { border-color: rgba(47, 191, 113, .45); }
.tt-bar { height: 6px; margin: .45rem 0 .15rem; border-radius: 99px; background: var(--gm-surface-2); overflow: hidden; }
.tt-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2fbf71, #9be15d); transition: width .4s ease; }
.tt-bar-big { height: 9px; flex: 1; min-width: 120px; margin: 0; }
.tt-mine { font-size: .78rem !important; color: #9be1b5; }
.tt-how ol { max-width: 80ch; padding-left: 1.3rem; color: #d8d1ec; }
.tt-how li { margin: .35rem 0; }
.tt-credit { font-size: .8rem; max-width: 110ch; }
/* A game's page. */
.tt-game-head { display: flex; gap: 1rem; align-items: flex-start; }
.tt-boxart { flex: none; width: 96px; height: 128px; object-fit: cover; border-radius: 10px; border: 1px solid var(--gm-border); }
.tt-game-title { min-width: 0; }
.tt-head-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; }
.tt-head-links .gm-fav-head { margin: 0; }
a.tt-head-link { display: inline-flex; align-items: center; gap: .35rem; margin-left: .3rem; text-decoration: none; }
a.tt-head-link:hover { border-color: rgba(255, 213, 107, .7); color: var(--gm-text); }
.tt-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .6rem; }
.tt-tab { display: inline-flex; align-items: baseline; gap: .6rem; padding: .5rem .9rem; border-radius: 10px; border: 1px solid var(--gm-border); background: var(--gm-surface); color: var(--gm-text); font: inherit; font-weight: 700; cursor: pointer; }
.tt-tab small { font-weight: 400; color: var(--gm-muted); }
.tt-tab-count { font-size: .82rem; color: var(--gm-muted); font-variant-numeric: tabular-nums; }
.tt-tab[aria-selected="true"] { border-color: #ffd56b; box-shadow: 0 0 0 1px rgba(255, 213, 107, .35); }
.tt-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.2rem; margin: .6rem 0; padding: .75rem 1rem; }
.tt-summary-main { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; flex: 1; min-width: 240px; }
.tt-summary-platform { font: 700 .8rem/1 'Space Grotesk', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gm-muted); }
.tt-summary-count { font-variant-numeric: tabular-nums; }
.tt-summary-count strong { font-size: 1.25rem; }
.tt-types { display: flex; gap: .8rem; margin: 0; font-variant-numeric: tabular-nums; }
.tt-type { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; }
.tt-type i { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .3); }
.tt-type-platinum i { background: radial-gradient(circle at 35% 30%, #fff, #b8c7da 60%, #7f93ad); }
.tt-type-gold i { background: radial-gradient(circle at 35% 30%, #fff3c4, #e6b84a 60%, #a87a1d); }
.tt-type-silver i { background: radial-gradient(circle at 35% 30%, #fff, #c9ccd3 60%, #8d929c); }
.tt-type-bronze i { background: radial-gradient(circle at 35% 30%, #ffd6b0, #c77b30 60%, #874d18); }
.tt-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; margin: .7rem 0; }
.tt-filters .gm-chip[aria-pressed="true"] { border-color: var(--gm-pink); background: color-mix(in srgb, var(--gm-pink) 18%, var(--gm-surface-2)); }
.tt-filters .gm-switch { margin-left: .3rem; }
.tt-items { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.tt-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--gm-border); border-radius: 12px; background: var(--gm-surface); }
.tt-item[hidden], .tt-group[hidden] { display: none; }
.tt-item.is-earned { border-color: rgba(47, 191, 113, .5); background: linear-gradient(90deg, rgba(47, 191, 113, .1), var(--gm-surface) 40%); }
.tt-group { margin: .8rem 0 .1rem; font: 700 .78rem/1 'Space Grotesk', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gm-orange); }
.tt-icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 10px; overflow: hidden; background: var(--gm-surface-2); font-size: 1.8rem; }
.tt-icon img { display: block; width: 64px; height: 64px; object-fit: cover; }
body[data-signed-in="1"] .tt-item:not(.is-earned) .tt-icon img { filter: grayscale(.85) brightness(.75); }
.tt-name { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: 1rem; }
.tt-desc { margin: .2rem 0 0; color: #d8d1ec; font-size: .9rem; }
.tt-secret { filter: blur(6px); user-select: none; transition: filter .2s ease; }
.tt-item.is-revealed .tt-secret, .tt-show-hidden .tt-secret { filter: none; user-select: auto; }
.tt-item.is-revealed .tt-reveal, .tt-show-hidden .tt-reveal { display: none; }
.tt-reveal { font-size: .85rem; color: var(--gm-muted); }
.tt-needs { display: flex; flex-wrap: wrap; gap: .35rem; margin: .45rem 0 0; }
.tt-need { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; border: 1px solid rgba(255, 179, 71, .45); background: rgba(255, 179, 71, .1); color: var(--gm-text); font-size: .82rem; font-weight: 600; text-decoration: none; }
.tt-need:hover { border-color: var(--gm-orange); color: var(--gm-text); }
.tt-need.is-done { border-color: rgba(47, 191, 113, .55); background: rgba(47, 191, 113, .12); }
.tt-need-count { color: var(--gm-muted); font-variant-numeric: tabular-nums; }
.tt-or { align-self: center; color: var(--gm-muted); font-size: .78rem; }
.tt-any-total { align-self: center; margin-left: .2rem; font-size: .82rem; font-weight: 700; color: #ffd39a; font-variant-numeric: tabular-nums; }
.tt-any-total.is-done { color: #6fe0a1; }
.tt-side { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; text-align: right; }
.tt-rate { font: 700 1rem/1 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
.tt-rarity { font-size: .72rem; }
.tt-rarity-ultra { color: #ffd56b; }
.tt-rarity-very { color: #ff8cc6; }
.tt-rarity-rare { color: #c77dff; }
.tt-rarity-uncommon { color: #4fb3ff; }
.tt-rarity-common { color: var(--gm-muted); }
.tt-earned { color: #6fe0a1; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.tt-tick[aria-pressed="true"] { border-color: rgba(47, 191, 113, .6); color: #6fe0a1; }
.tt-none { margin: 1rem 0; }
.tt-notice { margin-top: .5rem; }
/* A map category some trophy needs: the medal in the list and the card on its page. */
.gta-kind-trophy { font-size: .85em; cursor: help; }
.tt-kind { margin: 1.4rem 0 .5rem; padding: .9rem 1rem; border: 1px solid rgba(255, 213, 107, .35); border-radius: var(--gm-radius); background: linear-gradient(120deg, rgba(255, 213, 107, .08), var(--gm-surface)); }
.tt-kind h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
.tt-kind ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.tt-kind li { display: flex; gap: .8rem; align-items: flex-start; }
.tt-kind img { flex: none; border-radius: 8px; }
.tt-kind p { margin: .15rem 0; font-size: .9rem; }
.gm-my-trophies { margin: 1.5rem 0; }
@media (max-width: 640px) {
    .tt-item { grid-template-columns: 48px minmax(0, 1fr); gap: .7rem; }
    .tt-icon, .tt-icon img { width: 48px; height: 48px; }
    .tt-side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .5rem; text-align: left; }
    .tt-boxart { width: 72px; height: 96px; }
    .tt-promo { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .tt-bar i, .tt-secret, .tt-promo { transition: none; } .tt-promo:hover { transform: none; } }

/* --- Game updates (templates/gtamap/updates, docs/gtamap/README.md "Aktualizacje gier") ---------------------------------- */
.up-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0; }
.up-filters .gm-chip[aria-pressed="true"] { border-color: var(--gm-pink); background: color-mix(in srgb, var(--gm-pink) 18%, var(--gm-surface-2)); }
.up-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; max-width: 1000px; }
.up-item { display: flex; gap: .9rem; align-items: flex-start; padding: .7rem .9rem; border: 1px solid var(--gm-border); border-radius: 12px; background: var(--gm-surface); }
.up-item[hidden] { display: none; }
.up-item.is-patch { border-left: 3px solid #4fb3ff; }
.up-game { flex: none; display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 64px; color: var(--gm-muted); font-size: .72rem; text-align: center; text-decoration: none; line-height: 1.2; }
.up-game img { width: 45px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--gm-border); }
.up-game:hover { color: var(--gm-text); }
.up-body { min-width: 0; }
.up-body h3 { margin: .15rem 0 .2rem; font-size: 1rem; }
.up-body h3 a { color: var(--gm-text); text-decoration: none; }
.up-body h3 a:hover { color: #ffc2e0; text-decoration: underline; }
.up-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: 0; font-size: .8rem; }
.up-meta time { color: #d8d1ec; font-variant-numeric: tabular-nums; }
.up-meta-game { display: none; color: var(--gm-text); font-weight: 600; }
.up-kind { padding: .05rem .45rem; border-radius: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .03em; }
.up-kind-patch { background: rgba(79, 179, 255, .15); color: #8fd0ff; border: 1px solid rgba(79, 179, 255, .4); }
.up-kind-news { background: var(--gm-surface-2); color: var(--gm-muted); border: 1px solid var(--gm-border); }
.up-excerpt { margin: .2rem 0 0; color: #cfc8e4; font-size: .88rem; }
.up-latest { max-width: 640px; margin: .5rem 0 1rem; padding: .8rem 1rem; }
.up-latest h2 { margin: 0 0 .5rem; font-size: 1rem; }
.up-latest dl { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 0; }
.up-latest dt { color: var(--gm-muted); font-size: .8rem; }
.up-latest dd { margin: 0; font: 700 1.5rem/1.1 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
.up-latest p { margin: .5rem 0 0; font-size: .85rem; }
.up-patches { max-width: 1000px; }
.up-patch { margin: .5rem 0; padding: .8rem 1rem; }
.up-patch h3 { margin: 0 0 .4rem; }
.up-patch ul { margin: .3rem 0; padding-left: 1.2rem; color: #e2dcf2; }
.up-patch li { margin: .2rem 0; }
.up-note { font-size: .82rem; }
.up-games { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .92rem; }
@media (max-width: 640px) {
    .up-item { gap: .6rem; padding: .6rem .7rem; }
    /* A phone: only the cover here (long names like "PUBG: Battlegrounds" ran into the text), the name in the line above the title. */
    .up-game { width: auto; }
    .up-game span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .up-meta-game { display: inline; }
    .up-game img { width: 36px; height: 48px; }
}

/* --- Badges and shared progress (account page, templates/gtamap/progress.html.twig) -------------------------------------- */
.bd-badges { margin: 1.5rem 0; }
.bd-list { list-style: none; padding: 0; margin: .6rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem; }
.bd-badge { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--gm-border); border-radius: 12px; background: var(--gm-surface); opacity: .72; }
.bd-badge.is-earned { opacity: 1; border-color: rgba(255, 213, 107, .55); background: linear-gradient(135deg, rgba(255, 213, 107, .12), var(--gm-surface) 60%); }
.bd-badge:not(.is-earned) .bd-icon { filter: grayscale(1); }
.bd-icon { flex: none; font-size: 1.9rem; line-height: 1; }
.bd-badge p { margin: .15rem 0 0; font-size: .84rem; }
.bd-badge > div { flex: 1; min-width: 0; }
.bd-badge .tt-bar { margin-top: .35rem; }
.bd-rate { color: #ffd39a; font-size: .76rem !important; }
.bd-shares ul { padding-left: 1.1rem; }
.bd-inline { display: inline; margin-left: .6rem; }
.sh-share { font-size: .85rem; }
.sh-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; margin: 1rem 0 2rem; }
.sh-image { width: 100%; height: auto; border-radius: var(--gm-radius); border: 1px solid var(--gm-border); }
.sh-bar { max-width: 420px; margin: .6rem 0 1rem; }
.sh-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 860px) { .sh-card { grid-template-columns: 1fr; } }
