/* PrizeMC store theme (HorizonMines + PrisonEscape on PayNow)
   Same family as stats.prizemc.net and guard.prizemc.net: deepslate greys, Minecraft's own font for headings,
   buttons and prices, Inter for reading, square outlined buttons that lift onto a hard shadow. The accent colour
   comes from the template setting `accent` (layout sets --accent), so each store keeps its own colour. */

:root {
    color-scheme: dark;
    --bg: #25282d;
    --bg-sunk: #1f2226;
    --panel: #2e3137;
    --raised: #383c43;
    --line: #474b54;
    --line-soft: #363940;
    --text: #ece8de;
    --muted: #aaa79e;
    --faint: #807e77;
    --danger: #ff8f80;
    --good: #7bd88f;
    --accent: #55d8cb;
    --accent-ink: #14171a;
    --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);

    --btn-ink: rgba(236, 232, 222, 0.6);
    --btn-fill: rgba(31, 34, 38, 0.55);
    --btn-drop: rgba(0, 0, 0, 0.55);

    --pixel: "Mojangles", ui-monospace, "Cascadia Mono", monospace;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --fp: 0.0833em; /* one Minecraft font pixel: sizes sit on 12 / 18 / 24 / 36 / 48 px */
    --wrap: 1280px;
    --gutter: clamp(16px, 4vw, 32px);
    --head: 64px;
    --px-discord: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 15' shape-rendering='crispEdges'%3E%3Cpath d='M5 0h3v1h-3zM12 0h3v1h-3zM3 1h14v1h-14zM2 2h16v1h-16zM2 3h16v1h-16zM1 4h18v1h-18zM1 5h18v1h-18zM0 6h6v1h-6zM8 6h4v1h-4zM14 6h6v1h-6zM0 7h5v1h-5zM9 7h2v1h-2zM15 7h5v1h-5zM0 8h5v1h-5zM9 8h2v1h-2zM15 8h5v1h-5zM0 9h5v1h-5zM9 9h2v1h-2zM15 9h5v1h-5zM0 10h6v1h-6zM8 10h4v1h-4zM14 10h6v1h-6zM0 11h20v1h-20zM0 12h6v1h-6zM7 12h6v1h-6zM14 12h6v1h-6zM1 13h5v1h-5zM14 13h5v1h-5zM3 14h3v1h-3zM14 14h3v1h-3z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-y: scroll; scroll-padding-top: calc(var(--head) + 16px); }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
    background: var(--bg); color: var(--text);
    font: 400 16px/1.55 var(--sans); font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, .pixel {
    font-family: var(--pixel); font-weight: 400; letter-spacing: 0; line-height: 1.2; margin: 0;
    font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0;
}
h1 { font-size: 48px; text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.45); }
h2 { font-size: 24px; text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.35); }
h3 { font-size: 18px; }
p { margin: 0; }
s { color: var(--faint); text-decoration-thickness: 2px; }
[x-cloak] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -48px; z-index: 100; padding: 8px 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.main { flex: 1; position: relative; z-index: 1; padding: 8px 0 88px; }

