/* ==========================================================================
   Sections
   ========================================================================== */

/* ---------- Header ----------
   Art direction 21.11.2026 (reference measured at 1440 px), shape 22.11.2026: a dark panel (#151027) hanging from
   the top of the screen, framed by a cream-gold hairline: the line runs along the very bottom of the bar (the line
   is where the header ends, nothing below it), rounds the bottom corners and leaves on a slant, up and out through
   the side edges of the screen, so the panel widens towards the top. Brand | nav | account and cart are split by
   two thin fading dividers that keep a fixed distance to the links; nothing is boxed. The active section: warm
   ivory text and a short hairline under the word, its ends fading out.
   The corners are fixed pieces (SVG: the slant 38° from the vertical, a 26px round, leaving the
   screen 26px from the top; 30°, 14px and 24px on the lower bar, where the logo sits closer
   to the edge and stays 7px clear of the line), the middle stretches. */
.site-header {
  --hdr-cw: 3rem;
  --hdr-line-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='72' viewBox='0 0 48 72'%3E%3Cpath d='M-20.54 0L27.51 61.51A26 26 0 0 0 48 71.5' fill='none' stroke='%23000' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --hdr-line-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='72' viewBox='0 0 48 72'%3E%3Cg transform='matrix(-1 0 0 1 48 0)'%3E%3Cpath d='M-20.54 0L27.51 61.51A26 26 0 0 0 48 71.5' fill='none' stroke='%23000' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E");
  --hdr-fill-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='72' viewBox='0 0 48 72'%3E%3Cpath d='M-20.54 0L27.51 61.51A26 26 0 0 0 48 71.5L48 0Z' fill='%23000'/%3E%3Cpath d='M-20.54 0L27.51 61.51A26 26 0 0 0 48 71.5' fill='none' stroke='%23000' stroke-opacity='.5' stroke-width='4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --hdr-fill-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='72' viewBox='0 0 48 72'%3E%3Cg transform='matrix(-1 0 0 1 48 0)'%3E%3Cpath d='M-20.54 0L27.51 61.51A26 26 0 0 0 48 71.5L48 0Z' fill='%23000'/%3E%3Cpath d='M-20.54 0L27.51 61.51A26 26 0 0 0 48 71.5' fill='none' stroke='%23000' stroke-opacity='.5' stroke-width='4' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E");
  position: fixed; inset: 0 0 auto; z-index: var(--z-header); height: var(--header-h);
  padding-top: env(safe-area-inset-top);
}
@media (max-width: 60rem) {
  .site-header {
    --hdr-cw: 1.625rem;
    --hdr-line-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='56' viewBox='0 0 26 56'%3E%3Cpath d='M-14.13 0L13.88 48.5A14 14 0 0 0 26 55.5' fill='none' stroke='%23000' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    --hdr-line-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='56' viewBox='0 0 26 56'%3E%3Cg transform='matrix(-1 0 0 1 26 0)'%3E%3Cpath d='M-14.13 0L13.88 48.5A14 14 0 0 0 26 55.5' fill='none' stroke='%23000' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E");
    --hdr-fill-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='56' viewBox='0 0 26 56'%3E%3Cpath d='M-14.13 0L13.88 48.5A14 14 0 0 0 26 55.5L26 0Z' fill='%23000'/%3E%3Cpath d='M-14.13 0L13.88 48.5A14 14 0 0 0 26 55.5' fill='none' stroke='%23000' stroke-opacity='.5' stroke-width='4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    --hdr-fill-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='56' viewBox='0 0 26 56'%3E%3Cg transform='matrix(-1 0 0 1 26 0)'%3E%3Cpath d='M-14.13 0L13.88 48.5A14 14 0 0 0 26 55.5L26 0Z' fill='%23000'/%3E%3Cpath d='M-14.13 0L13.88 48.5A14 14 0 0 0 26 55.5' fill='none' stroke='%23000' stroke-opacity='.5' stroke-width='4' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E");
  }
}
/* the panel: a layer of its own under the line, so it can follow the line's shape */
.site-header::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #140f26, #171329 50%, #140f26);
}
/* In Chromium and Safari (feature test: box-reflect) the panel ends at the line: outside it (the two wedges under the
   slants) the hero's top band in the art's colours shows; a soft dark rim of 1.5px outside the line
   keeps it readable on light art. Elsewhere the panel spans the whole bar and the line lies on it. */
