/* Synergy Store 2026: layout A "Command Rail" (owner-approved, mockups/a.css + tokens.css) made real.
   Tokens come from the live homepage (reference/homepage/site.css): square corners, hairlines, Exo 2, warm white on ink,
   gold for selection. Hand-written, no build step. Breakpoints: 1400 (featured band stacks), 1100 (no side panel), 1000 (browse list in one
   column), 900 (home hero stacks), 760 (rail becomes the top bar). */

/* Two files per weight. The small woff2 holds Western European letters only and is what almost every page needs; it is
   declared last with its unicode-range, so it wins for those characters. Anything else (Polish, Czech, Turkish, Cyrillic
   player names...) comes from the full TTF, which the browser fetches only when such a character is on the page. */
@font-face { font-family: "Exo 2"; src: url("../fonts/Exo2-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("../fonts/Exo2-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face {
	font-family: "Exo 2";
	src: url("../fonts/Exo2-Medium.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
	unicode-range: U+0020-007E, U+00A0-00B4, U+00B6-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+20AC, U+2212;
}
@font-face {
	font-family: "Exo 2";
	src: url("../fonts/Exo2-Bold.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
	unicode-range: U+0020-007E, U+00A0-00B4, U+00B6-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+20AC, U+2212;
}

:root {
	--ink: #06090d;
	--text: #f2efe8;
	--text-80: rgba(242, 239, 232, 0.8);
	--text-60: rgba(242, 239, 232, 0.6);
	--text-45: rgba(242, 239, 232, 0.45); /* decoration only: below 4.5:1 for text */
	--line: rgba(242, 239, 232, 0.2);
	--line-soft: rgba(242, 239, 232, 0.1);
	--gold: #e9c98f;
	--wide: 0.32em;
	--ok: rgb(159, 224, 180);
	--warn: rgb(255, 210, 138);
	--bad: rgb(255, 138, 122);
	--panel: rgba(8, 11, 16, 0.6);
	--rail: 272px;
}

* { box-sizing: border-box; border-radius: 0; }
html, body { margin: 0; min-height: 100%; }
body {
	min-height: 100vh;
	background: var(--ink);
	color: var(--text);
	font-family: "Exo 2", "Segoe UI", system-ui, sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* the hangar backdrop, with a flat ink scrim so dense text stays above 4.5:1 */
.backdrop { position: fixed; inset: 0; z-index: 0; background: var(--ink) url("../img/background.jpg") center / cover no-repeat; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: rgba(6, 9, 13, 0.6); }
.page { position: relative; z-index: 1; }

a, button { color: inherit; font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, select:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 4px;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
	position: absolute;
	left: 12px;
	top: -80px;
	z-index: 100;
	padding: 12px 18px;
	background: var(--text);
	color: var(--ink);
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
}
.skip:focus { top: 12px; outline-offset: 2px; }

/* ---- type ---------------------------------------------------------------------------------- */
.label {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: var(--wide);
	text-transform: uppercase;
	color: var(--gold);
}
.label.dim { color: var(--text-60); }
.muted { color: var(--text-60); }
.soft { color: var(--text-80); }
.price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price s { color: var(--text-60); font-weight: 500; margin-right: 6px; }
.ulink { color: var(--text-80); text-decoration: underline; text-decoration-color: rgba(233, 201, 143, 0.55); text-underline-offset: 5px; transition: color 0.2s; }
.ulink:hover { color: var(--text); text-decoration-color: var(--gold); }
button.ulink { background: none; border: 0; padding: 0; cursor: pointer; }

/* ---- buttons -------------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	padding: 0 30px;
	border: 1px solid rgba(242, 239, 232, 0.3);
	background: transparent;
	color: var(--text);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { border-color: var(--text); background: rgba(242, 239, 232, 0.08); }
.btn.primary { background: var(--text); color: var(--ink); border-color: var(--text); }
.btn.primary:hover { background: #fff; border-color: #fff; }
.btn.sm { height: 44px; padding: 0 20px; font-size: 13px; letter-spacing: 0.26em; }
.btn.block { display: flex; width: 100%; text-align: center; }
.btn.is-disabled, .btn[aria-disabled="true"] { background: transparent; color: var(--text-80); border-color: var(--line); cursor: not-allowed; }
.btn.is-disabled:hover, .btn[aria-disabled="true"]:hover { background: transparent; border-color: var(--line); }

/* ---- fields --------------------------------------------------------------------------------- */
.field { display: block; }
.field > .label { display: block; margin-bottom: 8px; }
.input {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--line);
	background: var(--panel);
	color: var(--text);
	font: inherit;
	transition: border-color 0.2s;
}
.input::placeholder { color: var(--text-60); }
.input:hover { border-color: rgba(242, 239, 232, 0.4); }
.input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }
.input.num { font-variant-numeric: tabular-nums; }
.pair-in { display: flex; }
.pair-in .input { flex: 1; min-width: 0; border-right: 0; }
.pair-in .btn { height: 48px; flex: none; }
.search { position: relative; display: block; }
.search .input { padding-left: 44px; }
.search::before { /* magnifier drawn in CSS */
	content: "";
	position: absolute;
	left: 16px;
	top: 14px;
	width: 11px;
	height: 11px;
	border: 2px solid var(--text-60);
	border-radius: 50%;
	pointer-events: none;
}
.search::after {
	content: "";
	position: absolute;
	left: 29px;
	top: 28px;
	width: 7px;
	height: 2px;
	background: var(--text-60);
	transform: rotate(45deg);
	pointer-events: none;
}
.field-error { margin-top: 8px; font-size: 14px; color: var(--bad); }

/* ---- marks: small diamond / tick bullets, never pills --------------------------------------- */
.mk {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--text-80);
	white-space: nowrap;
}
.mk::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex: none; }
.mk.month::before { background: transparent; border: 1px solid var(--gold); width: 7px; height: 7px; }
.mk.days::before { background: transparent; border: 1px solid var(--gold); width: 7px; height: 7px; }
.mk.free { color: var(--ok); }
.mk.free::before { background: var(--ok); }
.mk.owned { color: var(--ok); }
.mk.owned::before { width: 9px; height: 5px; background: none; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg) translate(1px, -1px); }
.mk.sale, .mk.save { color: var(--gold); }
.mk.sale::before, .mk.save::before { background: var(--gold); }
.mk.hold { color: var(--warn); }
.mk.hold::before { background: var(--warn); }

