/* Lavka brand tokens. Values match the CSK-23 theme in src/ui.css; the --kd-* names are the brand vocabulary. */
:root {
	--kd-violet: #c1a6ff;
	--kd-violet-deep: #8a63e6;
	--kd-gold: #ffd383;
	--kd-ink: #211333;
	--kd-night: #0f0c18;
	--kd-surface: #191523;
	--kd-line: #363044;
	--kd-text: #f4f1ff;
	--kd-muted: #b5adc7;
	--kd-violet-on-light: #7a4fd6;
	--kd-radius: 8px;
	--kd-radius-lg: 14px;
	--kd-font-ui: "Onest", Arial, sans-serif;
	--kd-font-display: "Unbounded", "Onest", Arial, sans-serif;
}
@font-face {
	font-family: "Unbounded";
	src: url("/app/brand/unbounded-latin.woff2") format("woff2");
	font-weight: 400 800;
	font-display: swap;
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Unbounded";
	src: url("/app/brand/unbounded-cyrillic.woff2") format("woff2");
	font-weight: 400 800;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Onest";
	src: url("/app/brand/onest-latin.woff2") format("woff2");
	font-weight: 400 800;
	font-display: swap;
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Onest";
	src: url("/app/brand/onest-cyrillic.woff2") format("woff2");
	font-weight: 400 800;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
:root {
	color-scheme: dark;
	--surface: #191523;
	--gold: #ffd383;
	--button-ink: #211333;
	--ink: #f4f1ff;
	--muted: #b5adc7;
	--accent: #c1a6ff;
	--paper: #0f0c18;
	--line: #363044;
	--lavender: #33234e;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	color: var(--ink);
	background: var(--paper);
	font:
		16px / 1.55 "Onest",
		Arial,
		sans-serif;
	overflow-wrap: break-word;
	padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px);
	padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
}
button,
input,
select,
textarea {
	font-family: inherit;
}
h1,
h2,
h3 {
	font-family: "Unbounded", "Onest", Arial, sans-serif;
	letter-spacing: -0.02em;
}
button,
a,
input {
	touch-action: manipulation;
	-webkit-tap-highlight-color: #493565;
}
::selection {
	background: #6d4c9f;
	color: #ffffff;
}
a {
	color: var(--accent);
	text-underline-offset: 4px;
}
button,
input {
	font: inherit;
}
svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}
button,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--accent);
	border-radius: 8px;
	background: var(--accent);
	color: var(--button-ink);
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
}
:where(form) > button {
	margin-top: 20px;
}
button:hover,
.button:hover {
	background: #d5c3ff;
}
button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.secondary {
	background: #191523;
	color: var(--accent);
	border-color: #645774;
}
.secondary:hover {
	background: #2b203e;
}
:focus-visible {
	outline: 3px solid #f5cc77;
	outline-offset: 4px;
}
fieldset {
	min-width: 0;
}
input {
	width: 100%;
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
	min-height: 46px;
	padding: 11px 13px;
	border: 1px solid #766489;
	border-radius: 7px;
	color: var(--ink);
	background: #191523;
	caret-color: var(--accent);
}
input:where(
	:not([type="checkbox"], [type="radio"], [type="range"])
):focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgb(193 166 255 / 0.3);
}
input::placeholder {
	color: var(--muted);
	opacity: 1;
}
input:user-invalid {
	border-color: #ff8da6;
}
label {
	display: block;
	margin: 20px 0 7px;
	font-weight: 500;
}
h1,
h2,
h3 {
	line-height: 1.35;
	text-wrap: balance;
}
h1 {
	font-size: clamp(28px, 3vw, 40px);
	letter-spacing: -0.025em;
	margin: 0;
	font-weight: 700;
}
h2 {
	margin: 28px 0 16px;
	font-size: 19px;
	font-weight: 500;
	letter-spacing: -0.02em;
}
h3 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 500;
}
p {
	max-width: 70ch;
}
nav {
	display: grid;
	gap: 7px;
}
nav a {
	position: relative;
	min-height: 46px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	border-radius: 8px;
	color: #bbb2cd;
	font-weight: 500;
	text-decoration: none;
}
nav a:where(:hover) {
	background: #211b30;
}
nav a:where([aria-current]) {
	color: var(--accent);
	background: var(--lavender);
}
.text-button {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--muted);
	font-size: 12px;
	margin-top: 3px;
	min-height: 44px;
}
.text-button:hover {
	background: transparent;
	color: var(--accent);
	text-decoration: underline;
}
.account-avatar {
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #392954;
	color: #d8c7ff;
	flex-shrink: 0;
	font-size: 12px;
}
main {
	flex: 1;
	min-width: 0;
	padding: 27px 26px 30px;
	background: #191523;
	border-radius: 14px;
}
.page-heading {
	margin-bottom: 22px;
	padding-bottom: 21px;
	border-bottom: 1px solid var(--line);
}
.lead {
	font-size: 14px;
	color: var(--muted);
	margin: 0 0 24px;
}
.catalog-toolbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 14px;
	margin-top: 0;
	margin-bottom: 23px;
	min-height: 52px;
	position: relative;
}
.catalog-toolbar search {
	width: min(350px, 48%);
}
.search-field {
	display: flex;
	align-items: center;
	background: #211b30;
	border-radius: 8px;
	padding: 0 5px 0 12px;
}
.search-field > svg {
	color: #c0b6d0;
	width: 18px;
	height: 18px;
}
.search input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font-size: 14px;
	padding-inline: 9px;
}
.search button {
	border: 0;
	padding: 7px 10px;
	background: transparent;
	font-size: 14px;
	color: var(--accent);
	min-height: 40px;
}
.search button:where(:hover) {
	background: #392954;
}
.add-listing {
	font-size: 13px;
	white-space: nowrap;
}
.add-listing svg {
	width: 17px;
	height: 17px;
}
.catalog-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}
.category-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.category-tabs a {
	min-height: 40px;
	padding: 9px 16px;
	font-size: 13px;
	color: #c0b6d0;
	border-radius: 22px;
}
.category-tabs a[aria-current] {
	background: #0f0c18;
	color: #f4f1ff;
}
.result-count {
	font-size: 12px;
	color: var(--muted);
	white-space: nowrap;
}
.listing-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.listing {
	min-width: 0;
	display: flex;
	flex-direction: column;
	border: 1px solid #463654;
	border-radius: 15px;
	padding: 11px 11px 10px;
	background: #191523;
}
.product-art {
	position: relative;
	aspect-ratio: 1.35;
	width: 100%;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: radial-gradient(ellipse at 50% 50%, #4c365d, #251b33 75%);
	overflow: hidden;
}
.product-art img {
	display: block;
	width: 89%;
	height: 87%;
	object-fit: contain;
}
.art-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	color: var(--muted);
	font-size: 12px;
	padding: 0 10px 8px;
	text-align: center;
}
.art-unavailable {
	align-content: center;
	gap: 6px;
	color: var(--muted);
	padding: 18px;
	font-size: 12px;
	text-align: center;
}
.item-info {
	padding: 13px 2px 0;
	min-width: 0;
}
.attachments {
	min-width: 0;
	margin-top: 14px;
	padding-block: 10px;
	border-top: 1px solid var(--line);
}
.order-preview {
	max-width: 320px;
	margin-bottom: 16px;
}
.order-preview .product-art {
	aspect-ratio: 1.8;
}
.attachments-label,
.attachments-empty {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.5;
}
.attachments ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding: 0;
	margin: 8px 0 0;
}
.attachments li {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	max-width: 100%;
}
.attachments img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	flex: 0 0 40px;
	border-radius: 6px;
	background: #241d33;
}
.attachments :where(li) span {
	min-width: 0;
	overflow-wrap: anywhere;
}
.attachments small,
.attachments strong {
	display: block;
	font-size: 12px;
	line-height: 1.4;
}
.attachments small {
	color: var(--muted);
}
.attachments strong {
	font-weight: 500;
}
:where(.product-media) .attachments img {
	width: 64px;
	height: 64px;
	flex-basis: 64px;
}
:where(.product-media) .attachments strong {
	font-size: 14px;
}
.item-info h2 {
	margin: 0 0 7px;
	font-size: 16px;
	line-height: 1.45;
	font-weight: 700;
	letter-spacing: -0.015em;
	text-wrap: initial;
	overflow-wrap: anywhere;
}
.item-price {
	display: block;
	color: #ffd383;
	font-size: 14px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}
.item-info p {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--muted);
	overflow-wrap: anywhere;
}
.item-footer {
	margin-top: auto;
	padding: 8px 0 0 2px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.badge {
	font-size: 14px;
	color: #c6bdd4;
}
.item-link {
	width: 44px;
	min-height: 44px;
	display: grid;
	place-items: center;
	background: var(--lavender);
	border: 1px solid #705487;
	border-radius: 50%;
	color: #e6d8ff;
}
.item-link:hover {
	background: var(--lavender);
	color: var(--accent);
}
.item-link svg {
	width: 17px;
	height: 17px;
}
.catalog-note {
	font-size: 12px;
	color: var(--muted);
	margin: 24px 0 0;
	max-width: 100%;
}
.purchase {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 32px;
	align-items: start;
}
.purchase > section {
	min-width: 0;
}
.purchase :where(h2:first-child) {
	margin-top: 0;
}
.summary {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 24px;
}
.summary button,
.summary > .button {
	width: 100%;
}
.summary > h2 {
	margin: 9px 0;
	font-size: 24px;
	font-weight: 500;
}
.product-detail {
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 30px;
}
.product-media .product-art {
	position: relative;
	aspect-ratio: 1.1;
}
.product-media :where(.hint) {
	margin-bottom: 0;
	font-size: 12px;
}
.product-description {
	margin-top: 32px;
	border-top: 1px solid var(--line);
	padding-top: 8px;
}
.product-description :where(dl) {
	max-width: 530px;
}
.product-description > p {
	color: var(--muted);
	font-size: 13px;
}
dl {
	margin: 24px 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px 20px;
	font-size: 14px;
}
dt {
	color: var(--muted);
}
dd {
	margin: 0;
	text-align: right;
	overflow-wrap: anywhere;
	font-variant-numeric: tabular-nums;
}
.total {
	font-size: 22px;
	font-weight: 700;
	color: var(--ink);
}
.back {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 6px 0;
	margin: -7px 0 16px;
	font-size: 12px;
	text-decoration: none;
}
.back::before {
	content: "\2190";
	margin-right: 9px;
	font-size: 16px;
}
.hint {
	color: var(--muted);
	font-size: 12px;
}
.error {
	color: #ffc5cf;
	background: #3b1d2b;
	border: 1px solid #a6536f;
	padding: 14px;
	border-radius: 7px;
}
.narrow {
	max-width: 520px;
}
.empty {
	grid-column: 1 / -1;
	color: var(--muted);
	padding: 36px 16px;
	border: 1px dashed #695878;
	border-radius: 10px;
	font-size: 13px;
	margin: 0;
}
.sale-row {
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}
.sale-row:first-of-type {
	padding-top: 0;
}
.sale-row p {
	font-size: 12px;
	color: var(--muted);
	overflow-wrap: anywhere;
}
.sale-row h3 {
	overflow-wrap: anywhere;
}
.sale-row dl {
	margin-bottom: 0;
}
.order-row {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 4px;
	border-bottom: 1px solid var(--line);
	text-decoration: none;
	color: var(--ink);
}
.order-row:hover {
	background: #251d36;
}
.order-row > div {
	min-width: 0;
}
.order-row h2 {
	margin: 5px 0 8px;
	font-size: 16px;
	text-wrap: initial;
	overflow-wrap: anywhere;
}
.order-row > :where(div:last-child) {
	text-align: right;
	flex-shrink: 0;
}
.order-row strong {
	font-size: 14px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}
.order-row .hint {
	display: block;
	font-size: 12px;
}
.order-row > div > :where(span:not(.hint)) {
	color: #c6adf6;
	font-size: 14px;
}
.order-status {
	display: inline-block;
	padding: 6px 10px;
	background: var(--lavender);
	color: #d9c4ff;
	border-radius: 6px;
	font-size: 14px;
}
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.actions form > button {
	margin: 0;
}
.timeline {
	background: #201a2c;
	border: 1px solid var(--line);
	padding: 24px;
	border-radius: 12px;
}
.timeline ol {
	list-style: none;
	padding: 0;
	margin: 24px 0;
}
.timeline li {
	position: relative;
	margin-left: 4px;
	padding: 0 0 24px 20px;
	border-left: 1px solid #67517c;
}
.timeline li::before {
	content: "";
	position: absolute;
	width: 7px;
	height: 7px;
	left: -4px;
	top: 6px;
	border-radius: 50%;
	background: #c1a6ff;
}
.timeline li:last-child {
	padding-bottom: 0;
	border-left-color: transparent;
}
.timeline strong {
	font-size: 14px;
	font-weight: 500;
}
.timeline time {
	display: block;
	color: var(--muted);
	font-size: 12px;
	margin-top: 3px;
}
.timeline > a {
	font-size: 12px;
}
.balances {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0 0 20px;
	gap: 14px;
}
.balances > div {
	background: #211b30;
	border: 1px solid #493957;
	border-radius: 10px;
	padding: 18px 16px;
}
.balances dt {
	font-size: 14px;
}
.balances dd {
	text-align: left;
	font-size: clamp(17px, 1.65vw, 23px);
	font-weight: 700;
	margin-top: 10px;
	letter-spacing: -0.03em;
}
.balances > :where(div:first-child) {
	background: #2e2140;
	border-color: #6a4f85;
}
.balances > :where(div:first-child) dd {
	color: var(--accent);
}
.balances + .hint {
	margin-bottom: 30px;
}
.payment-row,
.ledger-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 17px 4px;
	border-bottom: 1px solid var(--line);
}
.payment-row > strong,
.ledger-row strong {
	font-size: 14px;
	font-weight: 500;
}
.payment-row span {
	font-size: 14px;
	color: var(--muted);
}
.payment-row small {
	flex-basis: 100%;
	color: var(--muted);
	font-size: 12px;
}
.ledger-row > div {
	min-width: 0;
}
.ledger-row span {
	display: block;
	color: var(--muted);
	font-size: 12px;
	margin-top: 5px;
}
.amount {
	font-variant-numeric: tabular-nums;
	text-align: right;
	align-self: center;
}
.identifier {
	overflow-wrap: anywhere;
}
.skip {
	position: absolute;
	left: 16px;
	top: -100px;
	background: white;
	padding: 12px;
	z-index: 10;
}
.skip:focus {
	top: 12px;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
@media (max-width: 1100px) and (min-width: 761px) {
	main {
		padding: 23px 20px;
	}
	.catalog-toolbar {
		margin-top: 0;
		justify-content: space-between;
	}
	.catalog-toolbar search {
		width: 65%;
	}
	.listing-list {
		gap: 12px;
	}
	.listing {
		padding: 8px;
	}
	.item-price {
		font-size: 14px;
	}
	.balances {
		gap: 10px;
	}
	.balances > div {
		padding: 15px 10px;
	}
	.purchase {
		gap: 24px;
	}
	.summary {
		padding: 18px;
	}
	.product-detail {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}
	.summary > h2 {
		font-size: 21px;
	}
}
@media (max-width: 760px) {
	input {
		font-size: 16px;
	}
	body {
		font-size: 14px;
	}
	main {
		padding: 20px 15px 24px;
		border-radius: 11px;
	}
	h1 {
		font-size: 25px;
		font-weight: 500;
	}
	h2 {
		font-size: 18px;
	}
	.page-heading {
		padding-bottom: 16px;
		margin-bottom: 18px;
	}
	.lead {
		font-size: 13px;
	}
	.catalog-toolbar {
		margin-top: 0;
		gap: 9px;
		flex-wrap: wrap;
		margin-bottom: 17px;
	}
	.catalog-toolbar search {
		width: 100%;
	}
	.search input {
		font-size: 16px;
		min-height: 46px;
	}
	.search button {
		font-size: 12px;
	}
	.add-listing {
		min-height: 44px;
		padding: 9px 13px;
		font-size: 12px;
		margin-left: auto;
	}
	.catalog-navigation {
		flex-wrap: wrap;
		gap: 8px;
		margin-bottom: 14px;
	}
	.category-tabs {
		gap: 3px;
	}
	.category-tabs a {
		font-size: 12px;
		padding: 10px 12px;
		min-height: 44px;
	}
	.result-count {
		font-size: 12px;
		width: 100%;
		padding-left: 2px;
	}
	.listing-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 11px;
	}
	.listing {
		padding: 7px;
		border-radius: 11px;
	}
	.product-art {
		aspect-ratio: 1.12;
		border-radius: 8px;
	}
	.product-art img {
		width: 95%;
		height: 90%;
	}
	.art-caption {
		font-size: 12px;
		padding: 0 6px 5px;
	}
	.art-unavailable {
		font-size: 12px;
		padding: 10px;
	}
	.item-info {
		padding: 10px 1px 0;
	}
	.item-info h2 {
		font-size: 14px;
		line-height: 1.5;
		margin-bottom: 5px;
	}
	.item-price {
		font-size: 14px;
	}
	.item-info p {
		font-size: 12px;
		line-height: 1.5;
		margin-top: 7px;
	}
	.item-footer {
		padding-top: 4px;
		padding-left: 1px;
		gap: 3px;
	}
	.badge {
		font-size: 14px;
	}
	.item-link {
		width: 44px;
		min-height: 44px;
		flex-shrink: 0;
	}
	.item-link svg {
		width: 16px;
		height: 16px;
	}
	.catalog-note {
		font-size: 12px;
		margin-top: 20px;
	}
	.purchase,
	.product-detail {
		grid-template-columns: minmax(0, 1fr);
		gap: 25px;
	}
	.product-media .product-art {
		aspect-ratio: 1.2;
	}
	.summary,
	.timeline {
		padding: 20px 16px;
	}
	.summary > h2 {
		font-size: 22px;
	}
	.product-description {
		margin-top: 25px;
	}
	.product-description > p {
		font-size: 12px;
	}
	dl {
		gap: 12px 14px;
		font-size: 14px;
	}
	.total {
		font-size: 20px;
	}
	.back {
		font-size: 12px;
	}
	.balances {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.balances > div {
		padding: 16px 12px;
	}
	.balances dt {
		font-size: 14px;
	}
	.balances dd {
		font-size: 18px;
	}
	.order-row {
		flex-direction: column;
		gap: 12px;
		padding-block: 20px;
	}
	.order-row > :where(div:last-child) {
		text-align: left;
	}
	.order-row h2 {
		font-size: 15px;
	}
	.order-row > :where(div:last-child) > .hint {
		margin-top: 4px;
	}
	.ledger-row {
		gap: 10px;
	}
	.ledger-row > div {
		flex: 1 1 160px;
	}
	.amount {
		margin-left: auto;
	}
	.actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}
	.actions button,
	.actions .button {
		width: 100%;
	}
}
@media (max-width: 350px) {
	main {
		padding-inline: 11px;
	}
	.category-tabs a {
		padding-inline: 10px;
	}
	.balances dd {
		font-size: 16px;
	}
}