@supports (-webkit-box-reflect: above) {
  .site-header::before {
    -webkit-mask:
      var(--hdr-fill-l) left bottom / var(--hdr-cw) var(--header-h) no-repeat,
      var(--hdr-fill-r) right bottom / var(--hdr-cw) var(--header-h) no-repeat,
      linear-gradient(#000 0 0) center / calc(100% - 2 * var(--hdr-cw) + 2px) 100% no-repeat,
      linear-gradient(#000 0 0) top / 100% calc(100% - var(--header-h)) no-repeat;
    mask:
      var(--hdr-fill-l) left bottom / var(--hdr-cw) var(--header-h) no-repeat,
      var(--hdr-fill-r) right bottom / var(--hdr-cw) var(--header-h) no-repeat,
      linear-gradient(#000 0 0) center / calc(100% - 2 * var(--hdr-cw) + 2px) 100% no-repeat,
      linear-gradient(#000 0 0) top / 100% calc(100% - var(--header-h)) no-repeat;
  }
}
/* the line: the two corner pieces and a 1px bottom line between them; cream gold all along, the ends as bright as
   the middle, so it reads on the light art outside it too */
.site-header::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #e2c88f, #f0dbaa 10%, #fbf1cb 50%, #f0dbaa 90%, #e2c88f);
  -webkit-mask:
    var(--hdr-line-l) left bottom / var(--hdr-cw) var(--header-h) no-repeat,
    var(--hdr-line-r) right bottom / var(--hdr-cw) var(--header-h) no-repeat,
    linear-gradient(#000 0 0) center bottom / calc(100% - 2 * var(--hdr-cw) + 2px) 1px no-repeat;
  mask:
    var(--hdr-line-l) left bottom / var(--hdr-cw) var(--header-h) no-repeat,
    var(--hdr-line-r) right bottom / var(--hdr-cw) var(--header-h) no-repeat,
    linear-gradient(#000 0 0) center bottom / calc(100% - 2 * var(--hdr-cw) + 2px) 1px no-repeat;
}
.site-header__in {
  position: relative; z-index: 1; max-width: none; height: 100%;
  padding-inline: var(--edge);
  display: flex; align-items: center; gap: clamp(12px, 2.4vw - 6px, 32px);
}
.site-header .brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; color: #f2f0f5; text-decoration: none; border-radius: 14px; }
.brand__art {
  flex: none; width: 3.25rem; height: 3.25rem; overflow: hidden; border-radius: 14px;
  box-shadow: 0 0 0 1px #f1e7bb, 0 0 0 2px rgba(10, 6, 21, .9), 0 6px 18px -6px rgba(5, 2, 12, .85), 0 0 16px -5px rgba(232, 199, 126, .35);
}
.brand__art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); transform-origin: 64% 32%; }
.brand__copy { display: grid; gap: 3px; min-width: 0; }
.site-header .brand__name { font-weight: 700; font-size: clamp(1.0625rem, .5rem + .95vw, 1.375rem); line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.brand__meta { color: #cdc8d9; font-size: clamp(.75rem, .25rem + .75vw, .9375rem); line-height: 1.15; }
/* The nav takes the free middle space; whether it is shown is decided by measuring (effects.js
   fitHeader): it collapses into the menu when its links do not fit, whatever their length. The dividers hang
   on the first and the last link (--hdr-div outside them) and stay inside the nav's padding, so they never
   count as overflow. */
.main-nav {
  --hdr-div: clamp(.75rem, 4.4vw - 27px, 2.25rem);
  display: flex; flex: 1 1 0; min-width: 0; align-items: center; justify-content: center;
  padding: 9px calc(var(--hdr-div) + 2px); overflow: hidden;
}
.main-nav a {
  --pad: clamp(.625rem, 2.9vw - 14px, 1.75rem);
  flex: none; position: relative; min-height: 44px; padding: 0 var(--pad); display: inline-flex; align-items: center;
  color: #e3dfea; font-size: clamp(.875rem, .5rem + .6vw, 1rem); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color 240ms var(--ease-out), text-shadow 240ms var(--ease-out);
}
.main-nav a:first-child::before, .main-nav a:last-child::before {
  content: ''; position: absolute; inset-block-start: 50%; translate: 0 -50%; inline-size: 1px; block-size: 1.75rem; pointer-events: none;
  background: linear-gradient(180deg, rgba(226, 204, 222, 0), rgba(226, 204, 222, .85) 50%, rgba(226, 204, 222, 0));
}
.main-nav a:first-child::before { inset-inline-start: calc(-1 * var(--hdr-div)); }
.main-nav a:last-child::before { inset-inline-end: calc(-1 * var(--hdr-div)); }
/* the active section: a short hairline right under the word (as wide as the text, its ends fading out), calm
   pink-lilac with a faint halo; it grows in from the middle, nothing around it moves */
.main-nav a::after {
  content: ''; position: absolute; inset-inline: calc(var(--pad) - .125rem); bottom: 7px; height: 1.5px; border-radius: 1px;
  background: linear-gradient(90deg, rgba(222, 166, 206, 0), rgba(222, 166, 206, .85) 20%, rgba(234, 186, 218, .95) 50%, rgba(222, 166, 206, .85) 80%, rgba(222, 166, 206, 0));
  box-shadow: 0 0 5px rgba(214, 140, 196, .28);
  opacity: 0; transform: scaleX(.6); transition: opacity 260ms var(--ease-out), transform 300ms var(--ease-out);
}
.main-nav a:hover { color: #f6f2f9; text-shadow: 0 0 10px rgba(241, 229, 196, .18); }
.main-nav a[aria-current="true"] { color: #f9ece9; text-shadow: 0 0 12px rgba(255, 214, 226, .14); }
.main-nav a[aria-current="true"]::after { opacity: 1; transform: none; }
.site-header__actions { display: flex; align-items: center; gap: clamp(.375rem, 2.2vw, 2rem); flex: none; margin-inline-start: auto; }
.hdr-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 12px; color: #ece9f1; background: none;
  transition: color var(--t-base), text-shadow var(--t-base), transform var(--t-fast);
}
.hdr-btn:hover { color: #fff; text-shadow: 0 0 12px rgba(241, 229, 196, .35); }
.hdr-btn:hover svg { filter: drop-shadow(0 0 6px rgba(241, 229, 196, .4)); }
.hdr-btn:active { transform: scale(.97); }
.hdr-btn svg { width: 22px; height: 22px; transition: filter var(--t-base); }
.hdr-btn--text { width: auto; padding-inline: 6px 8px; font-weight: 500; font-size: clamp(.875rem, .55rem + .5vw, 1rem); white-space: nowrap; }
/* only a long player ID is shortened (the full ID is in the button's accessible name and title); on mid-size
   screens a little more, so the nav keeps its place next to it */
.hdr-btn--text span.is-id { max-width: clamp(7ch, 7ch + (100vw - 960px) / 10, 12ch); overflow: hidden; text-overflow: ellipsis; }
/* cart count floats off the upper corner: white on the button pink (5:1), a ring of the band colour, a soft glow */
.hdr-btn .count-badge { top: -5px; inset-inline-end: -7px; background: var(--c-btn); color: #fff; box-shadow: 0 0 0 2px #161027, 0 0 12px rgba(234, 91, 154, .5); }
#menuBtn { display: none; }
.mobile-menu__nav { display: grid; align-content: start; gap: 2px; }
.mobile-menu__nav a { display: flex; align-items: center; min-height: 52px; padding: 0 12px; border-radius: var(--r-sm); font-family: var(--f-display); font-weight: 500; font-size: 1.075rem; text-decoration: none; }
.mobile-menu__nav a:hover, .mobile-menu__nav a:focus-visible { background: rgba(249,242,252,.06); }
.site-header[data-nav="compact"] .main-nav { display: none; }
.site-header[data-nav="compact"] #menuBtn { display: inline-flex; }
.site-header[data-fit="tight"] .brand__meta { display: none; }
.site-header[data-fit="tight"] .brand__name { white-space: normal; line-height: 1.05; } /* very large text on small screens: wrap rather than squeeze */
.site-header .brand { flex: 0 1 auto; }
.site-header[data-fit="tight"] .hdr-btn--text { width: 44px; padding: 0; }
.site-header[data-fit="tight"] .hdr-btn--text span { display: none; }
/* Before measuring (or without JS): a width-based guess in rem, so it follows the user's font size */
@media (max-width: 67.5rem) { .site-header:not([data-nav]) .main-nav { display: none; } .site-header:not([data-nav]) #menuBtn { display: inline-flex; } }
/* the lower bar (3.5rem): a smaller logo */
@media (max-width: 60rem) {
  .brand__art { width: 2.5rem; height: 2.5rem; border-radius: 12px; }
  .site-header .brand { gap: 12px; }
}
@media (max-width: 35rem) {
  .site-header__in { gap: 8px; }
  .site-header .brand { gap: 10px; }
  .site-header .brand__name { font-size: 1rem; }
  .site-header:not([data-fit]) .brand__meta { display: none; }
  .site-header:not([data-fit]) .hdr-btn--text { width: 44px; padding: 0; }
  .site-header:not([data-fit]) .hdr-btn--text span { display: none; }
  .site-header__actions { gap: 2px; }
}
/* Very short viewports (landscape phones, 200-400% zoom): fixed chrome would hide the content */
@media (max-height: 26rem) {
  .site-header { position: absolute; }
  .shop-nav { position: static; }
}

/* ---------- Hero ----------
   One illustration (owner's choice, 27.11.2026, "Pearl crescent"): the six original characters (pixel for pixel,
   a clean recut of the first artwork) on a pearl crescent moon in a plum night sky, open sky on the inline-start side
   for the copy. The whole cast is on screen at every size and zoom, never under the copy. No pointer effects.
   The art is 3548×2200 (ratio 1.6127); the moon group spans x .476–.93 (centre .703) and y .06–.77 of it.
   - Landscape screens: the art box fills the hero under the header; the scene is as tall as the box at most (so the
     group fits the first screen) and anchored at the inline-end edge; if the box is wider, the same sky continues
     (the box colour, the scene fades into it). The copy sits over the open sky with a soft shade behind it.
   - Portrait screens (phones, tablets, tall windows): the art box on top, sized from the width and capped by the
     height; the scene is as tall as the box and shifted so the group is centred (or the art's edge meets the box's
     inline-end edge); the copy below, over the fade under the moon.
   RTL mirrors the art so the group stays opposite the copy. Display type is fitted by fitWords. */
/* Behind the see-through corners of the header: a band in the colours of the art's top edge, so the corners never
   show the page black. */
.hero::before {
  content: ''; position: absolute; inset: 0 0 auto; block-size: calc(var(--header-h) + 2px); z-index: -1; pointer-events: none;
  background: linear-gradient(var(--to-inline-end), #10091f, #110820 40%, #201229 80%, #130a23);
}
.hero {
  --hero-h: clamp(36rem, 88svh, 72rem);
  position: relative; overflow: hidden; isolation: isolate; background: var(--c-bg);
  display: grid;
  grid-template-columns: var(--edge) minmax(0, 1fr) var(--edge);
  grid-template-rows: auto auto;
}
/* The art starts under the header bar; its size is a query container for the scene. The box colour is the art's own
   sky at its inline-start edge, so a scene narrower than the box continues seamlessly. */
.hero__art {
  grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 0; display: block; overflow: hidden;
  container-type: size;
  margin-block-start: var(--header-h);
  background: linear-gradient(180deg, #110a20, #110922 40%, #180c28 70%, #0e091e);
  /* stacked: from the width (the group is ~75 % of the box height wide, so it fills ~88 % of a phone's width),
     capped by the screen height on tablets, so the copy is in the first screen too */
  block-size: min(112vw, 61svh);
  /* the art dissolves into the page under the moon along an eased curve (the cast ends at 76 % of the art) */
  -webkit-mask-image: linear-gradient(180deg, #000 80%, rgba(0, 0, 0, 0.985) 81.6%, rgba(0, 0, 0, 0.94) 83.4%, rgba(0, 0, 0, 0.86) 85.4%, rgba(0, 0, 0, 0.74) 87.6%, rgba(0, 0, 0, 0.6) 89.8%, rgba(0, 0, 0, 0.45) 92%, rgba(0, 0, 0, 0.31) 94%, rgba(0, 0, 0, 0.19) 95.8%, rgba(0, 0, 0, 0.1) 97.4%, rgba(0, 0, 0, 0.04) 98.8%, rgba(0, 0, 0, 0.01) 99.6%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 80%, rgba(0, 0, 0, 0.985) 81.6%, rgba(0, 0, 0, 0.94) 83.4%, rgba(0, 0, 0, 0.86) 85.4%, rgba(0, 0, 0, 0.74) 87.6%, rgba(0, 0, 0, 0.6) 89.8%, rgba(0, 0, 0, 0.45) 92%, rgba(0, 0, 0, 0.31) 94%, rgba(0, 0, 0, 0.19) 95.8%, rgba(0, 0, 0, 0.1) 97.4%, rgba(0, 0, 0, 0.04) 98.8%, rgba(0, 0, 0, 0.01) 99.6%, transparent 100%);
}
/* a backstop under the mask: the last fifth always reaches the page colour, even where the mask is not drawn */
.hero__art::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 9, 23, 0) 88%, rgba(13, 9, 23, 0.015) 89.0%, rgba(13, 9, 23, 0.060) 90.0%, rgba(13, 9, 23, 0.140) 91.2%, rgba(13, 9, 23, 0.260) 92.6%, rgba(13, 9, 23, 0.400) 93.9%, rgba(13, 9, 23, 0.550) 95.2%, rgba(13, 9, 23, 0.690) 96.4%, rgba(13, 9, 23, 0.810) 97.5%, rgba(13, 9, 23, 0.900) 98.4%, rgba(13, 9, 23, 0.960) 99.3%, rgba(13, 9, 23, 0.990) 99.8%, var(--c-bg) 100.0%);
}

/* ---- Living art ----
   The scene is the illustration's own coordinate space (3548×2200); inside the plate everything is placed in image
   coordinates (direction: ltr); RTL mirrors the whole plate. Depth: far (illustration, its painted stars, shooting
   stars) < near (the crescent moon with the cast and the gifts). The near layer is a copy of the same pixels with a
   soft mask that reaches out into open sky: at rest it is indistinguishable from the illustration, so it may load
   late; it floats a few pixels, never more than its soft margin. A slow "breath" keeps the scene slightly
   overscanned. Motion: transform and opacity only, paused off screen (hero-scene.js). */
.hero__scroll { position: absolute; inset: 0; }
.hero__scene {
  position: absolute; inset-block-start: 0;
  block-size: 100cqh; inline-size: calc(100cqh * 1.6127);
  /* the group (centre at .703 of the art) always in the middle of the box; where the art ends inside the box (a wide
     tablet), its edges melt into the box colour, the same sky */
  inset-inline-start: calc(50cqw - 113.38cqh);
  -webkit-mask-image: linear-gradient(var(--to-inline-end), transparent, #000 4%, #000 97%, transparent);
  mask-image: linear-gradient(var(--to-inline-end), transparent, #000 4%, #000 97%, transparent);
  transform: scale(1.03); transform-origin: 70% 45%;
  animation: heroBreathe 34s ease-in-out 1.6s infinite alternate both;
}
[dir="rtl"] .hero__scene { transform-origin: 30% 45%; }
@keyframes heroBreathe { from { transform: scale(1.03); } to { transform: scale(1.06); } }
.hero__plate { position: absolute; inset: 0; direction: ltr; animation: heroArt 1.6s var(--ease-out) both; }
[dir="rtl"] .hero__plate { scale: -1 1; }
@keyframes heroArt { from { opacity: 0; transform: scale(1.045); } }
.hero__depth { position: absolute; inset: 0; }
.hero__base { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; max-inline-size: none; }
/* near layer: the box of its soft mask in the art (x 1654–3341, y 137–1785 of 3548×2200) */
.hero__cast { position: absolute; inset-block-start: 6.227%; inset-inline-start: 46.618%; inline-size: 47.576%; block-size: 74.955%; max-inline-size: none; opacity: 0; transition: opacity .8s ease; }
.hero__float { position: absolute; inset: 0; }
.hero__art.is-live .hero__cast { opacity: 1; }
/* the moon floats: a few pixels up and down, a hair sideways, never in step with the breath */
.hero__art.is-live .hero__float { animation: heroFloat 9s ease-in-out infinite; }
@keyframes heroFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  30% { transform: translate3d(.08%, -.3%, 0); }
  55% { transform: translate3d(0, -.42%, 0); }
  80% { transform: translate3d(-.08%, -.18%, 0); }
}

/* far and near effects */
.hero__fx { position: absolute; inset: 0; pointer-events: none; }
/* a four-point star: soft core and two rays */
.hero__star {
  position: absolute; inline-size: calc(var(--s, 1) * .55%); aspect-ratio: 1; translate: -50% -50%; opacity: 0;
  background: radial-gradient(circle, #fff 0 9%, rgba(255, 236, 214, .85) 16%, rgba(255, 190, 220, .22) 34%, transparent 62%);
}
.hero__star::before, .hero__star::after { content: ''; position: absolute; border-radius: 50%; }
.hero__star::before { inset: 47% -60%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .92) 50%, transparent); }
.hero__star::after { inset: -60% 47%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .92) 50%, transparent); }
.hero__twinkle { animation: heroTwinkle var(--d, 5s) ease-in-out var(--delay, 0s) infinite; }
@keyframes heroTwinkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  45% { opacity: var(--o, .9); transform: scale(1) rotate(12deg); }
  62% { opacity: calc(var(--o, .9) * .55); transform: scale(.8) rotate(18deg); }
}
/* soft light in the two glass orbs (near layer, they float with the cast); it must not outshine the faces */
.hero__glow {
  position: absolute; inline-size: calc(var(--s, 3) * 1%); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--c, rgba(196, 150, 255, .95)), transparent 72%); mix-blend-mode: screen;
  animation: heroPulse var(--d, 4s) ease-in-out var(--delay, 0s) infinite alternate;
}
@keyframes heroPulse { from { opacity: .28; transform: scale(.86); } to { opacity: .85; transform: scale(1.1); } }
/* a rare shooting star (hero-scene.js picks the moment and the place) */
.hero__meteor { position: absolute; inline-size: 0; block-size: 0; }
.hero__meteor i {
  position: absolute; inset-inline-end: 0; inset-block-start: -1px; block-size: 2px; inline-size: var(--len, 110px); border-radius: 2px; opacity: 0;
  transform-origin: 100% 50%; background: linear-gradient(90deg, transparent, rgba(255, 196, 226, .4) 50%, rgba(255, 255, 255, .98));
  box-shadow: 0 0 12px 2px rgba(255, 190, 220, .4);
}
.hero__meteor i::after { content: ''; position: absolute; inset-inline-end: -4px; inset-block-start: -4px; inline-size: 10px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0 25%, rgba(255, 210, 230, .7) 45%, transparent 70%); }
/* off screen or in a hidden tab nothing moves */
.hero__art.is-paused .hero__scene, .hero__art.is-paused .hero__scene *, .hero__art.is-paused .hero__scene *::before, .hero__art.is-paused .hero__scene *::after { animation-play-state: paused !important; }
/* the page scrolls a little faster than the art (no script: scroll-driven animation where supported) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero__scroll { animation: heroScroll linear both; animation-timeline: scroll(root block); animation-range: 0 100vh; }
  }
}
@keyframes heroScroll { to { transform: translate3d(0, 14%, 0); } }
/* reduced motion: the still illustration, nothing on top of it */
@media (prefers-reduced-motion: reduce) {
  .hero__fx, .hero__cast { display: none; }
  .hero__scene, .hero__plate { animation: none; }
}
.hero__content.wrap { grid-column: 2; grid-row: 2; width: auto; max-width: none; margin: -4.5rem 0 0; padding: 0 0 clamp(34px, 6vw, 54px); }
.hero__content { position: relative; z-index: 4; min-width: 0; }
.hero__copy { max-inline-size: 40rem; }
/* fluid by width, and by height on short screens (landscape phones, zoom) */
.hero__title { max-width: 12ch; font-family: var(--f-display); font-size: min(clamp(2.2rem, 6vw, 4.9rem), 13svh); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; text-shadow: 0 2px 30px rgba(13,9,23,.55); }
.hero__tagline { margin-top: 14px; color: #f6bfda; font-size: clamp(1.1rem, .98rem + .45vw, 1.35rem); font-weight: 600; text-shadow: 0 1px 18px rgba(13,9,23,.6); }
.hero__lead { max-width: 48ch; margin-top: 12px; color: #d9cde6; font-size: clamp(1rem, .96rem + .2vw, 1.1rem); line-height: 1.55; text-shadow: 0 1px 14px rgba(13,9,23,.7); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 26px; }
.btn--hero { min-height: 54px; padding-inline: 30px; border-radius: 12px; color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0) 60%), var(--c-btn); box-shadow: inset 0 0 0 1px rgba(255,236,246,.16), inset 0 1px 0 rgba(255,255,255,.2), 0 14px 28px -20px rgba(194,59,120,.7); }
.btn--hero:hover { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0) 60%), #d04a86; }
.hero__link { display: inline-flex; align-items: center; min-height: 44px; color: #e6dcef; font-size: .95rem; font-weight: 650; text-decoration-thickness: 1px; text-decoration-color: rgba(230,220,239,.5); text-underline-offset: 6px; }
.hero__link:hover { color: var(--c-text); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; list-style: none; }
.hero__facts li { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--c-text-3); font-size: .74rem; line-height: 1.25; }
.hero__facts svg { width: 18px; height: 18px; color: #d8c5e6; flex: none; }
.hero__facts span { display: grid; min-width: 0; }
.hero__facts b { color: var(--c-text); font-size: .78rem; font-weight: 700; }
.hero__title, .hero__tagline, .hero__lead, .hero__cta, .hero__facts { animation: rise .7s var(--ease-out) both; }
.hero__title { animation-delay: 250ms; } .hero__tagline { animation-delay: 310ms; } .hero__lead { animation-delay: 370ms; } .hero__cta { animation-delay: 430ms; } .hero__facts { animation-delay: 490ms; }
@keyframes rise { from { opacity: 0; translate: 0 14px; } }
@media (max-width: 35rem) {
  .hero__lead { font-size: .95rem; }
  .hero__cta { margin-top: 22px; }
  .hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
  .hero__facts li { align-items: flex-start; color: #b9abc9; }
  .hero__facts span { font-size: .72rem; }
  .hero__facts b { font-size: .76rem; }
}
/* Side by side on landscape screens (phones turned, laptops at any zoom); tall screens, tablets in portrait included,
   stack the art over the copy (rem: follows the user's font size) */
@media (orientation: landscape) and (min-width: 26rem) {
  .hero {
    /* as tall as the art at this width, but never taller than the screen: the whole group stays in the first screen */
    min-height: calc(var(--header-h) + min(62vw, 100svh - var(--header-h)));
    grid-template-columns: var(--edge) minmax(0, 1fr) minmax(0, 1.1fr) var(--edge);
    grid-template-rows: var(--header-h) 1fr;
  }
  .hero__art { position: absolute; inset: var(--header-h) 0 0; block-size: auto; margin: 0; }
  .hero__art::after {
    background:
      linear-gradient(var(--to-inline-end), rgba(13,9,23,.72) 0%, rgba(13,9,23,.5) 26%, rgba(13,9,23,.12) 46%, rgba(13,9,23,0) 56%),
      linear-gradient(180deg, rgba(13, 9, 23, 0) 88%, rgba(13, 9, 23, 0.015) 89.0%, rgba(13, 9, 23, 0.060) 90.0%, rgba(13, 9, 23, 0.140) 91.2%, rgba(13, 9, 23, 0.260) 92.6%, rgba(13, 9, 23, 0.400) 93.9%, rgba(13, 9, 23, 0.550) 95.2%, rgba(13, 9, 23, 0.690) 96.4%, rgba(13, 9, 23, 0.810) 97.5%, rgba(13, 9, 23, 0.900) 98.4%, rgba(13, 9, 23, 0.960) 99.3%, rgba(13, 9, 23, 0.990) 99.8%, var(--c-bg) 100.0%);
  }
  .hero__art {
    -webkit-mask-image: linear-gradient(180deg, #000 86%, rgba(0, 0, 0, 0.985) 87.1%, rgba(0, 0, 0, 0.94) 88.4%, rgba(0, 0, 0, 0.86) 89.8%, rgba(0, 0, 0, 0.74) 91.3%, rgba(0, 0, 0, 0.6) 92.9%, rgba(0, 0, 0, 0.45) 94.4%, rgba(0, 0, 0, 0.31) 95.8%, rgba(0, 0, 0, 0.19) 97.1%, rgba(0, 0, 0, 0.1) 98.2%, rgba(0, 0, 0, 0.04) 99.2%, rgba(0, 0, 0, 0.01) 99.7%, transparent 100.0%);
    mask-image: linear-gradient(180deg, #000 86%, rgba(0, 0, 0, 0.985) 87.1%, rgba(0, 0, 0, 0.94) 88.4%, rgba(0, 0, 0, 0.86) 89.8%, rgba(0, 0, 0, 0.74) 91.3%, rgba(0, 0, 0, 0.6) 92.9%, rgba(0, 0, 0, 0.45) 94.4%, rgba(0, 0, 0, 0.31) 95.8%, rgba(0, 0, 0, 0.19) 97.1%, rgba(0, 0, 0, 0.1) 98.2%, rgba(0, 0, 0, 0.04) 99.2%, rgba(0, 0, 0, 0.01) 99.7%, transparent 100.0%);
  }
  /* as wide as the box, or as tall as it or the screen (whichever is smaller), at the inline-end edge; its
     inline-start edge melts into the box colour when the box is wider */
  .hero__scene {
    /* never taller than the screen under the header, even when a long copy makes the hero taller */
    inline-size: min(100cqw, 161.27cqh, (100svh - var(--header-h)) * 1.6127); block-size: auto; aspect-ratio: 3548 / 2200;
    inset-inline-start: auto; inset-inline-end: 0;
    -webkit-mask-image: linear-gradient(var(--to-inline-end), transparent, #000 9%);
    mask-image: linear-gradient(var(--to-inline-end), transparent, #000 9%);
  }
  .hero__content.wrap { grid-column: 2; grid-row: 2; align-self: center; margin: 0; padding-block: 1.5rem 4.5rem; }
}
/* a very small landscape window (a laptop at 300 % zoom): the copy column gets more of the width, so the display
   words fit whole */
@media (orientation: landscape) and (min-width: 26rem) and (max-width: 33.99rem) {
  .hero { grid-template-columns: var(--edge) minmax(0, 1.45fr) minmax(0, .85fr) var(--edge); }
  /* the group stays clear of the wider copy: it starts at .476 of the scene, the copy column ends near 62 % */
  .hero__scene { inline-size: min(68cqw, (100svh - var(--header-h)) * 1.6127); }
}
@media (orientation: landscape) and (max-height: 33rem) {
  .hero__content.wrap { padding-block: 1rem 2rem; }
}

/* ---------- Rewards ---------- */
.rewards { background: linear-gradient(180deg, var(--c-bg), #140c25 60%, var(--c-bg)); }
.rewards__in { display: grid; grid-template-columns: minmax(min(100%, 17.5rem), 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.rewards__head { display: grid; gap: var(--s-4); align-content: start; }
.rewards__status { margin-top: 8px; display: grid; gap: 12px; justify-items: start; }
.rewards__track {
  list-style: none; display: grid; gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr);
  grid-template-rows: repeat(2, auto);
}
.day {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 140px; padding: 16px 10px;
  border-radius: var(--r-md); text-align: center;
  background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface));
  box-shadow: inset 0 0 0 1px var(--c-border-soft), var(--shadow-1);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.day__label { font-size: var(--fs-xs); font-weight: 600; color: var(--c-text-3); }
.day__art { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(120,221,235,.35)); transition: transform var(--t-slow) var(--ease-out), filter var(--t-slow); }
.day__name { font-weight: 700; font-size: var(--fs-sm); }
.day__state { position: absolute; top: 10px; inset-inline-end: 10px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.day__state svg { width: 14px; height: 14px; }
.day.is-claimed { opacity: .72; }
.day.is-claimed .day__art { filter: grayscale(.4) brightness(.8); }
.day.is-claimed .day__state { background: var(--c-success); color: #0f2a1d; }
.day.is-locked .day__art { opacity: .55; }
.day.is-locked .day__state { color: var(--c-text-3); }
.day.is-today {
  background: radial-gradient(80% 60% at 50% 30%, rgba(234, 91, 154, .28), transparent 70%), linear-gradient(180deg, #3a2150, var(--c-surface));
  box-shadow: inset 0 0 0 2px var(--c-pink), 0 18px 40px -18px rgba(234, 91, 154, .7);
}
.day.is-today .day__label { color: #ffb6d6; }
.day.is-today .day__art { transform: translateY(-2px) scale(1.06); }
.day--special {
  grid-column: 4; grid-row: 1 / span 2; min-height: 100%; gap: 12px;
  background:
    radial-gradient(70% 50% at 50% 35%, rgba(232, 199, 126, .25), transparent 70%),
    linear-gradient(180deg, #3a2a3f, #261836);
  box-shadow: inset 0 0 0 1px rgba(232, 199, 126, .45), var(--glow-gold);
}
.day--special .day__art { width: 96px; height: 96px; filter: drop-shadow(0 0 22px rgba(232, 199, 126, .55)); }
.day--special .day__name { font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; color: var(--c-gold-2); }
.day--special .day__label { color: var(--c-gold); }
.day.is-burst .day__art { animation: claimPop .7s var(--ease-out); }
.day.is-burst::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(120, 221, 235, .55), transparent 60%);
  animation: flash .8s ease-out forwards;
}
.rewards.is-preview .rewards__track { opacity: .72; }
.rewards.is-preview .day { background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-border-soft); }
.rewards.is-preview .day--special { background: linear-gradient(180deg, #2b2131, #20172c); }
@keyframes claimPop { 40% { transform: scale(1.25) rotate(-6deg); } }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 960px) {
  .rewards__in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rewards__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .day { min-height: 118px; padding: 12px 6px; }
  .day:not(.day--special) { padding-block-start: 30px; } /* the state badge sits above the label, not on it */
  .day__state { top: 6px; inset-inline-end: 6px; }
  .day__art { width: 42px; height: 42px; }
  .day--special { grid-column: 1 / -1; grid-row: auto; grid-template-columns: 72px auto; justify-content: center; justify-items: start; column-gap: 16px; text-align: start; min-height: 104px; }
  .day--special .day__art { width: 72px; height: 72px; grid-row: 1 / span 2; grid-column: 1; }
  .day--special .day__label, .day--special .day__name { grid-column: 2; }
}

/* ---------- Shop ---------- */
.shop { padding-top: var(--section-y); }
.shop-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(min(100%, 22.5rem), .8fr); gap: clamp(32px, 6vw, 88px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.shop-intro .section-head { margin: 0; }
.shop-guide { list-style: none; display: grid; gap: 0; border-block: 1px solid var(--c-border-soft); }
.shop-guide li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 14px; align-items: start; padding: 15px 0; border-bottom: 1px solid var(--c-border-soft); }
.shop-guide li:last-child { border: 0; }
.shop-guide > li > span { color: var(--c-pink); font-family: var(--f-display); font-size: .78rem; }
.shop-guide div { display: grid; gap: 3px; }
.shop-guide b { font-size: .92rem; }
.shop-guide small { color: var(--c-text-3); line-height: 1.45; }
@media (max-width: 60rem) { .shop-intro { grid-template-columns: 1fr; } }
/* category nav (.shop-nav, .cat-chip): see "Currency shop" at the end of this file */

.shop__sections { display: grid; gap: clamp(56px, 6vw, 96px); container-type: inline-size; }
.shop__state { display: flex; align-items: center; gap: 12px; padding: 40px 0; color: var(--c-text-2); }
.shop__state--error { color: var(--c-danger); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(249,242,252,.2); border-top-color: var(--c-pink); animation: spin .8s linear infinite; }
.shop-cat { scroll-margin-top: calc(var(--header-h) + 80px); }
.shop-cat__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 16px; margin-bottom: var(--s-5); }
.shop-cat__icon { inline-size: 3.5rem; block-size: 3.5rem; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(120, 90, 255, .35)); }
.shop-cat__titles { display: grid; gap: 4px; min-width: 0; }
.shop-cat__head h3 { min-width: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); letter-spacing: -.015em; }
.shop-cat__head p { color: var(--c-text-3); max-width: 52ch; }
/* Wide shop: the category name and its currency stand in a column of their own, the packs fill the rest
   (no half-empty rows next to a lone heading) */
@container (min-width: 60rem) {
  .shop-cat:not(.cur-sec) { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0 clamp(28px, 4cqi, 64px); align-items: start; }
  .shop-cat:not(.cur-sec) .shop-cat__head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 14px; margin: 0; padding-block-start: 4px; }
  .shop-cat:not(.cur-sec) .shop-cat__icon { inline-size: 5.5rem; block-size: 5.5rem; }
}

/* Starter feature offer */
.feature-offer {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--r-xl);
  background:
    radial-gradient(70% 90% at 0% 100%, rgba(234, 91, 154, .28), transparent 60%),
    radial-gradient(60% 80% at 100% 0%, rgba(120, 221, 235, .12), transparent 60%),
    linear-gradient(135deg, #2e1a46, #1d1131);
  box-shadow: inset 0 0 0 1px rgba(234, 91, 154, .28), var(--shadow-2);
}
.feature-offer__art { position: relative; display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); min-height: 320px; }
.feature-offer__art::before { content: ''; position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(closest-side, rgba(120, 221, 235, .25), transparent); filter: blur(10px); }
.feature-offer__art img { position: relative; width: min(100%, 460px); border-radius: var(--r-lg); box-shadow: 0 30px 60px -24px rgba(5,2,12,.9); transform: rotate(-3deg); transition: transform var(--t-slow) var(--ease-out); }
.feature-offer:hover .feature-offer__art img { transform: rotate(-1.5deg) scale(1.02); }
.feature-offer__body { display: grid; align-content: center; gap: 18px; min-width: 0; padding-block: clamp(24px, 4vw, 52px); padding-inline: 0 clamp(24px, 4vw, 52px); }
.feature-offer__body h4 { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-lg); letter-spacing: -.02em; line-height: 1.1; }
.feature-offer__body > p { color: var(--c-text-2); max-width: 46ch; }
.value-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.value-list li { display: inline-flex; align-items: center; gap: 10px; padding-block: 8px; padding-inline: 8px 14px; border-radius: var(--r-pill); background: rgba(16,10,30,.45); box-shadow: inset 0 0 0 1px var(--c-border-soft); font-weight: 700; }
.value-list img { width: 32px; height: 32px; object-fit: contain; }
.feature-offer__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.price-xl { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.feature-offer__note { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--c-text-3); }
.feature-offer__note svg { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .feature-offer { grid-template-columns: 1fr; }
  .feature-offer__art { min-height: 0; padding-bottom: 0; }
  .feature-offer__body { padding: 24px; }
}

/* Story cards: cover and commerce information are separate layers. */
.story-cards { display: grid; gap: clamp(10px, 2cqi, 16px); grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(9.5rem, 24cqi, 15.5rem)), 1fr)); }
.s-card { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; min-width: 0; border-radius: var(--r-md); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-border-soft), var(--shadow-1); transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base); }
.s-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(234,91,154,.38), var(--shadow-2); }
.s-card__media { position: relative; overflow: hidden; background: #16101f; }
.s-card__media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.s-card:hover .s-card__media > img { transform: scale(1.025); }
.s-card__media .badge { position: absolute; top: 12px; inset-inline-start: 12px; max-inline-size: calc(100% - 24px); background: rgba(13,9,23,.84); color: var(--c-text); backdrop-filter: blur(6px); }
.s-card__body { display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 16px; }
.s-card__type { color: var(--c-pink); font-size: .72rem; font-weight: 700; }
.s-card__title { font-family: var(--f-display); font-weight: 500; font-size: 1rem; line-height: 1.25; letter-spacing: -.01em; }
.s-card__body > p { color: var(--c-text-3); font-size: .8rem; }
.s-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }

