/* =========================================================================
 * SkinsGateway website (marketing, legal, help, developer pages).
 *
 * The look of a payment provider: white ground, ink type, hairlines and real
 * product screens. Orange is the mark, the 0% and the underline of a link.
 * No glass, glow, gradient text, drifting decoration or scroll effects.
 * The home page and the shared building blocks (.hp-*, .screen, .numlist,
 * .statelist, .faq, .closing) are at the end of this file.
 * ========================================================================= */

:root { --hair: var(--line); --r-lg: 12px; }

/* ---------- Generic ----------------------------------------------------- */

.section { position: relative; }
.layout--default > main { overflow-x: clip; }
.section--flush-top { padding-top: 0; border-top: 0; }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin-bottom: clamp(24px, 3.6vw, 40px); }
.section-head .lead { margin-top: 2px; }
.h-md { font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; letter-spacing: -0.01em; }
.eyebrow { font: 500 15px/1.3 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--faint); }
.dim { color: var(--faint); }
.display { font-size: clamp(36px, 5.6vw, 64px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.03; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.check-list li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--fg); stroke-width: 2.4; }
.check-list li strong { color: var(--fg); }
.anchor-offset, [id] { scroll-margin-top: 88px; }

/* ---------- Surfaces ---------------------------------------------------- */