.order-preview img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: calc(100% - 28px);
	padding: 10px;
}

/* Support uses the existing order column and type scale. */
.support {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	scroll-margin-top: 24px;
}
.support p,
.notification p {
	max-width: 70ch;
}
.support-text {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.support textarea {
	width: 100%;
	min-height: 120px;
	resize: vertical;
	font: inherit;
	font-size: 1rem;
	line-height: 1.5;
	padding: 12px;
	border: 1px solid #766489;
	border-radius: 7px;
	color: var(--ink);
	background: #191523;
	caret-color: var(--accent);
}
.support textarea:user-invalid,
.support textarea[aria-invalid="true"] {
	border-color: #ff8da6;
}
.notification {
	padding-block: 24px;
	border-bottom: 1px solid var(--line);
}
.notification h2 {
	margin-top: 0;
	font-size: 1.125rem;
}
.notice {
	padding: 16px;
	background: #2b203e;
	border: 1px solid #645774;
	border-radius: 8px;
}

.auth-methods {
	display: grid;
	gap: 1rem;
}
.auth-method {
	padding-block: 0.75rem;
	border-bottom: 1px solid var(--line);
}
.auth-method h2 {
	font-size: 1rem;
	margin-block: 0 0.3rem;
}
.auth-method :is(button, form > button) {
	width: 100%;
	min-height: 48px;
	margin-block-start: 0.5rem;
}
.auth-method button:disabled {
	color: #b5adc7;
	background: #282231;
	border-color: #61556e;
	opacity: 1;
	cursor: not-allowed;
}
.auth-method input {
	font-size: 1rem;
	min-height: 48px;
}

.seller-profile,
.seller-inventory,
.seller-listings {
	margin-block-end: 2.5rem;
	min-width: 0;
}
.seller-profile form,
.sale-price {
	max-width: 36rem;
}
.inventory-choice {
	margin-block: 1.5rem;
	padding: 0;
	border: 0;
}
.inventory-choice legend {
	font-weight: 600;
	margin-block-end: 1rem;
}
.inventory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 1rem;
}
.inventory-option {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 8px;
	cursor: pointer;
	content-visibility: auto;
	contain-intrinsic-size: auto 360px;
}
.gift-picker .inventory-option {
	contain-intrinsic-size: auto 60px;
}
.inventory-option:has(input:checked) {
	border-color: var(--accent);
	background: #2b203e;
}
.inventory-option:has(input:disabled) {
	cursor: default;
}
.inventory-option input[type="radio"],
.inventory-option input[type="checkbox"] {
	width: 1.5rem;
	min-height: 1.5rem;
	margin-block: 0;
	flex-shrink: 0;
	accent-color: var(--accent);
}
.inventory-option > span {
	display: block;
	min-width: 0;
	overflow-wrap: anywhere;
}
.inventory-option .identifier {
	display: block;
	margin-block: 0.5rem;
}
:where(.inventory-option > span) > :where(strong, .hint) {
	display: block;
}
.inventory-image {
	max-width: 100%;
	height: auto;
	object-fit: contain;
}
.seller-profile .identifier {
	overflow-wrap: anywhere;
}
.demo-entry,
.demo-intro {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px;
	margin-bottom: 24px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #191523;
}
.demo-entry h2,
.demo-intro h2 {
	margin: 0 0 8px;
}
.demo-entry p {
	margin: 0;
}
.demo-entry > a,
.demo-action {
	flex-shrink: 0;
}
.demo-action > strong {
	display: block;
	font-size: 20px;
}
.demo-notice {
	max-width: none;
}
.demo-items,
.demo-lot-list {
	list-style: none;
	padding: 0;
	margin: 24px 0;
}
.demo-items {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 20px;
}
.demo-item {
	min-width: 0;
}
.demo-items .product-art {
	border-radius: 12px;
}
.demo-items h3 {
	margin: 16px 0 8px;
}
.demo-items strong,
.demo-lot-list strong {
	font-variant-numeric: tabular-nums;
}
.demo-lot {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}
.demo-lot-info {
	flex: 1;
	min-width: 0;
}
.demo-lot-list h3,
.demo-lot-list p {
	margin: 0;
}
.demo-result > *,
.demo-intro :where(div) {
	min-width: 0;
}
@media (max-width: 700px) {
	.demo-entry,
	.demo-intro,
	.demo-lot {
		align-items: stretch;
		flex-direction: column;
		gap: 16px;
	}
	.demo-entry,
	.demo-intro {
		padding: 18px;
	}
	.demo-action button {
		width: 100%;
	}
}
.paid-proof {
	display: grid;
	grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
	gap: 0.75rem 1rem;
	margin-block: 1.5rem;
}
.paid-proof dd {
	margin: 0;
	overflow-wrap: anywhere;
	font-variant-numeric: tabular-nums;
}
.paid-code {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	max-width: 100%;
}
@media (max-width: 700px) {
	.paid-proof {
		grid-template-columns: minmax(0, 1fr);
	}
}

