/**
 * ParsAccess storefront archives — a product category flagged `pa_storefront` (a brand store or
 * one of its game pages). Loaded ONLY on those archives (inc/enqueue.php), after
 * parsaccess-shop.css; no ordinary category, the shop or the homepage ever receives it.
 *
 * Every class is .pa-sf-*; theme classes are extended only inside .pa-sf-* scopes. The accent
 * arrives as custom properties on a .pa-sf-accent element (pa_storefront_accent_style()), so no
 * colour of a game is written here. Prices and buttons stay ParsAccess teal. Breakpoints:
 * 479 / 639 / 767 / 1023. Light and dark follow [data-theme] on <html>.
 *
 * @package parsaccess
 */

/* ---- supercell: storefront-framework ---- */

/* ============================================================ tokens */
.pa-sf-store {
	--sf-glass: linear-gradient(145deg, rgba(255, 255, 255, .80), rgba(255, 255, 255, .46));
	--sf-glass-line: rgba(255, 255, 255, .82);
	--sf-glass-shadow: 0 16px 36px rgba(35, 45, 110, .08), inset 0 1px 0 rgba(255, 255, 255, .95);
	--sf-plate: linear-gradient(135deg, rgba(255, 255, 255, .93), rgba(255, 255, 255, .76));
	--sf-row: rgba(255, 255, 255, .62);
	--sf-row-line: rgba(255, 255, 255, .8);
	--sf-soft: rgba(111, 120, 160, .10);
}
[data-theme="dark"] .pa-sf-store {
	--sf-glass: linear-gradient(145deg, rgba(44, 49, 94, .62), rgba(26, 31, 66, .42));
	--sf-glass-line: rgba(210, 230, 255, .14);
	--sf-glass-shadow: 0 18px 44px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .08);
	--sf-plate: linear-gradient(135deg, rgba(30, 35, 74, .93), rgba(22, 27, 60, .84));
	--sf-row: rgba(255, 255, 255, .05);
	--sf-row-line: rgba(210, 230, 255, .12);
	--sf-soft: rgba(210, 230, 255, .08);
}
/* the accent's text colour, re-read wherever an accent is set so a nested game keeps its own */
.pa-sf-accent { --sf-ink: var(--sf-ink-l); }
[data-theme="dark"] .pa-sf-accent { --sf-ink: var(--sf-ink-d); }