/* The stats site's scrollbar: a thick orange pixel-bevel block on a sunk track (Chrome/Edge/Safari; Firefox gets colours). */
::-webkit-scrollbar { width: 16px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-sunk); box-shadow: inset 2px 0 0 var(--line-soft); }
::-webkit-scrollbar-thumb { background: #e8860c; border-radius: 0; box-shadow: inset 3px 3px 0 #ffb43a, inset -3px -3px 0 #9c4f04; }
::-webkit-scrollbar-thumb:hover { background: #f5961c; }
::-webkit-scrollbar-corner { background: var(--bg-sunk); }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-color: #e8860c var(--bg-sunk); } }

/* Minecraft text: the game's shadow is the glyph colour at a quarter brightness, one font pixel down-right. Bold draws
   the glyph twice, one font pixel apart, and widens every advance by that pixel. Spans carry color + --sh. */
.mc { font-family: var(--pixel); font-variant-ligatures: none; white-space: nowrap; }
.mc span { text-shadow: var(--fp) var(--fp) 0 var(--sh, #3f3f3f); }
.mc .b { letter-spacing: var(--fp); text-shadow: var(--fp) 0 0 currentColor, var(--fp) var(--fp) 0 var(--sh), calc(var(--fp) * 2) var(--fp) 0 var(--sh); }

/* ------------------------------------------------------------------ buttons (stats.prizemc.net / beyondthehorizon.xyz) */

.btn {
    appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 40px; padding: 8px 16px;
    border: 2px solid var(--btn-ink); border-radius: 2px; background: var(--btn-fill); color: var(--text);
    font-family: var(--pixel); font-size: 18px; font-variant-ligatures: none; line-height: 1.2; white-space: nowrap;
    text-decoration: none !important; cursor: pointer;
    transition: transform 180ms cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 180ms cubic-bezier(0.2, 0.8, 0.3, 1),
        background-color 180ms, color 180ms, border-color 180ms;
}
.btn:is(:hover, :focus-visible) { background: var(--text); border-color: var(--text); color: var(--bg); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--btn-drop); }
.btn:active { transform: none; box-shadow: none; transition-duration: 60ms; }
/* The lift moves a button out from under a cursor resting on its bottom-right edge: the hover drops, the button settles
   back under the cursor, lifts again, and it shakes. An invisible tail keeps the resting footprint hoverable meanwhile
   (2px border + 3px lift). Same for chips and cards. */
.btn, .chip, .card-hit { position: relative; }
:is(.btn, .chip, .card-hit):is(:hover, :focus-visible)::after, .cat:is(:hover, :focus-within)::before {
    content: ""; position: absolute; top: 0; left: 0; right: -5px; bottom: -5px;
}
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn i { font-size: 0.85em; }
.btn-primary, .btn-gold { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-aqua, .btn-quiet { background: var(--btn-fill); border-color: var(--btn-ink); color: var(--text); }
.btn-small, .btn-sm { min-height: 0; font-size: 12px; padding: 6px 10px 5px; gap: 6px; }
.btn-buy { min-height: 0; padding: 5px 14px; }
.btn-lg { width: 100%; min-height: 48px; }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
/* the Discord logo as 20x15 pixel art with a one-pixel block shadow: a mask filled with the text colour, so it flips
   with the button, on a pseudo-element because the mask would clip a drop-shadow on the same box */
.px-discord {
    --px: 1.5px; display: inline-block; flex: none; position: relative; width: calc(var(--px) * 20); height: calc(var(--px) * 15);
    filter: drop-shadow(var(--px) var(--px) 0 rgba(0, 0, 0, 0.35));
}
.px-discord::before {
    content: ""; position: absolute; inset: 0; background: currentColor;
    -webkit-mask: var(--px-discord) center / 100% 100% no-repeat; mask: var(--px-discord) center / 100% 100% no-repeat;
}
.btn .px-discord { --px: 1px; }
.hero-discord .px-discord { --px: 1.5px; }
.grow { flex: 1 1 auto; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-center { justify-content: center; }
.link-quiet { background: none; border: 0; padding: 0; color: var(--faint); font-size: 0.875rem; text-decoration: none; }
.link-quiet:hover { color: var(--text); text-decoration: underline; }
.link-danger:hover { color: var(--danger); }
.hint { color: var(--faint); font-size: 0.875rem; margin-top: 10px; }
.fine { color: var(--faint); font-size: 0.8125rem; margin-top: 14px; text-align: center; }
.tag { display: inline-block; padding: 1px 6px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); font-family: var(--pixel); font-size: 12px; line-height: 1.5; }
.notice { padding: 10px 12px; border: 1px solid; border-radius: 2px; margin-bottom: 10px; font-size: 0.9375rem; }
.notice-error { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.notice-ok { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); background: color-mix(in srgb, var(--good) 8%, transparent); }

/* ------------------------------------------------------------------ header: brand | categories (centred) | account + cart */

.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg-sunk); border-bottom: 1px solid var(--line-soft); }
.site-header > .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: var(--head); }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 6px; }
.brand span { font-family: var(--pixel); font-size: 24px; line-height: 1; white-space: nowrap; }
.brand:hover { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
    font-family: var(--pixel); font-size: 18px; line-height: 1; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.nav-link:hover, .nav-group:hover > .nav-link, .nav-group:focus-within > .nav-link { color: var(--text); }
.nav-link.is-active { color: var(--accent); }
.nav-group { position: relative; display: flex; }
.nav-group > .nav-link::after { content: ""; width: 6px; height: 6px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav-menu { position: absolute; top: 100%; left: 0; min-width: 210px; display: grid; padding: 6px; background: var(--bg-sunk); border: 1px solid var(--line); box-shadow: 5px 5px 0 var(--btn-drop); }
.nav-menu a { padding: 8px 10px; font-family: var(--pixel); font-size: 18px; color: var(--muted); text-decoration: none; }
.nav-menu a:hover, .nav-menu a.is-active { background: var(--raised); color: var(--text); }

.header-end { justify-self: end; display: flex; align-items: center; gap: 10px; }
.btn-signin, .who { min-height: 44px; padding: 0 16px; }
.who { gap: 10px; padding: 0 14px 0 6px; max-width: 220px; }
.who img { width: 28px; height: 28px; image-rendering: pixelated; }
.who span { overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 44px; height: 44px; min-height: 44px; padding: 0; position: relative; }
.icon-btn img { width: 32px; height: 32px; }
.icon-btn:is(:hover, :focus-visible) img { filter: none; }
.cart-count {
    position: absolute; top: -9px; right: -9px; min-width: 20px; height: 20px; padding: 0 4px;
    background: var(--accent); color: var(--accent-ink); font-family: var(--pixel); font-size: 12px; line-height: 21px; text-align: center;
}
.menu-btn { display: none; }
.mobile-nav { border-top: 1px solid var(--line-soft); background: var(--bg-sunk); max-height: calc(100vh - var(--head)); overflow-y: auto; }
.mobile-nav .wrap { display: grid; padding-top: 6px; padding-bottom: 14px; }
.mobile-nav a { padding: 12px 2px; border-bottom: 1px solid var(--line-soft); font-family: var(--pixel); font-size: 18px; color: var(--text); text-decoration: none; }
.mobile-nav a.is-child { padding-left: 20px; color: var(--muted); }

/* ------------------------------------------------------------------ home hero: the artwork, the logo and one card */

.hero { position: relative; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center var(--hero-focus, 38%); }
/* The artwork melts into the page inside the hero itself, on an eased curve so no line shows where it ends. */
.hero-art::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(37, 40, 45, 0) 0%, rgba(37, 40, 45, 0) 34%, rgba(37, 40, 45, 0.08) 44%, rgba(37, 40, 45, 0.22) 54%,
        rgba(37, 40, 45, 0.42) 64%, rgba(37, 40, 45, 0.64) 74%, rgba(37, 40, 45, 0.82) 83%, rgba(37, 40, 45, 0.94) 91%,
        rgba(37, 40, 45, 0.985) 96%, var(--bg) 100%);
}
.hero-in { display: flex; align-items: flex-end; gap: 24px; min-height: clamp(440px, 40vw, 600px); padding-top: 48px; padding-bottom: 72px; }
.hero-logo { width: 136px; height: 136px; flex: none; border-radius: 26px; object-fit: contain; background: var(--bg-sunk); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92), 0 18px 40px rgba(0, 0, 0, 0.4); }
.hero-card {
    max-width: 620px; padding: 22px 26px 24px;
    background: rgba(31, 34, 38, 0.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 3px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
.hero-card h1 { color: #fff; text-shadow: var(--fp) var(--fp) 0 #3f3f3f; }
.hero-card p { margin-top: 10px; font-size: 17px; line-height: 1.55; color: #cfcbc1; }
.hero-discord { margin-top: 18px; min-height: 48px; padding: 8px 18px 8px 14px; }
.hero-discord-count { display: inline-flex; align-items: center; gap: 8px; padding-left: 12px; margin-left: 2px; border-left: 2px solid rgba(255, 255, 255, 0.3); font-size: 12px; }
.hero-discord:is(:hover, :focus-visible) .hero-discord-count { border-left-color: rgba(0, 0, 0, 0.2); }

/* inner pages: a short strip of the artwork carrying the title */
.band { position: relative; isolation: isolate; }
.band-in { display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding-top: 40px; padding-bottom: 28px; }
.band h1 { color: #fff; text-shadow: var(--fp) var(--fp) 0 #3f3f3f; }
.band-sub { margin-top: 8px; color: #cfcbc1; font-size: 16px; }

/* ------------------------------------------------------------------ sections */

.main section + section { margin-top: 80px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 16px; }
.section-head p { flex-basis: 100%; color: var(--muted); font-size: 15px; } /* always on its own line, under the title */

/* ---- rank chart: every perk, one column per rank, Platinum's two terms side by side in one column */
.chart-scroll { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.chart { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.chart col.label { width: 23%; }
.chart col.pair-col { width: 21%; }
.chart th, .chart td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); font-weight: 400; text-align: center; vertical-align: middle; }
.chart thead th { border-bottom: 0; vertical-align: top; }
.chart tr.names th { position: sticky; top: calc(var(--head) + 1px); z-index: 2; background: var(--bg); padding: 12px 8px 10px; }
.chart .rank { display: grid; justify-items: center; gap: 8px; }
.chart .rank img { width: 40px; height: 40px; }
.chart .rank .mc { font-size: 18px; }
.chart tr.prices th { padding: 6px 8px 2px; }
.chart tr.buys th { padding: 10px 8px 18px; border-bottom: 2px solid var(--line); }
.chart .price { display: block; font-family: var(--pixel); font-size: 24px; line-height: 1; color: var(--text); text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.4); white-space: nowrap; }
.chart .price s { display: block; font-size: 12px; margin-bottom: 4px; text-shadow: none; }
.chart .price.none { color: var(--line); text-shadow: none; }
.chart .term { display: block; margin-top: 4px; font-family: var(--pixel); font-size: 12px; color: var(--faint); }
.chart .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chart .pair > * + * { border-left: 1px solid var(--line-soft); }
.chart tr.group th { padding: 28px 10px 8px; text-align: left; font-family: var(--pixel); font-size: 18px; color: var(--text); border-bottom: 1px solid var(--line); text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.35); }
.chart tbody th { text-align: left; color: var(--muted); }
.chart td { color: var(--text); line-height: 1.35; }
.chart td img { width: 18px; height: 16px; margin: 0 auto; }
.chart td.none { color: var(--line); }
/* highlights are background IMAGES, so sticky cells keep their solid colour underneath */
.chart { --hl: linear-gradient(rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.035)); }
.chart tbody tr:not(.group):hover > * { background-image: var(--hl); }
.chart tbody tr:not(.group):hover th { color: var(--text); }
.chart:has(tbody tr:not(.group) > :nth-child(2):hover) tbody tr:not(.group) > :nth-child(2),
.chart:has(tbody tr:not(.group) > :nth-child(3):hover) tbody tr:not(.group) > :nth-child(3),
.chart:has(tbody tr:not(.group) > :nth-child(4):hover) tbody tr:not(.group) > :nth-child(4),
.chart:has(tbody tr:not(.group) > :nth-child(5):hover) tbody tr:not(.group) > :nth-child(5),
.chart:has(tbody tr:not(.group) > :nth-child(6):hover) tbody tr:not(.group) > :nth-child(6),
.chart:has(tbody tr:not(.group) > :nth-child(7):hover) tbody tr:not(.group) > :nth-child(7),
.chart:has(tbody tr:not(.group) > :nth-child(8):hover) tbody tr:not(.group) > :nth-child(8) { background-image: var(--hl); }
/* home page: the chart fades out a few rows in and the button sits in the fade */
.chart-preview { position: relative; }
.chart-preview::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 115px; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(37, 40, 45, 0) 0%, rgba(37, 40, 45, 0.72) 45%, var(--bg) 100%); }
.chart-more { position: relative; z-index: 4; display: flex; justify-content: center; margin-top: -44px; }

/* ---- a featured category as rows (PrisonEscape's auras) */
.ladder { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.rung { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 4px 18px; padding: 14px 12px; border-bottom: 1px solid var(--line-soft); transition: background-color 150ms; }
.rung:hover { background: rgba(255, 255, 255, 0.025); }
.rung-icon { width: 64px; height: 64px; overflow: hidden; background: var(--bg-sunk); }
.rung-icon img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.9); transform-origin: 50% 46%; }
.rung-name { font-size: 24px; line-height: 1.15; color: #fff; }
.rung-text { margin-top: 4px; color: var(--muted); font-size: 15px; }
.rung-buy { display: flex; align-items: center; gap: 14px; }
.rung-buy .price { font-family: var(--pixel); font-size: 24px; line-height: 1; text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.4); white-space: nowrap; }
.rung-buy .price s { font-size: 12px; margin-right: 6px; text-shadow: none; }