.item-media [hidden] {
	display: none;
}
.item-media {
	padding: 0;
	margin-block: 18px;
	border: 0;
	background: transparent;
}
.media-launch {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}
.media-dialog {
	width: min(1100px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 16px;
	color: var(--ink);
	background: var(--surface);
	box-shadow: 0 18px 70px #15152b40;
	overscroll-behavior: contain;
}
.media-dialog::backdrop {
	background: #16162dc9;
	overflow: hidden;
	overscroll-behavior: contain;
}
.media-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 24px;
	border-bottom: 1px solid var(--line);
}
.media-header h2 {
	margin: 0;
	font-size: 20px;
	text-wrap: balance;
}
.media-header p {
	margin: 4px 0 0;
	color: var(--muted);
}
.media-header form {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	flex-shrink: 0;
}
.media-header :where(button) {
	margin: 0;
}
.media-body {
	padding: 18px 24px 24px;
}
.media-modes {
	display: flex;
	gap: 8px;
}
.media-modes [aria-pressed="true"],
.media-thumb[aria-pressed="true"] {
	border-color: var(--accent);
	background: var(--lavender);
	color: var(--ink);
}
.media-disclaimer {
	max-width: 78ch;
	margin: 12px 0;
}
.media-status {
	min-height: 24px;
	margin: 8px 0;
	color: var(--accent);
}
.media-stage {
	height: clamp(220px, 38dvh, 420px);
	background: #f2f1f9;
	border: 1px solid #e6e4ef;
	border-radius: 10px;
	overflow: auto;
	touch-action: none;
	overscroll-behavior: contain;
	position: relative;
}
.media-photo-wrap {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.media-photo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	user-select: none;
	pointer-events: none;
}
.media-frame {
	width: 100%;
	height: 100%;
	transform-origin: center;
}
.media-frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
.media-stage.is-3d {
	overflow: hidden;
}
.media-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-block: 12px;
}
.media-controls output {
	min-width: 56px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.media-dialog .media-controls button {
	min-width: 44px;
}
.media-caption {
	font-weight: 700;
	margin-bottom: 4px;
}
.media-note {
	margin-top: 0;
}
.media-gallery {
	display: flex;
	overflow-x: auto;
	gap: 10px;
	padding: 4px 4px 8px;
}
.media-thumb {
	display: flex;
	flex-direction: column;
	flex: 0 0 142px;
	gap: 6px;
	padding: 8px;
	color: var(--ink);
}
.media-thumb img {
	width: 96px;
	height: 72px;
	object-fit: contain;
}
.media-dialog.media-expanded {
	width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	border: 0;
	border-radius: 0;
}
.media-dialog.media-expanded .media-stage {
	height: calc(100dvh - 260px);
	min-height: 220px;
}
.media-expanded
	:is(
		.media-disclaimer,
		.media-caption,
		.media-note,
		.media-gallery,
		.media-body > .hint
	) {
	display: none;
}
@media (max-width: 600px) {
	.media-dialog {
		width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		margin: 0;
		border: 0;
		border-radius: 0;
		padding-block: env(safe-area-inset-top, 0px)
			env(safe-area-inset-bottom, 0px);
	}
	.media-header {
		padding: 14px 16px;
		align-items: flex-start;
		gap: 8px;
	}
	.media-header h2 {
		font-size: 17px;
	}
	.media-header p {
		font-size: 12px;
	}
	.media-header button {
		padding-inline: 12px;
	}
	.media-body {
		padding: 14px 16px;
	}
	.media-stage {
		height: 250px;
	}
	.media-thumb {
		flex-basis: 124px;
	}
}

/* Shared gameful presentation. Monetary and opening behavior is unchanged. */
body {
	background: #0f0c18;
	scrollbar-color: #756184 #191523;
}
main {
	border: 1px solid var(--line);
}
.page-heading h1,
.demo-entry h2,
.demo-intro h2 {
	font-weight: 700;
}
.case-showcase {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 28px;
}
.case-showcase .demo-entry {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	min-width: 0;
	min-height: 262px;
	margin: 0;
	padding: 26px;
	border-color: #796097;
	background: #302043;
	overflow: hidden;
}
.case-showcase .demo-entry:last-child {
	background: #35251d;
	border-color: #8a6946;
}
.case-showcase .demo-entry::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 24px 8px auto auto;
	width: 150px;
	height: 120px;
	background: url("./artwork/revolution.png") center / contain no-repeat;
	opacity: 0.65;
	transform: rotate(-12deg);
}
.case-showcase .demo-entry > div {
	width: 100%;
	padding-right: 112px;
}
.case-showcase .demo-entry h2 {
	margin: 0 0 12px;
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: -0.025em;
}
.case-showcase .demo-entry p {
	color: #e3d8ed;
	font-size: 14px;
}
.case-showcase .demo-entry:last-child p {
	color: #eadcc9;
}
.case-showcase .demo-entry > a {
	margin-top: 22px;
	background: var(--accent);
	color: var(--button-ink);
	border-color: transparent;
	font-size: 14px;
	font-weight: 700;
}
.case-showcase .demo-entry:last-child > a {
	background: var(--gold);
}
.catalog-toolbar {
	justify-content: space-between;
	padding-block: 4px;
}
.catalog-toolbar search {
	width: min(520px, 65%);
}
.search-field {
	border: 1px solid #766489;
}
.category-tabs a[aria-current] {
	background: var(--lavender);
	color: #e4d5ff;
}
.listing {
	background: #211a2e;
	border-color: #4c3c5e;
}
.product-art img {
	filter: drop-shadow(0 12px 14px #0f091999);
}
.art-caption {
	color: #d6c8e4;
	background: #251b33;
}
.item-price {
	font-size: 19px;
	font-weight: 700;
	color: var(--gold);
}
.balances > :where(div:first-child) dd {
	color: var(--gold);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.listing,
	.product-art img,
	button,
	.button {
		transition: transform 180ms ease-out;
	}
	.listing:hover,
	.listing:focus-within {
		transform: translateY(-4px);
	}
	.listing:hover .product-art img {
		transform: scale(1.04);
	}
	button:active:not(:disabled),
	.button:active {
		transform: scale(0.98);
	}
}
@media (max-width: 1050px) {
	.case-showcase .demo-entry > div {
		padding-right: 0;
	}
	.case-showcase .demo-entry::before {
		inset: auto 8px 18px auto;
		width: 90px;
		height: 70px;
		opacity: 0.25;
	}
}
@media (max-width: 760px) {
	body {
		font-size: 16px;
	}
	.case-showcase {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		margin-bottom: 22px;
	}
	.case-showcase .demo-entry {
		padding: 20px;
		min-height: 0;
	}
	.case-showcase .demo-entry h2 {
		font-size: 23px;
	}
	.case-showcase .demo-entry > div {
		padding-right: 30px;
	}
	.case-showcase .demo-entry::before {
		inset: auto 4px 70px auto;
		width: 82px;
		height: 64px;
		opacity: 0.3;
	}
	.case-showcase .demo-entry > a {
		max-width: 100%;
		margin-top: 16px;
	}
	.catalog-toolbar search {
		width: 100%;
	}
	.item-price {
		font-size: 16px;
	}
}
@media (forced-colors: active) {
	.listing,
	.case-showcase .demo-entry,
	.search-field,
	.item-link {
		border-color: CanvasText;
	}
	.product-art {
		background: Canvas;
	}
}
.affiliate-code,
.affiliate-links code {
	overflow-wrap: anywhere;
}
.affiliate-links,
.affiliate-invitees,
.affiliate-rules {
	padding-left: 1.2em;
}
.payment-row .promo-quote {
	flex-basis: 100%;
	font-size: 14px;
}
.promo-quote > :where(p) {
	margin: 4px 0;
}
.bonus-balance {
	margin: 0 0 30px;
}
.bonus-balance > :where(h2) {
	margin: 0;
	font-size: 16px;
}
.bonus-amount {
	font-size: 22px;
	font-weight: 700;
	margin: 8px 0;
}

/* Support center (CSK-58): reuses order rows and support text styles. */
.support-list {
	display: grid;
	gap: 8px;
}
.support-state[data-state="answered"] {
	color: var(--accent);
}
.faq details {
	padding-block: 12px;
	border-bottom: 1px solid var(--line);
}
.faq summary {
	cursor: pointer;
	min-height: 44px;
	display: flex;
	align-items: center;
}
.support-thread {
	list-style: none;
	padding: 0;
	margin: 24px 0 8px;
	display: grid;
	gap: 12px;
}
.support-message {
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
}
.support-message[data-author="support"] {
	background: #2b203e;
}
.support-message > :where(p) {
	margin: 0 0 6px;
}
.wiki-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}
.wiki-card {
	min-width: 0;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow-wrap: anywhere;
}
.wiki-card .wiki-title {
	margin: 10px 0 6px;
	font-size: 1.1rem;
}
.wiki-article {
	max-width: 720px;
	overflow-wrap: anywhere;
}
.wiki-article ul {
	padding-left: 1.2em;
}
.case-sorts {
	margin: -8px 0 20px;
}
.listing .favorite-toggle {
	width: 100%;
	margin-top: 10px;
}
.case-risk {
	margin-block: 24px;
}
.community-case {
	margin-block: 16px;
	padding-left: 14px;
	border-left: 4px solid var(--case-accent, var(--accent));
}
.theme-violet {
	--case-accent: #c1a6ff;
}
.theme-ember {
	--case-accent: #ff9f6e;
}
.theme-jade {
	--case-accent: #73d6a9;
}
.theme-steel {
	--case-accent: #a3b6cc;
}
.community-weights {
	min-width: 0;
	margin: 20px 0;
	padding: 4px 14px 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
}
.community-weights legend {
	padding-inline: 4px;
	color: var(--muted);
}
.community-issues {
	margin: 0;
	padding-left: 1.2em;
}