/* ============================================================ small shared pieces */
/* A middle dot beside a Persian digit reads as a zero («۱ روز» → «۱۰ روز»): separators are a rule. */
.pa-sf-sep { display: inline-block; inline-size: 1px; block-size: .95em; margin-inline: 7px; vertical-align: -.12em; background: currentColor; opacity: .35; }
.pa-sf-en { unicode-bidi: isolate; }
.pa-sf-crumb { flex-wrap: wrap; row-gap: 2px; margin-block-end: 14px; }
.pa-sf-mono { display: block; flex: none; border-radius: 26%; object-fit: cover; }
.pa-sf-img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.pa-sf-ico { flex: none; inline-size: 15px; block-size: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* the pastel tile behind a product or a game with no image of its own */
.pa-sf-tile {
	background:
		radial-gradient(62% 58% at 50% 46%, rgba(var(--sf-b-rgb), .26), transparent 72%),
		linear-gradient(145deg, #ffffff 8%, rgba(var(--sf-a-rgb), .10) 58%, rgba(var(--sf-a-rgb), .26));
}
[data-theme="dark"] .pa-sf-tile {
	background:
		radial-gradient(62% 58% at 50% 46%, rgba(var(--sf-b-rgb), .16), transparent 72%),
		linear-gradient(145deg, rgba(var(--sf-a-rgb), .14), rgba(var(--sf-a-rgb), .34));
}

/* the number buyers compare: always ParsAccess teal, tabular */
.pa-sf-price { color: var(--pa-teal-strong); font-weight: 800; font-feature-settings: 'tnum' 1; white-space: nowrap; line-height: 1.4; }
.pa-sf-price small { margin-inline-start: 3px; color: var(--pa-text-muted); font-size: .72em; font-weight: 700; }
.pa-sf-price .from { margin-inline-end: 4px; color: var(--pa-text-muted); font-size: .8em; font-weight: 600; }
[data-theme="dark"] .pa-sf-price { color: #6edddc; }

.pa-sf-chip {
	display: inline-flex; align-items: center; gap: 6px; min-block-size: 26px; padding: 0 10px; border-radius: 999px;
	border: 1px solid rgba(var(--sf-a-rgb), .24); background: rgba(var(--sf-a-rgb), .08); color: var(--sf-ink);
	font-size: 12.5px; font-weight: 800; line-height: 1; white-space: nowrap;
}
.pa-sf-chip.is-off { border-color: var(--pa-line); background: var(--sf-soft); color: var(--pa-text-muted); }

.pa-primary-button.pa-sf-buy { position: relative; z-index: 2; min-block-size: 40px; padding-inline: 18px; border-radius: 12px; font-size: 14px; text-decoration: none; }

/* ============================================================ store header */
/* phone: a compact accent band with the title plate riding its lower edge;
   ≥768: one full-width band with the plate on its start side */
.pa-sf-head { position: relative; isolation: isolate; margin: 0 0 14px; }
.pa-sf-head__scene {
	position: relative; display: block; overflow: hidden; block-size: 104px; border-radius: 20px;
	background:
		radial-gradient(55% 120% at 88% 0%, rgba(var(--sf-b-rgb), .62), transparent 62%),
		radial-gradient(45% 90% at 6% 110%, rgba(255, 255, 255, .34), transparent 70%),
		linear-gradient(135deg, var(--sf-a), rgba(var(--sf-a-rgb), .74) 56%, rgba(var(--sf-b-rgb), .82));
	box-shadow: 0 14px 30px rgba(var(--sf-a-rgb), .22), inset 0 0 0 1px rgba(255, 255, 255, .45);
}
.pa-sf-head__plate {
	position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 11px;
	margin: -30px 6px 0; padding: 9px 12px 8px; border-radius: 18px;
	border: 1px solid var(--sf-glass-line); background: var(--sf-plate);
	box-shadow: 0 12px 26px rgba(12, 18, 52, .15), inset 0 1px 0 rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}
.pa-sf-head__plate:not(:has(.pa-sf-head__mono)) { column-gap: 0; }
.pa-sf-head__plate::before {
	content: ""; position: absolute; inset-block-start: -1px; inset-inline: 20px; block-size: 3px; border-radius: 0 0 4px 4px;
	background: linear-gradient(90deg, var(--sf-b), var(--sf-a));
}
[data-theme="dark"] .pa-sf-head__plate { box-shadow: 0 14px 30px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08); }
.pa-sf-head__mono { inline-size: 44px; block-size: 44px; box-shadow: 0 8px 18px rgba(var(--sf-a-rgb), .30); }
.pa-sf-head__name { grid-column: 2; min-inline-size: 0; }
.pa-sf-head h1 { margin: 0; color: var(--pa-text); font-family: var(--font-display, inherit); font-size: 21px; font-weight: 800; line-height: 1.4; letter-spacing: -.01em; }
.pa-sf-head__intro { display: none; }
.pa-sf-facts {
	grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 11px; margin: 7px 0 0; padding: 6px 0 0; list-style: none;
	border-block-start: 1px solid var(--pa-line); color: var(--pa-text); font-size: 12.5px; font-weight: 700; line-height: 1.6;
}
.pa-sf-facts li { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.pa-sf-facts svg { flex: none; inline-size: 13px; block-size: 13px; fill: none; stroke: var(--pa-teal-strong); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }

.pa-sf-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--sf-ink); font-size: 11.5px; font-weight: 800; line-height: 1.5; text-decoration: none; }
.pa-sf-kicker::before { content: ""; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--sf-b); box-shadow: 0 0 0 3px rgba(var(--sf-b-rgb), .25); }
.pa-sf-kicker svg { inline-size: 13px; block-size: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================ game switcher (game page) */
.pa-sf-switch { display: flex; gap: 8px; margin: 0 0 18px; padding-block: 2px; overflow-x: auto; scrollbar-width: none; }
.pa-sf-switch::-webkit-scrollbar { display: none; }
.pa-sf-switch .pa-chip { flex: none; min-block-size: 42px; padding-inline: 14px; font-size: 13px; text-decoration: none; }
.pa-sf-switch .pa-chip.is-active {
	border-color: rgba(var(--sf-a-rgb), .40); background: linear-gradient(135deg, rgba(var(--sf-a-rgb), .14), rgba(var(--sf-b-rgb), .12));
	color: var(--sf-ink); font-weight: 800;
}

/* ============================================================ sections */
.pa-sf-sec { margin: 0 0 clamp(28px, 3vw, 40px); }
.pa-sf-sec > .pa-section-heading { flex-wrap: wrap; align-items: center; row-gap: 4px; margin-block-end: 14px; }
.pa-sf-sec .pa-section-heading h2 { display: inline-flex; align-items: center; gap: 10px; }
.pa-sf-sec .pa-section-heading h2::before {
	content: ""; flex: none; inline-size: 5px; block-size: 22px; border-radius: 4px;
	background: linear-gradient(180deg, var(--sf-a, var(--pa-teal)), var(--sf-b, var(--pa-indigo)));
}
.pa-sf-count { display: inline-flex; align-items: center; min-block-size: 24px; padding: 0 9px; border-radius: 999px; background: var(--sf-soft); color: var(--pa-text-muted); font-size: 12.5px; font-weight: 800; white-space: nowrap; }

/* ============================================================ how ordering works: the 4-step manual flow */
.pa-sf-flow {
	margin: 0 0 clamp(26px, 3vw, 40px); padding: 18px 20px; border-radius: 22px; border: 1px solid var(--sf-glass-line);
	background: var(--sf-glass); box-shadow: var(--sf-glass-shadow); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
}
.pa-sf-flow > h2 { margin: 0 0 14px; color: var(--pa-text); font-size: 16.5px; font-weight: 800; line-height: 1.5; }
.pa-sf-flow ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 26px; margin: 0; padding: 0; list-style: none; counter-reset: sfflow; }
.pa-sf-flow li { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 10px; min-inline-size: 0; counter-increment: sfflow; }
.pa-sf-flow li > i {
	position: relative; display: grid; place-items: center; inline-size: 42px; block-size: 42px; border-radius: 13px; color: var(--pa-teal-strong); font-style: normal;
	background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(30, 182, 173, .14)); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 8px 18px rgba(35, 45, 110, .08);
}
[data-theme="dark"] .pa-sf-flow li > i { background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(30, 182, 173, .18)); border-color: rgba(210, 230, 255, .12); box-shadow: none; color: #6edddc; }
.pa-sf-flow li > i svg { inline-size: 20px; block-size: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pa-sf-flow li > i::after {
	content: counter(sfflow, persian); position: absolute; inset-block-start: -6px; inset-inline-end: -6px; display: grid; place-items: center;
	inline-size: 19px; block-size: 19px; border-radius: 50%; background: var(--pa-teal-strong); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1;
	box-shadow: 0 0 0 2px var(--pa-surface-solid);
}
.pa-sf-flow li b { display: block; color: var(--pa-text); font-size: 14.5px; font-weight: 800; line-height: 1.6; }
.pa-sf-flow li small { display: block; margin-block-start: 2px; color: var(--pa-text-muted); font-size: 13.5px; line-height: 1.85; }
/* a small chevron toward the next step (left, in RTL) */
.pa-sf-flow li:not(:last-child)::after {
	content: ""; position: absolute; inset-block-start: 16px; inset-inline-end: -17px; inline-size: 8px; block-size: 8px;
	border: solid var(--pa-text-muted); border-width: 0 0 2px 2px; opacity: .45; transform: rotate(45deg);
}
.pa-sf-flow__foot {
	display: flex; align-items: center; gap: 6px; margin: 16px 0 0; padding: 12px 0 0; border-block-start: 1px solid var(--pa-line);
	color: var(--pa-text); font-size: 13.5px; font-weight: 700; line-height: 1.7;
}
.pa-sf-flow__foot .pa-sf-ico { color: var(--pa-teal-strong); }
/* before the steps: check Supercell's store opens the account. Its list is no step grid, so the
   grid, the counters and the chevrons above are undone on it. */
.pa-sf-flow__check { margin: 0 0 16px; padding: 12px 14px; border: 1px solid rgba(240, 176, 74, .3); border-radius: 14px; background: rgba(240, 176, 74, .13); }
.pa-sf-flow__check > h3 { display: flex; align-items: center; gap: 6px; margin: 0; color: #8a5a12; font-size: 14.5px; font-weight: 800; line-height: 1.6; }
[data-theme="dark"] .pa-sf-flow__check > h3 { color: #f0c98a; }
.pa-sf-flow .pa-sf-flow__check ol { display: block; margin: 6px 0 0; padding: 0; padding-inline-start: 22px; list-style: persian; counter-reset: list-item; }
.pa-sf-flow .pa-sf-flow__check li { display: list-item; color: var(--pa-text); font-size: 13.5px; line-height: 1.85; counter-increment: none; }
.pa-sf-flow .pa-sf-flow__check li::after { content: none; }

/* ============================================================ season timeline (start, end, progress, days left) */
.pa-sf-tl { display: grid; gap: 4px; min-inline-size: 0; }
.pa-sf-tl__bar { position: relative; display: block; block-size: 6px; overflow: hidden; border-radius: 99px; background: rgba(var(--sf-a-rgb), .14); }
.pa-sf-tl__bar > i { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: var(--p, 50%); border-radius: inherit; background: linear-gradient(270deg, var(--sf-a), var(--sf-b)); }
.pa-sf-tl__meta { display: flex; align-items: center; min-inline-size: 0; color: var(--pa-text-muted); font-size: 12.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.pa-sf-tl__meta em, .pa-sf-tl__left { font-style: normal; color: var(--sf-ink); font-weight: 800; }
.pa-sf-tl.is-urgent .pa-sf-tl__meta em, .pa-sf-tl.is-urgent .pa-sf-tl__left { color: #b4540f; }
[data-theme="dark"] .pa-sf-tl.is-urgent .pa-sf-tl__meta em, [data-theme="dark"] .pa-sf-tl.is-urgent .pa-sf-tl__left { color: #ffb070; }
.pa-sf-tl.is-ended .pa-sf-tl__bar > i { background: var(--pa-text-muted); opacity: .35; }
.pa-sf-tl.is-ended .pa-sf-tl__meta em, .pa-sf-tl.is-ended .pa-sf-tl__left { color: var(--pa-text-muted); }
.pa-sf-tl__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--pa-text-muted); font-size: 13px; font-weight: 700; line-height: 1.6; }
.pa-sf-tl__row small { font-size: 12.5px; font-weight: 600; }
.pa-sf-tl__left { display: inline-flex; align-items: center; gap: 5px; }
.pa-sf-tl__left svg { inline-size: 15px; block-size: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pa-sf-tl.is-full { gap: 7px; }
.pa-sf-tl.is-full .pa-sf-tl__bar { block-size: 8px; }

/* ============================================================ product grid: the shop's card, accented */
.pa-sf-store .pa-shop-grid .pa-pc-cat { color: var(--sf-ink); border-color: rgba(var(--sf-a-rgb), .2); background: rgba(var(--sf-a-rgb), .07); font-size: 11.5px; }
.pa-sf-store .pa-shop-grid .pa-pc-tags .pa-status { font-size: 12px; }
.pa-sf-store .pa-shop-grid .pa-pc-media { border-color: rgba(var(--sf-a-rgb), .14); }

/* ============================================================ FAQ */
.pa-sf-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px 16px; }
.pa-sf-faq details {
	overflow: hidden; border: 1px solid var(--sf-glass-line); border-radius: 15px; background: var(--sf-glass);
	box-shadow: var(--sf-glass-shadow); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
	transition: border-color .24s var(--pa-ease);
}
.pa-sf-faq details[open] { border-color: rgba(30, 182, 173, .42); }
.pa-sf-faq summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: 52px; padding: 12px 15px;
	color: var(--pa-text); font-size: 14.5px; font-weight: 800; line-height: 1.7; cursor: pointer; list-style: none;
}
.pa-sf-faq summary::-webkit-details-marker { display: none; }
.pa-sf-faq summary svg {
	flex: none; inline-size: 28px; block-size: 28px; padding: 6px; border: 1px solid var(--sf-glass-line); border-radius: 9px;
	fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--pa-ease);
}
.pa-sf-faq details[open] summary svg { transform: rotate(180deg); color: var(--pa-teal-strong); }
.pa-sf-faq p { margin: 0; padding: 0 15px 15px; color: var(--pa-text-muted); font-size: 14.5px; line-height: 1.95; }

/* ============================================================ ≥ 768 */
@media (min-width: 768px) {
	.pa-sf-head { display: grid; align-items: center; justify-items: start; min-block-size: 248px; margin-block-end: 18px; }
	.pa-sf-head__scene { position: absolute; inset: 0; block-size: auto; border-radius: 28px; }
	.pa-sf-head__plate { inline-size: min(520px, 52%); margin: 22px; padding: 18px 20px 16px; column-gap: 14px; border-radius: 24px; }
	.pa-sf-head__plate::before { inset-inline: 24px; }
	.pa-sf-head__mono { inline-size: 58px; block-size: 58px; }
	.pa-sf-head h1 { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.35; }
	.pa-sf-kicker { font-size: 12.5px; }
	.pa-sf-head__intro { display: block; grid-column: 1 / -1; margin: 10px 0 0; color: var(--pa-text-muted); font-size: 15px; line-height: 1.9; }
	.pa-sf-facts { gap: 4px 16px; margin-block-start: 12px; padding-block-start: 11px; font-size: 13.5px; }
	.pa-sf-facts svg { inline-size: 16px; block-size: 16px; }
}

/* ============================================================ ≥ 1024 */
@media (min-width: 1024px) {
	.pa-sf-head { min-block-size: 272px; }
}

/* ============================================================ ≤ 1023 */
@media (max-width: 1023px) {
	.pa-sf-flow ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pa-sf-flow li:nth-child(2)::after { display: none; }
}

/* ============================================================ ≤ 767: phone */
@media (max-width: 767px) {
	.pa-sf-sep { margin-inline: 5px; }
	.pa-sf-crumb { margin-block-end: 10px; font-size: 13.5px; }
	.pa-primary-button.pa-sf-buy { min-block-size: 38px; }
	/* the game chips wrap: every game in sight, no sideways scroll hiding the last ones */
	.pa-sf-switch { flex-wrap: wrap; margin-block-end: 14px; overflow: visible; }
	.pa-sf-switch .pa-chip { flex: 1 1 auto; justify-content: center; min-block-size: 40px; font-size: 12.5px; }

	.pa-sf-sec { margin-block-end: 26px; }
	.pa-sf-sec > .pa-section-heading { margin-block-end: 10px; }
	.pa-sf-sec .pa-section-heading h2 { font-size: 18px; }
	.pa-sf-sec .pa-section-heading h2::before { block-size: 18px; }

	.pa-sf-flow { padding: 14px; border-radius: 20px; }
	.pa-sf-flow > h2 { font-size: 16px; margin-block-end: 12px; }
	.pa-sf-flow ol { grid-template-columns: 1fr; gap: 12px; }
	.pa-sf-flow li { grid-template-columns: 38px minmax(0, 1fr); }
	.pa-sf-flow li > i { inline-size: 38px; block-size: 38px; border-radius: 12px; }
	.pa-sf-flow li b { font-size: 14px; }
	.pa-sf-flow li small { font-size: 13px; }
	.pa-sf-flow li:not(:last-child)::after, .pa-sf-flow li:nth-child(2)::after {
		display: block; inset-block: 42px -10px; inset-inline-end: auto; inset-inline-start: 18px; inline-size: 2px; block-size: auto;
		border: 0; border-radius: 2px; background: rgba(30, 182, 173, .28); opacity: 1; transform: none;
	}
	.pa-sf-flow__foot { align-items: flex-start; font-size: 13px; }
	.pa-sf-flow .pa-sf-flow__check li { font-size: 13px; }

	.pa-sf-faq { grid-template-columns: 1fr; gap: 10px; }
	.pa-sf-faq summary, .pa-sf-faq p { font-size: 14px; }

	.pa-sf-store .pa-shop-grid .pa-pc-tags .pa-status { font-size: 11.5px; }
}

/* ============================================================ ≤ 479: small phones */
@media (max-width: 479px) {
	.pa-sf-facts { gap: 2px 9px; }
	.pa-primary-button.pa-sf-buy { padding-inline: 16px; }
}

/* ============================================================ motion */
@media (prefers-reduced-motion: reduce) {
	.pa-sf-faq details, .pa-sf-faq summary svg { transition: none; }
}

/* ---- supercell: pdp ---- */
/* Latin values (tags, masked emails, codes): a Latin mono face, because IRANSansX draws Latin digits as Persian. */
.pa-sf-code { display: inline-block; direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95em; font-weight: 700; letter-spacing: .02em; }

/* season block above the purchase card */
.pa-sf-season { position: relative; display: grid; gap: 6px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid rgba(var(--sf-a-rgb), .22); border-radius: 14px; background: rgba(var(--sf-a-rgb), .06); }
.pa-sf-season__badge { justify-self: start; padding: 2px 10px; border-radius: 99px; background: rgba(var(--sf-a-rgb), .14); color: var(--sf-ink); font-size: 11.5px; font-weight: 800; line-height: 1.7; }
.pa-sf-season.is-ended .pa-sf-season__badge { background: rgba(105, 113, 147, .14); color: var(--pa-muted); }
.pa-sf-season .pa-sf-tl__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--pa-muted); font-size: 11.5px; }
.pa-sf-season .pa-sf-tl__left { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }
.pa-sf-season .pa-sf-tl__left svg { inline-size: 15px; block-size: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* the tag: «#» before a left-to-right mono value, a quiet tick while it is typed right, and its help */
.pa-sf-pdp .pa-bi-field[data-pa-bi-live] .pa-bi-control { direction: ltr; }
.pa-sf-pdp .pa-bi-field[data-pa-bi-live] .pa-bi-control__i { display: none; }
.pa-sf-pdp .pa-bi-field[data-pa-bi-live] .pa-bi-control .pa-bi-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pa-bi-prefix { flex: none; color: var(--sf-ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; font-weight: 800; }
.pa-bi-field.is-ok .pa-bi-control { border-color: color-mix(in srgb, var(--pa-teal-strong) 60%, transparent); }
.pa-bi-badge { margin-inline-start: 8px; padding: 1px 8px; border-radius: 99px; background: rgba(var(--sf-a-rgb), .1); color: var(--sf-ink); font-size: 12px; font-weight: 700; }
.pa-bi-how { margin-block-start: 4px; font-size: 13.5px; line-height: 1.8; color: var(--pa-muted); }
.pa-bi-how summary { display: inline; color: var(--sf-ink); font-weight: 800; cursor: pointer; }
.pa-bi-how p, .pa-bi-how ol { margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(var(--sf-a-rgb), .06); }
.pa-bi-how ol { padding-inline-start: 28px; list-style: persian; }

/* below the hero: how the order is done, then the game's questions */
.pa-sf-pdpmore { display: grid; gap: 22px; margin-block: 0 clamp(18px, 2.4vw, 28px); padding: clamp(16px, 2.4vw, 26px); }
.pa-sf-pdpmore .pa-sf-sec { margin: 0; }

/* order page: the store's panel head, one card per line */
.pa-sf-acc { display: grid; gap: 12px; }
.pa-sf-acc__line { display: grid; gap: 12px; padding: 14px; border: 1px solid rgba(var(--sf-a-rgb), .2); border-radius: 16px; background: rgba(var(--sf-a-rgb), .04); }
.pa-sf-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.pa-sf-steps li { display: grid; justify-items: center; gap: 4px; min-inline-size: 0; color: var(--pa-muted); font-size: 11.5px; font-weight: 700; text-align: center; }
.pa-sf-steps li > i { display: grid; place-items: center; inline-size: 28px; block-size: 28px; border: 1.5px solid var(--pa-line); border-radius: 50%; font-style: normal; font-size: 12px; }
.pa-sf-steps li.is-done > i { border-color: var(--pa-teal-strong); background: color-mix(in srgb, var(--pa-teal-strong) 14%, transparent); color: var(--pa-teal-strong); }
.pa-sf-steps li.is-now { color: var(--sf-ink); }
.pa-sf-steps li.is-now > i { border-color: var(--sf-a); box-shadow: 0 0 0 3px rgba(var(--sf-a-rgb), .16); color: var(--sf-ink); }
.pa-sf-acc__card h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--pa-text); }
.pa-sf-acc__line.is-act { border-color: rgba(var(--sf-a-rgb), .45); box-shadow: 0 0 0 3px rgba(var(--sf-a-rgb), .08); }
.pa-sf-acc__line.is-done .pa-sf-acc__card h3 { color: var(--pa-teal-strong); }
.pa-sf-acc__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 10px; }
.pa-sf-chip2 { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--pa-line); border-radius: 99px; font-size: 11.5px; color: var(--pa-muted); }
.pa-sf-chip2 .pa-sf-code { color: var(--pa-text); }
/* the account page sets its form inputs to `font: inherit` at four classes deep; the Latin face must outrank it */
.pa-sf-acc input[dir="ltr"], .pa-acc2 .pa-acc2-extra .pa-sf-acc .pa-mf-acc__form input[dir="ltr"] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 479px) {
	.pa-sf-steps li span { font-size: 10px; line-height: 1.4; }
	.pa-sf-steps li > i { inline-size: 24px; block-size: 24px; }
}

