/* GenshinBoost — base layer: fonts, brand tokens, reset, shared components. Components use tokens only. */
@font-face { font-family: "Forum"; src: url(/fonts/forum-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Forum"; src: url(/fonts/forum-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url(/fonts/onest-cyrillic-wght-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url(/fonts/onest-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* brand extension tokens */
  --gold: #D3BC8E;
  --gold-bright: #E3C27E;
  --gold-deep: #7A5C24;
  --night: #11162B;
  --night-2: #171D38;
  --night-3: #1E2547;
  --parchment: #ECE5D8;
  --parchment-2: #E3DACA;
  --rarity-5: #C98A3A;
  --rarity-4: #9C72CB;
  --rarity-3: #5A7FB8;
  --el-anemo: #5FB89A; --el-geo: #E0A830; --el-electro: #A27CC8; --el-dendro: #8DB33A;
  --el-hydro: #3FA7DB; --el-pyro: #E5713A; --el-cryo: #8CCAD8;
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 64px);
  --header-h: 72px;
  --section-y: clamp(72px, 10vw, 152px);
  --frame: 1px solid color-mix(in oklab, var(--gold) 55%, transparent);
}

/* theme scopes: parchment (light roles) and night (dark roles) on any element */
.night {
  color-scheme: dark;
  --color-ground: #11162B; --color-surface: #171D38; --color-raised: #1E2547; --color-ink: #ECE5D8; --color-muted: #9AA3C7;
  --color-border: #2A3260; --color-control-border: #4C5690; --color-primary: #D3BC8E; --color-primary-hover: #E3CC9E;
  --color-primary-text: #E3C27E; --color-on-primary: #11162B; --color-primary-subtle: #262A3E; --color-focus: #E3C27E;
  --color-success: #5BBD74; --color-success-subtle: #102816; --color-on-success-subtle: #83D494;
  --color-warning: #D79628; --color-warning-subtle: #2E1E06; --color-on-warning-subtle: #EBB25F;
  --color-danger: #F07F77; --color-danger-subtle: #341816; --color-on-danger-subtle: #FFA098;
  --color-info: #4DACF6; --color-info-subtle: #0D2436; --color-on-info-subtle: #80C5FF;
  --color-selection: #3A3A5A;
  background: var(--color-ground); color: var(--color-ink);
}
.parchment {
  color-scheme: light;
  --color-ground: #ECE5D8; --color-surface: #E3DACA; --color-raised: #F6F1E7; --color-ink: #1F2233; --color-muted: #5B5F73;
  --color-border: #D3C8B4; --color-control-border: #8E8571; --color-primary: #1F2233; --color-primary-hover: #2E3350;
  --color-primary-text: #7A5C24; --color-on-primary: #ECE5D8; --color-primary-subtle: #E6DCC6; --color-focus: #7A5C24;
  --color-success: #00843B; --color-success-subtle: #E0F7E4; --color-on-success-subtle: #005725;
  --color-warning: #9A6700; --color-warning-subtle: #FEEDD7; --color-on-warning-subtle: #624000;
  --color-danger: #B9463F; --color-danger-subtle: #FFEBE8; --color-on-danger-subtle: #7C2621;
  --color-info: #0077BC; --color-info-subtle: #E4F2FF; --color-on-info-subtle: #004B7A;
  --color-selection: #D3BC8E;
  background: var(--color-ground); color: var(--color-ink);
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: 1.55; font-feature-settings: "kern"; -webkit-font-smoothing: antialiased; background: var(--night); color: var(--color-ink); overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
::selection { background: var(--color-selection); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-sm); }
input, textarea { caret-color: var(--color-primary-text); }
html { scrollbar-color: color-mix(in oklab, var(--gold) 45%, transparent) var(--night); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
@media (max-width: 1024px) { .grid12 { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: 20px; } }
@media (max-width: 640px) { .grid12 { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; } }

/* type */
.display, h1.display, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.035em; line-height: 0.98; text-wrap: balance; }
.h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem); }
.h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 4.1rem); line-height: 1.02; }
.h3 { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.95rem); line-height: 1.08; letter-spacing: 0.04em; }
.lead { font-size: var(--text-lg); line-height: 1.45; max-width: 36ch; }
.muted { color: var(--color-muted); }
.gold { color: var(--color-primary-text); }
.num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.prose p + p { margin-top: 0.8em; }