/* ---- the store's other categories */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cat {
    position: relative; display: flex; flex-direction: column; background: var(--panel); border: 2px solid var(--line-soft); border-radius: 2px;
    transition: transform 180ms cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 180ms cubic-bezier(0.2, 0.8, 0.3, 1), border-color 180ms;
}
.cat:hover, .cat:focus-within { border-color: var(--btn-ink); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--btn-drop); }
.cat-art { aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #3a3e46 0%, var(--bg-sunk) 75%); border-bottom: 1px solid var(--line-soft); }
.cat-art > img.cover { width: 100%; height: 100%; object-fit: cover; }
.cat-art > img.contain { width: 72%; height: 80%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45)); }
.cat-art > img.pixel { width: 128px; height: 128px; image-rendering: pixelated; image-rendering: crisp-edges; filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.45)); }
.cat-art .path { display: flex; align-items: center; gap: 6px; padding: 0 14px; max-width: 100%; }
.cat-art .path img { width: 44px; height: auto; min-width: 24px; flex: 0 1 44px; }
.cat-art .path i { font-style: normal; font-family: var(--pixel); font-size: 18px; color: var(--faint); }
.cat-art > i { font-size: 2.5rem; color: var(--faint); }
.cat-body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.cat-body h3 { font-size: 24px; text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.35); }
.cat-link { color: var(--text); text-decoration: none; }
.cat-link::after { content: ""; position: absolute; inset: 0; }
.cat-body p { color: var(--muted); font-size: 15px; }
.cat-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cat-subs .btn { position: relative; z-index: 1; }