.kicker--gold { color: var(--c-gold); }

/* ---------- Premium ---------- */
/* The hairline frame keeps a gap from the content at every width, browser zoom included: on narrow screens the frame
   moves out toward the screen edge (--frame-x, down to 8px) and the content steps in to keep --frame-gap, so the line
   never runs into the step circles, the lead or the lot cards. From ~700px up the content keeps the usual gutter. */
.premium { overflow: hidden; isolation: isolate; --frame-x: clamp(8px, 2vw, 16px); --frame-gap: 12px; }
.premium > .wrap { padding-inline: max(var(--gutter), calc(var(--frame-x) + var(--frame-gap))); }
.premium__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 30% at 50% 0%, rgba(232, 199, 126, .16), transparent 70%),
    linear-gradient(180deg, var(--c-bg), #0d0818 25%, #0d0818 75%, var(--c-bg));
}
.premium__bg::before { /* hairline frame */
  content: ''; position: absolute; inset: 40px max(var(--frame-x), calc((100vw - var(--maxw)) / 2 - 24px)); border-radius: 48px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(232,199,126,.35), rgba(232,199,126,0) 40%, rgba(232,199,126,0) 70%, rgba(232,199,126,.2)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
}
.ornament { display: block; width: 120px; height: 14px; margin-bottom: 4px;
  background:
    linear-gradient(90deg, transparent, var(--c-gold) 40%, transparent 40% 60%, var(--c-gold) 60%, transparent) center / 100% 1px no-repeat,
    linear-gradient(45deg, transparent 42%, var(--c-gold) 42% 58%, transparent 58%) center / 14px 14px no-repeat;
}
.premium__head .t-display { background: linear-gradient(180deg, #fff6df, var(--c-gold) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 auto clamp(40px, 5vw, 72px); max-width: 1080px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 20px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(232,199,126,.5), transparent); }
.timeline li { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 6px; } /* titles in one line whatever the length of the text under them */
.timeline__n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 6px; background: #1a1128; box-shadow: inset 0 0 0 1px rgba(232,199,126,.6); color: var(--c-gold); font-family: var(--f-display); font-weight: 500; }
.timeline b { font-size: 1rem; }
.timeline span:last-child { font-size: var(--fs-sm); color: var(--c-text-3); max-width: 24ch; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 0; max-width: 460px; }
  .timeline::before { top: 20px; bottom: 20px; inset-inline: 19px auto; width: 1px; height: auto; background: linear-gradient(180deg, rgba(232,199,126,.5), rgba(232,199,126,.1)); }
  .timeline li { grid-template-columns: 40px minmax(0, 1fr); justify-items: start; text-align: start; column-gap: 16px; padding-bottom: 20px; }
  .timeline__n { grid-row: span 2; margin: 0; }
}

.lots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.lots__group { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-block-start: 18px; }
.lots__group:first-child { margin-block-start: 0; }
.lots__group h3 { font-family: var(--f-display); font-size: var(--fs-lg); color: var(--c-gold-2); }
.lots__group p { color: var(--c-text-2); }
.lots-howto { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: start; margin-block-start: 28px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: rgba(16, 10, 30, .55); box-shadow: inset 0 0 0 1px rgba(232, 199, 126, .22); }
.lots-howto h3 { font-family: var(--f-display); font-size: var(--fs-md); }
.lots-howto ol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-inline-start: 1.4em; color: var(--c-text-2); }
/* Lot cards: one template for every lot (art direction 21.11.2026, the outfit card is the model).
   The grid sizes are unchanged; the shell is shared: a hairline champagne frame (brighter at the top), vines in
   the top corners and a small cut gem set into the top line (sprite #i-orn-*), one gold divider with the same gem
   between the description and the price, a champagne price and a cream-gold "Details". The gem crosses the top
   edge, so the card does not clip its overflow: the art clips itself to the card's rounded corners.
   Hover is quiet: the frame and the ornaments warm up, the halo grows a little; nothing moves, only a still image
   zooms by 2 % very slowly. Featured lots (lot--legend) also frame their price with laurels. */
.lot {
  --frame: linear-gradient(180deg, rgba(243, 226, 182, .9), rgba(216, 188, 121, .42) 26%, rgba(216, 188, 121, .24) 56%, rgba(216, 188, 121, .3) 84%, rgba(232, 206, 150, .48));
  --lot-ease: cubic-bezier(.22, 1, .36, 1);
  /* A dark vignette over the art, deepest in the top corners under the gold vines and light along the edges:
     the ornaments always read as light gold on dark, whatever the art; the middle of the picture stays as it is. */
  --vignette:
    radial-gradient(150px 130px at 0 0, rgba(14, 8, 26, .85), rgba(14, 8, 26, .55) 40%, rgba(14, 8, 26, .16) 75%, rgba(14, 8, 26, 0)),
    radial-gradient(150px 130px at 100% 0, rgba(14, 8, 26, .85), rgba(14, 8, 26, .55) 40%, rgba(14, 8, 26, .16) 75%, rgba(14, 8, 26, 0)),
    linear-gradient(90deg, rgba(14, 8, 26, .32), rgba(14, 8, 26, 0) 12% 88%, rgba(14, 8, 26, .32)),
    linear-gradient(180deg, rgba(14, 8, 26, .28), rgba(14, 8, 26, 0) 16%);
  /* Cards in a row share its height: the art takes the slack, the text stays one compact block at the
     bottom (art → badges → title → description → price), so no hole opens above the price. */
  position: relative; grid-column: span 4; display: grid; grid-template-rows: 1fr auto; border-radius: var(--r-lg);
  background: radial-gradient(120% 55% at 50% 100%, rgba(98, 30, 72, .2), transparent 70%), linear-gradient(180deg, #221433, #150c22);
  text-align: start; color: inherit; border: 0; padding: 0;
  box-shadow: var(--shadow-2), 0 0 26px -12px rgba(216, 188, 121, .3);
  transition: box-shadow 280ms var(--lot-ease);
}
.lot::before { /* gold hairline frame */
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--frame); opacity: .85; transition: opacity 280ms var(--lot-ease);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.lot:hover { box-shadow: var(--shadow-2), 0 0 32px -10px rgba(216, 188, 121, .42); }
.lot:hover::before { opacity: 1; }
.lot__media { position: relative; overflow: hidden; border-start-start-radius: var(--r-lg); border-start-end-radius: var(--r-lg); }
.lot__media::before { content: ''; display: block; padding-block-start: 75%; } /* 4:3 at least, taller when the row has room */
.lot__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--lot-ease); }
.lot:hover .lot__media > img { transform: scale(1.02); }
.lot__media::after { content: ''; position: absolute; inset: 0; background: var(--vignette), linear-gradient(180deg, rgba(16,10,30,0) var(--fade, 40%), #1b1029 100%); } /* --fade: per lot (shop-config.js) */
/* frame ornaments */
.lot__ornaments { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: .88; transition: opacity 280ms var(--lot-ease); }
.lot:hover .lot__ornaments { opacity: 1; }
.lot__ornaments svg { position: absolute; overflow: visible; filter: drop-shadow(0 0 2.5px rgba(216, 188, 121, .3)); }
.lot__corner { inset-block-start: 0; inset-inline-start: 0; inline-size: 44px; block-size: 44px; scale: var(--dir-x) 1; }
.lot__corner--end { inset-inline-start: auto; inset-inline-end: 0; scale: calc(-1 * var(--dir-x)) 1; }
/* the gem sits on the top line of the frame (its line at y = 10.5 of 20 meets the card edge) */
.lot__apex { inset-block-start: -10px; inset-inline-start: 50%; margin-inline-start: -48px; inline-size: 96px; block-size: 20px; }
/* The body is a grid item: z-index lifts it over the media without making it a containing block, so the
   title button's ::after can stretch over the whole card (one click target, valid HTML around the
   outfit carousel's own buttons). */
.lot__body { z-index: 1; display: grid; align-content: end; gap: 8px; min-width: 0; padding: 0 22px 20px; margin-top: -28px; }
.lot__open { display: block; inline-size: 100%; min-block-size: 1.5rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: inherit; cursor: pointer; }
.lot__open::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.lot__open:focus-visible { outline: none; }
.lot:has(.lot__open:focus-visible) { outline: 2px solid var(--c-cyan); outline-offset: 3px; }
.lot__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.lot__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-md); line-height: 1.15; letter-spacing: -.015em; }
.lot__lead { color: var(--c-text-2); font-size: var(--fs-sm); }
/* the one divider: a hairline fading at both ends, a small cut gem with two dots in the middle */
.lot__foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 4px; padding-top: 13px; }
.lot__divider { position: absolute; inset-inline: 0; inset-block-start: -8px; block-size: 16px; display: grid; place-items: center; pointer-events: none; }
.lot__divider::before {
  content: ''; position: absolute; inset-inline: 0; inset-block-start: 50%; block-size: 1px;
  background: linear-gradient(90deg, rgba(216, 188, 121, 0), rgba(216, 188, 121, .32) 24%, rgba(216, 188, 121, .32) 76%, rgba(216, 188, 121, 0));
}
.lot__divider-orn { position: relative; inline-size: 64px; block-size: 16px; filter: drop-shadow(0 0 3px rgba(216, 188, 121, .35)); }
/* price: champagne, lit from above, a crisp edge and a soft warm glow */
.lot__price {
  font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff8e8 8%, #f0dcab 52%, #caa565); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(12, 6, 20, .55)) drop-shadow(0 0 14px rgba(226, 190, 120, .2));
}
/* "Details": cream gold, a hairline that glows in the middle and fills in on hover, the arrow steps 3 px forward */
.lot__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; letter-spacing: .01em; color: #ead7a4; transition: color 220ms var(--lot-ease); }
.lot__more-text {
  padding-block-end: 2px;
  background:
    linear-gradient(90deg, rgba(216, 188, 121, .12), rgba(232, 199, 126, .6) 50%, rgba(216, 188, 121, .12)) 0 100% / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) calc(100% - var(--pos-inline-end)) 100% / 0 1px no-repeat;
  transition: background-size 240ms var(--lot-ease), text-shadow 240ms var(--lot-ease);
}
.lot__more svg { width: 16px; height: 16px; transition: translate 220ms var(--lot-ease); }
.lot:is(:hover, :has(.lot__open:focus-visible)) .lot__more { color: #f3e3b8; }
.lot:is(:hover, :has(.lot__open:focus-visible)) .lot__more-text { background-size: 100% 1px, 100% 1px; text-shadow: 0 0 12px rgba(216, 188, 121, .35); }
.lot:is(:hover, :has(.lot__open:focus-visible)) .lot__more svg { translate: calc(3px * var(--dir-x)) 0; }
/* Featured: the two highest-value lots get a wide presentation and laurels around the price */
.lot--legend { --price: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); grid-column: span 6; }
.lot--legend .lot__media::before { padding-block-start: 68.75%; } /* 16:11 at least */
.lot--legend .lot__title { font-size: var(--fs-lg); }
.lot--legend .lot__price { font-size: var(--price); }
/* Laurels: two mirrored gold branches (#i-laurel), sized from the price, never crossing its digits. Every leaf is
   deep gold with a lit upper half, a light vein and a fine light rim (the line-art drawing stays), two tiny star
   glints; a hairline shadow under them and a soft warm glow give volume. When the card comes into view they fade
   in once with a golden glint (the reveal sets .is-in); on hover the price group warms up a little.
   Reduced motion: no animation, they are simply there. */
.lot__price-wrap { display: inline-flex; align-items: center; gap: calc(var(--price) * .22); transition: filter 280ms var(--lot-ease); }
.lot--legend:hover .lot__price-wrap { filter: brightness(1.08); }
.lot__laurel {
  flex: none; inline-size: calc(var(--price) * .58); block-size: calc(var(--price) * 1.16); overflow: visible; scale: var(--dir-x) 1;
  filter: drop-shadow(0 1px 1px rgba(28, 12, 0, .55)) drop-shadow(0 0 5px rgba(255, 206, 128, .3)) brightness(1);
}
.lot__laurel--end { scale: calc(-1 * var(--dir-x)) 1; }
.lot--legend.is-in .lot__laurel { animation: laurelIn 850ms var(--lot-ease) 280ms backwards; }
.lot--legend.is-in .lot__laurel--end { animation-delay: 360ms; }
@keyframes laurelIn {
  0% { opacity: 0; filter: drop-shadow(0 1px 1px rgba(28, 12, 0, 0)) drop-shadow(0 0 0 rgba(255, 226, 160, 0)) brightness(1); }
  55% { opacity: 1; filter: drop-shadow(0 1px 1px rgba(28, 12, 0, .55)) drop-shadow(0 0 7px rgba(255, 226, 160, .6)) brightness(1.3); }
  100% { opacity: 1; filter: drop-shadow(0 1px 1px rgba(28, 12, 0, .55)) drop-shadow(0 0 5px rgba(255, 206, 128, .3)) brightness(1); }
}
/* Exclusive: the two most expensive lots (app.js picks them by price). The name is polished silver with a soft
   moon-silver glow, the price polished gold. Every 4 s one light passes over all the metal of the card at once
   (both lines of the name, the laurels and the price, along one slanted line), like light over polished metal:
   the letters it crosses turn bright and glow; the pass takes 2.4 s, 1.6 s of rest follow. Both cards shine together.
   The light layer (.lot__light) is a copy of the card body in the same grid cell, laid out exactly like it, in which
   only the metal shows (brighter); a narrow slanted band reveals it: the band slides one way and the copy inside
   it the other way by the same distance, so the copy stays on the letters and only the light travels (translate
   only, on the compositor; nothing shows outside the glyphs). The card gets a warmer frame, a deeper halo and a
   slow light along its hairline. Reduced motion: silver and gold stay, nothing moves. */