/* diamond divider — the brand's rule */
.rule { display: flex; align-items: center; gap: 10px; color: var(--color-primary-text); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.45; }
.rule > i { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.diamond { display: inline-block; width: 0.42em; height: 0.42em; background: currentColor; transform: rotate(45deg); vertical-align: 0.12em; }

/* icons */
.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico-lg { width: 32px; height: 32px; }
.el-anemo { color: var(--el-anemo); } .el-geo { color: var(--el-geo); } .el-electro { color: var(--el-electro); } .el-dendro { color: var(--el-dendro); }
.el-hydro { color: var(--el-hydro); } .el-pyro { color: var(--el-pyro); } .el-cryo { color: var(--el-cryo); }

/* buttons */
.btn { --b-bg: var(--color-primary); --b-fg: var(--color-on-primary); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
  transition: background-color var(--duration-fast) var(--ease-out), transform var(--duration-press) var(--ease-out); }
.btn:active { transform: scale(0.98); }
@media (hover: hover) { .btn:hover { --b-bg: var(--color-primary-hover); } .btn:hover .ico { transform: translateX(3px); } }
.btn .ico { transition: transform var(--duration-fast) var(--ease-out); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--color-ink); clip-path: none; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-primary-text) 70%, transparent); }
@media (hover: hover) { .btn-ghost:hover { --b-bg: color-mix(in oklab, var(--color-primary-text) 14%, transparent); } }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; color: var(--color-primary-text); font-weight: 600; text-decoration: none; }
@media (hover: hover) { .link-arrow:hover { text-decoration: underline; } }

/* header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: var(--parchment);
  --color-ink: var(--parchment); --color-primary: var(--gold); --color-primary-hover: #E3CC9E; --color-on-primary: var(--night); --color-primary-text: var(--gold-bright); --color-focus: var(--gold-bright);
  transition: background-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out); }
.site-header.is-solid, .site-header.solid { background: color-mix(in oklab, var(--night) 94%, transparent); box-shadow: 0 1px 0 color-mix(in oklab, var(--gold) 25%, transparent); }
@supports (backdrop-filter: blur(1px)) { .site-header.is-solid, .site-header.solid { backdrop-filter: blur(10px); } }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: block; width: 210px; height: 26px; background: currentColor; color: var(--gold);
  -webkit-mask: url(/assets/brand/genshinboost-lockup.svg) left center / contain no-repeat; mask: url(/assets/brand/genshinboost-lockup.svg) left center / contain no-repeat; }
.logo-mark { display: block; width: 28px; height: 28px; background: currentColor; -webkit-mask: url(/assets/brand/genshinboost-mark.svg) center / contain no-repeat; mask: url(/assets/brand/genshinboost-mark.svg) center / contain no-repeat; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.9375rem; font-weight: 500; opacity: 0.86; padding: 8px 0; }
.nav a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -1px 0 var(--gold); }
@media (hover: hover) { .nav a:hover { opacity: 1; color: var(--gold); } }
.header-actions { display: flex; gap: 12px; align-items: center; }
.header-actions .btn { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: inherit; }
.menu-btn .ico { width: 28px; height: 28px; }
@media (max-width: 900px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; background: var(--night);
    box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.6); border-top: var(--frame); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out), visibility 0s linear var(--duration-fast); }
  .nav a { font-size: 1.25rem; padding: 14px 0; border-bottom: 1px solid var(--night-3); }
  .nav.open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .logo { width: 172px; }
}
@media (max-width: 420px) { .header-actions .btn-ghost { display: none; } }

/* ornamental frame: gold line + diamonds in the corners */
.frame { position: relative; border: var(--frame); }
.frame::before, .frame::after { content: ""; position: absolute; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.frame::before { top: -4px; left: -4px; } .frame::after { bottom: -4px; right: -4px; }

/* stars */
.stars { display: inline-flex; gap: 1px; color: var(--rarity-4); }
.stars[data-r="5"] { color: var(--rarity-5); } .stars[data-r="3"] { color: var(--rarity-3); }
.stars svg { width: 14px; height: 14px; }

/* service card = an item dropped from a wish */
.item { --r: var(--rarity-4); position: relative; display: flex; flex-direction: column; background: var(--night-2); color: var(--parchment); text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); isolation: isolate; }
.item[data-r="5"] { --r: var(--rarity-5); } .item[data-r="3"] { --r: var(--rarity-3); }
.item-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(160deg, color-mix(in oklab, var(--r) 70%, var(--night)) 0%, var(--night) 100%); }
.item-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.item-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, color-mix(in oklab, var(--night-2) 92%, transparent) 100%); }
.item-el { position: absolute; z-index: 1; top: 12px; left: 12px; width: 36px; height: 36px; display: grid; place-items: center; background: rgb(17 22 43 / 0.72); border: var(--frame); transform: rotate(45deg); }
.item-el svg { width: 18px; height: 18px; transform: rotate(-45deg); }
.item-body { display: grid; gap: 8px; padding: 16px 20px 18px; flex: 1; align-content: start; }
.item-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.375rem; line-height: 1.08; }
.item-short { color: #B9BFD9; font-size: 0.9375rem; line-height: 1.4; }
.item-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; padding: 14px 20px 16px; border-top: 1px solid var(--night-3); }
.item-price { font-size: 1.375rem; font-weight: 600; color: var(--gold-bright); }
.item-price s { font-size: 0.875rem; font-weight: 400; color: #8A92B6; margin-left: 6px; }
.item-eta { display: inline-flex; gap: 6px; align-items: center; font-size: 0.875rem; color: #B9BFD9; white-space: nowrap; }
.item::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--r); }
@media (hover: hover) { .item:hover .item-media img { transform: scale(1.04); } .item:hover .item-title { color: var(--gold-bright); } }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--color-border); background: transparent; color: var(--color-ink);
  font-size: 0.9375rem; font-weight: 500; cursor: pointer; text-decoration: none; border-radius: var(--radius-full); transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); }