/* ---- how it works: the number leads its own title */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { padding-top: 22px; border-top: 2px solid var(--line-soft); }
.steps h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 24px; text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.35); }
.step-n { color: var(--accent); text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.5); }
.steps p { color: var(--muted); font-size: 17px; line-height: 1.6; }

/* ---- help */
.help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; padding-top: 36px; border-top: 1px solid var(--line-soft); }
.help h3 { margin-bottom: 10px; font-size: 24px; text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.35); }
.help .rich { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 60ch; }
.help .row { gap: 12px; margin-top: 20px; }

/* ---- dashboard modules (top supporter, goal, ...) */
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.module { padding: 18px 20px; background: var(--panel); border: 2px solid var(--line-soft); border-radius: 2px; }
.module h3 { margin-bottom: 10px; color: var(--muted); }
.module-top { display: flex; align-items: center; gap: 16px; }
.module-top h3 { margin-bottom: 2px; }
.module-top img { width: 56px; height: 56px; image-rendering: pixelated; }
.module-top strong { font-family: var(--pixel); font-weight: 400; font-size: 24px; }
.heads { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.heads img { width: 40px; height: 40px; image-rendering: pixelated; }
.goal-bar { height: 16px; background: var(--bg-sunk); border: 2px solid var(--line); }
.goal-bar span { display: block; height: 100%; background: var(--accent); }
.module-goal p { color: var(--muted); margin-top: 8px; font-size: 0.9375rem; }
.module input { flex: 1; min-width: 0; }

/* ------------------------------------------------------------------ category pages */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
    display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px;
    border: 2px solid var(--btn-ink); border-radius: 2px; background: var(--btn-fill); color: var(--text);
    font-family: var(--pixel); font-size: 18px; line-height: 1; text-decoration: none;
    transition: transform 180ms cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 180ms cubic-bezier(0.2, 0.8, 0.3, 1), background-color 180ms, color 180ms, border-color 180ms;
}
.chip:is(:hover, :focus-visible) { background: var(--text); border-color: var(--text); color: var(--bg); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--btn-drop); }
.chip.is-active, .chip.is-active:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: none; box-shadow: none; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.grid.grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-wide .card-body { gap: 8px; padding: 16px 20px 20px; }
.grid-wide .card-name { font-size: 24px; }
.grid-wide .card-price { font-size: 36px; }
.card { height: 100%; }
.card-hit {
    width: 100%; height: 100%; display: flex; flex-direction: column; padding: 0; text-align: left;
    background: var(--panel); border: 2px solid var(--line-soft); border-radius: 2px; color: var(--text);
    transition: transform 180ms cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 180ms cubic-bezier(0.2, 0.8, 0.3, 1), border-color 180ms;
}
.card-hit:is(:hover, :focus-visible) { border-color: var(--btn-ink); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--btn-drop); }
.card-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 42%, #3a3e46 0%, var(--bg-sunk) 75%); border-bottom: 1px solid var(--line-soft); color: var(--faint); font-size: 2.5rem; }
.card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-art img.contain { inset: 12%; width: 76%; height: 76%; object-fit: contain; }
.card-body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.card-name { font-family: var(--pixel); font-size: 18px; line-height: 1.25; }
.card-price { font-family: var(--pixel); font-size: 24px; line-height: 1; color: var(--text); text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.4); }
.card-price s { font-size: 12px; margin-right: 6px; text-shadow: none; }
.card-price small { font-size: 12px; color: var(--faint); text-shadow: none; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 7px 2px; font-family: var(--pixel); font-size: 12px; line-height: 1.4; }
.badge-sale { background: var(--accent); color: var(--accent-ink); }
.badge-out { background: var(--bg-sunk); color: var(--muted); border: 1px solid var(--line); }
.card.is-out .card-art img { opacity: 0.45; filter: grayscale(0.6); }
/* wide cards show a 16:9 band of the art (its empty top cut off) so both token rows fit on one screen; the art's
   top-right corner, where tools/build_token_art.py draws the bonus tag, is lifted into the card's corner */
.card-art img.card-tag { display: none; }
.grid-wide .card-art { aspect-ratio: 16 / 9; }
.grid-wide .card-art img.contain { inset: -15% 0 auto; width: 100%; height: 120%; }
.grid-wide .card-art img.card-tag { display: block; inset: 10px 10px auto auto; width: 67.5%; height: auto; aspect-ratio: 1; clip-path: inset(0 0 89% 69%); pointer-events: none; }