.lot--exclusive {
  --frame: linear-gradient(180deg, rgba(255, 240, 200, 1), rgba(230, 198, 128, .6) 26%, rgba(216, 188, 121, .34) 56%, rgba(226, 196, 130, .44) 84%, rgba(244, 220, 160, .72));
  --light-delay: 1.3s;
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(240, 214, 150, .05), 0 0 48px -14px rgba(232, 199, 126, .5);
}
.lot--exclusive:hover { box-shadow: var(--shadow-2), 0 0 0 1px rgba(240, 214, 150, .08), 0 0 58px -12px rgba(232, 199, 126, .62); }
.lot--exclusive .lot__ornaments { opacity: 1; }
.lot--exclusive .lot__ornaments svg { filter: drop-shadow(0 0 3.5px rgba(232, 199, 126, .45)); }
/* polished silver name: a cool silvery white with a moonlight glow (buttons reset text-shadow, so it is set there) */
.lot--exclusive .lot__title { color: #e6e4f0; }
.lot--exclusive .lot__open { text-shadow: 0 0 1px rgba(255, 255, 255, .28), 0 0 14px rgba(206, 204, 255, .3), 0 0 32px rgba(176, 168, 255, .14); }
/* polished gold price: light at the top, a darker band through the middle, a warm reflection under it */
.lot--exclusive .lot__price {
  background: linear-gradient(180deg, #fffaf0 6%, #f7e3ae 38%, #d9ac5f 55%, #f2d592 70%, #bc8c42 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(12, 6, 20, .6)) drop-shadow(0 0 16px rgba(232, 196, 126, .28));
}
/* the light layer takes the body's grid cell (row 2, set for both: an item placed by hand would push the auto-placed
   body into a new row) and its pull-up onto the art (the margin-top of .lot__body) */
.lot--exclusive > .lot__body, .lot__light { grid-row: 2; grid-column: 1; }
.lot__light { margin-top: -28px; position: relative; z-index: 2; overflow: clip; pointer-events: none; user-select: none; }
.lot__light-band {
  position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 14%;
  transform: skewX(calc(var(--dir-x) * -15deg)); transform-origin: 0 0; translate: calc(var(--dir-x) * -110%) 0;
  /* a soft light: the edges of the band fade out gently, so the glow it reveals has no edges either */
  -webkit-mask: linear-gradient(90deg, transparent, rgba(0, 0, 0, .12) 18%, rgba(0, 0, 0, .55) 34%, #000 50%, rgba(0, 0, 0, .55) 66%, rgba(0, 0, 0, .12) 82%, transparent);
  mask: linear-gradient(90deg, transparent, rgba(0, 0, 0, .12) 18%, rgba(0, 0, 0, .55) 34%, #000 50%, rgba(0, 0, 0, .55) 66%, rgba(0, 0, 0, .12) 82%, transparent);
}
.lot__light-body { /* the width of the body (100 % / 14 %) and its layout: it lies exactly over the text of the card */
  position: absolute; inset-block-start: 0; inset-inline-start: 0; inline-size: calc(100% / .14); margin: 0;
  transform: skewX(calc(var(--dir-x) * 15deg)); transform-origin: 0 0; translate: calc(var(--dir-x) * 15.4%) 0;
}
.lot__light :is(.lot__meta, .lot__lead, .lot__more) { visibility: hidden; }
/* the name laid out as in the button (a block, balanced lines, the text rendering of buttons), in bright silver */
.lot__light .lot__title { text-wrap: balance; color: #fff; text-shadow: 0 0 2px #fff, 0 0 10px rgba(232, 234, 255, .75), 0 0 22px rgba(204, 200, 255, .38); }
.lot__light .lot__title > span { display: block; min-block-size: 1.5rem; text-rendering: auto; }
.lot__light .lot__price {
  background: linear-gradient(180deg, #fff 12%, #fffbea 50%, #ffe2a2); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 2px rgba(255, 246, 220, .95)) drop-shadow(0 0 9px rgba(255, 210, 130, .55));
}
.lot__light .lot__laurel { animation: none; filter: drop-shadow(0 1px 1px rgba(28, 12, 0, .55)) drop-shadow(0 0 5px rgba(255, 228, 165, .55)) brightness(1.32); }
/* band: -110 % → 1050 % of its 14 % width (past the right edge even under a tall body's slant); copy: +15.4 % →
   -147 % of the full width: the two always cancel. The pass is 60 % of the 4 s cycle, eased like a swing. */
.lot--exclusive.is-in .lot__light-band { animation: lightBand 4s cubic-bezier(.4, 0, .6, 1) var(--light-delay) infinite backwards; }
.lot--exclusive.is-in .lot__light-body { animation: lightBody 4s cubic-bezier(.4, 0, .6, 1) var(--light-delay) infinite backwards; }
[dir="rtl"] .lot--exclusive.is-in .lot__light-band { animation-name: lightBandRtl; }
[dir="rtl"] .lot--exclusive.is-in .lot__light-body { animation-name: lightBodyRtl; }
@keyframes lightBand { 0% { translate: -110% 0; } 60%, 100% { translate: 1050% 0; } }
@keyframes lightBody { 0% { translate: 15.4% 0; } 60%, 100% { translate: -147% 0; } }
@keyframes lightBandRtl { 0% { translate: 110% 0; } 60%, 100% { translate: -1050% 0; } }
@keyframes lightBodyRtl { 0% { translate: -15.4% 0; } 60%, 100% { translate: 147% 0; } }
/* a slow light along the hairline frame: a bright arc of a turning conic gradient, seen only through the 1.5 px ring */
.lot__aura {
  position: absolute; inset: 0; border-radius: var(--r-lg); padding: 1.5px; overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.lot__aura-light {
  position: absolute; inset: -60%; opacity: 0;
  background: conic-gradient(from 0deg, transparent 0 87%, rgba(255, 236, 190, .55) 90%, #fff6dc 92%, rgba(255, 236, 190, .55) 94%, transparent 97%);
}
.lot--exclusive.is-in .lot__aura-light { opacity: 1; transition: opacity 1.2s var(--lot-ease) .6s; animation: auraTurn 10s linear infinite; }
@keyframes auraTurn { to { rotate: 1turn; } }
@media (prefers-reduced-motion: reduce) {
  .lot--legend.is-in .lot__laurel { animation: none; } /* the global rule keeps the delay */
  .lot__light, .lot__aura { display: none; }
}
/* Compact: image beside the text */
.lot--compact { grid-column: span 6; grid-template-columns: 38% minmax(0, 1fr); grid-template-rows: none; }
.lot--compact .lot__media { aspect-ratio: auto; height: 100%; min-height: 200px; border-start-end-radius: 0; border-end-start-radius: var(--r-lg); }
.lot--compact .lot__media::before { content: none; }
/* The art dissolves into the card's own gradient (a mask, not a painted colour: the card is lighter at the top and
   darker at the bottom, a flat colour would leave a seam). Only the outer corner under the gold vine and the outer
   edge are darkened: the inline-end side of the art is the middle of the card, not its edge. --fade (shop-config.js)
   = where the dissolve starts. */
.lot--compact .lot__media {
  -webkit-mask-image: linear-gradient(var(--to-inline-end), #000 var(--fade, 52%), transparent);
  mask-image: linear-gradient(var(--to-inline-end), #000 var(--fade, 52%), transparent);
}
.lot--compact .lot__media::after {
  background:
    radial-gradient(150px 130px at 0 0, rgba(14, 8, 26, .8), rgba(14, 8, 26, .5) 40%, rgba(14, 8, 26, .14) 75%, rgba(14, 8, 26, 0)),
    linear-gradient(var(--to-inline-end), rgba(14, 8, 26, .3), rgba(14, 8, 26, 0) 14%),
    linear-gradient(180deg, rgba(14, 8, 26, .22), rgba(14, 8, 26, 0) 14% 86%, rgba(14, 8, 26, .22));
}
[dir="rtl"] .lot--compact .lot__media::after {
  background:
    radial-gradient(150px 130px at 100% 0, rgba(14, 8, 26, .8), rgba(14, 8, 26, .5) 40%, rgba(14, 8, 26, .14) 75%, rgba(14, 8, 26, 0)),
    linear-gradient(var(--to-inline-end), rgba(14, 8, 26, .3), rgba(14, 8, 26, 0) 14%),
    linear-gradient(180deg, rgba(14, 8, 26, .22), rgba(14, 8, 26, 0) 14% 86%, rgba(14, 8, 26, .22));
}
.lot--compact .lot__body { margin-top: 0; padding: 22px; grid-template-rows: auto auto 1fr auto; align-content: stretch; }
@media (max-width: 1080px) {
  .lot, .lot--compact { grid-column: span 6; }
  .lot--legend { grid-column: span 12; }
}
@media (max-width: 760px) {
  .lots { grid-template-columns: minmax(0, 1fr); }
  .lot, .lot--legend, .lot--compact { grid-column: auto; }
  .lot--compact { grid-template-columns: 1fr; }
  /* stacked: the art sits on top and dissolves downward into the card, both top corners are the card's corners. 4:3, not
     16:9: a 16:9 strip of a tall portrait cut the pair at the shoulders. The dissolve is its own, long and eased (--fade
     is tuned for the side-by-side card, where the art dissolves sideways): the figures fade out softly, no line. */
  .lot--compact .lot__media { aspect-ratio: 4 / 3; min-height: 0; border-start-end-radius: var(--r-lg); border-end-start-radius: 0; }
  .lot--compact .lot__media {
    -webkit-mask-image: linear-gradient(180deg, #000 52%, rgba(0, 0, 0, 0.97) 57%, rgba(0, 0, 0, 0.9) 62%, rgba(0, 0, 0, 0.79) 67%, rgba(0, 0, 0, 0.65) 72%, rgba(0, 0, 0, 0.5) 77%, rgba(0, 0, 0, 0.35) 82%, rgba(0, 0, 0, 0.22) 87%, rgba(0, 0, 0, 0.12) 91%, rgba(0, 0, 0, 0.05) 95%, rgba(0, 0, 0, 0.01) 98%, transparent);
    mask-image: linear-gradient(180deg, #000 52%, rgba(0, 0, 0, 0.97) 57%, rgba(0, 0, 0, 0.9) 62%, rgba(0, 0, 0, 0.79) 67%, rgba(0, 0, 0, 0.65) 72%, rgba(0, 0, 0, 0.5) 77%, rgba(0, 0, 0, 0.35) 82%, rgba(0, 0, 0, 0.22) 87%, rgba(0, 0, 0, 0.12) 91%, rgba(0, 0, 0, 0.05) 95%, rgba(0, 0, 0, 0.01) 98%, transparent);
  }
  .lot--compact .lot__media::after, [dir="rtl"] .lot--compact .lot__media::after { background: var(--vignette); }
}
/* theme "object" (shop-config.js): the art is one object cut out on a transparent background (the frame and
   avatar lot). Card and dialog share one stage behind it: the frame's moonlit sea grotto (frame-grotto.webp, painted
   for it), blurred like a far bokeh, dimmed and a little desaturated, with a soft glow behind the frame, so the scene
   only sets the mood and the frame keeps the eye. On the card only the stage dissolves into the text side (the frame
   itself is never faded); the corner under the gold vine is shaded a little. */
.lot.lot--object { --object-stage:
    linear-gradient(180deg, rgba(21, 16, 32, .42), rgba(21, 16, 32, .22) 38%, rgba(21, 16, 32, .3) 62%, rgba(21, 16, 32, .62)),
    radial-gradient(38% 46% at 50% 48%, rgba(105, 177, 204, .11), rgba(105, 177, 204, 0)),
    url('/assets/img/premium/wide/frame-grotto.webp') 50% 50% / cover no-repeat, #1b1029; }
/* Reviewed with ChatGPT as art director (26.11.2026): the stage stays behind the art only (no wash under the text,
   it muddied the copy), a little wider than the art box (inline-end -29%, ~49% of the card) and dissolving from 58% of
   its width; no extra blur (the grotto is painted soft), a light vertical dim, a faint aquamarine light behind the
   frame instead of a violet halo, no corner shade; the frame a little smaller with even margins. */
.lot.lot--object { isolation: isolate; }
.lot.lot--object .lot__media { -webkit-mask-image: none; mask-image: none; overflow: visible; }
.lot.lot--object .lot__media::before {
  content: ''; position: absolute; inset-block: -16px; inset-inline: -16px -29%; padding: 0; z-index: -1;
  background: var(--object-stage);
  /* soft as a far bokeh (the user, 26.11.2026: the grotto must not pull the eye from the frame); painted 16px past the
     art box so the blur keeps full colour at the card edge, and clipped back to the card's rounded edge */
  filter: blur(9px);
  clip-path: inset(16px 0 16px 16px round var(--r-lg) 0 0 var(--r-lg));
  -webkit-mask-image: linear-gradient(var(--to-inline-end), #000 58%, rgba(0, 0, 0, 1) calc(58% + 42% * 0), rgba(0, 0, 0, 0.97) calc(58% + 42% * 0.1), rgba(0, 0, 0, 0.9) calc(58% + 42% * 0.21), rgba(0, 0, 0, 0.79) calc(58% + 42% * 0.32), rgba(0, 0, 0, 0.65) calc(58% + 42% * 0.43), rgba(0, 0, 0, 0.5) calc(58% + 42% * 0.53), rgba(0, 0, 0, 0.35) calc(58% + 42% * 0.63), rgba(0, 0, 0, 0.22) calc(58% + 42% * 0.72), rgba(0, 0, 0, 0.12) calc(58% + 42% * 0.81), rgba(0, 0, 0, 0.05) calc(58% + 42% * 0.89), rgba(0, 0, 0, 0.01) calc(58% + 42% * 0.96), transparent calc(58% + 42% * 1));
  mask-image: linear-gradient(var(--to-inline-end), #000 58%, rgba(0, 0, 0, 1) calc(58% + 42% * 0), rgba(0, 0, 0, 0.97) calc(58% + 42% * 0.1), rgba(0, 0, 0, 0.9) calc(58% + 42% * 0.21), rgba(0, 0, 0, 0.79) calc(58% + 42% * 0.32), rgba(0, 0, 0, 0.65) calc(58% + 42% * 0.43), rgba(0, 0, 0, 0.5) calc(58% + 42% * 0.53), rgba(0, 0, 0, 0.35) calc(58% + 42% * 0.63), rgba(0, 0, 0, 0.22) calc(58% + 42% * 0.72), rgba(0, 0, 0, 0.12) calc(58% + 42% * 0.81), rgba(0, 0, 0, 0.05) calc(58% + 42% * 0.89), rgba(0, 0, 0, 0.01) calc(58% + 42% * 0.96), transparent calc(58% + 42% * 1));
}
.lot.lot--object .lot__media > img { position: relative; padding: 13% 11%; }
[dir="rtl"] .lot.lot--object .lot__media::before { clip-path: inset(16px 16px 16px 0 round 0 var(--r-lg) var(--r-lg) 0); }
.lot.lot--object .lot__media > img { object-fit: contain; }
.lot.lot--object .lot__media::after { content: none; }
/* a narrow card (two cards per row and less): the object stands above the text, as on the other cards, instead of
   shrinking to a thumbnail in a thin column */
@media (max-width: 1080px) {
  .lot.lot--compact.lot--object { grid-template-columns: minmax(0, 1fr); }
  .lot.lot--compact.lot--object .lot__media { aspect-ratio: 4 / 3; height: auto; min-height: 0; border-start-end-radius: var(--r-lg); border-end-start-radius: 0; }
  .lot.lot--compact.lot--object .lot__media > img { padding: 7% 8% 3%; }
  .lot.lot--compact.lot--object .lot__media::before {
    inset: -16px; border-radius: 0; clip-path: inset(16px round var(--r-lg) var(--r-lg) 0 0);
    -webkit-mask-image: linear-gradient(180deg, #000 60%, rgba(0, 0, 0, .55) 82%, transparent);
    mask-image: linear-gradient(180deg, #000 60%, rgba(0, 0, 0, .55) 82%, transparent);
  }
}
.premium__notice { margin-top: var(--s-6); max-width: 820px; margin-inline: auto; }

/* Game arrow (art director's mock, 20.11.2026): a white crescent chevron with a blue outline and glow
   (#i-chev-game, drawn pointing to the inline start; "next" is mirrored, RTL flips both) */
/* Glass control (arrows of the outfit carousel and the gallery): dark translucent plum glass, a lavender
   hairline, no glow at rest; on hover a soft lavender glow and the chevron steps forward. */
.game-chev {
  --chev-line: #2f2672; --chev-accent: #c9c0ff;
  display: block; inline-size: 100%; block-size: 100%; scale: var(--dir-x) 1;
  filter: drop-shadow(0 1px 1.5px rgba(8, 4, 18, .6));
  transition: translate 260ms var(--ease-out), filter 260ms ease;
}
.game-arrow--next .game-chev { scale: calc(-1 * var(--dir-x)) 1; }
.icon-btn.game-arrow {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 55%), rgba(30, 18, 46, .58);
  box-shadow: inset 0 0 0 1px rgba(214, 196, 255, .16); backdrop-filter: blur(10px);
  transition: box-shadow 260ms ease, background-color 260ms ease, transform var(--t-fast) var(--ease-out);
}
.icon-btn.game-arrow .game-chev { inline-size: 14px; block-size: 28px; }
.icon-btn.game-arrow:hover { box-shadow: inset 0 0 0 1px rgba(214, 196, 255, .38), 0 0 18px -2px rgba(186, 160, 255, .4); }
.game-arrow:hover .game-chev { filter: drop-shadow(0 1px 1.5px rgba(8, 4, 18, .6)) drop-shadow(0 0 5px rgba(206, 188, 255, .6)); }
.icon-btn.game-arrow:hover .game-chev { translate: calc(-2px * var(--dir-x)) 0; }
.icon-btn.game-arrow--next:hover .game-chev { translate: calc(2px * var(--dir-x)) 0; }
.icon-btn.game-arrow:disabled { opacity: .35; cursor: not-allowed; box-shadow: inset 0 0 0 1px rgba(214, 196, 255, .1); }
.icon-btn.game-arrow:disabled .game-chev { translate: none; filter: drop-shadow(0 1px 1.5px rgba(8, 4, 18, .6)); }

/* Outfit carousel: the active outfit in front, its neighbours peeking out from behind it.
   Geometry in container units of the art area (.skins fills .lot__media, the position: relative box of
   the images):
   - the hair line of the front figure sits --head below the top of the art (in the lot dialog, just below the
     caption "Outfits already in the game"; the card shows no caption, its group label says it); the outfit images carry
     21.8 % of transparent margin above the hair (--pad), which is pulled up out of sight;
   - the figure size follows the width (--fig), so the side outfits always stay clear of the arrows;
     when the card is taller than 4:3 (its row is stretched by a neighbour), the extra height shows more
     of the dress instead of empty space;
   - the arrows are centred on the visible group (between --head and --floor, where the card text
     starts), not on the card. */
.lot--skins .lot__media, .lot-detail__hero--skins {
  background:
    radial-gradient(46% 62% at 50% 58%, rgba(155, 121, 213, .42), transparent 72%),
    radial-gradient(38% 14% at 50% 97%, rgba(232, 199, 126, .32), transparent 72%),
    linear-gradient(180deg, #2b1b40, #170e26);
}
.skins {
  --head: 50px; --pad: .218; --fig: min(130cqh, 86cqi); --floor: calc(100cqh - 28px);
  --spread: 18.5cqi; --side-scale: .84;
  /* one switch: a soft start, a long gentle settle, no jolt at either end */
  --skin-dur: 500ms; --ease-skin: cubic-bezier(.4, 0, .2, 1);
  position: absolute; inset: 0; z-index: 4; container-type: size;
}
.skins__stage {
  position: absolute; inset: 0; overflow: hidden; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 98%); mask-image: linear-gradient(180deg, #000 70%, transparent 98%);
}
.skins__item {
  position: absolute; inset-inline: 0; inset-block-start: calc(var(--head) - var(--fig) * var(--pad)); margin-inline: auto;
  block-size: var(--fig); inline-size: auto; max-inline-size: none;
  transform-origin: 50% 30%; /* side outfits shrink towards the chest line: their heads sit a touch lower, behind */
  /* compositor properties only (transform, opacity, filter of a promoted layer): the main thread stays idle
     during a switch. The stacking order is not animated: app.js moves [data-front] to the new figure at 45 %
     of the switch, while the figures move fastest, so it never pops over the old one at rest. */
  z-index: 2;
  transition: transform var(--skin-dur) var(--ease-skin), opacity var(--skin-dur) var(--ease-skin), filter var(--skin-dur) var(--ease-skin);
  filter: drop-shadow(0 18px 24px rgba(5, 2, 12, .55));
  /* the outfit images end at the hem: their lower edge dissolves, so the smaller side figures never show a cut line */
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 99%); mask-image: linear-gradient(180deg, #000 78%, transparent 99%);
}
.skins__item[data-pos="next"], .skins__item[data-pos="prev"] { opacity: .84; filter: brightness(.7) saturate(.9) drop-shadow(0 18px 24px rgba(5, 2, 12, .55)); }
.skins__item[data-pos="next"] { transform: translateX(calc(var(--spread) * var(--dir-x))) scale(var(--side-scale)); }
.skins__item[data-pos="prev"] { transform: translateX(calc(var(--spread) * -1 * var(--dir-x))) scale(var(--side-scale)); }
.skins__item[data-pos="hidden"] { z-index: 1; opacity: 0; transform: scale(.7); }
.skins__item[data-front] { z-index: 3; }
/* An outfit that wraps round to the other side does not sweep across the stage behind the others: it drifts
   outwards and fades, then slides in from beyond the opposite edge (same duration as the switch). */
.skins__item.is-wrap-to-next { transition: none; animation: skinWrapToNext var(--skin-dur) linear both; }
.skins__item.is-wrap-to-prev { transition: none; animation: skinWrapToPrev var(--skin-dur) linear both; }
@keyframes skinWrapToNext {
  0% { opacity: .84; transform: translateX(calc(var(--spread) * -1 * var(--dir-x))) scale(var(--side-scale)); animation-timing-function: cubic-bezier(.4, 0, 1, 1); }
  40% { opacity: 0; transform: translateX(calc(var(--spread) * -1.24 * var(--dir-x))) scale(calc(var(--side-scale) * .94)); }
  52% { opacity: 0; transform: translateX(calc(var(--spread) * 1.24 * var(--dir-x))) scale(calc(var(--side-scale) * .94)); animation-timing-function: cubic-bezier(0, 0, .2, 1); }
}
@keyframes skinWrapToPrev {
  0% { opacity: .84; transform: translateX(calc(var(--spread) * var(--dir-x))) scale(var(--side-scale)); animation-timing-function: cubic-bezier(.4, 0, 1, 1); }
  40% { opacity: 0; transform: translateX(calc(var(--spread) * 1.24 * var(--dir-x))) scale(calc(var(--side-scale) * .94)); }
  52% { opacity: 0; transform: translateX(calc(var(--spread) * -1.24 * var(--dir-x))) scale(calc(var(--side-scale) * .94)); animation-timing-function: cubic-bezier(0, 0, .2, 1); }
}
.lot:hover .skins__item[data-pos="active"] { transform: translateY(-4px); }
/* Arrows: only the chevron of the game, on a compact touch target (3 × 3.5 rem). Transparent at rest; on
   hover a soft plum glow blooms behind it and the chevron steps towards the switch. */
.skins__nav {
  --nav-w: 3rem; --nav-h: 3.5rem;
  position: absolute; z-index: 5; inset-block-start: calc((var(--head) + var(--floor) - var(--nav-h)) / 2);
  inline-size: var(--nav-w); block-size: var(--nav-h);
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 1rem; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
/* Luxury arrow (#i-chev-lux): a thin crescent blade with a short echo blade inside it, ivory with a champagne
   hairline edge and a faint warm glint at the point; drawn pointing to the inline start, "next" is its mirror,
   RTL flips both. No plate at rest. Hover (250 ms): ivory turns champagne gold, the glow grows a little, a
   barely visible warm light blooms behind it and the arrow steps 4 px towards the switch. Press: a dip to 95 %. */
.skins__nav { --ease-nav: cubic-bezier(.22, 1, .36, 1); --lux-edge: rgba(216, 188, 121, .55); color: #f1e5c4; }
.skins__nav::before {
  content: ''; position: absolute; inset: -1rem -.875rem; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(216, 188, 121, .16), rgba(216, 188, 121, .1) 30%, rgba(216, 188, 121, .04) 60%, rgba(216, 188, 121, .01) 82%, rgba(216, 188, 121, 0));
  opacity: 0; transform: scale(.85);
  transition: opacity 250ms var(--ease-nav), transform 250ms var(--ease-nav);
}
.lux-chev {
  position: relative; display: block; inline-size: 1rem; block-size: 2.4rem; overflow: visible; scale: var(--dir-x) 1;
  filter: drop-shadow(0 0 5px rgba(10, 5, 18, .5)) drop-shadow(0 1px 1.5px rgba(8, 4, 18, .55)) drop-shadow(0 0 3px rgba(255, 214, 150, .22)) brightness(1);
  transition: color 250ms var(--ease-nav), translate 250ms var(--ease-nav), filter 250ms var(--ease-nav), transform 200ms var(--ease-nav);
}
.skins__nav--next .lux-chev { scale: calc(-1 * var(--dir-x)) 1; }
@media (hover: hover) {
  .skins__nav:hover { color: #d8bc79; --lux-edge: rgba(241, 229, 196, .5); }
  .skins__nav:hover::before { opacity: 1; transform: none; }
  .skins__nav:hover .lux-chev { translate: calc(-4px * var(--dir-x)) 0; filter: drop-shadow(0 0 5px rgba(10, 5, 18, .5)) drop-shadow(0 1px 1.5px rgba(8, 4, 18, .55)) drop-shadow(0 0 7px rgba(255, 214, 150, .5)) brightness(1.06); }
  .skins__nav--next:hover .lux-chev { translate: calc(4px * var(--dir-x)) 0; }
}
.skins__nav:active .lux-chev { transform: scale(.95); transition-duration: 250ms, 250ms, 250ms, 70ms; }
.skins__nav:focus-visible { outline: 1.5px solid rgba(216, 188, 121, .85); outline-offset: -3px; }
.skins__nav:focus-visible::before { opacity: 1; transform: none; }
.skins__nav--prev { inset-inline-start: 6px; }
.skins__nav--next { inset-inline-end: 6px; }
.skins__caption { position: absolute; z-index: 5; inset-block-start: 12px; inset-inline-start: 12px; max-inline-size: calc(100% - 24px); padding: 4px 10px; border-radius: var(--r-pill); background: rgba(13, 9, 23, .72); backdrop-filter: blur(6px); color: var(--c-text-2); font-size: var(--fs-xs); font-weight: 700; line-height: 1.3; pointer-events: none; }
/* Lot dialog: a wider stage, the larger chevron of the dialog on a slightly larger target */
.skins--detail { --head: 58px; --fig: min(135cqh, 74cqi); --floor: 96cqh; --spread: 24cqi; }
.skins--detail .skins__nav { --nav-w: 3.5rem; --nav-h: 4.25rem; }
.skins--detail .skins__nav .lux-chev { inline-size: 1.375rem; block-size: 3.3rem; }
.skins--detail .skins__nav--prev { inset-inline-start: 14px; }
.skins--detail .skins__nav--next { inset-inline-end: 14px; }
.skins--detail .skins__caption { inset-inline-start: 16px; inset-block-start: 16px; }
.lot-detail__hero.lot-detail__hero--skins { aspect-ratio: 16 / 9; }
/* the outfit dialog stands in the same vaulted hall of the game as its card (outfit-backdrop.webp) */
.lot-detail__hero.lot-detail__hero--skins { background: url('/assets/img/premium/outfit-backdrop.webp') 50% 30% / cover no-repeat, #1b0f2c; }
@media (max-width: 40rem) {
  .lot-detail__hero.lot-detail__hero--skins { aspect-ratio: 5 / 4; }
  .skins--detail { --head: 54px; --fig: min(130cqh, 92cqi); --spread: 19cqi; }
  .skins--detail .skins__nav { --nav-w: 3rem; --nav-h: 3.5rem; }
  .skins--detail .skins__nav .lux-chev { inline-size: 1rem; block-size: 2.4rem; }
  .skins--detail .skins__nav--prev { inset-inline-start: 6px; }
  .skins--detail .skins__nav--next { inset-inline-end: 6px; }
}
.lot-detail__hero--skins::after { display: none; }

/* ---------- Outfit lot (theme: luxe in shop-config.js), the model of the lot cards ----------
   Its shell is the shared lot template; what stays its own is the content: a backdrop from the game itself
   (outfit-backdrop.webp is the vaulted hall at night, a location of the game: All ART PNG/237cec397a65d62546a7a874884b19f8f32dd74b.png,
   no characters), graded to amethyst and plum with the gold of its lamps, softly out of focus; dimmed behind the
   side outfits, an amethyst light behind the heroine; quiet glass badges without outlines. */
.lot--luxe .lot__media { background: url('/assets/img/premium/outfit-backdrop.webp') 50% 34% / cover no-repeat, #1b0f2c; }
.lot--luxe .skins { --head: 56px; }
/* Lighting (behind the figures): the hall dimmed behind the side outfits, a soft amethyst light behind the head
   and shoulders of the heroine, a warm floor under her. */
.lot--luxe .skins::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(26% 34% at 50% 30%, rgba(178, 140, 236, .26), rgba(150, 110, 214, .1) 55%, rgba(150, 110, 214, 0) 75%),
    radial-gradient(34% 10% at 50% 96%, rgba(232, 199, 126, .18), rgba(232, 199, 126, 0) 70%),
    radial-gradient(24% 56% at 20% 52%, rgba(14, 7, 24, .34), rgba(14, 7, 24, 0) 75%),
    radial-gradient(24% 56% at 80% 52%, rgba(14, 7, 24, .34), rgba(14, 7, 24, 0) 75%);
  opacity: .85; transition: opacity 500ms var(--ease-out);
}
.lot--luxe:hover .skins::before { opacity: 1; }
/* badges: dark glass, no outline; the term badge in quiet gold (only this card: the others keep the shared badges) */
.lot--luxe .lot__meta .badge {
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)), rgba(22, 12, 36, .55);
  color: #e4daee; backdrop-filter: blur(6px);
}
.lot--luxe .lot__meta .badge--gold {
  background: linear-gradient(180deg, rgba(232, 199, 126, .2), rgba(232, 199, 126, .06)), rgba(22, 12, 36, .55);
  color: #efd9a2;
}

/* Lot detail (dialog) */
.lot-detail__hero { position: relative; aspect-ratio: var(--ratio, 16 / 8); overflow: hidden; } /* --ratio: per lot (detailRatio, shop-config.js) */
.lot-detail__hero > img { width: 100%; height: 100%; object-fit: cover; }
/* --fade: per lot (detailFade, shop-config.js) = where the art starts to dissolve into the dialog. The art itself turns
   transparent (a mask, not a dark layer laid over it: an overlay leaves a bright crease on the last device row when the
   hero height is fractional), along an eased curve: a straight fade ends in a visible line where it meets the flat
   dialog colour. */
.lot-detail__hero > img {
  -webkit-mask-image: linear-gradient(180deg,
    #000 var(--fade, 40%),
    rgba(0, 0, 0, 0.97) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.1),
    rgba(0, 0, 0, 0.9) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.21),
    rgba(0, 0, 0, 0.79) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.32),
    rgba(0, 0, 0, 0.65) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.43),
    rgba(0, 0, 0, 0.5) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.53),
    rgba(0, 0, 0, 0.35) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.63),
    rgba(0, 0, 0, 0.22) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.72),
    rgba(0, 0, 0, 0.12) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.81),
    rgba(0, 0, 0, 0.05) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.89),
    rgba(0, 0, 0, 0.01) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.96),
    transparent);
  mask-image: linear-gradient(180deg,
    #000 var(--fade, 40%),
    rgba(0, 0, 0, 0.97) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.1),
    rgba(0, 0, 0, 0.9) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.21),
    rgba(0, 0, 0, 0.79) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.32),
    rgba(0, 0, 0, 0.65) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.43),
    rgba(0, 0, 0, 0.5) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.53),
    rgba(0, 0, 0, 0.35) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.63),
    rgba(0, 0, 0, 0.22) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.72),
    rgba(0, 0, 0, 0.12) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.81),
    rgba(0, 0, 0, 0.05) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.89),
    rgba(0, 0, 0, 0.01) calc(var(--fade, 40%) + (100% - var(--fade, 40%)) * 0.96),
    transparent);
}
/* the outfit carousel: the same eased dissolve, on the whole stage (it holds three figures, not one img) */
.lot-detail__hero.lot-detail__hero--skins {
  -webkit-mask-image: linear-gradient(180deg,
    #000 var(--fade, 72%),
    rgba(0, 0, 0, 0.97) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.1),
    rgba(0, 0, 0, 0.9) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.21),
    rgba(0, 0, 0, 0.79) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.32),
    rgba(0, 0, 0, 0.65) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.43),
    rgba(0, 0, 0, 0.5) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.53),
    rgba(0, 0, 0, 0.35) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.63),
    rgba(0, 0, 0, 0.22) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.72),
    rgba(0, 0, 0, 0.12) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.81),
    rgba(0, 0, 0, 0.05) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.89),
    rgba(0, 0, 0, 0.01) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.96),
    transparent);
  mask-image: linear-gradient(180deg,
    #000 var(--fade, 72%),
    rgba(0, 0, 0, 0.97) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.1),
    rgba(0, 0, 0, 0.9) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.21),
    rgba(0, 0, 0, 0.79) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.32),
    rgba(0, 0, 0, 0.65) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.43),
    rgba(0, 0, 0, 0.5) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.53),
    rgba(0, 0, 0, 0.35) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.63),
    rgba(0, 0, 0, 0.22) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.72),
    rgba(0, 0, 0, 0.12) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.81),
    rgba(0, 0, 0, 0.05) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.89),
    rgba(0, 0, 0, 0.01) calc(var(--fade, 72%) + (100% - var(--fade, 72%)) * 0.96),
    transparent);
}
.lot-detail__hero::after { content: none; }
/* short screens (laptops at 1366x768, browser zoom): the usual 16 / 8 hero, so the title and price stay on the first screen */
@media (max-height: 46rem) { .lot-detail__hero { aspect-ratio: 16 / 8; } }
/* A wide version of the lot art (detailImage, shop-config.js): the original picture in the middle, pixel for pixel,
   with its scene painted on to the left and right (ChatGPT outpainting) so the whole 16:9 frame is one picture.
   Shown whole; phones crop its sides (the middle is the original art). */