/* Backpack cards are narrow: stack labels over values. */
.backpack-item .paid-proof {
	grid-template-columns: minmax(0, 1fr);
	gap: 2px;
	margin-block: 12px;
	font-size: 13px;
}
.backpack-item .paid-proof dt {
	color: var(--muted);
	font-size: 12px;
}
.backpack-item .paid-proof dd + dt {
	margin-top: 8px;
}
.backpack-status {
	margin: 0;
}
.backpack-rules {
	margin-top: 28px;
}
.backpack-rules-title {
	margin-top: 0;
	font-size: 16px;
}
.backpack-link {
	margin: 12px 0 0;
}
.ui-stepper:has(> .exchange-qty) {
	max-width: 11rem;
}
/* No button follows while paid cases are off, so the block spaces itself. */
.exchange-empty {
	margin: 16px 0 28px;
}
.gift-contents {
	margin: 8px 0 0;
	padding-left: 18px;
}
.gift-picker {
	display: grid;
	gap: 10px;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
}
.gift-picker legend {
	margin-bottom: 8px;
	font-weight: 600;
}
.inventory-option input[type="checkbox"] {
	width: 1.5rem;
	min-height: 1.5rem;
	margin-block: 0;
	flex-shrink: 0;
	accent-color: var(--accent);
}
.gift-rules {
	margin-top: 28px;
}
.progress-stats {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.progress-label {
	display: block;
	font-size: 14px;
	color: var(--muted);
	margin-bottom: 8px;
}
.level-progress {
	width: 100%;
	height: 10px;
	accent-color: var(--accent);
	margin-bottom: 30px;
}
.level-rewards {
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
}
.level-reward {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px;
	display: grid;
	gap: 4px;
	color: var(--muted);
}
.level-reward.unlocked {
	border-color: #6a4f85;
	background: #2e2140;
	color: var(--ink);
}
.level-rewards span {
	font-size: 13px;
}
.ledger-row.reversed strong {
	text-decoration: line-through;
	color: var(--muted);
}

/* Live feed of confirmed openings (CSK-53). */
.feed-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
.feed-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 14px 4px;
	border-bottom: 1px solid var(--line);
}
.feed-text {
	min-width: 0;
	flex: 1 1 160px;
}
.feed-item {
	font-size: 14px;
	font-weight: 500;
	overflow-wrap: anywhere;
}
.feed-meta {
	display: block;
	color: var(--muted);
	font-size: 12px;
	margin-top: 5px;
}
.feed-amount {
	margin-left: auto;
}
.feed-row.feed-big {
	border-left: 3px solid var(--gold);
	padding-left: 12px;
	background: #2e2140;
}
.feed-tag {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	font-style: normal;
	color: var(--gold);
}
.feed-status {
	color: var(--muted);
	font-size: 12px;
	margin: 0 0 8px;
}
.feed-attribution,
.feed-strip {
	margin-block: 20px;
}
.feed-strip-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}
.feed-strip-title {
	margin: 0;
}
.feed-older {
	margin-top: 8px;
}
.feed-older[hidden],
[data-feed-empty][hidden] {
	display: none;
}
@media (prefers-reduced-motion: no-preference) {
	.feed-row.feed-new {
		animation: feed-in 0.4s ease-out;
	}
	@keyframes feed-in {
		from {
			opacity: 0;
			transform: translateY(-6px);
		}
	}
}
@media (max-width: 760px) {
	.feed-row {
		gap: 6px 12px;
	}
}
/* Public player profile (CSK-52). */
.profile-stats {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile-stats dd {
	overflow-wrap: anywhere;
}
.profile-showcase,
.profile-cases {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.profile-showcase {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
}
@media (max-width: 560px) {
	.profile-showcase {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.profile-item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 10px 14px 14px;
	min-width: 0;
	overflow-wrap: anywhere;
}
.profile-art {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	border-radius: 7px;
	background: radial-gradient(circle at 50% 40%, #2c2340, #0f0c18 75%);
}
.profile-art img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.profile-art-none svg {
	width: 38%;
	height: auto;
	color: var(--muted);
}
.profile-settings {
	margin-bottom: 28px;
}
.battle-entry {
	margin-top: -4px;
}
.ledger-row span.battle-mode {
	color: var(--gold);
	font-size: 13px;
	font-weight: 600;
}
.battle-mode-help {
	display: grid;
	gap: 4px;
	margin: 6px 0 14px;
	padding-left: 18px;
}
.battle-mode-line {
	margin: 0 0 16px;
}
.battle-teams {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 0 16px;
}
.battle-team h3 {
	margin: 0 0 8px;
	font-size: 15px;
}
.battle-join {
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}
.battle-cases {
	padding-left: 20px;
}
.battle-hash {
	margin: 4px 0 12px;
	overflow-wrap: anywhere;
}
.battle-seats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
}
.battle-seat {
	min-width: 0;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
}
.battle-line {
	margin: 6px 0 0;
}
.battle-drop-name {
	font-size: 14px;
	font-weight: 500;
}
.battle-seats .product-art {
	border-radius: 8px;
}
.battle-winner {
	border-color: var(--gold);
	box-shadow: inset 0 0 0 1px var(--gold);
}
.battle-totals > div.battle-winner dd {
	color: var(--gold);
}
.battle-totals > div:first-child:not(.battle-winner) {
	background: #211b30;
	border-color: #493957;
}
.battle-totals > div:first-child:not(.battle-winner) dd {
	color: inherit;
}
.battle-badge {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--gold);
	color: var(--button-ink);
	font-size: 13px;
	font-weight: 700;
}
.battle-head .battle-seat {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.battle-head .battle-badge {
	margin-top: 0;
}
.battle-prize {
	font-weight: 700;
}
.battle-bot {
	color: #9fc3ff;
	font-weight: 700;
}
.battle-bots {
	margin: 4px 0 16px;
	padding: 12px;
	border: 1px dashed #5b7aa6;
	border-radius: 10px;
}
.battle-round {
	animation: battle-reveal 0.45s ease-out both;
}
.battle-round:nth-of-type(2) {
	animation-delay: 0.35s;
}
.battle-round:nth-of-type(3) {
	animation-delay: 0.7s;
}
.battle-round:nth-of-type(4) {
	animation-delay: 1.05s;
}
.battle-round:nth-of-type(5) {
	animation-delay: 1.4s;
}
.battle-round:nth-of-type(6) {
	animation-delay: 1.75s;
}
@keyframes battle-reveal {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}
@media (prefers-reduced-motion: reduce) {
	.battle-round {
		animation: none;
	}
}
.community-reactions button[aria-pressed="true"] {
	border-color: var(--accent);
	background: var(--lavender);
	color: var(--ink);
}
.xscore-board {
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
}
.ledger-row.xscore-me {
	background: #2e2140;
	border-radius: 10px;
	padding-inline: 12px;
}
.competition-archive {
	margin-block: 24px;
}
.achievements {
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 10px;
}
.achievement {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	color: var(--muted);
}
.achievement.unlocked {
	border-color: #6a4f85;
	background: #2e2140;
}
.achievement-body {
	display: grid;
	gap: 4px;
	min-width: 0;
}
.achievement-title {
	color: var(--ink);
}
.achievement-glyph {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 700;
	border: 1px solid var(--line);
	color: var(--muted);
}
.achievement-glyph.earned {
	border-color: var(--accent);
	color: var(--ink);
	background: #3a2a52;
}
.achievement-glyph.small {
	width: 32px;
	height: 32px;
	font-size: 13px;
}
.achievement-progress {
	width: 100%;
	height: 8px;
	accent-color: var(--accent);
}
.achievement-status {
	font-size: 13px;
}
.badge-showcase {
	display: grid;
	gap: 14px;
	justify-items: start;
	margin-bottom: 30px;
}
.badge-strip {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.badge-strip-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}
.ticket-stats {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ticket-faucet {
	margin: 20px 0 30px;
}
.ticket-faucet-title {
	margin-top: 0;
}
.ticket-task progress {
	width: 100%;
	height: 8px;
	accent-color: var(--accent);
}
.ticket-task .progress-label {
	margin: 4px 0 0;
}
.ticket-task form {
	margin-top: 6px;
}
.missions {
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 12px;
}
.mission {
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	padding: 16px;
	display: grid;
	gap: 12px;
	align-content: start;
}
.mission.claimable {
	border-color: #6a4f85;
}
.mission-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}
.mission-head h3 {
	margin: 0;
	font-size: 16px;
}
.mission-reward {
	color: var(--gold);
	white-space: nowrap;
}
.mission-conditions {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 10px;
}
.mission-condition {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 12px;
	font-size: 14px;
}
.mission-condition span {
	color: var(--muted);
}
.mission-condition progress {
	grid-column: 1 / -1;
	width: 100%;
	height: 8px;
	accent-color: var(--accent);
}
.mission-ends,
.mission-status {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}
.mission-status.claimed {
	color: var(--ink);
}
.mission form {
	margin: 0;
	display: grid;
}
.daily-tiers {
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 12px;
}
.daily-tier {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 16px;
	display: grid;
	gap: 10px;
	align-content: start;
	color: var(--muted);
	min-width: 0;
}
.daily-tier.unlocked {
	color: var(--ink);
}
.daily-tier.available {
	border-color: #6a4f85;
	background: #2e2140;
}
.daily-title {
	margin: 0;
	font-size: 18px;
}
.daily-odds {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 4px;
	font-size: 13px;
}
.daily-odd {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}
.daily-state {
	margin: 0;
	font-weight: 600;
}
.daily-tier form {
	display: grid;
	gap: 8px;
}
.daily-tier .identifier {
	overflow-wrap: anywhere;
}
.events {
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 12px;
}
.event-card {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 16px;
	display: grid;
	gap: 8px;
	align-content: start;
}
.event-card.active,
.event-banner.active {
	border-color: #6a4f85;
	background: #2e2140;
}
.event-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}
.event-line {
	margin: 0;
}
.event-state {
	font-size: 13px;
	color: var(--muted);
}
.event-banner {
	margin: 0 0 20px;
}
.event-time {
	font-weight: 700;
}
.event-goal {
	width: 100%;
	height: 8px;
	accent-color: var(--accent);
}
.event-rules {
	margin: 0 0 10px;
	padding-left: 20px;
	display: grid;
	gap: 6px;
}
.market-offers {
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 12px;
}
.market-offer {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 16px;
	display: grid;
	gap: 8px;
	align-content: start;
	min-width: 0;
}
.market-offer.available {
	border-color: #6a4f85;
	background: #2e2140;
}
.market-title,
.market-price,
.market-state,
.market-offer .hint {
	margin: 0;
}
.market-title {
	font-size: 16px;
	overflow-wrap: anywhere;
}
.market-price,
.market-state {
	font-weight: 700;
}
.market-offer form {
	display: grid;
	margin: 0;
}
.leaderboard-tabs {
	margin-bottom: 16px;
}
.leaderboard-wrap {
	overflow-x: auto;
	margin-bottom: 16px;
}
.leaderboard {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}
.leaderboard th,
.leaderboard td {
	padding: 12px 8px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	font-weight: 400;
}
.leaderboard thead th {
	color: var(--muted);
	font-size: 12px;
}
.leaderboard .rank {
	width: 3.5em;
}
.leaderboard .amount {
	text-align: right;
	white-space: nowrap;
}
.leaderboard tr.me {
	background: rgb(193 166 255 / 0.12);
}
.leaderboard tr.me th {
	color: var(--accent);
	font-weight: 600;
}
.pickem-stats {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pickem-stats.with-tickets {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 760px) {
	.pickem-stats,
	.pickem-stats.with-tickets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.pickem-stage {
	margin-bottom: 28px;
}
.pickem-matches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
}
.pickem-match {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px;
	display: grid;
	gap: 10px;
}
.pickem-match header {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 14px;
	color: var(--muted);
}
.pickem-teams {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: stretch;
	gap: 8px;
}
.pickem-teams form {
	display: grid;
}
.pickem-team {
	display: grid;
	gap: 2px;
	align-content: center;
	justify-items: center;
	min-height: 52px;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	text-align: center;
	overflow-wrap: anywhere;
	background: transparent;
	color: var(--ink);
}
button.pickem-team {
	cursor: pointer;
}
.pickem-team.picked {
	border-color: #6a4f85;
	background: #2e2140;
}
.pickem-team small {
	font-size: 12px;
	color: var(--muted);
}
.pickem-vs {
	align-self: center;
	color: var(--muted);
	font-size: 13px;
}
.pickem-note,
.pickem-result,
.pickem-points {
	margin: 0;
	font-size: 14px;
}
.pickem-note {
	color: var(--muted);
}
.pickem-points.won {
	color: var(--accent);
}
.pickem-you {
	border-color: #6a4f85;
}
/* Inbox (CSK-54, CSK-79): day groups, unread rows and the settings table. */
.nav-count {
	margin-left: auto;
	min-width: 22px;
	padding: 1px 6px;
	border-radius: 11px;
	background: var(--accent);
	color: var(--button-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}
.inbox-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin-bottom: 4px;
}
.inbox-tab-count {
	margin-left: 8px;
	min-width: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--accent);
	color: var(--button-ink);
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	display: inline-block;
}
.inbox-tools {
	display: flex;
	align-items: center;
	gap: 8px;
}
.inbox-tools form {
	margin: 0;
}
.inbox-readall,
.inbox-tool {
	margin: 0;
	min-height: 40px;
	padding: 8px 14px;
	font-size: 13px;
}
.inbox-tool {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--ink);
	text-decoration: none;
}
.inbox-tool:hover {
	background: #211b30;
	border-color: #51455f;
}
.inbox-tool svg {
	width: 16px;
	height: 16px;
}
.inbox-day-title {
	margin: 24px 0 10px;
	font-family: "Onest", Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--muted);
}
.inbox-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	background: #1d1829;
}
.inbox-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 8px 16px;
	padding: 4px 16px 4px 4px;
	border-top: 1px solid var(--line);
}
.inbox-row:first-child {
	border-top: 0;
}
.inbox-row.unread {
	background: rgb(51 35 78 / 0.55);
}
.inbox-row:hover {
	background: #2b203e;
}
.inbox-main form {
	margin: 0;
}
.inbox-open {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 14px;
	width: 100%;
	min-height: 44px;
	padding: 12px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-weight: 400;
	text-align: left;
	cursor: pointer;
}
.inbox-open:hover {
	background: transparent;
	color: var(--ink);
}
.inbox-open:focus-visible {
	outline-offset: -3px;
}
.inbox-badge {
	position: relative;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #2a2238;
	color: #c7bfd8;
}
.inbox-badge svg {
	width: 18px;
	height: 18px;
}
.unread .inbox-badge {
	background: var(--lavender);
	color: var(--accent);
}
.unread .inbox-badge::after {
	content: "";
	position: absolute;
	top: -1px;
	right: -1px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 2px #251c38;
}
.inbox-text {
	display: grid;
	gap: 2px;
	min-width: 0;
}
.inbox-kind {
	color: var(--muted);
	font-size: 12px;
}
.inbox-title {
	color: #d9d2e8;
	font-weight: 500;
	overflow-wrap: anywhere;
}
.unread .inbox-title {
	color: var(--ink);
	font-weight: 700;
}
.inbox-body {
	max-width: 70ch;
	color: var(--muted);
	font-size: 14px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
.inbox-meta {
	display: grid;
	justify-items: end;
	gap: 0;
	padding-top: 12px;
	color: var(--muted);
	font-size: 12px;
	white-space: nowrap;
}
.inbox-meta form {
	margin: 0;
}
.inbox-meta .text-button {
	margin: 0;
	min-height: 32px;
	color: var(--accent);
}
.inbox-empty {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 56px 16px;
	border: 1px dashed #695878;
	border-radius: 12px;
	text-align: center;
}
.inbox-empty svg {
	width: 36px;
	height: 36px;
	color: var(--accent);
}
.inbox-empty-title {
	margin: 4px 0 0;
	font-size: 18px;
}
.inbox-empty-text {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}
.inbox-more {
	margin-top: 20px;
}
.inbox-foot {
	margin: 28px 0 0;
	font-size: 13px;
}
.inbox-settings {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
}
.inbox-settings :is(th, td) {
	padding: 10px 8px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}
@media (max-width: 760px) {
	.nav-count {
		position: absolute;
		top: 3px;
		right: 3px;
		min-width: 18px;
		padding: 0 4px;
		font-size: 11px;
		line-height: 18px;
	}
	.inbox-settings :is(th, td) {
		padding: 8px 4px;
		font-size: 13px;
	}
}
@media (max-width: 560px) {
	.inbox-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding: 4px;
	}
	.inbox-meta {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 12px 8px 64px;
	}
	.inbox-toolbar,
	.inbox-tools {
		width: 100%;
	}
	.inbox-tools form {
		flex: 1;
	}
	.inbox-readall {
		width: 100%;
	}
	.inbox-empty {
		padding: 40px 16px;
	}
}
/* Package offers (CSK-50). */
.payment-row .package-quote {
	flex-basis: 100%;
	margin: 4px 0;
	font-size: 14px;
}
.package-code {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 8px 12px;
	margin: 0 0 24px;
}
.package-code > label {
	flex-basis: 100%;
}
.package-code > input {
	flex: 1 1 200px;
	min-width: 0;
}
.package-offers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 20px;
	margin: 0 0 30px;
}
.package-offer {
	min-width: 0;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
}
.package-offer > :where(h2, h3) {
	margin: 0 0 8px;
}
.package-preview {
	margin: 16px 0 30px;
}
.package-rewards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 12px 0;
}
.package-reward {
	display: grid;
	gap: 4px;
	align-content: start;
	min-width: 0;
}
.package-reward .product-art {
	border-radius: 8px;
}
.package-reward > span {
	font-size: 14px;
	color: var(--muted);
}
.listing:has(.item-link) {
	position: relative;
	cursor: pointer;
}
.listing .item-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}
.listing:has(.item-link)
	:is(a:not(.item-link), button, form, input, select, label, summary, iframe) {
	position: relative;
	z-index: 2;
}
.listing:has(.item-link:focus-visible) {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.listing:has(.item-link:hover) .item-link {
	color: var(--ink);
	border-color: var(--accent);
}

/* Reference cards carry art; inputs show a clear focus ring. */
.wiki-card {
	display: flex;
	flex-direction: column;
	background: #191523;
}
.wiki-art {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	margin: -18px -18px 14px;
	border-radius: 11px 11px 0 0;
	background: radial-gradient(circle at 50% 60%, #2c2141, #15111f 70%);
	overflow: hidden;
}
.wiki-art img {
	width: 82%;
	height: 82%;
	object-fit: contain;
}
.wiki-glyph svg {
	width: 56px;
	height: 56px;
	color: #8f7fb0;
}
.wiki-card .hint {
	margin-top: auto;
}
.search-field {
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}
.search-field:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgb(193 166 255 / 0.3);
}
.search-field:focus-within > svg {
	color: var(--accent);
}
.search-field input:focus-visible {
	border-color: transparent;
	box-shadow: none;
}

/* Brand marks and the sign-in card. */
.brand-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}
h2 > .brand-icon {
	width: 0.9em;
	height: 0.9em;
	margin-right: 0.35em;
	vertical-align: -0.1em;
}
.auth-methods {
	gap: 12px;
	margin-block: 24px 20px;
}
.auth-method {
	padding: 0;
	border: 0;
}
.auth-email {
	margin-top: 8px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}