.empty { display: grid; justify-items: center; gap: 10px; padding: 56px 16px; text-align: center; }
.empty > i { font-size: 2.5rem; color: var(--faint); }
.empty h2 { font-size: 24px; }
.empty p { color: var(--muted); max-width: 44ch; margin-bottom: 8px; }
.empty-sm { padding: 40px 8px; }
.empty > img { width: 48px; height: 48px; }

/* ------------------------------------------------------------------ product dialog + product page */

/* overflow hidden: the drawer slides in from off-screen and the dialog rises 14px, and either would flash scrollbars */
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; overflow: hidden; background: rgba(12, 13, 15, 0.74); }
.dialog {
    position: relative; width: min(900px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto;
    background: var(--panel); border: 2px solid var(--line); border-radius: 2px; box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
}
.dialog-enter { transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dialog-from { opacity: 0; transform: translateY(14px); }
.dialog-to { opacity: 1; transform: none; }
.dialog-close {
    position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center;
    border: 2px solid var(--line); border-radius: 2px; background: var(--bg-sunk); color: var(--muted);
}
.dialog-close:hover { border-color: var(--text); color: var(--text); }
.dialog-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-family: var(--pixel); }
.dialog-price span { font-size: 24px; line-height: 1; text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.4); }
.dialog-price s { font-size: 18px; }
.dialog-price small { font-family: var(--sans); font-size: 0.8125rem; color: var(--faint); }
.dialog-sale { color: var(--accent); font-family: var(--pixel); font-size: 18px; }
.dialog-actions { display: grid; gap: 10px; }
.dialog-actions .hint { margin: 0; }
.options { display: grid; gap: 12px; }
.sold-out { font-family: var(--pixel); font-size: 18px; color: var(--danger); }

/* the product popup: art | title + price, the description (the only part that scrolls), the buy bar */
/* sized for the store GIFs (420 x 440): the art column shows them at full size, a little over */
.dialog-product { width: min(1240px, 100%); max-height: min(860px, calc(100vh - 40px)); max-height: min(860px, calc(100dvh - 40px)); display: flex; flex-direction: column; overflow: hidden; }
.pd { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 480px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.pd-art {
    position: relative; display: grid; place-items: center; min-height: 300px; padding: 40px; overflow: hidden;
    background: radial-gradient(circle at 50% 45%, #3a3e46 0%, var(--bg-sunk) 72%); color: var(--faint); font-size: 3rem;
}
.dialog .pd-art { min-height: 480px; border-right: 1px solid var(--line-soft); }
.pd-art img { width: 100%; max-width: 300px; height: auto; object-fit: contain; filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.35)); }
.pd-art.is-motion { padding: 0; background: var(--bg-sunk); }
.pd-art.is-motion img { max-width: none; filter: none; }
.pd-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pd-head { display: grid; gap: 12px; padding: 30px 32px 20px; border-bottom: 1px solid var(--line-soft); }
.pd-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-right: 48px; font-size: 36px; line-height: 1.1; }
.pd-name .tag { font-size: 18px; padding: 3px 8px 2px; color: var(--muted); border-width: 2px; text-shadow: none; }
.pd-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 24px 32px 28px; }
.pd-body::-webkit-scrollbar { width: 10px; }
.pd-body::-webkit-scrollbar-thumb { box-shadow: inset 2px 2px 0 #ffb43a, inset -2px -2px 0 #9c4f04; }
.pd-foot { display: grid; gap: 10px; padding: 18px 32px 22px; border-top: 1px solid var(--line-soft); background: var(--bg); }
.pd-foot .row .btn { min-height: 48px; }
.pd-foot .hint { margin: 0; }
/* between phones and a full desktop, a narrower art column leaves the buy bar room for both tier tiles */
@media (max-width: 1100px) {
    .pd { grid-template-columns: 380px minmax(0, 1fr); }
    .dialog .pd-art { min-height: 380px; }
}

/* tier tiles (Seasonal / Permanent) above the buy buttons; the picked one takes the accent. No hover lift: a tile is a
   choice, not a button. */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.tier {
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2px 10px;
    padding: 10px 14px 11px; border: 2px solid var(--line); border-radius: 2px; background: var(--bg-sunk); cursor: pointer;
}
.tier::before { content: ""; width: 12px; height: 12px; border: 2px solid var(--btn-ink); }
.tier:hover { border-color: var(--btn-ink); }
.tier.is-on { border-color: var(--accent); background: var(--accent-soft); }
.tier.is-on::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px var(--bg-sunk); }
.tier:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }
.tier-name, .tier-price { font-family: var(--pixel); font-size: 18px; line-height: 1.2; }
.tier-price { justify-self: end; }
.tier-note { grid-column: 2 / -1; color: var(--muted); font-size: 0.875rem; line-height: 1.35; }

/* "you need this first": the products PayNow asked for, as chips that open them */
.needs { padding: 12px 14px 14px; border: 2px solid var(--line); border-radius: 2px; background: var(--bg-sunk); }
.needs-text { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--text); font-weight: 600; }
.needs-text i { color: var(--danger); }
.needs-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.needs-item { display: inline-flex; align-items: center; gap: 10px; }
.needs-or { color: var(--faint); font-size: 0.875rem; }
.needs .chip { gap: 8px; min-height: 40px; }
.needs .chip img { width: 24px; height: 24px; }
.chip.is-static, .chip.is-static:hover { cursor: default; background: var(--btn-fill); border-color: var(--btn-ink); color: var(--text); transform: none; box-shadow: none; }

.product-page { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 36px; align-items: start; }
.product-art { border: 2px solid var(--line-soft); border-radius: 2px; aspect-ratio: 1; position: sticky; top: calc(var(--head) + 24px); }
.product-art.is-motion img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: grid; gap: 16px; }
.product-desc { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line-soft); }

