/* Tildrix Map - game themes (GtaMap\Themes, docs/gtamap/README.md "Motywy gier", since 26.11.2026). Loaded only on pages of a
   game with a theme; active when <html> has data-theme (the switch at the bottom of the page, app.js). Each theme sets the
   site's tokens (--gm-*) and its own (--th-*), the shared part below puts them on the page, the map's popup and the buttons;
   then a few touches of its own. Our own CSS only - no logos, fonts or art of the games. */

/* --- shared ------------------------------------------------------------------------------------------------------------ */
html[data-theme] body { background: var(--th-body-bg, var(--gm-bg)); font-family: var(--th-body-font, 'Atkinson Hyperlegible', system-ui, sans-serif); }
html[data-theme] h1, html[data-theme] h2, html[data-theme] h3, html[data-theme] .gm-main .gta-popup-name {
    font-family: var(--th-head-font, 'Space Grotesk', system-ui, sans-serif); text-transform: var(--th-head-transform, none);
    letter-spacing: var(--th-head-spacing, -.01em); font-weight: var(--th-head-weight, 700); font-style: var(--th-head-style, normal); }
html[data-theme] h1 { color: var(--th-h1-color, var(--gm-text)); }
html[data-theme] a { color: var(--th-link, var(--gm-orange)); }
html[data-theme] a:hover { color: var(--gm-text); }
html[data-theme] .gm-header { background: var(--th-header-bg, color-mix(in srgb, var(--gm-bg) 88%, transparent)); border-bottom: var(--th-header-border, 1px solid var(--gm-border)); }
html[data-theme] .gm-nav > a, html[data-theme] .gm-lang a, html[data-theme] .gm-game h2 a, html[data-theme] .gm-kind-links a, html[data-theme] .gta-kind > a:not(.gta-kind-link) { color: var(--gm-text); }
html[data-theme] .gm-lead, html[data-theme] .gm-faq p, html[data-theme] .gm-list li p, html[data-theme] .gm-prose p, html[data-theme] .gm-prose li,
html[data-theme] .gm-consent p, html[data-theme] .gm-footer-links a, html[data-theme] .gm-footer-links .gm-linkbutton { color: var(--th-soft, var(--gm-muted)); }
html[data-theme] .gm-eyebrow, html[data-theme] .gm-note { color: var(--gm-orange); }
html[data-theme] .gm-button, html[data-theme] .gm-chip, html[data-theme] .gm-search input, html[data-theme] .gm-game-search-box, html[data-theme] .gm-lang summary { border-radius: var(--th-btn-radius, 10px); }
html[data-theme] .gm-panel, html[data-theme] .gm-game, html[data-theme] .gm-kind-links > div, html[data-theme] .gm-faq details, html[data-theme] .gta-map,
html[data-theme] .gm-consent, html[data-theme] .gm-nudge-sheet { border-radius: var(--th-radius, var(--gm-radius)); }
html[data-theme] .gm-primary, html[data-theme] .gm-signin-count { background: var(--th-primary, var(--gm-pink)); color: var(--th-accent-ink, #12100c); border-color: transparent; }
html[data-theme] .gm-primary:hover { color: var(--th-accent-ink, #12100c); }
html[data-theme] .gm-button, html[data-theme] .gm-primary, html[data-theme] .gm-chip { font-family: var(--th-btn-font, inherit); text-transform: var(--th-btn-transform, none); letter-spacing: var(--th-btn-spacing, 0); }
html[data-theme] .gm-signin, html[data-theme] .gm-nearest, html[data-theme] .gm-drawer-open { border-color: var(--gm-pink); border-radius: var(--th-pill-radius, 999px); }
html[data-theme] .gm-nearest, html[data-theme] .gm-drawer-open { background: color-mix(in srgb, var(--gm-surface) 94%, transparent); }
html[data-theme] .gm-game:hover { border-color: color-mix(in srgb, var(--gm-pink) 55%, transparent); }
html[data-theme] .gm-main .gta-map { background: var(--th-map-bg, var(--gm-bg)); }
html[data-theme] .gm-footer a.gm-shop { border-color: color-mix(in srgb, var(--gm-pink) 55%, transparent); background: color-mix(in srgb, var(--gm-pink) 12%, transparent); border-radius: var(--th-pill-radius, 999px); }
html[data-theme] .gm-shop-icon, html[data-theme] .gm-shop-arrow, html[data-theme] .gm-langhint a, html[data-theme] .gm-nudge-bar a { color: var(--gm-pink); }
/* The map's own controls (Leaflet draws them white with its link colour - the theme's link colour made "+" and "−"
   vanish in light themes): zoom, full screen and the corner credit in the theme's colours. */
html[data-theme] .gm-main .leaflet-bar { border: 1px solid var(--gm-border); border-radius: var(--th-btn-radius, 8px); box-shadow: 0 4px 14px rgba(0, 0, 0, .45); overflow: hidden; }
html[data-theme] .gm-main .leaflet-bar a { background: var(--gm-surface); color: var(--gm-text); border-bottom-color: var(--gm-border); font-family: inherit; }
html[data-theme] .gm-main .leaflet-bar a:hover { background: var(--gm-surface-2); color: var(--gm-pink); }
html[data-theme] .gm-main .leaflet-bar a.leaflet-disabled { background: var(--gm-surface); color: var(--gm-muted); opacity: .5; }
html[data-theme] .gm-fullscreen:not([hidden]) { background: var(--gm-surface); color: var(--gm-text); border: 1px solid var(--gm-border); border-radius: var(--th-btn-radius, 8px); }
html[data-theme] .gm-fullscreen:hover { background: var(--gm-surface-2); color: var(--gm-pink); }
html[data-theme] .gm-main .leaflet-control-attribution { background: color-mix(in srgb, var(--gm-bg) 78%, transparent); color: var(--gm-muted); }
html[data-theme] .gm-main .leaflet-control-attribution a { color: var(--gm-text); }

/* The place's popup. */
html[data-theme] .gm-main .leaflet-popup-content-wrapper { position: relative; overflow: hidden; background: var(--th-popup-bg, var(--gm-surface-2)); color: var(--th-popup-ink, var(--gm-text));
    border: var(--th-popup-border, 1px solid var(--gm-border)); border-radius: var(--th-popup-radius, var(--gm-radius)); box-shadow: var(--th-popup-shadow, 0 16px 40px rgba(0, 0, 0, .55)); }
html[data-theme] .gm-main .leaflet-popup-tip { background: var(--th-popup-tip, var(--th-popup-bg, var(--gm-surface-2))); border: var(--th-popup-border, 1px solid var(--gm-border)); }
html[data-theme] .gm-main .gta-popup { color: var(--th-popup-ink, var(--gm-text)); }
html[data-theme] .gm-main .gta-popup-type, html[data-theme] .gm-main .gta-popup-credit { color: var(--th-popup-muted, var(--gm-muted)); }
html[data-theme] .gm-main .gta-popup-desc { color: var(--th-popup-soft, var(--th-soft, var(--gm-muted))); }
html[data-theme] .gm-main .leaflet-container a.leaflet-popup-close-button { color: var(--th-popup-muted, var(--gm-muted)); }
html[data-theme] .gm-main .gta-found-button { background: var(--th-found-bg, var(--th-primary, var(--gm-pink))); color: var(--th-found-ink, var(--th-accent-ink, #12100c)); border: var(--th-found-border, 0);
    border-radius: var(--th-btn-radius, 10px); font-family: var(--th-btn-font, inherit); text-transform: var(--th-btn-transform, none); letter-spacing: var(--th-btn-spacing, 0); }
html[data-theme] .gm-main .gta-popup-actions button { border-radius: var(--th-btn-radius, 999px); background: var(--th-action-bg, rgba(255, 255, 255, .06)); color: var(--th-popup-muted, var(--gm-muted)); }
html[data-theme] .gm-main .gta-popup-actions button:hover { background: color-mix(in srgb, var(--gm-pink) 20%, transparent); color: var(--th-popup-ink, var(--gm-text)); }
html[data-theme] .gm-main .gta-popup-actions .gta-report-send { background: var(--gm-pink); color: var(--th-accent-ink, #12100c); }
html[data-theme] .gm-main .gta-popup-link, html[data-theme] .gm-main .gta-report textarea { background: var(--th-field-bg, var(--gm-surface)); color: var(--th-popup-ink, var(--gm-text)); border-color: var(--gm-border); }
html[data-theme] .gm-main .gta-report label { color: var(--th-popup-muted, var(--gm-muted)); }

/* --- Leonida (GTA VI, Vice City, Vice City Stories): the sunset over the Keys, pink to orange, a touch of teal ------------- */
html[data-theme="leonida"] {
    --gm-bg: #12081f; --gm-surface: #1d0f2e; --gm-surface-2: #29143f; --gm-border: #4a2361; --gm-text: #fff4fb; --gm-muted: #d3a6cf;
    --gm-pink: #ff3d9a; --gm-orange: #ffb547; --th-teal: #2de2e6; --th-soft: #f0d3ea; --th-link: #ffb547;
    --th-body-bg: radial-gradient(900px 420px at 88% -8%, rgba(255, 140, 60, .32), transparent 62%), radial-gradient(1000px 500px at 5% -10%, rgba(255, 61, 154, .28), transparent 60%), linear-gradient(180deg, #2a0b40 0, #12081f 520px);
    --th-header-bg: linear-gradient(90deg, rgba(255, 61, 154, .16), rgba(18, 8, 31, .9) 45%, rgba(45, 226, 230, .12)); --th-header-border: 0;
    --th-head-style: italic; --th-head-weight: 800; --th-radius: 18px; --th-btn-radius: 12px;
    --th-primary: linear-gradient(90deg, #ff3d9a, #ff7a55 55%, #ffb547); --th-accent-ink: #2a0718;
    --th-popup-bg: linear-gradient(165deg, #34174d, #1d0f2e 70%); --th-popup-border: 1px solid rgba(255, 61, 154, .55); --th-popup-radius: 18px; --th-popup-tip: #1f1032;
    --th-popup-shadow: 0 0 0 1px rgba(45, 226, 230, .12), 0 18px 44px rgba(0, 0, 0, .6), 0 0 34px rgba(255, 61, 154, .28);
    --th-map-bg: #10213a;
}
html[data-theme="leonida"] .gm-header { box-shadow: inset 0 -2px 0 0 transparent; border-image: linear-gradient(90deg, #ff3d9a, #ffb547, #2de2e6) 1; border-bottom: 2px solid; }
html[data-theme="leonida"] h1 { background: linear-gradient(90deg, #ff3d9a, #ff7a55 45%, #ffb547); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .15em; }
html[data-theme="leonida"] .gm-main .leaflet-popup-content-wrapper::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #ff3d9a, #ffb547, #2de2e6); }
html[data-theme="leonida"] .gm-main .gta-found-button.is-found { background: rgba(45, 226, 230, .14); color: #7ff3f5; box-shadow: inset 0 0 0 1px rgba(45, 226, 230, .6); }
html[data-theme="leonida"] .gm-total-bar i { background: linear-gradient(90deg, #ff3d9a, #ffb547, #2de2e6); }
/* Palm fronds over the corner of the page: our own drawing, very faint. */
html[data-theme="leonida"] body::before { content: ''; position: fixed; right: -40px; bottom: -30px; width: 340px; height: 420px; pointer-events: none; z-index: 0; opacity: .14;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 250'%3E%3Cg fill='%23ff3d9a'%3E%3Cpath d='M118 250c-6-60-2-110 8-150l6 2c-9 40-12 88-6 148z'/%3E%3Cpath d='M128 100c-20-30-60-36-92-22 30-2 58 6 88 28z'/%3E%3Cpath d='M128 100c-6-34-34-60-70-62 28 10 50 30 64 64z'/%3E%3Cpath d='M130 98c10-34 40-54 72-50-30 6-52 24-66 54z'/%3E%3Cpath d='M130 100c30-14 62-6 70 18-20-14-44-18-68-12z'/%3E%3Cpath d='M128 102c-30 4-52 26-54 54 12-24 32-40 56-48z'/%3E%3Cpath d='M131 102c22 8 34 30 30 56-6-22-18-38-34-50z'/%3E%3C/g%3E%3C/svg%3E") no-repeat right bottom / contain; }
html[data-theme="leonida"] .gm-main, html[data-theme="leonida"] .gm-footer { position: relative; z-index: 1; }

/* --- Rockstar classic (the other GTA): black and white like the old covers, cash green and a little gold ------------------- */
html[data-theme="rockstar"] {
    --gm-bg: #0b0b0b; --gm-surface: #151515; --gm-surface-2: #1d1d1d; --gm-border: #333; --gm-text: #f4f4f4; --gm-muted: #a9a9a9;
    --gm-pink: #8dc63f; --gm-orange: #f2c84b; --th-soft: #cfcfcf; --th-link: #f2c84b;
    --th-body-bg: radial-gradient(800px 360px at 90% -10%, rgba(141, 198, 63, .14), transparent 60%), #0b0b0b;
    --th-head-transform: uppercase; --th-head-weight: 800; --th-head-spacing: .01em; --th-head-style: italic;
    --th-radius: 6px; --th-btn-radius: 4px; --th-pill-radius: 4px; --th-accent-ink: #0b0b0b; --th-btn-transform: uppercase; --th-btn-spacing: .04em;
    --th-popup-bg: #111; --th-popup-border: 2px solid #f4f4f4; --th-popup-radius: 4px; --th-popup-shadow: 6px 6px 0 rgba(141, 198, 63, .85), 0 18px 40px rgba(0, 0, 0, .6);
}
html[data-theme="rockstar"] h1 { text-shadow: 3px 3px 0 #000, -1px -1px 0 #000; }
html[data-theme="rockstar"] .gm-main .gta-popup-name { font-size: 1.15rem; }
html[data-theme="rockstar"] .gm-main .gta-found-button.is-found { background: #f2c84b; color: #0b0b0b; box-shadow: none; }

/* --- Night City (Cyberpunk 2077): black, the yellow of the UI, cyan and a red glitch -------------------------------------- */
html[data-theme="cyberpunk"] {
    --gm-bg: #07080c; --gm-surface: #0f1117; --gm-surface-2: #151922; --gm-border: #2a2f3a; --gm-text: #e9f6f7; --gm-muted: #8ea4ae;
    --gm-pink: #fcee0a; --gm-orange: #00f0ff; --th-soft: #b9cbd1; --th-link: #00f0ff;
    --th-body-bg: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px), radial-gradient(900px 400px at 85% -10%, rgba(0, 240, 255, .12), transparent 60%), #07080c;
    --th-head-transform: uppercase; --th-head-spacing: .06em; --th-radius: 0; --th-btn-radius: 0; --th-pill-radius: 0;
    --th-accent-ink: #07080c; --th-btn-transform: uppercase; --th-btn-spacing: .08em; --th-h1-color: #fcee0a;
    --th-popup-bg: #0d1016; --th-popup-border: 1px solid #fcee0a; --th-popup-radius: 0; --th-popup-shadow: 5px 5px 0 #ff003c, 0 18px 40px rgba(0, 0, 0, .7); --th-popup-tip: #fcee0a;
}
html[data-theme="cyberpunk"] h1 { text-shadow: 2px 0 #ff003c, -2px 0 #00f0ff; }
html[data-theme="cyberpunk"] .gm-header { border-bottom: 1px solid #fcee0a; }
html[data-theme="cyberpunk"] .gm-button, html[data-theme="cyberpunk"] .gm-main .gta-found-button, html[data-theme="cyberpunk"] .gm-game {
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
html[data-theme="cyberpunk"] .gm-main .leaflet-popup-content-wrapper::before { content: 'NCPD // DATA'; position: absolute; top: 0; right: 30px; padding: 1px 6px; background: #fcee0a; color: #07080c; font: 700 .58rem/1.4 ui-monospace, monospace; letter-spacing: .12em; }
html[data-theme="cyberpunk"] .gm-main .gta-popup-type { font-family: ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; color: #00f0ff; }
html[data-theme="cyberpunk"] .gm-main .gta-found-button.is-found { background: #00f0ff; color: #07080c; box-shadow: none; }

/* --- The Witcher 3: dark leather and iron, blood red, the gold of the medallion -------------------------------------------- */
html[data-theme="witcher"] {
    --gm-bg: #0e0d0c; --gm-surface: #171513; --gm-surface-2: #201d1a; --gm-border: #3a332b; --gm-text: #ede5d7; --gm-muted: #a99b86;
    --gm-pink: #b8202f; --gm-orange: #c9a35b; --th-soft: #cfc3ae; --th-link: #d6b46d;
    --th-body-bg: radial-gradient(ellipse 1200px 520px at 50% -12%, #2a2118, transparent 70%), #0e0d0c;
    --th-head-font: 'Literata', Georgia, serif; --th-head-weight: 600; --th-head-spacing: .02em; --th-h1-color: #e8d8b5;
    --th-radius: 4px; --th-btn-radius: 3px; --th-pill-radius: 3px; --th-btn-font: 'Literata', Georgia, serif;
    --th-primary: linear-gradient(180deg, #b8202f, #7d1520); --th-accent-ink: #f6ecd9;
    --th-popup-bg: radial-gradient(ellipse at top, #25201b, #161411 75%); --th-popup-border: 1px solid rgba(201, 163, 91, .55); --th-popup-radius: 3px;
    --th-popup-shadow: inset 0 0 0 4px #161411, inset 0 0 0 5px rgba(201, 163, 91, .28), 0 18px 44px rgba(0, 0, 0, .7); --th-popup-tip: #181512;
    --th-found-border: 1px solid rgba(201, 163, 91, .6);
}
html[data-theme="witcher"] .gm-header { border-bottom: 1px solid rgba(201, 163, 91, .4); }
html[data-theme="witcher"] .gm-main .gta-popup-name { color: #e8d8b5; font-size: 1.12rem; }
html[data-theme="witcher"] .gm-main .gta-popup-type { font-variant: small-caps; letter-spacing: .06em; }
html[data-theme="witcher"] .gm-main .gta-found-button.is-found { background: rgba(201, 163, 91, .14); color: #e3c483; box-shadow: none; }

/* --- Red Dead Redemption 2: leather and dust, the popup on the paper of a wanted poster --------------------------------- */
html[data-theme="western"] {
    --gm-bg: #17110c; --gm-surface: #221a13; --gm-surface-2: #2c2219; --gm-border: #4a3a2a; --gm-text: #f1e6d0; --gm-muted: #b9a585;
    --gm-pink: #b5301f; --gm-orange: #d9b26f; --th-soft: #d8c7a7; --th-link: #e0bb76;
    --th-body-bg: radial-gradient(ellipse 1200px 500px at 50% -10%, rgba(217, 178, 111, .16), transparent 70%), #17110c;
    --th-head-font: 'Literata', Georgia, serif; --th-head-transform: uppercase; --th-head-spacing: .07em; --th-head-weight: 700;
    --th-radius: 3px; --th-btn-radius: 2px; --th-pill-radius: 3px; --th-btn-font: 'Literata', Georgia, serif; --th-btn-transform: uppercase; --th-btn-spacing: .06em;
    --th-primary: #b5301f; --th-accent-ink: #f8eedb;
    --th-popup-bg: linear-gradient(170deg, #f2e6c9, #e4d2aa); --th-popup-ink: #2b1d10; --th-popup-muted: #6b5233; --th-popup-soft: #3d2b18;
    --th-popup-border: 1px solid #8a6a43; --th-popup-radius: 2px; --th-popup-shadow: 0 0 0 4px rgba(43, 29, 16, .08) inset, 0 16px 36px rgba(0, 0, 0, .65); --th-popup-tip: #e6d4ad;
    --th-found-bg: #2b1d10; --th-found-ink: #f2e6c9; --th-action-bg: rgba(43, 29, 16, .09); --th-field-bg: #fbf4e3;
}
html[data-theme="western"] .gm-main .gta-popup-name { font-size: 1.15rem; border-bottom: 1px solid rgba(107, 82, 51, .4); padding-bottom: .25rem; }
html[data-theme="western"] .gm-main .gta-found-button.is-found { background: #4b6b2a; color: #f2e6c9; box-shadow: none; }

/* --- Fallout: the green screen of a Pip-Boy, scanlines and all ------------------------------------------------------- */
html[data-theme="pipboy"] {
    --gm-bg: #021006; --gm-surface: #05170a; --gm-surface-2: #082110; --gm-border: #145a2c; --gm-text: #5dff95; --gm-muted: #2fb862;
    --gm-pink: #5dff95; --gm-orange: #b8ffd0; --th-soft: #46d97c; --th-link: #b8ffd0;
    --th-body-font: ui-monospace, 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace; --th-head-font: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
    --th-body-bg: radial-gradient(ellipse at center, #062a12 0%, #021006 75%);
    --th-head-transform: uppercase; --th-head-spacing: .06em; --th-radius: 2px; --th-btn-radius: 0; --th-pill-radius: 0; --th-btn-transform: uppercase; --th-btn-spacing: .06em;
    --th-primary: #5dff95; --th-accent-ink: #021006; --th-map-bg: #031a0a;
    --th-popup-bg: #041a0a; --th-popup-border: 1px solid #5dff95; --th-popup-radius: 0; --th-popup-shadow: 0 0 22px rgba(93, 255, 149, .25), 0 16px 36px rgba(0, 0, 0, .7);
    --th-found-bg: transparent; --th-found-ink: #5dff95; --th-found-border: 1px solid #5dff95;
}
html[data-theme="pipboy"] h1, html[data-theme="pipboy"] h2, html[data-theme="pipboy"] .gm-main .gta-popup-name { text-shadow: 0 0 8px rgba(93, 255, 149, .55); }
html[data-theme="pipboy"] body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 4000; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px); }
html[data-theme="pipboy"] .gm-main .gta-found-button:hover { background: #5dff95; color: #021006; filter: none; }
html[data-theme="pipboy"] .gm-main .gta-found-button::before { content: '> '; }
html[data-theme="pipboy"] .gm-main .gta-found-button.is-found { background: #5dff95; color: #021006; box-shadow: none; }
html[data-theme="pipboy"] .gm-main .gta-found-button.is-found::before { content: '[X] '; }
html[data-theme="pipboy"] .gm-brand img { filter: grayscale(1) brightness(.9) sepia(1) hue-rotate(70deg) saturate(4); }

/* --- S.T.A.L.K.E.R.: the Zone - rust, olive grey, the yellow of a radiation sign and hazard stripes ------------------------ */
html[data-theme="zone"] {
    --gm-bg: #11120e; --gm-surface: #1a1b16; --gm-surface-2: #23241d; --gm-border: #3b3c30; --gm-text: #e4e1cf; --gm-muted: #9d9b86;
    --gm-pink: #e0a526; --gm-orange: #c86a2a; --th-soft: #c6c3ad; --th-link: #e0a526;
    --th-body-bg: radial-gradient(ellipse 1000px 460px at 20% -10%, rgba(200, 106, 42, .16), transparent 65%), linear-gradient(180deg, #181a14, #11120e 600px);
    --th-head-transform: uppercase; --th-head-spacing: .1em; --th-radius: 2px; --th-btn-radius: 2px; --th-pill-radius: 2px; --th-btn-transform: uppercase; --th-btn-spacing: .08em;
    --th-primary: #e0a526; --th-accent-ink: #11120e;
    --th-popup-bg: #1d1e18; --th-popup-border: 1px solid #4a4b3c; --th-popup-radius: 2px; --th-popup-shadow: 0 16px 40px rgba(0, 0, 0, .7);
}
html[data-theme="zone"] .gm-main .leaflet-popup-content-wrapper { padding-top: 6px; }
html[data-theme="zone"] .gm-main .leaflet-popup-content-wrapper::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: repeating-linear-gradient(45deg, #e0a526 0 10px, #1d1e18 10px 20px); }
html[data-theme="zone"] .gm-header { border-bottom: 3px solid; border-image: repeating-linear-gradient(45deg, #e0a526 0 12px, #11120e 12px 24px) 3; }
html[data-theme="zone"] .gm-main .gta-found-button.is-found { background: #5c6b2e; color: #e4e1cf; box-shadow: none; }

/* --- Elden Ring: black and the gold of grace, thin lines and wide letters ------------------------------------------------- */
html[data-theme="elden"] {
    --gm-bg: #0b0a08; --gm-surface: #14120e; --gm-surface-2: #1b1813; --gm-border: #3b3223; --gm-text: #ebe1c9; --gm-muted: #a8987a;
    --gm-pink: #d4b26a; --gm-orange: #f2dca0; --th-soft: #cfc3a6; --th-link: #e6cd8c;
    --th-body-bg: radial-gradient(ellipse 900px 520px at 50% -18%, rgba(212, 178, 106, .2), transparent 70%), #0b0a08;
    --th-head-font: 'Literata', Georgia, serif; --th-head-transform: uppercase; --th-head-spacing: .16em; --th-head-weight: 500; --th-h1-color: #e6cd8c;
    --th-radius: 2px; --th-btn-radius: 2px; --th-pill-radius: 2px; --th-btn-font: 'Literata', Georgia, serif; --th-btn-transform: uppercase; --th-btn-spacing: .14em;
    --th-primary: transparent; --th-accent-ink: #f2dca0;
    --th-popup-bg: radial-gradient(ellipse at top, #241f16, #110f0b 75%); --th-popup-border: 1px solid rgba(212, 178, 106, .5); --th-popup-radius: 2px;
    --th-popup-shadow: 0 0 28px rgba(212, 178, 106, .16), 0 18px 44px rgba(0, 0, 0, .75); --th-popup-tip: #15130e;
    --th-found-bg: rgba(212, 178, 106, .08); --th-found-ink: #f2dca0; --th-found-border: 1px solid rgba(212, 178, 106, .7);
}
html[data-theme="elden"] h1 { text-shadow: 0 0 18px rgba(212, 178, 106, .35); font-size: clamp(1.4rem, 3.4vw, 2.2rem); }
html[data-theme="elden"] .gm-primary { border: 1px solid rgba(212, 178, 106, .7); }
html[data-theme="elden"] .gm-main .gta-popup-name { text-align: center; font-size: .98rem; padding: 0 1.2rem; margin-right: 0; }
html[data-theme="elden"] .gm-main .gta-popup-type { text-align: center; padding: 0 1.2rem; }
html[data-theme="elden"] .gm-main .gta-found-button:hover { background: rgba(212, 178, 106, .18); filter: none; }
html[data-theme="elden"] .gm-main .gta-found-button.is-found { background: rgba(212, 178, 106, .22); color: #fff2c8; box-shadow: none; }

/* --- Dredge: fog over dark water and the warm light of the lantern ------------------------------------------------------ */
html[data-theme="dredge"] {
    --gm-bg: #0a1416; --gm-surface: #0f1f1f; --gm-surface-2: #142927; --gm-border: #24433f; --gm-text: #dbe8e1; --gm-muted: #8aa79c;
    --gm-pink: #e0b061; --gm-orange: #7fc0a8; --th-soft: #b9cec4; --th-link: #e0b061;
    --th-body-bg: radial-gradient(ellipse 1100px 420px at 30% -5%, rgba(127, 192, 168, .14), transparent 70%), radial-gradient(ellipse 700px 300px at 85% 0, rgba(224, 176, 97, .1), transparent 70%), #0a1416;
    --th-head-font: 'Literata', Georgia, serif; --th-head-style: italic; --th-head-weight: 600;
    --th-radius: 12px; --th-btn-radius: 10px; --th-primary: #e0b061; --th-accent-ink: #1a1307;
    --th-popup-bg: linear-gradient(180deg, #17302d, #0f1f1f); --th-popup-border: 1px solid #2f5a52; --th-popup-radius: 12px;
    --th-popup-shadow: 0 0 40px rgba(224, 176, 97, .1), 0 18px 44px rgba(0, 0, 0, .65); --th-popup-tip: #10211f;
}
html[data-theme="dredge"] .gm-main .gta-found-button { box-shadow: 0 0 18px rgba(224, 176, 97, .35); }
html[data-theme="dredge"] .gm-main .gta-found-button.is-found { background: rgba(127, 192, 168, .16); color: #9fe0c8; box-shadow: inset 0 0 0 1px rgba(127, 192, 168, .5); }

/* --- Far Cry: the wild - sun-burnt orange, warning yellow, a bold sprayed stroke ----------------------------------------- */
html[data-theme="farcry"] {
    --gm-bg: #120c0a; --gm-surface: #1c1310; --gm-surface-2: #261a15; --gm-border: #45302a; --gm-text: #fbeee6; --gm-muted: #c4a493;
    --gm-pink: #ff5a1f; --gm-orange: #ffd23f; --th-soft: #e6cfc2; --th-link: #ffd23f;
    --th-body-bg: radial-gradient(900px 420px at 90% -10%, rgba(255, 90, 31, .22), transparent 62%), #120c0a;
    --th-head-transform: uppercase; --th-head-weight: 800; --th-head-spacing: .02em; --th-radius: 6px; --th-btn-radius: 4px; --th-btn-transform: uppercase; --th-btn-spacing: .04em;
    --th-primary: #ff5a1f; --th-accent-ink: #1a0b05;
    --th-popup-bg: #1c1310; --th-popup-border: 1px solid #45302a; --th-popup-radius: 6px; --th-popup-shadow: 0 18px 40px rgba(0, 0, 0, .65);
}
html[data-theme="farcry"] h1 { text-shadow: 3px 3px 0 rgba(255, 90, 31, .55); }
html[data-theme="farcry"] .gm-main .leaflet-popup-content-wrapper { border-left: 5px solid #ff5a1f; }
html[data-theme="farcry"] .gm-main .gta-found-button { transform: rotate(-.6deg); }
html[data-theme="farcry"] .gm-main .gta-found-button.is-found { background: #ffd23f; color: #1a0b05; box-shadow: none; }

/* --- Assassin's Creed: the Animus - white light panels, thin type, the red of the Brotherhood ----------------------------- */
html[data-theme="animus"] {
    --gm-bg: #0c0f13; --gm-surface: #141920; --gm-surface-2: #1b2129; --gm-border: #2e3741; --gm-text: #eef2f6; --gm-muted: #9aa6b2;
    --gm-pink: #c8102e; --gm-orange: #e9eef3; --th-soft: #c6ced6; --th-link: #f1f4f7;
    --th-body-bg: linear-gradient(180deg, rgba(233, 238, 243, .06), transparent 340px), repeating-linear-gradient(90deg, rgba(233, 238, 243, .025) 0 1px, transparent 1px 48px), #0c0f13;
    --th-head-transform: uppercase; --th-head-spacing: .2em; --th-head-weight: 500; --th-radius: 2px; --th-btn-radius: 2px; --th-pill-radius: 2px;
    --th-btn-transform: uppercase; --th-btn-spacing: .14em; --th-primary: #c8102e; --th-accent-ink: #fff;
    --th-popup-bg: rgba(242, 245, 248, .97); --th-popup-ink: #14181d; --th-popup-muted: #5d6874; --th-popup-soft: #2a3038;
    --th-popup-border: 0; --th-popup-radius: 2px; --th-popup-shadow: 0 18px 44px rgba(0, 0, 0, .55); --th-popup-tip: #f2f5f8;
    --th-action-bg: rgba(20, 24, 29, .06); --th-field-bg: #fff;
}
html[data-theme="animus"] h1 { font-size: clamp(1.3rem, 3.2vw, 2rem); }
html[data-theme="animus"] .gm-main .leaflet-popup-content-wrapper { border-left: 3px solid #c8102e; }
html[data-theme="animus"] .gm-main .gta-popup-name { font-size: .95rem; }
html[data-theme="animus"] .gm-main .gta-found-button.is-found { background: #14181d; color: #f2f5f8; box-shadow: none; }

@media (prefers-reduced-motion: reduce) { html[data-theme="farcry"] .gm-main .gta-found-button { transform: none; } }

/* Chinese, Japanese, Korean: the game looks without tracking, italics or small caps (site.css says why). */
html[data-theme]:is([lang="ja"], [lang="ko"], [lang="zh-Hans"]) :is(h1, h2, h3, .gm-button, .gm-primary, .gm-chip, .gta-popup-type, .gta-found-button) { letter-spacing: 0; font-style: normal; font-variant: normal; }