.auth-provider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	margin: 0;
	font-weight: 500;
}
.auth-method .auth-provider {
	margin-block-start: 0;
}
.auth-method .hint {
	margin: 6px 0 0;
	font-size: 12px;
}
.auth-provider:disabled .brand-icon {
	opacity: 0.55;
}
.auth-linked {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	min-height: 48px;
}
.auth-linked .badge {
	margin-left: auto;
}
.help-link {
	display: inline-block;
	margin-top: 12px;
}
form + .actions {
	margin-top: 12px;
}
/* Top-up rails (CSK-85): the choice of how to pay, and what to do for a pending invoice. */
.rails {
	display: grid;
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	border: 0;
}
.rails > legend {
	margin: 0 0 7px;
	padding: 0;
	font-weight: 500;
}
.rails > label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-weight: 400;
}
.rails input[type="radio"] {
	width: auto;
	min-height: 0;
}
.payment-row .rail-pay {
	flex-basis: 100%;
	font-size: 14px;
}
.rail-pay > :where(p) {
	margin: 4px 0;
}
.rail-pay > .button {
	margin: 8px 0 4px;
}
.app-shell {
	min-height: 100svh;
	display: flex;
	flex-direction: column;
}
.topbar {
	position: sticky;
	top: 0;
	z-index: 30;
	background: rgb(15 12 24 / 0.86);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.topbar-inner {
	max-width: 1440px;
	margin: 0 auto;
	min-height: 68px;
	padding: 0 28px;
	display: flex;
	align-items: center;
	gap: 28px;
}
.topbar-brand {
	display: flex;
	flex-shrink: 0;
}
.topbar-brand img {
	display: block;
	height: 22px;
	width: auto;
}
.topnav {
	display: flex;
	align-items: center;
	gap: 2px;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.topnav a {
	min-height: 40px;
	padding: 8px 12px;
	gap: 8px;
	border-radius: 8px;
	font-size: 14px;
	white-space: nowrap;
}
.topnav svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}
.topbar-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}
.topbar-surface,
.topbar-login {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 12px;
	border-radius: 8px;
	color: #c7bfd8;
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
}
.topbar-surface svg {
	width: 14px;
	height: 14px;
}
.topbar-login {
	color: var(--button-ink);
	background: var(--accent);
	font-weight: 600;
}
.topbar-surface:hover {
	color: var(--ink);
	background: #211b30;
}
.topbar-login:hover {
	color: var(--button-ink);
	background: #d4c0ff;
}
.topbar-inbox {
	position: relative;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	color: #c7bfd8;
}
.topbar-inbox svg {
	width: 20px;
	height: 20px;
}
.topbar-inbox:hover,
.topbar-inbox[aria-current] {
	color: var(--ink);
	background: #211b30;
}
.topbar-inbox .nav-count {
	position: absolute;
	top: 2px;
	right: 0;
	margin: 0;
}
.account-menu {
	position: relative;
}
.account-menu summary {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 40px;
	padding: 4px 10px 4px 4px;
	border-radius: 999px;
	border: 1px solid var(--line);
	cursor: pointer;
	list-style: none;
	font-size: 13px;
}
.account-menu summary::-webkit-details-marker {
	display: none;
}
.account-menu summary:hover,
.account-menu[open] summary {
	border-color: #51455f;
	background: #211b30;
}
.account-name {
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.account-panel {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	min-width: 220px;
	display: grid;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #191523;
	box-shadow: 0 18px 40px rgb(0 0 0 / 0.45);
}
.account-caption {
	padding: 6px 10px 8px;
	color: var(--muted);
	font-size: 12px;
}
.account-panel a,
.account-panel .text-button {
	display: flex;
	align-items: center;
	min-height: 38px;
	margin: 0;
	padding: 0 10px;
	border-radius: 8px;
	color: var(--ink);
	font-size: 14px;
	text-decoration: none;
	justify-content: flex-start;
	text-align: left;
	width: 100%;
}
.account-panel a:hover,
.account-panel .text-button:hover {
	background: #211b30;
	color: var(--ink);
	text-decoration: none;
}
.account-panel form {
	margin: 4px 0 0;
	padding-top: 4px;
	border-top: 1px solid var(--line);
}
.notif-menu {
	position: relative;
}
.notif-toggle {
	cursor: pointer;
	list-style: none;
}
.notif-toggle::-webkit-details-marker {
	display: none;
}
.notif-menu[open] > .notif-toggle {
	color: var(--ink);
	background: #211b30;
}
.notif-panel {
	position: absolute;
	right: -4px;
	top: calc(100% + 8px);
	width: 380px;
	max-width: calc(100vw - 24px);
	display: grid;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #191523;
	box-shadow: 0 18px 40px rgb(0 0 0 / 0.45);
}
.notif-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 10px 8px;
}
.notif-head strong {
	font-size: 14px;
}
.notif-head form {
	margin: 0;
}
.notif-readall {
	margin: 0;
	min-height: 32px;
	color: var(--accent);
	font-size: 13px;
}
.notif-list {
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: min(60svh, 420px);
	overflow-y: auto;
	overscroll-behavior: contain;
	border-block: 1px solid var(--line);
}
.notif-list li + li {
	border-top: 1px solid var(--line);
}
.notif-list form {
	margin: 0;
}
.notif-item {
	display: grid;
	grid-template-columns: 10px minmax(0, 1fr) auto;
	align-items: start;
	gap: 0 12px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 12px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--ink);
	font-weight: 400;
	text-align: left;
}
.notif-item:hover {
	background: #211b30;
	color: var(--ink);
}
.notif-item:focus-visible {
	outline-offset: -3px;
}
.notif-dot {
	width: 8px;
	height: 8px;
	margin-top: 7px;
	border-radius: 50%;
}
.notif-item.unread .notif-dot {
	background: var(--accent);
}
.notif-text {
	display: grid;
	gap: 2px;
	min-width: 0;
}
.notif-title {
	color: #d9d2e8;
	font-size: 14px;
	line-height: 1.35;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
.notif-item.unread .notif-title {
	color: var(--ink);
	font-weight: 700;
}
.notif-body {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.4;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
.notif-time {
	padding-top: 2px;
	color: var(--muted);
	font-size: 12px;
	white-space: nowrap;
}
.notif-empty {
	display: grid;
	justify-items: center;
	gap: 4px;
	padding: 28px 16px;
	border-block: 1px solid var(--line);
	text-align: center;
	font-size: 13px;
	color: var(--muted);
}
.notif-empty svg {
	width: 28px;
	height: 28px;
	margin-bottom: 4px;
	color: var(--accent);
}
.notif-empty strong {
	color: var(--ink);
	font-size: 14px;
}
.notif-panel .notif-all {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin-top: 6px;
	border-radius: 8px;
	color: var(--accent);
	font-size: 14px;
	text-decoration: none;
}
.notif-panel .notif-all:hover {
	background: #211b30;
}
.page-wrap {
	flex: 1;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 28px;
	display: flex;
	flex-direction: column;
}
.test-note {
	max-width: none;
	margin: 0;
	padding: 12px 2px 10px;
	font-size: 12px;
	color: var(--muted);
}
@media (max-width: 1560px) {
	.topnav svg {
		display: none;
	}
	.topnav a {
		padding-inline: 10px;
	}
	.topbar-inner {
		gap: 18px;
	}
}
@media (max-width: 1260px) {
	.topbar-surface span,
	.topbar-surface svg:last-child {
		display: none;
	}
}
@media (max-width: 1140px) {
	.topbar-inner {
		flex-wrap: wrap;
		row-gap: 0;
		padding: 0 16px;
		min-height: 60px;
	}
	.topnav {
		order: 3;
		flex-basis: 100%;
		margin: 0 -16px;
		padding: 0 12px 8px;
		overflow-x: auto;
		scrollbar-width: none;
		mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
	}
	.topnav::-webkit-scrollbar {
		display: none;
	}
	.topbar-brand {
		min-height: 60px;
		align-items: center;
	}
	.page-wrap {
		padding: 0 16px;
	}
}
@media (max-width: 560px) {
	.notif-menu {
		position: static;
	}
	.notif-panel {
		left: 0;
		right: 0;
		top: 100%;
		width: auto;
		max-width: none;
		border-radius: 0 0 12px 12px;
		border-inline: 0;
	}
	.notif-list {
		max-height: min(55svh, 380px);
	}
	.account-name,
	.topbar-surface span {
		display: none;
	}
	.topbar-inner {
		column-gap: 10px;
	}
	.topbar-brand img {
		height: 18px;
	}
	.account-menu summary {
		padding-right: 4px;
	}
	.topbar-surface {
		padding-inline: 8px;
	}
	.page-wrap {
		padding: 0 12px;
	}
	main {
		padding: 20px 15px 24px;
	}
}
/* The opening stage preserves the light app shell while matching the dark case reel. */
.case-reel {
	color-scheme: dark;
	color: #f6f3ff;
	background: #181620;
	border: 1px solid #37313f;
	border-radius: 12px;
	padding: 20px 0 14px;
	margin-block: 24px;
	min-width: 0;
}
.case-reel [hidden] {
	display: none;
}
.reel-heading,
.reel-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-inline: 20px;
}
.reel-heading h2 {
	color: inherit;
	margin: 0;
	font-size: 20px;
}
.case-reel button.secondary {
	background: #292532;
	border-color: #62576e;
	color: #f6f3ff;
}
.case-reel button.secondary:hover {
	background: #393141;
}
.case-reel :focus-visible {
	outline: 3px solid #fa84cd;
	outline-offset: 4px;
}
.reel-window {
	position: relative;
	overflow: hidden;
	margin-block: 18px;
	padding-block: 18px;
	background: #100f16;
	isolation: isolate;
}
.reel-window::before,
.reel-window::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: min(8%, 64px);
	z-index: 2;
	pointer-events: none;
}
.reel-window::before {
	left: 0;
	background: linear-gradient(90deg, #100f16, transparent);
}
.reel-window::after {
	right: 0;
	background: linear-gradient(270deg, #100f16, transparent);
}
.reel-track {
	display: flex;
	gap: 8px;
	padding: 0;
	margin: 0;
	list-style: none;
	position: relative;
}
.case-reel[data-state="spinning"] .reel-track {
	will-change: transform;
}
.reel-card {
	--rarity: #9860e9;
	flex: 0 0 168px;
	width: 168px;
	min-width: 0;
	padding: 8px 12px 14px;
	background: linear-gradient(0deg, #39294d 0%, #25212e 62%);
	border: 1px solid #544263;
	border-radius: 4px;
	box-shadow: inset 0 -3px var(--rarity);
}
.reel-card.rarity-classified {
	--rarity: #e452b6;
	background: linear-gradient(0deg, #4a2945, #25212e 62%);
	border-color: #704264;
}
.reel-card .product-art {
	height: 116px;
	min-height: 0;
	margin: 0 -8px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}
.reel-card .product-art img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.reel-card .art-caption {
	display: none;
}
.reel-card > span,
.reel-card > strong {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.reel-card > span {
	color: #c8bfce;
	font-size: 12px;
}
.reel-card > strong {
	color: #fff;
	font-size: 15px;
}
.reel-pointer {
	position: absolute;
	z-index: 3;
	left: 50%;
	width: 17px;
	height: 17px;
	background: #181620;
	border: 2px solid #ff78c8;
}
.pointer-top {
	top: -10px;
	transform: translateX(-50%) rotate(45deg);
}
.pointer-bottom {
	bottom: -10px;
	transform: translateX(-50%) rotate(45deg);
}
.case-reel[data-state="revealed"] [data-reel-winner] {
	border-color: #ffc0e6;
	background: #492a45;
}
.case-reel[data-state="revealed"] .reel-card:not([data-reel-winner]) {
	opacity: 0.5;
}
.reel-status {
	margin: 0;
	color: #f6f3ff;
}
.reel-note {
	padding-inline: 20px;
	font-size: 12px;
	color: #c8bfce;
	margin-bottom: 0;
}
.case-reel .reel-result,
.reel-error,
.reel-recovery {
	margin: 16px 20px 0;
}
.reel-error {
	color: #ffc2c2;
}
.reel-recovery {
	display: inline-block;
	color: #ffc0e6;
}
@media (max-width: 600px) {
	.reel-card {
		flex-basis: 136px;
		width: 136px;
		padding-inline: 10px;
	}
	.reel-card .product-art {
		height: 98px;
	}
	.reel-heading,
	.reel-footer {
		padding-inline: 14px;
	}
	.reel-heading h2 {
		font-size: 18px;
	}
	.reel-heading button,
	.reel-footer button {
		font-size: 12px;
		padding-inline: 10px;
	}
	.reel-status {
		font-size: 13px;
	}
}

.reel-details[hidden] {
	display: none;
}

[data-reel-controls][hidden] {
	display: none;
}
/* Exclusive Drop: optional extra reveal stage for rare results. Presentation only. */
.exclusive-toggle {
	padding: 12px 20px 0;
	color: #f6f3ff;
}
.exclusive-toggle-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	cursor: pointer;
}
.exclusive-toggle-label input {
	flex: none;
	width: 20px;
	height: 20px;
	accent-color: #e452b6;
}
.exclusive-toggle-hint {
	margin: 6px 0 0 30px;
	color: #c9c2d6;
	font-size: 13px;
}
.exclusive-toggle :focus-visible,
.exclusive-stage :focus-visible {
	outline: 3px solid #fa84cd;
	outline-offset: 3px;
}
.exclusive-announcer {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.exclusive-stage {
	--rarity: #9860e9;
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 16px;
	overflow-y: auto;
	color: #f6f3ff;
	color-scheme: dark;
	background: rgba(8, 6, 14, 0.9);
	animation: exclusive-fade 0.35s ease-out;
}
.exclusive-stage.rarity-classified {
	--rarity: #e452b6;
}
.exclusive-panel {
	display: grid;
	justify-items: center;
	gap: 10px;
	width: min(100%, 560px);
	text-align: center;
}
.exclusive-art {
	position: relative;
	width: min(100%, 340px);
	max-height: 40vh;
	animation: exclusive-pop 0.7s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.exclusive-art::before {
	content: "";
	position: absolute;
	inset: -12%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(circle, var(--rarity), transparent 68%);
	opacity: 0.55;
	animation: exclusive-glow 1.8s ease-in-out infinite alternate;
}
.exclusive-art .product-art {
	background: none;
	box-shadow: none;
}
.exclusive-art img {
	max-width: 100%;
	max-height: 36vh;
	object-fit: contain;
}
.exclusive-kicker {
	margin: 0;
	color: var(--rarity);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.exclusive-name {
	margin: 0;
	color: inherit;
	font-size: clamp(22px, 5vw, 32px);
	animation: exclusive-rise 0.5s 0.25s ease-out backwards;
}
.exclusive-chance {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}
.exclusive-note {
	margin: 0;
	color: #c9c2d6;
	font-size: 14px;
}
.exclusive-skip {
	margin-top: 8px;
	background: #292532;
	border: 1px solid #62576e;
	color: #f6f3ff;
}
.exclusive-skip:hover {
	background: #393141;
}
@keyframes exclusive-fade {
	from {
		opacity: 0;
	}
}
@keyframes exclusive-pop {
	from {
		opacity: 0;
		transform: scale(0.55);
	}
}
@keyframes exclusive-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}
@keyframes exclusive-glow {
	to {
		opacity: 0.9;
		transform: scale(1.08);
	}
}
.exclusive-stage[data-motion="none"],
.exclusive-stage[data-motion="none"] * {
	animation: none;
}
@media (prefers-reduced-motion: reduce) {
	.exclusive-stage,
	.exclusive-stage * {
		animation: none;
	}
}
.site-footer {
	margin-top: 48px;
	padding: 32px 0 calc(24px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
}
.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 32px 40px;
}
.footer-brand p {
	margin: 14px 0 0;
	line-height: 1.55;
	max-width: 28ch;
}
.footer-logo {
	display: inline-block;
}
.footer-logo img {
	display: block;
	height: 21px;
	width: auto;
}
.footer-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}
.footer-col h2 {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}
.footer-col a {
	display: block;
	color: var(--muted);
	text-decoration: none;
	padding: 5px 0;
	min-height: 24px;
	border-radius: 0;
	background: none;
	font-weight: 400;
}
.footer-col a[aria-current] {
	color: var(--ink);
	background: none;
}
.footer-col a:hover {
	color: var(--ink);
}
.footer-col a:focus-visible,
.footer-logo:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}
.footer-base {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: 12px;
}
@media (max-width: 760px) {
	.site-footer {
		margin-top: 36px;
		padding-top: 28px;
	}
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}
	.footer-brand {
		grid-column: 1 / -1;
	}
	.footer-col a {
		padding: 8px 0;
	}
	.footer-base {
		flex-direction: column;
		align-items: flex-start;
	}
}
.footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
}
.site-footer .footer-legal a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0;
	border-radius: 0;
	background: none;
	color: var(--muted);
	font-weight: 400;
	text-decoration: none;
}
.site-footer .footer-legal a:hover,
.site-footer .footer-legal a[aria-current] {
	color: var(--ink);
	background: none;
}
.site-footer .footer-legal a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}
@media (max-width: 760px) {
	.site-footer .footer-legal a {
		min-height: 36px;
	}
}
/* Sign-in screen (CSK-80): one small centred panel. */
.page-wrap:has(.auth-screen) > .test-note,
main:has(.auth-screen) > .page-heading {
	display: none;
}
main:has(.auth-screen) {
	padding: 0;
	border: 0;
	background: none;
}
.auth-screen {
	display: grid;
	place-items: center;
	min-height: min(640px, calc(100svh - 200px));
	padding: clamp(32px, 8vh, 80px) 16px;
}
.auth-box {
	width: 100%;
	max-width: 360px;
	padding: 28px 24px 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--kd-radius-lg);
	box-shadow:
		0 24px 60px -24px rgb(0 0 0 / 0.7),
		0 2px 6px rgb(0 0 0 / 0.3);
}
.auth-head {
	display: grid;
	justify-items: center;
	text-align: center;
	margin-bottom: 28px;
}
.auth-mark {
	display: block;
	width: 48px;
	height: 48px;
	margin-bottom: 18px;
}
.auth-head h1 {
	margin: 0;
	font-size: 24px;
	line-height: 1.25;
}
.auth-head p {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--muted);
}
.auth-box > .error {
	margin: 0 0 20px;
	font-size: 14px;
}
.auth-providers {
	display: grid;
	gap: 10px;
}
.auth-btn {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	font-weight: 600;
	transition:
		background-color 0.15s,
		border-color 0.15s;
}
.auth-btn .brand-icon {
	width: 20px;
	height: 20px;
}
.auth-btn-steam {
	min-height: 56px;
	font-size: 17px;
}
.auth-btn-steam .brand-icon {
	width: 24px;
	height: 24px;
}
.auth-btn-quiet {
	color: var(--ink);
	background: #221c30;
	border-color: #4a4058;
}
.auth-btn-quiet:hover {
	background: #2d2540;
	border-color: #645774;
}
.auth-btn:disabled,
.auth-btn:disabled:hover {
	color: var(--muted);
	background: #1f1a2a;
	border-color: var(--line);
	opacity: 1;
}
.auth-btn:disabled .brand-icon {
	opacity: 0.5;
}
.auth-btn-steam:disabled,
.auth-btn-steam:disabled:hover {
	background: #2a2140;
	border-color: #4a3a6a;
}
.auth-or {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 20px 0;
	color: var(--muted);
	font-size: 13px;
}
.auth-or::before,
.auth-or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}
.auth-email-form {
	display: grid;
	gap: 10px;
}
.auth-email-form input {
	min-height: 48px;
}
.auth-test {
	margin-top: 24px;
	border-top: 1px solid var(--line);
}
.auth-test summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	margin-bottom: -4px;
	padding-top: 4px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}
