/* ============================================================================
   v0.25.0.0 - МАГАЗИН: the rebuilt store (/store, Components/Pages/Store.razor and
   Components/Shop/*).

   Owner, approving the wave: "Больше частей лучше интерфейс, не однородный фон, разного
   размера флекс и грид вообщем хочу чтобы он был 10 из 10." References: Discord's theme
   shop and Steam's points shop (research in the packs spec).

   THE DIRECTION. The store prices things on the streak clock's own dial. The app already
   owns one object everybody reads: the dark bezel with a violet rim, a gloss on top, an
   engraved nameplate and glowing mono digits (01-topbar.css, 47-local-clock.css). Here that
   device is the commerce layer - the wallet, every price, the sticky slot tabs, the "how it
   works" panel and the parts' icons are small instruments of that one family - while the
   surfaces stay the page's own (cream and white in light, near black in dark). The price
   bezel is the signature; everything around it is quiet.

   THE PAGE. One continuous surface that changes hue from room to room: every shelf's glow is
   painted on a layer that reaches past its band and fades out at both ends, so neighbouring
   hues crossfade with no seam. The hues stay in the brand's family (packs violet and Saturn
   gold, themes violet and plum, backgrounds indigo, mini cards gold, the arrow plum and amber,
   shapes indigo and lilac - round 3 retired the teal, which left the violet-and-gold family). The top is a BENTO of tiles of different sizes and
   materials: the pack hero on its own art, "Твой образ" on a light card, "Как это работает"
   as a dark instrument panel, the spotlight. Below it every shelf has a composition of its
   own: the themes a grid with a dark showcase lead and a full-width strip under it, the
   backgrounds and mini cards rows of capped tiles with a dark "where it shows" tile, the
   arrows with a loupe on the marker, the shapes one picker. Phones get snap rows. Content
   stops at 1200px and no tile stretches past about 500px.

   THE PREVIEWS ARE THE PRODUCT. Every tile mounts the real thing on the viewer: .profile-card
   (Shop/StoreProfileMount), the real UserChip (Shop/StoreMiniStage) and a slice of the real
   timeline (Shop/StoreNowSlice). This sheet only SCALES them - it sets no theme, frame,
   background, mini card or arrow token - so every style pack paints them exactly as it paints
   the profile modal. Never a stand-in strip, never hover-only (a phone has no hover).

   RED IS THE CLOCK'S. A short wallet is a goal (Shop/StoreGoal: a gold link to the Pit with a
   meter), never an error-red dead button; the only red on the page is the FOMO countdown's.

   Cascade: after the packs, 37-user-chip and 54-timeline (so the scale rules win their ties),
   before 95-rtl and the dark theme. Logical properties throughout, so a right-to-left page
   mirrors with no extra rule except the arrows and the mono labels. No animation runs at rest;
   the only motion is the sheet and the toast arriving, and reduced motion turns that off too.
   ============================================================================ */

.stx {
    --stx-wrap: 1200px;
    --stx-gutter: 16px;
    /* The device: the clock's triple-layer face, its rim, its ink, the gold of the shard. */
    --stx-device:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 40%),
        radial-gradient(130% 100% at 12% 30%, rgba(168, 85, 247, 0.24), transparent 62%),
        linear-gradient(180deg, #241F35 0%, #14121F 58%, #1A1728 100%);
    --stx-device-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -2px 5px rgba(0, 0, 0, 0.35),
        0 2px 10px rgba(124, 58, 237, 0.18);
    --stx-rim: rgba(139, 92, 246, 0.45);
    --stx-ink: #F1ECFF;
    --stx-ink-dim: #CFC7EC;
    --stx-gold: #F2B950;
    --stx-band: #7C3AED;
    --stx-band-2: #A855F7;
    position: relative;
    /* A stacking context of its own, so the bands' glow layers (z-index -1, below) paint above
       the page canvas and below every tile, and can reach into the next band. */
    z-index: 0;
    width: 100%;
    min-width: 0;
    padding-bottom: 72px;
    color: var(--chronos-fg-primary);
    /* Round 8 re-audit: inherited by every text in the store and the sheet. A word longer than the
       line it sits on breaks inside its box instead of running out of it (a German compound in a
       shelf title, a place name, a step's title). It changes nothing for a word that fits, and no
       box's sizing: rows that keep a button's longest word as their floor still do. */
    overflow-wrap: break-word;
    /* Belt and braces against a horizontal page scroll on a phone, and the last glow layer must
       not lengthen the page. clip, not hidden: hidden would make this a scroll container and the
       sticky tabs would stop sticking. */
    overflow-x: clip;
    overflow-y: clip;
    /* The first room starts above the page's head: violet and Saturn-gold glows from the very
       top, behind the header and the tabs. */
    background:
        radial-gradient(900px 620px at 0% 180px, rgba(124, 58, 237, 0.2), transparent 70%),
        radial-gradient(820px 560px at 100% 0, rgba(242, 185, 80, 0.24), transparent 70%);
    background-repeat: no-repeat;
}
@media (min-width: 720px) {
    .stx { --stx-gutter: 24px; }
}
:root[data-theme="dark"] .stx {
    background:
        radial-gradient(900px 620px at 0% 180px, rgba(124, 58, 237, 0.3), transparent 70%),
        radial-gradient(820px 560px at 100% 0, rgba(242, 185, 80, 0.16), transparent 70%);
    background-repeat: no-repeat;
}

/* The page under an open sheet holds still. */
html:has(.stx.has-sheet) { overflow: hidden; }

.stx-wrap {
    width: 100%;
    max-width: calc(var(--stx-wrap) + 2 * var(--stx-gutter));
    margin-inline: auto;
    padding-inline: var(--stx-gutter);
}

/* ---- bands ---------------------------------------------------------------------------------
   The hue of a shelf, set once on its band (and on its tab), read by its glows, its icon bezel,
   its card stages and its captions. All in the brand's family: no unrelated red or teal. */