/* ---- supercell: pdp-2 ---- */
/* the flow alone in the card under the hero: the card's own padding is its margin */
.pa-sf-pdpmore .pa-sf-flow { margin: 0; }

/* a season not on sale: its price, then a quiet button that says why instead of a form */
.pa-sf-closed .pdp3-cta .pdp3-btn[disabled] {
	border: 1px solid rgba(var(--sf-a-rgb), .28); background: rgba(var(--sf-a-rgb), .10); color: var(--sf-ink);
	opacity: 1; filter: none; transform: none; box-shadow: none;
}
.pa-sf-closed.is-ended .pdp3-cta .pdp3-btn[disabled] { border-color: var(--pa-line); background: rgba(105, 113, 147, .10); color: var(--pa-text-muted); }

/* the term's own wide scene (2400×800, its subject on the left): a taller band on a phone, cropped
   to that left part; from 768 the full-width header, the title plate on the right */
.pa-sf-head.has-scene .pa-sf-head__scene { margin: 0; background: rgba(var(--sf-a-rgb), .18); }
.pa-sf-head__scene > .pa-sf-img { position: absolute; inset: 0; object-position: 0% 50%; }

@media (max-width: 767px) {
	.pa-sf-head.has-scene .pa-sf-head__scene { block-size: 148px; }
}
@media (min-width: 768px) {
	.pa-sf-head.has-scene { min-block-size: clamp(268px, 24vw, 380px); }
}