.auth-test summary::-webkit-details-marker {
	display: none;
}
.auth-test summary::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-right: 4px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	rotate: 45deg;
	translate: 0 -2px;
	transition: rotate 0.2s;
}
.auth-test[open] summary::after {
	rotate: 225deg;
	translate: 0 2px;
}
.auth-test form {
	padding-bottom: 4px;
}
.auth-box label {
	display: block;
	margin: 12px 0 6px;
	font-size: 14px;
}
.auth-box form > button {
	width: 100%;
	min-height: 48px;
	margin-top: 16px;
}
@media (max-width: 560px) {
	.auth-screen {
		min-height: 0;
		padding: 24px 0 32px;
	}
	.auth-box {
		max-width: none;
		padding: 28px 18px 18px;
	}
	.auth-head {
		margin-bottom: 24px;
	}
	.auth-head h1 {
		font-size: 22px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.auth-test summary::after {
		transition: none;
	}
}
.auth-head + form > label:first-of-type {
	margin-top: 0;
}
.app-shell:has(.auth-screen) .topbar-login {
	display: none;
}
/* Motion layer (CSK-68). Appended after ui.css, so it only adds timing and
   states on top of the incumbent look. Spatial movement lives inside
   prefers-reduced-motion: no-preference; colour and state feedback stay on
   for everyone. */
:root {
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in: cubic-bezier(0.4, 0, 1, 1);
	--motion-fast: 140ms;
	--motion: 220ms;
	--motion-slow: 320ms;
}

/* Cross-page navigation: the top bar stays put, the page area
   cross-fades. Same-origin MPA only; other browsers navigate instantly. */
@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}
	.topbar {
		view-transition-name: topbar;
	}
	::view-transition-group(*) {
		animation-duration: var(--motion);
		animation-timing-function: var(--ease-out);
	}
	::view-transition-old(root) {
		animation: var(--motion-fast) var(--ease-in) both motion-fade-out;
	}
	::view-transition-new(root) {
		animation: var(--motion) var(--ease-out) both motion-fade-in;
	}
}

/* Page entrance: heading and blocks rise in, lists stagger once. Only
   backwards fill, so nothing keeps a transform once the animation ends.
   :where() keeps specificity at one element, so a component's own
   animation (battle rounds, live feed, exclusive drop) always wins. */
@media (prefers-reduced-motion: no-preference) {
	main > * {
		animation: var(--motion-slow) var(--ease-out) backwards motion-rise;
	}
	main > :where(:nth-child(2)) {
		animation-delay: 40ms;
	}
	main > :where(:nth-child(3)) {
		animation-delay: 80ms;
	}
	main > :where(:nth-child(n + 4)) {
		animation-delay: 120ms;
	}
	main
		:where(
			.listing-list,
			.ledger,
			.missions,
			.achievements,
			.events,
			.level-rewards,
			.demo-items,
			.demo-lot-list,
			.profile-showcase,
			.profile-cases,
			.market-offers,
			.wiki-list,
			.daily-tiers
		)
		> * {
		animation: var(--motion-slow) var(--ease-out) backwards motion-rise;
		animation-delay: calc(80ms + min(sibling-index() - 1, 10) * 30ms);
	}
	/* Browsers without sibling-index() get a fixed stagger for the first rows. */
	@supports not (animation-delay: calc(sibling-index() * 1ms)) {
		main
			:where(
				.listing-list,
				.ledger,
				.missions,
				.achievements,
				.events,
				.level-rewards,
				.demo-items,
				.demo-lot-list,
				.profile-showcase,
				.profile-cases,
				.market-offers,
				.wiki-list,
				.daily-tiers
			)
			> * {
			animation-delay: 80ms;
		}
		main
			:where(.listing-list, .ledger, .missions, .achievements)
			> :where(:nth-child(2)) {
			animation-delay: 110ms;
		}
		main
			:where(.listing-list, .ledger, .missions, .achievements)
			> :where(:nth-child(3)) {
			animation-delay: 140ms;
		}
		main
			:where(.listing-list, .ledger, .missions, .achievements)
			> :where(:nth-child(n + 4)) {
			animation-delay: 170ms;
		}
	}
}

/* Status messages and alerts arrive with a short settle, everywhere. */
main :is(.notice, .error, [role="alert"]:not([hidden])) {
	animation: var(--motion) var(--ease-out) backwards motion-fade-in;
	@media (prefers-reduced-motion: no-preference) {
		animation-name: motion-settle;
	}
}

/* Hover, press and focus. */
a,
button,
.button,
input,
nav a,
.category-tabs a,
.item-link,
summary {
	transition-property:
		color, background-color, border-color, box-shadow, opacity, transform;
	transition-duration: var(--motion-fast);
	transition-timing-function: var(--ease-out);
}
button:not(:disabled, .text-button):hover,
.button:hover {
	box-shadow: 0 6px 18px -8px #c1a6ff99;
}
.secondary:not(:disabled):hover {
	border-color: var(--accent);
	box-shadow: 0 6px 18px -10px #c1a6ff80;
}
input:focus-visible,
input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px #c1a6ff2e;
}
nav a svg,
.item-link svg,
.topbar-surface svg {
	transition: transform var(--motion) var(--ease-out);
}
.listing {
	transition-property: transform, box-shadow, border-color;
	transition-duration: var(--motion);
	transition-timing-function: var(--ease-out);
}
@media (hover: hover) {
	.listing:hover,
	.listing:focus-within {
		border-color: #7a5f9c;
		box-shadow:
			0 14px 34px -18px #000000cc,
			0 0 0 1px #c1a6ff33,
			0 10px 40px -24px #c1a6ff80;
	}
	.listing:hover .item-link {
		background: #43306a;
		color: var(--accent);
	}
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	nav a:hover svg {
		transform: translateX(2px);
	}
	:is(.item-link, .topbar-surface):hover svg,
	.listing:hover .item-link svg {
		transform: translateX(3px);
	}
	.listing .product-art img {
		transition-duration: var(--motion-slow);
		transition-timing-function: var(--ease-out);
	}
}
@media (prefers-reduced-motion: no-preference) {
	nav a:active,
	.category-tabs a:active,
	.item-link:active {
		transform: scale(0.97);
	}
}

/* Disclosure: the FAQ and test sign-in panels fade their content in and out
   where ::details-content is supported, and rise in on open everywhere. */
details::details-content {
	opacity: 0;
	transition:
		opacity var(--motion) var(--ease-out),
		content-visibility var(--motion) var(--ease-out);
	transition-behavior: allow-discrete;
}
details[open]::details-content {
	opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
	details[open] > :not(summary) {
		animation: var(--motion) var(--ease-out) motion-rise;
	}
}
summary:hover {
	color: var(--accent);
}

/* Media dialog: scale in from the trigger area, fade the backdrop. Exit
   animates where display and overlay transitions exist, elsewhere it closes
   at once. */
.media-dialog {
	opacity: 0;
	transition-property: opacity, transform, display, overlay;
	transition-duration: var(--motion-fast);
	transition-timing-function: var(--ease-in);
	transition-behavior: allow-discrete;
	@media (prefers-reduced-motion: no-preference) {
		transform: translateY(8px) scale(0.98);
	}
}
.media-dialog[open] {
	opacity: 1;
	transition-duration: var(--motion-slow);
	transition-timing-function: var(--ease-out);
	@starting-style {
		opacity: 0;
	}
	@media (prefers-reduced-motion: no-preference) {
		transform: none;
		@starting-style {
			transform: translateY(12px) scale(0.97);
		}
	}
}
.media-dialog::backdrop {
	opacity: 0;
	transition-property: opacity, display, overlay;
	transition-duration: var(--motion-fast);
	transition-behavior: allow-discrete;
}
.media-dialog[open]::backdrop {
	opacity: 1;
	transition-duration: var(--motion-slow);
	@starting-style {
		opacity: 0;
	}
}
.media-photo {
	transition: opacity var(--motion) var(--ease-out);
}

/* Loading placeholders (set by motion.js): shimmer until the image arrives,
   then a short fade in. */
img[data-loading] {
	background-color: #241c33;
	background-image: linear-gradient(
		100deg,
		#0000 20%,
		#c1a6ff1f 45%,
		#ffd3831a 55%,
		#0000 80%
	);
	background-size: 220% 100%;
	background-repeat: no-repeat;
	background-position: 120% 0;
	@media (prefers-reduced-motion: no-preference) {
		animation: motion-shimmer 1.3s linear infinite;
	}
}
img[data-loaded] {
	animation: var(--motion) var(--ease-out) motion-fade-in;
}

/* Pending submit: spinner on the button that was pressed, repeat clicks
   ignored by motion.js. */
[data-pending] {
	cursor: progress;
	opacity: 0.85;
}
[data-pending]::after {
	content: "";
	width: 14px;
	height: 14px;
	flex: none;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: motion-spin 0.7s linear infinite;
	@media (prefers-reduced-motion: reduce) {
		animation-duration: 2.4s;
	}
}
form[aria-busy="true"] :is(button, input, select, textarea) {
	pointer-events: none;
}

/* Pending navigation: a thin accent bar appears if the next page takes
   longer than a moment. */
html[data-navigating] body::before {
	content: "";
	position: fixed;
	inset: 0 0 auto;
	z-index: 1000;
	height: 2px;
	background: linear-gradient(90deg, var(--accent), var(--gold));
	transform-origin: 0 50%;
	pointer-events: none;
	animation:
		motion-progress 2.4s var(--ease-out) 160ms both,
		motion-fade-in var(--motion-fast) linear 160ms both;
	@media (prefers-reduced-motion: reduce) {
		transform: none;
		animation: motion-fade-in var(--motion) linear 160ms both;
	}
}

@keyframes motion-fade-in {
	from {
		opacity: 0;
	}
}
@keyframes motion-fade-out {
	to {
		opacity: 0;
	}
}
@keyframes motion-rise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}
@keyframes motion-settle {
	from {
		opacity: 0;
		transform: translateY(-4px) scale(0.99);
	}
}
@keyframes motion-shimmer {
	from {
		background-position: 120% 0;
	}
	to {
		background-position: -120% 0;
	}
}
@keyframes motion-spin {
	to {
		transform: rotate(1turn);
	}
}
@keyframes motion-progress {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(0.85);
	}
}
/* Admin dashboard (CSK-76). */
.admin-master {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	margin: 0 0 40px;
	padding: 20px 22px;
	background: #211b30;
	border: 1px solid #493957;
	border-radius: 12px;
}
.admin-master[data-state="off"] {
	background: #2b1c2a;
	border-color: #8a4f6c;
}
.admin-master h2 {
	margin: 0 0 6px;
}
.admin-master p {
	margin: 0;
	max-width: 62ch;
	color: var(--muted);
}
.admin-master form > button {
	margin: 0;
}
.admin-table-wrap {
	/* Holds the hidden header label of the last column, which would widen the page. */
	position: relative;
	overflow-x: auto;
	margin: 12px 0 40px;
}
.admin-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}
.admin-table :is(th, td) {
	padding: 14px 10px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
	font-weight: 400;
}
.admin-table thead th {
	color: var(--muted);
	font-size: 12px;
	white-space: nowrap;
}
.admin-table .amount {
	text-align: right;
	white-space: nowrap;
}
.admin-table tbody th strong {
	display: block;
	font-weight: 600;
}
.admin-hint,
.admin-week {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 12px;
	max-width: 36ch;
}
.admin-week {
	max-width: none;
}
.admin-table tr:not([data-state="on"]) :is(th strong, .amount) {
	color: var(--muted);
}
.admin-state {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 12px;
	white-space: nowrap;
	color: #d9f7e6;
	background: #1d3a2c;
	border: 1px solid #3f7a5c;
}
.admin-state[data-state="off"] {
	color: #ffd9e1;
	background: #3b1d2b;
	border-color: #a6536f;
}
.admin-state[data-state="held"] {
	color: #e6dcf5;
	background: #2b2338;
	border-color: #5e5070;
}
.admin-action form > button {
	margin: 0;
	min-width: 120px;
}
.admin-bars {
	display: block;
	fill: var(--accent);
}
.admin-bars .zero {
	fill: var(--line);
}
.admin-platform {
	margin-top: 12px;
}
.admin-trend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 13px;
}
.admin-log {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}
.admin-log time {
	color: var(--muted);
	font-size: 12px;
	white-space: nowrap;
}
@media (max-width: 760px) {
	.admin-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}
	.admin-table,
	.admin-table :is(tbody, tr, th, td) {
		display: block;
	}
	.admin-table tr {
		padding: 14px 0;
		border-bottom: 1px solid var(--line);
	}
	.admin-table :is(th, td) {
		padding: 6px 0;
		border: 0;
	}
	.admin-table td[data-label] {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		text-align: right;
	}
	.admin-table td[data-label]::before {
		content: attr(data-label);
		color: var(--muted);
		font-size: 12px;
		text-align: left;
	}
	.admin-table .amount {
		white-space: normal;
	}
	.admin-action form > button {
		width: 100%;
		margin-top: 6px;
	}
}

/* Admin area shell (CSK-87): its own navigation, apart from the site. */
.admin-shell {
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr);
	min-height: 100svh;
}
.admin-side {
	position: sticky;
	top: 0;
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 100svh;
	overflow-y: auto;
	padding: 22px 14px;
	background: #120e1c;
	border-right: 1px solid var(--line);
}
.admin-brand {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0 10px;
	color: var(--muted);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}