.stx-band-packs { --stx-band: #7C3AED; --stx-band-2: #F2B950; }
.stx-band-themes { --stx-band: #8B5CF6; --stx-band-2: #C026D3; }
.stx-band-backgrounds { --stx-band: #4F46E5; --stx-band-2: #818CF8; }
.stx-band-minicards { --stx-band: #D97706; --stx-band-2: #F2B950; }
.stx-band-nowskins { --stx-band: #A21CAF; --stx-band-2: #F59E0B; }
.stx-band-progskins { --stx-band: #6D28D9; --stx-band-2: #EA6A12; }
.stx-band-shapes { --stx-band: #5B5BD6; --stx-band-2: #C084FC; }

.stx-band {
    --stx-glow-a: 100%;
    --stx-glow-b: 0%;
    position: relative;
    padding-block: 26px 34px;
    /* Under the sticky tabs, not behind them, when a tab jumps here. */
    scroll-margin-top: 64px;
}
/* A phone keeps the rooms close: 80px of empty cream between two shelves read as dead air
   (round 3), not as rhythm. The desk keeps its generous gaps. Round 4: a phone's sticky bar is
   about 70px with a 14px fade under it, so a tab jump lands the head below both. */
@media (max-width: 719px) {
    .stx-band { padding-block: 16px 20px; scroll-margin-top: 80px; }
}
.stx-band:nth-of-type(even) {
    --stx-glow-a: 0%;
    --stx-glow-b: 100%;
}
/* The room's light: a layer that reaches 160px past the band at both ends and fades out there,
   so it crossfades with the next room's instead of stopping at a seam. Below every tile. */
.stx-band::before {
    content: "";
    position: absolute;
    inset: -160px 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60% 44% at var(--stx-glow-a) 34%, color-mix(in srgb, var(--stx-band) 22%, transparent), transparent 72%),
        radial-gradient(52% 40% at var(--stx-glow-b) 70%, color-mix(in srgb, var(--stx-band-2) 18%, transparent), transparent 70%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
}
:root[data-theme="dark"] .stx-band::before {
    background:
        radial-gradient(60% 44% at var(--stx-glow-a) 34%, color-mix(in srgb, var(--stx-band) 22%, transparent), transparent 72%),
        radial-gradient(52% 40% at var(--stx-glow-b) 70%, color-mix(in srgb, var(--stx-band-2) 14%, transparent), transparent 70%);
}
/* The night over the packs: a faint field of stars, on the dark page only (on cream they read
   as dust). */
:root[data-theme="dark"] .stx-band.stx-band-packs {
    background:
        radial-gradient(1.2px 1.2px at 12% 18%, rgba(233, 213, 255, 0.7) 99%, transparent),
        radial-gradient(1.2px 1.2px at 64% 9%, rgba(253, 230, 138, 0.8) 99%, transparent),
        radial-gradient(1px 1px at 86% 34%, rgba(233, 213, 255, 0.6) 99%, transparent),
        radial-gradient(1px 1px at 38% 44%, rgba(253, 230, 138, 0.6) 99%, transparent),
        radial-gradient(1px 1px at 94% 72%, rgba(233, 213, 255, 0.55) 99%, transparent),
        radial-gradient(1.2px 1.2px at 6% 86%, rgba(253, 230, 138, 0.55) 99%, transparent);
}

/* ---- header ---------------------------------------------------------------------------------- */
/* Round 8 re-audit: a floor, not a fixed height. Every shipped title fits in two lines, so the head
   is exactly as tall as before; a longer one makes the head taller instead of being clipped. */
.stx-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
}
.stx-back {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    min-width: 40px;
    padding-inline: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--chronos-outline);
    background: var(--chronos-card-bg);
    color: var(--chronos-fg-secondary);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    transition: border-color 0.15s ease;
}
@media (hover: hover) { .stx-back:hover { border-color: color-mix(in srgb, var(--hover-ink) var(--hover-lift), var(--chronos-outline)); } }
.stx-back-arrow { font-size: 20px; }
[dir="rtl"] .stx-back-arrow,
[dir="rtl"] .stx-link-arrow,
[dir="rtl"] .stx-lo-go { transform: scaleX(-1); }
/* Hebrew has no capitals to track, and a monospace fallback spaces its letters apart: the
   plates and labels are set in the sans there, untracked; mono stays on the digits only. */
[dir="rtl"] .stx-kicker,
[dir="rtl"] .stx-eyebrow,
[dir="rtl"] .stx-plate,
[dir="rtl"] .stx-wallet-plate,
[dir="rtl"] .stx-part-slot,
[dir="rtl"] .stx-save,
[dir="rtl"] .stx-loupe-plate,
[dir="rtl"] .stx-rarity {
    font-family: var(--chronos-font-sans);
    letter-spacing: 0;
    text-indent: 0;
}
.stx-titles {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stx-kicker {
    font-family: var(--chronos-font-mono);
    font-size: var(--text-2xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--chronos-violet);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
:root[data-theme="dark"] .stx-kicker { color: #C4B5FD; }
/* Round 8: the page title wraps onto a second line (the header has the height for two); on one line
   "Магазин профилей" was cut to "Магазин проф…" beside the wallet on every phone.
   Round 8 re-audit: no clamp and no clip. At this tight leading the descenders run past the line
   box, so a clip on it cut the feet off "профилей" (р, ф: 2px in Marmelad, the Russian default,
   3px at desk size), and any room left under the clip showed the top of the clamped-away third
   line instead. A title that needs a third line grows the head (min-height above). */
.stx-title {
    margin: 0;
    overflow-wrap: break-word;
    font-family: var(--chronos-font-display);
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    line-height: 1.05;
    letter-spacing: -0.025em;
}
@media (max-width: 559px) {
    .stx-back { width: 44px; padding: 0; }
    .stx-back-word { display: none; }
    .stx-title { font-size: 21px; }
}
/* A thumb's tap target on a phone: 44px, like every button there (round 3). */
@media (max-width: 719px) {
    .stx-back { height: 44px; min-width: 44px; }
}
@media (min-width: 720px) {
    .stx-head { min-height: 104px; gap: 16px; }
    .stx-title { font-size: 34px; }
}

/* The purse: the wallet device and, on a desk, the way to more shards under it. The balance
   decides every action on the page, so on a desk it is the same size as the big price bezel. */
.stx-purse {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
/* Round 4: the nameplate is in the flow, on a row of its own over the balance, so the pill is as
   wide as the longer of the two - "FRAGMENTOS" and "ХЭЛТЭРХИЙ" overran a pill sized by the digits. */
.stx-wallet {
    position: relative;
    display: inline-grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    justify-content: center;
    align-content: center;
    align-items: center;
    column-gap: 5px;
    row-gap: 2px;
    height: 44px;
    padding-inline: 14px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--stx-rim);
    background: var(--stx-device);
    box-shadow: var(--stx-device-shadow);
    color: var(--stx-ink);
}
.stx-wallet-plate {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    text-align: center;
    font-size: 10px;
    font-weight: var(--weight-bold);
    line-height: 1;
    letter-spacing: 0.22em;
    text-indent: 0.24em;
    text-transform: uppercase;
    color: var(--stx-ink-dim);
    white-space: nowrap;
    pointer-events: none;
}
/* Round 8: past six digits the balance shrinks its digits (mono digits are all one width), so an
   admin's 1000000025 keeps to six digits' room and the page title beside it is not cut to "Мага…".
   --stx-digits is the digit count, written on the wallet by Store.razor. */
.stx-wallet-num {
    grid-row: 2;
    justify-self: end;
    font-family: var(--chronos-font-mono);
    font-size: min(18px, calc(18px * 6 / var(--stx-digits, 1)));
    font-weight: var(--weight-black);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 6px rgba(167, 139, 250, 0.6);
}
.stx-gem {
    color: var(--stx-gold);
    text-shadow: 0 0 6px rgba(242, 185, 80, 0.55);
}
.stx-wallet .stx-gem { grid-row: 2; font-size: 17px; }
.stx-purse-link {
    display: none;
    align-items: center;
    gap: 3px;
    min-height: 24px;
    color: var(--chronos-violet);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    text-decoration: none;
    white-space: nowrap;
}
@media (hover: hover) { .stx-purse-link:hover { text-decoration: underline; } }
.stx-purse-link .material-icons { font-size: 16px; }
:root[data-theme="dark"] .stx-purse-link { color: #C4B5FD; }
@media (max-width: 559px) {
    .stx-wallet-plate { letter-spacing: 0.1em; text-indent: 0.1em; }
}
@media (min-width: 720px) {
    .stx-wallet {
        height: 54px;
        column-gap: 7px;
        padding-inline: 20px 16px;
    }
    .stx-wallet-num { font-size: min(30px, calc(30px * 6 / var(--stx-digits, 1))); }
    .stx-wallet .stx-gem { font-size: 24px; }
    .stx-purse-link { display: inline-flex; }
}

.stx-off {
    margin: 24px auto;
    color: var(--chronos-fg-secondary);
}

/* ---- sticky slot tabs ------------------------------------------------------------------------
   One dark device strip, centred; on a phone the track inside it scrolls sideways and never
   widens the page, and whichever edge still hides tabs fades out (js/store-tabs.js marks it).
   Once the strip sticks, a quiet floor of the page's own colour sits under it, so the tiles
   scrolling past do not show through around the pill. Each tab carries its shelf's hue. */
.stx-tabs {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    justify-content: center;
    padding: 8px var(--stx-gutter) 8px;
    margin-block-end: 2px;
    pointer-events: none;
}
.stx-tabs::before {
    content: "";
    position: absolute;
    inset: 0 0 -14px;
    z-index: -1;
    background: linear-gradient(180deg, var(--chronos-bg) 0%, var(--chronos-bg) 64%, color-mix(in srgb, var(--chronos-bg) 0%, transparent) 100%);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}
.stx-tabs[data-stuck]::before { opacity: 1; }
/* v0.25.4.1 (owner: "прибей гвоздями кнопку «Назад» к фиксированному хедеру"): the way back is
   docked to the strip's start and sticks with it, so a reader deep in the shelves is never a long
   scroll away from leaving. The same device as the strip - its plate, rim and shadow - as one
   round key on a phone (the strip's own height, a thumb target) and arrow plus word on a desk.
   The header no longer carries a second one (Store.razor), so the top of the page shows one way
   back, not two. */
.stx-tabs { gap: 8px; }
.stx-tabs .stx-tabs-back {
    pointer-events: auto;
    align-self: stretch;
    flex: none;
    /* A circle the strip's own height on a phone: its 46px tabs plus 4px of padding top and bottom. */
    width: 54px;
    height: auto;
    min-width: 0;
    padding: 0;
    border-color: var(--stx-rim);
    background: var(--stx-device);
    color: #F4F1FF;
    box-shadow: var(--stx-device-shadow), 0 12px 28px -12px rgba(20, 18, 31, 0.55);
}
.stx-tabs .stx-tabs-back .stx-back-word { display: none; }
/* House hover (00-tokens-base.css): the rim lifts, nothing moves. */
@media (hover: hover) { .stx-tabs .stx-tabs-back:hover { border-color: color-mix(in srgb, var(--hover-ink) var(--hover-lift), var(--stx-rim)); } }
@media (min-width: 720px) {
    .stx-tabs .stx-tabs-back {
        width: auto;
        padding-inline: 14px 18px;
        gap: 6px;
        font-weight: var(--weight-semibold);
    }
    .stx-tabs .stx-tabs-back .stx-back-word { display: inline; }
}
.stx-tabs-strip {
    pointer-events: auto;
    display: flex;
    max-width: 100%;
    padding: 4px;
    overflow: hidden;
    border-radius: var(--radius-pill);
    border: 1px solid var(--stx-rim);
    background: var(--stx-device);
    box-shadow: var(--stx-device-shadow), 0 12px 28px -12px rgba(20, 18, 31, 0.55);
}
.stx-tabs-track {
    display: flex;
    gap: 2px;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    border-radius: var(--radius-pill);
}
.stx-tabs-track::-webkit-scrollbar { display: none; }
.stx-tabs-track[data-fade="end"] {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
}
.stx-tabs-track[data-fade="start"] {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px);
    mask-image: linear-gradient(90deg, transparent, #000 24px);
}
.stx-tabs-track[data-fade="start end"] {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 32px), transparent);
}
[dir="rtl"] .stx-tabs-track[data-fade="end"] {
    -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(270deg, #000 calc(100% - 32px), transparent);
}
[dir="rtl"] .stx-tabs-track[data-fade="start"] {
    -webkit-mask-image: linear-gradient(270deg, transparent, #000 24px);
    mask-image: linear-gradient(270deg, transparent, #000 24px);
}
[dir="rtl"] .stx-tabs-track[data-fade="start end"] {
    -webkit-mask-image: linear-gradient(270deg, transparent, #000 24px, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(270deg, transparent, #000 24px, #000 calc(100% - 32px), transparent);
}
.stx-tab {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding-inline: 12px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    color: var(--stx-ink-dim);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease;
}
.stx-tab .material-icons {
    font-size: 18px;
    color: color-mix(in srgb, var(--stx-band) 55%, #FFFFFF);
}
@media (hover: hover) { .stx-tab:hover { border-color: color-mix(in srgb, var(--hover-ink) var(--hover-lift), transparent); } }
/* Round 5: every active pill is the brand violet; only its icon carries the shelf's hue. Amber
   mixed into the bar's near black turned the mini cards' tab a muddy brown. */
.stx-tab[aria-current="true"] {
    border-color: color-mix(in srgb, #8B5CF6 70%, transparent);
    background: color-mix(in srgb, #7C3AED 38%, #14121F);
    color: #FFFFFF;
}
.stx-tab[aria-current="true"] .material-icons { color: color-mix(in srgb, var(--stx-band) 45%, #FFFFFF); }
@media (max-width: 719px) {
    .stx-tab { height: 44px; }
}

/* ---- shelf heads ------------------------------------------------------------------------------ */
.stx-shelf-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-block-end: 16px;
}
.stx-shelf-ico {
    flex: none;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    border: 1px solid color-mix(in srgb, var(--stx-band) 60%, transparent);
    background: var(--stx-device);
    box-shadow: var(--stx-device-shadow), 0 6px 18px -6px color-mix(in srgb, var(--stx-band) 70%, transparent);
    color: color-mix(in srgb, var(--stx-band) 50%, #FFFFFF);
    font-size: 22px;
}
.stx-shelf-titles { min-width: 0; }
/* Round 8 re-audit: the title's words are an anonymous flex item, whose floor is its longest word,
   so the inherited break-word could not reach them and a long compound ran past the screen.
   "anywhere" lowers that floor; a word still breaks only when it cannot fit its line. Same for the
   "where it shows" line under it and a card's icon lines. */
.stx-shelf-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-wrap: anywhere;
    font-family: var(--chronos-font-display);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    line-height: 1.15;
    letter-spacing: -0.015em;
}
.stx-shelf-count {
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--stx-band) 14%, transparent);
    color: color-mix(in srgb, var(--stx-band) 75%, var(--chronos-fg-primary));
    font-family: var(--chronos-font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0;
}
.stx-where {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-wrap: anywhere;
    margin: 4px 0 0;
    font-size: var(--text-base);
    line-height: 1.35;
    color: var(--chronos-fg-secondary);
}
.stx-where .material-icons {
    flex: none;
    font-size: 16px;
    color: var(--stx-band);
}
:root[data-theme="dark"] .stx-where .material-icons { color: color-mix(in srgb, var(--stx-band) 65%, #FFFFFF); }
.stx-shelf-note {
    margin: -6px 0 14px;
    font-size: var(--text-sm);
    color: var(--chronos-fg-muted);
}
@media (min-width: 720px) {
    .stx-shelf-title { font-size: var(--text-3xl); }
    .stx-shelf-head { margin-block-end: 20px; }
}

/* ---- shared bits ------------------------------------------------------------------------------ */
.stx-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 0;
    font-family: var(--chronos-font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--chronos-violet);
}
.stx-eyebrow .material-icons { font-size: 16px; }
:root[data-theme="dark"] .stx-eyebrow { color: #C4B5FD; }

.stx-rarity {
    --stx-r: #B8C0CC;
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding-inline: 7px 9px;
    border-radius: var(--radius-pill);
    border: 1px solid color-mix(in srgb, var(--stx-r) 55%, transparent);
    background: rgba(20, 18, 31, 0.8);
    color: #FFFFFF;
    font-family: var(--chronos-font-sans);
    font-size: var(--text-2xs);
    font-weight: var(--weight-bold);
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.stx-rarity::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--stx-r);
    box-shadow: 0 0 6px var(--stx-r);
}
/* ADR 8.1 tier colours, the same the profile card's tier frames use. */
.stx-rarity-common { --stx-r: #B8C0CC; }
.stx-rarity-uncommon { --stx-r: #4A90D9; }
.stx-rarity-rare { --stx-r: #F0C419; }
.stx-rarity-epic { --stx-r: #E8833A; }
.stx-rarity-legendary { --stx-r: #E0405A; }
/* Round 4: the top of the ladder has a mark of its own. A round pip from gold into crimson
   averaged to Epic's orange, so tiers 4 and 5 read the same on every stage; Legendary is a
   four-point spark instead of a dot, on a crimson-tinted plate with a gold rim and gold words. */
.stx-rarity-legendary {
    border-color: rgba(253, 230, 138, 0.62);
    background: linear-gradient(90deg, rgba(92, 14, 40, 0.92), rgba(20, 18, 31, 0.86));
    color: #FDE68A;
}
.stx-rarity-legendary::before {
    width: 11px;
    height: 11px;
    border-radius: 0;
    background: linear-gradient(135deg, #FFF6CC 0%, #F2B950 48%, #E0405A 100%);
    box-shadow: none;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.stx-eyebrow .stx-rarity { position: static; letter-spacing: 0.08em; }

/* A small engraved nameplate: names a context on a stage (the card, the mini card, the
   timeline, the loupe). Gold on the night by default; .is-soft on a light stage. Round 8: never
   wider than its stage; a name too long for one line wraps inside the plate instead of running out
   of the column it hangs in. */
.stx-plate {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(253, 230, 138, 0.3);
    background: rgba(18, 5, 46, 0.7);
    color: #FDE68A;
    font-family: var(--chronos-font-mono);
    font-size: 10px;
    font-weight: var(--weight-bold);
    line-height: 1.1;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.stx-plate .material-icons { flex: none; font-size: 12px; }
.stx-plate.is-soft {
    border-color: color-mix(in srgb, var(--chronos-violet) 30%, var(--chronos-outline));
    background: color-mix(in srgb, var(--chronos-card-bg) 88%, transparent);
    color: #6D28D9;
}
:root[data-theme="dark"] .stx-plate.is-soft {
    border-color: rgba(167, 139, 250, 0.35);
    background: rgba(20, 18, 31, 0.8);
    color: #C4B5FD;
}

.stx-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    color: var(--chronos-violet);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    text-decoration: none;
}
@media (hover: hover) { .stx-link:hover { text-decoration: underline; } }
.stx-link .material-icons { font-size: 18px; }

/* The price bezel - THE signature. A device of the clock's family: mono digits with the
   clock's glow, the shard as a gold gem, a crossed-out sum engraved before it. It has no
   "short" colour: a short wallet is said by the goal beside it, never by an error-red rim. */
.stx-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding-inline: 12px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--stx-rim);
    background: var(--stx-device);
    box-shadow: var(--stx-device-shadow);
    color: var(--stx-ink);
    white-space: nowrap;
}
.stx-price-num {
    font-family: var(--chronos-font-mono);
    font-size: 16px;
    font-weight: var(--weight-black);
    line-height: 1;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 6px rgba(167, 139, 250, 0.6);
}
.stx-price .stx-gem { font-size: 16px; }
.stx-price-was {
    margin-inline-end: 3px;
    font-family: var(--chronos-font-mono);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    line-height: 1;
    color: rgba(207, 199, 236, 0.62);
    text-decoration-line: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(242, 185, 80, 0.9);
}
.stx-price.is-big {
    height: 54px;
    gap: 8px;
    padding-inline: 18px 16px;
}
.stx-price.is-big .stx-price-num { font-size: 30px; }
.stx-price.is-big .stx-gem { font-size: 24px; }
.stx-price.is-big .stx-price-was { font-size: 16px; }

.stx-save {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding-inline: 9px;
    border-radius: 8px;
    background: linear-gradient(180deg, #FFE29A, #F2B950);
    color: #2A1500;
    font-family: var(--chronos-font-mono);
    font-size: var(--text-base);
    font-weight: var(--weight-black);
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 14px -6px rgba(242, 185, 80, 0.9);
}

/* Buttons. Tap targets are 40px everywhere, 44px on a phone, 50px in the sheet's foot.
   Round 8 (owner: "текст накладывается и вылазит", in a wider interface face): a label never
   runs past its pill. A row of buttons breaks onto two rows first (every .stx-act and pair row
   wraps, and a flex item's basis is its one-line width), and a button alone on its row that is
   still too narrow wraps its words inside the pill, centred, never mid-word. Nothing is tuned to
   one face: Comfortaa and Unbounded set "Примерить на себе" a fifth wider than Inter. */
.stx-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 40px;
    padding-block: 6px;
    padding-inline: 16px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-family: var(--chronos-font-sans);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, filter 0.15s ease;
}
.stx-btn > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.stx-btn .material-icons { flex: none; font-size: 18px; }
.stx-btn:disabled { cursor: not-allowed; opacity: 0.55; }
.stx-btn-buy {
    background: var(--chronos-violet);
    color: #FFFFFF;
    box-shadow: 0 6px 16px -8px rgba(124, 58, 237, 0.85);
}
@media (hover: hover) { .stx-btn-buy:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.55); } }
.stx-btn-wear {
    border-color: color-mix(in srgb, var(--chronos-violet) 55%, var(--chronos-outline));
    background: transparent;
    color: #6D28D9;
}
@media (hover: hover) { .stx-btn-wear:hover:not(:disabled) { border-color: var(--chronos-violet); } }
:root[data-theme="dark"] .stx-btn-wear { color: #C4B5FD; }
.stx-btn-gold {
    background: linear-gradient(180deg, #FFE6A6 0%, #F2B950 52%, #E2962C 100%);
    color: #2A1500;
    box-shadow: 0 10px 24px -12px rgba(242, 185, 80, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
@media (hover: hover) { .stx-btn-gold:hover:not(:disabled) { border-color: #FFF6CC; } }
/* Round 4: wearing what is owned is the next step, so it is filled (Steam's "Equip now"). */
.stx-btn-equip {
    background: var(--chronos-violet);
    color: #FFFFFF;
    box-shadow: 0 6px 16px -8px rgba(124, 58, 237, 0.85);
}
@media (hover: hover) { .stx-btn-equip:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.55); } }
/* An armed purchase (Shop/StoreBuyButton): gold, ringed, asking once before it spends. */
.stx-btn.is-armed {
    overflow: hidden;
    border-color: #FFF6CC;
    background: linear-gradient(180deg, #FFE6A6 0%, #F2B950 52%, #E2962C 100%);
    color: #2A1500;
    box-shadow: 0 0 0 3px rgba(242, 185, 80, 0.32), 0 10px 24px -12px rgba(242, 185, 80, 0.95);
}
/* Round 5: the armed window is visible - a line along the button's foot drains from full to
   nothing over exactly the seconds the button waits (--stx-arm, set from StoreBuyButton.ArmedFor),
   so settling back is expected, not a surprise. One pass, transform only (the compositor's), no
   pulse; with reduced motion the line simply stands. Round 6: it runs along the button's very
   foot, edge to edge, clipped by the pill's own radius, in a light ink - inset under the label it
   read as an underline of "Точно купить?", not as time running out. */
.stx-arm-drain {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    background: rgba(42, 21, 0, 0.3);
    transform-origin: left center;
    animation: stx-arm-drain var(--stx-arm, 4s) linear forwards;
    pointer-events: none;
}
[dir="rtl"] .stx-arm-drain { transform-origin: right center; }
.stx-btn .stx-gem { font-size: 16px; text-shadow: none; }
.stx-btn-glass {
    border-color: rgba(255, 241, 220, 0.32);
    background: rgba(18, 5, 46, 0.42);
    color: #FFF1DC;
}
@media (hover: hover) { .stx-btn-glass:hover:not(:disabled) { border-color: rgba(255, 241, 220, 0.7); } }

/* The goal (Shop/StoreGoal): a short wallet's live way forward. A gold outline on the page's
   own surface, "Ещё 70" with the gem, where to get them, and a meter along its foot of how far
   the wallet already goes. Never red. */
.stx-btn-goal {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    min-width: 0;
    min-height: 48px;
    padding: 7px 16px 9px;
    text-align: start;
    border-color: color-mix(in srgb, #D97706 55%, var(--chronos-outline));
    background: color-mix(in srgb, #F2B950 12%, var(--chronos-card-bg));
    color: #92400E;
}
@media (hover: hover) { .stx-btn-goal:hover { border-color: #D97706; } }
/* Round 5: ONE geometry for every goal on the page - a leading icon, one bold line, an arrow at
   the end, a thin meter under it - on the hero, in the sheet's foot and on a shelf card alike (round
   4 wrapped the hero's in two lines and left the sheet's without its arrow). Only the skin differs
   by surface: glass with gold ink on the night, peach on the page. Where there is room the line
   also says where the shards come from; where there is not, those words step aside (still read by
   a screen reader) rather than wrap or end in an ellipsis. */
/* Round 7: the line is a give-way chain, so it can never run past the pill's end, in any locale or
   user font. Only the arrow is fixed. The leading icon and, between the number and the arrow, one
   room (.stx-goal-where) take no width of their own: they share only what is left over, the icon
   first (up to its own width), the room after it. In the room the words show when they fit whole,
   the Pit's glyph keeps its 21px beside the arrow; each steps aside whole when its room is not
   left, and so does the icon. Only once all three are gone does the number shrink, and then it ends
   in an ellipsis. No flex gap: every space is a margin on the part it belongs to (6px after the
   icon, 3px each side of the room's contents, 3px before the arrow), so a part that steps aside
   takes its space with it and an empty box leaves no stray gap behind. The selector carries
   .stx-btn-goal to outrank ".stx-btn > span" and its 6px gap. */
.stx-btn-goal .stx-goal-words {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    min-width: 0;
    white-space: nowrap;
}
/* The icon's box: a grow factor far above the room's 1 gives it the first claim on the spare room,
   and max-content caps that claim at the icon itself, so the room gets everything past it. The same
   one-line clip as the glyph's box: shown whole or not at all. */
.stx-goal-lead {
    flex: 1000 1 0;
    min-width: 0;
    max-width: max-content;
    height: 18px;
    overflow: hidden;
    line-height: 18px;
    white-space: normal;
}
.stx-goal-lead::before { content: "\200B"; }
.stx-btn-goal .stx-goal-ico {
    display: inline-block;
    vertical-align: top;
    margin-inline-end: 6px;
    font-size: 16px;
    line-height: 18px;
}
/* Round 6: the end of the line is one plain span with the auto margin. A .material-icons element
   carries direction: ltr (Google's stylesheet), so an auto margin set on the arrow itself resolved
   to margin-left in Hebrew and parked the arrow beside the text with a 100px hole after it. A span
   inherits the page's direction. Round 7: it holds the arrow alone, the one thing that never shrinks. */
.stx-goal-end {
    flex: none;
    display: inline-flex;
    align-items: center;
    margin-inline-start: auto;
    padding-inline-start: 3px;
}
.stx-goal-go { flex: none; display: inline-block; font-size: 16px; opacity: 0.8; }
[dir="rtl"] .stx-goal-go { transform: scaleX(-1); }
/* The Pit's own glyph from the top bar, so the goal pictures where it leads. Round 7: it stands in
   a one-line box of its own that opens with a zero-width space, the words' own mechanism: when the
   box is narrower than the glyph, the glyph wraps onto the box's second line, which is clipped away,
   so it is shown whole or not at all, never cut in half. */
.stx-goal-pic {
    flex: 0 1 auto;
    min-width: 0;
    height: 18px;
    overflow: hidden;
    line-height: 18px;
    white-space: normal;
}
.stx-goal-pic::before { content: "\200B"; }
.stx-goal-dest {
    display: inline-block;
    vertical-align: top;
    width: 18px;
    height: 18px;
    margin-inline-start: 3px;
    border-radius: 4px;
}
/* Round 6: every Material icon on the page takes the page's direction, so a logical margin or
   inset written for an icon (the loadout chevrons, the eye pill, a swatch badge) lands on the
   right side in Hebrew too. The ligature text is Latin, so the glyph itself does not change. */
[dir="rtl"] .stx .material-icons { direction: rtl; }
/* One size for both halves, the number in black weight (round 3: the "where" line was two sizes
   under the number and went unreadable on a theme card's compact goal). Round 7: the last to give
   way, and it says so - an ellipsis, never a silently cut digit. A block, not a flex box:
   text-overflow does not reach the text of a flex container. */
.stx-goal-num {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    margin-inline-end: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--text-base);
    font-weight: var(--weight-black);
}
.stx-btn-goal .stx-gem { font-size: 15px; color: #D97706; }
/* Round 6: the "where" words show whenever they fit whole, at any width. The box takes the room
   left between the number and the end group and is exactly one line tall; it opens with a
   zero-width space and then the words as one unbreakable block, so if the block fits it stands on
   the line, and if it does not it wraps to a second line that the box clips away. Never a wrap
   on screen, never an ellipsis, never a breakpoint guessing at the width (round 5 hid them on the
   hero at every width, even where the desk sheet's foot shows them). Still read by a screen reader
   either way. Round 7: that clip box is .stx-goal-say, the first part of the room (.stx-goal-where);
   the Pit's glyph, when the goal has one, is the second, pinned to the room's end beside the arrow. */
.stx-goal-where {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 0;
    min-width: 0;
    text-align: start;
}
.stx-goal-say {
    flex: 1 1 0;
    min-width: 0;
    height: 1.25em;
    overflow: hidden;
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    line-height: 1.25;
    white-space: normal;
    opacity: 0.85;
}
.stx-goal-say::before { content: "\200B"; }
.stx-goal-where-words {
    display: inline-block;
    margin-inline-start: 3px;
    white-space: nowrap;
}
.stx-goal-meter {
    position: relative;
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 2px;
    background: color-mix(in srgb, #D97706 18%, transparent);
}
.stx-goal-fill {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    /* A streak of 1 of 365 is still a start: the meter shows a nub, never an empty track. */
    min-width: 6px;
    border-radius: inherit;
    background: linear-gradient(90deg, #F59E0B, #F2B950);
}
/* Round 4: on a shelf card every way forward is one shape - a leading icon, one bold line, an
   arrow, a thin meter - so a wallet goal, a streak goal and the Pro button read as one family.
   The "where" words stay for a screen reader; the arrow says it leads somewhere. */
.stx-btn-goal.is-compact { min-height: 40px; padding: 5px 12px 7px; gap: 4px; }
.stx-btn-goal.is-compact .stx-goal-num { font-size: var(--text-sm); }
.stx-btn-goal.is-compact .stx-goal-say {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
/* The streak's goal: the same pill, the flame in the streak's own orange. */
.stx-btn-goal .stx-flame { font-size: 16px; color: #EA580C; }
:root[data-theme="dark"] .stx-btn-goal .stx-flame { color: #FDBA74; }
.stx-btn-goal.is-streak .stx-goal-fill { background: linear-gradient(90deg, #EA580C, #F2B950); }
/* A Pro gate's way forward: the gold button to the subscription (intentional paywall hint). */
.stx-btn-pro { flex: 1 1 auto; }
.stx-btn-goal.is-compact .stx-goal-meter { height: 3px; }
:root[data-theme="dark"] .stx-btn-goal {
    border-color: rgba(242, 185, 80, 0.5);
    background: rgba(242, 185, 80, 0.1);
    color: #FDE68A;
}
:root[data-theme="dark"] .stx-btn-goal .stx-gem { color: var(--stx-gold); }
:root[data-theme="dark"] .stx-goal-meter { background: rgba(242, 185, 80, 0.18); }
/* On the night (the hero, a dark showcase), the goal is glass with gold ink. */
.stx-hero .stx-btn-goal,
.stx-card.is-featured .stx-btn-goal,
.stx-strip .stx-btn-goal {
    border-color: rgba(253, 230, 138, 0.45);
    background: rgba(18, 5, 46, 0.55);
    color: #FDE68A;
}
.stx-hero .stx-btn-goal .stx-gem,
.stx-card.is-featured .stx-btn-goal .stx-gem,
.stx-strip .stx-btn-goal .stx-gem { color: var(--stx-gold); }
.stx-hero .stx-goal-meter,
.stx-card.is-featured .stx-goal-meter,
.stx-strip .stx-goal-meter { background: rgba(253, 230, 138, 0.16); }

/* States a tile can be in. */
.stx-on,
.stx-have,
.stx-lock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    line-height: 1.2;
}
.stx-on .material-icons,
.stx-have .material-icons,
.stx-lock .material-icons { font-size: 17px; }
.stx-on {
    min-height: 34px;
    padding-inline: 8px 12px;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--chronos-violet) 12%, transparent);
    color: #6D28D9;
}
:root[data-theme="dark"] .stx-on { color: #C4B5FD; background: color-mix(in srgb, var(--chronos-violet) 24%, transparent); }
.stx-have { color: #047857; }
:root[data-theme="dark"] .stx-have { color: #6EE7B7; }
.stx-lock { color: var(--chronos-fg-muted); }
/* ui review U7: a pack's lock on the hero's art and on a dark pack tile - a night plate, so it reads
   over any pack art the way the worn plate does. */
.stx-hero .stx-lock,
.stx-packtile .stx-lock {
    min-height: 34px;
    padding-inline: 10px 12px;
    border-radius: var(--radius-pill);
    background: rgba(18, 5, 46, 0.62);
    color: #FFF1DC;
}
.stx-on.is-ink { background: rgba(255, 255, 255, 0.14); color: #FFF1DC; }
.stx-have.is-ink { color: #BBF7D0; font-size: var(--text-md); }
.stx-on.is-big,
.stx-have.is-big { min-height: 48px; padding-inline: 14px 18px; font-size: var(--text-md); }

.stx-act {
    margin-top: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
}
/* Round 8: the basis is the button's one-line width (auto, never 0), so a button that does not fit
   beside the price drops onto a row of its own before it wraps its words; beside the price it still
   takes the whole rest of the row. The goal keeps a zero basis: its line gives way part by part
   (round 7), so it always fits beside the price. */
.stx-act .stx-btn { flex: 1 1 auto; }
.stx-act .stx-price + .stx-btn-goal { flex: 1 1 0; }
/* Round 4: worn is a plate the row's full width, the height of a button, so the row keeps its
   shape from buy to owned to worn - no lone pill with an empty half beside it, no jump on equip. */
.stx-act > .stx-on {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 40px;
    /* Round 8 re-audit: alone in its row, the worn plate may be narrower than its word (a narrow
       card body on a desk), so its floor is not the word: the word breaks inside the plate. */
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: center;
}

@media (max-width: 719px) {
    .stx-btn { min-height: 44px; }
    .stx-price { height: 40px; }
    .stx-btn-goal.is-compact { min-height: 44px; }
    .stx-act { min-height: 44px; }
    .stx-act > .stx-on { min-height: 44px; }
}

/* ---- the bento ---------------------------------------------------------------------------------
   One column on a phone. Six columns on a tablet. Twelve on a desk: the hero takes eight, "Твой
   образ" four, then the other packs, "Как это работает" and the spotlight - rows of unequal
   tiles, never a grid of identical cards. v0.25.1.0: with three packs the tiles under the first
   row are sized by StoreShelfRules.DeskBento / TabletBento so every row ends flush (the art judge
   found a 170px hole beside "Как это работает" at 1440); each tile carries its spans as
   --stx-span-desk / --stx-span-tab, and the fallback is the single-pack layout (5 and 7). */
.stx-bento {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}
/* The packs the hero does not show: one snap row on a phone, right under the hero, the next tile
   peeking so the row says it scrolls; a lone tile takes the row. */
.stx-packrow {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--stx-gutter));
    padding: 2px var(--stx-gutter) 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--stx-gutter);
    scrollbar-width: none;
}
.stx-packrow::-webkit-scrollbar { display: none; }
.stx-packrow > .stx-packtile {
    flex: 0 0 min(85vw, 320px);
    min-height: 244px;
    scroll-snap-align: start;
}
.stx-packrow > .stx-packtile:only-child { flex-basis: 100%; }
@media (max-width: 719px) {
    .stx-hero { order: -2; }
    .stx-packrow { order: -1; }
}
@media (min-width: 720px) {
    .stx-bento {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }
    .stx-packrow { display: contents; }
    .stx-hero { grid-column: 1 / -1; }
    .stx-me { grid-column: span var(--stx-span-tab, 3); }
    .stx-how { grid-column: span var(--stx-span-tab, 3); }
    .stx-spot { grid-column: span var(--stx-span-tab, 6); }
    .stx-packtile { grid-column: span var(--stx-span-tab, 3); }
}
@media (min-width: 1100px) {
    .stx-bento {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-auto-flow: row dense;
    }
    .stx-hero { grid-column: span 8; }
    .stx-me { grid-column: span var(--stx-span-desk, 4); }
    .stx-how { grid-column: span var(--stx-span-desk, 5); }
    .stx-spot { grid-column: span var(--stx-span-desk, 7); }
    .stx-packtile { grid-column: span var(--stx-span-desk, 4); }
}

.stx-tile {
    position: relative;
    min-width: 0;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--chronos-outline);
    background: var(--chronos-card-bg);
    box-shadow: 0 1px 2px rgba(15, 17, 22, 0.04), 0 22px 44px -28px rgba(46, 16, 101, 0.45);
}
:root[data-theme="dark"] .stx-tile { box-shadow: 0 22px 44px -28px rgba(0, 0, 0, 0.9); }
.stx-tile-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Round 8 re-audit: the words' column may shrink below its longest word, so a long one breaks
   inside the tile instead of pushing the column, and the title with it, past the tile's edge. */
.stx-tile-head > div { min-width: 0; }
.stx-tile-ico {
    flex: none;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    border: 1px solid var(--stx-rim);
    background: var(--stx-device);
    box-shadow: var(--stx-device-shadow);
    color: #C4B5FD;
    font-size: 20px;
}
.stx-tile-title {
    margin: 0;
    font-family: var(--chronos-font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.stx-tile-sub {
    margin: 2px 0 0;
    font-size: var(--text-sm);
    color: var(--chronos-fg-secondary);
    text-wrap: balance;
}

/* ---- a card and its mini card, together ----------------------------------------------------------
   Steam's two-context preview, wherever it appears (the hero, "Твой образ", the sheet): the
   profile card, and the mini card hanging off its lower corner with its own nameplate under it.
   The mini card is in the flow and overlaps only the card's bottom padding (the card's name row
   and its tier chip stay clear by at least 8px), never the name. */
.stx-look {
    position: relative;
    width: min(340px, 100%);
    display: flex;
    flex-direction: column;
}
.stx-look > .profile-card { align-self: center; }
.stx-look-mini {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    width: min(236px, 76%);
    margin-top: -10px;
    margin-inline-end: -8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.stx-look-mini .stx-plate { align-self: flex-end; }

/* ---- the hero: the newest pack on its own art ----------------------------------------------------
   The pack's store art comes from its own sheet as tokens (styles/pack-<id>: --pack-art,
   --pack-art-tile, --pack-accent, --pack-ink); a pack without art falls back to the night and the
   manifest's accent (--stx-pack-accent, inline). A phone stacks the stage over the copy; a desk
   sets them side by side on the wide banner. */
.stx-hero {
    --stx-pk: var(--pack-accent, var(--stx-pack-accent, #F2B950));
    --stx-pk-ink: var(--pack-ink, #FFF1DC);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    border-color: color-mix(in srgb, var(--stx-pk) 45%, transparent);
    background: #12052E;
    color: var(--stx-pk-ink);
    box-shadow: 0 0 0 1px rgba(18, 5, 46, 0.25), 0 30px 60px -30px rgba(46, 16, 101, 0.75);
}
/* The art on a layer of its own, so a right-to-left page can mirror it: the copy moves to the
   other side there, and the planet moves away from it. */
.stx-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--pack-art-tile, linear-gradient(160deg, #2E1065, #12052E));
    pointer-events: none;
}
[dir="rtl"] .stx-hero::before { transform: scaleX(-1); }
/* The copy needs a quiet floor wherever it lands on the art. v0.25.1.0: in the pack's own dark
   (--pack-floor, "r g b" from styles/pack-<id>), so the forge's wall under the copy stays a warm
   smithy wall instead of going violet under the store's night; a pack without one keeps the night. */
.stx-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgb(var(--pack-floor, 14 5 38) / 0.94) 0%, rgb(var(--pack-floor, 14 5 38) / 0.8) 46%, rgb(var(--pack-floor, 14 5 38) / 0.25) 60%, rgb(var(--pack-floor, 14 5 38) / 0) 70%);
    pointer-events: none;
}
/* A phone opens on the thesis: the viewer's own card wearing the pack, the copy under it. */
.stx-hero-stage {
    order: -1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 28px 22px 10px;
}
.stx-hero-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 6px 20px 22px;
}
.stx-hero .stx-eyebrow,
:root[data-theme="dark"] .stx-hero .stx-eyebrow { color: var(--stx-pk); }
/* Round 8 re-audit: at this tight leading the last line's descenders (ц, g) hang 0.06em to 0.1em
   below the line box in every face (4px in Marmelad at the desk's 44px), out of the title's own box.
   The padding gives the box room for them and the equal negative margin takes it back, so the
   layout is exactly the approved one and the box now holds all of its glyphs. */
.stx-hero-title {
    margin: 0 0 -0.12em;
    padding-bottom: 0.12em;
    font-family: var(--chronos-font-display);
    font-size: 32px;
    font-weight: var(--weight-bold);
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: #FFFFFF;
    text-shadow: 0 2px 18px rgba(18, 5, 46, 0.7);
    overflow-wrap: anywhere;
}
.stx-hero-tagline {
    margin: 0;
    max-width: 38ch;
    font-size: var(--text-md);
    line-height: 1.45;
    color: color-mix(in srgb, var(--stx-pk-ink) 82%, transparent);
    text-wrap: balance;
}
/* Round 5: the parts are the hero's TERTIARY controls - no outline, a faint glass fill, small type -
   so the action pair stays the only bold thing in the tile (round 4's four outlined 44px pills
   under the two actions read as a wall of six buttons). Each chip is drawn 32px tall but answers
   a 44px tap: its hit area reaches 6px past it above and below, and the rows are 12px apart, so
   two chips' hit areas meet and never overlap. */
.stx-hero-parts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 6px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    container: stx-hero-parts / inline-size;
}
.stx-hero-parts > li { display: flex; min-width: 0; }
/* Round 4: a chip is a button - it opens the sheet on its own part. */
.stx-chip {
    position: relative;
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 32px;
    margin: 0;
    padding-block: 3px;
    padding-inline: 8px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.06);
    color: color-mix(in srgb, var(--stx-pk-ink) 88%, transparent);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    line-height: 1.15;
    text-align: start;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.stx-chip::before {
    content: "";
    position: absolute;
    inset: -6px 0;
}
@media (hover: hover) { .stx-chip:hover { border-color: rgba(253, 230, 138, 0.4); } }
.stx-chip:focus-visible { outline: 2px solid rgba(253, 230, 138, 0.8); outline-offset: 2px; }
.stx-chip .material-icons { flex: none; font-size: 15px; color: var(--stx-pk); opacity: 0.9; }
/* Round 8: a part's name wraps onto a second line before it ends in an ellipsis ("Мини-карто…" and
   "Стрелка «се…" on a phone in Unbounded); the chip grows to hold it (its hit area grows with it),
   and the button's title carries the name whole. */
.stx-chip-word {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: break-word;
    text-wrap: balance;
}
.stx-chip-num {
    margin-inline-start: auto;
    font-family: var(--chronos-font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    color: rgba(255, 241, 220, 0.62);
}
/* Critics round 3: a part not owned yet was a flat grey pill, and read as disabled. A faint rim in
   the pack's accent says "inside, not yours yet"; still no fill, so the action pair stays the bold
   thing in the tile (round 5). */
.stx-chip:not(.is-owned) { border-color: color-mix(in srgb, var(--stx-pk) 34%, transparent); }
@media (hover: hover) { .stx-chip:not(.is-owned):hover { border-color: color-mix(in srgb, var(--stx-pk) 70%, transparent); } }
.stx-chip.is-owned { background: rgba(134, 239, 172, 0.08); }
.stx-chip.is-owned .material-icons { color: #86EFAC; }
.stx-chip.is-owned .stx-chip-num { text-decoration: line-through; }
.stx-hero-deal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.stx-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.stx-hero-actions .stx-btn { flex: 1 1 auto; min-height: 48px; }
/* Round 8: beside a button (the hero's pair, the sheet's foot) the goal claims no width of its own -
   its intrinsic width leaves its words out - so the button keeps at least its longest word and the
   goal takes what is left, where its line gives way part by part (round 7). The words' unbreakable
   block otherwise made the goal the widest thing in the row and squeezed the button's label out of
   its pill. Both rows let the goal grow, so it is never narrower than the room it is given. */
.stx-hero-actions .stx-btn-goal,
.stx-sheet-cta .stx-btn-goal { contain: inline-size; flex: 1 1 auto; }
.stx-hero-note {
    margin: 0;
    font-size: var(--text-sm);
    color: rgba(255, 241, 220, 0.7);
}
/* "Примерить на себе" on a desk, "Примерить" on a phone, where it shares a row with the goal.
   Round 8: and wherever the pair's row is narrow - the desk hero's copy column is about 320px, where
   "Примерить на себе" beside "Надеть всё" never fit even in Inter. Laid out by the row's own width
   (in em, so a larger type asks for more); if the pair still does not fit, it breaks onto two rows. */
.stx-narrow-word { display: none; }
.stx-hero-actions { container: stx-hero-actions / inline-size; }
@container stx-hero-actions (max-width: 24em) {
    .stx-wide-word { display: none; }
    .stx-narrow-word { display: inline; }
}
/* A phone: the first screen ends on the hero's action, not on its price (round 3). The active
   sticky tab already says "Наборы", so the packs shelf's head steps aside there; the stage is
   tighter, the four parts sit two by two instead of wrapping 2 + 1 + 1, and trying it on stands
   beside the second action instead of over it. */
@media (max-width: 719px) {
    .stx-band-packs { padding-top: 4px; }
    .stx-band-packs .stx-shelf-head { display: none; }
    .stx-hero-stage { padding: 16px 18px 4px; }
    .stx-hero-copy { gap: 10px; padding: 2px 16px 18px; }
    .stx-hero-title { font-size: 30px; }
    .stx-hero-tagline { font-size: var(--text-base); }
    /* Round 4: the price and the action come before the parts, so the first screen of a real
       phone (667 to 700px tall, not 812) still ends on the action; the parts follow as chips. */
    .stx-hero-deal { order: 1; }
    .stx-hero-actions { order: 2; }
    .stx-hero-note { order: 3; }
    .stx-hero-parts { order: 4; }
    .stx-wide-word { display: none; }
    .stx-narrow-word { display: inline; }
    /* Equal rows: a wide face that sets one name on two lines keeps the 2x2 grid's rhythm. */
    .stx-hero-parts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
    }
    .stx-hero-parts .stx-chip {
        min-width: 0;
        min-height: 32px;
        gap: 5px;
        padding-inline: 8px 9px;
        font-size: 13px;
    }
    .stx-hero .stx-btn-goal { padding-inline: 14px; }
    /* Each part's own price is the sheet's to list; on a phone the chip keeps its whole name. */
    .stx-hero-parts .stx-chip-num { display: none; }
    /* Round 8 polish: a narrow pair of columns (a phone under about 400px) drops the chips' icons, so
       the name has the chip's whole width: "Стрелка «сейчас»" stays one line in Inter, and a wide face
       wraps only the names that truly need two lines, balanced. Keyed on the list's own width. With
       the check gone, an owned part shows through a green border and tint that take no width. */
    @container stx-hero-parts (max-width: 330px) {
        .stx-hero-parts .stx-chip {
            justify-content: center;
            padding-inline: 10px;
            text-align: center;
        }
        .stx-hero-parts .stx-chip:not(.is-owned) .material-icons { display: none; }
        /* v0.25.1.0 critics round 2: an owned part keeps a small check before its name, so the
           state is not told by the green alone; the parts not owned yet stay icon-free, so their
           names keep the room. */
        .stx-hero-parts .stx-chip.is-owned { gap: 3px; padding-inline: 6px 8px; }
        .stx-hero-parts .stx-chip.is-owned .material-icons { font-size: 13px; }
        .stx-hero-parts .stx-chip.is-owned {
            border-color: rgba(134, 239, 172, 0.45);
            background: rgba(134, 239, 172, 0.14);
            color: #D1FAE5;
        }
        @media (hover: hover) { .stx-hero-parts .stx-chip.is-owned:hover { border-color: rgba(134, 239, 172, 0.7); } }
    }
    /* Round 8: each button's floor is its longest word and icon (a flex item's automatic minimum,
       capped at the row by .stx-btn's max-width), so a one-word label like "Примерить" in Unbounded
       is never squeezed past its pill's edge; the goal has no floor (contain above) and takes the
       rest. A zero basis shares the row alike, exactly as two equal columns did.
       Round 8 re-audit: a row, not a grid, because a grid's columns never wrap. When the two floors
       cannot stand side by side (a long compound in the narrow word), the pair breaks onto two full
       rows instead of pushing the second button past the tile's edge. */
    .stx-hero-actions > * { flex: 1 1 0; }
    .stx-hero-actions .stx-btn {
        flex: 1 1 0;
        padding-inline: 12px;
        white-space: normal;
        line-height: 1.15;
        text-align: center;
    }
}
@media (min-width: 720px) {
    .stx-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        min-height: 440px;
    }
    .stx-hero::before { background: var(--pack-art, linear-gradient(160deg, #2E1065, #12052E)); }
    .stx-hero::after {
        background: linear-gradient(90deg, rgb(var(--pack-floor, 14 5 38) / 0.9) 0%, rgb(var(--pack-floor, 14 5 38) / 0.55) 46%, rgb(var(--pack-floor, 14 5 38) / 0) 70%);
    }
    [dir="rtl"] .stx-hero::after {
        background: linear-gradient(270deg, rgb(var(--pack-floor, 14 5 38) / 0.9) 0%, rgb(var(--pack-floor, 14 5 38) / 0.55) 46%, rgb(var(--pack-floor, 14 5 38) / 0) 70%);
    }
    .stx-hero-copy {
        grid-column: 1;
        grid-row: 1;
        justify-content: center;
        padding: 30px 8px 30px 30px;
        padding-inline: 30px 8px;
    }
    .stx-hero-stage {
        grid-column: 2;
        grid-row: 1;
        align-items: center;
        padding: 30px 48px 30px 24px;
        padding-inline: 24px 48px;
    }
    .stx-hero-title { font-size: 44px; }
    .stx-hero-actions .stx-btn { flex: 0 1 auto; }
    .stx-hero-actions .stx-btn-goal { flex: 1 1 auto; }
    .stx-hero .stx-look-mini { margin-inline-end: -26px; }
}
/* A full desk: the hero is the store's key art, not a card on a gradient (round 3). The stage
   takes the larger half and the card grows about a fifth and stands on the hero's floor, so the
   pack's planet hangs free above it, bleeding off the top corner (styles/pack-saturn places it),
   and the try-on and the goal are one pair of equal width. */
@media (min-width: 1100px) {
    .stx-hero {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        min-height: 480px;
    }
    /* Critics round 3: where the card stands is the pack's to say (--pack-stage-align from
       styles/pack-<id>): Saturn's planet hangs above a card on the floor, the Forge's fire rises
       round a card in the middle of its wall. */
    .stx-hero-stage {
        align-items: var(--pack-stage-align, flex-end);
        padding: 44px 0 30px;
        padding-inline: 4px 40px;
    }
    .stx-hero .stx-look { width: min(400px, 100%); }
    /* Round 8: one pair of equal width while both labels fit their half - a zero basis grows them
       alike - and never a label past its pill. A two-column grid held each button to half the row
       whatever its words, so "Примерить на себе" in Comfortaa or Unbounded spilled out of its pill
       with the eye outside its start edge. Now each button's floor is its one-line width (capped
       at the row): when the pair cannot both keep theirs it breaks onto two full-width rows, and
       only a label wider than the whole row wraps its words. The goal keeps no floor: its line
       gives way part by part (round 7). */
    .stx-hero-actions { max-width: 420px; }
    .stx-hero-actions > * { flex: 1 1 0; }
    .stx-hero-actions .stx-btn { flex: 1 1 0; min-width: fit-content; }
    .stx-hero-actions .stx-btn-goal { min-width: 0; }
}

/* ---- "Твой образ" ---------------------------------------------------------------------------------- */
.stx-me {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.stx-me-stage {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 40px 18px 16px;
    border-radius: 16px;
    border: 1px solid var(--chronos-outline);
    background:
        radial-gradient(80% 90% at 50% 0%, rgba(124, 58, 237, 0.2), transparent 70%),
        radial-gradient(60% 60% at 100% 100%, rgba(242, 185, 80, 0.12), transparent 70%),
        var(--chronos-card-inset);
}
/* The theme being worn, named on the stage, so the plain default reads as a choice, not a gap. */
.stx-me-theme {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    z-index: 3;
    max-width: calc(100% - 20px);
}
.stx-me .stx-look-mini { margin-top: -6px; }
/* v0.25.1.0 critics round 2: the pack the look is built from, named above the slots, in the pack's
   own accent (deepened on the light tile so its words keep AA), with the pack's box. */
.stx-me-pack {
    --stx-mp: var(--pack-accent, var(--stx-pack-accent, #7C3AED));
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-height: 30px;
    margin: 0;
    padding: 4px 12px 4px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid color-mix(in srgb, var(--stx-mp) 45%, transparent);
    background: color-mix(in srgb, var(--stx-mp) 12%, transparent);
    color: color-mix(in srgb, var(--stx-mp) 58%, #000);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    line-height: 1.2;
}
:root[data-theme="dark"] .stx-me-pack { color: var(--stx-mp); background: color-mix(in srgb, var(--stx-mp) 14%, transparent); }
.stx-me-pack .material-icons { flex: none; font-size: 16px; }
.stx-me-pack-word { min-width: 0; overflow-wrap: anywhere; }
/* A slot worn from elsewhere over the pack's look: named under the slot's own name. */
.stx-lo-off {
    display: block;
    margin-top: 1px;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: #B45309;
}
:root[data-theme="dark"] .stx-lo-off { color: #FCD34D; }
.stx-loadout {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    container: stx-loadout / inline-size;
}
.stx-loadout li + li { border-top: 1px solid var(--chronos-outline); }
/* Round 8: a slot row is a grid nobody can push out of. The slot's words take at most half the row
   (fit-content(50%), wrapping past it); the value takes the rest and is never wider than its track
   (it used to sit at the end of the row at its full one-line width, so "Круг основателей + Узорное
   плетение" ran back over "Тема карточки" and the icon in every face but the narrowest). A long value
   wraps onto a second balanced line and only then ends in an ellipsis, with the whole name in its
   title. A narrow list stacks the slot over its value instead (below). */
.stx-loadout a {
    display: grid;
    grid-template-columns: 20px fit-content(50%) minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding-block: 5px;
    padding-inline: 6px 2px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease;
}
@media (hover: hover) { .stx-loadout a:hover { border-color: color-mix(in srgb, var(--hover-ink) var(--hover-lift), transparent); } }
.stx-loadout .material-icons {
    font-size: 18px;
    color: var(--chronos-violet);
}
:root[data-theme="dark"] .stx-loadout .material-icons { color: #C4B5FD; }
.stx-loadout .stx-lo-go { color: var(--chronos-fg-muted); }
:root[data-theme="dark"] .stx-loadout .stx-lo-go { color: var(--chronos-fg-muted); }
.stx-lo-slot {
    min-width: 0;
    font-size: var(--text-sm);
    line-height: 1.25;
    color: var(--chronos-fg-secondary);
    overflow-wrap: break-word;
}
.stx-lo-val {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: break-word;
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    line-height: 1.25;
    text-align: end;
    text-wrap: balance;
}
/* Round 8 polish: the theme row's two parts ("Круг основателей", "+ Узорное плетение") are each one
   piece, so the line breaks only at their join - never "Круг основателей + Узорное" over a lone
   "плетение" (Inter on a desk). A part wider than the whole value still wraps inside itself. With no
   unbundled frame the second part is empty and takes no room. */
.stx-lo-part {
    display: inline-block;
    max-width: 100%;
    text-wrap: balance;
}
.stx-lo-part:empty { display: none; }
/* Round 8 polish: a narrow list stacks every slot's name over its value, in every face, so the value
   gets the row's whole width instead of what a wide face's slot name leaves of it (about 120px on a
   phone in Unbounded, where "Круг основателей + Узорное плетение" took four ragged lines). Keyed on
   the list's own width: a phone, a tablet's bento column and a small desk stack; the full desk keeps
   its one-line rows. Every row then has the same two-line rhythm, and a value takes at most two
   balanced lines. "Narrow" is measured twice: in em (the type's size) and in ch (the face's own
   letter width), so a face as wide as Unbounded stacks on the desk's 350px list too, where its
   slot names left "Обычная стрелка" two ragged lines, while Inter (40ch there) keeps its rows. */
@container stx-loadout (max-width: 24em) or (max-width: 30ch) {
    .stx-loadout a {
        grid-template-columns: 20px minmax(0, 1fr) 18px;
        grid-template-areas:
            "ico slot go"
            "ico val go";
        row-gap: 1px;
        padding-block: 8px;
    }
    .stx-loadout a > .material-icons:first-child { grid-area: ico; }
    .stx-lo-slot { grid-area: slot; font-size: var(--text-xs); }
    .stx-lo-val { grid-area: val; text-align: start; }
    .stx-loadout .stx-lo-go { grid-area: go; }
}
/* Round 5: a phone shows the same picture as the desk - the card as it is worn now, the mini card
   hanging off its corner and named - and the slots as the desk's chevron rows. Round 4 kept only
   the chip over a two-column grid of cells, which read as a settings form and lost the moment
   "this is how they see you". */
@media (max-width: 719px) {
    .stx-me { gap: 12px; padding: 16px; }
    .stx-me-stage { padding: 18px 10px 12px; }
    .stx .profile-card.stx-pc-me { --pc-w: min(280px, 100%); }
    .stx-me .stx-look-mini { width: min(224px, 80%); margin-inline-end: -2px; }
    /* The loadout below names the theme; the plate over the card would repeat it. */
    .stx-me-theme { display: none; }
    .stx-loadout a { padding-inline: 6px 0; }
}

/* v0.25.1.0 critics round 2: a tablet gives "Твой образ" the bento's whole row
   (StoreShelfRules.TabletBento), and the tile lays its card and its slot list side by side - the
   look on the start side, the slots it is made of on the end side - so it is as tall as one of
   them, not both, and no pack tile beside it stretches to match. */
@media (min-width: 720px) and (max-width: 1099px) {
    .stx-me {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        grid-template-rows: auto auto 1fr;
        grid-template-areas:
            "head head"
            "stage pack"
            "stage list";
        align-items: center;
        column-gap: 22px;
        row-gap: 10px;
    }
    .stx-me > .stx-tile-head { grid-area: head; }
    .stx-me > .stx-me-stage { grid-area: stage; align-self: stretch; align-items: center; }
    .stx-me > .stx-me-pack { grid-area: pack; }
    .stx-me > .stx-loadout { grid-area: list; align-self: center; }
}

/* ---- "Как это работает": the dark instrument panel ----------------------------------------------- */
.stx-how {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-color: var(--stx-rim);
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(242, 185, 80, 0.14), transparent 60%),
        var(--stx-device);
    color: var(--stx-ink);
}
.stx-how .stx-tile-title { color: #FFFFFF; }
.stx-steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.stx-steps li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-areas:
        "ico title"
        "ico desc";
    align-items: start;
    column-gap: 12px;
    row-gap: 2px;
    font-size: var(--text-base);
    line-height: 1.45;
    color: var(--stx-ink-dim);
}
.stx-steps b {
    grid-area: title;
    display: block;
    font-size: var(--text-md);
    color: #FFFFFF;
}
.stx-step-desc { grid-area: desc; }
.stx-step-ico {
    grid-area: ico;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(167, 139, 250, 0.42);
    background: rgba(124, 58, 237, 0.22);
    color: var(--stx-gold);
    font-size: 19px;
    text-shadow: 0 0 6px rgba(242, 185, 80, 0.5);
}
.stx-how .stx-link { margin-top: auto; color: #FDE68A; }
/* v0.25.1.0 critics round 2: a tablet can give "Как это работает" the bento's whole row (beside no
   odd pack tile); there the three steps stand side by side, three short columns, instead of three
   lines running 700px wide with the tile's end half empty. Keyed on the tile's own width. */
.stx-how { container: stx-how / inline-size; }
@container stx-how (min-width: 600px) {
    /* Critics round 3: each step's title and line share the panel's two rows (subgrid), so when one
       title wraps the three lines under them still start on one height. */
    .stx-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto auto;
        column-gap: 20px;
        row-gap: 2px;
    }
    .stx-steps li {
        grid-row: span 2;
        grid-template-rows: subgrid;
    }
}
/* A phone reads the three steps as a strip it swipes, not a screen it scrolls through. */
@media (max-width: 719px) {
    .stx-how { gap: 12px; padding: 16px; }
    .stx-steps {
        display: flex;
        gap: 10px;
        margin-inline: -16px;
        padding: 2px 16px 4px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        scrollbar-width: none;
    }
    .stx-steps::-webkit-scrollbar { display: none; }
    /* The title rides beside the icon and the line under both runs the card's full width, so the
       three cards come out nearly one height - no dead half under the shortest (round 3). */
    .stx-steps li {
        flex: 0 0 min(78vw, 280px);
        grid-template-columns: 34px minmax(0, 1fr);
        grid-template-areas:
            "ico title"
            "desc desc";
        align-items: center;
        column-gap: 10px;
        row-gap: 8px;
        align-content: start;
        padding: 12px;
        border-radius: 16px;
        border: 1px solid rgba(167, 139, 250, 0.24);
        background: rgba(255, 255, 255, 0.04);
        font-size: var(--text-sm);
        scroll-snap-align: start;
    }
    .stx-step-ico { width: 34px; height: 34px; font-size: 17px; }
    /* Round 4: the strip gets the shelves' position cue, and the link sits as close under it as
       the strip sits under the title - the 40px tap box keeps its size, not its air. */
    .stx-how .stx-rail {
        margin: -4px auto 0;
        background: rgba(196, 181, 253, 0.18);
    }
    .stx-how .stx-rail-thumb { background: #C4B5FD; }
    .stx-how .stx-link { margin-block: -6px -8px; }
}

/* ---- the spotlight: an item sold only on its own ------------------------------------------------- */
.stx-spot {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 10px;
    background:
        radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--stx-band) 14%, transparent), transparent 70%),
        var(--chronos-card-bg);
}
.stx-spot .stx-eyebrow { color: var(--stx-band); }
:root[data-theme="dark"] .stx-spot .stx-eyebrow { color: color-mix(in srgb, var(--stx-band) 55%, #FFFFFF); }
.stx-spot-stage {
    display: flex;
    justify-content: center;
    padding: 14px;
    border-radius: 16px;
    background:
        radial-gradient(80% 100% at 50% 0%, color-mix(in srgb, var(--stx-band) 12%, transparent), transparent 75%),
        var(--chronos-card-inset);
}
@media (min-width: 720px) {
    .stx-spot {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        /* Round 3: the copy is one group centred against the stage, the action right under the
           caption - the old column pinned the action to the floor and left its middle empty. */
        grid-template-rows: minmax(0, 1fr) auto auto auto auto minmax(0, 1fr);
        grid-template-areas:
            ". stage"
            "eye stage"
            "title stage"
            "where stage"
            "act stage"
            ". stage";
        align-content: stretch;
        column-gap: 22px;
        row-gap: 10px;
    }
    .stx-spot > .stx-eyebrow { grid-area: eye; }
    .stx-spot > .stx-tile-title { grid-area: title; font-size: var(--text-2xl); }
    .stx-spot > .stx-where { grid-area: where; align-self: start; }
    .stx-spot > .stx-spot-stage { grid-area: stage; align-self: center; align-items: center; }
    .stx-spot > .stx-act { grid-area: act; margin-top: 8px; }
}

.stx-packtile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--pack-art-tile, linear-gradient(160deg, #2E1065, #12052E));
    color: #FFF1DC;
    min-height: 220px;
}
/* v0.25.1.0 critics round 2: the title sits on a pack's art wherever the art puts its light; a dark
   halo in the pack's own floor colour keeps every letter off whatever passes behind it. */
.stx-packtile .stx-tile-title {
    color: #FFFFFF;
    margin-top: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 14px rgb(var(--pack-floor, 14 5 38) / 0.9);
}
.stx-packtile .stx-eyebrow { color: var(--pack-accent, var(--stx-pack-accent, #F2B950)); }
.stx-packtile-deal { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
/* Critics round 3: the try-on is a full 44px tap, like the sheet's close and the hero's buttons, and
   the crossed-out sum reads on the art at a desk's distance: a size up and brighter than the bezel's
   default (still under the price itself). */
.stx-packtile-deal .stx-btn { min-height: 44px; }
.stx-packtile .stx-price-was { font-size: 13px; color: rgba(222, 215, 245, 0.78); }

/* ---- shelves -------------------------------------------------------------------------------------
   A phone: one horizontal snap row per shelf, edge to edge, the next card peeking so the row
   says it scrolls. A desk: each shelf its own composition - the themes a grid of 220px cards
   with a dark two-by-two showcase leading it; the backgrounds, mini cards and arrows rows of
   tiles capped at 384px with a dark "where it shows" tile; never a tile stretched across the
   page (owner rule: cards 420 to 520px at most, groups held together). */
.stx-shelf {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--stx-gutter));
    padding: 4px var(--stx-gutter) 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--stx-gutter);
    scrollbar-width: none;
}
.stx-shelf::-webkit-scrollbar { display: none; }
.stx-shelf > .stx-card {
    flex: 0 0 min(76vw, 290px);
    scroll-snap-align: start;
}
/* The lead tile leads: first in the phone's row, top left of the desk's grid. */
.stx-shelf > .stx-card.is-featured { order: -1; flex-basis: min(86vw, 330px); }
.stx-shelf-backgrounds > .stx-card { flex-basis: min(86vw, 360px); }
.stx-shelf-minicards > .stx-card,
.stx-shelf-nowskins > .stx-card,
.stx-shelf-progskins > .stx-card { flex-basis: min(84vw, 320px); }
.stx-shelf > .stx-places { flex-basis: min(72vw, 260px); }
@media (min-width: 720px) {
    .stx-shelf {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        grid-auto-flow: row dense;
        gap: 16px;
        margin-inline: 0;
        padding: 0;
        overflow: visible;
    }
    .stx-shelf > .stx-card.is-featured {
        grid-column: span 2;
        grid-row: span 2;
    }
    /* Four columns on a full desk: the showcase takes two by two and the rest fill rows of four,
       so the usual catalog (a lead and twelve) ends flush. */
    .stx-shelf-themes { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    /* Round 4: the streak ladder takes the grid's full width on a tablet. */
    .stx-shelf-themes > .stx-ladder { grid-column: 1 / -1; }
    .stx-shelf-backgrounds,
    .stx-shelf-minicards,
    .stx-shelf-nowskins {
        grid-template-columns: repeat(auto-fill, minmax(300px, 384px));
        justify-content: start;
    }
    /* Round 3: three shelves of three equal tiles in a row turned the lower page into one grid, so
       the arrows take a shape of their own below. Round 6: the dark "where" tile keeps ONE slot on
       every shelf - last, in the end column (round 5 had it last on the backgrounds, first on the
       mini cards and bottom right on the arrows: three rules on one page). */
}
/* The arrows on a full desk: the skins for sale as two tall loupe tiles, and beside them a column
   of two short ones - the plain arrow, shown by its loupe alone, and the dark "where" tile - so
   the shelf is a bento, not a row of three. */
@media (min-width: 1100px) {
    /* Exactly four columns on a full desk (Store.razor.cs ThemeGridColumns): the ladder's span
       is counted against four, so a scrollbar must not drop the grid to three. */
    .stx-shelf-themes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .stx-shelf-themes > .stx-ladder { grid-column: span var(--stx-ladder-span, 4); }
    .stx-shelf-nowskins {
        grid-template-columns: repeat(3, minmax(0, 384px));
        grid-auto-flow: row;
    }
    .stx-shelf-nowskins > .stx-card:not(.is-default):not(.stx-places) { grid-row: span 2; }
    /* Round 5: a tall tile's stage takes the height its two rows give, so no dead band sits
       between the name and the buy row. */
    .stx-shelf-nowskins > .stx-card:not(.is-default):not(.stx-places) > .stx-card-stage { flex: 1 1 auto; }
    .stx-shelf-nowskins > .stx-card.is-default { flex-direction: row; }
    .stx-shelf-nowskins > .stx-card.is-default .stx-card-stage {
        flex: 0 0 56%;
        min-height: 0;
        padding: 14px 12px;
        border-bottom: 0;
        border-inline-end: 1px solid var(--chronos-outline);
    }
    .stx-shelf-nowskins > .stx-card.is-default .tl.stx-slice { display: none; }
    .stx-shelf-nowskins > .stx-card.is-default .stx-loupe-plate { display: none; }
    /* Round 8: in this row the body shares the card's width with the stage, so it may shrink (the
       card body's column default, flex 1 0 auto, kept "Обычная стрелка" in Unbounded at its full
       width and the card's clip cut its end off) and its name wraps instead. */
    .stx-shelf-nowskins > .stx-card.is-default .stx-card-body { flex: 1 1 0; min-width: 0; justify-content: center; }
    .stx-shelf-nowskins > .stx-places .stx-card-body { padding: 18px 20px; gap: 12px; }
    .stx-shelf-nowskins > .stx-places .stx-place-list { gap: 10px; }
}

/* A phone's position cue under a snap row (round 3: thirteen themes with no sense of where the
   row ends). js/store-tabs.js keeps the thumb's share and place in step with the row's scroll;
   with no script it shows the share at the start, which is still true. */
.stx-rail {
    position: relative;
    height: 4px;
    margin: -6px auto 2px;
    width: min(140px, 40%);
    border-radius: 2px;
    background: color-mix(in srgb, var(--stx-band) 16%, transparent);
    overflow: hidden;
}
.stx-rail-thumb {
    position: absolute;
    inset-block: 0;
    inset-inline-start: var(--stx-rail-x, 0%);
    width: var(--stx-rail-w, 30%);
    border-radius: inherit;
    background: color-mix(in srgb, var(--stx-band) 70%, transparent);
}
.stx-rail[hidden] { display: none; }
@media (min-width: 720px) {
    .stx-rail { display: none; }
}

.stx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--chronos-outline);
    background: var(--chronos-card-bg);
    box-shadow: 0 1px 2px rgba(15, 17, 22, 0.04), 0 16px 32px -24px color-mix(in srgb, var(--stx-band) 80%, rgba(0, 0, 0, 0.6));
    transition: border-color 0.15s ease;
}
@media (hover: hover) { .stx-card:hover { border-color: color-mix(in srgb, var(--hover-ink) var(--hover-lift), var(--chronos-outline)); } }
/* The ladder sits on its own inner box, so a container query can lay it out by its own width. */
.stx-ladder { container: stx-ladder / inline-size; }
:root[data-theme="dark"] .stx-card { box-shadow: 0 16px 32px -22px rgba(0, 0, 0, 0.9); }
.stx-card.is-equipped {
    border-color: var(--chronos-violet);
    box-shadow: 0 0 0 1px var(--chronos-violet), 0 16px 32px -20px rgba(124, 58, 237, 0.7);
}
/* The stage: a display case in the shelf's hue. Round 4: the dial of hour ticks behind the item is
   the lead tile's and the shapes picker's only - on every small tile its ring was clipped by the
   tile's edges. */
.stx-card-stage {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 178px;
    padding: 38px 16px 18px;
    border-bottom: 1px solid var(--chronos-outline);
    background:
        radial-gradient(90% 100% at 50% 0%, color-mix(in srgb, var(--stx-band) 20%, transparent), transparent 72%),
        var(--chronos-card-inset);
}
.stx-card.is-featured .stx-card-stage::before {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: -1;
    width: 190px;
    height: 190px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--stx-band) 30%, transparent) 0 0.7deg, transparent 0.7deg 6deg);
    -webkit-mask: radial-gradient(circle, transparent 0 60%, #000 61% 66%, transparent 67%);
    mask: radial-gradient(circle, transparent 0 60%, #000 61% 66%, transparent 67%);
    opacity: 0.8;
    pointer-events: none;
}
.stx-card-body {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 14px;
}
.stx-card-name {
    margin: 0;
    min-width: 0;
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.stx-card-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 0;
    font-size: var(--text-sm);
    color: var(--chronos-fg-secondary);
}
.stx-card-lines > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.stx-card-lines .material-icons { font-size: 15px; color: var(--stx-band); }
:root[data-theme="dark"] .stx-card-lines .material-icons { color: color-mix(in srgb, var(--stx-band) 65%, #FFFFFF); }
.stx-card-desc {
    margin: 0;
    font-size: var(--text-base);
    line-height: 1.45;
}
/* Round 4: what a theme card says instead of the slot names - the pack it belongs to. */
.stx-card-pack {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: #B45309;
}
.stx-card-pack .material-icons { flex: none; font-size: 15px; }
:root[data-theme="dark"] .stx-card-pack { color: #FDE68A; }

/* The themes shelf's lead: a dark showcase. The device's night with the shelf's glow, a big dial
   behind a big card, and the name, the lines and the action set in light ink on the same night,
   so the tile reads as one display case rather than a card with a footer. */
@media (min-width: 720px) {
    .stx-shelf > .stx-card.is-featured {
        border-color: color-mix(in srgb, var(--stx-band) 55%, transparent);
        background:
            radial-gradient(70% 55% at 50% 38%, color-mix(in srgb, var(--stx-band) 34%, transparent), transparent 72%),
            radial-gradient(60% 40% at 100% 100%, color-mix(in srgb, var(--stx-band-2) 22%, transparent), transparent 70%),
            linear-gradient(180deg, #221A3A 0%, #14101F 70%, #120E1C 100%);
        color: var(--stx-ink);
        box-shadow: 0 0 0 1px rgba(18, 5, 46, 0.2), 0 30px 60px -30px rgba(46, 16, 101, 0.8);
    }
    .stx-card.is-featured .stx-card-stage {
        flex: 1;
        min-height: 300px;
        border-bottom: 0;
        background: transparent;
    }
    .stx-card.is-featured .stx-card-stage::before {
        width: 400px;
        height: 400px;
        background: repeating-conic-gradient(from 0deg, rgba(196, 181, 253, 0.32) 0 0.7deg, transparent 0.7deg 6deg);
    }
    .stx-card.is-featured .stx-card-body {
        flex: 0 0 auto;
        gap: 10px;
        padding: 6px 22px 22px;
    }
    .stx-card.is-featured .stx-card-name {
        font-family: var(--chronos-font-display);
        font-size: 28px;
        letter-spacing: -0.02em;
        color: #FFFFFF;
    }
    .stx-card.is-featured .stx-card-lines { color: var(--stx-ink-dim); }
    .stx-card.is-featured .stx-card-pack { color: #FDE68A; }
    .stx-card.is-featured .stx-card-lines .material-icons { color: #C4B5FD; }
    .stx-card.is-featured .stx-btn-wear { border-color: rgba(167, 139, 250, 0.6); color: #DDD6FE; }
    .stx-card.is-featured .stx-on { background: rgba(255, 255, 255, 0.12); color: #EDE9FE; }
    .stx-card.is-featured .stx-have { color: #6EE7B7; }
    .stx-card.is-featured .stx-lock { color: var(--stx-ink-dim); }
}

/* Dark tiles in a shelf (where a mini card or a background shows): the device. */
.stx-feature {
    border-color: var(--stx-rim);
    background: var(--stx-device);
    color: var(--stx-ink);
}
.stx-feature .stx-card-name { color: #FFFFFF; }
.stx-feature .stx-card-desc { color: var(--stx-ink-dim); }
.stx-places .stx-card-body { justify-content: center; gap: 14px; padding: 20px; }
.stx-place-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.stx-place-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    line-height: 1.25;
    color: var(--stx-ink);
}
.stx-place-word { min-width: 0; text-wrap: balance; }

/* Round 4: each place is a little greyed screen of its context with the item's slot lit in the
   shelf's hue (Shop/StorePlaceArt) - Steam's skeletons, not icons floating in an empty tile. */
.stx-place-art {
    --pa-lit: color-mix(in srgb, var(--stx-band) 50%, #FFFFFF);
    --pa-dim: rgba(255, 255, 255, 0.16);
    position: relative;
    flex: none;
    width: 76px;
    height: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 7px 8px;
    overflow: hidden;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 18px -12px rgba(0, 0, 0, 0.8);
}
.stx-place-art i,
.stx-place-art b,
.stx-place-art s {
    display: block;
    font-style: normal;
    text-decoration: none;
}
/* A list row: an avatar dot and a name bar; the lit row is the slot the item paints. */
.stx-place-art .stx-pa-row {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 8px;
}
.stx-place-art .stx-pa-row b {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.24);
}
.stx-place-art .stx-pa-row s {
    flex: 1 1 auto;
    height: 4px;
    border-radius: 2px;
    background: var(--pa-dim);
}
.stx-place-art .stx-pa-row.is-lit {
    height: 13px;
    margin-inline: -3px;
    padding-inline: 3px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--stx-band) 46%, rgba(20, 18, 31, 0.6));
    box-shadow: 0 0 0 1px var(--pa-lit), 0 0 12px color-mix(in srgb, var(--stx-band) 70%, transparent);
}
.stx-place-art .stx-pa-row.is-lit b { background: var(--pa-lit); }
.stx-place-art .stx-pa-row.is-lit s { background: rgba(255, 255, 255, 0.8); }
.stx-place-art.is-friends .stx-pa-row b { border-radius: 50%; }
/* The rating: bars that shorten down the board. */
.stx-place-art.is-rating .stx-pa-row s { flex: 0 1 auto; }
.stx-place-art.is-rating .stx-pa-row:nth-child(1) s { width: 40px; }
.stx-place-art.is-rating .stx-pa-row:nth-child(2) s { width: 32px; }
.stx-place-art.is-rating .stx-pa-row:nth-child(3) s { width: 22px; }
/* The pair streak: two avatars and the flame between them, the shared plate lit under them. */
.stx-place-art .stx-pa-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.stx-place-art .stx-pa-pair b {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);
}
.stx-place-art .stx-pa-pair .material-icons { font-size: 15px; color: #FDBA74; }
.stx-place-art.is-pair .stx-pa-row.is-lit { height: 8px; }
/* A profile card: the hero lit, the avatar on its edge, two name bars. */
.stx-place-art .stx-pa-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    height: 100%;
    padding: 0 6px 4px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}
.stx-place-art .stx-pa-hero {
    flex: none;
    height: 46%;
    margin-inline: -6px;
    background: linear-gradient(135deg, var(--pa-lit), color-mix(in srgb, var(--stx-band-2) 70%, transparent));
    box-shadow: 0 0 12px color-mix(in srgb, var(--stx-band) 60%, transparent);
}
.stx-place-art .stx-pa-card b {
    width: 12px;
    height: 12px;
    margin-top: -8px;
    border-radius: 4px;
    border: 1.5px solid #14121F;
    background: rgba(255, 255, 255, 0.85);
}
.stx-place-art .stx-pa-card s {
    width: 64%;
    height: 3px;
    border-radius: 2px;
    background: var(--pa-dim);
}
.stx-place-art .stx-pa-card s.is-short { width: 38%; }
.stx-place-art.is-profile,
.stx-place-art.is-public,
.stx-place-art.is-share { padding: 6px; }
/* The public page: a browser's bar over the card. */
.stx-place-art.is-public .stx-pa-card::before {
    content: "";
    flex: none;
    height: 6px;
    margin-inline: -6px;
    background: rgba(255, 255, 255, 0.16);
}
.stx-place-art.is-public .stx-pa-hero { height: 38%; }
/* The share card: a portrait card. */
.stx-place-art.is-share { padding-inline: 22px; }
/* A day: two hour lines, a task block, the arrow lit across with its bezel at the start. */
.stx-place-art.is-day { justify-content: space-between; padding: 8px 8px 8px 10px; }
.stx-place-art .stx-pa-hour { height: 1px; background: rgba(255, 255, 255, 0.2); }
.stx-place-art .stx-pa-block {
    height: 13px;
    margin-inline-start: 14px;
    border-radius: 3px;
    border-inline-start: 2px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
}
.stx-place-art .stx-pa-now {
    position: absolute;
    top: 50%;
    inset-inline: 6px 0;
    height: 2px;
    margin-top: -1px;
    background: var(--pa-lit);
    box-shadow: 0 0 8px var(--pa-lit);
}
.stx-place-art .stx-pa-now b {
    position: absolute;
    top: -4px;
    inset-inline-start: 0;
    width: 13px;
    height: 10px;
    border-radius: 3px;
    background: var(--pa-lit);
}
/* A week: seven columns, the arrow lit across them all. */
.stx-place-art .stx-pa-cols {
    display: flex;
    gap: 3px;
    height: 100%;
}
.stx-place-art .stx-pa-cols s {
    flex: 1 1 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}
/* Seen by one: the arrow with a person behind a lock. */
.stx-place-art .stx-pa-eye {
    align-self: center;
    margin-top: -12px;
    font-size: 20px;
    color: var(--pa-lit);
}
.stx-place-art.is-private .stx-pa-now { top: auto; bottom: 12px; }
/* A desk's "where" tile is tall: the drawings grow into it. */
@media (min-width: 720px) {
    .stx-place-art { width: 92px; height: 62px; gap: 6px; }
    .stx-places .stx-place-list { gap: 14px; }
}

/* ---- the themes shelf's strip: the unbundle and the themes no wallet opens ------------------------
   One full-width dark strip under the grid, so the grid always ends flush. */
.stx-strip {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}
.stx-strip-part {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px 14px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--stx-rim);
    background:
        radial-gradient(70% 140% at 0% 50%, color-mix(in srgb, var(--stx-band) 26%, transparent), transparent 70%),
        var(--stx-device);
    color: var(--stx-ink);
    box-shadow: var(--stx-device-shadow), 0 18px 36px -26px rgba(46, 16, 101, 0.7);
}
.stx-strip-part > .stx-act { grid-column: 1 / -1; margin-top: 0; }
.stx-strip-ico {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    border: 1px solid rgba(167, 139, 250, 0.45);
    background: rgba(124, 58, 237, 0.24);
    color: #DDD6FE;
    font-size: 26px;
    text-shadow: 0 0 14px rgba(167, 139, 250, 0.6);
}
.stx-strip-text { min-width: 0; }
.stx-strip-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    line-height: 1.25;
    color: #FFFFFF;
}
.stx-strip-desc {
    margin: 4px 0 0;
    font-size: var(--text-sm);
    line-height: 1.45;
    color: var(--stx-ink-dim);
    text-wrap: balance;
}
.stx-strip .stx-btn-wear { border-color: rgba(167, 139, 250, 0.6); color: #DDD6FE; }
.stx-strip .stx-have { color: #6EE7B7; }
.stx-strip .stx-shelf-count { background: rgba(196, 181, 253, 0.16); color: #DDD6FE; }
/* The sealed themes: two or three locked card silhouettes fanned out, never their names. */
.stx-sealed { grid-template-columns: auto minmax(0, 1fr); }
.stx-sealed-cards {
    display: flex;
    padding-inline-end: 6px;
}
.stx-sealed-card {
    width: 34px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px dashed rgba(196, 181, 253, 0.5);
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.28), rgba(20, 18, 31, 0.6));
    color: #C4B5FD;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.8);
}
.stx-sealed-card + .stx-sealed-card { margin-inline-start: -12px; }
.stx-sealed-card:nth-child(1) { transform: rotate(-8deg); }
.stx-sealed-card:nth-child(3) { transform: rotate(8deg); }
.stx-sealed-card .material-icons { font-size: 16px; }
@media (min-width: 720px) {
    .stx-strip {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
        gap: 16px;
        margin-top: 16px;
    }
    .stx-strip-part { align-items: start; }
    /* Round 8: the action row may wrap and its button may shrink and wrap its words; a nowrap row
       of fixed buttons left the strip's words a sliver beside "Freigeschaltet" and the reset. */
    .stx-strip-part > .stx-act { grid-column: 2; }
    .stx-strip-part > .stx-act .stx-btn { flex: 0 1 auto; }
}
/* A full desk: the unbundle takes the wider share and sets its action beside its words, the
   sealed themes the narrower one - no strip carries an empty right half (round 3). */
@media (min-width: 1100px) {
    .stx-strip { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
    .stx-strip > .stx-strip-part:only-child { grid-column: 1; }
    /* Round 8: the action column takes at most 45% of the strip (fit-content), so the words beside it
       always keep the larger share. */
    .stx-unbundle {
        grid-template-columns: 48px minmax(0, 1fr) fit-content(45%);
        align-items: center;
    }
    .stx-unbundle > .stx-act { grid-column: 3; grid-row: 1; justify-content: flex-end; }
    .stx-sealed { align-items: center; }
}

/* ---- the streak ladder (round 4) ------------------------------------------------------------------
   The themes a streak opens, as one tile: their cards fanned on a night lit by the streak's own
   flame, one meter from today to the top rung with every rung marked on it, the rungs named under
   it, and one way home. Narrow (a phone's row, a tablet) it stacks; wide (it closes a desk row) the
   fan stands beside the words - laid out by the tile's own width, whatever its span. */
.stx-shelf > .stx-ladder { flex-basis: min(86vw, 330px); }
.stx-ladder-in {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
/* Round 5: narrow, the stage takes whatever height the snap row leaves, so the goal sits right
   under the rung names instead of under a dead band. */
.stx-ladder-stage {
    flex: 1 1 auto;
    min-height: 186px;
    padding: 22px 10px 28px;
    overflow: hidden;
    /* Round 8 re-audit: the fan is laid out by the stage's own width (below), not the tile's. */
    container: stx-ladder-stage / inline-size;
    border-bottom-color: rgba(167, 139, 250, 0.25);
    background:
        radial-gradient(70% 70% at 50% 100%, rgba(234, 88, 12, 0.36), transparent 70%),
        radial-gradient(60% 60% at 50% 0%, rgba(124, 58, 237, 0.32), transparent 70%),
        linear-gradient(180deg, #221A3A 0%, #14101F 100%);
}
.stx-ladder .stx-ladder-in > .stx-card-body { flex: 0 0 auto; }
.stx-ladder-fan {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
}
/* Round 8 re-audit: the fan never runs past its stage. A wide tile (720 to 880px, 1100 to 1170px)
   gave the big cards a stage of 295 to 366px, so the first card's start corner, where its streak
   tag sits, was clipped: "100" read as "0". Each card keeps its size (--stx-fan-w) and its usual
   overlap (--stx-fan-m), and the overlap grows only when the stage (100cqw) is narrower than the
   three cards need; 16px is the outer cards' tilt. */
.stx-ladder-pc {
    --stx-fan-w: 140px;
    --stx-fan-m: 24px;
    position: relative;
    flex: 0 0 var(--stx-fan-w);
    margin-inline: calc(-1 * max(var(--stx-fan-m), (3 * var(--stx-fan-w) + 16px - 100cqw) / 4));
    transform-origin: 50% 100%;
}
.stx-ladder-fan[data-rungs="2"] > .stx-ladder-pc {
    margin-inline: calc(-1 * max(var(--stx-fan-m), (2 * var(--stx-fan-w) + 16px - 100cqw) / 2));
}
/* Round 5: the fan climbs in rung order - the nearest rung low at the start, each next one higher
   and in front, the top rung highest at the end - the same sequence the marks and names read in
   (round 4 put the top rung in the middle: 100, 365, 180). */
.stx-ladder-pc:nth-child(1) { z-index: 1; transform: translateY(16px) rotate(-8deg); }
.stx-ladder-pc:nth-child(2) { z-index: 2; transform: translateY(2px) rotate(-3deg); }
.stx-ladder-pc:nth-child(3) { z-index: 3; transform: translateY(-12px) rotate(2deg); }
.stx-ladder-fan[data-rungs="2"] > .stx-ladder-pc:nth-child(1) { transform: translateY(10px) rotate(-6deg); }
.stx-ladder-fan[data-rungs="2"] > .stx-ladder-pc:nth-child(2) { transform: translateY(-8px) rotate(2deg); }
[dir="rtl"] .stx-ladder-pc:nth-child(1) { transform: translateY(16px) rotate(8deg); }
[dir="rtl"] .stx-ladder-pc:nth-child(2) { transform: translateY(2px) rotate(3deg); }
[dir="rtl"] .stx-ladder-pc:nth-child(3) { transform: translateY(-12px) rotate(-2deg); }
[dir="rtl"] .stx-ladder-fan[data-rungs="2"] > .stx-ladder-pc:nth-child(1) { transform: translateY(10px) rotate(6deg); }
[dir="rtl"] .stx-ladder-fan[data-rungs="2"] > .stx-ladder-pc:nth-child(2) { transform: translateY(-8px) rotate(-2deg); }
/* Each card says the streak it asks for, in the corner the next card never covers (the start
   side: each card overlaps the end side of the one before it); the viewer's own "1" repeated on
   three cards read as a price of one, so it steps aside. The name steps aside on every rung card
   too: at this size it could only end in an ellipsis. */
.stx .stx-ladder .stx-pc-ladder .hero-streak { visibility: hidden; }
.stx .stx-ladder .stx-pc-ladder .stx-pc-name { display: none; }
.stx-ladder-tag {
    position: absolute;
    top: 6px;
    inset-inline-start: 6px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    height: 20px;
    padding-inline: 7px 5px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(253, 186, 116, 0.6);
    background: rgba(20, 16, 31, 0.86);
    color: #FFF1DC;
    font-family: var(--chronos-font-mono);
    font-size: 11px;
    font-weight: var(--weight-black);
    line-height: 1;
    box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.8);
}
.stx-ladder-tag .material-icons { font-size: 12px; color: #FDBA74; }
.stx-ladder .stx-card-body { gap: 10px; }
.stx-ladder-sub {
    margin: -4px 0 0;
    font-size: var(--text-sm);
    line-height: 1.4;
    color: var(--chronos-fg-secondary);
    text-wrap: balance;
}
/* Round 5: an ordinal meter - each mark at the centre of its rung's column
   (StoreShelfRules.LadderMarkPercent), the fill moving through each stretch between two marks over
   the days between those two rungs (LadderFillPercent). The meter and the rung columns share one
   width and the columns have no gap, so a column's centre is exactly its mark. */
.stx-ladder-meter {
    position: relative;
    height: 6px;
    margin: 10px 0 2px;
    border-radius: 3px;
}
/* Round 6: the track itself, from the start (no streak) to the top rung's mark and no further
   (--stx-ladder-end, StoreShelfRules.LadderTrackEndPercent). */
.stx-ladder-meter::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: var(--stx-ladder-end, 100%);
    border-radius: inherit;
    background: color-mix(in srgb, #EA580C 16%, var(--chronos-card-inset));
}
.stx-ladder-fill {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    min-width: 6px;
    border-radius: inherit;
    background: linear-gradient(90deg, #EA580C, #F2B950);
}
[dir="rtl"] .stx-ladder-fill { background: linear-gradient(270deg, #EA580C, #F2B950); }
.stx-ladder-mark {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    margin-inline-start: -7px;
    border-radius: 50%;
    border: 2px solid #EA580C;
    background: var(--chronos-card-bg);
    box-shadow: 0 0 0 2px var(--chronos-card-bg);
}
:root[data-theme="dark"] .stx-ladder-mark { border-color: #FDBA74; }
.stx-ladder-rungs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    column-gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.stx-ladder-rungs li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding-inline: 4px;
    text-align: center;
}
.stx-ladder-days {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: var(--chronos-font-mono);
    font-size: var(--text-md);
    font-weight: var(--weight-black);
    line-height: 1;
}
.stx-ladder-days .material-icons { font-size: 15px; color: #EA580C; }
:root[data-theme="dark"] .stx-ladder-days .material-icons { color: #FDBA74; }
.stx-ladder-name {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    line-height: 1.25;
    overflow-wrap: break-word;
    text-wrap: balance;
}
@container stx-ladder (min-width: 560px) {
    .stx-ladder-in { flex-direction: row; }
    .stx-ladder-stage {
        flex: 0 0 44%;
        min-height: 0;
        border-bottom: 0;
        border-inline-end: 1px solid rgba(167, 139, 250, 0.25);
    }
    .stx-ladder .stx-ladder-in > .stx-card-body {
        flex: 1 1 auto;
        justify-content: center;
        padding: 18px 22px;
    }
    .stx-ladder .stx-act { margin-top: 4px; }
}

/* ---- the previews: scale only, never a skin ------------------------------------------------------
   .profile-card is 720px, 92dvh-capped and wrapped in a double glow for the modal; here it is
   a preview the size of its tile. One set of size knobs per mount (--pc-*), set by its Size
   class and, for the lead tile of a shelf, by the tile on a desk - so the same markup is a
   phone-row card and a two-by-two showpiece. The size rules carry .stx in front so they outrank
   the packs' (0,3,0) frame rules for SIZE; they never touch a radius, border, background or
   colour, which is what a frame or theme draws. */
.stx .profile-card.stx-pc {
    --pc-w: 260px;
    --pc-hero: 64px;
    --pc-ava: 52px;
    --pc-pull: -26px;
    --pc-pad: 14px;
    --pc-name: 15px;
    --pc-streak: 24px;
    --pc-fire: 16px;
    --pc-word: 8px;
    --pc-streak-top: 10px;
    --pc-initial: 22px;
    width: 100%;
    max-width: var(--pc-w);
    max-height: none;
    margin: 0;
    border-radius: 14px;
    box-shadow:
        0 0 0 1px var(--accent),
        0 18px 36px -18px color-mix(in srgb, var(--accent) 55%, rgba(0, 0, 0, 0.7));
    pointer-events: none;
    text-align: start;
}
.stx .profile-card.stx-pc-me { --pc-w: 300px; }
.stx .profile-card.stx-pc-hero {
    --pc-w: 340px;
    --pc-hero: 96px;
    --pc-ava: 74px;
    --pc-pull: -36px;
    --pc-pad: 18px;
    --pc-name: 18px;
    --pc-streak: 36px;
    --pc-fire: 22px;
    --pc-word: 9px;
    --pc-streak-top: 16px;
    --pc-initial: 32px;
}
.stx .profile-card.stx-pc-sheet {
    --pc-w: 380px;
    --pc-hero: 104px;
    --pc-ava: 78px;
    --pc-pull: -38px;
    --pc-pad: 18px;
    --pc-name: 19px;
    --pc-streak: 38px;
    --pc-fire: 22px;
    --pc-word: 9px;
    --pc-streak-top: 18px;
    --pc-initial: 34px;
}
@media (max-width: 719px) {
    /* The phone sheet's card is smaller, so the first part row shows above the foot. */
    .stx .profile-card.stx-pc-sheet {
        --pc-w: 300px;
        --pc-hero: 78px;
        --pc-ava: 64px;
        --pc-pull: -32px;
        --pc-pad: 16px;
        --pc-name: 17px;
        --pc-streak: 32px;
        --pc-fire: 20px;
        --pc-streak-top: 12px;
        --pc-initial: 28px;
    }
}
@media (max-width: 719px) and (max-height: 700px) {
    .stx .profile-card.stx-pc-sheet {
        --pc-w: 260px;
        --pc-hero: 62px;
        --pc-ava: 52px;
        --pc-pull: -26px;
        --pc-pad: 14px;
        --pc-name: 16px;
        --pc-streak: 28px;
        --pc-fire: 18px;
        --pc-streak-top: 10px;
        --pc-initial: 24px;
    }
}
/* Round 4: the streak ladder's three cards, small and fanned. */
.stx .profile-card.stx-pc-ladder {
    --pc-w: 140px;
    --pc-hero: 44px;
    --pc-ava: 38px;
    --pc-pull: -19px;
    --pc-pad: 10px;
    --pc-name: 12px;
    --pc-streak: 17px;
    --pc-fire: 12px;
    --pc-word: 6px;
    --pc-streak-top: 7px;
    --pc-initial: 16px;
}
/* A phone's snap row is as tall as its tallest card: the ladder stays a regular card's height
   there - a shorter fan and smaller rung names - so no theme card in the row
   carries a dead band above its button. */
@media (max-width: 719px) {
    .stx .profile-card.stx-pc-ladder {
        --pc-w: 112px;
        --pc-hero: 36px;
        --pc-ava: 30px;
        --pc-pull: -15px;
        --pc-pad: 8px;
        --pc-name: 10px;
        --pc-streak: 14px;
        --pc-fire: 10px;
        --pc-word: 5px;
        --pc-streak-top: 5px;
        --pc-initial: 13px;
    }
    .stx-ladder-stage { min-height: 0; padding: 14px 8px 24px; }
    .stx-ladder-pc { --stx-fan-w: 112px; --stx-fan-m: 20px; }
    /* Round 6: the tag floats on the card's hero and clears the avatar's ring under it (the phone
       card's avatar starts 21px down; the tag ends at 18px). */
    .stx-ladder-tag { top: 2px; height: 16px; padding-inline: 5px 4px; font-size: 10px; }
    .stx-ladder-tag .material-icons { font-size: 11px; }
    .stx-ladder .stx-card-body { gap: 8px; }
    .stx-ladder-meter { margin-top: 4px; }
    .stx-ladder-name { font-size: var(--text-xs); }
}
/* Wide (closing a desk row), the fan has the room for bigger cards. */
@container stx-ladder (min-width: 560px) {
    .stx .profile-card.stx-pc-ladder {
        --pc-w: 168px;
        --pc-hero: 52px;
        --pc-ava: 44px;
        --pc-pull: -22px;
        --pc-pad: 12px;
        --pc-name: 13px;
        --pc-streak: 20px;
        --pc-fire: 13px;
        --pc-word: 7px;
        --pc-streak-top: 8px;
        --pc-initial: 18px;
    }
    .stx-ladder-pc { --stx-fan-w: 168px; --stx-fan-m: 40px; }
}
/* Round 8 re-audit: and a stage too narrow for the bigger cards (a wide tile whose stage is 44% of
   it) shows the phone's cards, which a 300px stage holds at their usual overlap, instead of
   squeezing big ones together. By the stage's own width, so it holds for any tile span. */
@container stx-ladder-stage (max-width: 360px) {
    .stx .profile-card.stx-pc-ladder {
        --pc-w: 112px;
        --pc-hero: 36px;
        --pc-ava: 30px;
        --pc-pull: -15px;
        --pc-pad: 8px;
        --pc-name: 10px;
        --pc-streak: 14px;
        --pc-fire: 10px;
        --pc-word: 5px;
        --pc-streak-top: 5px;
        --pc-initial: 13px;
    }
    .stx-ladder-pc { --stx-fan-w: 112px; --stx-fan-m: 20px; }
    .stx-ladder-tag { top: 2px; height: 16px; padding-inline: 5px 4px; font-size: 10px; }
    .stx-ladder-tag .material-icons { font-size: 11px; }
}
/* The background shelf shows the hero the way the profile wears it: the full width of the card. */
.stx .profile-card.stx-pc-wide {
    --pc-w: 100%;
    --pc-hero: 96px;
    --pc-ava: 60px;
    --pc-pull: -30px;
    --pc-streak: 34px;
    --pc-fire: 20px;
    --pc-word: 9px;
    --pc-streak-top: 16px;
    --pc-initial: 26px;
}
/* A shape is about the avatar alone: the card shrinks to a plate around it. The picker's big
   preview is the same plate at the size of a profile avatar. */
.stx .profile-card.stx-pc-shape {
    --pc-w: 150px;
    --pc-hero: 40px;
    --pc-ava: 66px;
    --pc-pull: -26px;
    --pc-pad: 12px;
    --pc-initial: 28px;
}
.stx .profile-card.stx-pc-shape-big {
    --pc-w: 230px;
    --pc-hero: 64px;
    --pc-ava: 120px;
    --pc-pull: -48px;
    --pc-pad: 18px;
    --pc-initial: 52px;
}
@media (min-width: 1100px) {
    .stx .profile-card.stx-pc-hero {
        --pc-w: 400px;
        --pc-hero: 118px;
        --pc-ava: 86px;
        --pc-pull: -42px;
        --pc-pad: 20px;
        --pc-name: 21px;
        --pc-streak: 42px;
        --pc-fire: 25px;
        --pc-streak-top: 18px;
        --pc-initial: 36px;
    }
}
@media (min-width: 720px) {
    .stx .profile-card.stx-pc-wide { --pc-hero: 120px; --pc-streak: 40px; }
    /* The lead tile of a shelf (two columns, two rows) shows its card at a showcase size. */
    .stx .stx-card.is-featured .profile-card.stx-pc {
        --pc-w: 440px;
        --pc-hero: 128px;
        --pc-ava: 92px;
        --pc-pull: -44px;
        --pc-pad: 22px;
        --pc-name: 22px;
        --pc-streak: 44px;
        --pc-fire: 26px;
        --pc-word: 10px;
        --pc-streak-top: 20px;
        --pc-initial: 40px;
    }
}
.stx .stx-pc .profile-hero { height: var(--pc-hero); border-radius: 13px 13px 0 0; }
.stx .stx-pc .profile-hero::before { border-radius: inherit; }
.stx .stx-pc .profile-hero.stx-own-hero { background: var(--stx-own-hero); }
/* Round 4: the streak paints above a theme's hero art. The store tucks the streak into the hero's
   end corner, nearer than the profile modal's 56px, and Synthwave's striped sun lives in that very
   corner (styles/synthwave: the hero floor, right 22px), so it covered "СТРИК" on the themes
   shelf's lead. Under Synthwave the streak keeps the modal's composition - the sun in the corner,
   the streak beside it. */
.stx .stx-pc .hero-streak { z-index: 1; top: var(--pc-streak-top); inset-inline-end: calc(var(--pc-streak-top) + 2px); }
.stx .stx-pc.theme-synthwave .hero-streak { inset-inline-end: calc(var(--pc-streak-top) + 54px); }
[dir="rtl"] .stx .stx-pc.theme-synthwave .hero-streak { inset-inline-end: calc(var(--pc-streak-top) + 2px); }
.stx .stx-pc .hero-streak-count { gap: 2px; font-size: var(--pc-streak); }
.stx .stx-pc .hero-streak-fire {
    font-size: var(--pc-fire);
    color: #FDBA74;
    text-shadow: 0 0 6px rgba(249, 115, 22, 0.6);
}
.stx .stx-pc .hero-streak-word { margin-top: 3px; font-size: var(--pc-word); letter-spacing: 0.14em; }
.stx .stx-pc .profile-head {
    gap: 10px;
    margin-top: var(--pc-pull);
    padding: 0 var(--pc-pad) var(--pc-pad);
}
.stx .stx-pc .profile-avatar.stx-pc-ava {
    position: relative;
    width: var(--pc-ava);
    height: var(--pc-ava);
}
.stx .stx-pc .profile-avatar-initial { font-size: var(--pc-initial); }
.stx .stx-pc .stx-ava-img,
.stx .stx-face .stx-ava-img,
.stx .uchip .uchip-avatar-painted {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--stx-avatar) center / cover no-repeat;
}
.stx .stx-pc .profile-identity { min-width: 0; padding-bottom: 2px; }
.stx .stx-pc .profile-name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding-inline-end: 0;
    font-size: var(--pc-name);
}
/* The name still ends in an ellipsis, but its clip box reaches past the letters on every side,
   so a theme's glow around the name (Saturn's 14px amber halo) fades out on its own instead of
   being sliced into a hard dark rectangle at the span's edge (round 3). */
.stx .stx-pc .stx-pc-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 8px 16px;
    margin: -8px -16px;
}
.stx .stx-pc .tier-badge { flex: none; margin-inline-start: 0; }
/* Round 8 polish: a hero or sheet card narrower than 340px (a phone) gives its name more room, so a
   ten-letter name and PRO fit side by side at 360 to 375px in a wide face ("chronosp…" in Unbounded)
   instead of ending in an ellipsis: the head's sides and gaps come in a little, and the name follows
   the card's own width (5.9cqi is about the card's own size at a 375px phone, so there every face
   keeps nearly its size, and only a narrower card sets the name smaller). Keyed on the card's width,
   not the screen's. After the rules above on purpose: same specificity, so the later one wins. */
.stx .profile-card.stx-pc-hero,
.stx .profile-card.stx-pc-sheet { container: stx-card / inline-size; }
@container stx-card (max-width: 339px) {
    .stx .stx-pc .profile-head { gap: 8px; padding-inline: 14px; }
    .stx .stx-pc .profile-name {
        gap: 4px;
        font-size: clamp(15px, 5.9cqi, var(--pc-name));
    }
}
.stx .stx-pc-shape .hero-streak,
.stx .stx-pc-shape .profile-identity,
.stx .stx-pc-shape-big .hero-streak,
.stx .stx-pc-shape-big .profile-identity { display: none; }
.stx .stx-pc-shape .profile-head,
.stx .stx-pc-shape-big .profile-head { justify-content: center; }

/* ---- the shapes picker -----------------------------------------------------------------------------
   One tile: the viewer's avatar, large, in the shape picked, and every shape as a swatch on the
   viewer's own avatar (photo, or the violet face with the white initial) with its price or its
   state. The swatches are a radio group; the action under them acts on the pick. */
.stx-picker {
    display: grid;
    gap: 16px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--chronos-outline);
    background: var(--chronos-card-bg);
    box-shadow: 0 1px 2px rgba(15, 17, 22, 0.04), 0 22px 44px -28px color-mix(in srgb, var(--stx-band) 70%, rgba(0, 0, 0, 0.6));
}
:root[data-theme="dark"] .stx-picker { box-shadow: 0 22px 44px -28px rgba(0, 0, 0, 0.9); }
/* Round 3: the stage is a night plate of its own (the hero's language), and on it the shape on
   the viewer's own avatar, the way Steam previews a frame: the big face ringed in gold. The card it
   sat on before was grey on near black, and the card's hairline ran straight through the star.
   Round 6: the plate and, under it, the real UserChip in a strip of the friends list are one
   framed preview (.stx-picker-show) - the chip on its own surface, not a light field on the night. */
.stx-picker-show {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--stx-band) 45%, transparent);
}
.stx-picker-stage {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 214px;
    padding: 26px 16px;
    background:
        radial-gradient(60% 55% at 50% 50%, color-mix(in srgb, var(--stx-band) 42%, transparent), transparent 72%),
        radial-gradient(60% 50% at 100% 100%, color-mix(in srgb, var(--stx-band-2) 22%, transparent), transparent 70%),
        linear-gradient(180deg, #221A3A 0%, #14101F 70%, #120E1C 100%);
}
/* Round 4: the big face is the chip's own avatar (Shop/StoreFace) magnified 3.2 times, the way the
   loupe magnifies the arrow - same ring, same face, same initial, scaled - so it can never disagree
   with the real chip under it. The context box around it draws nothing and takes no space. */
.stx .stx-face { display: contents; }
:root .stx .stx-face.uchip.profile-card::before,
:root .stx .stx-face.uchip.profile-card::after { content: none; }
.stx-shape-big {
    position: relative;
    width: 128px;
    height: 128px;
    display: grid;
    place-items: center;
    /* The gold rim follows the shape: drop shadows on the unmasked wrapper trace the masked face
       inside it. */
    filter:
        drop-shadow(0 0 0.5px #FDE68A)
        drop-shadow(0 0 0.5px #FDE68A)
        drop-shadow(0 0 1px rgba(242, 185, 80, 0.9))
        drop-shadow(0 0 18px rgba(242, 185, 80, 0.55));
}
/* Round 6: in dark the default face wears the grey ring, and a gold halo round a silver ring mixed
   two metals - the halo there is the stage's violet. The halo is the stage's, not the avatar's, so
   the face itself still matches the chip. */
:root[data-theme="dark"] .stx-shape-big {
    filter:
        drop-shadow(0 0 0.5px #C4B5FD)
        drop-shadow(0 0 0.5px #C4B5FD)
        drop-shadow(0 0 1px rgba(167, 139, 250, 0.85))
        drop-shadow(0 0 18px rgba(139, 92, 246, 0.35));
}
.stx .stx-shape-big .profile-avatar {
    transform: scale(3.2);
    transform-origin: 50% 50%;
}
/* Round 6: the real chip in its real context - a strip of the friends list, the viewer's row
   between two quiet neighbours, on the page's own inset surface under the night plate. Round 4 had
   stood the chip on the night itself; in light mode the chip is a light plate, which read there as
   a form field from another design system. Here it is exactly what friends and the rating show. */
.stx-shape-chip {
    display: flex;
    justify-content: center;
    padding: 10px 14px 12px;
    border-top: 1px solid color-mix(in srgb, var(--stx-band) 30%, var(--chronos-outline));
    background:
        radial-gradient(80% 140% at 50% 0%, color-mix(in srgb, var(--stx-band) 10%, transparent), transparent 70%),
        var(--chronos-card-inset);
}
.stx-shape-chip .stx-mini-stage { max-width: 320px; }
/* Round 5: the dial of hour ticks rings the big face itself, centred on it and small enough to
   end above the chip (on the stage it was 196px from the stage's top and the chip cut its lower
   arc). It sits on a wrapper, not on the face, so the face's gold rim does not glow the ticks. */
.stx-shape-focus {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
}
.stx-shape-focus::before {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: -1;
    width: 172px;
    height: 172px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(196, 181, 253, 0.3) 0 0.7deg, transparent 0.7deg 6deg);
    -webkit-mask: radial-gradient(circle, transparent 0 60%, #000 61% 66%, transparent 67%);
    mask: radial-gradient(circle, transparent 0 60%, #000 61% 66%, transparent 67%);
    pointer-events: none;
}
.stx-picker-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.stx-picker-head .stx-card-name { font-size: var(--text-xl); }
.stx-picker-head .stx-card-lines { margin-top: 4px; }
.stx-swatches {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.stx-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    min-width: 0;
    min-height: 108px;
    padding: 10px 4px 8px;
    border-radius: 16px;
    border: 1px solid var(--chronos-outline);
    background: var(--chronos-card-bg);
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
@media (hover: hover) { .stx-swatch:hover { border-color: color-mix(in srgb, var(--hover-ink) var(--hover-lift), var(--chronos-outline)); } }
.stx-swatch.is-picked {
    border-color: var(--chronos-violet);
    background: color-mix(in srgb, var(--chronos-violet) 7%, var(--chronos-card-bg));
    box-shadow: 0 0 0 1px var(--chronos-violet), 0 10px 22px -14px rgba(124, 58, 237, 0.8);
}
/* Round 4: every swatch is the chip's own avatar too, a little larger than the chip's 40px. */
.stx-swatch-ava {
    position: relative;
    flex: none;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
}
.stx .stx-swatch-ava .profile-avatar { transform: scale(1.15); }
/* "Как у темы" is not one more shape: a dashed outline and a palette badge say it follows the
   theme (round 3 - under the plain theme it looked like the 30-shard rounded square). */
.stx-swatch-ava.is-default {
    border-radius: 14px;
    outline: 2px dashed color-mix(in srgb, var(--chronos-violet) 55%, transparent);
    outline-offset: 3px;
}
.stx-swatch-badge {
    position: absolute;
    inset-block-end: -7px;
    inset-inline-end: -7px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid var(--chronos-card-bg);
    background: #F2B950;
    color: #2A1500;
    font-size: 12px;
    text-shadow: none;
}
.stx-swatch-name {
    max-width: 100%;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    line-height: 1.2;
    text-align: center;
    overflow-wrap: break-word;
    -webkit-hyphens: manual;
    hyphens: manual;
}
/* A phone has four narrow columns: a product name split "Скруглён-ный" over three lines looked
   cheap (round 3). The names step aside there - the picked one heads the tile above - and stay
   in the button for a screen reader. */
@media (max-width: 719px) {
    .stx-swatch { min-height: 92px; padding-top: 14px; }
    /* Round 4: with the names stepped aside, the state words are all that tell swatches apart. */
    .stx-swatch-worn,
    .stx-swatch-pro,
    .stx-swatch-free { font-size: 11px; }
    .stx-swatch-name {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    /* Round 6: except the theme's own one. With every face the same, "Как у темы" under the plain
       theme and the 30-shard rounded square were one picture at swatch size; a short caption under
       the default says what it is (a desk shows every name). */
    .stx-swatch { padding-top: 10px; }
    .stx-swatch.is-default .stx-swatch-name {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip-path: none;
        white-space: normal;
        font-size: 10px;
        line-height: 1.15;
        color: var(--chronos-fg-secondary);
    }
}
/* Round 8: a state never runs past its swatch. On a phone a swatch is a quarter of the row, so the
   word ("Надето", "Getragen") wraps inside its pill rather than spill over the swatch's border. */
.stx-swatch-state {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 18px;
    color: var(--chronos-fg-muted);
}
.stx-swatch-state .material-icons { font-size: 17px; }
/* Worn says so in a word, a tier lock names the tier: a check against a tick at 17px told
   nobody anything (round 3). */
.stx-swatch-worn {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 20px;
    padding-block: 2px;
    padding-inline: 7px;
    border-radius: 10px;
    background: var(--chronos-violet);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: var(--weight-bold);
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-align: center;
    overflow-wrap: anywhere;
}
.stx-swatch-pro {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 20px;
    padding-inline: 5px 7px;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, #FFE6A6 0%, #F2B950 60%, #E2962C 100%);
    color: #2A1500;
    font-size: 10px;
    font-weight: var(--weight-black);
    letter-spacing: 0.04em;
}
.stx-swatch-state .stx-swatch-pro .material-icons { font-size: 12px; }
.stx-swatch-free {
    max-width: 100%;
    font-size: 10px;
    font-weight: var(--weight-bold);
    line-height: 1.1;
    color: #047857;
    text-align: center;
    overflow-wrap: anywhere;
}
:root[data-theme="dark"] .stx-swatch-free { color: #6EE7B7; }
.stx-swatch.is-owned .stx-swatch-state { color: #047857; }
.stx-swatch.is-worn .stx-swatch-state { color: var(--chronos-violet); }
:root[data-theme="dark"] .stx-swatch.is-owned .stx-swatch-state { color: #6EE7B7; }
:root[data-theme="dark"] .stx-swatch.is-worn .stx-swatch-state { color: #C4B5FD; }
.stx-swatch-price {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-family: var(--chronos-font-mono);
    font-size: var(--text-sm);
    font-weight: var(--weight-black);
    color: var(--chronos-fg-primary);
}
.stx-swatch-price .stx-gem { font-size: 13px; text-shadow: none; color: #D97706; }
:root[data-theme="dark"] .stx-swatch-price .stx-gem { color: var(--stx-gold); }
.stx-picker .stx-act { margin-top: 0; }
/* A desk: the picker spans the shelf like every shelf above it (round 3: a 1000px cap left it
   200px short, a ragged last edge), the stage on the start side, the swatches and the action one
   column of one width on the end side. */
@media (min-width: 720px) {
    .stx-picker {
        grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
        gap: 24px;
        padding: 20px;
    }
    .stx-picker-stage { min-height: 230px; }
    .stx-picker-side { justify-content: center; }
}

/* ---- the mini card's stage: a strip of the friends list -------------------------------------------- */
.stx-mini-stage {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 300px;
}
.stx-mini-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 6px 10px 6px 6px;
    padding-inline: 6px 10px;
    border-radius: 14px;
    border: 1px solid var(--chronos-outline);
    background: var(--chronos-card-bg);
    box-shadow: 0 8px 20px -14px rgba(15, 17, 22, 0.5);
}
.stx-mini-row .uchip { flex: 1 1 auto; }
.stx-mini-streak {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    margin-inline-start: auto;
    font-family: var(--chronos-font-mono);
    font-size: var(--text-md);
    font-weight: var(--weight-black);
    color: var(--chronos-fg-primary);
}
.stx-mini-streak .material-icons { font-size: 17px; color: #F97316; }
/* The neighbours: two quiet friends of the list at half strength - an initial, a handle, a streak -
   so the viewer's plate is the only thing in colour (round 3: grey bars read as "loading"). */
.stx-ghost {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 6px;
    padding-inline: 6px 10px;
    opacity: 0.5;
    color: var(--chronos-fg-secondary);
}
.stx-ghost-ava {
    flex: none;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: color-mix(in srgb, var(--chronos-fg-muted) 26%, var(--chronos-card-bg));
    color: var(--chronos-fg-secondary);
    font-family: var(--chronos-font-mono);
    font-size: var(--text-sm);
    font-weight: var(--weight-black);
}
.stx-ghost-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
}
.stx-ghost-streak {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    margin-inline-start: auto;
    font-family: var(--chronos-font-mono);
    font-size: var(--text-sm);
    font-weight: var(--weight-black);
}
.stx-ghost-streak .material-icons { font-size: 14px; }
/* Riding on another preview (the hero, "Твой образ", the sheet), the row is just the chip. */
.stx-look-mini .stx-mini-stage { max-width: none; }
.stx-look-mini .stx-mini-row {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.stx-look-mini .stx-mini-streak { display: none; }
.stx-look-mini .uchip {
    width: 100%;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 14px 30px -10px rgba(10, 6, 24, 0.7);
}

/* ---- the timeline slice and its loupe ---------------------------------------------------------------
   The real .tl: its tokens (54-timeline.css, the skin's styles/now-<id>) paint the hour lines, the
   block, the line and the bezel. Only the box is the store's - two hours, no scroll, no taps. The
   loupe is the same marker, its .tl root wearing the same skin classes, magnified 2.4 times so the
   bezel's glyph and rim and the tip's shape are the picture; the store only positions and scales. */
/* v0.25.5.0: the progress bar skins' try-on (Shop/StoreProgressSlice) - the board's own day bar,
   twice, on a plate of the board's own card: a skin is a dark capsule, and it has to be judged on
   the white card it will live on, not on the shelf's coloured stage. The bars are the board's
   .bar-row, .bar.bar-big and .bar-pct; only the plate is the store's. */
.stx-progview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 340px;
    padding: 14px 14px 12px;
    border: 1px solid var(--chronos-outline);
    border-radius: var(--radius-card);
    background: var(--chronos-card-bg);
    color: var(--chronos-fg-primary);
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.12);
}
.stx-prog-row .bar { flex: 1 1 auto; min-width: 0; }
/* On a desk the shelf is a grid of 220px cells, where a bar came out 120px long and its material a
   smear: a progress card takes two cells, so the bar runs at about board-card width. */
@media (min-width: 720px) {
    .stx-shelf-progskins > .stx-card { grid-column: span 2; }
    .stx-shelf-progskins .stx-progview { max-width: 440px; }
}
.stx-ctx-prog .stx-progview { max-width: 380px; }

.stx-nowview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 340px;
}
.stx .tl.stx-slice {
    width: 100%;
    max-width: 340px;
    gap: 0;
}
.stx-slice-box {
    position: relative;
    height: calc(120 * var(--tl-px));
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--chronos-outline);
    background: var(--chronos-card-bg);
    box-shadow: 0 8px 20px -14px rgba(15, 17, 22, 0.5);
}
.stx-slice .tl-axis { height: 100%; }
.stx-slice .tl-hour,
.stx-slice .tl-block {
    cursor: default;
    pointer-events: none;
}
.stx-loupe {
    position: relative;
    width: 100%;
    height: 96px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--stx-band) 30%, var(--chronos-outline));
    background:
        radial-gradient(60% 120% at 22% 50%, color-mix(in srgb, var(--stx-band) 12%, transparent), transparent 70%),
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--chronos-fg-muted) 10%, transparent) 0 1px, transparent 1px 34px),
        var(--chronos-card-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 26px -18px rgba(15, 17, 22, 0.6);
}
/* v0.25.1.0 critics round 2: on a pack's dark stage (the sheet) the light timeline looked pasted in.
   It is mounted on a plate there: a dark mat in the pack's own floor colour (--pack-floor), a
   hairline of the pack's accent round the mat and on the slice's own edge, and a soft inner shadow,
   so it reads as the viewer's board hung on the scene, labelled by its plate ("Твой таймлайн"). */
.stx-sheet-stage .stx-slice-box,
.stx-sheet-stage .stx-loupe {
    border-color: color-mix(in srgb, var(--pack-accent, var(--stx-pack-accent, #A78BFA)) 60%, transparent);
    box-shadow:
        inset 0 2px 7px rgba(15, 17, 22, 0.2),
        0 0 0 5px rgb(var(--pack-floor, 14 5 38) / 0.72),
        0 0 0 6px color-mix(in srgb, var(--pack-accent, var(--stx-pack-accent, #A78BFA)) 38%, transparent),
        0 18px 32px -14px rgba(0, 0, 0, 0.8);
}
.stx-loupe-tl {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: calc(100% / 2.4);
    height: calc(100% / 2.4);
    transform: scale(2.4);
    transform-origin: 0 0;
    direction: ltr;
    contain: none;
}
.stx-loupe-tl .tl-now {
    inset-inline: var(--tl-gutter) -40px;
    top: 50%;
    margin-top: calc(var(--tl-now-h) / -2);
}
/* Physically right, like the forced left-to-right axis it sits on: in Hebrew a logical end put the
   plate on the time bezel at the left (round 4). Round 5: a caption, not a control - the white
   pill with a border and a magnifier read as "tap to zoom" on a phone and did nothing. Flat muted
   type in the corner, the way a drawing labels its scale. */
.stx-loupe-plate {
    position: absolute;
    top: 9px;
    right: 12px;
    display: block;
    padding: 0;
    border: 0;
    background: none;
    color: var(--chronos-fg-muted);
    font-family: var(--chronos-font-mono);
    font-size: 10px;
    font-weight: var(--weight-bold);
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    pointer-events: none;
}
/* In the sheet the "Твой таймлайн" plate already names the context over the loupe. */
.stx-sheet .stx-loupe-plate { display: none; }
.stx-shelf-nowskins .stx-card-stage { padding-top: 40px; }

/* ---- the pack sheet -----------------------------------------------------------------------------------
   A phone: a bottom sheet of a FIXED height, everything inside scrolling under a fixed foot with
   the price and the action. A desk: a large modal of a fixed height, the stage holding still on
   the start side and the parts list scrolling on the end side. Once an area scrolls, its top
   fades (js/store-tabs.js marks it), so nothing is sliced by the rounded top. */
.stx-sheet-veil {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(10, 8, 20, 0.62);
    animation: stx-fade 0.18s ease-out;
}
.stx-sheet {
    position: fixed;
    z-index: 901;
    inset-inline: 0;
    bottom: 0;
    height: min(92dvh, 900px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: var(--chronos-card-bg);
    color: var(--chronos-fg-primary);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.45);
    animation: stx-rise 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Round 4: the sheet's bar - the grabber, the pack's name and the close button - so the close
   button never floats over content. On a phone it lies over the stage's top margin while the
   sheet rests (glass on the art, nothing under it), and turns solid the moment the sheet scrolls:
   whatever scrolls up goes under an opaque bar, not under a floating button. On a desk it is a row
   of its own over the parts column. Its touch area drags a phone sheet down (js/store-tabs.js). */
.stx-sheet-bar {
    position: absolute;
    top: 0;
    inset-inline: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding-block: 10px 4px;
    padding-inline: 18px 10px;
    border-radius: 24px 24px 0 0;
    touch-action: none;
    transition: box-shadow 0.15s ease;
}
.stx-sheet-grab {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 36px;
    height: 4px;
    margin-left: -18px;
    border-radius: 2px;
    background: rgba(255, 241, 220, 0.5);
}
.stx-sheet-bar-name {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.stx-sheet-bar-pack {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--chronos-font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    letter-spacing: -0.01em;
}
/* v0.25.1.0 critics round 2: what the pack costs this viewer, or that it is theirs, beside its name
   in the bar, so a sheet scrolled to its parts still says what is on offer. */
.stx-sheet-bar-deal {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 28px;
    padding-inline: 10px 8px;
    border-radius: var(--radius-pill);
    background: var(--chronos-card-inset);
    border: 1px solid var(--chronos-outline);
    font-family: var(--chronos-font-mono);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    white-space: nowrap;
}
.stx-sheet-bar-deal .material-icons { font-size: 15px; }
.stx-sheet-bar-deal .stx-gem { color: #D97706; }
.stx-sheet-bar-deal.is-owned {
    padding-inline: 8px 10px;
    font-family: inherit;
    color: #047857;
}
:root[data-theme="dark"] .stx-sheet-bar-deal.is-owned { color: #6EE7B7; }
.stx-sheet-close {
    flex: none;
    margin-inline-start: auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 241, 220, 0.4);
    background: rgba(18, 5, 46, 0.88);
    color: #FFF1DC;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
@media (hover: hover) { .stx-sheet-close:hover { border-color: rgba(255, 241, 220, 0.75); } }
.stx-sheet[data-scrolled] .stx-sheet-bar {
    background: var(--chronos-card-bg);
    box-shadow: 0 1px 0 var(--chronos-outline), 0 12px 20px -16px rgba(0, 0, 0, 0.45);
}
/* Round 6: the bar names the pack only once the big title has gone under the bar - shown at the
   first pixel of scroll, the name stood twice, in the bar and in the H2 right under it. */
.stx-sheet[data-titled] .stx-sheet-bar-name { opacity: 1; }
.stx-sheet[data-scrolled] .stx-sheet-grab { background: color-mix(in srgb, var(--chronos-fg-muted) 50%, transparent); }
.stx-sheet[data-scrolled] .stx-sheet-close {
    border-color: var(--chronos-outline);
    background: var(--chronos-card-inset);
    color: var(--chronos-fg-primary);
}
.stx-sheet-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.stx-sheet-body[data-scrolled] {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px);
    mask-image: linear-gradient(180deg, transparent 0, #000 22px);
}
/* A part a hero chip asked for: marked once as the sheet opens. */
.stx-part.is-focus {
    border-color: var(--chronos-violet);
    animation: stx-flash 1.4s ease-out 0.3s 1;
}
.stx-sheet-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 34px 16px 22px;
    background: var(--pack-art-tile, linear-gradient(160deg, #2E1065, #12052E));
    color: #FFF1DC;
}
.stx-ctx {
    position: relative;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.stx-ctx > .stx-plate { align-self: flex-start; }
.stx-ctx-card .stx-look { width: 100%; }
.stx-ctx-now .stx-nowview,
.stx-ctx-now .tl.stx-slice { max-width: 380px; }
/* A phone sheet keeps the stage short so the parts start above the foot: the arrow is shown by
   its loupe alone there (the shelf and a desk show the slice under it too). */
@media (max-width: 719px) {
    .stx-ctx-now .tl.stx-slice { display: none; }
    .stx-ctx-now .stx-loupe { height: 84px; }
}
.stx-sheet-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px 22px;
}
.stx-sheet-title {
    margin: 0;
    font-family: var(--chronos-font-display);
    font-size: 28px;
    font-weight: var(--weight-bold);
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.stx-sheet-tagline {
    margin: 0;
    font-size: var(--text-md);
    line-height: 1.45;
    color: var(--chronos-fg-secondary);
    text-wrap: balance;
}
/* v0.25.1.0: the kicker and its box wear the pack's own accent, as on its hero and its tile (the
   Mine's lilac, not the store's orange). On the light sheet the accent is deepened toward black
   so the small caps keep AA on white; the dark sheet shows it as it is. */
.stx-sheet .stx-eyebrow { color: color-mix(in srgb, var(--pack-accent, var(--stx-pack-accent, #D97706)) 60%, #000); }
:root[data-theme="dark"] .stx-sheet .stx-eyebrow { color: var(--pack-accent, var(--stx-pack-accent, var(--stx-gold))); }
.stx-sheet-h {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 6px;
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
}
/* Polish round 2: no orphan in the sheet's copy. The hint wraps into even lines ("Нажми на часть,
   чтобы / снять её с примерки", not "примерки" alone under a hanging "с"), and so do a part's where-line
   ("таймлайне", "стрика" alone on a last line, "и" hanging at a line's end) and the fine print ("по
   себе." alone on the desk). The tagline (.stx-sheet-tagline) was already balanced. Measured against
   pretty: pretty left "профиля и /" and split "Streak-/Karte"; balance did neither. */
.stx-sheet-h small {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--chronos-fg-muted);
    text-wrap: balance;
}
.stx-parts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    container: stx-parts / inline-size;
}
/* A part row (round 3): the slot over the name with the part's price right after it, and the
   try-on eye beside the two; under them, the full row wide, where the part shows (a pin, not a
   second eye) - the where-text no longer wraps into three ragged lines beside a pill. */
/* Round 8: the name and its cost are one wrapping line (.stx-part-line) beside the eye. As two grid
   columns, "Сатурн" + "В инвентаре" on a phone had no room left for the cost's column, and the
   cost was drawn over the eye's pill. */
.stx-part {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas:
        "ico slot eye"
        "ico line eye"
        "ico where where";
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
    width: 100%;
    min-height: 68px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid var(--chronos-outline);
    background: var(--chronos-card-inset);
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
@media (hover: hover) { .stx-part:hover { border-color: color-mix(in srgb, var(--hover-ink) var(--hover-lift), var(--chronos-outline)); } }
.stx-part.is-on {
    border-color: color-mix(in srgb, var(--chronos-violet) 50%, var(--chronos-outline));
    background: color-mix(in srgb, var(--chronos-violet) 6%, var(--chronos-card-bg));
}
.stx-part-ico {
    grid-area: ico;
    align-self: start;
    width: 44px;
    height: 44px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 13px;
    border: 1px solid var(--stx-rim);
    background: var(--stx-device);
    box-shadow: var(--stx-device-shadow);
    color: var(--stx-gold);
    font-size: 21px;
}
.stx-part:not(.is-on) .stx-part-ico { color: var(--stx-ink-dim); }
/* v0.25.1.0 critics round 2: the part itself in the window (Shop/StorePartThumb), 44px, each part's
   own CSS on a tiny real element: the theme's frame round the viewer's avatar, a crop of the hero
   wearing the background, of the plate wearing the mini card, the arrow's bezel glyph and line. A
   part taken off the try-on dims, like the row. */
.stx-part:not(.is-on) .stx-thumb { opacity: 0.55; filter: saturate(0.6); }
.stx-thumb {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}
.stx-thumb > .material-icons { font-size: 21px; }
.stx-thumb-theme .uchip-avatar { transform: scale(1.12); }
.stx .stx-thumb-card.profile-card {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: none;
    box-shadow: none;
    overflow: hidden;
    animation: none;
}
.stx .stx-thumb-card.profile-card::before,
.stx .stx-thumb-card.profile-card::after { content: none; }
.stx .stx-thumb-card .profile-hero {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}
/* Critics round 3: the mini card is the real chip (Shop/StorePartThumb) at a little over half size,
   its start in the window: the avatar in its ring on the plate's own stone and the first letters
   of the name, so the window reads as a mini card and not as a crop of its glow. The chip keeps its
   natural width and runs on past the window's end edge, where the window cuts it. */
.stx-thumb-minicard {
    grid-template-rows: minmax(0, 1fr);
    place-items: center start;
}
.stx-thumb-chip {
    display: flex;
    flex: none;
    width: max-content;
    margin-inline-start: 3px;
    transform: scale(0.58);
    transform-origin: 0 50%;
    pointer-events: none;
}
[dir="rtl"] .stx-thumb-chip { transform-origin: 100% 50%; }
.stx-thumb-chip .uchip.profile-card { max-width: none; }
.stx .tl.stx-thumb-now {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    contain: none;
    background:
        linear-gradient(180deg, transparent calc(50% - 12px), color-mix(in srgb, var(--chronos-fg-muted) 14%, transparent) calc(50% - 12px), color-mix(in srgb, var(--chronos-fg-muted) 14%, transparent) calc(50% - 11px), transparent calc(50% - 11px)),
        var(--chronos-card-bg);
}
.stx-thumb-now-line {
    position: absolute;
    inset-inline: 16px 0;
    top: calc(50% - 2px);
    height: 4px;
    background: var(--tl-now);
    box-shadow:
        0 -1px 0 var(--tl-now-halo),
        0 1px 0 var(--tl-now-halo),
        0 0 6px 1px var(--tl-now-glow);
}
.stx-thumb-now-face {
    position: absolute;
    inset-inline-start: 2px;
    top: calc(50% - 12px);
    width: 20px;
    height: 24px;
    border-radius: 10px 4px 4px 10px;
    border: 1px solid var(--tl-now-rim, rgba(139, 92, 246, 0.55));
    background:
        var(--tl-now-glyph, none),
        linear-gradient(180deg, var(--tl-now-face-top, #241F35) 0%, var(--tl-now-face-mid, #14121F) 58%, var(--tl-now-face-low, #1A1728) 100%);
}
[dir="rtl"] .stx-thumb-now-face { border-radius: 4px 10px 10px 4px; }
/* v0.25.5.0: a progress bar skin in the pack's parts list is the day bar itself, filled most of the
   way, on the board card's white, so its rim and the boundary spark read at thumb size. */
.stx-thumb-progressskin {
    place-items: center;
    background: var(--chronos-card-bg);
}
.stx .bar.stx-thumb-prog {
    display: block;
    width: calc(100% - 8px);
}
/* The thumb's fill is a span (the window is a span), so it is made a block to take its width; and
   in a 44px window the goal at the bar's end would cover half of it, so the window shows the
   material and the spark, the part a buyer is choosing. */
.stx .bar.stx-thumb-prog > .bar-fill {
    display: block;
    height: 100%;
}
.stx .bar.stx-thumb-prog::after { content: none; }
/* A phone sheet keeps its stage short (the parts must start above the foot, see .stx-ctx-now): the
   board context shows the nearly-done day alone there. */
@media (max-width: 719px) {
    .stx-ctx-prog .stx-prog-row:first-child { display: none; }
}
.stx-part-text { display: contents; }
/* Round 8: the slot's caption wraps rather than end in an ellipsis ("СТРЕЛКА «СЕЙЧ…"), and a single
   long compound beside the eye ("PROFILHINTERGRUND") is hyphenated where the language allows. */
.stx-part-slot {
    grid-area: slot;
    min-width: 0;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    font-family: var(--chronos-font-mono);
    font-size: var(--text-2xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--chronos-fg-muted);
}
/* The line: the name first, its cost right after it like a receipt line, and under it when the two
   do not fit. A name alone on its line wraps onto a second one and only then ends in an ellipsis,
   with the whole name in its title. */
.stx-part-line {
    grid-area: line;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
    min-width: 0;
}
.stx-part-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: break-word;
    font-size: var(--text-md);
    font-weight: var(--weight-bold);
    line-height: 1.25;
}
.stx-part-where {
    grid-area: where;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    margin-top: 4px;
    font-size: var(--text-sm);
    line-height: 1.3;
    color: var(--chronos-fg-secondary);
    text-wrap: balance;
}
.stx-part-where .material-icons { flex: none; margin-top: 1px; font-size: 14px; color: var(--chronos-fg-muted); }
.stx-part-cost { flex: none; max-width: 100%; }
.stx-part .stx-eye { grid-area: eye; justify-self: end; margin-inline-start: 4px; }
.stx-part-price {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: var(--chronos-font-mono);
    font-size: var(--text-md);
    font-weight: var(--weight-black);
}
.stx-part-price .stx-gem { font-size: 15px; text-shadow: none; color: #D97706; }
:root[data-theme="dark"] .stx-part-price .stx-gem { color: var(--stx-gold); }
/* The try-on state: an eye, "На примерке" or "Снято" - never a switch, which beside a price
   reads as "add to my order". */
.stx-eye {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 26px;
    padding-inline: 7px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--chronos-outline);
    background: var(--chronos-card-bg);
    color: var(--chronos-fg-muted);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    white-space: nowrap;
}
.stx-eye .material-icons { font-size: 15px; }
.stx-part.is-on .stx-eye {
    border-color: color-mix(in srgb, var(--chronos-violet) 45%, transparent);
    background: color-mix(in srgb, var(--chronos-violet) 12%, var(--chronos-card-bg));
    color: #6D28D9;
}
:root[data-theme="dark"] .stx-part.is-on .stx-eye { color: #C4B5FD; }
/* A narrow list (a phone's sheet): the eye stays in the slot's row and the name line runs under it
   the full row wide. Beside a wide face's "На примерке" pill the line had about 90px left, less than
   "инвентаре". Laid out by the list's own width, not the screen's. */
@container stx-parts (max-width: 480px) {
    .stx-part {
        grid-template-areas:
            "ico slot eye"
            "ico line line"
            "ico where where";
    }
}
/* Polish round 2: on a phone's list the eye is a round icon-only toggle. Beside the 130px "На примерке"
   pill in Unbounded the slot's caption had about 115px, so "СТРЕЛКА «СЕЙЧАС»" broke in two and
   "PROFILHINTER-GRUND" was hyphenated, and those cards stood taller than their neighbours. Now the
   caption gets about 210px. The caption is set in the mono face whatever the interface face, while the
   pill grows with the face and with the language ("Өмсөж үзэж байна", "Experimentando"), so no phone
   width is safe for both: every face drops the word on a phone, and the desk's 459px list (33em, 37ch
   in Unbounded) keeps it. Narrow in the type's size OR in the face's own letter width, like the
   loadout: one rule for every face, no font named.
   The word is only hidden from sight (not removed), so the switch's accessible name is unchanged; the
   state still shows in the icon (visibility / visibility_off) and the violet tint. The block sits after
   the base eye rules above, so it wins over them at equal specificity. */
@container stx-parts (max-width: 30em) or (max-width: 30ch) {
    .stx-part .stx-eye {
        position: relative;
        justify-content: center;
        gap: 0;
        width: 30px;
        min-height: 30px;
        padding: 0;
    }
    .stx-part .stx-eye .material-icons { font-size: 16px; }
    .stx-part .stx-eye-word {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
}
.stx-sheet-fine {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 2px 0 0;
    font-size: var(--text-sm);
    line-height: 1.4;
    color: var(--chronos-fg-muted);
    text-wrap: balance;
}
.stx-sheet-fine .material-icons { flex: none; font-size: 16px; }
.stx-sheet-foot {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--chronos-outline);
    background: var(--chronos-card-bg);
    box-shadow: 0 -12px 24px -18px rgba(0, 0, 0, 0.35);
}
.stx-sheet-deal {
    display: flex;
    align-items: center;
    gap: 12px;
}
/* A note over the deal row leaves the saving sticker room to lift without touching its words.
   ui review U3: only a note or a message that is actually there - the message region is always in
   the foot (a live region must be there before its text), empty most of the time. */
.stx-sheet-foot > :not(:empty) + .stx-sheet-deal { margin-top: 6px; }
/* The bezel and, under it, the saving as a small gold line - inside the foot, never across its
   top edge (round 3). */
.stx-sheet-price {
    position: relative;
    flex: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
/* Round 6: the saving wears the hero's own gold pill here too (round 5 had a tiny orange line
   under the bezel - two skins for one thing), set as a sticker on the bezel's top end corner so
   the foot stays one row high. The foot's top padding is deeper than the sticker's lift, so it
   never crosses the foot's top edge into the list behind it (round 3). */
.stx-save.is-sticker {
    position: absolute;
    top: -10px;
    inset-inline-end: -12px;
    z-index: 1;
    height: 22px;
    padding-inline: 7px;
    border-radius: 7px;
    font-size: var(--text-xs);
    box-shadow: 0 4px 10px -4px rgba(180, 83, 9, 0.7);
}
/* Round 8: no min-width: 0 here. The action keeps at least its longest word and icon (a goal claims
   nothing, see .stx-sheet-cta .stx-btn-goal), and the plate beside it ("Весь набор твой") wraps
   instead; "Alles anlegen" in Unbounded had been squeezed past its pill and off the screen. */
.stx-sheet-cta {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Round 8 re-audit: so beside the action the plate is what gives way. Its words wrap first, and a
   word longer than the room left breaks inside the plate instead of pushing the action past the
   sheet's edge. While both fit, nothing changes: the plate is never at this lower floor then. */
.stx-sheet-deal > .stx-have { overflow-wrap: anywhere; }
.stx-sheet-cta .stx-btn {
    flex: 1 1 auto;
    min-height: 50px;
    font-size: var(--text-md);
}
/* Critics round 3: with the pack owned, the foot is the action alone (the bar's chip says it is
   theirs), so the worn plate ("Надето всё") takes the foot's width, centred, as the button does. */
.stx-sheet-cta > .stx-on.is-big { flex: 1 1 auto; justify-content: center; }
/* Round 8 polish: the plate and the action share the row only while both keep their one-line width;
   when they cannot (a long plate in a wide face, at any width), the action takes a row of its own
   instead of wrapping its label. A narrow foot (a phone, under about 420px) always sets the plate as
   its own centred line over a full-width action: "Das ganze / Paket gehört / dir" beside a two-line
   "Alles / anlegen" in Unbounded at 360px was the squeezed foot. Keyed on the foot's own width. */
.stx-sheet-foot { container: stx-foot / inline-size; }
.stx-sheet-deal { flex-wrap: wrap; row-gap: 8px; }
@container stx-foot (max-width: 400px) {
    .stx-sheet-deal { row-gap: 4px; }
    .stx-sheet-deal > .stx-have {
        flex: 1 1 100%;
        justify-content: center;
        text-align: center;
        text-wrap: balance;
    }
    .stx-sheet-deal > .stx-have.is-big { min-height: 0; font-size: var(--text-sm); }
    /* Only under the plate: a price bezel keeps its action beside it on the one row, as before. */
    .stx-sheet-deal > .stx-have + .stx-sheet-cta { flex: 1 1 100%; justify-content: center; }
    .stx-sheet-deal > .stx-have + .stx-sheet-cta .stx-btn { min-height: 48px; }
}
.stx-sum-note {
    font-size: var(--text-sm);
    color: var(--chronos-fg-muted);
}
.stx-sheet-msg {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: #047857;
}
.stx-sheet-msg.is-error { color: #B45309; }
/* Empty, the live region stays in the accessibility tree but takes no room and no gap in the foot. */
.stx-sheet-msg:empty {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
:root[data-theme="dark"] .stx-sheet-msg { color: #6EE7B7; }
:root[data-theme="dark"] .stx-sheet-msg.is-error { color: #FDE68A; }
/* A phone's foot is one row: the bezel with the saving under it, and the action. */
@media (max-width: 899px) {
    .stx-sheet-foot .stx-price.is-big { height: 48px; padding-inline: 14px 12px; gap: 6px; }
    .stx-sheet-foot .stx-price.is-big .stx-price-num { font-size: 24px; }
    .stx-sheet-foot .stx-price.is-big .stx-gem { font-size: 20px; }
    .stx-sheet-foot .stx-price.is-big .stx-price-was { font-size: 14px; }
}
/* A phone sheet opens with its first part whole above the foot (round 3: it was cut mid-name). */
@media (max-width: 719px) {
    /* Round 5: 8px more over the card, so the bar's 44px close clears the card's corner; the
       gaps give the same back, so the first part row still ends above the foot. */
    .stx-sheet-stage { gap: 12px; padding: 34px 16px 12px; }
    .stx-ctx-now .stx-loupe { height: 72px; }
    /* Round 6: 4px off the body's top (and 6px off the card's hero, below) so the first part row
       ends clear of the foot's hairline instead of touching it. */
    .stx-sheet-body { gap: 10px; padding-top: 12px; }
    .stx-sheet-title { font-size: 26px; }
    .stx-sheet-h { margin-top: 0; }
    /* The hanging mini card keeps a 12px gutter to the screen's edge (it reached 8px). */
    .stx-sheet .stx-look-mini { margin-inline-end: -4px; }
}
/* A short phone (667px tall and the like): the stage tightens further - a smaller card, a shorter
   loupe, a taller sheet - so the parts begin above the foot there too. */
@media (max-width: 719px) and (max-height: 700px) {
    .stx-sheet { height: 96dvh; }
    .stx-sheet-stage { gap: 8px; padding: 30px 16px 8px; }
    .stx-ctx-now .stx-loupe { height: 56px; }
    .stx-ctx { gap: 6px; }
    .stx-sheet-body { gap: 8px; padding-top: 10px; }
    .stx-sheet-title { font-size: 24px; }
    /* The hero right under the sheet already carries the tagline; here the room goes to the parts. */
    .stx-sheet-tagline { display: none; }
}
/* A touch screen scrolls the sheet with a finger: no scrollbar track down its side. */
@media (pointer: coarse) {
    .stx-sheet-scroll,
    .stx-sheet-body { scrollbar-width: none; }
    .stx-sheet-scroll::-webkit-scrollbar,
    .stx-sheet-body::-webkit-scrollbar { display: none; }
}
@media (min-width: 900px) {
    .stx-sheet {
        inset: 50% auto auto 50%;
        width: min(1080px, calc(100vw - 48px));
        height: min(740px, calc(100dvh - 48px));
        /* Round 3: the dark stage runs the modal's full height on the start side, and the foot
           sits under the parts column only - a full-width white foot left an empty band under
           the art. Round 4: the bar is a row of its own over the parts. */
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
        transform: translate(-50%, -50%);
        border-radius: 26px;
        box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
        animation: stx-pop 0.2s ease-out;
    }
    .stx-sheet-bar {
        position: relative;
        grid-column: 2;
        grid-row: 1;
        min-height: 64px;
        padding-block: 12px 0;
        padding-inline: 30px 14px;
        border-radius: 0;
        background: var(--chronos-card-bg);
        touch-action: auto;
    }
    .stx-sheet-grab { display: none; }
    .stx-sheet-close {
        border-color: var(--chronos-outline);
        background: var(--chronos-card-inset);
        color: var(--chronos-fg-primary);
    }
    .stx-sheet-scroll { display: contents; }
    .stx-sheet-stage {
        grid-column: 1;
        grid-row: 1 / -1;
        justify-content: center;
        gap: 30px;
        padding: 36px 36px;
        overflow: hidden;
    }
    .stx-sheet-body {
        grid-column: 2;
        grid-row: 2;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0 30px 18px;
    }
    .stx-sheet-title { font-size: 34px; }
    .stx-sheet-foot {
        grid-column: 2;
        grid-row: 3;
        gap: 8px;
        padding: 14px 30px 18px;
        box-shadow: none;
    }
    .stx-sheet-deal { gap: 16px; }
}

/* ---- the toast ------------------------------------------------------------------------------------------- */
/* ui review U3: the toast's words for a screen reader, in a region that is always in the page. */
.stx-live {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.stx-toast {
    position: fixed;
    z-index: 950;
    inset-inline: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: min(560px, calc(100vw - 32px));
    min-height: 48px;
    margin-inline: auto;
    padding-block: 4px;
    padding-inline: 14px 4px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--stx-rim);
    background: var(--stx-device);
    color: var(--stx-ink);
    box-shadow: var(--stx-device-shadow), 0 18px 40px -14px rgba(20, 18, 31, 0.65);
    animation: stx-toast 0.22s ease-out;
}
.stx-toast > .material-icons { flex: none; font-size: 20px; color: #86EFAC; }
.stx-toast.is-error { border-color: rgba(242, 185, 80, 0.6); }
.stx-toast.is-error > .material-icons { color: #FDE68A; }
.stx-toast-text {
    min-width: 0;
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
}
.stx-toast-x {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    cursor: pointer;
}
.stx-toast-x .material-icons { font-size: 18px; }

@keyframes stx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes stx-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes stx-pop {
    from { opacity: 0; transform: translate(-50%, -48%) scale(0.98); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes stx-toast {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes stx-toast-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes stx-arm-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes stx-flash {
    0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.55); }
    100% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
}
/* Round 4: on a phone the toast comes from the top - at the bottom it covered, for four seconds
   after a purchase, exactly the row where the next action ("Надеть") sits. */
@media (max-width: 719px) {
    .stx-toast {
        top: calc(10px + env(safe-area-inset-top, 0px));
        bottom: auto;
        animation-name: stx-toast-down;
    }
}
@media (prefers-reduced-motion: reduce) {
    .stx-arm-drain,
    .stx-sheet,
    .stx-sheet-veil,
    .stx-toast,
    .stx-part.is-focus { animation: none; }
    .stx-tabs::before,
    .stx-sheet-bar,
    .stx-sheet-bar-name { transition: none; }
}