.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; color: var(--text-80); line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.ticks.plain li::before { background: var(--text-60); }

/* ---- the gold edge that marks selected / hovered ------------------------------------------- */
.edge { position: relative; }
.edge::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--gold);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.35s ease;
	z-index: 2;
}
.edge:hover::before, .edge:focus-within::before, .edge.is-sel::before { transform: scaleY(1); }

.panel {
	border: 1px solid var(--line);
	background: var(--panel);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* ---- package art: fixed aspect box (no layout shift), hairline, scrim, glyph underneath as the fallback ---- */
.art {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--line);
	background: rgba(8, 11, 16, 0.78);
	overflow: hidden;
}
.art.wide { aspect-ratio: 16 / 9; }
.art.sq { aspect-ratio: 1; }
.art .g {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 40%;
	max-width: 96px;
	min-width: 22px;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	color: var(--gold);
	opacity: 0.7;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linejoin: miter;
}
.art img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #0a0e14;
	filter: saturate(0.85);
}
.art::after { content: ""; position: absolute; inset: 0; background: rgba(6, 9, 13, 0.22); pointer-events: none; }
.art .cap { display: none; position: absolute; left: 14px; bottom: 11px; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-60); }
.art.big .cap { display: block; }
.art.big .g { width: 26%; max-width: 120px; }
.art.is-empty img { display: none; }

