@font-face {
  font-family: Geo; src: url(fonts/sd-geologica-cyrillic.woff2); font-weight: 100 900;
  font-display: swap; unicode-range: U+0400-052F;
}
@font-face {
  font-family: Geo; src: url(fonts/sd-geologica-latin.woff2); font-weight: 100 900;
  font-display: swap; unicode-range: U+0000-00FF,U+2000-206F,U+20A0-20CF,U+2190-21FF;
}
:root {
  --page: #101115; --panel: #1a1b20; --ink: #f5f5f6; --muted: #b1b2bd; --line: #37383e;
  --red: #ff485c; --lime: #c6f432; --ease: cubic-bezier(.22,.8,.22,1);
  font-family: Geo, system-ui, sans-serif; color: var(--ink); background: var(--page); font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { position: relative; isolation: isolate; margin: 0; }
h1,h2,p { margin: 0; }
button,input { font: inherit; color: inherit; }
button,summary { cursor: pointer; }
button,summary,a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
:where(a,button,summary,.collection):focus-visible { outline: 2px solid #9cbbff; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 5; clip-path: none; width: auto; height: auto; background: var(--ink); color: var(--page); padding: 8px; }
.wrap { width: min(1260px, calc(100% - clamp(36px, 8vw, 126px))); margin-inline: auto; }
.backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 72% 0%, #222633, transparent 53%); }
.ribbon {
  position: absolute; inset: -22px -5% auto; height: clamp(470px,48vw,730px);
  background: url(art/ribbon.svg) 65% 15% / cover no-repeat; opacity: .72;
  animation: ribbon-drift 18s ease-in-out infinite alternate;
}
@keyframes ribbon-drift { to { transform: translate3d(-1.8%,15px,0) rotate(-1.6deg) scale(1.04); } }
.nav { display: flex; align-items: center; gap: 36px; height: 61px; border-bottom: 1px solid #c7cfe323; }
.wordmark { font-weight: 760; font-size: 25px; letter-spacing: -.08em; }
.wordmark span,.intro h1 span,.about h2 span,.race h2 span { color: var(--red); }
.intro { padding: clamp(25px,3.5vw,53px) 0 clamp(20px,2.1vw,32px); }
.intro h1,.about h2 { letter-spacing: -.066em; line-height: 1.05; font-weight: 630; }
.intro h1 { font-size: clamp(38px,5.35vw,82px); }
.products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(14px,1.65vw,25px); }
.product {
  --pad: clamp(17px,1.9vw,28px); overflow: clip; min-width: 0;
  background: linear-gradient(145deg,#202127,var(--panel) 58%);
  border: 1px solid #42434b; border-radius: 21px; box-shadow: 0 10px 36px #0003;
}
.sunday { --accent: #ff8191; --indicator: #572932; --indicator-border: #a95867; }
.vain { --accent: var(--lime); --indicator: #353f27; --indicator-border: #748b46; }
.cover {
  position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column;
  justify-content: space-between; padding: var(--pad); height: clamp(202px,18.8vw,255px);
}
.cover.race {
  color: #fff9fa; background:
    radial-gradient(ellipse at 75% 37%,#502333a6,transparent 50%),
    linear-gradient(128deg,#24232b 0%,#19191f 27%,#17151a 57%,#301920 84%,#171316);
  border-bottom: 1px solid #3f3139;
}
.race::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .2; background: repeating-linear-gradient(125deg,transparent 0 2px,#9998a122 3px,transparent 4px); }
.racing-lines { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; fill: none; stroke-linecap: round; }
.asphalt { stroke: #96828b; opacity: .34; stroke-width: .8; }
.apex { stroke: #d0354a; stroke-width: 1.8; }
.tracer { stroke: #ffbbc3; stroke-width: 2.2; stroke-dasharray: 4 96; animation: drive 6.4s linear infinite; }
@keyframes drive { to { stroke-dashoffset: -100; } }
.brand-row { align-self: start; display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; font-size: 15px; letter-spacing: -.045em; }
.avatar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #b2a9ac48; }
.caption { width: max-content; max-width: 53%; position: relative; }
.genre { display: block; font-size: clamp(8px,.7vw,10px); font-weight: 600; text-transform: uppercase; letter-spacing: .09em; }
.race .genre { color: #d5bec5; }
.caption h2 { font-size: clamp(36px,4.2vw,66px); line-height: 1.06; letter-spacing: -.077em; font-weight: 610; white-space: nowrap; }
.box-heading { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.box-title-icon { position: relative; display: grid; place-items: center; width: clamp(26px,2.9vw,40px); height: 36px; }
.box-title-icon .sundays-home-box { position: absolute; scale: .65; }
.collection { position: absolute; inset: 5% 2% 3% auto; width: 45%; display: flex; flex-direction: column; align-items: center; outline-offset: -3px; }
.fan { flex: 1; min-height: 0; width: 100%; position: relative; touch-action: pan-y; cursor: grab; user-select: none; }
.fan:active { cursor: grabbing; }
.fan img {
  position: absolute; height: 87%; width: auto; max-width: 64%; object-fit: contain; left: 50%; top: 51%; border-radius: 4%;
  filter: drop-shadow(0 4px 6px #08080b99); transition: transform .48s var(--ease),opacity .32s;
  pointer-events: none; transform-origin: 50% 85%;
}
.fan [data-pos=front] { transform: translate(-50%,-50%); z-index: 3; }
.fan [data-pos=left] { transform: translate(-79%,-46%) rotate(-14deg) scale(.85); z-index: 1; opacity: .86; }
.fan [data-pos=right] { transform: translate(-21%,-46%) rotate(14deg) scale(.85); z-index: 2; opacity: .86; }
.gallery-nav { flex: none; display: flex; align-items: center; gap: 4px; background: #17151bae; border: 1px solid #ffffff28; border-radius: 100px; }
.gallery-nav button { display: grid; place-items: center; border: 0; background: transparent; color: #f8ebed; width: 28px; height: 25px; border-radius: inherit; }
.gallery-nav svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.gallery-nav button[data-step="-1"]:hover svg { transform: translateX(-2px); }
.gallery-nav button[data-step="1"]:hover svg { transform: translateX(2px); }
.gallery-count { font-size: 10px; color: #e5d9df; font-variant-numeric: tabular-nums; }
.agent { background: #c6f432; color: #192011; }
.agent-art { position: absolute; inset: 0; overflow: clip; pointer-events: none; z-index: -1; transform: translate(var(--mx,0),var(--my,0)); transition: transform .45s var(--ease); }
.agent .avatar { border-color: #26360632; }
.orbit { position: absolute; width: 66%; height: 60%; right: -5%; top: 23%; border: 1px solid #32401945; border-radius: 50%; transform: rotate(-26deg); }
.orbit::after { content:""; position:absolute; left: 16%; top: 10%; width: 5px; aspect-ratio: 1; border-radius: 50%; background: #546920; }
.orbit-two { rotate: 62deg; scale: 1.03; opacity: .7; }
.cat { position: absolute; width: 41%; height: 83%; object-fit: contain; top: 8%; right: 3%; animation: cat-breathe 5.5s ease-in-out infinite alternate; transform-origin: 50% 92%; }
@keyframes cat-breathe { to { transform: translateY(-2px) rotate(1.5deg); } }
.agent .genre { margin-bottom: 4px; }
.switcher {
  --n: 2; --i: 0; --inset: 3px;
  display: grid; position: relative; isolation: isolate; grid-template-columns: repeat(var(--n),minmax(0,1fr)); padding: var(--inset);
}
.switcher::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; top: var(--inset); bottom: var(--inset);
  left: var(--inset); width: calc((100% - 2 * var(--inset)) / var(--n));
  border-radius: inherit; background: var(--indicator); box-shadow: inset 0 0 0 1px var(--indicator-border);
  transform: translateX(calc(var(--i) * 100%)); transition: transform .33s var(--ease);
}
.switcher button { border: 0; border-radius: inherit; background: transparent; min-width: 0; position: relative; transition: color .2s; }
.tiers {
  width: 141px; margin-top: 10px; border-radius: 100px; background: #18220e1a;
  box-shadow: inset 0 0 0 1px #20300032; --indicator: #20281b; --indicator-border: #20281b;
}
.tiers button { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 28px; font-size: 12px; font-weight: 550; }
.tiers button:focus-visible { outline-color: #20281b; }
.tiers img { width: 14px; height: 14px; }
.tiers button[aria-pressed=true] { color: #fff; }
.mobile-tabs { display: none; }
.buyform { min-width: 0; padding: 20px var(--pad) 16px; }
.overview { padding-bottom: 16px; align-self: start; }
.benefit { font-size: clamp(15px,1.3vw,19px); font-weight: 555; line-height: 1.27; letter-spacing: -.035em; }
.pitch,.note,.feedback,.quote-state { overflow-wrap: anywhere; }
.pitch { color: var(--muted); margin-top: 4px; font-size: 13px; line-height: 1.45; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; align-self: start; }
legend,label { padding: 0; font-size: 12px; font-weight: 510; color: #d6d6df; }
.picks { border-radius: 9px; background: #121317; box-shadow: inset 0 0 0 1px #34353c; margin-top: 10px; }
.qty { --n: 4; }
.terms { --n: 3; }
.picks button { display: grid; align-content: center; justify-items: center; gap: 1px; min-height: 40px; color: #d3d3dc; white-space: nowrap; }
.picks button[aria-pressed=true],.picks button:hover { color: white; }
.picks button span { font-size: 14px; font-weight: 570; line-height: 1.15; }
.picks small { font-size: 11px; color: #c3c3cc; font-variant-numeric: tabular-nums; }
.picks [aria-pressed=true] small { color: #f2e9e9; }
.picks em {
  position: absolute; right: 5px; top: -10px; background: #383b43; border: 1px solid #585b64; color: #f0f1f3;
  border-radius: 5px; padding: 1px 4px; font: 530 9px/1.25 Geo,sans-serif; font-variant-numeric: tabular-nums;
}
.picks [aria-pressed=true] em { background: var(--accent); border-color: transparent; color: #17191c; }
.recipient { padding-top: 14px; }
.recipient label { display: block; margin-bottom: 6px; }
.tag { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid #4d4e57; border-radius: 9px; background: #151619; }
.tag span { font-size: 16px; color: #aaaab5; transition: color .18s,transform .3s var(--ease); }
.tag:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tag:focus-within span { color: var(--accent); transform: rotate(-12deg); }
.tag:has(input[aria-invalid=true]) { border-color: #ff7f8c; }
.tag input { min-width: 0; width: 100%; background: transparent; outline: 0; border: 0; padding: 0; font-size: 16px; }
.tag input::placeholder { color: #9697a2; }
.quote-state { font-size: 11px; line-height: 16px; color: #c6c8d2; }
.quote-state:not(:empty) { margin-top: 3px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding: 10px 0; margin-top: 12px; font-size: 13px; }
.total { font-size: 26px; font-weight: 580; letter-spacing: -.055em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.buy { width: 100%; border: 0; border-radius: 10px; background: #f3f2f4; color: #17171c; min-height: 43px; font-size: 14px; font-weight: 600; transition: background .22s,transform .22s; }
.sunday .buy:hover { background: #ffe4e8; }
.vain .buy:hover { background: #def8a6; }
.buy:active { transform: scale(.994); }
.buy:disabled { opacity: .55; cursor: wait; }
.paytxt { display: flex; align-items: center; justify-content: center; gap: 8px; }
.paytxt img { width: 13px; height: 17px; }
.note { font-size: 11px; line-height: 1.4; color: #aaaab5; padding-top: 7px; }
.feedback { font-size: 12px; line-height: 1.5; color: #ecedf1; }
.feedback:not(:empty) { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; background: #111217; }
.receipt-amount { font-weight: 600; }
.feedback button { border: 0; text-decoration: underline; background: transparent; padding: 3px 0; }
.about { margin: clamp(40px,5vw,75px) 0; }
.about h2 { font-size: clamp(30px,3.7vw,54px); margin-bottom: 22px; }
.project-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(14px,1.65vw,25px); }
.project-info { display: flex; flex-direction: column; align-items: flex-start; padding: 20px 0 4px; border-top: 1px solid var(--line); }
.project-name { display: flex; align-items: center; gap: 10px; }
.project-name img { width: 32px; height: 32px; border-radius: 9px; }
.project-name h3 { margin: 0; font-size: 18px; font-weight: 570; letter-spacing: -.04em; }
.project-info p { margin: 14px 0 18px; max-width: 56ch; color: var(--muted); font-size: 14px; line-height: 1.55; }
.open-project { display: inline-flex; align-items: center; gap: 14px; min-height: 42px; margin-top: auto; padding: 0 14px; border: 1px solid #55565e; border-radius: 10px; background: #222328; font-size: 13px; font-weight: 530; transition: background .2s,border-color .2s; }
.open-project span { color: var(--accent, var(--red)); transition: transform .22s var(--ease); }
.project-info:last-child .open-project { --accent: var(--lime); }
.open-project:hover,.open-project:focus-visible { background: #2b2c32; border-color: #747681; }
.open-project:hover span,.open-project:focus-visible span { transform: translate(2px,-2px); }
@media (max-width: 799px) { .project-links { grid-template-columns: 1fr; gap: 23px; } }

@media (min-width: 800px) {
  /* Cover, summary, choices, recipient, total, checkout, note and receipt share tracks. */
  .product { display: grid; grid-row: 1 / span 8; grid-template-rows: subgrid; }
  .buyform { display: grid; grid-row: 2 / span 7; grid-template-rows: subgrid; }
  .quote-state { min-height: 16px; margin-top: 3px; }
}
@media (min-width: 800px) and (max-width: 890px) {
  .cover { height: 182px; }
  .caption h2 { font-size: 33px; }
  .box-title-icon { width: 24px; }
  .box-title-icon .sundays-home-box { scale: .47; }
  .genre { font-size: 7.3px; }
}
@media (max-height: 820px) and (min-width: 891px) {
  .nav { height: 50px; }
  .intro { padding: 16px 0 18px; }
  .intro h1 { font-size: clamp(48px,4.5vw,68px); }
  .cover { height: clamp(186px,15.7vw,212px); }
}
@media (max-width: 799px) {
  .wrap { width: calc(100% - 28px); }
  .nav { height: 52px; }
  .wordmark { font-size: 22px; }
  .intro { padding: 24px 0 14px; }
  .intro h1 { font-size: clamp(34px,8.6vw,50px); }
  .ribbon { inset: -60px -80% auto -30%; height: 450px; opacity: .54; }
  .mobile-tabs { display: grid; --indicator: #393a43; --indicator-border: #555660; background: #1a1b21; margin: 0 0 12px; border-radius: 10px; }
  .mobile-tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 33px; font-size: 13px; font-weight: 560; }
  .mobile-tabs img { width: 19px; height: 19px; border-radius: 50%; }
  .products { display: block; }
  body[data-tab=sundays] .product.vain,body[data-tab=vain] .product.sunday { display: none; }
  .product { --pad: clamp(15px,4.5vw,24px); border-radius: 16px; }
  .cover { height: clamp(165px,45vw,205px); }
  .caption h2 { font-size: clamp(32px,9vw,49px); }
  .box-title-icon { width: 27px; }
  .box-title-icon .sundays-home-box { scale: .50; }
  .genre { font-size: 7.5px; }
  .tiers { width: 130px; margin-top: 8px; }
  .collection { inset: 4% 1% 2% auto; }
  .gallery-nav button { width: 26px; }
  .buyform { padding-top: 16px; }
  .overview { padding-bottom: 14px; }
}
@media (pointer: coarse), (max-width: 1024px) {
  .tiers button,.picks button,.mobile-tabs button,.buy,.tag,.open-project { min-height: 44px; }
  .tiers { width: 148px; }
  .gallery-nav button { width: 44px; height: 44px; }
}
@media (max-width: 799px) {
  .cover { height: clamp(195px,46vw,248px); }
  .brand-row { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
}

/* ===== Brighter, livelier (owner, 19 Nov 2026: «ярче, приятнее, получше анимации»). Visual only: no checkout logic. ===== */
:root { --red: #ff3b50; --page: #0c0d11; }
body { background: var(--page); }
/* Each project lights its side of the page: red behind sundays., lime behind Vain; on a phone the light follows the tab. */
.backdrop::before, .backdrop::after { content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .55; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.backdrop::before { left: -22vmax; top: 6vmax; background: radial-gradient(closest-side, #ff3b5066, transparent); animation: glow-a 14s ease-in-out infinite alternate; }
.backdrop::after { right: -24vmax; top: 2vmax; background: radial-gradient(closest-side, #c6f43244, transparent); animation: glow-b 16s ease-in-out infinite alternate; }
@keyframes glow-a { to { transform: translate(6vmax, 4vmax) scale(1.08); } }
@keyframes glow-b { to { transform: translate(-5vmax, 6vmax) scale(1.1); } }
@media (max-width: 799px) {
  body[data-tab=sundays] .backdrop::after { opacity: .12; }
  body[data-tab=vain] .backdrop::before { opacity: .12; }
  body[data-tab=vain] .backdrop::after { opacity: .7; }
}
.intro h1 span { display: inline-block; animation: dot-pop .9s .35s var(--ease) both; }
@keyframes dot-pop { from { transform: scale(0); } 60% { transform: scale(1.35); } to { transform: scale(1); } }

/* Cards: deeper glass, a coloured rim that lights on hover. */
.product { position: relative; background: linear-gradient(160deg, #1d1e25 0%, #15161b 62%); border-color: #3a3b44; box-shadow: 0 18px 50px #0006; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s; }
.product::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(140deg, var(--rim, #ff3b50) 0%, transparent 38%, transparent 70%, var(--rim, #ff3b50)); opacity: .35;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .45s; }
.sunday { --rim: #ff3b50; }
.vain { --rim: #c6f432; }
@media (hover: hover) and (pointer: fine) {
  .product:hover { transform: translateY(-4px); box-shadow: 0 28px 70px #000a, 0 0 60px -20px var(--rim); }
  .product:hover::after { opacity: .9; }
}
/* One orchestrated entrance: the cards rise in turn. */
.products .product { animation: rise .8s var(--ease) both; }
.products .product.vain { animation-delay: .12s; }
.about { animation: rise .8s .28s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
/* Phone tabs: the new card slides in rather than appearing. */
@media (max-width: 799px) {
  body[data-tab=vain] .product.vain { animation: swap-in-right .45s var(--ease) both; }
  body[data-tab=sundays].tabbed .product.sunday { animation: swap-in-left .45s var(--ease) both; }
  @keyframes swap-in-right { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
  @keyframes swap-in-left { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
  .mobile-tabs { background: #16171d; box-shadow: inset 0 0 0 1px #2c2d35; }
  body[data-tab=sundays] .mobile-tabs { --indicator: linear-gradient(135deg, #5a1b26, #3a1219); --indicator-border: #ff3b5099; }
  body[data-tab=vain] .mobile-tabs { --indicator: linear-gradient(135deg, #3c4a17, #252d10); --indicator-border: #c6f43299; }
}

/* sundays. cover: a warmer, redder night with the track glowing. */
.cover.race { background:
    radial-gradient(ellipse at 78% 30%, #ff3b5040, transparent 55%),
    radial-gradient(ellipse at 10% 110%, #ff3b5026, transparent 50%),
    linear-gradient(128deg, #26222b 0%, #18171d 30%, #1a1418 60%, #3a1520 100%); }
.apex { stroke: #ff3b50; filter: drop-shadow(0 0 4px #ff3b50aa); }
.tracer { stroke: #fff; stroke-width: 2.6; filter: drop-shadow(0 0 6px #ffd0d6); animation-duration: 4.8s; }
.fan img { filter: drop-shadow(0 10px 18px #000c); }
.fan [data-pos=front] { animation: card-float 4.5s ease-in-out infinite; }
@keyframes card-float { 50% { translate: 0 -5px; } }
.collection:hover .fan [data-pos=front] { animation-play-state: paused; }
.fan { perspective: 700px; }
.fan img { transition: transform .48s var(--ease), opacity .32s, rotate .25s ease-out; }
.gallery-nav { backdrop-filter: blur(8px); background: #17151bcc; }
/* Vain cover: the lime glows from the inside. */
.agent { background: radial-gradient(ellipse at 78% 35%, #e4ff7a, #c6f432 45%, #a9d61e 100%); }
.cat { filter: drop-shadow(0 12px 18px #3b5a0055); }

/* Choices: the chosen one in the project's colour. */
.picks { background: #0f1014; box-shadow: inset 0 0 0 1px #2e2f37; }
.sunday .picks { --indicator: linear-gradient(160deg, #ff3b50 0%, #c4142b 100%); --indicator-border: #ff7a8a; }
.vain .picks { --indicator: linear-gradient(160deg, #d9ff5a 0%, #a8d417 100%); --indicator-border: #e6ff9a; }
.switcher::before { transition: transform .42s cubic-bezier(.34,1.4,.5,1); box-shadow: inset 0 0 0 1px var(--indicator-border), 0 6px 18px -6px var(--rim, #000); }
.sunday .picks button[aria-pressed=true], .sunday .picks button[aria-pressed=true] small { color: #fff; }
.vain .picks button[aria-pressed=true], .vain .picks button[aria-pressed=true] small { color: #18210a; }
.picks button { transition: color .25s, transform .2s var(--ease); }
.picks button:active { transform: scale(.96); }
.picks em { top: -9px; border-radius: 99px; padding: 1px 6px; }
.sunday .picks em { background: #2a1519; border-color: #ff3b5066; color: #ffb3bd; }
.vain .picks em { background: #222a10; border-color: #c6f43266; color: #dfff8a; }
.sunday .picks [aria-pressed=true] em { background: #fff; color: #c4142b; border-color: transparent; }
.vain .picks [aria-pressed=true] em { background: #18210a; color: #d9ff5a; border-color: transparent; }

/* Total and pay: the price ticks to its new value, the button carries a soft moving light. */
.total { font-size: 30px; font-weight: 650; }
.sunday .total { color: #fff; text-shadow: 0 0 24px #ff3b5055; }
.vain .total { color: #fff; text-shadow: 0 0 24px #c6f43240; }
.buy { position: relative; overflow: hidden; min-height: 50px; border-radius: 13px; font-size: 15px; font-weight: 700; box-shadow: 0 10px 30px -12px var(--rim); transition: background .22s, transform .18s var(--ease), box-shadow .3s; }
.buy::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: 0; background: linear-gradient(100deg, transparent, #ffffffaa, transparent); transform: translateX(-150%) skewX(-18deg); animation: shine 4.2s 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 70% { transform: translateX(-150%) skewX(-18deg); } 100% { transform: translateX(325%) skewX(-18deg); } }
.buy:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px var(--rim); }
.buy:active { transform: scale(.98); }
.buy:disabled::after { display: none; }
.paytxt img { width: 15px; height: 19px; }
.tag { border-radius: 12px; background: #101116; transition: border-color .2s, box-shadow .25s; }
.tag:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--rim) 25%, transparent); border-color: var(--rim); }
.feedback:not(:empty) { animation: rise .35s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .buy::after { display: none; } }

/* ===== Living cards (19 Nov 2026): holographic foil by rarity, lean with glare, dealt in on load. ===== */
@property --rx { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --ry { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --gx { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --gy { syntax: '<percentage>'; inherits: true; initial-value: 40%; }
.cover.race { height: clamp(250px, 22vw, 300px); }
.collection { width: 50%; inset: 3% 1% 3% auto; }
.fan { perspective: 900px; }
.fan .holo {
  position: absolute; left: 50%; top: 50%; height: 90%; aspect-ratio: 5 / 7; margin: 0; border-radius: 5.5% / 4%;
  overflow: hidden; isolation: isolate; pointer-events: none; transform-origin: 50% 90%;
  box-shadow: 0 22px 34px -14px #000e, 0 0 0 1px #ffffff1c;
  transition: transform .6s var(--ease), opacity .4s, filter .4s, rotate .3s ease-out;
}
.fan .holo img { position: static; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: none; filter: none; border-radius: 0; animation: none; translate: none; rotate: none; }
.fan .holo[data-pos=front] { z-index: 3; transform: translate(-50%, -50%) rotateX(var(--rx)) rotateY(var(--ry)); animation: sway 7s ease-in-out infinite; }
.fan .holo[data-pos=front].live { animation: none; transition: transform .12s linear, opacity .4s; }
.fan .holo[data-pos=right] { z-index: 2; transform: translate(-18%, -50%) rotate(13deg) scale(.8); filter: brightness(.72) saturate(.9); }
.fan .holo[data-pos=left] { z-index: 1; transform: translate(-80%, -50%) rotate(-13deg) scale(.8); filter: brightness(.6) saturate(.85); }
@keyframes sway { 0%, 100% { --ry: -7deg; --rx: 3deg; --gx: 25%; --gy: 30%; } 50% { --ry: 7deg; --rx: -3deg; --gx: 75%; --gy: 60%; } }
/* the foil: a rainbow sheet that only lights where the light falls; gold for legendary, violet for epic */
.holo .foil, .holo .glare { position: absolute; inset: 0; pointer-events: none; }
.holo .foil { mix-blend-mode: color-dodge; opacity: 0; transition: opacity .4s;
  background:
    repeating-linear-gradient(115deg, #ff3b5000 0%, #ffd56b55 6%, #7ff5e055 12%, #b388ff55 18%, #ff3b5000 24%) calc(var(--gx) * 1.4) calc(var(--gy) * 1.4) / 220% 220%,
    repeating-linear-gradient(25deg, #ffffff0f 0 2px, transparent 2px 5px);
  -webkit-mask: radial-gradient(circle at var(--gx) var(--gy), #000 0%, #0009 35%, #0000 70%); mask: radial-gradient(circle at var(--gx) var(--gy), #000 0%, #0009 35%, #0000 70%); }
.holo[data-rarity=epic] .foil { background:
    repeating-linear-gradient(115deg, #0000 0%, #b388ff66 7%, #6ad1ff55 14%, #ff7ad955 21%, #0000 28%) calc(var(--gx) * 1.4) calc(var(--gy) * 1.4) / 220% 220%,
    repeating-linear-gradient(25deg, #ffffff0f 0 2px, transparent 2px 5px); }
.holo .glare { mix-blend-mode: overlay; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--gx) var(--gy), #ffffffd0 0%, #ffffff40 22%, transparent 55%); }
.holo[data-pos=front] .foil { opacity: .75; }
.holo[data-pos=front] .glare { opacity: .8; }
/* dealt from the deck once, on load */
.fan .holo[data-pos=front] { --idle: sway; animation: deal .9s .25s var(--ease) backwards, sway 7s 1.2s ease-in-out infinite; }
.fan .holo[data-pos=right] { animation: deal .9s .4s var(--ease) backwards; }
.fan .holo[data-pos=left] { animation: deal .9s .55s var(--ease) backwards; }
.fan .holo[data-pos=front].live { animation: none; }
@keyframes deal { from { opacity: 0; transform: translate(-50%, -20%) rotate(0deg) scale(.7); } }
.collection:hover .fan .holo[data-pos=front] { animation-play-state: running; }
/* the light under the fan */
.collection::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 14%; height: 34%; border-radius: 50%; background: radial-gradient(closest-side, #ff3b5066, transparent); filter: blur(18px); z-index: -1; }

/* SBP: the facets fly together on hover and on press */
.paytxt .sbp { width: 17px; height: 21px; flex: none; overflow: visible; }
.paytxt .sbp path { transform-box: fill-box; transform-origin: center; transition: transform .5s cubic-bezier(.3,1.5,.5,1), opacity .3s; }
@media (hover: hover) { .buy:hover .sbp path { animation: facet .7s cubic-bezier(.3,1.4,.5,1) both; } }
.buy:active .sbp path { animation: facet .55s cubic-bezier(.3,1.4,.5,1) both; }
.sbp path:nth-child(2) { animation-delay: .03s !important; } .sbp path:nth-child(3) { animation-delay: .06s !important; } .sbp path:nth-child(4) { animation-delay: .09s !important; }
.sbp path:nth-child(5) { animation-delay: .12s !important; } .sbp path:nth-child(6) { animation-delay: .15s !important; } .sbp path:nth-child(7) { animation-delay: .18s !important; } .sbp path:nth-child(8) { animation-delay: .21s !important; }
@keyframes facet { from { opacity: 0; transform: translate(var(--fx, 6px), var(--fy, -6px)) scale(.3) rotate(25deg); } }
.sbp path:nth-child(odd) { --fx: -7px; --fy: 5px; }

@media (max-width: 799px) {
  .cover.race { height: clamp(270px, 74vw, 330px); }
  .collection { width: 56%; inset: 2% 0 3% auto; }
  .caption { max-width: 46%; }
}
@media (prefers-reduced-motion: reduce) {
  .fan .holo[data-pos=front] { animation: none; }
  .holo .foil { opacity: .35; }
}

/* ===== Pass 3 (19 Nov 2026): the deal never replays, foil for every rarity, a calmer richer background,
   motion only where it answers a choice. ===== */
.fan.dealt .holo { animation: none; }
.fan.dealt .holo[data-pos=front] { animation: sway 7s ease-in-out infinite; }
.fan.dealt .holo[data-pos=front].live { animation: none; }
.fan [data-pos=front] img { animation: none; }
.holo[data-rarity=rare] .foil { background:
    repeating-linear-gradient(115deg, #0000 0%, #6ab8ff55 8%, #a8e6ff44 15%, #0000 24%) calc(var(--gx) * 1.4) calc(var(--gy) * 1.4) / 220% 220%,
    repeating-linear-gradient(25deg, #ffffff0c 0 2px, transparent 2px 5px); }
.holo[data-rarity=common] .foil { opacity: 0; }
.holo[data-rarity=common][data-pos=front] .foil { opacity: .35; background: linear-gradient(115deg, #0000 30%, #ffffff40 48%, #0000 66%) calc(var(--gx) * 1.4) 0 / 240% 100%; }
.gallery-count { min-width: 74px; text-align: center; }
.fan .holo img { background: #15161b; }

/* Background: two slow auras and a fine grain instead of the drifting lines. */
.ribbon { display: none; }
.backdrop { background: radial-gradient(120% 70% at 50% -10%, #1b1d26, transparent 60%), var(--page); }
.backdrop > .grain, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.nav, main { position: relative; z-index: 1; }
.nav { border-bottom-color: #ffffff12; }

/* Motion with a meaning only: the pay button shines once when the total changes (ready to pay), not on a loop. */
.buy::after { animation: none; }
.buy.ready::after { animation: shine .9s ease-out 1; }
.product:hover { transform: translateY(-2px); }

/* Smooth turns (19 Nov): the picture cross-fades, quick taps carry the motion on from where it is. */
.fan .holo img { transition: opacity .28s ease; }
.fan .holo { transition: transform .5s cubic-bezier(.25,.9,.3,1), opacity .35s ease, filter .35s ease; will-change: transform; }
.fan.dealt .holo[data-pos=front]:not(.live) { transition: transform .5s cubic-bezier(.25,.9,.3,1), opacity .35s ease, filter .35s ease; }