@media (hover: hover) { .chip:hover { border-color: var(--color-primary-text); } }
.chip .count { font-size: 0.8125rem; opacity: 0.7; }

/* forms */
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-size: 0.875rem; font-weight: 500; }
.field small { color: var(--color-muted); font-size: 0.8125rem; line-height: 1.35; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--color-control-border); background: var(--color-raised); color: var(--color-ink);
  border-radius: var(--radius-sm); font-size: 1rem; transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
.textarea { min-height: 112px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--color-primary-text); box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary-text) 28%, transparent); }
.input[aria-invalid="true"] { border-color: var(--color-danger); }
.field-error { color: var(--color-danger); font-size: 0.875rem; }
.form-error { padding: 12px 14px; background: var(--color-danger-subtle); color: var(--color-on-danger-subtle); border-radius: var(--radius-sm); font-size: 0.9375rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold-deep); }

/* toast */
.toast-host { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; padding: 14px 18px; background: var(--night-3); color: var(--parchment); border: var(--frame); box-shadow: var(--shadow-lg); font-size: 0.9375rem;
  animation: toast-in var(--duration-base) var(--ease-out); }
.toast.err { border-color: #F07F77; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* footer */
.site-footer { padding: 72px 0 40px; border-top: var(--frame); font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr 1.2fr; gap: 40px; }
.site-footer h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.125rem; font-weight: 400; margin-bottom: 14px; color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--color-muted); }
@media (hover: hover) { .site-footer a:hover { color: var(--gold); text-decoration: underline; } }
.pay-marks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pay-guar { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.875rem; line-height: 1.35; }
.pay-guar li { display: flex; gap: 10px; align-items: flex-start; }
.pay-guar .ico { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--gold); }
.pay-marks span { padding: 6px 10px; border: 1px solid var(--night-3); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--parchment); }
.pay-marks-form { margin-top: -4px; }
.pay-marks-form span { color: inherit; border-color: color-mix(in oklab, currentColor 25%, transparent); opacity: 0.8; }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-3); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; color: var(--color-muted); font-size: 0.8125rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* status pills (shared with account/admin) */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.8125rem; font-weight: 500; white-space: nowrap;
  background: var(--color-primary-subtle); color: var(--color-ink); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.pill.s-pending { background: var(--color-warning-subtle); color: var(--color-on-warning-subtle); }