.lot-detail__hero--wide { --ratio: 16 / 9; --fade: 52%; }
@media (max-width: 40rem) { .lot-detail__hero--wide { --ratio: 4 / 3; --fade: 58%; } }
/* theme "object" in the dialog: the same stage as on its card (frame-grotto.webp blurred and dimmed, the glow behind
   the frame), the whole frame shown; the stage alone dissolves into the dialog at the bottom along an eased curve. */
.lot-detail__hero--object { aspect-ratio: 16 / 9; background: #151020; }
.lot-detail__hero--object::before {
  content: ''; position: absolute; inset: -24px; filter: blur(9px) brightness(.85); /* the dialog shows the whole grotto: softer and dimmer so its moon and shells stay mood, not focus */
  background: var(--object-stage);
  --object-stage: linear-gradient(180deg, rgba(21, 16, 32, .42), rgba(21, 16, 32, .22) 38%, rgba(21, 16, 32, .3) 62%, rgba(21, 16, 32, .62)),
    radial-gradient(38% 46% at 50% 48%, rgba(105, 177, 204, .11), rgba(105, 177, 204, 0)),
    url('/assets/img/premium/wide/frame-grotto.webp') 50% 50% / cover no-repeat, #1b1029;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, rgba(0, 0, 0, .8) 70%, rgba(0, 0, 0, .45) 82%, rgba(0, 0, 0, .14) 92%, transparent);
  mask-image: linear-gradient(180deg, #000 58%, rgba(0, 0, 0, .8) 70%, rgba(0, 0, 0, .45) 82%, rgba(0, 0, 0, .14) 92%, transparent);
}
.lot-detail__hero--object > img { position: relative; object-fit: contain; padding-block: 5% 3%; -webkit-mask-image: none; mask-image: none; }
.lot-detail__hero--object::after { content: none; }
.lot-detail__title { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-lg); letter-spacing: -.02em; line-height: 1.1; margin-top: -8px; }
.lot-detail__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lot-detail__price { font-family: var(--f-display); font-weight: 600; font-size: 1.75rem; color: var(--c-gold-2); margin-inline-end: 8px; }
.lot-detail__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 20px; }
.lot-detail__block { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: var(--r-md); background: rgba(48, 32, 67, .5); box-shadow: inset 0 0 0 1px var(--c-border-soft); }
.lot-detail__block h3 { font-size: 1rem; font-weight: 700; }
.ticks { list-style: none; display: grid; gap: 8px; color: var(--c-text-2); font-size: var(--fs-sm); }
.ticks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.ticks svg { width: 18px; height: 18px; color: var(--c-gold); margin-top: 1px; }
.steps-mini { list-style: none; display: grid; gap: 10px; counter-reset: s; font-size: var(--fs-sm); color: var(--c-text-2); }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.steps-mini li::before { content: counter(s); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(232,199,126,.5); color: var(--c-gold); font-weight: 700; font-size: .8rem; }
.steps-mini b { color: var(--c-text); }
.lot-detail__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 40rem) { .lot-detail__actions .btn { width: 100%; } }