.admin-brand img {
	height: 20px;
	width: auto;
}
.admin-nav {
	display: grid;
	gap: 2px;
}
.admin-nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 8px 10px;
	border-radius: 8px;
	color: #c7bfd8;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}
.admin-nav a:hover {
	background: #1e1830;
	color: var(--ink);
}
.admin-nav a[aria-current] {
	background: var(--lavender);
	color: #e4d5ff;
}
.admin-nav svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}
.admin-count {
	margin-left: auto;
	min-width: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--accent);
	color: var(--button-ink);
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}
.admin-side-foot {
	display: grid;
	gap: 6px;
	margin-top: auto;
	padding: 12px 10px 0;
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--muted);
}
.admin-main {
	min-width: 0;
	padding: 28px 32px 40px;
}
.admin-main > main {
	max-width: 1280px;
	padding: 0;
	border: 0;
	background: none;
	border-radius: 0;
}
.admin-main h1 {
	margin: 0 0 20px;
	font-size: 28px;
}
.admin-section {
	margin-top: 32px;
}
.admin-section > h2 {
	margin: 0 0 8px;
	font-size: 18px;
}
.admin-kpis {
	margin: 0 0 8px;
}
.admin-search {
	max-width: 520px;
	margin: 0 0 16px;
}
.admin-list .admin-hint {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font-size: 12px;
}
.admin-list time {
	white-space: nowrap;
	color: var(--muted);
	font-size: 13px;
}
.admin-list .amount {
	color: var(--ink);
}
@media (max-width: 960px) {
	.admin-shell {
		grid-template-columns: minmax(0, 1fr);
		/* Otherwise a short page stretches the header over half the screen. */
		grid-template-rows: auto 1fr;
	}
	.admin-side {
		position: sticky;
		z-index: 5;
		height: auto;
		flex-direction: row;
		align-items: center;
		gap: 12px;
		padding: 10px 16px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
		overflow: visible;
	}
	.admin-brand {
		flex-shrink: 0;
		padding: 0;
	}
	.admin-side {
		min-width: 0;
	}
	.admin-nav {
		display: flex;
		min-width: 0;
		overflow-x: auto;
		scrollbar-width: none;
		mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
	}
	.admin-nav svg {
		display: none;
	}
	.admin-side-foot {
		display: none;
	}
	.admin-main {
		padding: 20px 16px 32px;
	}
	.admin-main h1 {
		font-size: 22px;
	}
}
.admin-flash {
	margin: 0 0 20px;
}
.admin-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.admin-inline label {
	margin: 0;
	flex-basis: 100%;
	font-size: 13px;
	color: var(--muted);
}
.admin-inline input,
.admin-inline .ui-select {
	flex: 1 1 180px;
	max-width: 360px;
	width: auto;
	min-width: 0;
	min-height: 40px;
	padding: 8px 12px;
}
form .admin-inline > button,
.admin-actions form > button,
.admin-list form > button {
	margin: 0;
	min-height: 38px;
	padding: 8px 14px;
	font-size: 13px;
	white-space: nowrap;
}
.admin-inline :is(.ui-select-trigger, .ui-select > select) {
	min-height: 40px;
	padding-block: 8px;
}
.admin-inline .ui-select {
	padding: 0;
}
.admin-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}
.admin-list .admin-actions {
	margin-top: 0;
}
.admin-list td .admin-inline {
	min-width: 280px;
}
.admin-create {
	margin: 0 0 24px;
	padding: 4px 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #191523;
}
.admin-create summary {
	padding: 12px 0;
	cursor: pointer;
	font-weight: 600;
}
.admin-create form {
	padding-bottom: 18px;
}
.admin-fields {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 4px 16px;
	margin-bottom: 16px;
}
.admin-fields label {
	margin: 12px 0 6px;
	font-size: 13px;
}
.admin-thread {
	display: grid;
	gap: 12px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}
.admin-thread li {
	max-width: 720px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #191523;
}
.admin-thread li[data-author="support"] {
	margin-left: auto;
	background: #241b36;
	border-color: #4b3a66;
}
.admin-thread-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
	font-size: 13px;
}
.admin-thread p {
	margin: 0;
	white-space: pre-wrap;
}
.admin-main textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 720px;
	min-height: 110px;
	padding: 11px 13px;
	border: 1px solid #766489;
	border-radius: 7px;
	color: var(--ink);
	background: #191523;
	font: inherit;
	resize: vertical;
}
.admin-main textarea:focus-visible {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgb(193 166 255 / 0.3);
}
.admin-main form + form {
	margin-top: 10px;
}
@media (max-width: 760px) {
	.admin-list td .admin-inline {
		min-width: 0;
	}
}
/* The skin markup under its switch (CSK-136). */
.admin-markup {
	display: flex;
	flex-basis: 100%;
	flex-wrap: wrap;
	align-items: end;
	gap: 12px;
}
.admin-markup label {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}
.admin-markup input {
	display: block;
	width: 140px;
	margin-top: 6px;
}
.admin-master .admin-markup > button {
	min-height: 46px;
}
/* A table puts a good's picture above its name, so the column gets no wider (CSK-151). */
@media (min-width: 761px) {
	.admin-table .good-name {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
	.admin-table td > a {
		white-space: nowrap;
	}
}
/* Component review page (CSK-150). */
.kit {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 16px;
	align-items: start;
}
.kit-card {
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #191523;
}
.kit-card > h2 {
	margin: 0 0 12px;
	font-size: 16px;
}
.kit-card label {
	display: block;
	margin: 12px 0 6px;
}
.kit-card > label:first-of-type {
	margin-top: 0;
}
.kit-stack {
	display: grid;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
}
.kit-stack > legend {
	margin-bottom: 4px;
	font-weight: 600;
}
.kit-card .kit-row,
.kit-card .ui-switch {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	min-height: 36px;
}
.kit-card .ui-accordion {
	border-bottom: 1px solid var(--line);
}
/* Services hub, PUBG Mobile UC form and orders (CSK-84). */
.uc-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin-bottom: 32px;
}
.uc-tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
}
a.uc-tile:hover {
	border-color: var(--accent);
	background: #251d36;
}
.uc-tile[aria-disabled="true"] {
	opacity: 0.65;
}
.uc-tile h2 {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
}
.uc-tile-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 8px;
	border-radius: 10px;
	background: var(--lavender);
	color: #e6d8ff;
}
.uc-tile-price {
	color: var(--muted);
	font-size: 14px;
}
.uc-telegram,
.uc-balance {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 720px;
	margin-bottom: 32px;
	padding: 16px 20px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
}
.uc-telegram .uc-tile-icon,
.uc-balance .uc-tile-icon {
	flex: none;
	margin: 0;
}
.uc-telegram > div,
.uc-balance > div {
	flex: 1;
	min-width: 0;
}
.uc-telegram h2,
.uc-balance h2 {
	margin: 0 0 4px;
	font-size: 16px;
}
.uc-balance-amount {
	margin: 0;
	color: var(--gold, #ffd383);
	font-family: "Unbounded", "Onest", Arial, sans-serif;
	font-size: 22px;
	font-weight: 600;
}
.uc-telegram .hint {
	margin: 0;
}
.uc-telegram form {
	margin: 0;
}
.uc-badge {
	margin-top: auto;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
}
.uc-badge-on {
	background: #1f3a2d;
	color: #a8e8c6;
}
.uc-badge-soon {
	background: #2b2638;
	color: var(--muted);
}
.uc-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}
.uc-section-head h2,
.uc-step {
	margin: 0 0 12px;
	font-size: 18px;
}
.uc-step {
	margin-top: 32px;
}
.uc > .uc-step:first-child {
	margin-top: 0;
}
.uc-recent .order-row:last-child {
	border-bottom: 0;
}

.uc-id label {
	margin-top: 0;
}
.uc-id-row {
	display: flex;
	gap: 12px;
}
.uc-id-row input {
	flex: 1;
	min-width: 0;
	font-size: 18px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}
.uc-id-row button {
	flex-shrink: 0;
}
.uc-note {
	margin: 16px 0 0;
	font-size: 14px;
	color: var(--muted);
}
.uc-note-error {
	color: #ffc5cf;
}
.uc-checking::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 10px;
	vertical-align: -2px;
	border: 2px solid #645774;
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: uc-spin 0.8s linear infinite;
}
@keyframes uc-spin {
	to {
		transform: rotate(360deg);
	}
}
@media (prefers-reduced-motion: reduce) {
	.uc-checking::before {
		animation: none;
	}
}
.uc-account {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin-top: 16px;
	padding: 20px;
	border: 1px solid #645774;
	border-radius: 12px;
	background: #2b203e;
}
.uc-account-label {
	font-size: 13px;
	color: var(--muted);
}
.uc-nick {
	font-family: "Unbounded", "Onest", Arial, sans-serif;
	font-size: 22px;
	font-weight: 600;
	overflow-wrap: anywhere;
}
.uc-account .button {
	margin-top: 12px;
}
.uc-confirmed {
	margin-top: 12px;
	color: #a8e8c6;
	font-weight: 600;
}
.uc-warning {
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--gold);
}

.uc-packs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.uc-pack {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 0;
	padding: 20px 16px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
}
a.uc-pack:hover,
button.uc-pack:hover {
	border-color: var(--accent);
}
a.uc-pack[aria-current],
button.uc-pack[aria-current] {
	border-color: var(--accent);
	background: #2b203e;
	box-shadow: 0 0 0 2px rgb(193 166 255 / 0.35);
}
.uc-pack[aria-disabled="true"] {
	opacity: 0.5;
}
.uc-pack-uc {
	font-family: "Unbounded", "Onest", Arial, sans-serif;
	font-size: 26px;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}
.uc-pack-uc span {
	font-size: 14px;
	color: var(--muted);
}
.uc-pack-split,
.uc-pack-per {
	font-size: 13px;
	color: var(--muted);
}
.uc-pack-price {
	margin-top: 8px;
	font-size: 18px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.uc-best {
	margin-bottom: 8px;
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--gold);
	color: var(--button-ink);
	font-size: 12px;
	font-weight: 700;
}
.uc-pay {
	margin-top: 32px;
}
.uc-pay > h2 {
	margin-top: 0;
	font-size: 18px;
}
.uc-pay .uc-note {
	margin: 0 0 16px;
}

.uc-chips {
	margin-bottom: 20px;
}
.uc-orders .order-row:last-child {
	border-bottom: 0;
}
.uc-pager {
	margin-top: 24px;
}
span.uc-status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--lavender);
	color: #d9c4ff;
	font-size: 14px;
	font-weight: 600;
}
.uc-status-badge.uc-done {
	background: #1f3a2d;
	color: #a8e8c6;
}
.uc-status-badge.uc-delayed {
	background: #3d2f17;
	color: var(--gold);
}
.uc-status-badge.uc-refunded {
	background: #3b1d2b;
	color: #ffc5cf;
}
.uc-order-state {
	margin: 0 0 20px;
}
.uc-progress {
	display: grid;
	gap: 12px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}
.uc-progress li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--muted);
}
.uc-progress li::before {
	content: "";
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	border: 2px solid #645774;
	border-radius: 50%;
}
.uc-progress li.done {
	color: var(--ink);
}
.uc-progress li.done::before {
	border-color: #a8e8c6;
	background: #a8e8c6;
}
.uc-progress li.current {
	color: var(--ink);
}
.uc-progress li.current::before {
	border-color: var(--accent);
}
.uc-receipt {
	margin-bottom: 24px;
}
.uc-receipt > h2 {
	margin-top: 0;
	font-size: 18px;
}
.uc-receipt dl {
	margin-bottom: 0;
}
.uc-receipt {
	max-width: 640px;
}
.uc,
.uc-orders,
.uc-recent,
.uc-services {
	max-width: 720px;
}

@media (max-width: 560px) {
	.uc-tiles {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
	.uc-tile {
		padding: 16px;
	}
	.uc-tile h2 {
		font-size: 16px;
	}
	.uc-packs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.uc-id-row {
		flex-direction: column;
	}
	.uc-telegram,
	.uc-balance {
		flex-wrap: wrap;
	}
	.uc-telegram form,
	.uc-telegram .button,
	.uc-telegram button,
	.uc-balance .button {
		width: 100%;
	}
	.uc-id-row button {
		width: 100%;
	}
}

/* Steam top-up (CSK-83): the steps live inside the one form. */
.uc-id > .uc-step:first-of-type {
	margin-top: 0;
}
.uc-id .steam-custom {
	margin-top: 16px;
}
/* The refund reason sits where the progress list would, with the same gap below. */
.uc-order-state + .uc-note {
	margin: 0 0 24px;
}

/* Products by delivery method (CSK-112): a section per game, a card per delivery method. */
.goods-game > h2 {
	margin: 0 0 16px;
	font-size: 20px;
}
.goods-game .uc-tiles {
	margin-bottom: 32px;
}
/* Balanced headings hyphenate a title that would fit on two lines whole (CSK-149). */
.goods-tile h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	text-wrap: wrap;
	overflow-wrap: break-word;
}
@media (max-width: 560px) {
	.goods-tile h3 {
		font-size: 15px;
	}
}
.goods-delivery {
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--lavender);
	color: #e6d8ff;
	font-size: 12px;
	font-weight: 600;
}
.goods-delivery-code,
.goods-delivery-key {
	background: #3a2f17;
	color: var(--gold);
}
.goods-summary {
	color: var(--muted);
	font-size: 14px;
}
.goods-tile .uc-tile-price {
	margin-top: auto;
	color: var(--ink);
	font-weight: 600;
}
.goods-terms {
	margin-top: 24px;
	padding: 16px 20px;
	border: 1px solid #5a4a26;
	border-radius: 12px;
	background: #221c12;
}
.goods-terms h2 {
	margin: 0 0 8px;
	font-size: 16px;
	color: var(--gold);
}
.goods-terms ul {
	margin: 0;
	padding-left: 20px;
	font-size: 14px;
}
.goods-terms li + li {
	margin-top: 4px;
}
.goods-ack {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 20px 0 16px;
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
}
.goods-ack input[type="checkbox"] {
	width: 1.5rem;
	min-height: 1.5rem;
	margin: 0;
	padding: 0;
	flex-shrink: 0;
	accent-color: var(--accent);
}
.goods-code-box {
	max-width: 640px;
	margin-bottom: 24px;
	padding: 20px;
	border: 1px solid #645774;
	border-radius: 12px;
	background: #2b203e;
}
.goods-code-box > h2 {
	margin: 0 0 8px;
	font-size: 18px;
}
.goods-code-box .hint {
	margin: 8px 0 16px;
}
.goods-code {
	margin: 0;
}
.goods-code code {
	display: block;
	padding: 12px 16px;
	border-radius: 8px;
	background: var(--paper);
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 18px;
	letter-spacing: 0.04em;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
	user-select: all;
}
.goods-dispute summary {
	cursor: pointer;
	color: var(--accent);
}
.goods-dispute form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
}
.goods-dispute label {
	margin: 12px 0 0;
}
/* Same fields as the support form. */
.goods-dispute textarea {
	width: 100%;
	padding: 11px 13px;
	font: inherit;
	border: 1px solid #766489;
	border-radius: 7px;
	color: var(--ink);
	background: #191523;
}
.goods-dispute textarea {
	min-height: 96px;
	resize: vertical;
	caret-color: var(--accent);
}
.goods-dispute button {
	margin-top: 8px;
}