/* ---- the rail ------------------------------------------------------------------------------- */
.a-rail {
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	width: var(--rail);
	z-index: 5;
	display: flex;
	flex-direction: column;
	padding: 30px 0 0;
	border-right: 1px solid var(--line);
	background: rgba(6, 9, 13, 0.74);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	overflow: hidden;
}
.a-rail .brand { display: block; flex: none; padding: 0 28px; }
.a-rail .brand img { display: block; width: 150px; height: auto; }
.a-rail .sect { padding: 0 28px; margin-top: 34px; }
/* the part between the logo and the player block: the only thing that scrolls when the window is short, with a soft fade at both ends */
.rail-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 20px 0 44px;
	scrollbar-width: thin;
	scrollbar-color: rgba(242, 239, 232, 0.22) transparent;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 44px), transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 44px), transparent 100%);
}
.rail-scroll::-webkit-scrollbar { width: 6px; }
.rail-scroll::-webkit-scrollbar-thumb { background: rgba(242, 239, 232, 0.22); }
.rail-group { margin-top: 30px; }
.rail-group > .label { padding: 0 28px; }
.rail-group .rail-nav { margin-top: 8px; }
.rail-nav { margin-top: 12px; }
.rail-nav.top { margin-top: 0; }
.rail-nav a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 46px;
	padding: 0 28px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--text-80);
	transition: color 0.2s, background 0.2s;
}
.rail-nav a .n { font-weight: 500; letter-spacing: 0.1em; font-size: 13px; color: var(--text-60); }
.rail-nav a .x { font-weight: 500; letter-spacing: 0.1em; font-size: 12px; color: var(--text-60); }
.rail-nav a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--gold);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.35s ease;
}
.rail-nav a:hover { color: var(--text); background: rgba(242, 239, 232, 0.04); }
.rail-nav a:hover::before, .rail-nav a.is-sel::before { transform: scaleY(1); }
.rail-nav a.is-sel { color: var(--text); background: rgba(242, 239, 232, 0.06); }
.rail-nav a.is-sel .n { color: var(--text); }
.rail-nav a:focus-visible { outline-offset: -4px; }
.rail-group .rail-nav a { min-height: 42px; }
.rail-nav.small a { min-height: 38px; font-size: 12.5px; letter-spacing: 0.22em; }
/* a short window: tighter rows so the whole catalogue part of the rail still fits a 900px screen as far as it can */
@media (max-height: 980px) {
	.a-rail { padding-top: 22px; }
	.a-rail .brand img { width: 128px; }
	.rail-scroll { padding-top: 14px; }
	.rail-nav.top a { min-height: 40px; }
	.rail-group { margin-top: 22px; }
	.rail-group .rail-nav a { min-height: 36px; font-size: 13px; }
	.rail-nav.small a { min-height: 32px; font-size: 12px; }
	.a-player { padding: 16px 28px 18px; }
	.a-player .note { margin-top: 8px; font-size: 13px; }
	.a-player .btn { margin-top: 10px; height: 40px; }
}

.a-player { flex: none; padding: 22px 28px 26px; border-top: 1px solid var(--line); background: rgba(6, 9, 13, 0.5); }
.a-player .who { margin-top: 10px; font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.a-player .meta { margin-top: 4px; display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text-80); flex-wrap: wrap; }
.a-player .note { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--text-60); }
.a-player .btn { margin-top: 14px; }
.a-player .links { margin-top: 14px; display: flex; gap: 20px; font-size: 14px; }
.a-player form { margin: 0; }
.a-player .ro { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }

/* phone top bar (hidden on desktop) */
.a-top { display: none; }

/* ---- the page area -------------------------------------------------------------------------- */
.a-stage { margin-left: var(--rail); min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.a-stage > .a-main, .a-stage > .a-co, .a-stage > .a-simple, .a-stage > .a-home { flex: 1 0 auto; }
.a-main { display: grid; grid-template-columns: minmax(0, 1fr) 460px; align-items: start; }
.a-list { padding: 44px 48px 70px 52px; min-width: 0; }
.a-top-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.a-top-title h1 { font-size: 44px; margin-top: 8px; overflow-wrap: anywhere; }
.a-top-title .search { width: 320px; flex: none; }

.subtabs { display: flex; gap: 38px; margin-top: 26px; border-bottom: 1px solid var(--line); }
.subtabs a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--text-60);
	transition: color 0.2s;
}
.subtabs a .n { font-weight: 500; letter-spacing: 0.1em; }
.subtabs a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0.26em;
	bottom: -1px;
	height: 2px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}
.subtabs a:hover, .subtabs a.is-sel { color: var(--text); }
.subtabs a:hover::after, .subtabs a.is-sel::after { transform: scaleX(1); }
.result-line { margin-top: 22px; color: var(--text-80); }