/* The condition of a custom lot, right above its Pay button: fine print in size, not in contrast */
.lot-terms {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start;
  padding-inline-start: 14px; border-inline-start: 2px solid rgba(232, 199, 126, .55);
  color: var(--c-text-2); font-size: var(--fs-sm); line-height: 1.55;
}
.lot-terms svg { inline-size: 18px; block-size: 18px; margin-block-start: 1px; color: var(--c-gold); }

/* Orders */
.orders { margin-top: var(--s-7); padding: 24px; border-radius: var(--r-lg); background: rgba(48,32,67,.5); box-shadow: inset 0 0 0 1px var(--c-border-soft); }
.orders:focus { outline: none; } /* focused by script after a payment return, only to move the reading position */
.orders__list { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.orders__empty { padding: 14px 16px; border-radius: var(--r-md); background: rgba(16,10,30,.5); }
.orders__notice { margin-block-start: 14px; }
.orders__notice:empty { display: none; }
.orders__notice-text { display: grid; gap: 6px; }
/* an order number in running text: atomic, so a line breaks before it rather than after "PL-"; it still wraps
   inside itself if a line is ever narrower than the number */
.order-id { display: inline-block; font-variant-numeric: tabular-nums; }
.order-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(16,10,30,.5); }
.order-row small { color: var(--c-text-3); }

/* A lot order in My orders (the page and the account dialog): what was bought, its status, and the questionnaire.
   An order that waits for the buyer (no answers yet, or the team asks to clarify) is framed in gold. */
.lot-order { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: var(--r-md); background: rgba(16, 10, 30, .5); }
.lot-order.is-due {
  background: linear-gradient(180deg, rgba(232, 199, 126, .08), rgba(232, 199, 126, 0) 70%), rgba(16, 10, 30, .5);
  box-shadow: inset 0 0 0 1px rgba(232, 199, 126, .42);
}
.lot-order__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.lot-order__id { display: grid; gap: 2px; flex: 1 1 14rem; min-inline-size: 0; }
.lot-order__title { font-weight: 700; }
.lot-order__id small { color: var(--c-text-3); font-size: var(--fs-sm); }
.lot-order__q {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding-block-start: 12px; border-block-start: 1px solid var(--c-border-soft);
}
.lot-order__state { display: grid; gap: 4px; flex: 1 1 16rem; min-inline-size: 0; color: var(--c-text-2); font-size: var(--fs-sm); }
.lot-order__state a { color: var(--c-gold-2); }
.lot-order__sent, .lot-order__status { display: flex; align-items: flex-start; gap: 8px; color: var(--c-text); }
.lot-order__sent svg { flex: none; inline-size: 16px; block-size: 16px; margin-block-start: 3px; color: var(--c-success); }
.acc-orders { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.acc-orders .orders__list { margin-top: 0; }
.acc-orders .lot-order { gap: 10px; padding: 14px; }
.acc-orders .lot-order__q { padding-block-start: 10px; }

/* ---------- Order questionnaire (dialog): after paying for a lot, and from My orders ----------
   One calm column. The only ornament is the order slip on top (the lot's art, its name in pale gold, the order
   number), framed like the lot cards; hints sit between a label and its field, read before typing. */
.q { gap: 20px; }
.q__head { padding-inline-end: 44px; } /* clear of the dialog's close button */
.q__title { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-md); line-height: 1.2; letter-spacing: -.02em; }
.q__title:focus { outline: none; } /* focused by script when the dialog opens (not a control) */
.q__lead, .q__text { color: var(--c-text-2); }
.q__stack { display: grid; gap: 6px; } /* paragraphs that belong together; never on a paragraph itself (inline content) */
.q__muted { color: var(--c-text-3); font-size: var(--fs-sm); }
.q__email { color: var(--c-text); font-weight: 700; }
.q-slip {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px;
  padding-block: 10px; padding-inline: 10px 16px; border-radius: var(--r-md);
  background: linear-gradient(var(--to-inline-end), rgba(232, 199, 126, .1), rgba(232, 199, 126, .02) 60%), rgba(16, 10, 30, .55);
  box-shadow: inset 0 0 0 1px rgba(232, 199, 126, .34);
}
.q-slip:not(:has(.q-slip__art)) { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; }
.q-slip__art {
  inline-size: 3.75rem; block-size: 3.75rem; object-fit: cover; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(232, 199, 126, .4), 0 8px 18px -10px rgba(5, 2, 12, .9);
}
.q-slip__art--object { object-fit: contain; padding: 3px; background: radial-gradient(circle closest-side, rgba(92, 64, 178, .45), #1b1029); }
.q-slip__text { display: grid; gap: 2px; min-inline-size: 0; }
.q-slip__lot { font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; line-height: 1.3; letter-spacing: -.01em; color: var(--c-gold-2); }
.q-slip__meta { color: var(--c-text-3); font-size: var(--fs-sm); }
.q__draft { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; color: var(--c-text-2); font-size: var(--fs-sm); }
.q__draft svg { inline-size: 16px; block-size: 16px; margin-block-start: 3px; color: var(--c-lavender); }

.q__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.q-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.q-field__label { font-weight: 600; }
.q-field__opt { font-weight: 400; color: var(--c-text-3); }
.q-field__hint { color: var(--c-text-3); font-size: var(--fs-sm); line-height: 1.5; margin-block-end: 2px; }
.q-field__area { min-block-size: 9.5rem; padding-block: 12px; line-height: 1.5; resize: vertical; field-sizing: content; max-block-size: 26rem; }
.q-field .input:read-only { border-style: dashed; background: transparent; }
.q-field__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.q-field__foot:not(:has(.q-field__count)):has(.field-error:empty) { display: none; }
.q-field__foot .field-error { flex: 1 1 14rem; min-block-size: 0; }
.q-field__foot .field-error:empty { display: none; }
.q-field__count { margin-inline-start: auto; color: var(--c-text-3); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; unicode-bidi: isolate; overflow-wrap: normal; }
.q-field__count.is-over { color: var(--c-danger); font-weight: 700; }
.q__privacy { color: var(--c-text-3); font-size: var(--fs-sm); }
.q__privacy a { color: var(--c-text-2); }
.q__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 40rem) { .q__actions .btn { flex: 1 1 100%; } }
/* the buttons, the alert line under them (always in the page, so it is announced; no room while empty), the note */
.q__end { display: grid; grid-template-columns: minmax(0, 1fr); }
.q__summary { min-block-size: 0; }
.q__summary:not(:empty) { margin-block-start: 12px; }
.q__summary a { color: inherit; }
.q__summary.notice a { color: var(--c-text); }
.q__note { margin-block-start: 12px; color: var(--c-text-3); font-size: var(--fs-sm); }

/* The answers of an order in production: read-only */
.q-answers { display: grid; gap: 14px; margin: 0; padding: 16px 18px; border-radius: var(--r-md); background: rgba(16, 10, 30, .45); box-shadow: inset 0 0 0 1px var(--c-border-soft); }
.q-answers__item { display: grid; gap: 2px; }
.q-answers dt { color: var(--c-text-3); font-size: var(--fs-sm); }
.q-answers dd { margin: 0; white-space: pre-line; }

/* States of the payment check and the sent questionnaire: a seal on top. While Xsolla is asked, a gold arc runs
   slowly round it (the only motion here; still with reduced motion, the text says what happens). */
.q-seal {
  position: relative; display: grid; place-items: center; inline-size: 3.5rem; block-size: 3.5rem; border-radius: 50%;
  color: var(--c-gold); box-shadow: inset 0 0 0 1px rgba(232, 199, 126, .5), 0 0 36px rgba(232, 199, 126, .14);
}
.q-seal svg { inline-size: 1.5rem; block-size: 1.5rem; }
.q-seal--info { color: var(--c-lavender); box-shadow: inset 0 0 0 1px rgba(155, 121, 213, .55), 0 0 36px rgba(155, 121, 213, .14); }
.q-seal--busy::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent; border-block-start-color: var(--c-gold-2);
  animation: spin 1.4s linear infinite;
}
.q-seal--busy::after { content: ''; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--c-gold); box-shadow: 0 0 12px rgba(232, 199, 126, .8); }
.q-next { display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(48, 32, 67, .5); box-shadow: inset 0 0 0 1px var(--c-border-soft); }
.q-next__title { font-size: 1rem; font-weight: 700; }

/* ---------- Order chat (dialog): the buyer and the team inside one order ----------
   The dialog holds a fixed-height window: the order on top, the messages scroll in the middle, the composer stays at
   the bottom. The team writes on the start side (a gold seal), the buyer on the end side (rose); the team's first
   message is the questionnaire, framed like the order slip. */
.dialog__body.chat {
  grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px;
  block-size: min(52rem, 86svh); padding-block-end: 16px; overflow: hidden;
}
@media (max-width: 40rem) { .dialog__body.chat { block-size: 90svh; padding-inline: 14px; } }
.chat__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.chat__slip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.chat__slip .q-slip { flex: 1 1 18rem; min-inline-size: 0; }
@media (max-height: 40rem) { .chat__slip .q-slip__art { display: none; } }

