@charset "UTF-8";
/* The line above must stay the first bytes of this file. With it, and with "charset=utf-8" on the response
   (Program.cs), no browser has to guess the encoding. Edge showed "â–¾" and "âœ“" for the menu arrow and the tick
   (owner 2026-11-29): the file was read as Windows-1252. The three glyphs the stylesheet draws are also written as
   escapes (\25BE, \203A, \2713), which no decoding can break. */
/* Prologic design tokens.
   Theme: follows the OS (prefers-color-scheme) unless the player picked one; the server then renders
   <html data-theme="light|dark">, so there is no flash and no JavaScript involved. Colours meet WCAG AA. */
:root {
    --radius: 12px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --max: 1120px;
    --accent: #f2b544;
    --accent-strong: #ffcb66;
    --accent-ink: #1a1305;

    /* Light (default) */
    --bg: #f5f6fa;
    --bg-elev: #ffffff;
    --bg-elev-2: #eef1f6;
    --border: #d7dce6;
    --text: #161b26;
    --text-muted: #566175;
    --heading-accent: #9a6400;
    --link: #0a5fc2;
    --link-hover: #084a96;
    --header-bg: rgb(255 255 255 / .85);
    --glow: #e7ecf8;
    --ok: #137a43;
    --warn: #8a5a00;
    --danger: #c22a2a;
    --danger-bg: #fdeceb;
    --danger-ink: #8c1d1d;
    --ok-bg: #e7f6ee;
    --ok-ink: #0f5c33;
    --shadow: 0 8px 24px rgb(22 27 38 / .08);
    --input-bg: #ffffff;
    --input-border: #a3acbd;
    --focus: #8a5700; /* focus ring: 3:1 against white and the cards */
    --plt: #8a5a00; --plt-border: #d9a441; /* Prologic tokens (old site: darkgoldenrod) */
    --sale-bg: #fff6e0; --sale-border: #c98212; --sale-ink: #6b3d00; /* promotion: 8.5:1 */
    --ms-bg: linear-gradient(135deg, #ffffff 0%, #f0f3f9 100%); --ms-border: #e3c27a; --ms-track: #e2e7f0; --ms-track-border: #c9d1df; --ms-tip-bg: #ffffff; --ms-pill-bg: #f3f5fa; --ms-locked-bg: #e4e9f2; --ms-locked-border: #aeb8ca; --ms-glow: rgb(217 154 30 / .28);
    --tier-common: #5b6577; --tier-uncommon: #137a43; --tier-rare: #0a5fc2; --tier-epic: #7a3fc0; --tier-legendary: #9a6400; --tier-mythic: #c22a2a;
    /* Header wordmark: deeper bronze on light, brighter gold on dark (no filters: they blur the letters). */
    --wordmark: linear-gradient(180deg, #d99a1e 0%, #b07408 45%, #8a5a06 70%, #6b4304 100%);
    --wordmark-edge: rgb(80 50 4 / .35);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0d1017; --bg-elev: #151a24; --bg-elev-2: #1c2330; --border: #323d51;
        --text: #e8ecf3; --text-muted: #9aa6b8; --heading-accent: #f2b544;
        --link: #7cc4ff; --link-hover: #a9d8ff; --header-bg: rgb(13 16 23 / .85); --glow: #1f2a44;
        --ok: #4fd18b; --warn: #f2b544; --danger: #ff6b6b;
        --danger-bg: rgb(255 107 107 / .1); --danger-ink: #ffd0d0; --ok-bg: rgb(79 209 139 / .1); --ok-ink: #c9f5dc;
        --shadow: 0 10px 30px rgb(0 0 0 / .35);
        --input-bg: #0f141e; --input-border: #46536b; --focus: #ffcb66; --focus: #ffcb66;
        --plt: #f2c14e; --plt-border: #8a6a1f; --tier-common: #a7b2c3; --tier-uncommon: #4fd18b; --tier-rare: #7cc4ff; --tier-epic: #c7a0ff; --tier-legendary: #f2b544; --tier-mythic: #ff8a8a;
        --ms-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); --ms-border: rgb(255 215 0 / .3); --ms-track: rgb(255 255 255 / .05); --ms-track-border: rgb(255 255 255 / .12); --ms-tip-bg: linear-gradient(135deg, #1e1e2e, #2a2a3e); --ms-pill-bg: rgb(255 255 255 / .05); --ms-locked-bg: linear-gradient(135deg, #2d3748, #1a202c); --ms-locked-border: #4a5568; --ms-glow: rgb(255 215 0 / .35);
        --sale-bg: rgb(242 181 68 / .13); --sale-border: rgb(242 181 68 / .55); --sale-ink: #ffe4a3;
        --wordmark: linear-gradient(180deg, #fff3c4 0%, #ffd77a 30%, #f2b544 58%, #d9951f 80%, #b97a12 100%);
        --wordmark-edge: rgb(0 0 0 / 0);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #0d1017; --bg-elev: #151a24; --bg-elev-2: #1c2330; --border: #323d51;
    --text: #e8ecf3; --text-muted: #9aa6b8; --heading-accent: #f2b544;
    --link: #7cc4ff; --link-hover: #a9d8ff; --header-bg: rgb(13 16 23 / .85); --glow: #1f2a44;
    --ok: #4fd18b; --warn: #f2b544; --danger: #ff6b6b;
    --danger-bg: rgb(255 107 107 / .1); --danger-ink: #ffd0d0; --ok-bg: rgb(79 209 139 / .1); --ok-ink: #c9f5dc;
    --shadow: 0 10px 30px rgb(0 0 0 / .35);
    --input-bg: #0f141e; --input-border: #46536b; --focus: #ffcb66;
    --plt: #f2c14e; --plt-border: #8a6a1f; --tier-common: #a7b2c3; --tier-uncommon: #4fd18b; --tier-rare: #7cc4ff; --tier-epic: #c7a0ff; --tier-legendary: #f2b544; --tier-mythic: #ff8a8a;
    --ms-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); --ms-border: rgb(255 215 0 / .3); --ms-track: rgb(255 255 255 / .05); --ms-track-border: rgb(255 255 255 / .12); --ms-tip-bg: linear-gradient(135deg, #1e1e2e, #2a2a3e); --ms-pill-bg: rgb(255 255 255 / .05); --ms-locked-bg: linear-gradient(135deg, #2d3748, #1a202c); --ms-locked-border: #4a5568; --ms-glow: rgb(255 215 0 / .35);
    --sale-bg: rgb(242 181 68 / .13); --sale-border: rgb(242 181 68 / .55); --sale-ink: #ffe4a3;
    --wordmark: linear-gradient(180deg, #fff3c4 0%, #ffd77a 30%, #f2b544 58%, #d9951f 80%, #b97a12 100%);
    --wordmark-edge: rgb(0 0 0 / 0);
    color-scheme: dark;
}

/* The header and footer are dark in both themes (owner 2026-11-28): the dark theme's tokens, scoped to them, so their
   links, menus and the wordmark follow (identical to the page in the dark theme). */
.site-header, .site-footer {
    --bg: #0d1017; --bg-elev: #151a24; --bg-elev-2: #1c2330; --border: #323d51;
    --text: #e8ecf3; --text-muted: #9aa6b8; --heading-accent: #f2b544;
    /* Solid: at 85% the light page showed through and made the header grey. */
    --link: #7cc4ff; --link-hover: #a9d8ff; --header-bg: #0d1017; --glow: #1f2a44;
    --shadow: 0 10px 30px rgb(0 0 0 / .35);
    --input-bg: #0f141e; --input-border: #46536b; --focus: #ffcb66;
    --wordmark: linear-gradient(180deg, #fff3c4 0%, #ffd77a 30%, #f2b544 58%, #d9951f 80%, #b97a12 100%);
    --wordmark-edge: rgb(0 0 0 / 0);
    color-scheme: dark;
    color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* also for elements whose class sets a display (e.g. .field) */
/* The scrollbar's space is always kept: a page that grows past the window (a longer shop category) or stops scrolling
   (the buy panel open) no longer shifts everything sideways by the width of the scrollbar. */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(1200px 600px at 50% -200px, var(--glow) 0%, var(--bg) 60%) fixed, var(--bg);
    color: var(--text);
    font: 16px/1.6 var(--font);
    overflow-x: clip;
}
/* Languages: Japanese and Chinese get their own system fonts (so each shows its own character forms), and long
   words (German, Hungarian compounds) may break instead of pushing the layout wider than the screen. */
:lang(ja) { --font: "Segoe UI", "Yu Gothic UI", "Yu Gothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", "IPAGothic", system-ui, sans-serif; }
:lang(zh-CN) { --font: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "WenQuanYi Zen Hei", system-ui, sans-serif; }
:lang(zh-TW) { --font: "Segoe UI", "Microsoft JhengHei UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "WenQuanYi Zen Hei", system-ui, sans-serif; }
:lang(ja) body, :lang(zh-CN) body, :lang(zh-TW) body { line-height: 1.7; }
body { overflow-wrap: break-word; }
/* No hyphen-split words in English and most languages (owner: "ac-count"); the languages with very long compound
   words may still hyphenate so a word never runs out of a phone-width box. */
p, li, dd, .alert { hyphens: manual; }
:is(:lang(de), :lang(hu), :lang(pl), :lang(ru), :lang(ro), :lang(fil), :lang(id)) :is(p, li, dd, .alert) { hyphens: auto; }
h1, h2, h3, label { hyphens: manual; text-wrap: balance; }

main { flex: 1; padding-block: 2rem 4rem; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: 1.25rem; margin-top: 2rem; color: var(--heading-accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
/* Blazor focuses the page heading after navigation for screen readers; no visible ring needed there. */
h1[tabindex="-1"]:focus { outline: none; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 8px; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; border-radius: 8px; }

/* Header and navigation: CSS-only mobile menu via <details>, no JavaScript needed. */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
/* Wordmark (Cinzel). The font file holds only the letters of PROLOGIC, so the text must stay uppercase. */
@font-face { font-family: "Prologic Wordmark"; src: url("/fonts/cinzel-wordmark.woff2") format("woff2"); font-weight: 700; font-display: swap; }
.brand span { font-family: "Prologic Wordmark", Georgia, serif; font-weight: 700; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.6rem); line-height: 1; letter-spacing: .04em; text-transform: uppercase;
    /* Gold metal from the theme. No filter or blur shadow: a filter on clipped text turns it into a soft bitmap. */
    background: var(--wordmark); -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-stroke: .5px var(--wordmark-edge); }
.brand img { flex: none; }
.nav-toggle > summary { list-style: none; cursor: pointer; font-size: 1.5rem; padding: .25rem .6rem; border: 1px solid var(--border); border-radius: 8px; }
.nav-toggle > summary::-webkit-details-marker { display: none; }
.site-nav { display: flex; gap: .25rem; }
.mobile-nav { flex-direction: column; position: absolute; right: 16px; left: 16px; top: 64px; max-height: calc(100dvh - 80px); overflow-y: auto; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; box-shadow: var(--shadow); }
.desktop-nav { display: none; align-items: center; }
.account-menu { position: relative; }
.account-menu > summary { list-style: none; cursor: pointer; color: var(--text); white-space: nowrap; padding: .6rem .6rem; border-radius: 8px; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary::after { content: " \25BE"; font-size: .8em; color: var(--text-muted); }
.account-menu > summary:hover, .account-menu[open] > summary { background: var(--bg-elev-2); }
.account-menu-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 12rem; display: flex; flex-direction: column; gap: .15rem;
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem; box-shadow: var(--shadow); z-index: 10; }
.account-menu-list a, .account-menu-list .link-button { display: block; width: 100%; text-align: start; white-space: nowrap; }
.site-nav a, .link-button { color: var(--text); text-decoration: none; white-space: nowrap; padding: .6rem .6rem; border-radius: 8px; font: inherit; }
.site-nav a:hover, .link-button:hover { background: var(--bg-elev-2); color: var(--text); }
.site-nav a.active { color: var(--heading-accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav a.button.active { text-decoration: none; }
.site-nav .button, .site-nav a.button.active { color: var(--accent-ink); text-align: center; }
.inline-form { margin: 0; display: contents; }
.link-button { background: none; border: 0; cursor: pointer; text-align: left; }

@media (min-width: 1120px) { /* widest menu: Russian signed in, 1075px (tests/e2e/navwidth.js) */
    .nav-toggle { display: none; }
    .desktop-nav { display: flex; }
}

/* Buttons */
.button { display: inline-block; background: linear-gradient(180deg, var(--accent-strong), var(--accent)); color: var(--accent-ink); font-weight: 700; border: 0; border-radius: 10px; padding: .8rem 1.4rem; text-decoration: none; cursor: pointer; font-size: 1rem; box-shadow: 0 4px 14px rgb(242 181 68 / .25); }
.button:hover { filter: brightness(1.05); color: var(--accent-ink); }
.button-small { padding: .45rem .9rem; font-size: .9rem; }
.button-ghost { background: transparent; color: var(--text); border: 1px solid var(--input-border); box-shadow: none; }
.button-ghost:hover { background: var(--bg-elev-2); filter: none; color: var(--text); }
.button:disabled { opacity: .6; cursor: progress; }
.button.full { width: 100%; text-align: center; }
.button.danger { background: var(--danger); color: #fff; box-shadow: none; }

/* Hero: artwork when present (img/hero-*.webp), plain otherwise */
.hero.has-art { position: relative; isolation: isolate; color: #fff; text-align: left; border-radius: 0 0 var(--radius) var(--radius);
    margin: -2rem calc(50% - 50vw) 2rem; padding: clamp(4rem, 12vw, 9rem) max(16px, calc(50vw - var(--max) / 2 + 16px));
    background: linear-gradient(90deg, rgb(8 12 24 / .78) 0%, rgb(8 12 24 / .45) 45%, rgb(8 12 24 / 0) 75%), var(--hero-desktop) center / cover no-repeat; }
/* The emblem is symmetric, so everything under it shares its centre line: emblem, tagline and buttons are one centred
   block, and that block stands at the page's left edge, over the dark side of the picture. Before (owner 2026-11-29)
   the tagline was left-aligned under a centred emblem: three different axes, and the emblem was pulled 2% to the left
   to make up for it, off the screen on tablets. */
.hero-stack { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero.has-art .hero-stack { width: fit-content; max-width: 100%; }
/* Text over a picture: a soft dark edge keeps it readable where the picture gets light behind it. */
.hero.has-art .lead { color: #eef2f9; text-shadow: 0 1px 2px rgb(8 12 24 / .75), 0 0 14px rgb(8 12 24 / .55); }
.hero.has-art .actions { justify-content: center; }
.hero.has-art .button-ghost { color: #fff; border-color: rgb(255 255 255 / .6); background: rgb(8 12 24 / .45); backdrop-filter: blur(4px); }
@media (max-width: 700px) {
    .hero.has-art { text-align: center; padding-top: 3rem; padding-bottom: 55vw;
        background: linear-gradient(180deg, rgb(8 12 24 / .75) 0%, rgb(8 12 24 / .3) 45%, rgb(8 12 24 / 0) 70%), var(--hero-mobile) center top / cover no-repeat; }
    .hero.has-art .hero-stack { margin-inline: auto; }
}
.page-banner { height: clamp(120px, 22vw, 240px); margin-bottom: 1.25rem; border-radius: var(--radius); background-size: cover; background-position: center; box-shadow: var(--shadow); }

/* Hero */
.hero { text-align: center; padding: clamp(2rem, 8vw, 6rem) 0; }
.hero .lead { font-size: 1.2rem; color: var(--text-muted); max-width: 40ch; margin: 0 auto 2rem; }
/* Home title in the same wordmark as the header (the font only has the letters of PROLOGIC). */
.hero-mark { display: inline-flex; flex-direction: column; align-items: center; margin-bottom: .75rem; }
.hero h1.wordmark { font-family: "Prologic Wordmark", Georgia, serif; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.05; margin: 0;
    font-size: clamp(2.8rem, 7vw, 5rem); background: linear-gradient(180deg, #fff8d6 0%, #ffe08a 18%, #f2b544 40%, #fff1b8 50%, #d9951f 56%, #b97a12 78%, #7a4d0a 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: .8px rgb(90 58 8 / .6);
    filter: drop-shadow(0 2px 0 rgb(42 47 58 / .75)) drop-shadow(0 0 18px rgb(13 16 23 / .55)); }
.hero-logo { margin: 0 0 .5rem; line-height: 0; }
.hero-logo img { width: min(480px, 80vw); height: auto; filter: drop-shadow(0 6px 18px rgb(13 16 23 / .45)); }
.hero-ornament { width: min(360px, 80vw); height: auto; margin-top: .35rem; filter: drop-shadow(0 1px 0 rgb(42 47 58 / .6)) drop-shadow(0 0 8px rgb(13 16 23 / .5)); }
.actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Cards and forms */
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); box-shadow: var(--shadow); }
.narrow { max-width: 440px; margin-inline: auto; }
/* A small card's title is sized to the card, not to the page (owner 2026-11-29: "Cancel the e-mail change" at the
   page size filled the card and broke inside "e-mail"). */
.card.narrow > h1 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.75rem); }
/* Register and Support: room for the heading and the help texts (owner 2026-11-26), full width on phones. */
.card-form { max-width: 38rem; margin-inline: auto; }
.card-form.wide { max-width: 44rem; }
.card-form > h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card > :last-child { margin-bottom: 0; }
.field-row > .field-help { grid-column: 1 / -1; margin: -.6rem 0 1rem; font-size: .875rem; }
.card > h1:first-child, .card > h2:first-child { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; }
.field input:not([type=checkbox]), select { width: 100%; background: var(--input-bg); color: var(--text); border: 1px solid var(--input-border); border-radius: 10px; padding: .75rem .9rem; font: inherit; }
/* Browser autofill paints its own (yellow / olive) background: keep the theme's input colours, both themes. */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active,
textarea:-webkit-autofill, select:-webkit-autofill {
    -webkit-text-fill-color: var(--text); caret-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset; box-shadow: 0 0 0 1000px var(--input-bg) inset;
    transition: background-color 600000s 0s, color 600000s 0s;
}
input:autofill, textarea:autofill, select:autofill { box-shadow: 0 0 0 1000px var(--input-bg) inset; -webkit-text-fill-color: var(--text); }
.field textarea { width: 100%; background: var(--input-bg); color: var(--text); border: 1px solid var(--input-border); border-radius: 10px; padding: .75rem .9rem; font: inherit; resize: vertical; min-height: 9rem; }
.field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgb(242 181 68 / .25); }
.field input[type=file] { padding: .6rem; background: var(--input-bg); border: 1px dashed var(--input-border); border-radius: 10px; color: var(--text); max-width: 100%; }
.field input[type=file]::file-selector-button { font: inherit; color: var(--text); background: var(--bg-elev-2); border: 1px solid var(--input-border); border-radius: 8px; padding: .4rem .8rem; margin-inline-end: .75rem; cursor: pointer; }
.field small { line-height: 1.45; }
.form-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: -.4rem 0 1rem 1.75rem; }
.field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgb(242 181 68 / .25); }
.field input[autocomplete="one-time-code"] { max-width: 16rem; letter-spacing: .15em; }
.field.checkbox { flex-direction: row; align-items: flex-start; gap: .6rem; }
.field.checkbox input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--accent); }
.field.checkbox label { font-weight: 400; }
.g-recaptcha { min-height: 78px; margin-bottom: 1rem; }
/* Google's checkbox leaves two pixels of empty frame on the right and bottom. */
.g-recaptcha iframe { display: block; color-scheme: light; clip-path: inset(0 2px 2px 0 round 4px); }
@media (max-width: 380px) { .g-recaptcha { transform: scale(.86); transform-origin: 0 0; margin-bottom: 0; height: 78px; } }
.validation-message { color: var(--danger); font-size: .9rem; }

.alert { background: var(--danger-bg); border: 1px solid var(--danger); color: var(--danger-ink); padding: .75rem 1rem; border-radius: 10px; margin: 0 0 1rem; }
ul.alert { padding-left: 2rem; }
.alert-success { background: var(--ok-bg); border-color: var(--ok); color: var(--ok-ink); }

/* Account */
.bell { position: relative; }
.bell .count { position: absolute; top: .1rem; right: -.1rem; min-width: 1.2rem; padding: 0 .3rem; border-radius: 999px; background: var(--danger); color: #fff; font-size: .7rem; line-height: 1.2rem; text-align: center; font-weight: 700; }
.notifications { list-style: none; padding: 0; display: grid; gap: .6rem; }
.notifications li p { margin: 0; }
.notifications li.unread { border-left: 4px solid var(--accent); }
.qr { width: 220px; max-width: 100%; background: #fff; padding: 8px; border-radius: 8px; }
.qr svg { width: 100%; height: auto; display: block; }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .4rem; padding: 0; list-style: none; }
.recovery-codes code { display: block; padding: .4rem .6rem; background: var(--bg-elev-2); border-radius: 6px; text-align: center; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
code.share { display: block; padding: .6rem .8rem; background: var(--bg-elev-2); border-radius: 8px; overflow-wrap: anywhere; user-select: all; }
/* Invite page: the link's copy button and code, the three totals, the rules. */
.invite-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
/* Security page: "Send it again" and "Cancel the change" of an e-mail change, side by side. */
.email-change-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.email-change-actions form { margin: 0; }
.invite-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--text); user-select: all; }
.invite-totals { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-bottom: 0; }
.invite-rules { margin: 0; padding-left: 1.2rem; color: var(--text-muted); font-size: .95rem; }
.invite-rules li + li { margin-top: .35rem; }
.invite-page > * + * { margin-top: 1.25rem; }
.invite-page > .alert { margin-bottom: 0; }
/* The code a friend gave you: the field and its button on one line, the button level with the field. */
.invite-enter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.invite-enter .field { flex: 1 1 14rem; max-width: 22rem; margin-bottom: 0; }
.invite-enter input { text-transform: uppercase; letter-spacing: .08em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin: 0; }
.stats > div { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.stats dt { color: var(--text-muted); font-size: .875rem; }
.stats dd { margin: .25rem 0 0; font-size: 1.5rem; font-weight: 700; }
.stats dd.stat-link { margin-top: .35rem; font-size: .875rem; font-weight: 400; }
.stats dd.stat-link a::first-letter { text-transform: uppercase; }
.badge { display: inline-block; font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); }
.badge.ok { color: var(--ok); border-color: var(--ok); }
.badge.warn { color: var(--warn); border-color: var(--warn); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 420px; }
th, td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
th { background: var(--bg-elev-2); font-size: .85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { th, td { padding: .55rem .6rem; font-size: .9rem; } table { min-width: 0; } }

/* Home, news, status */
.card.news { margin-bottom: 1rem; }
.card.news h2, .card.news h3 { margin: .25rem 0 .5rem; font-size: 1.15rem; color: var(--text); }
.card.news h2 a, .card.news h3 a { color: inherit; text-decoration: none; }
.card.news h2 a:hover, .card.news h3 a:hover { color: var(--link); text-decoration: underline; }
.kv { display: grid; gap: .5rem; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--border); padding-bottom: .4rem; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

/* Downloads */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card.download { display: flex; flex-direction: column; gap: .75rem; }
.card.download p { flex: 1; margin: 0; color: var(--text-muted); }
/* Download page: the client first (steps + one button per source), then prerequisites and requirements. */
.lead-text { max-width: 68ch; }
.download-main { display: grid; gap: 1.25rem 2rem; grid-template-columns: 1fr; margin: 1.25rem 0 2rem; border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
@media (min-width: 820px) { .download-main { grid-template-columns: minmax(0, 3fr) minmax(16rem, 2fr); align-items: center; } }
.download-main h2 { margin: 0 0 .4rem; font-size: 1.5rem; color: var(--text); }
.download-main-text > p { margin: 0 0 1rem; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: .6rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; align-items: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; font-weight: 700;
    color: var(--heading-accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.download-sources { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem; border-radius: 10px; background: var(--bg-elev-2); }
.download-sources-label { margin: 0 0 .1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.download-source { text-align: center; min-height: 44px; }
.download-group { margin-top: 2rem; }
.download-group > h2 { margin-top: 0; }
.card.download h3 { margin: 0; }
.card.download .button { align-self: flex-start; }
.requirements { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.requirements h3 { margin: 0 0 .75rem; font-size: 1.05rem; }
.requirements .kv dd { overflow-wrap: anywhere; }

/* Vote page cards (owner 2026-11-27: "a gap that removes the symmetry of the buttons"): one column on phones, two from
   560 px, four from 960 px (no 3 + 1 rows). Every card is a column: name, a fixed banner slot, the rewards (they take
   the spare height), then the action, so the buttons of a row sit at the same height whatever the reward lines. */
.vote-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .vote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .vote-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card.vote-site { display: flex; flex-direction: column; gap: .6rem; margin: 0; }
.card.vote-site h2 { margin: 0; font-size: 1.2rem; color: var(--text); }
.vote-banner { height: 60px; display: flex; align-items: center; }
.vote-banner img { display: block; max-height: 60px; max-width: 100%; border-radius: 8px; object-fit: contain; }
.vote-rewards { margin-bottom: auto; display: grid; gap: .3rem; }
.vote-rewards p { margin: 0; }
.vote-spins { color: var(--text-muted); font-size: .9rem; }
.vote-foot { display: grid; gap: .5rem; padding-top: .4rem; }
/* The button and the countdown are the same size, so a card waiting and a card ready line up too. */
.vote-go, .vote-cooldown { display: flex; align-items: center; justify-content: center; min-height: 3.25rem; line-height: 1.3; }
.vote-go { padding-block: .5rem; text-align: center; }
.vote-cooldown, .vote-state { margin: 0; min-height: 3.25rem; line-height: 1.3; padding: .5rem .75rem; max-width: none; border-radius: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem .45rem;
    text-align: center; font-size: .92rem; font-weight: 600; border: 1px solid var(--border); background: var(--bg-elev-2); color: var(--text); }
.vote-cooldown { display: grid; place-items: center; padding-inline: .4rem; font-size: .88rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.vote-state.ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok-ink); }
.vote-state.warn { background: var(--sale-bg); border-color: var(--sale-border); color: var(--sale-ink); }
.vote-state .busy-spinner { margin: 0; color: var(--heading-accent); }
.vote-state .vote-state-text { flex: 1 1 100%; }
.vote-state .vote-state-extra { flex: 1 1 100%; font-weight: 400; font-size: .86rem; }
.vote-state .vote-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; font-weight: 400; font-size: .88rem; }
.vote-state .link-button { color: var(--link); text-decoration: underline; padding: 0; font: inherit; }
.vote-state:has(.busy-spinner) .vote-state-text { flex: 0 1 auto; }
.vote-summary { margin-top: 1rem; }
.vote-ready { margin: 0; color: var(--text-muted); font-size: .92rem; }
/* Next to the balances, not in the middle of the bar. */
.vote-rank-link { margin-right: auto; }

/* Shop */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shop-search { display: flex; gap: .5rem; margin-bottom: 1rem; }
.shop-search { align-items: stretch; }
.shop-search-field { position: relative; flex: 1; min-width: 0; display: flex; }
.shop-search input { flex: 1; min-width: 0; background: var(--input-bg); color: var(--text); border: 1px solid var(--input-border); border-radius: 10px; padding: .6rem 2.4rem .6rem .8rem; font: inherit; }
.shop-search input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgb(242 181 68 / .25); }
/* Searching: a small spinner inside the field. */
.shop-search-spinner { position: absolute; right: .8rem; top: calc(50% - .55rem); width: 1.1rem; height: 1.1rem; border: 2px solid var(--border); border-top-color: var(--heading-accent); border-radius: 50%; opacity: 0; pointer-events: none; } /* bronze on light: 3:1 (gold was 1.8:1) */
.shop-search.loading .shop-search-spinner { opacity: 1; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* The grid dims while loading: .shop-results.is-loading, with the loading feedback at the end of this file. */
/* A steady frame (owner 2026-11-29: "the page keeps jumping"): the items area is at least one screen high, so a small
   category does not pull the footer up into view, and a long list starts with its first rows ("Show more" below it).
   The page itself scrolls; a scroll box inside the page was not used on purpose (two scrollbars, a trapped wheel, bad
   on phones). */
.shop-results { min-height: 70vh; min-height: 70dvh; }
@media (min-width: 900px) { .shop-results { min-height: calc(100vh - 7rem); min-height: calc(100dvh - 7rem); } }
.shop-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; margin: 1.25rem 0 0; }
.shop-more-all { color: var(--text-muted); }
.shop-more-all:hover { color: var(--link); }
/* A category change shows at once (js/site.js): the clicked category is highlighted and, while its items are on their
   way, has a small spinner where its arrow is; the items give way to placeholder cards of the same size. */
.shop-cats a.loading::after { content: ""; flex: none; width: .8rem; height: .8rem; margin-inline-end: .05rem; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.shop-cats a.loading > .cat-chev { display: none; }
/* As high as a real card with a two-line name (most rows have one), so the rows do not grow when the items arrive. */
.card.item.skeleton { pointer-events: none; min-height: 13.55rem; }
.card.item.skeleton:hover { transform: none; border-color: var(--border); }
.skeleton .item-icon, .sk-line { border-radius: 8px; background: linear-gradient(100deg, var(--bg-elev-2) 30%, var(--border) 50%, var(--bg-elev-2) 70%) 0 0 / 200% 100%; animation: plate-wait 1.4s linear infinite; }
.sk-line { display: block; width: 78%; height: .85rem; margin-top: .25rem; }
.sk-line.short { width: 42%; }
.shop-results .section-head h2 { margin: 0 0 .75rem; }
.shop-count { margin: 0 0 .75rem; }
.shop-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.shop-empty p { margin: 0; }
.shop-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .shop-layout { grid-template-columns: 240px minmax(0, 1fr); } }
/* Shop categories (owner 2026-11-26): the top level, with only the current category's branch open (plain links,
   ?cat= decides). Desktop: a sticky sidebar. Phones: the same list in a drawer (<details>) above the items. */
.shop-cats ul { list-style: none; margin: 0; padding: 0; }
.shop-cats ul ul { margin: .1rem 0 .3rem .85rem; padding-left: .45rem; border-left: 1px solid var(--border); }
.shop-cats a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .7rem; border-radius: 8px;
    color: var(--text); text-decoration: none; font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.shop-cats ul ul a { font-size: .9rem; color: var(--text-muted); padding-block: .38rem; }
.shop-cats a:hover { background: var(--bg-elev-2); color: var(--text); }
.shop-cats a.ancestor { font-weight: 600; color: var(--heading-accent); }
.shop-cats a.active, .shop-cats a.active:hover { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.cat-chev { flex: none; width: .5rem; height: .5rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); opacity: .6; margin-inline-end: .2rem; }
.parent.open > a > .cat-chev { transform: rotate(45deg); margin-top: -.2rem; }
.shop-cats-side { display: none; }
.shop-cats-drawer { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); }
.shop-cats-drawer > summary { cursor: pointer; padding: .75rem 1rem; min-height: 44px; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.shop-cats-drawer > summary::-webkit-details-marker { display: none; }
.shop-cats-drawer > summary::after { content: ""; flex: none; width: .55rem; height: .55rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -.25rem; }
.shop-cats-drawer[open] > summary::after { transform: rotate(-135deg); margin-top: .25rem; }
.shop-cats-drawer[open] > summary { border-bottom: 1px solid var(--border); }
.shop-cats-drawer .shop-cats { padding: .4rem; }
@media (min-width: 900px) {
  .shop-cats-drawer { display: none; }
  .shop-cats-wrap { align-self: start; position: sticky; top: 80px; }
  .shop-cats-side { display: block; max-height: calc(100dvh - 100px); overflow-y: auto; scrollbar-width: thin; }
}
/* Path of the current category, above its items. */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .15rem .4rem; margin: 0 0 .35rem; padding: 0; font-size: .875rem; color: var(--text-muted); }
.crumbs li + li::before { content: "\203A"; margin-inline-end: .4rem; opacity: .7; }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--link); }
.crumbs [aria-current] { color: var(--text); }
.item-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 480px) { .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } }
.card.item { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; padding: 1rem .75rem; text-decoration: none; color: var(--text); transition: transform .1s, border-color .1s; }
.card.item:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); }
.card.item:focus-visible { border-color: var(--accent); }
/* Item icons (owner 2026-11-26: no double background). Every tile has the same size. "own": the icon brings its own
   tile or background and is shown as it is; "tile": a transparent sprite, drawn on the generated tile like the old
   site. ShopIconStyles decides per image. */
.item-icon { display: grid; place-items: center; width: 96px; height: 96px; flex: none; }
.item-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.item-icon.tile { background: url("/img/shop-tile.png") center / 100% 100% no-repeat; }
/* Small art (32-64px sprites and pictures) is shown in the same 2/3 box, so every item reads at the same size. */
.item-icon.tile img, .item-icon.own.small img { width: 66%; height: 66%; }
.item-icon.own.small img { border-radius: 6px; }
.item-icon.large { width: 128px; height: 128px; }
.item-name { font-weight: 600; font-size: .95rem; }
.item-price { color: var(--heading-accent); font-weight: 700; font-size: .9rem; }
.item-detail { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.item-detail .item-icon { margin-bottom: .75rem; }
@media (min-width: 900px) { .item-detail { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.item-desc { color: var(--text-muted); overflow-wrap: anywhere; }
details.gift { margin-bottom: 1rem; }

/* Dialogs (the shop's buy panel). Native <dialog>: Escape, focus and the inert page come from the browser. */
dialog.dialog { width: min(34rem, calc(100% - 2rem)); max-height: min(calc(100dvh - 2rem), 52rem); padding: 0; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--bg-elev); color: var(--text); box-shadow: 0 24px 60px rgb(0 0 0 / .35); overflow: hidden; }
dialog.dialog[open] { display: flex; flex-direction: column; }
dialog.dialog::backdrop { background: rgb(8 12 24 / .62); backdrop-filter: blur(3px); }
html:has(dialog.dialog[open]) { overflow: hidden; }
.dialog-head, .dialog-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem .75rem 1.25rem; }
.dialog-head { border-bottom: 1px solid var(--border); background: var(--bg-elev-2); }
.dialog-foot { border-top: 1px solid var(--border); }
.dialog-title { margin: 0; font-weight: 700; color: var(--heading-accent); }
.dialog-x { width: 2.75rem; height: 2.75rem; margin: -.4rem -.4rem -.4rem 0; border: 0; border-radius: 10px; background: none; color: var(--text-muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.dialog-x:hover { background: var(--bg-elev); color: var(--text); }
.dialog-body { flex: 1 1 auto; min-height: 0; padding: 0 1.25rem; overflow-y: auto; overscroll-behavior: contain; }
/* The item (picture, name, price) sits between the header and the scroll area, so it is always in view. */
.shop-dialog-item { flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-items: center; padding: .85rem 1.25rem; border-bottom: 1px solid var(--border); }
/* The picture in the panel is never smaller than the one that was clicked (96px in the grid): 128px like the item
   page, 96px on phones. Only a phone held sideways gets a small one, where every pixel of height is needed. */
.shop-dialog .shop-dialog-item .item-icon.large { width: 128px; height: 128px; grid-row: span 2; }
.shop-dialog-item h2 { margin: 0; align-self: end; color: var(--text); font-size: 1.15rem; line-height: 1.3; }
.shop-dialog-item h2:focus { outline: none; }
.shop-dialog-item .item-price { margin: .1rem 0 0; align-self: start; font-size: 1rem; }
.shop-dialog .item-desc { margin: 0; padding: .9rem 0 .75rem; font-size: .95rem; }
.shop-dialog .item-desc:empty { display: none; }
.dialog-page-link { margin: 0 0 1rem; }
.dialog-login-note { margin: 0 0 1.25rem; }
/* One scroll area (the body); the switch and the buy fields stick to its bottom, so they stay fully visible while
   the description scrolls behind them. */
.dialog-buy { position: sticky; bottom: 0; z-index: 1; margin: 0 -1.25rem; padding: .9rem 1.25rem 1rem; background: var(--bg-elev); border-top: 1px solid var(--border); }
.dialog-buy .dialog-note { margin: 0; }
/* "For my character / As a gift" (owner 2026-11-26): a segmented native radio group, two equal 44px targets. */
.buy-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0 0 .85rem; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev-2); }
.buy-mode-opt { position: relative; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .45rem .6rem; border-radius: 9px;
    font-weight: 600; font-size: .95rem; line-height: 1.25; text-align: center; color: var(--text-muted); cursor: pointer; overflow-wrap: anywhere; }
.buy-mode-opt:hover { color: var(--text); background: var(--bg-elev); }
.buy-mode-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.buy-mode-opt::before { content: ""; flex: none; width: .85rem; height: .85rem; border-radius: 50%; border: 2px solid currentColor; opacity: .7; }
/* The chosen one is a flat block with clean edges: its soft shadow read as a smeared, bent lower edge (owner
   2026-11-29). The dot is a solid fill inside a ring of the block's own colour, sharp at any zoom, where a gradient
   came out lopsided. */
.buy-mode-opt:has(input:checked) { background: var(--accent); color: var(--accent-ink); }
.buy-mode-opt:has(input:checked)::before { opacity: 1; background: currentColor; box-shadow: inset 0 0 0 2px var(--accent); }
.buy-mode-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.buy-mode:disabled .buy-mode-opt { cursor: progress; opacity: .7; }
/* The fields: who receives it (a character, or a gift's recipient) beside the quantity, the gift's confirmation below. */
.dialog-fields { display: grid; grid-template-columns: minmax(0, 1fr) 9rem; grid-template-areas: "who qty" "confirm confirm"; gap: 0 .75rem; align-items: end; }
.dialog-fields .field { margin-bottom: .75rem; }
.dialog-fields .field-who { grid-area: who; }
.dialog-fields .field-qty { grid-area: qty; }
.dialog-fields .field-confirm { grid-area: confirm; }
.dialog-fields .field-qty[hidden] ~ *, .dialog-fields:has(.field-qty[hidden]) .field-who { grid-column: 1 / -1; }
.shop-dialog .gift-panel { display: contents; border: 0; padding: 0; margin: 0; }
/* Footer: the main button (Buy Now / Send Gift / Login) and Close, always in view. */
.shop-dialog .dialog-foot { padding: .75rem 1rem .75rem 1.25rem; }
.dialog-foot .dialog-actions { flex: 1 1 auto; }
.dialog-foot .dialog-close { flex: none; align-self: stretch; min-height: 44px; }
.dialog-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.dialog-actions .button { flex: 1 1 8rem; padding-inline: .75rem; text-align: center; }
[data-dialog-result] .alert { margin: 0 0 .75rem; }
[data-dialog-result] .busy-status { margin: 0 0 .6rem; }
/* Very short windows (a phone held sideways): the controls scroll with the rest instead of covering it. */
@media (max-height: 540px) { .dialog-buy { position: static; } .shop-dialog .shop-dialog-item .item-icon.large { width: 56px; height: 56px; } }
@media (max-width: 520px) {
  .shop-dialog .shop-dialog-item .item-icon.large { width: 96px; height: 96px; }
  .shop-dialog-item { padding: .7rem 1rem; column-gap: .8rem; }
  .shop-dialog-item h2 { font-size: 1.05rem; }
  .dialog-body { padding: 0 1rem; }
  .dialog-buy { margin: 0 -1rem; padding: .8rem 1rem .9rem; }
  .dialog-fields { grid-template-columns: minmax(0, 1fr) 6.5rem; }
  .buy-mode-opt { font-size: .9rem; padding-inline: .4rem; }
}
details.gift > summary { cursor: pointer; color: var(--link); margin-bottom: .5rem; }

/* Promotion (Payments:SaleEvent): warm amber, not the green of the packages' own bonus or the red of errors. The
   countdown is plain text updated once a minute; the fixed end time stays readable. */
.sale-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 0 0 1.25rem; padding: .9rem 1.15rem; border: 1px solid var(--sale-border); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--sale-bg); color: var(--sale-ink); }
.sale-icon { flex: none; width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sale-copy { flex: 1 1 18rem; min-width: 0; }
.sale-title { margin: 0; font-size: 1.1rem; color: inherit; }
.sale-sub { margin: .2rem 0 0; font-size: .9rem; }
.sale-deadline { font-weight: 700; white-space: nowrap; }
.sale-timer-box { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.sale-timer { padding: .35rem .75rem; border-radius: 8px; border: 1px solid var(--sale-border); background: var(--bg-elev); color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Vote page: double-points days (the old site's banner on the 1st and 2nd), the ×2 badge, the "why vote" notice. */
.alert-double { background: var(--sale-bg); border: 1px solid var(--sale-border); border-left: 4px solid var(--accent); color: var(--sale-ink); }
.vote-reward { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.badge.double { background: var(--accent); border-color: var(--accent); color: #1a1205; font-weight: 700; }
.vote-notice { margin-top: 1.5rem; }
.vote-notice h2 { font-size: 1.15rem; margin-top: 0; }
.vote-notice h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.vote-tiers { margin: 0 0 .75rem; padding-left: 1.25rem; }
.vote-tiers li { margin: .2rem 0; }
.sale-banner.ended { background: var(--bg-elev-2); border-color: var(--border); border-left-color: var(--border); color: var(--text-muted); }
.pkg-sale { padding: .12rem .55rem; border-radius: 6px; border: 1px solid var(--sale-border); background: var(--sale-bg); color: var(--sale-ink); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.checkout-sale { margin: .75rem 0 0; font-size: .875rem; color: var(--sale-ink); }
@media (max-width: 520px) { .sale-banner { flex-direction: column; align-items: stretch; gap: .5rem; } .sale-copy { flex: none; overflow-wrap: anywhere; } .sale-deadline, .sale-timer { white-space: normal; } .sale-banner > * { min-width: 0; } .sale-icon { display: none; } .sale-timer-box { align-items: flex-start; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; } .perk, .pkg-sale { font-size: .74rem; } }

/* Payment: 1. choose a package (radio cards), 2. choose how to pay (one set of buttons for the chosen package). */
.alert-info { background: var(--bg-elev-2); border-color: var(--border); color: var(--text); }
/* A rule the reader should know before going on: calm, with the warning colour on its edge (not an error). */
.alert-warn { background: var(--bg-elev-2); border-color: var(--border); border-left: 4px solid var(--warn); color: var(--text); font-size: .9rem; }
.alert-warn a { white-space: nowrap; }
/* The reminder of an address that was never verified (account overview): the text, then the two ways on. */
.verify-reminder p { margin: 0 0 .6rem; }
.verify-reminder-result { font-weight: 600; }
.verify-reminder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; }
.verify-reminder-actions form { margin: 0; }
/* Reached by a link to it (the reminder's "Wrong address?"): its heading stays below the fixed top bar. */
#change-email { scroll-margin-top: 5.5rem; }
.pkg-step { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.pay-step { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; padding: 0; font-size: 1.15rem; font-weight: 700; color: var(--text); }
.pay-step-no { display: grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .95rem; }
.pkg-grid { display: grid; gap: 1rem .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: .5rem; }
@media (min-width: 960px) { .pkg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem 1rem; } }
.pkg { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.15rem .75rem .85rem; text-align: center; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease; }
.pkg:hover { border-color: var(--accent); }
.pkg-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pkg:has(.pkg-radio:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.pkg:has(.pkg-radio:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow); background: color-mix(in srgb, var(--accent) 7%, var(--bg-elev)); }
.pkg:has(.pkg-radio:checked)::after { content: "\2713"; position: absolute; top: .45rem; right: .5rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .85rem; }
.pkg:has(.pkg-radio:disabled) { cursor: default; }
.pkg:has(.pkg-radio:disabled):hover { border-color: var(--border); }
.pkg-badge { position: absolute; top: -.7rem; left: 50%; transform: translateX(-50%); padding: .1rem .6rem; border-radius: 999px; border: 1px solid var(--ok); background: var(--bg-elev); color: var(--ok); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.pkg-lp { font-size: clamp(1.2rem, 1rem + 1vw, 1.55rem); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pkg-rate { font-size: .8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pkg-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin: .15rem 0 .25rem; }
.perk { padding: .12rem .5rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elev-2); font-size: .78rem; line-height: 1.4; }
.perk-bonus { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok); }
.perk.package-plt { background: transparent; color: var(--plt); border-color: var(--plt-border); font-weight: 700; }
.pkg-price { width: 100%; margin-top: auto; padding-top: .55rem; border-top: 1px solid var(--border); font-size: 1.2rem; font-weight: 800; color: var(--heading-accent); font-variant-numeric: tabular-nums; }
.checkout-dock { margin: 0 0 1rem; padding: clamp(1rem, 3vw, 1.5rem); background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 80px; }
.checkout-summary { margin: 0 0 .9rem; font-weight: 600; font-size: 1.05rem; }
/* Payment methods: one set of equal buttons, 1 column on phones, 2 on tablets, a row on desktop. Every tile is ONE
   button: the same size, border and hover ring, and a click anywhere on it pays. PayPal's tiles are PayPal's own
   buttons edge to edge (the page cannot press a button inside PayPal's frame, so anything beside it was a dead area);
   PayPal's card button is at most 55 px high, which is the height of every tile. */
.pay-methods { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); align-items: start; }
@media (max-width: 519px) { .pay-methods { grid-template-columns: 1fr; } }
@media (min-width: 520px) and (max-width: 959px) { .pay-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 5 or 6 methods (PayPal's Pay Later and card shown): 3 columns on desktop, so the rows stay even. */
@media (min-width: 960px) { .pay-methods[data-count="5"], .pay-methods[data-count="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* The other methods' logos are drawn for white, so their buttons are white in both themes. */
.pay-method { position: relative; display: flex; align-items: center; justify-content: center; gap: .55rem; box-sizing: border-box;
    width: 100%; height: 57px; margin: 0; padding: 0 .75rem; border-radius: 10px; border: 1px solid var(--input-border); background: #fff;
    color: #1e293b; font: inherit; text-align: center; cursor: pointer; overflow: hidden; transition: border-color .12s ease, box-shadow .12s ease; }
/* The hover ring, the same on every tile (PayPal's too): only with a mouse (a tap leaves no ring behind), once a
   package is chosen (before that a click only says so), and never while a payment is being started. */
@media (hover: hover) {
    .checkout.has-package:not(.busy) .pay-method:not(.expanded):hover, .checkout:not(.js) .pay-method:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
}
.pay-method:focus-visible, .paypal-guard:focus-visible, .pay-tile-paypal:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.pay-logo { display: block; flex: none; width: auto; max-width: 70%; height: 30px; object-fit: contain; }
.pay-name { font-size: .95rem; font-weight: 700; line-height: 1.2; }
/* PayPal's button fills its tile: no padding, the tile's rounded border clips it (PayPal's container is its 55 px
   button plus 8 px of its own spacing below, cut off here). color-scheme light: PayPal's frames are light, and in the
   dark theme a frame with another scheme gets an opaque white backdrop (square white corners around the button). */
.pay-tile-paypal { display: block; padding: 0; background: transparent; cursor: default; color-scheme: light; }
.paypal-button { width: 100%; min-height: 55px; }
/* PayPal's frame as a block: an inline frame left a line under the buttons. */
.paypal-button iframe { display: block; }
/* The card form opens inside PayPal's frame: the card tile becomes one white panel across the row, PayPal's button and
   form centred in one column (PayPal's texts are drawn for a white page). */
.pay-method.expanded { grid-column: 1 / -1; height: auto; padding: clamp(.75rem, 2vw, 1.25rem); background: #fff;
    border-color: rgb(0 0 0 / .12); cursor: default; overflow: visible; }
.pay-method.expanded .paypal-button { max-width: 420px; margin-inline: auto; }
/* While PayPal's SDK is on its way its tile is a quiet placeholder (a slow connection must not look broken). */
.pay-tile-paypal.is-loading { background: linear-gradient(100deg, var(--bg-elev-2) 30%, var(--border) 50%, var(--bg-elev-2) 70%) 0 0 / 200% 100%; animation: plate-wait 1.4s linear infinite; }
@keyframes plate-wait { to { background-position: -200% 0; } }
/* "Try again" inside a sentence (PayPal or the security check could not load). */
.retry-link { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.retry-link:hover { color: var(--link-hover); }
.retry-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* The security check's place while Google's scripts load: its text comes in after a second (no flicker when fast). */
.captcha-status { margin: 0; padding-top: 1.6rem; }
.captcha-status[data-state="loading"] { animation: captcha-wait .3s 1s both; }
@keyframes captcha-wait { from { opacity: 0; } to { opacity: 1; } }
.checkout:not(.js) .pay-tile-paypal { display: none; }
/* Over PayPal's button until a package is chosen (js/donate.js): a click says to choose one and never reaches PayPal. */
.paypal-guard { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: inherit;
    background: transparent; cursor: pointer; }
.paypal-guard[hidden] { display: none; }
/* Before a package is chosen nothing is greyed out (the methods stay readable): step 2 waits, its number outlined. */
.checkout.js:not(.has-package) #pay-step2 .pay-step-no { background: transparent; color: var(--text-muted); box-shadow: inset 0 0 0 2px var(--border); }
.checkout.js:not(.has-package) .checkout-summary { color: var(--text-muted); font-weight: 600; }
.checkout.has-package .checkout-summary { padding-left: .7rem; border-left: 3px solid var(--accent); }
/* Sending: the packages and the other methods dim; the clicked method stays as it is, outlined, with its spinner. */
.checkout.busy .pkg { pointer-events: none; opacity: .6; }
.checkout.busy .pay-method:not(.is-submitting) { pointer-events: none; opacity: .45; }
.trust-lock { flex: none; margin-top: .22rem; }
.checkout-status { margin: .75rem 0 0; font-weight: 600; }
.checkout-status:empty { display: none; }
/* The note under the payment methods (owner 2026-11-29: "use the best standards for spacing"): a line and a clear gap
   above it, 14px text at a line height of 1.55, each sentence on a line of its own (unbroken where the box is wide
   enough: owner, the same day), the icon beside the text
   instead of inside it, and the links on a row of their own with room between them and a 24px touch height. */
.checkout-trust { display: flex; align-items: flex-start; gap: .65rem; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border);
    font-size: .875rem; line-height: 1.55; color: var(--text-muted); }
.checkout-trust p { margin: 0; text-wrap: pretty; }
.checkout-trust .trust-read { margin-top: .3rem; }
.checkout-trust .trust-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: .2rem; }
.checkout-trust .trust-links a { display: inline-block; padding-block: .2rem; white-space: nowrap; font-weight: 600; }

/* Lifetime-PLT milestones: the old site's panel (css/pltprogressbar.css) on the theme tokens. State is in text (the
   tooltip's "✓ Unlocked" / "N PLT to unlock", the next-milestone line) and in shape (coloured face with a ring vs a
   grey face), never only in colour. No endless animations: only a one-time fill and short hover transitions, which
   the reduced-motion rule below turns off. */
.ms-panel { margin: 2.5rem 0 1rem; padding: clamp(1rem, 3vw, 1.6rem); border-radius: 16px; background: var(--ms-bg); border: 1px solid var(--ms-border); box-shadow: var(--shadow); color: var(--text); }
.ms-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
.ms-badge { display: inline-flex; align-items: center; gap: .55rem; margin: 0; padding: .45rem 1.15rem .45rem .9rem; border-radius: 999px; background: linear-gradient(135deg, #c2410c, #c2570c); color: #fff; font-size: 1.05rem; font-weight: 700; letter-spacing: .08em; box-shadow: 0 4px 14px rgb(194 65 12 / .3); }
.ms-badge-icon { font-size: 1.35rem; line-height: 1; letter-spacing: 0; }
.ms-total { margin: 0; display: flex; align-items: baseline; gap: .35rem; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.ms-total strong { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); color: var(--heading-accent); line-height: 1; }
.ms-max { font-size: 1.15rem; font-weight: 600; }
.ms-unit { font-size: .75rem; letter-spacing: .1em; }
.ms-scroll { margin: 1.25rem -.25rem .5rem; padding: .5rem .25rem; }
.ms-bar { position: relative; height: 56px; margin: 0 .5rem; }
.ms-track { position: absolute; inset: 50% 0 auto; height: 20px; transform: translateY(-50%); border-radius: 999px; background: var(--ms-track); border: 1px solid var(--ms-track-border); box-shadow: inset 0 2px 6px rgb(0 0 0 / .18); }
.ms-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #ff6b35 0%, #f7931e 25%, #ffd700 50%, #ffed4e 75%, #00d4ff 100%); box-shadow: 0 0 14px rgb(255 200 0 / .45), inset 0 1px 0 rgb(255 255 255 / .35); animation: ms-grow .9s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes ms-grow { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* No transform on the marker: the open tooltip is position: fixed, which a transformed ancestor would break. */
.ms-marker { position: absolute; top: calc(50% - 22px); margin-left: -22px; z-index: 1; }
.ms-marker:hover, .ms-marker:focus-within, .ms-marker.open { z-index: 3; }
.ms-dot { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; color: inherit; }
.ms-dot:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ms-ring { position: absolute; inset: 7px; border-radius: 50%; background: var(--ms-locked-bg); border: 2px solid var(--ms-locked-border); box-shadow: inset 0 2px 5px rgb(0 0 0 / .25); transition: transform .15s ease; }
.ms-icon { position: relative; font-size: 15px; line-height: 1; filter: grayscale(1); opacity: .5; transition: transform .15s ease; }
.ms-marker.unlocked .ms-ring { background: var(--face); border-color: var(--face-edge); box-shadow: 0 0 0 4px var(--ms-glow), 0 0 12px var(--tier-glow); }
.ms-marker.unlocked .ms-icon { filter: drop-shadow(0 1px 2px rgb(0 0 0 / .45)); opacity: 1; }
.ms-marker.current .ms-ring { inset: 4px; }
.ms-marker.current .ms-icon { font-size: 19px; }
.ms-marker.locked.current .ms-ring { border-style: dashed; border-color: var(--accent); }
.ms-dot:hover .ms-ring, .ms-marker.open .ms-ring { transform: scale(1.18); }
.ms-dot:hover .ms-icon, .ms-marker.open .ms-icon { transform: scale(1.18); }
.ms-marker.tier-common { --face: linear-gradient(135deg, #6c757d, #95a5a6); --face-edge: #fff; --tier-glow: rgb(149 165 166 / .45); }
.ms-marker.tier-uncommon { --face: linear-gradient(135deg, #28a745, #20c997); --face-edge: #a7f3d0; --tier-glow: rgb(32 201 151 / .5); }
.ms-marker.tier-rare { --face: linear-gradient(135deg, #007bff, #00bfff); --face-edge: #a5d8ff; --tier-glow: rgb(0 123 255 / .5); }
.ms-marker.tier-epic { --face: linear-gradient(135deg, #a855f7, #ec4899); --face-edge: #fbbf24; --tier-glow: rgb(168 85 247 / .55); }
.ms-marker.tier-legendary { --face: linear-gradient(135deg, #ff6b35, #f7931e); --face-edge: #ffd700; --tier-glow: rgb(255 215 0 / .6); }
.ms-marker.tier-mythic { --face: linear-gradient(135deg, #ff0080, #ff8c00, #ffd700); --face-edge: #ffd700; --tier-glow: rgb(255 0 128 / .55); }
.ms-tip { --tip: var(--tier-common); position: absolute; bottom: calc(100% + 10px); left: 22px; transform: translateX(-50%); width: max-content; min-width: 11rem; max-width: min(15rem, calc(100vw - 24px)); display: grid; gap: .25rem; justify-items: center; padding: .7rem .9rem; border-radius: 10px; border: 2px solid var(--tip); background: var(--ms-tip-bg); color: var(--text); box-shadow: 0 10px 30px rgb(0 0 0 / .3); text-align: center; pointer-events: none; z-index: 10; }
/* Closed tooltips take no room (they would widen the page and the phone track); aria-describedby still reads them. */
.ms-tip { display: none; }
.ms-tip::after { content: ""; position: absolute; top: 100%; left: var(--arrow, 50%); transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--tip); }
.ms-tip.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--tip); }
.ms-tip.tier-uncommon { --tip: var(--tier-uncommon); } .ms-tip.tier-rare { --tip: var(--tier-rare); } .ms-tip.tier-epic { --tip: var(--tier-epic); }
.ms-tip.tier-legendary { --tip: var(--tier-legendary); } .ms-tip.tier-mythic { --tip: var(--tier-mythic); }
.ms-tip-tier { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.ms-tip-name { font-size: 1rem; font-weight: 700; }
.ms-tip-value { font-size: .8rem; font-weight: 600; color: var(--plt); font-variant-numeric: tabular-nums; }
.ms-tip-status { margin-top: .2rem; width: 100%; padding: .2rem .5rem; border-radius: 5px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; border: 1px solid; }
.ms-tip-status.unlocked { color: var(--ok-ink); background: var(--ok-bg); border-color: var(--ok); text-transform: uppercase; }
.ms-tip-status.locked { color: var(--text-muted); background: var(--bg-elev-2); border-color: var(--border); }
/* Without the script: hover and keyboard focus show the tooltip in place (desktop, where the track does not scroll). */
.ms-marker:hover .ms-tip, .ms-dot:focus-visible + .ms-tip { display: grid; }
/* With the script (js/donate.js): one tooltip at a time, placed on the screen so it is never cut off. */
.ms-js .ms-marker:hover .ms-tip, .ms-js .ms-dot:focus-visible + .ms-tip { display: none; }
.ms-js .ms-marker.open .ms-tip { display: grid; position: fixed; bottom: auto; transform: none; }
.ms-foot { display: grid; justify-items: center; gap: 1.1rem; margin-top: .75rem; text-align: center; }
.ms-next { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .3rem .7rem; margin: 0; padding: .6rem 1.25rem; border-radius: 999px; background: var(--ms-pill-bg); border: 1px solid var(--border); }
.ms-next-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.ms-next-name { font-weight: 700; font-size: 1.05rem; color: var(--heading-accent); }
.ms-next-away { font-size: .875rem; font-weight: 600; }
.ms-claim { display: inline-flex; align-items: center; gap: .75rem; min-height: 52px; padding: .8rem 2.2rem; border-radius: 999px; background: linear-gradient(135deg, #ffd700, #ffed4e); border: 3px solid rgb(255 215 0 / .5); color: #1a1305; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; box-shadow: 0 5px 20px rgb(255 200 0 / .35), inset 0 1px 0 rgb(255 255 255 / .5); transition: transform .15s ease, box-shadow .15s ease; }
.ms-claim:hover { color: #1a1305; transform: translateY(-2px); box-shadow: 0 8px 26px rgb(255 200 0 / .5), inset 0 1px 0 rgb(255 255 255 / .6); }
.ms-arrow { font-size: 1.2rem; transition: transform .15s ease; }
.ms-claim:hover .ms-arrow { transform: translateX(4px); }
/* Phones: the track keeps its full size and scrolls sideways (the script scrolls the current marker into view). */
@media (max-width: 760px) {
  .ms-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--input-border) transparent; }
  .ms-bar { min-width: 680px; }
  .ms-claim { width: 100%; justify-content: center; padding-inline: 1rem; }
  .ms-next { border-radius: 14px; }
}

/* Tabs (rankings) */
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 1rem; }
.tabs a { padding: .4rem .8rem; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--bg-elev); font-size: .9rem; }
.tabs a.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
@media (max-width: 640px) { .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: thin; } .tabs a { white-space: nowrap; } }
/* Coin manager (owner 2026-11-26): three resources as tabs with their balance, then the two actions of the chosen one. */
.coin-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 1.25rem auto 1rem; max-width: 44rem; }
/* The account area: the account's name and its sections on every account page, the chosen section below. */
.account-shell .page-banner { height: clamp(84px, 13vw, 140px); margin-bottom: 1rem; }
.account-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .75rem; margin: 0 0 .75rem; }
.account-name { margin: 0; font-size: clamp(1.4rem, 1.2rem + .9vw, 1.75rem); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.account-eyebrow { color: var(--text-muted); font-size: .875rem; }
.account-tabs { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.account-tabs-staff { display: contents; }
.account-tabs-staff a { border-style: dashed; }
@media (min-width: 641px) { .account-tabs-staff { display: flex; gap: .4rem; margin-left: auto; } }
@media (max-width: 640px) { .account-tabs { padding-bottom: .75rem; } }
/* A section's title is a title inside the account, not the page's one. */
.account-body > h1 { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.6rem); }
.account-body > section + section { margin-top: 1.5rem; }
.tabs.coin-tabs a { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; border-radius: var(--radius); padding: .65rem .9rem; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.coin-tab-balance { font-size: 1.35rem; font-weight: 700; color: var(--heading-accent); }
.tabs.coin-tabs a.active .coin-tab-balance { color: inherit; }
@media (max-width: 640px) { .coin-tabs { overflow: visible; padding-bottom: 0; } .tabs.coin-tabs a { white-space: normal; font-size: .85rem; padding: .55rem .65rem; } .coin-tab-balance { font-size: 1.1rem; } }
.coin-panel { max-width: 44rem; margin-inline: auto; }
.coin-ops { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .coin-ops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.coin-ops legend { font-weight: 600; padding: 0; margin-bottom: .5rem; }
.coin-op { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .9rem; border: 1px solid var(--input-border); border-radius: 10px; background: var(--input-bg); cursor: pointer; }
.coin-op input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; flex: none; accent-color: var(--accent); }
.coin-op:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg-elev)); box-shadow: 0 0 0 1px var(--accent); }
.coin-op:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.coin-op-text { display: flex; flex-direction: column; gap: .2rem; }
.coin-op-name { font-weight: 600; }
.coin-op-help { font-size: .875rem; color: var(--text-muted); line-height: 1.4; }

/* FAQ and legal */
details.faq { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; margin-bottom: .5rem; }
details.faq > summary { cursor: pointer; padding: .8rem 1rem; font-weight: 600; }
details.faq[open] > summary { border-bottom: 1px solid var(--border); }
.faq-body { padding: .8rem 1rem; overflow-wrap: anywhere; }
/* Terms, privacy, refunds: one centred reading column (owner 2026-11-26: they looked small and off-centre). */
.legal-page { max-width: 54rem; margin-inline: auto; }
.legal-text { overflow-wrap: anywhere; font-size: 1.05rem; line-height: 1.7; padding: clamp(1.25rem, 3vw, 2.25rem); }
.legal-text p, .legal-text li { max-width: none; }
.legal-text h1 { font-size: 1.75rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-elev); padding-block: 1.5rem; }
.footer-row { display: grid; gap: 1rem; }
.preferences { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.preferences select { width: auto; padding: .4rem .6rem; }
.legal { display: flex; gap: 1rem; flex-wrap: wrap; }
.legal a { color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
/* Touch screens: tap targets of at least 44px for the small links and the menu button. */
@media (pointer: coarse) {
    .nav-toggle > summary, .tabs a { min-height: 44px; display: inline-flex; align-items: center; }
    .shop-cats a { min-height: 44px; }
}
/* Footer preferences: applied on change by js/site.js; the Save button stays for browsers without JavaScript. */
.preferences.auto-save button[type=submit] { display: none; }

/* Home: highlights and news */
.highlight-icon { flex: none; display: grid; place-items: center; border-radius: 10px;
    color: var(--heading-accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.highlight-icon svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.home-section { margin-top: clamp(2.5rem, 6vw, 4rem); }
.section-title { font-size: clamp(1.4rem, 3vw, 1.75rem); color: var(--text); margin-bottom: 1.25rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.section-head a { font-weight: 600; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }

.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.highlight { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.highlight-icon { width: 3rem; height: 3rem; margin-bottom: 1rem; }
.highlight h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.highlight p { margin: 0; color: var(--text-muted); }

.hero .lead { hyphens: manual; text-wrap: balance; } /* a tagline never breaks inside a word */
@media (max-width: 720px) {
    .highlight { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.1rem 1.25rem; }
    .highlight-icon { grid-row: span 2; width: 2.6rem; height: 2.6rem; margin: 0; }
}

/* Home: latest updates (the forum's patch notes). The newest one large, the earlier ones as a timeline beside it. */
.patch-layout { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: stretch; }
.patch-layout.single { grid-template-columns: 1fr; }
.patch-feature, .patch-earlier { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.patch-feature { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) calc(clamp(1.25rem, 3vw, 2rem) + 4px);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, var(--bg-elev)) 0%, var(--bg-elev) 58%); }
.patch-feature::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--accent-strong), var(--accent)); }
.patch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; margin: 0; color: var(--text-muted); font-size: .9rem; }
.patch-meta time { font-weight: 600; color: var(--text); }
.patch-new { padding: .12rem .6rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.patch-feature h3 { margin: 0; font-size: clamp(1.35rem, 2.8vw, 1.8rem); line-height: 1.2; color: var(--text); text-wrap: balance; }
.patch-feature h3 a, .patch-timeline a { color: inherit; text-decoration: none; }
.patch-feature h3 a:hover, .patch-timeline a:hover { color: var(--link); text-decoration: underline; }
.patch-lead { margin: 0; color: var(--text-muted); font-size: 1.02rem; max-width: 62ch; }
.patch-inside { margin: .25rem 0 -.35rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.patch-topics { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.patch-topics li { padding: .3rem .7rem; border-radius: 999px; background: var(--bg-elev-2); border: 1px solid var(--border); font-size: .85rem; line-height: 1.3; color: var(--text); }
.patch-topics li.more { background: none; border-style: dashed; color: var(--text-muted); }
.patch-feature .button { margin-top: auto; }
.patch-earlier { padding: clamp(1.1rem, 2.5vw, 1.5rem); }
.patch-earlier h3 { margin: 0 0 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.patch-timeline { list-style: none; margin: 0 0 0 .35rem; padding: 0; }
.patch-timeline li { position: relative; padding: 0 0 1.1rem 1.25rem; border-left: 2px solid var(--border); }
.patch-timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.patch-timeline li::before { content: ""; position: absolute; left: -7px; top: .3rem; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; background: var(--bg-elev); border: 2px solid var(--accent); }
.patch-timeline time { display: block; font-size: .8rem; color: var(--text-muted); }
.patch-timeline a { font-weight: 600; color: var(--text); }
.patch-timeline p { margin: .15rem 0 0; color: var(--text-muted); font-size: .9rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.patch-lead, .patch-timeline p, .patch-feature h3 { hyphens: manual; overflow-wrap: anywhere; }
@media (max-width: 860px) { .patch-layout { grid-template-columns: 1fr; } }

.news-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.news-grid .card.news { margin: 0; padding: 1.5rem; }
.news-grid .card.news > p.small { margin-top: 0; }
/* Short card texts read better without words split by a hyphen (long words still wrap: overflow-wrap). */
.highlight p, .news-grid .card.news p, .news-grid .card.news h3 { hyphens: manual; }

/* Footer: community links and company notice */
.site-footer .social { display: flex; flex-wrap: wrap; gap: .75rem; margin: .5rem 0; }
.site-footer .social a { text-decoration: none; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; color: #fff; }
.site-footer .social-discord { background: #5865f2; }
.site-footer .social-facebook { background: #1877f2; }
.site-footer .company { line-height: 1.6; }

/* Shop: balances and shortcuts (old shop's Account Information box) */
.shop-wallet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1rem; padding: .9rem 1.1rem; }
.wallet-links { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0; }
.wallet-links a { display: inline-flex; gap: .4rem; align-items: baseline; padding: .3rem .2rem; border-radius: 6px; color: var(--text);
    text-decoration: underline dotted var(--text-muted); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.wallet-links a:hover { color: var(--link); text-decoration: underline solid; }
.wallet-links strong { color: var(--heading-accent); }
.wallet-links a:hover strong { color: inherit; }
@media (pointer: coarse) { .wallet-links a { min-height: 44px; align-items: center; } }
.shop-wallet-actions { display: flex; flex-wrap: wrap; gap: .5rem; }


.support-direct a { overflow-wrap: anywhere; }

/* Loading feedback (owner 2026-11-26: "is there any loading spinner for slow pages?"). js/site.js shows these only
   after 200 ms, so fast pages never flash. One thin bar under the header for page changes and form posts, a small
   spinner in the submitted button, a status line under it, a note when a page takes long. Reduced motion: no
   movement, the bar and spinner stand still and the texts say what is happening. */
.page-progress-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; overflow: hidden; pointer-events: none; background: color-mix(in srgb, var(--heading-accent) 22%, transparent); }
.page-progress-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 0 3px 3px 0; background: var(--heading-accent); animation: progress-slide 1.1s cubic-bezier(.45, 0, .55, 1) infinite; }
.page-progress-bar.stalled::before { animation: none; width: 100%; opacity: .55; }
@keyframes progress-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.page-progress-note { position: absolute; top: calc(100% + .5rem); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px);
    margin: 0; padding: .45rem .9rem; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow);
    color: var(--text); font-size: .9rem; text-align: center; }

/* A form being sent: the button keeps its label and gets a spinner; the form ignores further submits. */
.busy-spinner { display: inline-block; width: 1em; height: 1em; margin-inline-end: .5em; vertical-align: -.15em; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.button[aria-disabled="true"], .pay-method[aria-disabled="true"] { cursor: progress; }
.button.is-submitting, .link-button.is-submitting { opacity: .85; }
.busy-status { margin: .6rem 0 0; color: var(--text-muted); font-size: .9rem; }
.busy-status:empty { display: none; }
.busy-status.slow { color: var(--text); font-weight: 600; }
/* Payment: the clicked method is outlined and shows the spinner (in the corner of a logo button, so nothing moves). */
.pay-method.is-submitting { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pay-method .busy-spinner { position: absolute; top: 50%; right: .7rem; margin: -.5em 0 0; color: #9a6400; }
.payssion-go [role="status"] { display: flex; align-items: center; justify-content: center; gap: .25rem; }

/* Shop: the grid dims while a category or search loads (after 200 ms: js/site.js), the count stays readable. */
.shop-results.is-loading .item-grid { opacity: .55; transition: opacity .15s; }
/* Shop icons: a quiet box until the picture arrives (only with JavaScript, which marks the pending ones). */
.item-icon.pending { background: var(--bg-elev-2); border-radius: 10px; }
.item-icon.pending img { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
    .page-progress-bar::before { animation: none !important; width: 100%; opacity: .7; }
    .busy-spinner, .shop-search.loading .shop-search-spinner { animation: none !important; border-right-color: currentColor; border-style: dotted; }
}