.a-feature { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: center; padding: 30px 0 32px; border-bottom: 1px solid var(--line); }
.a-feature h2 { font-size: 36px; margin: 6px 0 8px; overflow-wrap: anywhere; }
.a-feature .sum { color: var(--text-80); font-size: 17px; max-width: 52ch; }
.a-feature .ticks { margin-top: 14px; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-size: 15px; }
.a-feature .buy { margin-top: 22px; }
.a-feature .buy .pr { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.a-feature .buy .btns { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.a-feature .buy .price { font-size: 26px; }
.a-feature .art { border-left: 3px solid var(--gold); }
.a-feature .why { margin-top: 12px; color: var(--text-80); font-size: 15px; }

.a-sec { display: flex; align-items: baseline; gap: 14px; margin-top: 34px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.a-sec .label { color: var(--text-80); }
.a-sec .n { color: var(--text-60); font-size: 13px; letter-spacing: 0.1em; }

/* a row: art, name + one line, price + term. Two links (one stretched over the row) because the panel only exists on wide screens */
.a-row {
	position: relative;
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	padding: 14px 16px 14px 20px;
	border-bottom: 1px solid var(--line-soft);
	transition: background 0.2s;
}
.a-row:hover, .a-row.is-sel { background: rgba(242, 239, 232, 0.05); }
.a-row .art { width: 84px; }
.a-row .art .g { width: 34%; }
.a-row h3 { font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.a-row .lnk { text-decoration: none; }
.a-row .lnk::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.a-row .to-page { display: none; }
.a-row.page-only .to-page { display: inline; }
.a-row .sum { margin-top: 3px; font-size: 15px; color: var(--text-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-row .sum.note { color: var(--warn); }
.a-row .rt { text-align: right; display: grid; gap: 6px; justify-items: end; }
.a-row .price { font-size: 20px; }
.a-row .tags { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
@supports selector(:has(a)) {
	.a-row .lnk:focus-visible { outline: none; }
	.a-row:has(.lnk:focus-visible) { outline: 2px solid var(--gold); outline-offset: -2px; }
}

/* ---- the landing page (GET /): the rail and one calm column, no side panel ---------------------- */
.a-home { padding: 44px 56px 90px 52px; min-width: 0; max-width: 1190px; width: 100%; }
.a-hero { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 44px; padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.a-hero .art { border-left: 3px solid var(--gold); }
.a-hero h2 { font-size: 42px; margin: 8px 0 12px; overflow-wrap: anywhere; }
.a-hero .sum { max-width: 48ch; font-size: 18px; color: var(--text-80); }
.a-hero .pr { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-top: 26px; }
.a-hero .pr .price { font-size: 30px; }
.a-hero .why { margin-top: 12px; font-size: 15px; color: var(--text-80); }
.a-hero .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.a-block { margin-top: 68px; }
.a-block > .a-sec { margin-top: 0; }
.a-sec .all-link { margin-left: auto; font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; color: var(--text-80); }
.a-sec .all-link .n { margin-left: 6px; letter-spacing: 0.1em; font-weight: 500; }
.a-sec .all-link:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.a-browse { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px 64px; margin-top: 30px; align-items: start; }
.a-bgroup > .label { margin-bottom: 10px; }
.a-cat { display: grid; grid-template-columns: minmax(0, 1fr) auto 6.2em; gap: 16px; align-items: center; min-height: 58px; padding: 0 6px 0 20px; border-bottom: 1px solid var(--line-soft); text-decoration: none; transition: background 0.2s; }
.a-bgroup > .label + .a-cat { border-top: 1px solid var(--line); }
.a-cat:hover { background: rgba(242, 239, 232, 0.05); }
.a-cat .nm { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.a-cat .ct { font-size: 14px; color: var(--text-60); white-space: nowrap; }
.a-cat .fr { text-align: right; font-size: 15px; color: var(--text-80); font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-info { margin-top: 76px; padding-top: 30px; border-top: 1px solid var(--line-soft); display: grid; gap: 30px; }
.a-info .trust { grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 48px; font-size: 14.5px; }

/* ---- the side panel ------------------------------------------------------------------------- */
.a-detail {
	position: sticky;
	top: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
	border-left: 1px solid var(--line);
	background: rgba(6, 9, 13, 0.62);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.a-detail .scroll { flex: 1; overflow-y: auto; padding: 44px 40px 20px; }
.a-detail h2 { font-size: 32px; margin: 18px 0 6px; overflow-wrap: anywhere; }
.a-detail .pricebar { display: flex; align-items: baseline; gap: 10px 16px; flex-wrap: wrap; margin: 10px 0 18px; }
.a-detail .pricebar .price { font-size: 30px; }
.a-detail .renew { margin: -6px 0 18px; font-size: 15px; color: var(--text-60); }
.a-detail .desc { color: var(--text-80); line-height: 1.55; }
.a-detail h4 { margin: 26px 0 12px; }
.a-detail .opt { margin-top: 24px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.a-detail .opt a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--text-80); font-size: 15px; }
.a-detail .opt a span:last-child { color: var(--gold); font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 700; }
.a-detail .opt a:hover { color: var(--text); }
.a-detail .sup { margin-top: 26px; }
.a-detail .trust { margin-top: 24px; font-size: 14.5px; }
.a-detail .empty { color: var(--text-80); }
.a-buy { padding: 18px 40px 24px; border-top: 1px solid var(--line); background: rgba(6, 9, 13, 0.7); }
.a-buy .btn { height: 56px; }
.a-buy .sub { margin-top: 10px; font-size: 14px; color: var(--text-60); text-align: center; }
.a-buy .reason { margin-bottom: 12px; font-size: 15px; color: var(--warn); text-align: center; }

/* recent supporters: names only */
.sup ul { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 10px; }
.sup li { color: var(--text-80); font-size: 15px; padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--line); line-height: 1.2; }
.sup li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

/* sanitised description HTML */
.prose { color: var(--text-80); line-height: 1.6; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 12px; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(233, 201, 143, 0.55); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--gold); }
.prose h3, .prose h4 { color: var(--text); margin-top: 20px; font-size: 18px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose strong, .prose b { color: var(--text); }

/* ---- package page (detail mode: a name column and a wide detail) --------------------------- */
.a-main.mode-detail { grid-template-columns: 380px minmax(0, 1fr); }
.mode-detail .a-list { padding: 40px 0 60px 0; border-right: 1px solid var(--line); }
.mode-detail .a-list > * { margin-left: 28px; margin-right: 28px; }
.mode-detail .a-list .a-top-title h1 { font-size: 26px; }
.mode-detail .a-list .miniSearch { margin-top: 16px; }
.mini-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	margin: 0 !important;
	padding: 6px 28px;
	border-bottom: 1px solid var(--line-soft);
	text-decoration: none;
	color: var(--text-80);
	font-weight: 700;
	font-size: 15px;
}
.mini-row:hover, .mini-row.is-sel { background: rgba(242, 239, 232, 0.05); color: var(--text); }
.mini-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.mini-row .r { display: flex; align-items: center; gap: 14px; flex: none; }
.mini-row .price { font-size: 15px; font-weight: 500; color: var(--text-80); }
.mode-detail .a-sec { margin: 26px 28px 0; }
.a-page { padding: 44px 56px 70px; min-width: 0; }
.crumb { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-60); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--text); }
.crumb b { color: var(--gold); font-weight: 500; overflow-wrap: anywhere; }
.a-page h1 { font-size: 52px; margin: 12px 0 10px; overflow-wrap: anywhere; }
.a-page .lead { max-width: 60ch; font-size: 18px; color: var(--text-80); }
.a-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; margin-top: 30px; align-items: start; }
.a-page-grid h2, .a-page-grid h3 { font-size: 22px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.a-page-grid section + section { margin-top: 34px; }
.a-page .ticks { font-size: 17px; }
.a-buyblock { padding: 28px 28px 24px; position: sticky; top: 24px; }
.a-buyblock .price { font-size: 40px; }
.a-buyblock .terms { display: flex; gap: 14px; align-items: center; margin: 6px 0 22px; flex-wrap: wrap; }
.a-buyblock .renew { margin: -10px 0 20px; font-size: 15px; color: var(--text-60); }
.a-buyblock .btn, .a-buy .btn, .co-pay .btn { white-space: normal; text-align: center; }
.a-buyblock .btn { height: auto; min-height: 56px; padding-top: 8px; padding-bottom: 8px; line-height: 1.35; }
.a-buyblock .field { margin-top: 20px; }
.a-buyblock .hint { margin-top: 8px; font-size: 14px; color: var(--text-60); }
.a-buyblock .reason { margin-bottom: 14px; font-size: 15px; color: var(--warn); }
.a-buyblock .who { margin-top: 12px; text-align: center; }
.a-buyblock .trust { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.pair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 4px; }
.pair a { text-decoration: none; display: block; position: relative; }
.pair .art { margin-bottom: 10px; }
.pair h3, .pair h4 { font-size: 16px; margin: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
.pair .r { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 14px; gap: 8px; flex-wrap: wrap; }
.pair .price { font-size: 16px; }

/* ---- checkout ------------------------------------------------------------------------------- */
.steps .done { color: var(--ok); }
.steps .done::before { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg) translateY(-2px); }
.a-co { padding: 44px 52px 70px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: start; }
.a-co h1 { font-size: 44px; margin-top: 8px; }
.co-sec { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 12px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.co-sec:last-of-type { border-bottom: 0; }
.co-sec .num { font-size: 13px; letter-spacing: 0.26em; color: var(--gold); padding-top: 6px; }
.co-sec h2 { font-size: 22px; }
.co-sec .help { margin-top: 6px; color: var(--text-60); font-size: 15px; }
.co-sec .body { margin-top: 18px; max-width: 560px; }
.co-sec .body .field { margin-top: 20px; }
.co-sec .body .field:first-child { margin-top: 0; }
.choice { display: grid; gap: 0; border-top: 1px solid var(--line); }
.choice label { display: flex; align-items: center; gap: 16px; min-height: 56px; border-bottom: 1px solid var(--line-soft); cursor: pointer; position: relative; padding-left: 4px; color: var(--text-80); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .box { width: 18px; height: 18px; border: 1px solid rgba(242, 239, 232, 0.5); display: grid; place-items: center; flex: none; }
.choice input:checked + .box { border-color: var(--gold); }
.choice input:checked + .box::after { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.choice input:checked ~ .t { color: var(--text); }
.choice input:focus-visible + .box { outline: 2px solid var(--gold); outline-offset: 3px; }
.choice .t { font-weight: 700; }
.choice .s { margin-left: auto; font-size: 14px; color: var(--text-60); text-align: right; }
.found { margin-top: 12px; display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.found .art { width: 44px; flex: none; aspect-ratio: 1; }
.found .art .g { width: 60%; }
.found.bad .mk { color: var(--bad); }
.found.bad .mk::before { background: var(--bad); }
.co-errors { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--bad); background: rgba(255, 138, 122, 0.08); }
.co-errors li { color: var(--text); }
.co-errors li + li { margin-top: 6px; }
.a-sum { padding: 30px 30px 26px; position: sticky; top: 24px; align-self: start; }
.a-sum h2 { font-size: 22px; margin: 8px 0 18px; }
.sumline { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.sumline .art { width: 64px; }
.sumline h4 { font-size: 17px; overflow-wrap: anywhere; }
.tot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; color: var(--text-80); }
.tot.rule { border-top: 1px solid var(--line); }
.tot.big { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text); font-size: 20px; font-weight: 700; }
.tot.big .price { font-size: 30px; }
.paymeths { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 22px; }
.paymeths div { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line-soft); color: var(--text-80); }
.paymeths .box { width: 18px; height: 18px; border: 1px solid var(--line); margin-right: 14px; flex: none; }
.paymeths div > span:first-child { display: flex; align-items: center; }
.a-sum .trust { margin-top: 20px; font-size: 14.5px; }
.co-note { margin-top: 14px; color: var(--text-80); font-size: 15px; }
.co-pay .btn { height: 56px; }
.co-pay .btn + .btn { margin-top: 12px; }

/* ---- account, terms, errors, dev: one simple column ---------------------------------------- */
.a-simple { padding: 44px 52px 70px; max-width: 1040px; width: 100%; }
.a-simple h1 { font-size: 44px; margin-top: 8px; overflow-wrap: anywhere; }
.a-simple .lead { margin-top: 10px; color: var(--text-80); font-size: 18px; max-width: 60ch; }
.a-simple .actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.a-simple .debug { margin-top: 18px; padding: 16px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; overflow-x: auto; white-space: pre-wrap; }
.a-simple .stack { display: grid; gap: 16px; max-width: 420px; margin-top: 22px; }
.a-simple .stack label.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.ledger { margin-top: 4px; border-top: 1px solid var(--line); }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center; padding: 14px 4px 14px 20px; border-bottom: 1px solid var(--line-soft); position: relative; }
.ledger li h2, .ledger li h3 { font-size: 18px; overflow-wrap: anywhere; }
.ledger li h3 a { text-decoration: none; }
.ledger li h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.ledger .sub { color: var(--text-60); font-size: 14px; }
.ledger .rt { text-align: right; display: grid; gap: 4px; justify-items: end; }
.ledger.history li { grid-template-columns: 110px minmax(0, 1fr) auto; }
.ledger .when { color: var(--text-60); font-size: 14px; font-variant-numeric: tabular-nums; }
.empty-box { padding: 22px 4px; color: var(--text-80); border-bottom: 1px solid var(--line-soft); }
.a-simple .group-gap { margin-top: 40px; }

.a-foot { padding: 22px 52px 30px; border-top: 1px solid var(--line-soft); display: flex; gap: 12px 28px; flex-wrap: wrap; font-size: 14px; color: var(--text-60); }
.a-foot a { color: var(--text-80); text-decoration: none; }
.a-foot .foot-alt { display: none; gap: 12px 28px; flex-wrap: wrap; }
.signout-line { margin: 18px 0 0; }
.a-foot a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
html.shot *, html.shot *::before, html.shot *::after { transition: none !important; animation: none !important; }

/* ---- breakpoints ---------------------------------------------------------------------------- */
/* the package page has three columns (rail, list, page): below 1600px the list gets narrower so the text column keeps a readable width, below 1280px the list goes (the rail already has every category) */
@media (max-width: 1600px) {
	.a-main.mode-detail { grid-template-columns: 300px minmax(0, 1fr); }
	.a-page { padding-left: 40px; padding-right: 40px; }
	.a-page-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; }
}

@media (max-width: 1400px) {
	.a-feature { grid-template-columns: 1fr; gap: 20px; }
	.a-feature .art { aspect-ratio: 16 / 9; max-width: 460px; }
}

@media (max-width: 1280px) {
	.a-main.mode-detail { display: block; }
	.mode-detail .a-list { display: none; }
	.a-hero { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; }
	.a-main { grid-template-columns: minmax(0, 1fr) 400px; }
	.a-detail .scroll { padding-left: 30px; padding-right: 30px; }
	.a-buy { padding-left: 30px; padding-right: 30px; }
	.a-page-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
}

/* no side panel: rows open the package page */
@media (max-width: 1100px) {
	.a-main { display: block; }
	.a-detail { display: none; }
	.a-row .to-panel { display: none; }
	.a-row .to-page { display: inline; }
	.a-main.mode-detail { display: block; }
	.mode-detail .a-list { display: none; }
	.a-page { padding: 36px 36px 60px; }
	.a-page-grid { grid-template-columns: 1fr; gap: 32px; }
	.a-buyblock { position: static; order: -1; }
	.a-page-grid > div { order: 2; }
	.a-co { grid-template-columns: 1fr; gap: 36px; padding: 36px 36px 60px; }
	.a-sum { position: static; order: -1; }
	.a-list { padding: 36px 36px 50px; }
	.a-home { padding: 36px 36px 70px; }
	.a-foot { padding-left: 36px; padding-right: 36px; }
	.a-simple { padding: 36px 36px 60px; }
}

@media (max-width: 1000px) {
	.a-browse { grid-template-columns: 1fr; gap: 38px; }
	.a-info .trust { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.a-hero { grid-template-columns: 1fr; gap: 26px; }
	.a-hero .art { max-width: 520px; }
}

/* phone: the rail becomes a top bar plus a scrolling category strip */
@media (max-width: 760px) {
	.a-rail { display: none; }
	.a-stage { margin-left: 0; }
	.a-top { display: block; position: sticky; top: 0; z-index: 10; background: rgba(6, 9, 13, 0.92); border-bottom: 1px solid var(--line); }
	.a-top .bar { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 16px; }
	.a-top .bar img { width: 112px; height: auto; display: block; }
	.a-top .bar .btn { height: 44px; padding: 0 16px; font-size: 12px; }
	.a-top .ro { padding: 8px 16px; font-size: 13px; color: var(--warn); border-top: 1px solid var(--line-soft); }
	.a-top .strip { display: flex; overflow-x: auto; border-top: 1px solid var(--line-soft); scrollbar-width: none; }
	.a-top .strip::-webkit-scrollbar { display: none; }
	.a-top .strip a {
		position: relative;
		flex: none;
		display: flex;
		align-items: center;
		gap: 8px;
		min-height: 48px;
		padding: 0 14px;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 0.22em;
		text-transform: uppercase;
		text-decoration: none;
		color: var(--text-80);
	}
	.a-top .strip a .n { font-weight: 500; color: var(--text-60); letter-spacing: 0.08em; }
	.a-top .strip .div { flex: none; width: 1px; margin: 14px 6px; background: var(--line); }
	.a-top .strip a.is-sel { color: var(--text); }
	.a-top .strip a.is-sel::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: var(--gold); }
	.a-list { padding: 20px 16px 40px; }
	.a-top-title { display: block; }
	.a-top-title h1 { font-size: 30px; }
	.a-top-title .search { width: 100%; margin-top: 14px; }
	.subtabs { gap: 22px; margin-top: 16px; }
		.a-home { padding: 20px 16px 50px; }
	.a-hero { margin-top: 26px; padding: 26px 0 30px; gap: 22px; }
	.a-hero h2 { font-size: 32px; }
	.a-hero .sum { font-size: 16px; }
	.a-hero .pr .price { font-size: 28px; }
	.a-hero .btns .btn { flex: 1; }
	.a-hero .art { max-width: none; }
	.a-block { margin-top: 48px; }
	.a-browse { margin-top: 22px; gap: 32px; }
	.a-cat { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 0 14px; padding: 10px 4px 10px 14px; min-height: 64px; }
	.a-cat .nm { grid-row: 1; grid-column: 1; }
	.a-cat .ct { grid-row: 2; grid-column: 1; }
	.a-cat .fr { grid-row: 1 / span 2; grid-column: 2; }
	.a-info { margin-top: 52px; }
	.a-feature { padding: 22px 0 24px; }
	.a-feature h2 { font-size: 30px; }
	.a-feature .art { max-width: none; }
	.a-feature .ticks { grid-template-columns: 1fr; }
	.a-feature .buy .btn { flex: 1; }
	.a-row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; padding: 12px 4px 12px 10px; min-height: 76px; }
	.a-row .art { width: 64px; }
	.a-row .sum { display: none; }
	.a-row .sum.note { display: block; white-space: normal; font-size: 14px; }
	.a-row h3 { font-size: 17px; }
	.a-row .price { font-size: 18px; }
	.a-page { padding: 24px 16px 40px; }
	.a-page h1 { font-size: 34px; }
	.a-page .lead { font-size: 16px; }
	.a-buyblock { padding: 22px 18px 20px; }
	.a-buyblock .price { font-size: 34px; }
	.pair { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
	.pair h3, .pair h4 { font-size: 14px; }
	.a-co { padding: 24px 16px 50px; }
	.a-co h1 { font-size: 32px; }
	.co-sec { grid-template-columns: 34px minmax(0, 1fr); }
	.a-sum { padding: 22px 18px 20px; }
	.sumline { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; }
	.sumline .art { width: 54px; }
	.a-simple { padding: 24px 16px 50px; }
	.a-simple h1 { font-size: 32px; }
	.ledger.history li { grid-template-columns: minmax(0, 1fr) auto; }
	.ledger.history .when { grid-column: 1 / -1; }
	.ledger li { padding-left: 8px; }
	.a-foot { padding: 12px 16px 28px; gap: 0 20px; align-items: center; }
	.a-foot a { display: inline-flex; align-items: center; min-height: 44px; }
	.a-foot .foot-alt { display: flex; }
	.crumb a { display: inline-flex; align-items: center; min-height: 44px; }
	.crumb { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
	.a-simple .actions .btn, .signout-line .btn { min-height: 44px; }
	.btn { padding: 0 20px; }
	.skip { left: 4px; }
	/* tap targets: at least 44px */
	.subtabs a { min-height: 48px; }
	.input, .pair-in .btn { height: 48px; }
	.a-detail .opt a, .mini-row { min-height: 48px; }
	.a-top .bar > a:first-child { display: inline-flex; align-items: center; min-height: 44px; }
	.a-sec .all-link { display: inline-flex; align-items: center; min-height: 44px; }
	.ticks.trust .ulink { display: inline-block; padding: 13px 0; margin: -13px 0; }
	.ledger li h3 a, .ledger .sub a { display: inline-block; padding: 12px 0; margin: -12px 0; }
}
@media (max-width: 400px) {
	.a-top-title h1 { font-size: 28px; }
	.btn { letter-spacing: 0.2em; }
}

/* ---- small additions ------------------------------------------------------------------------ */
.plain { text-decoration: none; }
.h1like { margin-top: 8px; font-size: 26px; font-weight: 700; line-height: 1.15; }
.a-art { max-width: 560px; }
.a-page-grid .prose h3, .a-page-grid .prose h4 { margin: 20px 0 0; padding: 0; border: 0; font-size: 18px; }
.subtabs .step-a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--text-60);
}
.subtabs .step-a.is-sel { color: var(--text); }
.subtabs .step-a.is-sel::after { content: ""; position: absolute; left: 0; right: 0.26em; bottom: -1px; height: 2px; background: var(--gold); }
.subtabs .step-a.done { color: var(--ok); }
.subtabs .step-a.done::before { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg) translateY(-2px); }
.field-form { margin: 0; }
.co-form { min-width: 0; }

.nw { white-space: nowrap; }
.a-buyblock .btn, .a-buy .btn { letter-spacing: 0.22em; }
.friend-box { margin-top: 20px; }