.pill.s-paid { background: var(--color-info-subtle); color: var(--color-on-info-subtle); }
.pill.s-in_progress { background: color-mix(in oklab, var(--rarity-4) 22%, transparent); color: var(--color-ink); }
.pill.s-done { background: var(--color-success-subtle); color: var(--color-on-success-subtle); }
.pill.s-cancelled, .pill.s-refunded, .pill.s-rejected { background: var(--color-danger-subtle); color: var(--color-on-danger-subtle); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- motion system ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.wi { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  html.js [data-split] .wi { transform: translateY(105%); transition: transform 700ms var(--ease-out); transition-delay: calc(min(var(--i, 0), 12) * 35ms); }
  html.js [data-split].in .wi { transform: none; }
  html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 550ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
  html.js [data-reveal="fade"] { transform: none; }
  html.js [data-reveal="scale"] { transform: scale(0.96); }
  /* mask: clip the picture inside the frame, not the frame itself — a clipped target never reports as visible to IntersectionObserver */
  html.js [data-reveal="mask"] { opacity: 1; transform: translateY(14px); }
  html.js [data-reveal="mask"] > * { clip-path: inset(100% 0 0 0); transition: clip-path 800ms var(--ease-out); }
  html.js [data-reveal].in { opacity: 1; transform: none; }
  html.js [data-reveal="mask"].in > * { clip-path: inset(0 0 0 0); }
  html.js [data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity 500ms var(--ease-out), transform 650ms var(--ease-out); transition-delay: calc(min(var(--k, 0), 10) * 50ms); }
  html.js [data-stagger].in > * { opacity: 1; transform: none; }
  /* page-to-page transitions (Chromium, same-origin) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 260ms var(--ease-in-out) both; }
  ::view-transition-new(root) { animation: vt-in 420ms var(--ease-out) both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }
}

/* floating support button */
.support-fab { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; justify-content: center; gap: 0; min-width: 52px; height: 52px; padding: 0 15px; border-radius: 999px;
  background: var(--gold, #D3BC8E); color: var(--night, #11162B); font-weight: 600; font-size: .9375rem; text-decoration: none;
  box-shadow: 0 8px 24px rgba(17, 22, 43, .35), 0 0 0 1px rgba(17, 22, 43, .15); transition: transform 200ms ease, box-shadow 200ms ease, gap 250ms ease, padding 250ms ease; }
.support-fab .ico { width: 22px; height: 22px; flex: none; }
.support-fab span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 250ms ease; }
.support-fab:hover, .support-fab:focus-visible { gap: 8px; padding: 0 18px 0 15px; }
.support-fab:hover span, .support-fab:focus-visible span { max-width: 120px; }
.support-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(17, 22, 43, .45); }
.support-fab:focus-visible { outline: 2px solid var(--parchment, #ECE5D8); outline-offset: 3px; }
@media (max-width: 560px) { .support-fab { right: 14px; bottom: 14px; min-width: 48px; height: 48px; padding: 0 13px; } }
@media (prefers-reduced-motion: reduce) { .support-fab, .support-fab span { transition: none; } }

/* catalog ribbon: gold banner with a notched tail (Хит / Новое / Набор / Скидка) */
.item-badge { position: absolute; z-index: 2; top: 14px; right: 0; padding: 6px 14px 6px 18px; font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; color: var(--night); background: var(--gold); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%); box-shadow: 0 6px 14px -6px rgb(0 0 0 / 0.5); }
.item-badge.b-hit { background: var(--rarity-5); }
.item-badge.b-new { background: var(--el-anemo); }
.item-badge.b-set { background: var(--rarity-4); color: var(--parchment); }
.item-badge.b-sale { background: var(--el-pyro); }

/* service page, phones: sticky total + «Оформить» */
.svc-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--night); color: var(--parchment); border-top: var(--frame); box-shadow: 0 -12px 30px -12px rgb(0 0 0 / 0.45); }
.svc-mbar[hidden] { display: none; }
.svc-mbar small { display: block; max-width: 48vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #9AA3C7; font-size: 0.75rem; }
.svc-mbar b { font-size: 1.25rem; color: var(--gold-bright); }
@media (min-width: 901px) { .svc-mbar { display: none !important; } }
body.has-mbar .support-fab { bottom: 84px; }

/* ---------- site-wide motion (GB.motion in common.js) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* header settles once per page load */
  html.js .site-header { animation: hdr-in 600ms var(--ease-out) both; }
  html.js .site-header .nav a, html.js .site-header .header-actions { animation: hdr-item 500ms var(--ease-out) both; }
  html.js .site-header .nav a:nth-child(1) { animation-delay: 80ms; } html.js .site-header .nav a:nth-child(2) { animation-delay: 120ms; }
  html.js .site-header .nav a:nth-child(3) { animation-delay: 160ms; } html.js .site-header .nav a:nth-child(4) { animation-delay: 200ms; }
  html.js .site-header .nav a:nth-child(5) { animation-delay: 240ms; } html.js .site-header .header-actions { animation-delay: 280ms; }
  @keyframes hdr-in { from { transform: translateY(-100%); } }
  @keyframes hdr-item { from { opacity: 0; transform: translateY(-8px); } }
  /* cabinet: each view's blocks arrive in reading order (re-runs on every tab render) */
  html.js .appshell [data-view] > * { animation: view-in 360ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  html.js .appshell [data-view] > :nth-child(2) { animation-delay: 40ms; } html.js .appshell [data-view] > :nth-child(3) { animation-delay: 80ms; }
  html.js .appshell [data-view] > :nth-child(4) { animation-delay: 120ms; } html.js .appshell [data-view] > :nth-child(n+5) { animation-delay: 160ms; }
  /* admin: frequent tool — one fast fade, no stagger */
  html.js body.is-admin [data-view] > * { animation: view-fade 180ms ease-out both !important; animation-delay: 0ms !important; }
  @keyframes view-in { from { opacity: 0; transform: translateY(10px); } }
  @keyframes view-fade { from { opacity: 0; } }
}
/* micro-interactions (pointer devices only) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .link-arrow .ico { transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1); }
  .link-arrow:hover .ico { transform: translateX(4px); }
  .site-footer a { transition: color 200ms ease; } .site-footer a:hover { color: var(--gold-bright); }
}@media (prefers-reduced-motion: no-preference) {
  /* hero background art settles in (scale only — section opacity stays as designed) */
  html.js main section > img:first-child, html.js main .band > img, html.js .auth-art > img { animation: bg-in 1100ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  @keyframes bg-in { from { transform: scale(1.08); } }
  html.js .support-fab { animation: fab-in 500ms cubic-bezier(0.23, 1, 0.32, 1) 700ms both; }
  @keyframes fab-in { from { opacity: 0; transform: translateY(16px) scale(0.92); } }
}

/* opaque solid header (readable over any content) and AA-safe gold links on parchment */
.site-header.is-solid, .site-header.solid { background: var(--night); }
.parchment .legal a, .legal a { color: color-mix(in oklab, var(--gold-deep) 86%, black); }

/* checkout feedback: total tick flash, pay button busy shimmer, option press */
@media (prefers-reduced-motion: no-preference) {
  [data-total].is-tick { animation: total-tick 420ms cubic-bezier(0.23, 1, 0.32, 1); }
  @keyframes total-tick { 0% { color: var(--gold-bright); transform: translateY(-3px); } 100% { transform: none; } }
  .btn[aria-busy="true"] { position: relative; overflow: hidden; }
  .btn[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; background: rgb(255 255 255 / 0.22); opacity: 0; animation: btn-busy 0.9s ease-in-out infinite alternate; }
  @keyframes btn-busy { to { opacity: 1; } }
  .opt span, .opts label > span { transition: transform 140ms ease-out, background-color 200ms ease, border-color 200ms ease; }
  .opt:active span, .opts label:active > span { transform: scale(0.97); }
}