.glass { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; }
.feature { display: flex; flex-direction: column; gap: 8px; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.feature h3 { font-size: 18px; }
.feature p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.feature__icon { display: none; }
.feature--row { flex-direction: row; align-items: flex-start; gap: 16px; }
.grid--3x { display: grid; gap: 8px clamp(24px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .grid--3x { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid--3x { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Footer ------------------------------------------------------ */

.site-footer__col a { width: fit-content; }
.site-footer__bottom { border-top-color: var(--line); color: var(--muted); }

/* ---------- Page hero (inner pages) ------------------------------------ */

.page-hero { padding-block: clamp(36px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.page-hero__inner { max-width: 760px; }
.page-hero .lead { margin-top: 18px; }
.hero__actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.layout--default .hero__actions .btn--ghost { border-color: transparent; background: none; padding-inline: 2px; min-height: 0; border-radius: 0; text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.layout--default .hero__actions .btn--ghost:hover { text-decoration-color: var(--fg); }

/* Translations: long compound words (de "Nutzungsbedingungen", ru, pl) must wrap on phones
   instead of pushing past the edge. Hyphenates where the browser has a dictionary for <html lang>. */
.page-hero h1, .hero h1, .hp-hero h1, .section-head h2, .legal h2, .help-hero h1, .help-article h1, .closing h2 {
    overflow-wrap: break-word;
    hyphens: auto;
}
.legal__notice { margin-top: 16px; }

/* ---------- Live market row (real items, official Steam images) -------- */
/* partials/market-rail.php: one list the visitor can swipe; nothing moves by itself. */

.hero__intro .hero__copy { max-width: 760px; }
.market-band { margin-top: clamp(28px, 4vw, 48px); }
.market-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.live-pill { font: 600 15px/1.3 var(--f-body); color: var(--fg); }
.live-pill .dot { display: none; }
.market-band__rails { display: flex; flex-direction: column; gap: 12px; }
.rail { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail--second, .rail__group--copy, .rail__group[aria-hidden="true"] { display: none; }
.rail__track { display: flex; width: max-content; padding-inline: max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))); }
.rail__group { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.tile { position: relative; flex: none; width: 200px; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--fg); scroll-snap-align: start; text-decoration: none; }
.tile__art { position: relative; display: block; aspect-ratio: 16 / 10; margin: 6px 0 8px; }
.tile__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tile__chip { position: absolute; z-index: 1; top: 10px; left: 10px; font: 500 11px/1 var(--f-body); color: var(--muted); padding: 4px 7px; border-radius: 6px; background: #FFFFFF; border: 1px solid var(--line); }
.tile__name { font: 600 14px/1.35 var(--f-body); color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.tile__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; }
.tile__wear { font: 13px/1.3 var(--f-body); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tile__price { font: 600 16px/1 var(--f-body); color: var(--fg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.market-checks { padding-top: 8px; }
@media (max-width: 480px) { .fee-table .table td, .fee-table .table th { padding: 12px 10px; } }

/* ---------- Statement & facts ------------------------------------------ */

.statement { font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 5.4vw, 72px); letter-spacing: -0.01em; line-height: 1.02; max-width: 17ch; text-wrap: balance; }
.statement-wrap { display: flex; flex-direction: column; gap: clamp(36px, 6vw, 64px); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 0 0; min-width: 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact__value { font-family: var(--f-display); font-weight: 700; font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.01em; line-height: 1; }
.fact__label { color: var(--muted); font-size: 15px; max-width: 26ch; }
@media (max-width: 620px) {
    .fact { padding-right: 10px; }
    .fact + .fact { padding-left: 12px; }
    .fact__label { font-size: 13px; }
}

.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
.facts--2 .fact, .facts--2 .fact + .fact { padding: 22px 16px 22px 0; border-left: 0; border-top: 1px solid var(--line); }
.facts--2 .fact:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.facts--2 .fact__value { font-size: clamp(40px, 5vw, 64px); }
.split-feature--top { align-items: start; }
.about-prose { font-size: 18px; color: var(--muted); }

/* ---------- Numbered steps ---------------------------------------------- */

ol.steps { list-style: none; padding: 0; margin: 0; }
.steps--flow { display: grid; gap: 0 clamp(20px, 3vw, 36px); grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.steps--flow .steps__item { display: grid; align-content: start; grid-template-columns: 2.2em minmax(0, 1fr); gap: 4px 0; padding: 16px 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.steps--flow .steps__item::before { content: counter(step); grid-row: span 2; font: 600 19px/1.3 var(--f-body); letter-spacing: 0; color: var(--faint); }
.steps--flow .steps__item h3 { font-size: 18px; letter-spacing: -0.01em; }
.steps--flow .steps__item p { grid-column: 2; color: var(--muted); font-size: 16px; }
.steps--4 { --n: 4; }
@media (min-width: 860px) {
    .steps--flow:not(.steps--list) { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 0; }
    .steps--flow:not(.steps--list) .steps__item { grid-template-columns: minmax(0, 1fr); padding: 16px 0 0; border-bottom: 0; border-top: 1px solid var(--line); }
    .steps--flow:not(.steps--list) .steps__item::before { grid-row: auto; }
    .steps--flow:not(.steps--list) .steps__item p { grid-column: 1; }
}

/* ---------- Two-column feature sections -------------------------------- */

.split-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-feature__copy { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) { .split-feature { grid-template-columns: minmax(0, 1fr); } .split-feature > .split-feature__art--first { order: 2; } }

.flow-card { position: relative; padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 22px; }
.flow-card__rail { position: absolute; left: calc(clamp(18px, 3vw, 28px) + 34px); top: 56px; bottom: 56px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); opacity: .45; }
.flow-card__rail::after { content: ""; position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #E9FFF7; box-shadow: 0 0 12px 3px rgba(255, 128, 0, .8); animation: rail 3.6s var(--ease) infinite; }
@keyframes rail { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.flow-line { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 16px; background: rgba(11, 11, 14, .55); border: 1px solid var(--line); }
.flow-line__icon { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); flex: none; border: 1px solid transparent; background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, linear-gradient(140deg, rgba(255, 128, 0, .6), rgba(163, 53, 238, .4)) border-box; }
.flow-line__icon svg { width: 19px; height: 19px; }
.flow-line__icon--accent-2 { color: var(--accent-2); }
.flow-line__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.flow-line__text strong { font-size: 15px; }
.flow-line__text span { font-size: 13px; color: var(--muted); }
.flow-line__amount { font-family: var(--f-mono); font-size: 14px; white-space: nowrap; }

/* ---------- Trust ------------------------------------------------------- */

.trust { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* ---------- Closing band ------------------------------------------------ */

.cta-band { position: relative; overflow: hidden; isolation: isolate; border: 1px solid transparent; border-radius: var(--r-lg); background: radial-gradient(120% 140% at 100% 0%, rgba(163, 53, 238, .14), transparent 55%), radial-gradient(100% 120% at 0% 100%, rgba(255, 128, 0, .10), transparent 55%), linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad-edge) border-box; }
.cta-xl { padding: clamp(36px, 7vw, 88px) clamp(24px, 6vw, 72px); border-radius: 28px; align-items: flex-end; }
.cta-xl__copy { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.cta-xl h2 { font-size: clamp(36px, 5.6vw, 72px); font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.cta-xl--stack { flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(32px, 5vw, 56px); align-self: stretch; }
.cta-xl--stack h2 { font-size: clamp(34px, 4.4vw, 54px); }

/* ---------- Pricing ----------------------------------------------------- */

.price-card { position: relative; overflow: hidden; isolation: isolate; padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.price-card__value { font-family: var(--f-display); font-weight: 700; font-size: clamp(72px, 11vw, 132px); letter-spacing: -0.01em; line-height: .95; }
.price-card__value small { display: block; font-size: 18px; color: var(--muted); letter-spacing: -0.01em; font-weight: 600; margin-top: 12px; -webkit-text-fill-color: var(--muted); }
.example-card { border-radius: var(--r-lg); border-color: var(--hair); background: var(--ink); }
.calc { display: flex; flex-direction: column; gap: 0; }
.calc__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.calc__row:last-child { border-bottom: 0; }
.calc__row span:first-child { color: var(--muted); }
.calc__row span:last-child { font-family: var(--f-mono); white-space: nowrap; }
.calc__row--total span:first-child { color: var(--fg); font-weight: 600; }
.calc__row--total span:last-child { color: var(--accent); font-size: 20px; }
.fee-table { border-radius: var(--r-lg); border-color: var(--hair); background: var(--ink); }
.fee-table .table td, .fee-table .table th { padding: 16px 20px; }
.fee-table .table td:first-child { color: var(--fg); font-weight: 600; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details.disclosure { border-radius: 16px; border-color: var(--hair); background: var(--panel); transition: border-color .25s, background-color .25s; }
.faq details.disclosure[open] { border-color: rgba(255, 128, 0, .3); background: linear-gradient(180deg, rgba(255, 128, 0, .04), transparent 60%), var(--panel); }
.faq details.disclosure > summary { padding: 18px 20px; font-family: var(--f-display); font-size: 16px; letter-spacing: -0.01em; }
.faq details.disclosure > summary::after { color: var(--accent); }
.faq details.disclosure > div { padding: 0 20px 20px; color: var(--muted); }

/* ---------- Legal ------------------------------------------------------- */

.legal { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.legal__toc { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; max-height: calc(100vh - 110px); overflow-y: auto; padding-bottom: 12px; }
.legal__toc h2 { font-family: var(--f-body); font-weight: 600; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.legal__toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { display: flex; gap: 8px; color: var(--muted); padding: 5px 8px; border-radius: 8px; line-height: 1.4; }
.legal__toc a::before { content: counter(toc) "."; color: var(--faint); font-family: var(--f-mono); font-size: 12px; min-width: 1.6em; padding-top: 1px; }
.legal__toc a:hover { color: var(--fg); background: var(--panel-2); }
.page-hero--legal h1 { font-size: clamp(34px, 5vw, 56px); }
.legal__toc { padding: 16px; border: 1px solid var(--hair); border-radius: 18px; background: var(--ink); }
.legal__toc a:hover { color: var(--fg); background: rgba(255, 128, 0, .06); }
.legal__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.prose h2 { scroll-margin-top: 92px; }
.prose ol ol, .prose ul ul { margin-top: .4em; }
.prose .table-wrap { margin-top: 1em; }
.prose .table th, .prose .table td { border: 0; border-bottom: 1px solid var(--line); }
.prose dl { margin: 0; }
@media (max-width: 900px) {
    .legal { grid-template-columns: minmax(0, 1fr); }
    .legal__toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: var(--panel); }
}

/* ---------- Contact ----------------------------------------------------- */

.contact-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 30px); border-radius: var(--r-lg); border-color: var(--hair); background: var(--ink); }
.contact-card .card__title { font-size: 20px; }
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.press-grid { align-items: start; }
.contact-card a.mono { font-size: 15px; overflow-wrap: anywhere; }
.contact-card .cluster { margin-top: auto; padding-top: 6px; }

/* ---------- Status ------------------------------------------------------ */

.status-hero { display: flex; align-items: center; gap: 16px; padding: 22px 24px; }
.status-hero strong { font-family: var(--f-display); font-size: 20px; letter-spacing: -0.01em; }
.status-hero .dot { width: 12px; height: 12px; flex: none; }
.status-hero .dot--ok { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent), 0 0 18px var(--accent); animation: beat 2.4s ease-in-out infinite; }
.status-list { display: flex; flex-direction: column; }
.status-card { border-radius: var(--r-lg); border-color: var(--hair); }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.status-row:last-child { border-bottom: 0; }
.status-row__name { display: flex; flex-direction: column; gap: 2px; }
.status-row__name strong { font-size: 15px; }
.status-row__name span { font-size: 13px; color: var(--muted); }
.dot--warn { background: var(--warning); }
.card--warning.status-hero { background: var(--glass-bg) padding-box, linear-gradient(140deg, rgba(255, 200, 97, .6), rgba(255, 255, 255, .06)) border-box; }

/* ---------- Press ------------------------------------------------------- */

.press-card { border-radius: var(--r-lg); border-color: var(--hair); background: var(--ink); }
.press-quote { font-family: var(--f-display); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; letter-spacing: -0.01em; color: var(--muted); }

/* ---------- Brand kit --------------------------------------------------- */

.brand-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.brand-hero__lock { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 18px); font-family: var(--f-display); font-weight: 400; letter-spacing: .01em; font-size: clamp(30px, 4.6vw, 58px); line-height: 1; }
.brand-hero__lock svg { width: 1.25em; height: 1.45em; flex: none; }
.brand-hero h1 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; color: var(--muted); letter-spacing: -0.01em; }
@media (max-width: 860px) { .brand-hero { grid-template-columns: minmax(0, 1fr); } }
.brand-nav { position: sticky; top: 68px; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: 1px solid var(--line); }
.brand-nav .tabs { border-bottom: 0; }
.brand-section { scroll-margin-top: 130px; }

.logo-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.logo-tile__art--ink { background: #0B0B0E; color: #F3F3F6; }
.logo-tile__art--paper { background: var(--paper); }
.logo-tile__art--accent-2 { background: var(--accent-2-deep); }
.logo-tile__art--accent { background: var(--brand); }
.logo-tile__art { min-height: 0; }
.logo-tile__art img { width: 78%; height: auto; max-width: 78%; max-height: none; }
.logo-tile__art--sq img { width: auto; height: 62%; max-height: 62%; }
.logo-tile__name { display: flex; flex-direction: column; min-width: 0; }
.logo-tile__name strong { font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.logo-tile__name span { font-size: 13px; color: var(--muted); }

.space-demo { display: flex; justify-content: center; padding: 12px 0; }
.space-box { position: relative; padding: 24px; outline: 1.5px dashed var(--accent-2); border-radius: 4px; }
.space-box .logo { font-size: 32px; gap: 8px; }
.space-box .logo svg { width: 42px; height: 42px; }
.space-tag { position: absolute; font-family: var(--f-mono); font-size: 11px; color: var(--accent-2); }
.space-tag--t { top: 3px; left: 50%; transform: translateX(-50%); }
.space-tag--l { left: 5px; top: 50%; transform: translateY(-50%); }
.sizes { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; padding: 8px 0; }
.sizes figure { margin: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sizes figcaption { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.sizes .logo { font-size: 18px; gap: 6px; }
.sizes .logo svg { width: 24px; height: 24px; }

.dont-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.dont-grid figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.dont-grid__art { height: 130px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--ink); }
.dont-grid__art .logo { font-size: 26px; gap: 7px; pointer-events: none; }
.dont-grid__art .logo svg { width: 34px; height: 34px; }
.dont-grid figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.dont-grid figcaption b { color: var(--danger); font-family: var(--f-body); font-weight: 600; font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.dont--stretch .logo { transform: scaleX(1.45); }
.dont--colors .logo { filter: hue-rotate(150deg); }
.dont--rotate .logo { transform: rotate(-14deg); }
.dont--glow .logo { filter: drop-shadow(0 0 10px #FF4DD8) drop-shadow(4px 4px 0 #FFC861); }
.dont-grid__art.dont--busy { background: repeating-linear-gradient(45deg, #FF8000 0 10px, #A335EE 10px 20px, #F4F6FA 20px 30px); }
.dont--type .logo { font-family: Georgia, serif; letter-spacing: 0; font-weight: 400; font-style: italic; }

.swatches { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.swatches--sup { grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr)); }
button.swatch { appearance: none; text-align: left; color: var(--fg); padding: 0; cursor: pointer; display: flex; flex-direction: column; font: inherit; width: 100%; transition: border-color .15s; }
button.swatch:hover { border-color: var(--line-2); }
.swatch__chip--lg { height: 130px; }
.swatches--sup .swatch__chip { height: 84px; }
.swatch__info code { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12.5px; word-break: normal; }
.ratio { display: flex; height: 56px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.ratio div { display: flex; align-items: flex-end; padding: 8px 10px; font-family: var(--f-mono); font-size: 11px; min-width: 0; overflow: hidden; white-space: nowrap; }
.pair { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; padding: 6px 12px; border-radius: 8px; font-family: var(--f-display); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }

.spec { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.spec:last-child { border-bottom: 0; }
.spec__label { display: flex; flex-direction: column; gap: 4px; }
.spec__label strong { font-family: var(--f-display); font-weight: 600; }
.spec__label span { font-size: 13px; color: var(--muted); }
.spec__display { font-family: 'Oxanium', var(--f-body); font-weight: 800; font-size: clamp(38px, 6vw, 72px); line-height: 1; letter-spacing: -0.01em; }
.spec__body { font-size: 17px; line-height: 1.65; max-width: 62ch; }
.type-scale { display: flex; flex-direction: column; gap: 14px; }
.type-scale div { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.type-scale code { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12px; width: 150px; flex: none; word-break: normal; }
.ts-display { font: 600 40px/1 var(--f-display); letter-spacing: -0.03em; }
.ts-h1 { font: 600 28px/1.1 var(--f-display); letter-spacing: -0.02em; }
.ts-h2 { font: 600 22px/1.2 var(--f-display); }
.ts-body { font: 400 16px/1.6 var(--f-body); }
@media (max-width: 640px) { .spec { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

.words-use li { color: var(--accent); }
.words-avoid li { color: #FF9AA6; text-decoration: line-through; text-decoration-color: color-mix(in srgb, #FF9AA6 60%, transparent); }
.word-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.word-list li { font-size: 14px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--panel-2); }

.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--muted); font: 600 14px/1 var(--f-body); padding: 10px 16px; border-radius: var(--r-pill); cursor: pointer; min-height: 40px; }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--ink); }
.ban-groups { display: flex; flex-direction: column; gap: 44px; }
.ban-group { display: flex; flex-direction: column; gap: 16px; }
.ban-group h3 small { font-family: var(--f-mono); font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.bans { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.ban { margin: 0; display: flex; flex-direction: column; gap: 10px; max-width: 100%; min-width: 0; }
.ban canvas { display: block; align-self: flex-start; max-width: 100%; width: auto; height: auto; max-height: min(420px, 60vh); border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.ban figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.ban figcaption b { font-family: var(--f-mono); font-size: 12px; color: var(--fg); font-weight: 500; }
.no-js-note { font-size: 13px; color: var(--muted); }

/* ---------- Developer docs --------------------------------------------- */

.docs { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.docs__nav { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; display: flex; flex-direction: column; gap: 16px; font-size: 14px; padding-bottom: 16px; scrollbar-width: thin; }
.docs__nav h2 { font-family: var(--f-body); font-weight: 600; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--faint); font-weight: 500; margin: 0 0 4px; padding-left: 8px; }
.docs__nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1px; }
.docs__nav a { display: flex; align-items: center; gap: 8px; color: var(--muted); padding: 5px 8px; border-radius: 8px; line-height: 1.35; }
.docs__nav a:hover { color: var(--fg); background: var(--panel-2); }
.docs__main { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.docs__section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 92px; min-width: 0; }
.docs__section > h2 { padding-top: 8px; }
.docs__section p, .docs__section li { color: var(--muted); }
.docs__section p.muted { color: var(--muted); }
.docs__section ul, .docs__section ol { display: flex; flex-direction: column; gap: 6px; }
.endpoint { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 92px; min-width: 0; }
.endpoint__sig { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 15px; }
.endpoint__sig code { background: none; border: 0; padding: 0; font-size: 15px; word-break: break-all; }
.method { display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; min-width: 48px; }
.method--get { color: var(--info); background: color-mix(in srgb, var(--info) 12%, transparent); border: 1px solid color-mix(in srgb, var(--info) 40%, var(--line)); }
.method--post { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); }
.docs__nav .method { min-width: 38px; font-size: 9.5px; padding: 2px 5px; }
.params { font-size: 14px; }
.params td:first-child { white-space: nowrap; }
.params code { word-break: normal; }
.params .req { font-family: var(--f-mono); font-size: 10.5px; color: var(--warning); margin-left: 6px; }
.params .opt { font-family: var(--f-mono); font-size: 10.5px; color: var(--faint); margin-left: 6px; }
.params .type { font-family: var(--f-mono); font-size: 12px; color: var(--accent-2); }
.code-pair { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.code-label { font-family: var(--f-body); font-weight: 600; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: 6px; display: block; }
.docs .code { max-height: 560px; overflow: auto; }
.docs__nav-groups { display: flex; flex-direction: column; gap: 18px; }
a.feature { color: var(--fg); transition: border-color .15s; }
a.feature:hover { color: var(--fg); border-color: var(--line-2); }
@media (max-width: 960px) {
    .docs { grid-template-columns: minmax(0, 1fr); }
    .docs__nav { position: static; max-height: 360px; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: var(--panel); }
    .docs__nav-groups { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
}


address { font-style: normal; }
.prose > h2:first-child { margin-top: 0; }
.stack > .section-head { margin-bottom: 0; }
.logo-grid { align-items: start; }
.code code { background: none; border: 0; padding: 0; font-size: inherit; word-break: normal; white-space: inherit; color: inherit; }
.docs code, .prose code, .check-list code { word-break: normal; overflow-wrap: anywhere; }

/* ---------- Shared pieces, restated for the light ground --------------- */

.statement { font-weight: 600; letter-spacing: -0.03em; }
.fee-table { background: #FFFFFF; }
.fee-table .mono { font-family: var(--f-body); font-weight: 600; }
.faq { gap: 0; }
.faq details.disclosure { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.faq details.disclosure:last-child { border-bottom: 1px solid var(--line); }
.faq details.disclosure[open] { background: none; border-color: var(--line); }
.faq details.disclosure > summary { padding: 18px 40px 18px 0; font: 600 18px/1.35 var(--f-body); letter-spacing: 0; }
.faq details.disclosure > summary::after { color: var(--faint); }
.faq details.disclosure > div { padding: 0; }
.cta-band, .cta-xl { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: clamp(32px, 5vw, 56px) 0 0; }
.hp-block--first { border-top: 0; }

/* =========================================================================
 * Home (views/site/home.php). Product screens are real pictures of the
 * checkout (assets/screens), items are official Steam images (assets/skins).
 * ========================================================================= */

.screen { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #F4F4F6; box-shadow: 0 1px 2px rgba(11, 11, 14, .05), 0 18px 40px -24px rgba(11, 11, 14, .25); }
.screen img { display: block; width: 100%; height: auto; }
.screen--phone { border-radius: 22px; max-width: 280px; }
.screen--phone img { aspect-ratio: 390 / 660; object-fit: cover; object-position: top; }
.screens { display: flex; gap: clamp(12px, 2vw, 22px); justify-content: center; align-items: flex-start; }
.screens .screen--phone:nth-child(2) { margin-top: 36px; }

@media (max-width: 719px) {
    .hp-points { flex-direction: column; gap: 4px; }
    .hp-points li + li::before { content: none; }
    .hp-hero .screen img { aspect-ratio: 390 / 560; object-fit: cover; object-position: top; }
    .screens--wide-only { display: none; }
}
.hp-hero { padding-block: clamp(36px, 6vw, 84px) clamp(40px, 6vw, 80px); }
.hp-hero__grid { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: center; }
.hp-hero h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.03; letter-spacing: -0.03em; }
.hp-hero h1 span { display: block; color: #8A8A96; }
.hp-lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); max-width: 52ch; }
.hp-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hp-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--muted); font-size: 15px; }
.hp-points li + li::before { content: "\00B7"; margin: 0 10px; color: var(--line-2); }

.hp-zero { background: var(--panel); border-block: 1px solid var(--line); padding-block: clamp(36px, 6vw, 72px); }
.hp-zero__grid { display: grid; gap: 20px clamp(24px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: center; }
.hp-zero__figure { font: 700 clamp(88px, 15vw, 176px)/.86 var(--f-body); letter-spacing: -0.05em; color: var(--fg); }
.hp-zero__figure span { color: var(--brand); }
.hp-zero p { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 56ch; }
.hp-zero .textlink { display: inline-block; margin-top: 18px; }

.hp-row { padding-block: clamp(44px, 7vw, 96px); }
.hp-row + .hp-row { border-top: 1px solid var(--line); }
.hp-row__grid { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: center; }
.hp-row__copy p { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 50ch; }
.hp-row__copy .textlink { display: inline-block; margin-top: 22px; }
.hp-ticks { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 50ch; }
.hp-ticks li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hp-defs { margin: 22px 0 0; border-top: 1px solid var(--line); max-width: 56ch; }
.hp-defs div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.hp-defs dt { font-weight: 600; }
.hp-defs dd { margin: 4px 0 0; color: var(--muted); }

.skinwall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.skintile { margin: 0; min-width: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.skintile img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; padding: 14px; }
.skintile--dota2 img { object-fit: cover; padding: 0; }
.skintile figcaption { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 9px 12px 11px; background: #FFFFFF; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--fg); }
.skintile figcaption span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skintile small { color: var(--faint); font-size: 13px; font-weight: 500; }

.hp-block { padding-block: clamp(44px, 7vw, 88px); border-top: 1px solid var(--line); }
.hp-h { max-width: 22ch; margin-bottom: 28px; }
.hp-p { color: var(--muted); font-size: 18px; max-width: 54ch; margin: -14px 0 26px; }
.hp-list { margin: 0; display: grid; gap: 0 clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.hp-list div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.hp-list dt { font-weight: 600; font-size: 18px; }
.hp-list dd { margin: 6px 0 0; color: var(--muted); max-width: 52ch; }

.hp-games { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.hp-game { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hp-game__tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp-game .textlink { align-self: flex-start; }

.hp-two { display: grid; gap: 48px clamp(32px, 6vw, 80px); grid-template-columns: minmax(0, 1fr); }
.hp-links { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 28px; border-top: 1px solid var(--line); }
.hp-links li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.hp-links a { display: block; padding: 9px 0; color: var(--fg); font-weight: 500; }
.hp-links a:hover { color: var(--muted); }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 26px/1 var(--f-body); color: var(--faint); }
.faq p { padding: 0 0 20px; color: var(--muted); font-size: 17px; max-width: 64ch; }

.closing { padding-block: clamp(48px, 8vw, 104px); border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -0.03em; max-width: 18ch; }
.closing p { margin: 14px 0 28px; font-size: 19px; color: var(--muted); max-width: 46ch; }

.hp-more { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.numlist { list-style: none; counter-reset: n; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 54ch; }
.numlist li { counter-increment: n; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); padding: 16px 0; border-bottom: 1px solid var(--line); }
.numlist li::before { content: counter(n); font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--faint); }
.numlist h3 { font-size: 18px; }
.hp-row__copy .numlist p { margin-top: 4px; font-size: 16px; }
.statelist { border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; }
.statelist > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 18px; padding: 14px 18px; align-items: start; }
.statelist > div + div { border-top: 1px solid var(--line); }
.statelist p { color: var(--muted); font-size: 15px; }
.screen--tall img { aspect-ratio: 390 / 780; }

@media (min-width: 720px) {
    .hp-zero__grid { grid-template-columns: auto minmax(0, 1fr); }
    .hp-list, .hp-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .statelist > div { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); }
    .hp-links { columns: 2; }
    .hp-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .skinwall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .hp-hero__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
    .hp-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hp-row__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-row--flip .hp-row__copy { order: 2; }
}

/* =========================================================================
 * Motion. Movement shows the product or answers an action: the screen
 * players (js/site.js), the rise of a product screen as it scrolls in, and
 * short transitions on things the visitor touches. Everything here is off
 * for visitors who ask for reduced motion.
 * ========================================================================= */

.player .screen { position: relative; }
.player__frame { display: block; opacity: 0; transition: opacity .55s ease; }
.player__frame + .player__frame { position: absolute; inset: 0; }
.player__frame.is-on { opacity: 1; }
.player__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.player:not(.is-ready) .player__frame:first-child { opacity: 1; }

.player__tabs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.player__tab { position: relative; display: block; width: 100%; padding: 10px 0 0; border: 0; border-top: 2px solid var(--line); background: none; font: 500 14px/1.3 var(--f-body); color: var(--faint); text-align: left; cursor: pointer; transition: color .2s; }
.player__tab:hover, .player__tab.is-on { color: var(--fg); }
.player__tab::before, .numlist--steps li::after { content: ""; position: absolute; left: 0; height: 2px; width: 0; background: var(--brand); }
.player__tab::before { top: -2px; }
.player__tab.is-on::before, .numlist--steps li.is-on::after { width: 100%; }
.player.is-playing .player__tab.is-on::before, .player.is-playing .numlist--steps li.is-on::after { animation: player-fill 3.2s linear both; }
@keyframes player-fill { from { width: 0; } to { width: 100%; } }

.numlist--steps li { position: relative; cursor: pointer; }
.numlist--steps li::after { bottom: -1px; }
.numlist--steps li h3, .numlist--steps li p, .numlist--steps li::before { transition: color .25s; }
.player.is-ready .numlist--steps li:not(.is-on) h3, .player.is-ready .numlist--steps li:not(.is-on) p { color: var(--faint); }
.player.is-ready .numlist--steps li.is-on::before { color: var(--fg); }
.numlist--steps button { all: unset; cursor: pointer; }
.numlist--steps button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.swatches { margin: 22px 0 0; display: flex; gap: 12px; }
.swatches button { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; transition: box-shadow .2s, transform .2s; }
.swatches button:hover { transform: scale(1.08); }
.swatches button.is-on { box-shadow: 0 0 0 2px var(--fg); }
.swatch--orange { background: #FF8000; }
.swatch--blue { background: #2F9BFF; }
.swatch--dark { background: #0B0B0E; }

.btn--primary:active { transform: scale(.98); }
.textlink, .layout--default main :is(p, dd, td, figcaption, .prose li) > a:not(.btn):not([class]) { transition: text-decoration-color .2s, text-underline-offset .2s; }
.textlink:hover { text-underline-offset: 6px; }
.gh { transition: box-shadow .25s; }
.gh.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(11, 11, 14, .35); }
.readbar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.skintile img, .tile__art img { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.skintile:hover img, .tile:hover .tile__art img { transform: scale(1.06); }
.tile, .ind-card, .int-card, .hp-links a { transition: border-color .2s, color .2s, background-color .2s; }
.tile:hover, .ind-card:hover, .int-card:hover { border-color: var(--fg); }
.faq summary::after { transition: transform .25s; }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); }

@media (prefers-reduced-motion: no-preference) {
    /* A question opens and closes smoothly where the browser can animate to its real height. */
    .faq details { interpolate-size: allow-keywords; }
    .faq details::details-content { height: 0; overflow: clip; transition: height .3s ease, content-visibility .3s allow-discrete; }
    .faq details[open]::details-content { height: auto; }

    /* The phone menu slides in. */
    .gh__menu { transition: opacity .2s ease, transform .2s ease, display .2s allow-discrete; }
    .gh__menu[hidden] { opacity: 0; transform: translateY(-8px); }
    @starting-style { .gh__menu:not([hidden]) { opacity: 0; transform: translateY(-8px); } }

    /* The first screen rises once with the page; product screens, the skin wall, the
       payment states and the live item row rise once as they scroll in (js/site.js). */
    .hp-hero .screen { animation: screen-in .7s cubic-bezier(.2, .7, .2, 1) both; }
    @keyframes screen-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
    .rise { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
    .rise.is-in { opacity: 1; transform: none; }

    /* Numbered steps: the line runs from step to step once the list is on screen. */
    .sweep .steps__item::after { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .45s linear calc(var(--k, 0) * .45s); }
    .sweep .steps__item::before { transition: color .2s linear calc(var(--k, 0) * .45s + .2s); }
    .sweep.is-in .steps__item::after { transform: scaleX(1); }
    .sweep.is-in .steps__item::before { color: var(--fg); }
    .sweep .steps__item:nth-child(2) { --k: 1; }
    .sweep .steps__item:nth-child(3) { --k: 2; }
    .sweep .steps__item:nth-child(4) { --k: 3; }
    .sweep .steps__item:nth-child(5) { --k: 4; }
    .sweep .steps__item:nth-child(6) { --k: 5; }
    .sweep .steps__item:nth-child(n + 7) { --k: 6; }

    /* Word swap in a heading: the old words leave upwards, the new ones arrive from below. */
    .swap .swap__word, .hp-hero h1 .swap__word { display: block; color: var(--fg); transition: opacity .22s ease, transform .22s ease; }
    .swap__word.is-out { opacity: 0; transform: translateY(-.3em); }
    .swap__word.is-in { opacity: 0; transform: translateY(.3em); transition: none; }

    /* Catalogue cards travel to their new place when the category changes. */
    ::view-transition-group(*) { animation-duration: .3s; }

    /* Pages cross-fade into each other; the header stays where it is. */
    @view-transition { navigation: auto; }
    .gh { view-transition-name: site-header; }
    ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
}