.chat__log {
  min-block-size: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
  margin-inline: -6px; padding: 6px; border-radius: var(--r-md);
  background: radial-gradient(80% 50% at 50% 0%, rgba(155, 121, 213, .07), transparent 70%), rgba(10, 6, 20, .42);
  box-shadow: inset 0 0 0 1px var(--c-border-soft);
}
.chat__log:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }
.chat__loading { display: grid; place-items: center; block-size: 100%; min-block-size: 8rem; }
.chat__list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px 6px 4px; }
.chat__day, .chat__event { display: flex; justify-content: center; text-align: center; color: var(--c-text-3); font-size: var(--fs-xs); }
.chat__day span { padding: 3px 12px; border-radius: var(--r-pill); background: rgba(249, 242, 252, .05); }
.chat__event { flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.chat__event span { color: var(--c-text-2); font-weight: 600; }

.chat__msg { display: flex; align-items: flex-end; gap: 8px; min-inline-size: 0; }
.chat__msg--mine { justify-content: flex-end; }
.chat__avatar {
  display: grid; place-items: center; flex: none; inline-size: 30px; block-size: 30px; border-radius: 50%;
  color: var(--c-gold-2); background: radial-gradient(circle at 35% 30%, rgba(232, 199, 126, .28), rgba(27, 16, 41, .9));
  box-shadow: inset 0 0 0 1px rgba(232, 199, 126, .45);
}
.chat__avatar svg { inline-size: 15px; block-size: 15px; }
.chat__bubble {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-inline-size: 0; max-inline-size: 86%;
  padding: 10px 14px 8px; border-radius: 18px; border-end-start-radius: 6px;
  background: rgba(48, 32, 67, .72); box-shadow: inset 0 0 0 1px var(--c-border-soft);
  overflow-wrap: anywhere;
}
.chat__msg--mine .chat__bubble {
  border-end-start-radius: 18px; border-end-end-radius: 6px;
  background: linear-gradient(160deg, rgba(234, 91, 154, .26), rgba(155, 121, 213, .2)); box-shadow: inset 0 0 0 1px rgba(234, 91, 154, .3);
}
.chat__msg--card .chat__bubble { max-inline-size: 100%; flex: 1 1 auto; }
.chat__msg--team.chat__msg--card .chat__bubble {
  background: linear-gradient(170deg, rgba(232, 199, 126, .1), rgba(232, 199, 126, .02) 55%), rgba(27, 16, 41, .85);
  box-shadow: inset 0 0 0 1px rgba(232, 199, 126, .34);
}
.chat__who { color: var(--c-gold-2); font-size: var(--fs-xs); font-weight: 700; }
.chat__msg--mine .chat__who { color: #ffb3d3; }
.chat__text { white-space: pre-wrap; line-height: 1.5; }
.chat__muted { color: var(--c-text-3); font-size: var(--fs-sm); font-style: italic; }
.chat__questions { display: grid; gap: 4px; margin: 0; padding-inline-start: 1.25em; color: var(--c-text-2); }
.chat__questions li::marker { color: var(--c-gold-2); }
.chat__questions li { display: list-item; }
.chat__questions b { font-weight: 600; color: var(--c-text); }
.chat__question-hint { display: block; margin-block-start: 2px; color: var(--c-text-3); font-size: var(--fs-sm); line-height: 1.45; }
/* pictures are welcome: references, sketches, AI images */
.chat__pictures { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(232, 199, 126, .08); box-shadow: inset 0 0 0 1px rgba(232, 199, 126, .22); color: var(--c-text-2); font-size: var(--fs-sm); line-height: 1.5; }
.chat__pictures svg { flex: none; inline-size: 18px; block-size: 18px; margin-block-start: 2px; color: var(--c-gold-2); }
.chat__card-title { display: flex; align-items: flex-start; gap: 6px; font-weight: 700; }
.chat__card-title svg { flex: none; inline-size: 16px; block-size: 16px; margin-block-start: 3px; color: var(--c-success); }
.chat__card-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-block-start: 4px; }
.chat__answers { display: grid; gap: 8px; margin: 0; }
.chat__answers dt { color: var(--c-text-3); font-size: var(--fs-xs); }
.chat__answers dd { margin: 0; white-space: pre-line; }
.chat__meta { display: inline-flex; align-items: center; justify-self: end; gap: 4px; color: var(--c-text-3); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.chat__ticks { display: inline-flex; color: var(--c-text-3); }
.chat__ticks svg { inline-size: 14px; block-size: 14px; }
.chat__ticks svg + svg { margin-inline-start: -9px; }
.chat__ticks.is-read { color: var(--c-cyan); }

.chat__files { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; inline-size: min(100%, 20rem); }
.chat__files:not([data-n="1"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chat__file { display: block; overflow: hidden; border-radius: 12px; background: rgba(249, 242, 252, .05); }
.chat__file img { display: block; inline-size: 100%; block-size: auto; max-block-size: 18rem; object-fit: cover; }
.chat__files:not([data-n="1"]) .chat__file img { aspect-ratio: 1; block-size: 100%; }
.chat__file:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }

.chat__compose { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.chat__row { display: flex; align-items: flex-end; gap: 8px; }
.chat__attach { flex: none; cursor: pointer; }
.chat__attach:focus-within { outline: 2px solid var(--c-cyan); outline-offset: 2px; }
.chat__input { flex: 1 1 auto; min-inline-size: 0; min-block-size: 44px; max-block-size: 14rem; padding-block: 10px; line-height: 1.45; resize: none; field-sizing: content; overflow-y: hidden; }
.chat__send { flex: none; inline-size: 44px; min-block-size: 44px; padding: 0; border-radius: 50%; }
.chat__send svg { inline-size: 20px; block-size: 20px; }
[dir="rtl"] .chat__send svg { scale: -1 1; }
.chat__hint { color: var(--c-text-3); font-size: var(--fs-xs); }
.chat__compose .field-error:empty { display: none; }
.chat__pending { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chat__pending:empty { display: none; }
.chat__chip {
  position: relative; display: grid; place-items: center; inline-size: 56px; block-size: 56px;
  border-radius: 12px; background: rgba(249, 242, 252, .06); box-shadow: inset 0 0 0 1px var(--c-border-soft);
}
.chat__chip img { inline-size: 100%; block-size: 100%; object-fit: cover; border-radius: inherit; }
.chat__chip .spinner { position: absolute; }
.chat__chip.is-error { box-shadow: inset 0 0 0 2px var(--c-danger); }
.chat__chip-x {
  position: absolute; inset-block-start: 2px; inset-inline-end: 2px; display: grid; place-items: center;
  inline-size: 24px; block-size: 24px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(10, 6, 20, .8); color: var(--c-text); font-size: 16px; line-height: 1; cursor: pointer;
}
/* the remove button is small to keep the picture visible; its tap area reaches the chip's corner */
.chat__chip-x::before { content: ''; position: absolute; inset: -10px; }
.chat__closed { margin: 0; }

/* My orders: the way into the order chat, with the count of new messages from the team */
.lot-order__chat { gap: 8px; }
.lot-order__chat svg { inline-size: 18px; block-size: 18px; }
.lot-order__unread {
  min-inline-size: 1.5em; padding: 1px 7px; border-radius: var(--r-pill); background: var(--c-pink); color: #1c0612;
  font-size: var(--fs-xs); font-weight: 800; font-variant-numeric: tabular-nums; unicode-bidi: isolate;
}
/* the cart: what follows paying for a premium lot */
.cart__lots { list-style: none; margin-block-start: 12px; }
.cart__lots div { display: grid; gap: 6px; }

/* ---------- Thanks ---------- */
.thanks { background: radial-gradient(50% 60% at 50% 40%, rgba(232, 199, 126, .06), transparent 70%); }
.thanks__wall { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); max-width: 1080px; margin-inline: auto; }
.name-plate { position: relative; display: grid; gap: 4px; padding: 20px 22px; border-radius: var(--r-md); text-align: center;
  background: linear-gradient(180deg, rgba(48,32,67,.7), rgba(27,16,41,.7)); box-shadow: inset 0 0 0 1px rgba(232,199,126,.25); }
.name-plate b { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; color: var(--c-gold-2); }
.name-plate span { font-size: var(--fs-sm); color: var(--c-text-3); }
.thanks-empty {
  grid-column: 1 / -1; position: relative; display: grid; justify-items: center; gap: 14px; padding: clamp(36px, 6vw, 64px) 24px; text-align: center;
  border-radius: var(--r-xl); background: radial-gradient(60% 80% at 50% 0%, rgba(232, 199, 126, .1), transparent 70%), rgba(27,16,41,.6);
  box-shadow: inset 0 0 0 1px rgba(232,199,126,.22);
}
.thanks-empty__seal { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; color: var(--c-gold); box-shadow: inset 0 0 0 1px rgba(232,199,126,.5), 0 0 40px rgba(232,199,126,.15); }
.thanks-empty__seal svg { width: 30px; height: 30px; }
.thanks-empty h3 { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-md); }
.thanks-empty p { color: var(--c-text-2); max-width: 52ch; }

/* ---------- About ---------- */
/* Four cards with story covers from the game (portrait art): one column of landscape crops on phones,
   2×2 on tablets, one row of four on wide screens (never 3 + 1). */
.story-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 2vw, 22px); }
.story-row {
  display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--c-surface), #160f22); box-shadow: inset 0 0 0 1px var(--c-border-soft), var(--shadow-2);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.story-row:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(234,91,154,.38), var(--shadow-3); }
/* The covers are shown whole in their own proportions (800 x 1301): a fixed 3:4 or 4:5 crop cut the fireworks, the
   painting's frame and the starship. The cover itself dissolves into the card at the bottom along an eased curve (a
   mask, not a dark layer over it: an overlay never quite matched the card colour and left a visible line). */
.story-row__media { position: relative; margin: 0; width: 100%; overflow: hidden; }
.story-row__media img {
  display: block; width: 100%; aspect-ratio: 800 / 1301; object-fit: cover; object-position: 50% 0; transition: transform 900ms var(--ease-out);
  -webkit-mask-image: linear-gradient(180deg, #000 76%, rgba(0, 0, 0, 1) calc(76% + 24% * 0), rgba(0, 0, 0, 0.97) calc(76% + 24% * 0.1), rgba(0, 0, 0, 0.9) calc(76% + 24% * 0.21), rgba(0, 0, 0, 0.79) calc(76% + 24% * 0.32), rgba(0, 0, 0, 0.65) calc(76% + 24% * 0.43), rgba(0, 0, 0, 0.5) calc(76% + 24% * 0.53), rgba(0, 0, 0, 0.35) calc(76% + 24% * 0.63), rgba(0, 0, 0, 0.22) calc(76% + 24% * 0.72), rgba(0, 0, 0, 0.12) calc(76% + 24% * 0.81), rgba(0, 0, 0, 0.05) calc(76% + 24% * 0.89), rgba(0, 0, 0, 0.01) calc(76% + 24% * 0.96), transparent calc(76% + 24% * 1));
  mask-image: linear-gradient(180deg, #000 76%, rgba(0, 0, 0, 1) calc(76% + 24% * 0), rgba(0, 0, 0, 0.97) calc(76% + 24% * 0.1), rgba(0, 0, 0, 0.9) calc(76% + 24% * 0.21), rgba(0, 0, 0, 0.79) calc(76% + 24% * 0.32), rgba(0, 0, 0, 0.65) calc(76% + 24% * 0.43), rgba(0, 0, 0, 0.5) calc(76% + 24% * 0.53), rgba(0, 0, 0, 0.35) calc(76% + 24% * 0.63), rgba(0, 0, 0, 0.22) calc(76% + 24% * 0.72), rgba(0, 0, 0, 0.12) calc(76% + 24% * 0.81), rgba(0, 0, 0, 0.05) calc(76% + 24% * 0.89), rgba(0, 0, 0, 0.01) calc(76% + 24% * 0.96), transparent calc(76% + 24% * 1));
}
.story-row:hover .story-row__media img { transform: scale(1.04); }
.story-row__text { z-index: 1; display: grid; align-content: start; gap: 10px; max-width: none; margin-block-start: -3.25rem; padding: 0 22px 24px; }
.story-row__text .t-h2 { font-size: clamp(1.3rem, 1.1rem + .55vw, 1.65rem); }
.story-row__text .t-lead { font-size: .95rem; }
@media (min-width: 40rem) {
  .story-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 70rem) {
  .story-rows { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Gallery ---------- */
.gallery__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: var(--s-5); }
.gallery__controls { display: flex; gap: 8px; }
.gallery__viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__viewport:focus-visible { outline-offset: -3px; }
.gallery__track { list-style: none; display: flex; gap: 16px; width: max-content; padding-block: 8px 24px; }
.gallery__item { scroll-snap-align: start; width: clamp(220px, 22vw, 300px); }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-border-soft), var(--shadow-2); transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base); }
.gallery__btn:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(234,91,154,.45), var(--shadow-3); }
/* the shots in their own proportions (720 x 1171), never cropped */
.gallery__btn img { display: block; width: 100%; aspect-ratio: 720 / 1171; object-fit: cover; }
.lightbox { display: grid; place-items: center; background: #0b0614; }
.lightbox img { max-height: 86svh; width: auto; max-width: 100%; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { inset-inline-start: 12px; }
.lightbox__nav--next { inset-inline-end: 12px; }
.lightbox__count { position: absolute; bottom: 12px; left: 50%; translate: -50% 0; padding: 4px 12px; border-radius: var(--r-pill); background: rgba(16,10,30,.7); font-size: var(--fs-sm); }

/* ---------- Download ---------- */
.download__card {
  position: relative; display: grid; grid-template-columns: minmax(min(100%, 21rem), .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 4vw, 56px); overflow: hidden;
  border-radius: var(--r-xl); padding: clamp(28px, 5vw, 64px) clamp(24px, 5vw, 72px);
  background:
    radial-gradient(60% 100% at 0% 100%, rgba(120,221,235,.15), transparent 60%),
    linear-gradient(135deg, #241732, #15101f);
  box-shadow: inset 0 0 0 1px rgba(234,91,154,.25), var(--shadow-3);
}
/* A scene of the game fills the art side of the card edge to edge: the New Year special cover (reindeer heroine),
   its room painted on to the sides in ChatGPT (26.11.2026), the cover itself pixel for pixel; the heroine stands in the
   middle of the art box, which stays fully opaque to 80% so she reads as centred (an early fade pushed her left). It dissolves into the card toward
   the text along an eased curve; on narrow screens it sits on top and dissolves downward. */
.download__art {
  position: relative; align-self: stretch; min-height: 360px;
  margin-block: calc(-1 * clamp(28px, 5vw, 64px)); margin-inline-start: calc(-1 * clamp(24px, 5vw, 72px));
}
.download__scene {
  position: absolute; inset: 0; inline-size: 100%; block-size: 100%; max-inline-size: none; object-fit: cover; object-position: 50% 50%;
  -webkit-mask-image: linear-gradient(var(--to-inline-end), #000 80%, rgba(0, 0, 0, 1) calc(80% + 20% * 0), rgba(0, 0, 0, 0.97) calc(80% + 20% * 0.1), rgba(0, 0, 0, 0.9) calc(80% + 20% * 0.21), rgba(0, 0, 0, 0.79) calc(80% + 20% * 0.32), rgba(0, 0, 0, 0.65) calc(80% + 20% * 0.43), rgba(0, 0, 0, 0.5) calc(80% + 20% * 0.53), rgba(0, 0, 0, 0.35) calc(80% + 20% * 0.63), rgba(0, 0, 0, 0.22) calc(80% + 20% * 0.72), rgba(0, 0, 0, 0.12) calc(80% + 20% * 0.81), rgba(0, 0, 0, 0.05) calc(80% + 20% * 0.89), rgba(0, 0, 0, 0.01) calc(80% + 20% * 0.96), transparent calc(80% + 20% * 1));
  mask-image: linear-gradient(var(--to-inline-end), #000 80%, rgba(0, 0, 0, 1) calc(80% + 20% * 0), rgba(0, 0, 0, 0.97) calc(80% + 20% * 0.1), rgba(0, 0, 0, 0.9) calc(80% + 20% * 0.21), rgba(0, 0, 0, 0.79) calc(80% + 20% * 0.32), rgba(0, 0, 0, 0.65) calc(80% + 20% * 0.43), rgba(0, 0, 0, 0.5) calc(80% + 20% * 0.53), rgba(0, 0, 0, 0.35) calc(80% + 20% * 0.63), rgba(0, 0, 0, 0.22) calc(80% + 20% * 0.72), rgba(0, 0, 0, 0.12) calc(80% + 20% * 0.81), rgba(0, 0, 0, 0.05) calc(80% + 20% * 0.89), rgba(0, 0, 0, 0.01) calc(80% + 20% * 0.96), transparent calc(80% + 20% * 1));
}
.download__copy { display: grid; gap: var(--s-4); justify-items: start; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding-block: 6px; padding-inline: 16px 20px; border-radius: var(--r-md); background: #0b0614; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); text-decoration: none; transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-base); }
.store-badge:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge span { display: grid; font-size: 12px; line-height: 1.15; color: var(--c-text-2); }
.store-badge b { font-size: 1.05rem; color: var(--c-text); }
.store-badge small { font-size: 12px; color: var(--c-gold); display: inline-flex; align-items: center; gap: 4px; }
.store-badge small svg { width: 12px; height: 12px; }
@media (max-width: 860px) {
  .download__card { grid-template-columns: 1fr; }
  .download__art { order: 0; min-height: 0; aspect-ratio: 5 / 4; margin-inline: calc(-1 * clamp(24px, 5vw, 72px)); margin-block-end: 0; }
  .download__scene {
    -webkit-mask-image: linear-gradient(180deg, #000 62%, rgba(0, 0, 0, 1) calc(62% + 38% * 0), rgba(0, 0, 0, 0.97) calc(62% + 38% * 0.1), rgba(0, 0, 0, 0.9) calc(62% + 38% * 0.21), rgba(0, 0, 0, 0.79) calc(62% + 38% * 0.32), rgba(0, 0, 0, 0.65) calc(62% + 38% * 0.43), rgba(0, 0, 0, 0.5) calc(62% + 38% * 0.53), rgba(0, 0, 0, 0.35) calc(62% + 38% * 0.63), rgba(0, 0, 0, 0.22) calc(62% + 38% * 0.72), rgba(0, 0, 0, 0.12) calc(62% + 38% * 0.81), rgba(0, 0, 0, 0.05) calc(62% + 38% * 0.89), rgba(0, 0, 0, 0.01) calc(62% + 38% * 0.96), transparent calc(62% + 38% * 1));
    mask-image: linear-gradient(180deg, #000 62%, rgba(0, 0, 0, 1) calc(62% + 38% * 0), rgba(0, 0, 0, 0.97) calc(62% + 38% * 0.1), rgba(0, 0, 0, 0.9) calc(62% + 38% * 0.21), rgba(0, 0, 0, 0.79) calc(62% + 38% * 0.32), rgba(0, 0, 0, 0.65) calc(62% + 38% * 0.43), rgba(0, 0, 0, 0.5) calc(62% + 38% * 0.53), rgba(0, 0, 0, 0.35) calc(62% + 38% * 0.63), rgba(0, 0, 0, 0.22) calc(62% + 38% * 0.72), rgba(0, 0, 0, 0.12) calc(62% + 38% * 0.81), rgba(0, 0, 0, 0.05) calc(62% + 38% * 0.89), rgba(0, 0, 0, 0.01) calc(62% + 38% * 0.96), transparent calc(62% + 38% * 1));
  }
}

/* ---------- Socials ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(249,242,252,.06); color: var(--c-text-2); transition: background-color var(--t-base), color var(--t-base), transform var(--t-fast) var(--ease-out); }
.socials a:hover { background: var(--c-btn); color: #fff; transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.socials--lg { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: clamp(56px, 6vw, 88px) 0 calc(28px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, var(--c-bg), #0b0715); border-top: 1px solid var(--c-border-soft); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.site-footer__brand { display: grid; gap: 16px; align-content: start; max-width: 340px; }
.site-footer__brand p { color: var(--c-text-3); font-size: var(--fs-sm); }
.site-footer__col { display: grid; align-content: start; gap: 4px; }
.site-footer__col h2 { font-family: var(--f-body); font-size: var(--fs-sm); font-weight: 700; color: var(--c-text); margin-bottom: 8px; }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--c-text-3); text-decoration: none; font-size: var(--fs-sm); transition: color var(--t-base); }
.site-footer__col a:hover { color: var(--c-text); text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--c-border-soft); color: var(--c-text-3); font-size: var(--fs-xs); }
.age-badge { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--c-text-3); color: var(--c-text); font-weight: 800; font-size: .8rem; }
@media (max-width: 860px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 26rem) { .site-footer__top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cart ---------- */
.cart__list { list-style: none; display: grid; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); background: rgba(48,32,67,.5); }
.cart-line img { width: 56px; height: 56px; object-fit: contain; border-radius: var(--r-sm); }
.cart-line__name { font-weight: 700; line-height: 1.25; }
.cart-line__price { font-size: var(--fs-sm); color: var(--c-text-3); }
.cart-line.is-invalid { box-shadow: inset 0 0 0 1px var(--c-danger); }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: var(--r-pill); background: rgba(16,10,30,.6); }
.stepper button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 1.1rem; }
.stepper button:hover { background: rgba(249,242,252,.1); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart__empty { display: grid; justify-items: center; gap: 12px; padding: 48px 12px; text-align: center; color: var(--c-text-3); }
.cart__empty svg { width: 40px; height: 40px; color: var(--c-text-3); }
.cart__total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; font-size: 1.125rem; }
.cart__total b { font-size: 1.4rem; }
.cart__secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: var(--fs-xs); color: var(--c-text-3); }
.cart__secure svg { width: 16px; height: 16px; color: var(--c-success); }
/* promo code: folded until the buyer asks for it; Xsolla checks the code and prices the order with it */
.promo > summary { display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; cursor: pointer; list-style: none; color: var(--c-text-2); font-size: var(--fs-sm); font-weight: 600; }
.promo > summary::-webkit-details-marker { display: none; }
.promo > summary:hover { color: var(--c-text); }
.promo > summary:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; border-radius: var(--r-sm); }
.promo > summary svg { inline-size: 16px; block-size: 16px; flex: none; transition: rotate var(--t-fast) var(--ease-out); }
.promo[open] > summary svg { rotate: 90deg; }
[dir="rtl"] .promo > summary svg { scale: -1 1; }
[dir="rtl"] .promo[open] > summary svg { rotate: -90deg; }
.promo__field { padding-block-end: 4px; }
@media (prefers-reduced-motion: reduce) { .promo > summary svg { transition: none; } }

/* fly-to-cart ghost */
.fly { position: fixed; top: 0; left: 0; z-index: var(--z-toast); width: 48px; height: 48px; object-fit: contain; pointer-events: none; }

/* ---------- Phone density ---------- */
@media (max-width: 560px) {
  .s-card__body { padding: 12px; }
  .s-card__foot { align-items: stretch; flex-direction: column; }
  .s-card__title { font-size: .9rem; }
  .s-card__media .badge { top: 8px; inset-inline-start: 8px; max-inline-size: calc(100% - 16px); font-size: .68rem; }
  .stores { width: 100%; }
  .store-badge { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .premium__head .t-display { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .premium__head .t-lead { max-width: 100%; }
}

/* ========================================================================== 
   Product review 2026-11: compact commerce architecture
   ========================================================================== */
.mobile-menu__divider { height: 1px; margin-block: 10px; background: var(--c-border-soft); }
.account-copy { margin-block: 4px 18px; justify-self: start; }


/* The shop introduction is a utility strip, not another landing page. */
.shop { padding-top: clamp(52px, 6vw, 76px); }
.shop-intro {
  grid-template-columns: minmax(0, 1.3fr) minmax(min(100%, 34rem), .7fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(24px, 4vw, 42px);
}
.shop-intro .t-display { font-size: clamp(1.8rem, 1.35rem + 2vw, 3rem); }
.shop-intro .t-lead { font-size: 1rem; }
.shop-guide { display: grid; gap: 12px; border: 0; }
.shop-guide p { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; }
.shop-guide svg { width: 22px; height: 22px; color: var(--c-pink); }
.shop-guide span { display: grid; gap: 2px; }
.shop-guide b { font-size: .9rem; }
.shop-guide small { color: var(--c-text-3); font-size: .78rem; line-height: 1.4; }
.shop-cat { scroll-margin-top: calc(var(--header-h) + 18px); }
@media (max-width: 60rem) { .shop-intro { grid-template-columns: 1fr; } }

/* Honest, compact foundations for not-yet-approved commercial directions. */
.future-commerce { padding-block: clamp(34px, 4vw, 54px); }
.future-commerce + .future-commerce { padding-top: 0; }
.future-commerce__card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(min(100%, 18rem), auto);
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-xl);
  background: linear-gradient(110deg, rgba(48,32,67,.74), rgba(27,20,39,.8));
  box-shadow: inset 0 0 0 1px var(--c-border-soft);
}
.future-commerce--merch .future-commerce__card { background: linear-gradient(110deg, rgba(39,37,58,.76), rgba(24,20,36,.84)); }
.future-commerce__mark { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; background: rgba(234,91,154,.12); color: var(--c-pink); }
.future-commerce__mark--merch { color: var(--c-cyan); background: rgba(120,221,235,.1); }
.future-commerce__mark svg { width: 30px; height: 30px; }
.future-commerce__copy { display: grid; gap: 7px; }
.future-commerce__copy p:last-child { max-width: 62ch; color: var(--c-text-2); }
.future-commerce__status { display: flex; align-items: center; gap: 9px; color: var(--c-text-2); font-size: .8rem; line-height: 1.4; }
.future-commerce__status svg { flex: none; width: 18px; height: 18px; color: var(--c-gold); }
@media (max-width: 52rem) {
  .future-commerce__card { grid-template-columns: 54px minmax(0, 1fr); border-radius: var(--r-lg); }
  .future-commerce__mark { width: 54px; height: 54px; border-radius: 16px; }
  .future-commerce__status { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--c-border-soft); }
}
@media (max-width: 26rem) {
  .future-commerce__card { grid-template-columns: 1fr; }
  .future-commerce__status { grid-column: auto; }
}

/* ==========================================================================
   Currency shop (23.11.2026, second design): the shop's category nav and the three currency sections, shards,
   tokens and wishes (.cur-sec), with their packs (.p-card, rendered only here). Everything is scoped to them.
   One vertical card for every pack, of a controlled size: a centred row per currency (5 / 3 / 4), never cards
   stretched to fill the page. Three zones in each card: the art (shown as it is: never cropped, tinted or
   animated, the light lives on the card around it), the amount, and price + button as one group.
   ========================================================================== */
.shop__sections { container: shop / inline-size; gap: clamp(48px, 5vw, 64px); }

/* currency accents: the light behind the art, the button tint, the best-value edge and badge, the active nav item */
.cur-sec, .cat-chip { --cur: var(--c-pink); --cur-2: var(--c-pink-hover); }
[data-cur="shards"] { --cur: #8cc8ff; --cur-2: #a99fff; }
[data-cur="tokens"] { --cur: #e2c283; --cur-2: #d9a35e; }
[data-cur="wishes"] { --cur: #b78dff; --cur-2: #dfa6ff; }

/* ---------- Category nav: one segmented control, centred over the shelves ---------- */
.shop-nav { margin-bottom: clamp(28px, 3.5vw, 44px); }
.shop-nav__track {
  display: flex; gap: 4px; inline-size: fit-content; max-inline-size: 100%; margin-inline: auto; padding: 4px; overflow-x: auto; scrollbar-width: none;
  border-radius: 16px; background: rgba(249, 242, 252, .03); box-shadow: inset 0 0 0 1px var(--c-border-soft);
}
.shop-nav__track::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; display: inline-flex; align-items: center; gap: 9px; min-block-size: 44px; padding-inline: 8px 10px; border-radius: 12px;
  white-space: nowrap; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--c-text-2);
  transition: background-color var(--t-base), color var(--t-base), box-shadow var(--t-base);
}
.cat-chip img { inline-size: 26px; block-size: 26px; object-fit: contain; }
.cat-chip__count {
  min-inline-size: 1.6em; padding: 2px 6px; border-radius: 6px; background: rgba(249, 242, 252, .06);
  color: var(--c-text-3); font-size: .75rem; font-weight: 700; line-height: 1.3; text-align: center; font-variant-numeric: tabular-nums;
  transition: background-color var(--t-base), color var(--t-base);
}
.cat-chip:hover { color: var(--c-text); background-color: rgba(249, 242, 252, .05); }
.cat-chip:focus-visible { outline: 2px solid var(--cur); outline-offset: 2px; }
.cat-chip[aria-current="true"] {
  color: #fff; background-color: color-mix(in oklab, var(--cur) 12%, #241b31);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--cur) 36%, transparent), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.cat-chip[aria-current="true"] .cat-chip__count { color: #fff; background: color-mix(in oklab, var(--cur) 26%, transparent); }
/* phone: equal segments across the width, the icon over its name and count */
@media (max-width: 32rem) {
  .shop-nav__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); inline-size: 100%; }
  .cat-chip { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 3px 6px; padding: 7px 10px; }
  .cat-chip img { grid-column: 1 / -1; justify-self: center; inline-size: 24px; block-size: 24px; }
}

/* ---------- Section head: a compact centred lockup (icon, name, line of text) right over its row ---------- */
.cur-sec .shop-cat__head {
  grid-template-columns: auto minmax(0, max-content); justify-content: center; align-items: center; gap: 0 12px;
  margin-block-end: clamp(18px, 2vw, 24px);
}
.cur-sec .shop-cat__icon { inline-size: 2.5rem; block-size: 2.5rem; filter: drop-shadow(0 4px 12px color-mix(in oklab, var(--cur) 30%, transparent)); }
.cur-sec .shop-cat__titles { gap: 2px; }
.cur-sec .shop-cat__head h3 { font-size: clamp(1.5rem, 1.3rem + .6vw, 1.875rem); line-height: 1.12; }
.cur-sec .shop-cat__head p { font-size: .875rem; line-height: 1.45; max-inline-size: 52ch; }

/* ---------- Rows: one card width for all three currencies at a given screen; rows centred ----------
   --w is measured on the shop (cqi): 5 a row on a wide screen, 3 on a tablet, 2 on a phone; never wider than
   16rem, so a short row (3 tokens) stays a centred group instead of stretching its cards. */
.cur-grid {
  --gap: 12px; --w: calc((100cqi - var(--gap)) / 2 - .1px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap);
}
.cur-grid > .p-card { flex: 0 0 var(--w); }
@container shop (width >= 40rem) {
  .cur-grid { --gap: 16px; --w: min(16rem, calc((100cqi - 2 * var(--gap)) / 3 - .1px)); }
  .cur-grid[data-count="4"] { max-inline-size: calc(2 * var(--w) + var(--gap) + 1px); margin-inline: auto; } /* 2 + 2, not 3 + 1 */
}
@container shop (width >= 64rem) {
  .cur-grid { --w: min(16rem, calc((100cqi - 4 * var(--gap)) / 5 - .1px)); }
  .cur-grid[data-count="4"] { max-inline-size: none; }
}

/* ---------- The card: a small lit showcase ----------
   One key light for every card, from the upper left, where the packs' own renders are lit from: it washes the
   card's upper left, catches the card's edge there and throws each object's silhouette shadow to the right on the
   floor. The currency's light glows behind the art and pools on the floor under it. (Physical left on purpose:
   the pictures are not mirrored in RTL, so neither is their light.) */
.cur-sec .p-card {
  container-type: inline-size;
  position: relative; display: flex; border-radius: 18px; text-align: center; isolation: isolate;
  overflow: clip; /* the floor ends at the card's edge: a wide object's shadow never reaches past it (or past the page) */
  background:
    radial-gradient(115% 62% at 0% 0%, rgba(255, 244, 255, .085), transparent 62%),
    radial-gradient(58% 36% at 44% 31%, color-mix(in oklab, var(--cur) 17%, transparent), transparent 72%),
    linear-gradient(168deg, #1e162b, #150f20 56%, #110b19);
  box-shadow: 6px 18px 34px -24px rgba(3, 1, 8, 1); /* thrown a little to the right, like everything under this light */
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
/* the edge catches the key light: bright at the upper left, almost gone toward the lower right */
.cur-sec .p-card::before {
  content: ''; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 240, 255, .26), rgba(233, 205, 255, .08) 30%, rgba(233, 205, 255, .035) 66%, rgba(233, 205, 255, .07));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
@media (hover: hover) {
  .cur-sec .p-card:hover { transform: translateY(-2px); box-shadow: 8px 24px 40px -24px rgba(3, 1, 8, 1); }
}
/* best value (Xsolla data): the one special status gets the same edge in its currency's light */
.cur-sec .p-card--best::before {
  background: linear-gradient(135deg, color-mix(in oklab, var(--cur) 85%, #fff), color-mix(in oklab, var(--cur) 34%, transparent) 34%, color-mix(in oklab, var(--cur-2) 12%, transparent) 70%, color-mix(in oklab, var(--cur) 26%, transparent));
}
.cur-sec .p-card__in { display: flex; flex-direction: column; inline-size: 100%; min-inline-size: 0; padding: 0 16px 16px; }

/* A. the art on its stage: a fixed stage, so every object stands on the same floor line in a row (the top lane
   holds the badge). The object stands on its own base (--pad-b, the transparent margin under it, measured by
   groundArt in app.js); its silhouette lies on the floor as a shadow falling to the right, hinged on the object's
   bottom edge (tilted with it for an object drawn at three-quarters: --tilt, --hinge-x); a contact shadow sits
   under its footprint (--foot-x, --foot-w) and the currency's light pools on the floor. The silhouette's picture
   (--src) is set once the picture itself has loaded, so lazy loading stays lazy. The picture is never cropped or
   tinted, and never wider than its stage (large text, narrow cards). */
.cur-sec .p-card__media {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: end center; block-size: 10.25rem; padding-block: 2rem .75rem;
}
.cur-sec .p-card__media::before { /* the lit floor the shadow falls on, its brightest spot toward the key light */
  content: ''; position: absolute; inset-inline: 2%; inset-block-end: -.25rem; block-size: 2.25rem; border-radius: 50%;
  background: radial-gradient(closest-side at 44% 50%, color-mix(in oklab, var(--cur) 34%, rgba(255, 255, 255, .06)), color-mix(in oklab, var(--cur) 12%, transparent) 58%, transparent);
}
.cur-sec .p-card__art {
  --pad-b: .04; --foot-x: .5; --foot-w: .5; --tilt: 0deg; --hinge-x: .5;
  position: relative; display: block; max-inline-size: 100%; translate: 0 calc(var(--pad-b) * 100%);
}
.cur-sec .p-card__art img {
  position: relative; z-index: 1; display: block; inline-size: auto; block-size: auto; max-inline-size: min(7.75rem, 100%); max-block-size: 6.75rem;
  filter: drop-shadow(2px 5px 8px rgba(4, 2, 10, .32));
  transition: transform var(--t-base) var(--ease-out);
}
.cur-sec .p-card__art::before { /* the silhouette laid on the floor, falling right, away from the key light, and fading */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--src, none) center / 100% 100% no-repeat;
  filter: brightness(0) blur(1.8px); opacity: .78;
  transform-origin: calc(var(--hinge-x) * 100%) calc(100% - var(--pad-b) * 100%);
  transform: skewY(calc(var(--tilt) * -1)) skewX(56deg) scaleY(-.3) skewY(var(--tilt));
  -webkit-mask: linear-gradient(to top, #000 calc(var(--pad-b) * 100% + 4%), rgba(0, 0, 0, .55) 50%, rgba(0, 0, 0, .2) 78%, transparent 96%);
  mask: linear-gradient(to top, #000 calc(var(--pad-b) * 100% + 4%), rgba(0, 0, 0, .55) 50%, rgba(0, 0, 0, .2) 78%, transparent 96%);
  transition: opacity var(--t-base) var(--ease-out), translate var(--t-base) var(--ease-out);
}
.cur-sec .p-card__art::after { /* contact shadow under the footprint (nothing while the picture has no size yet) */
  content: ''; position: absolute; pointer-events: none; border-radius: 50%;
  inset-block-end: calc(var(--pad-b) * 100% - 5px); block-size: 10px;
  inset-inline-start: calc((var(--foot-x) - var(--foot-w) / 2) * 100% - min(4px, 50%)); inline-size: calc(var(--foot-w) * 100% + min(8px, 100%));
  background: radial-gradient(closest-side, rgba(3, 1, 8, .72), rgba(3, 1, 8, 0));
  transition: opacity var(--t-base) var(--ease-out), scale var(--t-base) var(--ease-out);
}
/* the object rises off the floor: its shadow stays, separates a little and softens (the transform list itself
   never changes, so nothing is interpolated through a matrix) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cur-sec .p-card:hover .p-card__art img { transform: translateY(-4px); }
  .cur-sec .p-card:hover .p-card__art::before { opacity: .66; translate: 2px 1.5px; }
  .cur-sec .p-card:hover .p-card__art::after { opacity: .42; scale: .8 1; }
}

/* B. the amount: number and unit on one baseline */
.cur-sec .p-card__amount {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 7px; min-inline-size: 0; margin-block-start: 14px;
}
.cur-sec .p-card__qty {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(min(1.75rem, 20cqi), 13cqi, 1.9375rem); line-height: 1.05; /* large text: never wider than the card */
  letter-spacing: -.03em; color: #fff;
}
/* the infinity sign of the unlimited pack: as tall as the digits, on their baseline, with their stroke */
.cur-sec .p-card__inf { display: inline-block; block-size: .72em; inline-size: 1.44em; vertical-align: baseline; overflow: visible; }
.cur-sec .p-card__unit { font-size: .84rem; font-weight: 600; line-height: 1.3; color: var(--c-text-3); }
.cur-sec .p-card__warning { margin-block-start: 8px; color: #e9c28f; font-size: .75rem; line-height: 1.4; }

/* C. price + button: one group, on the card's floor (level across a row) */
.cur-sec .p-card__buy { display: grid; gap: 10px; margin-block-start: auto; padding-block-start: 14px; }
.cur-sec .p-card .price { font-size: min(1.3125rem, 15cqi); font-weight: 700; line-height: 1.15; letter-spacing: -.005em; color: var(--c-text); }

/* badge: a small plate inside the card, in the lane over the art */
.cur-sec .p-card__badges {
  position: absolute; z-index: 1; inset-block-start: 12px; inset-inline: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; pointer-events: none;
}
.cur-sec .p-card__badges .badge {
  padding: 3px 9px; border-radius: 7px; font-size: .72rem; font-weight: 700; line-height: 1.3; letter-spacing: .01em;
  background: color-mix(in oklab, var(--cur) 14%, #1a1224); color: color-mix(in oklab, var(--cur) 58%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--cur) 32%, transparent);
}
.cur-sec .p-card__badges .badge--pink { background: rgba(234, 91, 154, .16); color: #ffb3d3; box-shadow: inset 0 0 0 1px rgba(234, 91, 154, .4); }
.cur-sec .p-card__badges .badge--warn { background: rgba(241, 174, 90, .14); color: #ffd19a; box-shadow: inset 0 0 0 1px rgba(241, 174, 90, .38); }

/* the button: a soft filled plate with no outline; the currency's light comes up in it on hover, pressed on click */
.cur-sec .p-card .add-btn {
  inline-size: 100%; min-block-size: 44px; flex-wrap: wrap; gap: 8px; padding: 8px 12px; border-radius: 12px;
  border: 1px solid transparent; /* invisible, except in forced colors, where the plate has no fill */
  background-color: color-mix(in oklab, var(--cur) 12%, #272033);
  background-image: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .025) 55%, rgba(255, 255, 255, 0)); /* sheen from the key light */
  box-shadow: 2px 8px 16px -12px rgba(3, 1, 8, .95);
  color: #f6eefb; font-size: .875rem; font-weight: 700; letter-spacing: .005em;
  transition: background-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.cur-sec .p-card .add-btn:hover {
  background-color: color-mix(in oklab, var(--cur) 22%, #30253e); color: #fff;
  box-shadow: 2px 10px 22px -12px color-mix(in oklab, var(--cur) 55%, rgba(3, 1, 8, .9));
}
.cur-sec[data-cur="tokens"] .p-card .add-btn:hover { background-color: color-mix(in oklab, var(--cur) 30%, #2b2019); } /* gold over plum turns grey: a bronze plate instead */
.cur-sec .p-card .add-btn:active { transform: translateY(1px); background-color: color-mix(in oklab, var(--cur) 14%, #261d33); box-shadow: inset 0 2px 6px rgba(3, 1, 8, .5); }
.cur-sec .p-card .add-btn:focus-visible { outline: 2px solid var(--cur); outline-offset: 2px; }
.cur-sec .p-card .add-btn svg { inline-size: 17px; block-size: 17px; }
.cur-sec .p-card .add-btn.is-added { background-color: var(--c-success); color: #0f2a1d; box-shadow: none; }
.cur-sec .p-card .add-btn:disabled { opacity: .45; cursor: not-allowed; background-color: rgba(249, 242, 252, .05); color: var(--c-text-2); }
/* not on sale yet / under review: a calm line in the button's place */
.cur-sec .p-card__buy > .badge { justify-content: center; min-block-size: 44px; border-radius: 12px; }
.cur-sec .product-blocked { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-block-size: 44px; color: #eccb9f; font-size: .78rem; font-weight: 700; }
.cur-sec .product-blocked svg { inline-size: 16px; block-size: 16px; }

/* narrow cards (two columns on a phone): a little less air, same structure */
@container (width < 11.5rem) {
  .cur-sec .p-card__in { padding: 0 12px 12px; }
  .cur-sec .p-card__media { block-size: 9.75rem; padding-block: 1.875rem .75rem; }
  .cur-sec .p-card__art img { max-inline-size: min(7rem, 100%); max-block-size: 6.25rem; }
  .cur-sec .p-card__badges { inset-block-start: 10px; inset-inline: 8px; }
  .cur-sec .p-card .price { font-size: min(1.1875rem, 15cqi); }
  .cur-sec .p-card .add-btn { padding-inline: 8px; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .cur-sec .p-card, .cur-sec .p-card .add-btn, .cur-sec .p-card__art img, .cur-sec .p-card__art::before, .cur-sec .p-card__art::after, .cat-chip, .cat-chip__count { transition: none; }
  .cur-sec .p-card:hover, .cur-sec .p-card .add-btn:active { transform: none; }
}