.field { display: grid; gap: 6px; }
.field > span, .field > label { font-family: var(--pixel); font-size: 18px; color: var(--text); }
input[type="text"], input[type="number"], input[type="email"], select, textarea {
    width: 100%; min-height: 44px; padding: 9px 12px; border: 2px solid var(--line); border-radius: 2px;
    background: var(--bg-sunk); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input::placeholder { color: var(--faint); }

.rich { line-height: 1.6; }
.rich p + p, .rich p + ul, .rich ul + p { margin-top: 10px; }
.rich ul, .rich ol { margin: 8px 0; padding-left: 20px; }
.rich h2, .rich h3 { margin: 16px 0 8px; font-size: 18px; text-shadow: none; }
.rich a { color: var(--accent); }
.rich strong { color: var(--text); }
.rich img { height: auto; }

/* product descriptions, as app.js cleanDescription() rebuilds them */
.desc { color: var(--muted); font-size: 15px; line-height: 1.55; }
.desc > :first-child { margin-top: 0; }
.desc em { color: var(--faint); }
.desc .desc-note { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 22px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 2px; background: var(--bg-sunk); color: var(--text); }
.desc .desc-note i { margin-top: 4px; color: var(--faint); }
.desc .desc-note span { font-weight: 600; }
.desc .desc-shots { display: grid; justify-items: center; gap: 10px; margin: 0 0 22px; padding: 16px 16px 18px; border: 2px solid var(--line); border-radius: 2px; background: var(--bg-sunk); }
.desc .desc-shots figcaption { margin-bottom: 4px; color: var(--text); font-family: var(--pixel); font-size: 18px; line-height: 1.3; text-align: center; text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.45); }
.desc .desc-shots img { max-width: 100%; height: auto; }
.desc .desc-h {
    margin: 26px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--text);
    font-size: 18px; text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.35);
}
.desc .desc-note + .desc-h, .desc .desc-shots + .desc-h, .desc .desc-h:first-child { margin-top: 0; }
.desc ul.perks { list-style: none; margin: 4px 0 0; padding: 0; }
.desc ul.perks.cols { columns: 2 250px; column-gap: 36px; }
.desc ul.perks > li { position: relative; padding: 5px 0 5px 24px; color: var(--text); break-inside: avoid; }
/* guard.prizemc.net's bullets: a pixel block with a hard bottom-right shade in a darker tone of its own colour */
.desc ul.perks > li::before {
    content: ""; position: absolute; left: 2px; top: calc(5px + 0.775em - 5px); width: 9px; height: 9px;
    background: var(--mark, var(--accent)); box-shadow: 2px 2px 0 color-mix(in srgb, var(--mark, var(--accent)) 38%, #000);
}
.desc .note { margin-left: 6px; color: var(--faint); font-size: 0.875em; }
.desc li > .note { display: block; margin: 1px 0 0; line-height: 1.4; }
.desc ul.sub { list-style: none; margin: 3px 0 0; padding: 0; }
.desc ul.sub li { position: relative; padding: 2px 0 2px 16px; color: var(--muted); font-size: 0.9375em; }
.desc ul.sub li::before { content: ""; position: absolute; left: 1px; top: calc(2px + 0.775em - 4px); width: 6px; height: 6px; background: #c9c6bd; box-shadow: 2px 2px 0 #66645e; }
.desc .odds { width: 100%; margin-top: 4px; border-collapse: collapse; }
.desc .odds td { padding: 6px 0; border-bottom: 1px solid var(--line-soft); color: var(--text); }
.desc .odds td:last-child { padding-left: 16px; text-align: right; white-space: nowrap; font-family: var(--pixel); font-size: 18px; color: var(--muted); }

/* ------------------------------------------------------------------ cart drawer + cart page */

.overlay-side { place-items: stretch end; padding: 0; }
.drawer { width: min(440px, 100vw); height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--panel); border-left: 2px solid var(--line); box-shadow: -8px 0 0 rgba(0, 0, 0, 0.3); }
.drawer-enter { transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
.drawer-from { transform: translateX(100%); }
.drawer-to { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.drawer-head .dialog-close { position: static; }
.drawer-who { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.drawer-who img { width: 36px; height: 36px; image-rendering: pixelated; }
.drawer-who div { display: grid; flex: 1; min-width: 0; }
.drawer-who strong { font-family: var(--pixel); font-weight: 400; font-size: 18px; }
.drawer-who span { color: var(--faint); font-size: 0.875rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px; }
.drawer-body.is-busy { opacity: 0.6; pointer-events: none; }
.drawer-foot { display: grid; gap: 12px; padding: 18px 20px 22px; border-top: 1px solid var(--line-soft); }
.total { display: flex; align-items: baseline; justify-content: space-between; }
.total span { color: var(--muted); }
.total strong { font-family: var(--pixel); font-weight: 400; font-size: 24px; text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.4); }

.lines { list-style: none; margin: 0; padding: 0; }
.line { display: flex; gap: 14px; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.line:last-child { border-bottom: 0; }
.line-main { display: grid; gap: 3px; min-width: 0; align-content: start; }
.line-main strong { font-family: var(--pixel); font-weight: 400; font-size: 18px; }
.line-main .tag { justify-self: start; }
.line-opt, .line-unit { color: var(--faint); font-size: 0.875rem; }
.line-side { display: grid; gap: 6px; justify-items: end; align-content: start; }
.line-total { font-family: var(--pixel); font-size: 18px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 2px; }
.qty button { width: 30px; height: 28px; border: 0; background: none; color: var(--muted); font-size: 0.75rem; }
.qty button:hover { background: var(--raised); color: var(--text); }
.qty span { min-width: 28px; text-align: center; font-family: var(--pixel); font-size: 18px; }

.cart-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.lines-page .line { align-items: center; }
.line-art { width: 64px; height: 64px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--bg-sunk); color: var(--faint); }
.line-art img { width: 100%; height: 100%; object-fit: cover; }
.lines-page .line-main { flex: 1; }
.qty-form input { width: 76px; text-align: center; }
.summary { display: grid; gap: 12px; padding: 20px; background: var(--panel); border: 2px solid var(--line-soft); border-radius: 2px; }
.summary .link-quiet { justify-self: center; }

/* ------------------------------------------------------------------ sign in, order done, account, custom pages */

.auth { display: grid; place-items: center; }
.auth-card { width: min(460px, 100%); display: grid; gap: 14px; padding: 26px; background: var(--panel); border: 2px solid var(--line-soft); border-radius: 2px; }
.auth-card .hint { margin-top: -4px; }
.auth-preview { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg-sunk); border: 1px solid var(--line-soft); }
.auth-preview img { width: 40px; height: 40px; image-rendering: pixelated; }

.done { display: grid; justify-items: center; gap: 14px; max-width: 620px; margin: 0 auto; padding: 32px 0; text-align: center; }
.done > i { font-size: 3rem; color: var(--good); }
.done h2 { font-size: 36px; }
.done p { color: var(--muted); }

.records { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.record { display: flex; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
.record-art { width: 56px; height: 56px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--bg-sunk); color: var(--faint); font-size: 1.25rem; }
.record-art img { width: 100%; height: 100%; object-fit: cover; }
.record-main { flex: 1; display: grid; gap: 2px; min-width: 0; }
.record-main strong { font-family: var(--pixel); font-weight: 400; font-size: 18px; }
.record-main strong a { color: var(--text); text-decoration: none; }
.record-main strong a:hover { color: var(--accent); }
.record-main span { color: var(--muted); font-size: 0.9375rem; }
.record-main .record-id { color: var(--faint); font-size: 0.8125rem; }
.record-side { display: grid; gap: 6px; justify-items: end; }
.record-amount { font-family: var(--pixel); font-weight: 400; font-size: 18px; }

.prose-page { max-width: 76ch; }

/* ------------------------------------------------------------------ footer: the server, Discord and the small print */

.site-footer { position: relative; z-index: 1; background: var(--bg-sunk); border-top: 1px solid var(--line-soft); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-top: 22px; padding-bottom: 20px; }
.footer-status { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.fs-item {
    display: inline-flex; align-items: center; gap: 10px; padding: 0; background: none; border: 0;
    font-family: var(--pixel); font-size: 18px; line-height: 1.2; color: var(--text); text-decoration: none; white-space: nowrap;
}
.fs-item .c7 { color: var(--muted); }
.fs-item .hint { margin: 0; font-family: var(--pixel); font-size: 12px; color: var(--faint); min-width: 6ch; }
.fs-item:hover, .fs-item:hover .c7, .fs-item:hover .hint { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 22px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 0.8125rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--faint); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.socials { display: flex; gap: 6px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 2px; color: var(--muted); }
.socials a:hover { border-color: var(--text); color: var(--text); }

/* pixel status bubble (horizonmines.net / stats footer) */
.bubble {
    --bubble: #7a7f7b; --bubble-dark: #4a4e4b;
    display: inline-block; width: 6px; height: 6px; margin: 2px; flex: none; background: var(--bubble);
    box-shadow: -2px 0 0 0 var(--bubble-dark), 2px 0 0 0 var(--bubble-dark), 0 -2px 0 0 var(--bubble-dark), 0 2px 0 0 var(--bubble-dark), inset -2px -2px 0 0 var(--bubble-dark);
}
.bubble.on { --bubble: #55ff55; --bubble-dark: #1f8f2f; }
.bubble.blurple { --bubble: #8c96ff; --bubble-dark: #4752c4; }

/* ------------------------------------------------------------------ toasts */

.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 90; display: grid; gap: 8px; justify-items: center; transform: translateX(-50%); pointer-events: none; }
.toast { padding: 6px 12px; background: rgba(0, 0, 0, 0.82); color: #fff; font-family: var(--pixel); font-size: 18px; text-shadow: var(--fp) var(--fp) 0 #3f3f3f; }
.toast-success { color: #55ff55; text-shadow: var(--fp) var(--fp) 0 #153f15; }
.toast-error { color: #ff5555; text-shadow: var(--fp) var(--fp) 0 #3f1515; }

/* ---- trails page: effects, then the single shapes, then the Everything pack as one wide deal card. */
.bundle { margin: 56px 0; border: 2px solid var(--line-soft); border-radius: 2px; }
.bundle-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; min-width: 0; padding: 28px 36px; background: var(--panel); }
.bundle-head { display: grid; gap: 10px; min-width: 0; max-width: 46ch; }
.bundle-kicker { font-family: var(--pixel); font-size: 12px; line-height: 1; letter-spacing: var(--fp); text-transform: uppercase; color: var(--accent); }
.bundle-head h2 { font-size: 36px; }
.bundle-head p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.bundle-buy { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px 20px; }
.bundle-save { display: grid; place-content: center; padding: 0 14px; font-family: var(--pixel); font-size: 24px; line-height: 1; background: var(--accent); color: var(--accent-ink); }
.bundle-price { display: grid; align-content: center; justify-items: start; gap: 8px; }
.bundle-was { display: flex; align-items: baseline; gap: 10px; font-family: var(--pixel); line-height: 1; }
.bundle-was-label { font-size: 12px; letter-spacing: var(--fp); text-transform: uppercase; color: var(--muted); }
/* the strike is drawn one font pixel thick, below the digits' middle bar, so the old price stays readable */
.bundle-was s { padding: 0 2px; font-size: 24px; color: var(--text); text-decoration: none; text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.4);
    background: linear-gradient(var(--danger), var(--danger)) 0 62% / 100% var(--fp) no-repeat; }
.bundle-price .price { font-family: var(--pixel); font-size: 36px; line-height: 1; white-space: nowrap; text-shadow: var(--fp) var(--fp) 0 rgba(0, 0, 0, 0.4); }
.bundle-buy .btn-buy { align-self: center; min-height: 44px; padding: 8px 26px; }

/* ------------------------------------------------------------------ narrow screens */

@media (max-width: 1100px) {
    .chart-scroll { overflow-x: auto; }
    .chart { min-width: 1040px; }
    .chart tr.names th { position: static; }
    /* the label column stays put while the ranks slide under it. top: auto drops the desktop header's sticky top, which
       inside this scroller pushed the corner cell down over the rank names; the shadow fills the gutter to its left */
    .chart tbody th, .chart thead th:first-child { position: sticky; left: 0; top: auto; z-index: 1; background: var(--bg); box-shadow: calc(var(--gutter) * -1) 0 0 var(--bg); }
}
@media (max-width: 1000px) {
    .site-header > .wrap { grid-template-columns: 1fr auto; }
    .nav { display: none; }
    .menu-btn { display: inline-flex; }
}
@media (max-width: 760px) {
    h1 { font-size: 36px; }
    .hero-in { flex-direction: column; align-items: flex-start; min-height: 0; padding-top: 160px; padding-bottom: 48px; gap: 18px; }
    .hero-logo { width: 88px; height: 88px; border-radius: 18px; }
    .hero-card { padding: 16px 18px 18px; }
    .hero-card p { font-size: 16px; }
    .band-in { min-height: 160px; }
    .brand span { font-size: 18px; }
    .who span { display: none; }
    .who { padding: 0 6px; }
    .rung { grid-template-columns: 48px minmax(0, 1fr); }
    .rung-icon { width: 48px; height: 48px; }
    .rung-buy { grid-column: 1 / -1; justify-content: space-between; }
    .steps, .help { grid-template-columns: 1fr; }
    .product-page, .cart-page { grid-template-columns: 1fr; }
    .product-art { position: relative; top: 0; }
    .overlay { padding: 12px; }
    .dialog-product { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
    .pd { display: block; overflow-y: auto; }
    .dialog .pd-art { min-height: 0; padding: 24px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
    .pd-art img { max-width: 140px; }
    .pd-art.is-motion img { max-width: 100%; }
    .pd-head { padding: 20px 20px 16px; }
    .pd-name { font-size: 24px; }
    .pd-body { overflow: visible; padding: 18px 20px 22px; }
    .pd-foot { position: sticky; bottom: 0; padding: 14px 20px 16px; }
    .fs-item { font-size: 12px; }
    .bundle-card { padding: 22px 20px 24px; }
    .bundle-head h2 { font-size: 24px; }
    .bundle-price .price { font-size: 24px; }
    .bundle-save, .bundle-was s { font-size: 18px; }
    .bundle-buy .btn-buy { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------------ phones: tighter spacing, two-up product grids,
   a rank chart that shows more than one rank at a time, readable text over the artwork */

@media (max-width: 760px) {
    .main { padding-bottom: 64px; }
    .main section + section { margin-top: 56px; }

    .hero-in { padding-top: 104px; padding-bottom: 36px; gap: 14px; }
    .hero-logo { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92), 0 10px 24px rgba(0, 0, 0, 0.4); }
    .hero-card { width: 100%; }
    .hero-discord { display: flex; width: 100%; margin-top: 16px; }
    .hero-discord-count { margin-left: auto; }

    /* inner pages: the title and description sit on the artwork, so darken it more */
    .band-in { min-height: 0; padding-top: 88px; padding-bottom: 20px; }
    .band .hero-art::after { background: linear-gradient(180deg, rgba(37, 40, 45, 0.3) 0%, rgba(37, 40, 45, 0.72) 55%, var(--bg) 100%); }
    .band-sub { font-size: 15px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85); }

    .chips { gap: 6px; margin-bottom: 18px; }
    .chip { min-height: 34px; padding: 5px 10px; }
    .grid, .grid.grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .card-body, .grid-wide .card-body { gap: 4px; padding: 10px 10px 12px; }
    .grid-wide .card-name { font-size: 18px; }
    .card-price, .grid-wide .card-price { font-size: 18px; }
    .badge { top: 6px; left: 6px; }
    .grid-wide .card-art img.card-tag { inset: 6px 6px auto auto; }

    /* rank chart: a narrow label column and narrower rank columns, so two or three ranks fit beside the perks */
    .chart-scroll::before { content: "Swipe to compare every rank \2192"; position: sticky; left: 0; display: block; margin-bottom: 10px; color: var(--faint); font-size: 13px; }
    .chart { min-width: 720px; font-size: 13px; }
    .chart col.label { width: 136px; }
    .chart col.pair-col { width: 150px; }
    .chart th, .chart td { padding: 8px 6px; }
    .chart .rank img { width: 32px; height: 32px; }
    .chart .rank .mc { font-size: 12px; }
    .chart .price { font-size: 18px; }
    .chart tr.group th { padding-top: 22px; }
    .chart-preview::after { height: 90px; }

    .steps { gap: 28px; }
    .steps h3, .help h3 { font-size: 18px; }
    .steps p, .help .rich { font-size: 16px; }
    .help { gap: 28px; padding-top: 28px; }

    /* product popup: the buy buttons share the row evenly instead of leaving Gift alone on a second line */
    .pd-foot .row .btn { flex: 1 1 auto; min-height: 44px; padding-left: 12px; padding-right: 12px; }

    .footer-top { gap: 12px 20px; padding-top: 18px; }
    .footer-status { gap: 8px 20px; }
}