/* ---- supercell: e2e ---- */
/* the PDP's email and tag boxes in the Latin face: IRANSansX draws «buyer.e2e@» as «buyer.e۲e@» */
.pa-sf-pdp .pa-bi-input.is-ltr { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
/* a link in an order note (the code hand-back names the order page): Latin, left to right */
.pa-acc2-updates .description a { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
/* the tag alphabet a refused tag lists, isolated left-to-right by buyer-input.js */
.pa-bi-err .pa-bi-latin { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; white-space: nowrap; }

/* cart: a storefront line's account rows stack label over value, so a masked email never runs under
   the quantity stepper; a value still wider than its column wraps inside it */
.cart2-table tr.pa-sf-line .ci-info .variation { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
.cart2-table tr.pa-sf-line .ci-info .variation dd + dt { margin-block-start: 4px; }
.cart2-table tr.pa-sf-line .ci-info .pa-sf-code { max-inline-size: 100%; overflow-wrap: anywhere; }
/* …and where the cart column is too narrow to give them a line (beside the summary, 1024–1279), the line takes
   the phone layout: the product and its rows across, the total and the stepper beneath */
.cart2-table:has(tr.pa-sf-line) { container-type: inline-size; }
@container (max-width: 440px) {
	.cart2-table tbody tr.pa-sf-line { grid-template-columns: minmax(0, 1fr) auto 40px; grid-template-rows: auto auto auto; }
	.cart2-table tr.pa-sf-line td.col-product { grid-column: 1 / 4; grid-row: 1; }
	.cart2-table tr.pa-sf-line td.col-total { grid-column: 2 / 4; grid-row: 2; }
	.cart2-table tr.pa-sf-line td.col-qty { grid-column: 2; grid-row: 3; }
	.cart2-table tr.pa-sf-line td.col-remove { grid-column: 3; grid-row: 3; }
}

/* ---- supercell: banner slider ---- */
/* the header's slides, stacked in the scene and cross-faded; the plate stays put over them */
.pa-sf-slides__track, .pa-sf-slide { position: absolute; inset: 0; margin: 0; }
.pa-sf-slide { opacity: 0; transition: opacity .7s var(--pa-ease, ease); }
.pa-sf-slide.is-on { opacity: 1; }
.pa-sf-slide > .pa-sf-img { object-position: 0% 50%; }
/* previous, the dots, next: in the sky's corner on a phone; from 768 the bottom corner across from the plate */
.pa-sf-slides__nav {
	position: absolute; z-index: 1; inset-block-start: 6px; inset-inline-start: 6px; display: flex; align-items: center; padding: 2px;
	border: 1px solid var(--sf-glass-line); border-radius: 999px; background: var(--sf-plate);
	box-shadow: 0 8px 20px rgba(12, 18, 52, .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.pa-sf-slides__nav[hidden] { display: none; }
.pa-sf-slides__btn, .pa-sf-slides__dot { display: grid; place-items: center; flex: none; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--pa-text); cursor: pointer; }
.pa-sf-slides__btn { inline-size: 28px; block-size: 28px; }
.pa-sf-slides__btn svg { inline-size: 16px; block-size: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pa-sf-slides__dot { inline-size: 24px; block-size: 28px; }
.pa-sf-slides__dot::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 999px; background: var(--pa-text-muted); transition: inline-size .3s var(--pa-ease, ease), background-color .3s; }
.pa-sf-slides__dot[aria-current="true"] { inline-size: 28px; }
.pa-sf-slides__dot[aria-current="true"]::before { inline-size: 18px; background: var(--sf-a); }
.pa-sf-slides__btn:focus-visible, .pa-sf-slides__dot:focus-visible { outline: 2px solid var(--sf-a); outline-offset: -2px; }
[data-theme="dark"] .pa-sf-slides__dot::before { background: rgba(255, 255, 255, .34); }
[data-theme="dark"] .pa-sf-slides__dot[aria-current="true"]::before { background: var(--sf-ink-d); }
@media (hover: hover) {
	.pa-sf-slides__btn:hover { background: rgba(var(--sf-a-rgb), .12); }
}
@media (min-width: 768px) {
	.pa-sf-slides__nav { inset-block: auto 16px; inset-inline: auto 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.pa-sf-slide, .pa-sf-slides__dot::before { transition: none; }
}

/* ---- supercell: design A (brand + game pages) ---- */
/* a brand's banner alone (head.php): no plate over it, its title for screen readers only; from 768
   the 2400×800 slides whole, on a phone the taller crop on their left */
@media (max-width: 767px) {
	.pa-sf-head.is-bare .pa-sf-head__scene { block-size: 168px; }
}
@media (min-width: 768px) {
	.pa-sf-head.is-bare { display: block; min-block-size: 0; aspect-ratio: 3 / 1; }
}

/* game tiles (tiles.php): equal, the game's card behind (its header scene without one), a dark band with the icon, name and contents */
.pa-sf-games__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pa-sf-games__list > li { flex: 0 1 calc((100% - 4 * 14px) / 5); min-inline-size: 0; }
.pa-sf-games.is-more .pa-sf-games__list > li { flex-basis: calc((100% - 3 * 14px) / 4); }
.pa-sf-games__dots { display: none; }
.pa-sf-game {
	position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
	aspect-ratio: 4 / 5; border-radius: 22px; color: #fff; text-decoration: none;
	border: 1px solid rgba(255, 255, 255, .75);
	background: linear-gradient(150deg, var(--sf-a), rgba(var(--sf-a-rgb), .72));
	box-shadow: 0 16px 32px rgba(var(--sf-a-rgb), .24);
	transition: box-shadow .24s var(--pa-ease), transform .24s var(--pa-ease);
}
.pa-sf-games.is-more .pa-sf-game { aspect-ratio: 16 / 11; }
[data-theme="dark"] .pa-sf-game { border-color: rgba(210, 230, 255, .16); box-shadow: 0 16px 32px rgba(0, 0, 0, .4); }
.pa-sf-game:hover { box-shadow: 0 22px 42px rgba(var(--sf-a-rgb), .32); }
.pa-sf-game:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 3px; }
.pa-sf-game__scene { position: absolute; inset: 0; z-index: -1; object-position: 18% 50%; }
.pa-sf-game__scene.is-card { object-position: 50% 30%; }
.pa-sf-game__band {
	position: relative; display: grid; justify-items: center; gap: 2px; padding: 46px 12px 14px; text-align: center;
	background: linear-gradient(180deg, rgba(10, 14, 40, 0), rgba(10, 14, 40, .78) 34px, rgba(10, 14, 40, .9));
}
.pa-sf-game__icon {
	position: absolute; inset-block-start: -34px; inset-inline: 0; display: block; inline-size: 76px; block-size: 76px; margin-inline: auto;
	border: 2px solid rgba(255, 255, 255, .9); border-radius: 24%; object-fit: cover; box-shadow: 0 10px 24px rgba(0, 0, 0, .38);
}
.pa-sf-game__band b { font-size: 18px; font-weight: 800; line-height: 1.45; }
.pa-sf-game__band small {
	display: -webkit-box; overflow: hidden; color: rgba(255, 255, 255, .88); font-size: 13px; font-weight: 600; line-height: 1.6;
	-webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.pa-sf-games.is-more .pa-sf-game__icon { inset-block-start: -28px; inline-size: 64px; block-size: 64px; }
.pa-sf-games.is-more .pa-sf-game__band { padding-block-start: 40px; }

/* a brand's passes (card.php), the days left on the picture: five a row like the game tiles above,
   fewer centred, so a wide screen never shows an empty column at the side */
.pa-sf-pcards { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; padding: 0; list-style: none; container-type: inline-size; }
.pa-sf-pcards > .pa-sf-pcard { flex: 0 1 calc((100% - 4 * 14px) / 5); }
/* a fifth of a row under 1040px is too narrow for a card's price and button */
@container (max-width: 1040px) {
	.pa-sf-pcards > .pa-sf-pcard { flex-basis: calc((100% - 2 * 14px) / 3); }
}
.pa-sf-pcard {
	position: relative; display: flex; flex-direction: column; overflow: hidden; min-inline-size: 0; border-radius: 20px;
	border: 1px solid var(--sf-row-line); background: var(--sf-glass); box-shadow: var(--sf-glass-shadow);
	transition: border-color .18s var(--pa-ease), box-shadow .18s var(--pa-ease);
}
.pa-sf-pcard:hover { border-color: rgba(30, 182, 173, .45); box-shadow: var(--pa-shadow-hover); }
.pa-sf-pcard:has(.pa-sf-pcard__link:focus-visible) { box-shadow: 0 0 0 3px var(--accent-ring); }
.pa-sf-pcard__art { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.pa-sf-pcard__art > .pa-sf-img { position: absolute; inset: 0; }
.pa-sf-pcard__pill {
	position: absolute; inset-block-start: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 5px;
	padding: 4px 10px; border-radius: 99px; background: rgba(10, 14, 40, .74); color: #fff; font-size: 12.5px; font-weight: 800; line-height: 1.5;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pa-sf-pcard__pill svg { inline-size: 14px; block-size: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pa-sf-pcard__pill.is-urgent { background: rgba(180, 84, 15, .92); }
.pa-sf-pcard__pill.is-soon { background: rgba(var(--sf-a-rgb), .92); }
.pa-sf-pcard__body { display: grid; gap: 8px; padding: 12px 14px 14px; }
.pa-sf-pcard__game { color: var(--sf-ink); font-size: 12.5px; font-weight: 800; }
.pa-sf-pcard h3 { margin: -6px 0 0; color: var(--pa-text); font-size: 16.5px; font-weight: 800; line-height: 1.5; }
/* one link over the whole card; «خرید» sits above it */
.pa-sf-pcard__link { color: inherit; text-decoration: none; }
.pa-sf-pcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pa-sf-pcard__link:focus-visible { outline: none; }
.pa-sf-pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-start: 2px; }
.pa-sf-pcard__foot .pa-sf-price { font-size: 15.5px; }

/* a game's passes (season.php): one wide card each, with a countdown */
.pa-sf-passes { display: grid; gap: 14px; }
.pa-sf-pass {
	display: grid; grid-template-columns: 280px minmax(0, 1fr) auto; align-items: stretch; gap: 22px; padding: 12px; border-radius: 24px;
	border: 1px solid var(--sf-row-line); background: var(--sf-glass); box-shadow: var(--sf-glass-shadow);
}
.pa-sf-pass__art { position: relative; overflow: hidden; min-block-size: 190px; border-radius: 18px; }
.pa-sf-pass__art > .pa-sf-img { position: absolute; inset: 0; }
.pa-sf-pass__main { display: grid; align-content: center; gap: 12px; min-inline-size: 0; padding-block: 6px; }
.pa-sf-pass__main h3 { margin: 0; color: var(--pa-text); font-size: 22px; font-weight: 800; line-height: 1.4; }
.pa-sf-pass__main h3 a { color: inherit; text-decoration: none; }
.pa-sf-pass__main h3 small { margin-inline-start: 8px; color: var(--sf-ink); font-size: 13px; font-weight: 800; }
.pa-sf-pass .pa-sf-tl { max-inline-size: 520px; }
.pa-sf-pass__buy { display: grid; align-content: center; justify-items: end; gap: 10px; padding: 0 14px; border-inline-start: 1px solid var(--pa-line); }
.pa-sf-pass__buy .pa-sf-price { font-size: 24px; }
.pa-sf-pass__buy .pa-sf-buy { min-inline-size: 150px; min-block-size: 46px; font-size: 15px; }
/* the countdown: fixed boxes and tabular digits, so a ticking number never moves anything */
.pa-sf-cd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pa-sf-cd > span {
	display: grid; justify-items: center; min-inline-size: 70px; padding: 8px 10px 6px; border-radius: 14px;
	border: 1px solid rgba(var(--sf-a-rgb), .22); background: rgba(var(--sf-a-rgb), .08);
}
.pa-sf-cd b { color: var(--sf-ink); font-size: 26px; font-weight: 900; line-height: 1.1; font-feature-settings: 'tnum' 1; }
.pa-sf-cd small { color: var(--pa-text-muted); font-size: 12.5px; font-weight: 700; }
.pa-sf-cd__label { margin-inline-start: 6px; color: var(--pa-text); font-size: 14px; font-style: normal; font-weight: 800; }

/* a product's options (options.php): a card each, the whole card «انتخاب». Four a row, but never narrower
   than the 272px a name needs beside «انتخاب», so a small laptop (1024-1199px) gets three */
.pa-sf-opts {
	--sf-opts-gap: 16px;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(max(272px, (100% - 3 * var(--sf-opts-gap)) / 4), 1fr)); gap: var(--sf-opts-gap); margin: 0; padding: 0; list-style: none;
}
.pa-sf-opt {
	position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
	border: 1px solid var(--sf-row-line); background: var(--sf-glass); box-shadow: var(--sf-glass-shadow);
	transition: border-color .18s var(--pa-ease), box-shadow .18s var(--pa-ease);
}
.pa-sf-opt:hover { border-color: rgba(30, 182, 173, .45); box-shadow: var(--pa-shadow-hover); }
.pa-sf-opt:has(.pa-sf-buy:focus-visible) { box-shadow: 0 0 0 3px var(--accent-ring); }
.pa-sf-opt__art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.pa-sf-opt__art > .pa-sf-img { position: absolute; inset: 0; }
.pa-sf-opt__body {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "amt buy" "price buy" "tl tl";
	align-items: center; column-gap: 12px; row-gap: 2px; padding: 14px 16px 16px;
}
.pa-sf-opt__amt { grid-area: amt; margin: 0; color: var(--pa-text); font-size: 21px; font-weight: 900; line-height: 1.35; font-feature-settings: 'tnum' 1; }
.pa-sf-opt__amt small { margin-inline-start: 4px; color: var(--sf-ink); font-size: 14px; font-weight: 800; }
.pa-sf-opt .pa-sf-price { grid-area: price; font-size: 16px; }
.pa-sf-opt .pa-sf-tl { grid-area: tl; margin-block-start: 8px; }
.pa-sf-opt .pa-sf-buy, .pa-sf-opt .pa-sf-chip { grid-area: buy; }
.pa-sf-opt .pa-sf-buy { position: static; min-inline-size: 104px; min-block-size: 44px; font-size: 14.5px; }
.pa-sf-opt .pa-sf-buy::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pa-sf-opt .pa-sf-buy:focus-visible { outline: none; }
/* WooCommerce's own price markup: the unit quieter, a sale's old price struck through beside it */
.pa-sf-price .woocommerce-Price-currencySymbol { color: var(--pa-text-muted); font-size: .72em; font-weight: 700; }
.pa-sf-price del { margin-inline-end: 6px; color: var(--pa-text-muted); font-size: .8em; font-weight: 600; }
.pa-sf-price ins { text-decoration: none; }

/* the page ends on its last section, not on a margin before the footer */
.pa-sf-store .container > :last-child { margin-block-end: 0; }

@media (min-width: 768px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
	.pa-sf-game:hover { transform: translateY(-3px); }
}

/* the picture starts close and draws back when the tile is pointed at or focused, or turns to the middle on a phone */
@media (prefers-reduced-motion: no-preference) {
	.pa-sf-game__scene { transform: scale(1.14); transition: transform .8s var(--pa-ease); }
	.pa-sf-game:focus-visible .pa-sf-game__scene { transform: scale(1); }
}
/* a touch screen keeps :hover on a tapped tile, which would stay drawn back after the carousel turns it aside */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.pa-sf-game:hover .pa-sf-game__scene { transform: scale(1); }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
	.pa-sf-game.is-active .pa-sf-game__scene { transform: scale(1); }
}

@media (max-width: 1023px) {
	.pa-sf-games__list { gap: 12px; }
	.pa-sf-games__list > li, .pa-sf-games.is-more .pa-sf-games__list > li { flex-basis: calc((100% - 2 * 12px) / 3); }
	.pa-sf-pass { grid-template-columns: 200px minmax(0, 1fr); }
	.pa-sf-pass__buy {
		grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center;
		padding: 10px 6px 4px; border-inline-start: 0; border-block-start: 1px solid var(--pa-line);
	}
	.pa-sf-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	/* tiles not turning (the «other games» strip, a store of one game): two a row */
	.pa-sf-games__list { gap: 10px; }
	.pa-sf-games__list > li, .pa-sf-games.is-more .pa-sf-games__list > li { flex-basis: calc((100% - 10px) / 2); }
	.pa-sf-game { border-radius: 18px; }
	.pa-sf-games.is-more .pa-sf-game { aspect-ratio: 1 / 1; }
	.pa-sf-game__icon, .pa-sf-games.is-more .pa-sf-game__icon { inset-block-start: -26px; inline-size: 54px; block-size: 54px; }
	.pa-sf-game__band, .pa-sf-games.is-more .pa-sf-game__band { padding: 32px 6px 10px; }
	.pa-sf-game__band b { font-size: 14px; }
	.pa-sf-game__band small { font-size: 12.5px; line-height: 1.5; }

	/* the brand's tiles: the homepage hero's phone carousel (main.css, max-width 639px: the .hero5-stage
	   mask, .hero5-card size, offset and scale), sized for a game tile; change both. Left-to-right like
	   the hero so its transforms and dots line up */
	.pa-sf-games[data-hero-slider] { position: relative; direction: ltr; block-size: 336px; overflow: hidden; }
	.pa-sf-games[data-hero-slider] .pa-sf-games__list {
		position: absolute; inset: 0 0 40px; display: block; perspective: 1100px;
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 17%, #000 83%, transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0%, #000 17%, #000 83%, transparent 100%);
		-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	}
	.pa-sf-games[data-hero-slider] .pa-sf-game {
		position: absolute; z-index: 0; left: 50%; top: 50%; inline-size: 215px; block-size: 288px; aspect-ratio: auto; direction: rtl; border-radius: 23px;
		opacity: 0; visibility: hidden; pointer-events: none; filter: blur(3px) saturate(.8); transform: translate(-50%, -50%) scale(.63);
		transition: transform .68s cubic-bezier(.2, .8, .2, 1), opacity .52s ease, filter .52s ease, visibility .52s;
	}
	.pa-sf-games[data-hero-slider] .pa-sf-game.is-active { z-index: 5; opacity: 1; visibility: visible; pointer-events: auto; filter: none; transform: translate(-50%, -50%) scale(1); }
	.pa-sf-games[data-hero-slider] .pa-sf-game.is-prev,
	.pa-sf-games[data-hero-slider] .pa-sf-game.is-next { z-index: 2; opacity: .86; visibility: visible; pointer-events: auto; filter: none; }
	.pa-sf-games[data-hero-slider] .pa-sf-game.is-prev { transform: translate(calc(-50% - 185px), -50%) scale(.69); }
	.pa-sf-games[data-hero-slider] .pa-sf-game.is-next { transform: translate(calc(-50% + 185px), -50%) scale(.69); }
	.pa-sf-games[data-hero-slider] .pa-sf-game__icon { inset-block-start: -32px; inline-size: 66px; block-size: 66px; }
	.pa-sf-games[data-hero-slider] .pa-sf-game__band { padding: 40px 10px 14px; }
	.pa-sf-games[data-hero-slider] .pa-sf-game__band b { font-size: 17px; }
	.pa-sf-games[data-hero-slider] .pa-sf-game__band small { font-size: 12.5px; }
	.pa-sf-games[data-hero-slider] .pa-sf-games__dots { display: flex; inset-block-end: 8px; }

	.pa-sf-pcards { gap: 10px; }
	.pa-sf-pcards > .pa-sf-pcard { flex-basis: 100%; }
	.pa-sf-pcard { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
	.pa-sf-pcard__art { aspect-ratio: auto; min-block-size: 124px; }
	.pa-sf-pcard__body { gap: 6px; padding: 10px 12px 12px; }
	.pa-sf-pcard__pill { inset-block: auto 7px; inset-inline-start: 7px; padding: 3px 8px; font-size: 11.5px; }

	.pa-sf-pass { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 10px; }
	.pa-sf-pass__art { min-block-size: 0; aspect-ratio: 16 / 9; }
	.pa-sf-pass__main { padding: 0 4px; }
	.pa-sf-pass__main h3 { font-size: 19px; }
	/* the three boxes and their words on one line, as on the mock-up: the words wrap before the boxes do */
	.pa-sf-cd { flex-wrap: nowrap; gap: 6px; }
	.pa-sf-cd > span { flex: none; min-inline-size: 56px; padding: 6px 4px 4px; }
	.pa-sf-cd b { font-size: 22px; }
	.pa-sf-cd__label { flex: 0 1 auto; margin-inline-start: 4px; font-size: 13px; line-height: 1.6; }
	.pa-sf-pass__buy { grid-column: auto; }
	.pa-sf-pass__buy .pa-sf-price { font-size: 21px; }

	.pa-sf-opts { --sf-opts-gap: 10px; }
	.pa-sf-opt__art { aspect-ratio: 4 / 3; }
	.pa-sf-opt__body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "amt" "price" "tl" "buy"; row-gap: 4px; padding: 10px 12px 12px; }
	.pa-sf-opt__amt { font-size: 18px; }
	.pa-sf-opt .pa-sf-price { font-size: 14.5px; }
	.pa-sf-opt .pa-sf-buy { inline-size: 100%; min-inline-size: 0; min-block-size: 42px; margin-block-start: 6px; }
	.pa-sf-opt .pa-sf-chip { justify-self: start; margin-block-start: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	.pa-sf-game, .pa-sf-pcard, .pa-sf-opt { transition: none; }
}