/* The supplier skin shop (CSK-136). */
.skins {
	max-width: 960px;
}
.skin-filters .search-field input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
}
.skin-filters .search-field input:focus-visible {
	box-shadow: none;
}
.skin-filter-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
	gap: 12px;
	align-items: end;
	margin-top: 12px;
}
.skin-filter-row label {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}
.skin-filter-row :where(input, .ui-select) {
	display: block;
	width: 100%;
	height: 48px;
	margin-top: 6px;
}
.skin-filter-row :is(.ui-select-trigger, .ui-select > select) {
	height: 48px;
}
.skin-filter-row > button {
	margin: 0;
	min-height: 48px;
}
.skins .category-tabs {
	margin: 20px 0 14px;
}
.skin-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.skin-card,
.skin-chosen {
	display: flex;
	flex-direction: column;
	gap: 2px;
	height: 100%;
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
	overflow-wrap: anywhere;
}
a.skin-card:hover {
	border-color: var(--accent);
}
.skin-model,
.skin-wear {
	font-size: 13px;
	color: var(--muted);
}
.skin-finish {
	font-size: 15px;
	line-height: 1.35;
}
.skin-price {
	margin-top: auto;
	padding-top: 8px;
	font-size: 18px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.skin-chosen {
	height: auto;
	margin-bottom: -12px;
}
.skins .uc-pager {
	align-items: center;
}
@media (max-width: 760px) {
	.skin-filter-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.skin-filter-row > button {
		grid-column: 1 / -1;
	}
	.skin-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.skin-card {
		padding: 12px;
	}
}

/* Pictures of goods (CSK-151): the skin or the product line's, whole, on a soft backdrop. */
.good-art {
	display: block;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 10px;
	background:
		radial-gradient(60% 70% at 50% 55%, #33274f 0%, transparent 100%), #14101e;
}
.good-art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.good-art-card {
	align-self: stretch;
	height: 128px;
	margin-bottom: 6px;
}
.good-art-thumb {
	width: 72px;
	height: 54px;
	border-radius: 8px;
}
.good-art-hero {
	max-width: 720px;
	height: 160px;
	margin-bottom: 20px;
}
.skin-card .good-art-card {
	height: 116px;
}
.skin-chosen .good-art-card {
	height: 200px;
}
.uc-receipt .good-art-hero {
	height: 140px;
	margin-bottom: 16px;
}
.order-row > .good-art {
	align-self: center;
}
.order-row > .good-art + div {
	margin-right: auto;
}
@media (max-width: 560px) {
	.good-art-card,
	.good-art-hero {
		height: 120px;
	}
	.skin-card .good-art-card {
		height: 92px;
	}
	.skin-chosen .good-art-card {
		height: 160px;
	}
}
/* The row stacks at this width (src/ui.css): the picture keeps a column of its own. */
@media (max-width: 760px) {
	.order-row:has(> .good-art) {
		display: grid;
		grid-template-columns: 72px minmax(0, 1fr);
		column-gap: 14px;
	}
	.order-row > .good-art {
		grid-row: span 2;
		align-self: start;
		margin-top: 4px;
	}
}
/* A name beside its picture in a table cell or a list. */
.good-name {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.sale-row > .good-art,
.notification > .good-art {
	margin-bottom: 12px;
}
.ledger-row > .good-art + div {
	margin-right: auto;
}
/* Privacy, terms and contacts (CSK-122): a reading column on the portal tokens. */
.legal {
	max-width: 72ch;
	font-size: 14px;
	line-height: 1.65;
	overflow-wrap: anywhere;
}
.legal .legal-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 24px;
	margin: 0 0 16px;
	color: var(--muted);
}
.legal-meta a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
}
.legal .legal-draft {
	margin: 0 0 24px;
	padding: 12px 14px;
	border: 1px solid var(--gold);
	border-radius: 7px;
	color: var(--gold);
}
.legal-missing {
	padding: 0 4px;
	border: 1px dashed var(--gold);
	border-radius: 4px;
	background: none;
	color: var(--gold);
}
.legal section + section {
	margin-top: 28px;
}
.legal h2 {
	margin: 0 0 10px;
	font-size: 17px;
}
.legal p {
	margin: 0 0 12px;
}
.legal ul {
	margin: 0 0 12px;
	padding-left: 20px;
}
.legal li + li {
	margin-top: 6px;
}
.legal code {
	font-size: 13px;
}
/* "Конфиденциальности" is one word wider than a phone at the page heading size. */
@media (max-width: 760px) {
	.page-heading:has(+ .legal) h1 {
		font-size: 22px;
		hyphens: auto;
	}
}
/* Lavka UI components (CSK-150): select, listbox, checkbox, radio, switch,
   stepper, confirm dialog, accordion. Markup comes from ui-components.ts;
   /ui.js upgrades select, stepper and confirm. Field metrics match the text
   input in ui.css: 46px tall, #766489 border, 7px radius, #191523 fill. */

/* Shared chevron of select and accordion. */
.ui-chevron {
	width: 18px;
	height: 18px;
	color: var(--muted);
	transition: transform var(--motion-fast, 0.15s) ease-out;
}

/* ---- Select ------------------------------------------------------------ */
.ui-select {
	position: relative;
	display: block;
	min-width: 0;
}
.ui-select > select,
.ui-select-trigger {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 11px 40px 11px 13px;
	border: 1px solid #766489;
	border-radius: 7px;
	background: #191523;
	color: var(--ink);
	font: inherit;
	font-weight: 400;
	text-align: left;
	appearance: none;
	cursor: pointer;
	box-shadow: none;
}
.ui-select-trigger:hover {
	background: #191523;
	border-color: #9a86b3;
}
button.ui-select-trigger:not(:disabled):hover {
	box-shadow: none;
}
.ui-select > select:focus-visible,
.ui-select-trigger:focus-visible,
.ui-select[data-open] .ui-select-trigger {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgb(193 166 255 / 0.3);
}
.ui-select-value {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ui-select-trigger[data-placeholder] .ui-select-value {
	color: var(--muted);
}
.ui-select > .ui-chevron {
	position: absolute;
	top: 50%;
	right: 13px;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	color: var(--muted);
	pointer-events: none;
	transition: transform var(--motion-fast, 0.15s) ease-out;
}
.ui-select[data-open] > .ui-chevron {
	transform: rotate(180deg);
	color: var(--accent);
}
/* Visually hidden, still in the form and reachable by validation. */
.ui-select > select.ui-native {
	position: absolute;
	inset: auto 0 0;
	width: 100%;
	height: 1px;
	min-height: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	pointer-events: none;
}
/* Placed by /ui.js against the viewport (top or bottom, left, width). */
.ui-listbox {
	position: fixed;
	z-index: 60;
	text-align: left;
	max-height: 280px;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #211a2e;
	box-shadow:
		0 18px 40px -16px #000000e6,
		0 0 0 1px #c1a6ff1f;
}
.ui-listbox[hidden] {
	display: none;
}
@media (prefers-reduced-motion: no-preference) {
	.ui-select[data-open] > .ui-listbox {
		animation: ui-pop var(--motion-fast, 0.15s) ease-out;
	}
}
@keyframes ui-pop {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
}
.ui-option {
	position: relative;
	min-height: 40px;
	padding: 9px 12px 9px 34px;
	border-radius: 6px;
	color: var(--ink);
	cursor: pointer;
	user-select: none;
	line-height: 1.35;
}
.ui-option[data-active] {
	background: #33234e;
}
.ui-option[aria-selected="true"] {
	color: var(--accent);
	font-weight: 600;
}
.ui-option[aria-selected="true"]::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	width: 12px;
	height: 7px;
	margin-top: -6px;
	border: solid currentColor;
	border-width: 0 0 2px 2px;
	transform: rotate(-45deg);
}
.ui-option[aria-disabled="true"] {
	color: var(--muted);
	opacity: 0.55;
	cursor: default;
}

/* ---- Checkbox and radio: native inputs, drawn ------------------------- */
input:is([type="checkbox"], [type="radio"]) {
	appearance: none;
	display: inline-grid;
	place-content: center;
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1.5px solid #8d7ba3;
	border-radius: 5px;
	background: #191523;
	vertical-align: middle;
	cursor: pointer;
	transition:
		background-color var(--motion-fast, 0.15s) ease-out,
		border-color var(--motion-fast, 0.15s) ease-out;
}
input[type="radio"] {
	border-radius: 50%;
}
input:is([type="checkbox"], [type="radio"]):hover {
	border-color: var(--accent);
}
input:is([type="checkbox"], [type="radio"]):focus-visible {
	outline: 3px solid #f5cc77;
	outline-offset: 2px;
	box-shadow: none;
}
input:is([type="checkbox"], [type="radio"]):checked {
	border-color: var(--accent);
	background: var(--accent);
}
input[type="checkbox"]:checked::before {
	content: "";
	width: 0.6em;
	height: 0.32em;
	margin-top: -0.12em;
	border: solid var(--button-ink);
	border-width: 0 0 2.5px 2.5px;
	transform: rotate(-45deg);
}
input[type="radio"]:checked {
	background: #191523;
}
input[type="radio"]:checked::before {
	content: "";
	width: 0.55em;
	height: 0.55em;
	border-radius: 50%;
	background: var(--accent);
}
input:is([type="checkbox"], [type="radio"]):disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
/* Larger box inside selectable cards. */
:is(.inventory-option, .goods-ack)
	> input:is([type="checkbox"], [type="radio"]) {
	width: 1.5rem;
	height: 1.5rem;
	min-height: 0;
}

/* ---- Switch ------------------------------------------------------------ */
.ui-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	min-height: 44px;
	cursor: pointer;
}
.ui-switch > input[role="switch"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	opacity: 0;
	cursor: pointer;
}
.ui-switch-track {
	position: relative;
	flex-shrink: 0;
	width: 44px;
	height: 26px;
	border: 1.5px solid #8d7ba3;
	border-radius: 999px;
	background: #191523;
	transition:
		background-color var(--motion-fast, 0.15s) ease-out,
		border-color var(--motion-fast, 0.15s) ease-out;
}
.ui-switch-track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: #b5adc7;
	transition: transform var(--motion-fast, 0.15s) ease-out;
}
.ui-switch:hover .ui-switch-track {
	border-color: var(--accent);
}
.ui-switch > input:checked + .ui-switch-track {
	border-color: var(--accent);
	background: var(--accent);
}
.ui-switch > input:checked + .ui-switch-track::after {
	transform: translateX(18px);
	background: var(--button-ink);
}
.ui-switch > input:focus-visible + .ui-switch-track {
	outline: 3px solid #f5cc77;
	outline-offset: 2px;
}
.ui-switch > input:disabled + .ui-switch-track {
	opacity: 0.5;
}

/* ---- Stepper ----------------------------------------------------------- */
.ui-stepper {
	display: flex;
	align-items: stretch;
	min-width: 0;
}
.ui-stepper > :where(input) {
	flex: 1;
	min-width: 3.5rem;
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
}
.ui-stepper[data-enhanced] > :where(input) {
	border-radius: 0;
}
.ui-stepper > .ui-step {
	flex-shrink: 0;
	width: 46px;
	min-height: 46px;
	margin: 0;
	padding: 0;
	border: 1px solid #766489;
	background: #211a2e;
	color: var(--ink);
	box-shadow: none;
}
.ui-stepper > .ui-step[hidden] {
	display: none;
}
.ui-stepper > .ui-step:first-child {
	border-right: 0;
	border-radius: 7px 0 0 7px;
}
.ui-stepper > .ui-step:last-child {
	border-left: 0;
	border-radius: 0 7px 7px 0;
}
.ui-stepper > .ui-step:disabled {
	opacity: 0.4;
}
.ui-stepper > .ui-step:not(:disabled):hover {
	background: #33234e;
	color: var(--accent);
	box-shadow: none;
}
/* No native spinners on any number field: the stepper or plain typing. */
input[type="number"] {
	appearance: textfield;
	-moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
	appearance: none;
	margin: 0;
}

/* ---- Confirm dialog ---------------------------------------------------- */
.ui-confirm {
	width: min(420px, calc(100vw - 32px));
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #191523;
	color: var(--ink);
	box-shadow: 0 30px 80px -30px #000000;
}
.ui-confirm::backdrop {
	background: rgb(8 6 14 / 0.72);
}
@media (prefers-reduced-motion: no-preference) {
	.ui-confirm[open] {
		animation: ui-pop var(--motion, 0.2s) ease-out;
	}
}
.ui-confirm-box {
	padding: 22px;
}
.ui-confirm h2 {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.3;
}
.ui-confirm p {
	margin: 0;
	color: var(--muted);
}
.ui-confirm-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 22px;
}
.ui-confirm-actions > button {
	margin: 0;
}
@media (max-width: 480px) {
	.ui-confirm-actions > button {
		flex: 1 1 100%;
	}
	.ui-confirm-actions > .ui-confirm-ok {
		order: -1;
	}
}

/* ---- Accordion --------------------------------------------------------- */
.ui-accordion > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	cursor: pointer;
	list-style: none;
}
.ui-accordion > summary::-webkit-details-marker {
	display: none;
}
.ui-accordion[open] > summary > .ui-chevron {
	transform: rotate(180deg);
	color: var(--accent);
}
.ui-accordion-body {
	padding-bottom: 12px;
}
.ui-accordion-body > :first-child {
	margin-top: 0;
}
.ui-accordion-body > :last-child {
	margin-bottom: 0;
}
