/* Content (store lab, work in progress): round 4.1's Version D, promoted on 11-01. The
   catalogue comes first on a page as wide as the nightbreak.io plugin pages, three picture cards
   to a row with the name on the picture, the 3D render follows the mouse on hover, one turntable
   turns downstairs, the discount bar runs along the bottom and the cart slides in from the right.
   Builds on lab.css. Round 4.1 with all four versions is frozen in archive/round-4/content/. */

:root {
  --stone: #17110e;               /* plinth top, warm basalt */
  --lantern: #f2c46d;             /* a reached discount, in the tray only */
  --wall: #dcdce2;                /* body text on black */
  --rail-w: 228px;
  --col-gap: clamp(16px, 2vw, 28px);
  /* The type tag on a card's picture (Dali, 11-12: "have every tag be a different color, but
     make them very desaturated colors"). One colour a type: change a line to change a colour.
     All are the same strength: 18% saturation, and white words on each are 5.6 to 1. A type
     without a line here gets --kind-other. These are not the plugin tags' colours (--plugin-*). */
  --kind-realm: #735f89;       /* violet */
  --kind-adventure: #4c6e6b;   /* teal */
  --kind-hub: #71664e;         /* ochre */
  --kind-dungeon: #58697f;     /* slate blue */
  --kind-arena: #825f5b;       /* brick */
  --kind-events: #845b75;      /* mauve */
  --kind-structures: #786454;  /* umber */
  --kind-modules: #516b75;     /* steel */
  --kind-levels: #596d4c;      /* moss */
  --kind-models: #4d6f54;      /* sage */
  --kind-props: #666a4a;       /* olive */
  --kind-items: #65638f;       /* indigo */
  --kind-pets: #7f5a81;        /* plum */
  --kind-other: #676767;       /* grey */
}

body.ct { overflow-x: hidden; }
/* The embers are shell 1.2.0's background, at its default half opacity (Dali, 11-04: "a bit too
   distracting" at full). The lab's own .nb-embers rule went with shared/embers.js (11-05). */
/* As wide as the nightbreak.io plugin pages: 1440px of content (MagmaGuy, 11-01: "I am not the
   biggest fan of how thin modern pages are"). */
body.ct .lab-wrap { max-width: calc(1440px + 2 * clamp(16px, 2.5vw, 36px)); }
body.ct[data-tray="on"] { padding-bottom: var(--ct-bar-h, 76px); }
.ct-main { padding-top: 44px; padding-bottom: 96px; position: relative; }
.ct-main :is(h1, h2, h3) { text-wrap: balance; }
.ct-main p { text-wrap: pretty; }
.ct-main :is(p, li, dd, dt, h2, h3, a) { overflow-wrap: break-word; }
.ct-main [id] { scroll-margin-top: 100px; }
/* "Skip to content" (#main) lands under the sticky header, not behind it: the shell's header is
   84px tall, and one 56px row under 1000px (site-nav.css). It cut the home page's first line
   (audit 2026-11-14, audit-a11y-5). Here for the content pages, the home and the plugin pages,
   which load this file; site.css has the same rule for the pages that don't. */
#main { scroll-margin-top: 84px; }
@media (max-width: 999px) { #main { scroll-margin-top: 56px; } }
.ct h1.nb-heading { font-size: clamp(40px, 4.6vw, 60px); }
.ct h2.nb-heading { font-size: clamp(24px, 2.3vw, 30px); }

.ct-link { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ct-link:hover { color: var(--flare); }
.ct-muted { color: var(--muted); }
.ct-textbtn { background: none; border: 0; color: #fff; cursor: pointer; font: 700 14px var(--font); padding: 4px 2px; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ct-textbtn:hover { color: var(--flare); }
.ct-iconbtn { align-items: center; background: none; border: 1px solid var(--hair-strong); border-radius: 50%; color: #fff; cursor: pointer; display: inline-flex; height: 40px; justify-content: center; padding: 0; width: 40px; }
.ct-iconbtn svg { height: 20px; width: 20px; }
.ct-crumbs { color: var(--muted); display: flex; flex-wrap: wrap; font-size: 14px; font-weight: 600; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; }
.ct-crumbs li + li::before { color: rgb(255 255 255 / .25); content: "/"; margin-right: 6px; }
.ct-crumbs a { color: var(--muted); text-decoration: none; }
.ct-crumbs a:hover { color: #fff; }
.price.is-est { border-bottom: 1px dashed var(--hair-strong); }
.ct-off { color: var(--lantern); font-weight: 800; }
.ct-add svg { height: 1em; width: 1em; }
/* Action roles (docs/plans/2026-11-01-nightbreak-store-action-hierarchy.md): "In cart" is quieter
   than Add, with the green check for done. A card's Add is outlined, one choice among many, and
   takes the outlined hover. */
.ct-add.is-in { border-color: var(--hair-strong); color: var(--wall); }
.ct-add.is-in svg { color: var(--ok); }
/* Outlined Adds, Join as and Move up to take lab.css's outlined hover (Dali, 11-06; it replaces
   the red fill of 11-04). */
.ct-remove { color: var(--muted); }
.ct-remove:hover { color: #fff; }
.ct-preview { border: 1px dashed rgb(196 153 82 / .5); border-radius: 999px; color: var(--gold); display: inline-block; font-size: 12px; font-weight: 700; margin-right: 6px; padding: 2px 9px; }
code { background: #0e0d10; border: 1px solid var(--hair-strong); border-radius: 6px; color: #fff; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: max(.92em, 12px); padding: 2px 7px; white-space: nowrap; }

/* ---------- The plinth: a low disc of warm stone with an ember rim ---------- */
.ct-ped { --pw: 70%; --sink: -8%; align-items: center; display: flex; flex-direction: column; isolation: isolate; min-width: 0; position: relative; }
.ct-ped__piece { align-items: flex-end; aspect-ratio: 16 / 10; display: flex; justify-content: center; min-height: 0; position: relative; width: 100%; z-index: 2; }
.ct-ped__piece > img, .ct-stage__img { display: block; height: 100%; inset: 0; object-fit: contain; object-position: 50% 100%; position: absolute; width: 100%; user-select: none; -webkit-user-select: none; }
.ct-ped__plinth { aspect-ratio: 3.4 / 1; flex: none; margin-top: var(--sink); position: relative; transition: opacity .3s; width: var(--pw); z-index: 1; }
.ct-ped__plinth::before { /* the body: a short cylinder under the top face */
  background: linear-gradient(90deg, rgb(0 0 0 / .65), transparent 30%, transparent 70%, rgb(0 0 0 / .65)), linear-gradient(180deg, #3a1c0e 0%, #1a0e08 40%, #080404 80%, #000 100%);
  border-radius: 0 0 50% 50% / 0 0 70% 70%; bottom: 0; content: ""; left: 0; position: absolute; right: 0; top: 42%;
  box-shadow: 0 22px 46px -18px rgb(224 54 54 / .32);
}
.ct-ped__plinth::after { /* the top face, lit from above, with an ember rim */
  background: radial-gradient(ellipse 55% 50% at 50% 46%, rgb(255 178 128 / .14), transparent 72%), radial-gradient(ellipse at 50% 50%, #241913 0%, var(--stone) 64%, #0d0907 100%);
  border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(248 80 32 / .45), inset 0 -6px 14px rgb(248 80 32 / .14);
  content: ""; height: 84%; left: 0; position: absolute; right: 0; top: 0; transition: box-shadow .2s;
}
.ct-ped[data-kind="world"] { --pw: 68%; --sink: -16%; }
.ct-ped[data-kind="structure"] { --pw: 54%; --sink: -12%; }
.ct-ped[data-kind="model"] { --pw: 48%; --sink: -10%; }
.ct-ped[data-kind="pending"] .ct-ped__plinth { opacity: 0; }
.ct-ped__img { animation: ct-arrive .5s ease-out both; }
@keyframes ct-arrive { from { opacity: 0; } to { opacity: 1; } }

/* No render yet: the screenshot fills the image area, no frame and no plinth under it
   (SUPERSHOOT, 11-01: the red circle "is fine under models but if there is image it looks
   funny"). The plinth keeps its space so names line up across a row. */
.ct-shot { animation: ct-arrive .5s ease-out both; border-radius: 10px; height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.ct-ped[data-kind="shot"] .ct-ped__plinth { visibility: hidden; }
.ct-ped[data-kind="shot"] { --pw: 68%; --sink: -16%; }
.ct-ped[data-kind="shot"] .ct-ped__piece { aspect-ratio: 16 / 10; }

/* ---------- Cards: the picture, then the name, the type, the blurb, the buy row ---------- */
/* Three to a row for now (MagmaGuy, 11-01), on a page as wide as nightbreak.io/plugin/ pages.
   Dali (11-12): "move the title and tag under the image and align all text to the left so its:
   [tag] Pack name / description / ---- some spacing ----- / patreon and cart buttons", then,
   having seen it: "put the tag in the line under the pack the name, and increase the spacing
   between the description and the patreon/Add to cart buttons more". Then (11-12 14:19): "move
   the content type tag ... to be on the bottom left of every image". The picture carries the
   type tag bottom left, the 3D chip bottom right and a free item's ribbon top right. The blurb's
   row takes the room a taller neighbour leaves, so the buy row sits on every card's bottom
   edge. The name's link covers the whole card; the buy row sits above it. */
.ct-grid { display: grid; gap: 28px var(--col-gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ct-card {
  background: linear-gradient(180deg, #111117 0%, #0c0c11 100%); border: 1px solid var(--hair); border-radius: 10px;
  container-type: inline-size; display: grid; grid-template-areas: "pic" "head" "blurb" "buy"; grid-template-rows: auto auto 1fr auto; min-width: 0; overflow: hidden; position: relative;
  text-align: left; transition: border-color .15s;
}
/* The same slight border on all four sides, the site's hairline (Dali, 11-12 15:34: "give every
   card a slight border, currently it only has bottom border", then "don't make the bottom
   border stronger, all sides should match"). Until then three sides were fainter than the
   hairline and the bottom was a 2 px orange line. Under the pointer, and with the focus inside,
   the whole border turns orange, all four sides alike. */
.ct-card:hover, .ct-card:focus-within { border-color: rgb(248 80 32 / .6); }
.ct-card:has(.ct-card__name a:focus-visible) { outline: 2px solid var(--flare); outline-offset: 3px; }
/* The name has the card's whole width, at the size it has (never smaller than 16 px), on as
   many lines as it needs. */
/* The card's side room, in two values every part of the card reads. --card-in is where its
   text starts: the name, the description, the bottom row. --card-out is where the bottom row
   ends, the Add button's right edge. The type tag and the 3D chip on the picture stand on the
   same two lines (Dali, 11-12 17:22: "so they exactly align with the text on the card"). The
   values change with the card's width, further down, in one place each. */
.ct-card > * { --card-in: 16px; --card-out: 14px; }
.ct-card__head { font-size: clamp(16px, 5.2cqi, 19px); grid-area: head; line-height: 1.25; min-width: 0; padding: 13px var(--card-in, 16px) 0; }
.ct-card__head .ct-card__name { color: #fff; display: block; font-size: inherit; font-weight: 800; letter-spacing: -.01em; line-height: inherit; margin: 0; }
/* The type, a tag in the picture's bottom left corner. Its fill is solid, so it reads the same
   on a bright picture and on a dark one: white words, 5.6 to 1 on every colour (the tokens are
   at the top of this file). The light edge and the shadow part it from a picture of its own
   tone. Its left edge is the card's text edge (--card-in), and the 3D chip's right edge is the
   Add button's (--card-out). It stops short of the chip, so the two can never touch; the
   longest type name in the nine languages is 148 px wide. */
.ct-pic > .ct-card__kind, .ct-card__row > .ct-card__kind {
  background: var(--kind, var(--kind-other)); border: 1px solid rgb(255 255 255 / .22); border-radius: 4px; bottom: 8px; box-shadow: 0 1px 6px rgb(0 0 0 / .5); color: #fff;
  font: 700 12px/1 var(--font); left: var(--card-in, 16px); margin: 0; max-width: calc(100% - var(--card-in, 16px) - var(--card-out, 14px) - 60px); overflow: hidden; padding: 5px 8px; pointer-events: none; position: absolute; text-overflow: ellipsis;
  white-space: nowrap; z-index: 4;
}
.ct-card__kind[data-kind="realm"] { --kind: var(--kind-realm); }
.ct-card__kind[data-kind="adventure"] { --kind: var(--kind-adventure); }
.ct-card__kind[data-kind="hub"] { --kind: var(--kind-hub); }
.ct-card__kind[data-kind="dungeon"] { --kind: var(--kind-dungeon); }
.ct-card__kind[data-kind="arena"] { --kind: var(--kind-arena); }
.ct-card__kind[data-kind="events"] { --kind: var(--kind-events); }
.ct-card__kind[data-kind="structures"] { --kind: var(--kind-structures); }
.ct-card__kind[data-kind="modules"] { --kind: var(--kind-modules); }
.ct-card__kind[data-kind="levels"] { --kind: var(--kind-levels); }
.ct-card__kind[data-kind="models"] { --kind: var(--kind-models); }
.ct-card__kind[data-kind="props"] { --kind: var(--kind-props); }
.ct-card__kind[data-kind="items"] { --kind: var(--kind-items); }
.ct-card__kind[data-kind="pets"] { --kind: var(--kind-pets); }
.ct-card__name a { color: inherit; text-decoration: none; }
.ct-card__name a::after { content: ""; inset: 0; position: absolute; z-index: 1; }
.ct-card__name a:focus-visible { outline: none; }
.ct-card__blurb {
  color: var(--wall); display: -webkit-box; font-size: 14.5px; grid-area: blurb; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.42; margin: 10px var(--card-in, 16px) 0; overflow: hidden; -webkit-box-orient: vertical;
}
/* Room between the description and the buttons. Dali asked for more twice (11-04 15:58, then
   11-12: "increase the spacing ... more"), so the step is plain to see: 30 px at the least, where
   it was 18, and 26 where the narrower card sizes had 16. A card shorter than its neighbour has
   more, because the blurb's row takes what is left. */
.ct-card__buy { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; grid-area: buy; justify-content: space-between; min-height: 32px; padding: 30px var(--card-out, 14px) 13px var(--card-in, 16px); position: relative; z-index: 2; }
/* The card's Add, a little less padding (Dali, 15:58): 31px tall. The Free tag and the tier tag
   match it. */
.ct-card__buy .ct-add.btn--small { padding: 7px 12px; }
.ct-card__buy .price { font-size: 17px; }
/* Owned cards dim the whole picture. Not `.ct-pic > img`: that also matched the hidden render and
   showed it over the screenshot (11-02, tools/card-overlay-check.mjs). */
.ct-card.is-have .ct-pic { opacity: .72; }
/* Free: a red tag as big as the card's Add (Dali, 11-04: "make it more visible, same size as the
   add to cart button and make it red"). Then: bigger text, same box (Dali, 11-04): 16px text with
   1.5px less padding top and bottom keeps it 35px tall, like the Add. */
.ct-card__buy .ct-free {
  align-items: center; background: var(--ember); border: 2px solid var(--ember); border-radius: 4px; color: #fff; font: 700 16px/1 var(--font); justify-content: center;
  min-width: 79px; padding: 5.5px 14px;
}
/* Free, again: a ribbon across the card's top-right corner (Dali, 11-12: "add a 'Free' tag on the
   top right of each card for the free content just like in the plugins cards"). It is the
   plugins page's ribbon (site.css, .pp-card__ribbon: red, bold white capitals, 45 degrees) at
   the size of this smaller card: 12 px words on a band 26 px thick that crosses the corner 76 px
   along each edge, room for the longest word (Kostenlos). It ends 94 px down the right edge, so
   it stays clear of the 3D chip in the picture's bottom corner, and it takes no clicks. The red
   Free in the buy row stays: that row is where every card says its price.
   It is inside the picture's element (core.js, card), which cuts it at the picture's edges.
   It grows with the card (Dali, 11-13: "make the Freemium ribon bigger for larger cards, its a
   bit too small now"; the Free ribbon grows the same way, so the two match side by side). The
   sizes above are those of the narrowest card, 216 px. From there the word grows evenly with
   the card's own width (cqi: the card is a container, measured inside its border) to 16 px on a card of 345 px, and stays
   there on a wider one. Every other length is written in em of that word, so the whole ribbon
   grows as one: the band is 34.7 px thick at the top size and crosses the corner 101 px
   along each edge. The picture cuts it at the same two places of its length at every size. */
.ct-card__ribbon {
  background: var(--ember); box-shadow: 0 calc(3em / 12) calc(10em / 12) rgb(0 0 0 / .4); color: #fff;
  font-size: clamp(12px, calc(12px + (100cqi - 214px) * 0.031008), 16px); font-weight: 800; letter-spacing: .06em; line-height: 1; padding: calc(7em / 12) 0;
  pointer-events: none; position: absolute; right: calc(-42em / 12); text-align: center; text-transform: uppercase; top: calc(25em / 12); transform: rotate(45deg); width: calc(160em / 12); z-index: 3;
}
/* A card the visitor has says Owned where its price was, on a dimmed picture: no ribbon there. */
.ct-card.is-have .ct-card__ribbon { display: none; }
/* Freemium (Dali, 11-13: "have them have a 'Freemium' ribbon on the top right (like the Free
   ribbon) but make it a gradiant from the Free red to the patreon Orange"). The card of an item
   made of a free pack and a paid one (core.js, card) wears the Free ribbon as it is: same place,
   size, angle, type and shadow, and it takes no clicks. Only the background differs. It runs
   along the band from --ember, the Free ribbon's red, to an orange. The picture cuts the band
   at 16% and 84% of its length, so the colours stand at 18% and 82% and each end shows pure.
   The orange was --flare-fill, the tier tag's fill. Dali then asked for it "slightly brighter"
   (11-13), so it is --flare-fill-hover (#d65a08), the orange that same tag turns under the
   pointer: a step from --flare-fill towards the heading orange, and nearer the first. White
   words on it are 3.94 to 1, where --flare-fill gave 4.50 and the red gives 4.62. That is
   under 4.5, and accepted here: the band is for the eye, hidden from screen readers, and the
   row under the card says the same in words. */
.ct-card__ribbon--mix { background: linear-gradient(90deg, var(--ember) 18%, var(--flare-fill-hover) 82%); }
/* The two small marks of a card with that ribbon (core.js, card): "Free" in the Free tag's red
   and "+7 premium" in the tier tag's orange, side by side in the picture's very bottom right
   corner, on the type tag's row and as tall as the type tag (Dali, 11-13: "move the tags down
   so they sit at the same level as 'pets & creatures'", then "the very corner"). Their right
   edge is where the 3D chip's is on any other card: the Add button's (--card-out).
   Such a card's bottom row is one flex row (.ct-card__row): the type tag on the left, then
   the 3D chip when the card has one (core.js, fillPic, puts it in here), then the marks in
   the corner. It reads "Dungeon modules ... 3D, Free, Premium". The chip is 4 px from the
   marks, as the marks are from each other, and the type tag at least 8 px from what follows.
   The marks show where they fit, in the language and at the width the card has. The row is
   one line tall and wraps upwards: marks that do not fit beside the type tag and the chip
   go to a second line, which the row cuts off. They are one piece, so both go together,
   never one alone, and the chip then has the corner, as on any other card. No width is
   written down for that: a short type name keeps the marks on a card where a long one in
   another language hides them. The type tag gives way first only for the chip, as before.
   The row is 8 px larger than its line on every side, so it cuts no shadow of a tag. */
.ct-card__row {
  align-content: flex-start; align-items: flex-start; bottom: 0; box-sizing: border-box; column-gap: 8px; display: flex; flex-wrap: wrap-reverse; height: 44px;
  left: calc(var(--card-in, 16px) - 8px); overflow: hidden; padding: 8px; pointer-events: none; position: absolute; right: calc(var(--card-out, 14px) - 8px); row-gap: 28px; z-index: 4;
}
/* The type tag keeps the chip's room, 60 px, as on any other card (30 px on a narrow card,
   further down). An upcoming item has no chip, so there the tag may use the whole row. */
.ct-card__row > .ct-card__kind { flex: 0 1 auto; margin-right: auto; max-width: calc(100% - 60px); min-width: 0; position: static; }
.ct-card.is-soon .ct-card__row > .ct-card__kind { max-width: 100%; }
.ct-card__row > .ct-pic__badge { flex: none; order: 1; position: static; }
.ct-card__marks { display: flex; flex: none; gap: 4px; order: 2; }
.ct-card__row > .ct-pic__badge + .ct-card__marks { margin-left: -4px; }
/* The chip arrives a moment after the card (fillPic). Until the card knows whether it has
   one, its picture is "pending" and the row keeps the chip's room, so marks never show first
   and go when the chip comes. */
.ct-card:not(.is-soon) .ct-pic[data-kind="pending"] > .ct-card__row::before { content: ""; flex: none; height: 1px; order: 1; width: 49px; }
.ct-card:not(.is-soon) .ct-pic[data-kind="pending"] > .ct-card__row > .ct-card__marks { margin-left: -4px; }
/* A mark has the type tag's box: 12 px words, 5 px above and below, the same light edge. */
.ct-card__mark { border: 1px solid rgb(255 255 255 / .22); border-radius: 4px; box-shadow: 0 1px 6px rgb(0 0 0 / .5); color: #fff; font: 800 12px/1 var(--font); padding: 5px 8px; white-space: nowrap; }
.ct-card__mark--free { background: var(--ember); }
.ct-card__mark--paid { background: var(--flare-fill); }
@container (max-width: 250px) {
  /* The chip is only its icon here, 22 px. */
  .ct-card__row > .ct-card__kind { max-width: calc(100% - 31px); }
  .ct-card:not(.is-soon) .ct-pic[data-kind="pending"] > .ct-card__row::before { width: 22px; }
}
/* One edge is written down, and it is the ribbon's, not the words': under 221 px of card
   the ribbon's band comes within 4 px of the corner mark (2 px on the narrowest card, 214 px
   inside its border). There the marks hide in every language. */
@container (max-width: 220px) { .ct-card__marks { display: none; } }
/* Legacy (MagmaGuy, 11-13: the 100 events "should be relisted but tagged as legacy with a
   ribbon"). The card of older content that newer releases have replaced (core.js, card;
   store.js, LEGACY) wears the Free ribbon as it is too: same place, size, angle, type and
   shadow, it grows with the card like the other two, and it takes no clicks. Only the
   background differs: a quiet graphite. Red and orange say what a thing costs; this says how
   old it is, so it has no colour of an offer. White words on it are 6.4 to 1. A card has one
   ribbon, and Legacy goes before Free and Freemium. It stays on a card the visitor has: it
   says what the item is, and Owned in the row says the rest. */
.ct-card__ribbon--legacy { background: #5b5e6a; }
.ct-card.is-have .ct-card__ribbon--legacy { display: block; }
/* The same word as a mark in a line of text: in front of the type on a legacy item's page
   ("Legacy Models for EliteMobs"). An outline in the text's own grey, no fill. */
.ct-legacy-mark { border: 1px solid rgb(255 255 255 / .34); border-radius: 4px; color: #dcdce2; display: inline-block; font: 700 12px/1 var(--font); letter-spacing: .02em; margin-right: 4px; padding: 5px 8px; vertical-align: 1px; white-space: nowrap; }
/* Under the short description on that page: the one line that says what legacy means. */
.ct-info__blurb:has(+ .ct-legacy-note) { margin-bottom: 14px; }
.ct-legacy-note { border-left: 2px solid var(--hair-strong); color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.5; margin: 0 0 24px; padding: 1px 0 1px 12px; }
.ct-legacy-note .ct-link { white-space: nowrap; }
/* Where its two install steps would be: one sentence on installing it by hand. */
.ct-install__legacy { color: var(--wall); font-size: 14.5px; line-height: 1.55; margin: 0; }
/* The buy row of an item sold outside the site only (core.js, shopsRow): "Get it on" on a line
   of its own, then the shops side by side, each with its mark. No price and no button. */
.ct-shops { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 13px; font-weight: 600; gap: 6px 16px; min-width: 0; width: 100%; }
.ct-shops__on { flex: 0 0 100%; line-height: 1.2; }
.ct-shops .ct-shoplink { font-size: 14px; }
.ct-shops__shop { align-items: center; color: #fff; display: inline-flex; flex-wrap: wrap; font-size: 14px; font-weight: 700; gap: 4px 8px; }
.ct-shops__shop > .ct-logo { border-radius: 4px; height: 20px; width: 20px; }
.ct-shops__shop > .ct-logo svg { height: 14px; width: 14px; }
.ct-shops__shop > span:not(.ct-logo) { margin-right: 2px; }
.ct-shops__dot { color: var(--muted); }
/* On its page, a shop that sells it in parts has a button per part, side by side. */
.ct-offer__part { min-width: 5.5em; }

/* ---------- Coming soon: an item that is announced and not released ---------- */
/* The site carries such an item itself until the content system has it (upcoming-data.js;
   store.js, UPCOMING). Its mark is gold on black, the colour this site gives a note about the
   state of a thing, and solid: dashed gold is the mark of a preview (.ct-preview). On a card it
   sits in the picture's top left corner, at the left edge the card's text has. A free item's
   ribbon keeps the top right corner. */
.ct-soon { background: rgb(8 8 12 / .86); border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); display: inline-flex; flex: none; font: 800 12px/1 var(--font); padding: 5px 10px; white-space: nowrap; }
.ct-card__soon { left: var(--card-in, 16px); margin: 0; pointer-events: none; position: absolute; top: 10px; z-index: 4; }
/* Its buy row has nothing to press: the price or Free, and the tier it will be in. A click on
   the row opens the item's page like the rest of the card. */
.ct-card.is-soon .ct-card__buy { pointer-events: none; }
/* An upcoming item whose price is not set says so little in its row: "Not released yet", in
   the row's quiet grey (core.js, soonPrice). No price, no tier, not Free. */
.ct-noprice { color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.2; }
/* The tier it will be in has the tier tag's look and is not a link (core.js, soonPrice). */
.ct-tiertag--soon, .ct-tiertag--soon:hover { background: var(--flare-fill); border-color: var(--flare-fill); color: #fff; }
/* It has no 3D render yet, so no 3D chip in its picture's corner: its type tag may use that
   room. "Haustiere & Kreaturen" is 153 px wide and the narrowest card 217 px. */
.ct-card.is-soon .ct-pic > .ct-card__kind { max-width: calc(100% - 2 * var(--card-in, 16px)); }
/* On its page the box says Coming soon where an item's box names a way to get it, and the
   install box says in one sentence how it will install (item.js). */
.ct-install__soon { align-items: baseline; color: var(--wall); display: flex; flex-wrap: wrap; font-size: 14.5px; gap: 8px 10px; line-height: 1.55; margin: 0; }
.ct-install__soon > span:last-child { flex: 1 1 240px; min-width: 0; }

/* ---------- An item made of packs: one card, one page (store.js, `parts`) ---------- */
/* Its card's picture is split in two (core.js, splitPic; MagmaGuy, 11-12, picked this from the
   pets mock-up): the free pack's picture on the left, the paid pack's small pictures in two
   rows on the right. The ribbon and the row under the card say what is free and what is paid. */
.ct-split { display: grid; gap: 2px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); inset: 0; position: absolute; }
.ct-split__main, .ct-split__cell { display: block; min-width: 0; overflow: hidden; position: relative; }
.ct-split__more { display: grid; gap: 2px; grid-auto-rows: minmax(0, 1fr); grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; position: relative; }
.ct-split__more[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ct-split__more[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ct-split__more[data-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ct-split__more[data-cols="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ct-split__cell { background: #111319; }
.ct-split__cell img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
/* Its row names each pack's price, joined by a plus: "Free + Adventurer tier or 3.99". */
.ct-buy__parts { align-items: center; display: inline-flex; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.ct-plus { color: var(--muted); flex: none; font: 800 16px/1 var(--font); }
/* On its page the box has a row a pack (item.js, partsOfferHtml). Once a pack is released each
   pack has a box of its own under its name. */
.ct-offer__or--plus span { color: var(--wall); font-size: 17px; font-weight: 800; line-height: 1; top: -.55em; }
.ct-parts { display: grid; gap: 18px; }
.ct-part__name { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 0; line-height: 1.3; margin: 0 0 8px; }
.ct-part__what { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin: 0 0 10px; }
/* A paid item in a tier: its Patreon tier as a tag that opens Patreon, then "or" and the price
   in smaller type (Dali, then MagmaGuy, 11-05). "or" and the price wrap together.
   The tag is orange and as heavy as the Add beside it: a subscription and buying once are equally
   valid, so neither reads as the primary (MagmaGuy, 11-05: "make the tier orange"). On a card it
   is an orange outlined pill, like the card's outlined Add; it fills orange under the pointer.
   Orange text on the card is 5.1:1; filled, the tag is white on --flare-fill, 4.5:1 (lab.css). */
/* Dali, 15:58: the tag as tall as the card's Add with its corners (31px, 4px), filled orange
   by default and the light outlined look under the pointer (the old hover and resting looks
   swapped); "or" and the price one space apart.
   MagmaGuy, 11-07: "or $x" no smaller than the tag and the Add ("I don't like how the 'or $x' is
   smaller than the badge"), so both are the tag's 13px, centred on it (was 12px on its bottom edge).
   The bigger type takes 5px from the gaps (tag to "or" 9 -> 8, price to Add at least 12 -> 8), so
   French on phones and Japanese at 1440 keep Add on the same line as before. */
.ct-tierprice { align-items: center; display: inline-flex; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.ct-tiertag {
  align-items: center; background: var(--flare-fill); border: 2px solid var(--flare-fill); border-radius: 4px; color: #fff; display: inline-flex;
  font: 700 13px/1 var(--font); gap: 6px; padding: 7px 12px 7px 10px; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap;
}
.ct-tiertag:hover { background: rgb(248 80 32 / .1); border-color: var(--flare); color: var(--flare); }
.ct-tiertag:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ct-tiertag .ct-logo { background: none; color: inherit; height: auto; width: auto; }
.ct-tiertag .ct-logo svg { height: 12px; width: 12px; }
.ct-card__buy .ct-tierprice .price { color: var(--wall); font-size: 13px; font-weight: 700; line-height: 1; }
.ct-tierprice__alt { align-items: baseline; display: inline-flex; gap: .3em; white-space: nowrap; }
.ct-tierprice__or { color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1; }
/* When the tag and price take the row, Add wraps to its own line and stays on the right. */
.ct-card__buy > .ct-add { margin-left: auto; }

/* The picture: a screenshot for places, the render for models, props and items. */
.ct-pic { aspect-ratio: 16 / 9; isolation: isolate; background: radial-gradient(ellipse 75% 70% at 50% 42%, #1e161a 0%, #0c0b10 72%); grid-area: pic; overflow: hidden; position: relative; }
/* Only for a card in the old shape (above): it keeps its name and type readable on any picture.
   The card's own picture has nothing written on it and needs no shade. */
.ct-card:not(:has(> .ct-card__head)) .ct-pic::after {
  background: linear-gradient(180deg, rgb(6 6 9 / .72) 0%, rgb(6 6 9 / .28) 24%, transparent 44%), linear-gradient(0deg, rgb(6 6 9 / .62) 0%, transparent 28%);
  content: ""; inset: 0; pointer-events: none; position: absolute; z-index: 3;
}
.ct-pic__shot { height: 100%; inset: 0; object-fit: cover; position: absolute; transition: opacity .3s, transform .7s cubic-bezier(.2, .8, .2, 1); width: 100%; }
.ct-card:hover .ct-pic__shot { transform: scale(1.035); }
/* Model frames carry their own margin, so the render and the idle clip use the full height. */
.ct-pic__render, .ct-pic__clip { bottom: 0; height: 100%; left: 0; object-fit: contain; object-position: 50% 50%; opacity: 0; position: absolute; transition: opacity .25s; width: 100%; z-index: 1; }
.ct-pic__clip { z-index: 2; }
.ct-pic[data-main="render"] { background: radial-gradient(ellipse 60% 70% at 50% 42%, rgb(255 255 255 / .03), transparent 70%), #111319; }
.ct-pic[data-main="render"] .ct-pic__shot { opacity: 0; }
.ct-pic[data-main="render"][data-kind="shot"] .ct-pic__shot { opacity: 1; }
.ct-pic[data-main="render"]:not([data-kind="shot"]):not([data-kind="pending"]) .ct-pic__render { opacity: 1; }
.ct-pic[data-main="render"]:not([data-kind="shot"])::before { /* a pool of light instead of the plinth */
  background: radial-gradient(ellipse at 50% 50%, rgb(248 80 32 / .24), rgb(224 54 54 / .07) 46%, transparent 72%); bottom: 0; content: ""; height: 18%; left: 18%; position: absolute; right: 18%; transition: opacity .25s;
}
.ct-pic.is-clip .ct-pic__clip { opacity: 1; }
.ct-pic.is-clip .ct-pic__render, .ct-pic.is-clip::before { opacity: 0; }
.ct-pic[data-main="shot"].is-turning .ct-pic__shot { opacity: 0; }
.ct-pic[data-main="shot"].is-turning .ct-pic__render { opacity: 1; }
.ct-pic__badge {
  align-items: center; background: rgb(8 8 12 / .74); border: 1px solid rgb(255 255 255 / .16); border-radius: 999px; bottom: 8px; color: #fff; display: inline-flex; font-size: 12px;
  font-weight: 700; gap: 4px; padding: 3px 8px 3px 6px; position: absolute; right: var(--card-out, 14px); transition: opacity .2s; z-index: 4;
}
.ct-pic__badge svg { height: 12px; width: 12px; }
.ct-pic.is-turning .ct-pic__badge { opacity: 0; }

/* Turntables stand on light, not on a plinth. */
.ct-ped__plinth { display: none; }
.ct-ped:not([data-kind="shot"]):not([data-kind="pending"]):not([data-kind="pano"]) .ct-ped__piece::before {
  background: radial-gradient(ellipse at 50% 50%, rgb(248 80 32 / .22), rgb(224 54 54 / .06) 46%, transparent 72%); bottom: -3%; content: ""; height: 18%; left: 14%; position: absolute; right: 14%; z-index: -1;
}
.ct-ped--stage:not(.is-shot) { background: radial-gradient(ellipse 58% 62% at 50% 46%, rgb(255 255 255 / .045), transparent 70%); }

/* Narrow cards (the filter column beside three cards on small laptops, two on phones). */
@container (max-width: 250px) {
  .ct-card > .ct-card__kind { font-size: 12px; padding-inline: 40px; }
  .ct-card > * { --card-in: 10px; --card-out: 8px; }
  .ct-card__blurb { font-size: 13px; }
  .ct-card__buy { padding-block: 26px 10px; }
  .ct-card:not(:has(> .ct-card__head)) > .ct-card__buy { padding-top: 13px; }
  .ct-card__buy .price { font-size: 15px; }
  .ct-pic__badge { font-size: 0; gap: 0; padding: 4px; }
  /* The chip is only its icon here (30 px with its margin), so the tag may come closer. */
  .ct-pic > .ct-card__kind { max-width: calc(100% - var(--card-in, 10px) - var(--card-out, 8px) - 30px); }
}
@media (max-width: 760px) {
  .ct-grid { gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-card > * { --card-in: 12px; --card-out: 10px; }
  .ct-card__blurb { font-size: 13.5px; }
  .ct-card__buy { padding-block: 26px 11px; }
  .ct-card:not(:has(> .ct-card__head)) > .ct-card__buy { padding-top: 14px; }
  .ct-card > .ct-card__kind { font-size: 12.5px; padding-inline: 44px; }
}
@media (max-width: 480px) {
  .ct-grid { gap: 16px; grid-template-columns: minmax(0, 1fr); }
  .ct-card > * { --card-in: 16px; --card-out: 14px; }
  .ct-card__blurb { font-size: 14.5px; }
  .ct-card__buy { padding-block: 30px 13px; }
  .ct-card:not(:has(> .ct-card__head)) > .ct-card__buy { padding-top: 16px; }
}

/* ---------- Store page: intro, rail, groups ---------- */
.ct-intro { margin-bottom: 30px; }
.ct-intro p { color: var(--wall); font-size: 17px; margin: 12px 0 0; max-width: 64ch; }

/* The toolbar (Dali, 11-04): Hide filters and Clear all head the filters' column, search and Sort
   by sit over the cards. With the filters hidden, Show filters stays at the left of the search. */
.ct-toolbar { align-items: center; display: grid; gap: 12px; grid-template-columns: calc(var(--rail-w) + clamp(28px, 3.5vw, 56px) - 12px) minmax(0, 1fr) auto; margin-bottom: 30px; }
.ct-toolbar__head { align-items: center; display: flex; gap: 8px; justify-content: space-between; margin-right: calc(clamp(28px, 3.5vw, 56px) - 12px); min-width: 0; }
.ct-toolbar__head .ct-filters-toggle { padding-inline: 16px; }
.ct-toolbar__clear { white-space: nowrap; }
.ct-toolbar__clear:disabled { cursor: default; opacity: .35; }
.ct-toolbar__clear:disabled:hover { color: #fff; }
body.ct-rail-hidden .ct-toolbar { grid-template-columns: auto minmax(0, 1fr) auto; }
body.ct-rail-hidden .ct-toolbar__head { margin-right: 0; }
body.ct-rail-hidden .ct-toolbar__clear { display: none; }
@media (min-width: 901px) { body:not(.ct-rail-hidden) .ct-results__bar [data-clear-inline] { display: none; } }
/* Filters hidden: four cards to a row instead of three (Dali, 11-04). */
@media (min-width: 1100px) { body.ct-rail-hidden .ct-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* The search field and Sort by have a set line height (19px, what Plus Jakarta Sans gives 15px
   text). With `normal` their height came from whichever face was ready when they were drawn:
   19px with the web font, 20px with the system face before it arrives. The browser does not
   measure a select again when the font comes in, so Sort by stayed 1px taller on a first visit
   than on a second, and everything under the toolbar sat 1px lower (found 2026-11-12).
   They have a set height too (line + padding + border: 45px and 47px): Safari does not take a
   line height under `normal` on a text field, so there the field alone was still 1px taller
   until the font came. */
.ct-search { flex: 1 1 auto; min-width: 0; position: relative; }
.ct-sort { align-items: center; background: rgb(255 255 255 / .04); border: 1px solid var(--hair-strong); border-radius: 6px; display: flex; flex: none; gap: 8px; padding: 0 0 0 14px; position: relative; }
.ct-sort:focus-within { border-color: #fff; }
.ct-sort__label { color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.ct-sort select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; border: 0; color: #fff; cursor: pointer; font: 700 15px/19px var(--font); height: 45px; padding: 13px 38px 13px 0; }
.ct-sort select:focus { outline: none; }
.ct-sort select option { background: var(--card); color: #fff; }
.ct-filters-toggle { flex: none; padding-block: 12px; }
.ct-filters-toggle svg { height: 18px; width: 18px; }
.ct-filters-toggle__n:not(:empty) { background: var(--ember); border-radius: 999px; color: #fff; font-size: 12px; line-height: 18px; min-width: 18px; padding: 0 5px; text-align: center; }
.ct-search svg { color: var(--muted); height: 20px; left: 14px; pointer-events: none; position: absolute; top: 50%; transform: translateY(-50%); width: 20px; }
.ct-search input {
  background: rgb(255 255 255 / .04); border: 1px solid var(--hair-strong); border-radius: 6px; color: #fff; font: 600 15px/19px var(--font);
  height: 47px; padding: 13px 14px 13px 44px; width: 100%;
}
.ct-search input::placeholder { color: #8b8b95; }
.ct-search input:focus { border-color: #fff; outline: none; }
.ct-search input:focus-visible { outline: 2px solid var(--flare); outline-offset: 2px; }

.ct-floor { align-items: start; display: grid; gap: clamp(28px, 3.5vw, 56px); grid-template-columns: var(--rail-w) minmax(0, 1fr); }
body.ct-rail-hidden .ct-floor { grid-template-columns: minmax(0, 1fr); }
body.ct-rail-hidden .ct-rail { display: none; }
.ct-rail { max-height: calc(100vh - 120px - var(--ct-bar-h, 0px)); overflow-y: auto; padding-right: 6px; position: sticky; scrollbar-width: thin; top: 100px; }
.ct-rail__top, .ct-rail__foot { display: none; }
.ct-rail fieldset { border: 0; margin: 0 0 26px; min-width: 0; padding: 0; }
.ct-rail legend { color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 6px; padding: 0; }
.ct-opt { align-items: center; color: #d6d6dc; cursor: pointer; display: grid; font-size: 14px; font-weight: 600; gap: 10px; grid-template-columns: 16px minmax(0, 1fr) auto; padding: 4px 0; }
.ct-opt:hover { color: #fff; }
.ct-opt input { accent-color: var(--ember); height: 16px; margin: 0; width: 16px; }
.ct-opt__n { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ct-opt.is-zero { opacity: .42; }

.ct-results { min-width: 0; }
.ct-results__bar { align-items: center; display: flex; gap: 14px; margin: -8px 0 22px; min-height: 30px; }
.ct-count { color: var(--muted); font-size: 14px; font-weight: 600; margin: 0; }
.ct-pstrip { align-items: center; background: rgb(255 255 255 / .03); border: 1px solid var(--hair); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin-bottom: 36px; padding: 14px 18px; }
.ct-pstrip p { color: var(--wall); font-size: 14.5px; margin: 0; max-width: 80ch; }
.ct-pstrip b { color: #fff; margin-right: 4px; }
.ct-pstrip__links { display: flex; gap: 18px; font-size: 14px; }
.ct-group + .ct-group { margin-top: 88px; }
.ct-ghead { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; margin-bottom: 30px; }
.ct-ghead h2 a { color: inherit; text-decoration: none; }
.ct-ghead h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ct-ghead p { color: var(--muted); font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.ct-bulk { align-items: flex-end; display: grid; gap: 6px; justify-items: end; }
.ct-bulk__acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ct-bulk__note { color: var(--muted); font-size: 13px; font-weight: 600; text-align: right; }
.ct-bulk__note b { color: #fff; }
.ct-bulk__note em { color: var(--lantern); font-style: normal; }
.ct-tier__note { color: var(--muted); font-size: 13px; font-weight: 600; }
.ct-empty { border: 1px dashed var(--hair-strong); border-radius: 12px; color: var(--wall); display: grid; gap: 14px; justify-items: start; padding: 28px; }
.ct-empty p { margin: 0; }
/* The ways on from the page for an address that is not there (site/shared/notfound.js): the
   site's own buttons in a row that wraps on a phone. */
.ct-empty__ways { display: flex; flex-wrap: wrap; gap: 10px 12px; list-style: none; margin: 4px 0 0; padding: 0; }

/* ---------- Downstairs: one turntable ---------- */
.ct-down { margin-top: 140px; padding-top: 72px; position: relative; }
.ct-down::before { /* the floor below: a faint ember glow where the stage stands */
  background: radial-gradient(ellipse 60% 70% at 40% 60%, rgb(224 54 54 / .07), transparent 70%); content: ""; inset: 0; pointer-events: none; position: absolute; z-index: -1;
}
.ct-down__head p, .ct-band__head p { color: var(--wall); font-size: 17px; margin: 12px 0 0; max-width: 60ch; }
.ct-down__main { align-items: center; display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); margin-top: 24px; }
.ct-ped--stage { --pw: 70%; --sink: -15%; }
.ct-ped--stage .ct-ped__piece { aspect-ratio: 16 / 9; }
.ct-ped--stage .ct-ped__plinth::before { box-shadow: 0 34px 80px -14px rgb(224 54 54 / .42), 0 10px 34px -6px rgb(248 80 32 / .25); }
.ct-ped--stage .ct-ped__plinth::after { box-shadow: inset 0 0 0 1px rgb(248 80 32 / .62), inset 0 -8px 18px rgb(248 80 32 / .22), 0 0 44px rgb(224 54 54 / .28); }
.ct-ped--stage[data-kind="model"], .ct-ped--stage[data-kind="structure"] { --pw: 46%; --sink: -13%; }
.ct-stage { cursor: grab; touch-action: pan-y; }
.ct-stage:active { cursor: grabbing; }
.ct-stage.is-opening { cursor: progress; } /* a click is opening the full-screen viewer */
/* Zoomed in (full screen, the wheel): the picture grows from its top left and stays in the stage. */
.ct-stage__img { transform-origin: 0 0; }
.ct-stage.is-zoomed { overflow: hidden; }
.ct-stage:focus-visible { border-radius: 8px; outline-offset: -2px; }
.ct-placard__kind { color: var(--muted); font-size: 14px; font-weight: 600; margin: 0; }
.ct-placard__kind a { color: var(--muted); }
.ct-placard__kind a:hover { color: #fff; }
.ct-placard h3 { color: #fff; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 6px 0 0; }
.ct-placard__blurb { color: var(--wall); font-size: 16px; margin: 12px 0 0; max-width: 42ch; }
.ct-placard__buy { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 22px 0 18px; }
.ct-placard__buy .price { font-size: 24px; }
.ct-placard__buy .ct-tierprice { gap: 8px 12px; }
.ct-placard__buy .ct-tierprice__or { font-size: 14px; }
.ct-down__row { display: flex; gap: 10px; justify-content: center; margin-top: 36px; overflow-x: auto; padding: 4px 4px 10px; scrollbar-width: thin; }
.ct-pick { background: none; border: 0; border-radius: 10px; color: var(--muted); cursor: pointer; display: grid; flex: 0 0 132px; font: 600 12.5px/1.3 var(--font); gap: 8px; justify-items: center; padding: 8px 6px; text-align: center; }
.ct-pick:hover { color: #fff; }
.ct-pick[aria-pressed="true"] { color: #fff; }
.ct-pick[aria-pressed="true"] .ct-ped__plinth::after { box-shadow: inset 0 0 0 1.5px var(--flare), 0 0 18px rgb(224 54 54 / .35); }
.ct-pick .ct-ped { width: 100%; }

/* ---------- Membership band: the last section ---------- */
.ct-band { border-top: 1px solid var(--hair); margin-top: 120px; padding-top: 64px; }
.ct-tiers { display: grid; gap: var(--col-gap); grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
.ct-tier { align-items: start; background: linear-gradient(180deg, #111117 0%, #0c0c11 100%); border: 1px solid rgb(255 255 255 / .07); border-radius: 10px; display: flex; flex-direction: column; padding: 26px 26px 28px; }
.ct-tier.is-mine { border-color: rgb(248 80 32 / .55); }
.ct-tier.is-lead:not(.is-mine) { border-color: rgb(255 255 255 / .3); }
.ct-tier h3 { color: #fff; font-size: 21px; font-weight: 800; margin: 0; }
.ct-tier__price { color: var(--muted); font-weight: 600; margin: 8px 0 0; }
.ct-tier__price .price { color: #fff; font-size: 30px; margin-right: 4px; }
.ct-tier__unlocks { color: #fff; font-weight: 700; margin: 14px 0 0; }
.ct-tier ul { color: var(--wall); font-size: 14.5px; margin: 8px 0 22px; padding-left: 18px; }
.ct-tier ul li + li { margin-top: 4px; }
.ct-tier > :last-child { margin-top: auto; }

/* ---------- The tray: the cart along the bottom ---------- */
.ct-tray { background: rgb(17 17 23 / .97); border-top: 1px solid var(--hair-strong); bottom: 0; box-shadow: 0 -18px 50px rgb(0 0 0 / .55); left: 0; position: fixed; right: 0; z-index: 900; }
@supports (backdrop-filter: blur(4px)) { .ct-tray { backdrop-filter: blur(12px); background: rgb(17 17 23 / .93); } }
.ct-tray[hidden] { display: none; }
.ct-tray__bar { align-items: center; display: grid; gap: 22px; grid-template-columns: auto auto minmax(0, 1fr) auto auto auto; margin: 0 auto; max-width: 1440px; padding: 11px clamp(16px, 2.5vw, 36px); }
/* Check out: the bar's one red button, bigger than the rest, near the far right with the total
   and some room before them (Dali, 11-04). The secure-checkout line and the payment marks stay
   beside it: Dali took them out as "way too busy", MagmaGuy put them back the same day until
   Dali finds a better way to show them. When the page's content already shows a red button (the item
   page's Add to cart, a Check out marked .ct-go) or the "Added" popover offers Check out, this
   one steps back to an outline, so a view never has two. A page marks a box that has scrolled
   out of view .is-away (item.js), which gives the bar its red back. */
.ct-tray__go { font-size: 16px; padding: 14px 24px; }
.ct-tray__go svg { height: 1em; width: 1em; }
body:has(.ct-main .ct-add.btn--primary:not(.is-in):not(.is-away *), .ct-main .btn--primary.ct-go:not(.is-away *), .ct-pop.is-on .ct-pop__go) .ct-tray__go { background: transparent; border-color: #fff; }
body:has(.ct-main .ct-add.btn--primary:not(.is-in):not(.is-away *), .ct-main .btn--primary.ct-go:not(.is-away *), .ct-pop.is-on .ct-pop__go) .ct-tray__go:hover { background: rgb(255 255 255 / .08); }
.ct-trust--compact { gap: 5px; justify-items: start; text-align: left; }
.ct-trust--compact .ct-trust__lock { font-size: 12.5px; gap: 5px; justify-content: flex-start; white-space: nowrap; }
.ct-trust--compact .ct-trust__lock > svg { height: 14px; width: 14px; }
.ct-trust--compact .ct-logo--stripe { height: 16px; width: 16px; }
.ct-trust--compact .ct-logo--stripe svg { height: 11px; width: 11px; }
.ct-trust--compact .ct-trust__marks { gap: 4px; justify-content: flex-start; }
.ct-trust--compact .ct-trust__marks .ct-logo { border-radius: 3px; height: 17px; width: 26px; }
.ct-trust--compact .ct-trust__marks .ct-logo svg { height: 14px; width: 14px; }
/* Up to 1420px wide the payment marks leave the bar and the secure-checkout line moves under
   Check out, so the discount message keeps its room. */
@media (max-width: 1420px) { .ct-tray .ct-trust__marks { display: none; } }
@media (min-width: 1101px) and (max-width: 1420px) {
  .ct-tray__bar { grid-template-columns: auto auto minmax(0, 1fr) auto auto; row-gap: 5px; }
  .ct-tray .ct-trust--compact { grid-column: 5; grid-row: 2; justify-self: center; }
}
.ct-tray__toggle { align-items: center; background: none; border: 0; border-radius: 8px; color: #fff; cursor: pointer; display: grid; font: inherit; gap: 0 8px; grid-template-columns: auto auto; padding: 4px 6px; text-align: left; }
.ct-tray__toggle:hover { background: rgb(255 255 255 / .06); }
.ct-tray__title { font-size: 15px; font-weight: 800; }
.ct-tray__count { color: var(--muted); font-size: 12.5px; font-weight: 600; grid-column: 1; }
.ct-tray__toggle svg { grid-column: 2; grid-row: 1 / span 2; height: 18px; transition: transform .2s; width: 18px; }
.ct-tray__msg { color: #e4e4ea; font-size: 14px; font-weight: 600; line-height: 1.35; margin: 0; max-width: 60ch; min-width: 0; }
.ct-tray__msg b { color: #fff; }
.ct-tray__msg .ct-off { color: var(--lantern); white-space: nowrap; }
.ct-tray__sum { align-items: baseline; display: flex; gap: 8px; margin-left: clamp(16px, 3vw, 48px); white-space: nowrap; }
.ct-tray__sum s { color: var(--muted); font-size: 14px; font-weight: 600; }
.ct-tray__sum .price { font-size: 22px; }

/* Ten slots in three groups; each group ends at a discount mark. */
.ct-slots { align-items: flex-start; display: flex; gap: 10px; }
.ct-slots__group { display: grid; gap: 4px; }
.ct-slots__cells { display: flex; gap: 4px; }
.ct-slot { background: transparent; border: 1px dashed rgb(255 255 255 / .2); border-radius: 4px; flex: 0 0 auto; height: 29px; overflow: hidden; padding: 0; position: relative; width: 42px; }
.ct-slot.is-filled { background: #110c0a; border: 1px solid rgb(255 255 255 / .26); }
button.ct-slot.is-filled { cursor: pointer; }
.ct-slot img { height: 100%; object-fit: cover; width: 100%; }
.ct-slot img.is-render, .ct-line img.is-render { object-fit: contain; padding: 1px; }
/* The remove mark only on slots you can press (the tray); the cart page's meter is a picture. */
button.ct-slot.is-filled::after { align-items: center; background: rgb(0 0 0 / .7); color: #fff; content: "×"; display: flex; font-size: 18px; font-weight: 800; inset: 0; justify-content: center; opacity: 0; position: absolute; transition: opacity .12s; }
button.ct-slot.is-filled:hover::after, button.ct-slot.is-filled:focus-visible::after { opacity: 1; }
.ct-slots__mark { color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1; text-align: right; white-space: nowrap; }
.ct-slots__group.is-lit .ct-slot.is-filled { border-color: var(--lantern); }
.ct-slots__group.is-lit .ct-slots__mark { color: var(--lantern); }
.ct-slots__extra { display: flex; gap: 4px; }
.ct-slots__pill { align-items: center; border: 1px solid var(--hair-strong); border-radius: 4px; color: #fff; display: inline-flex; font-size: 12px; font-weight: 800; height: 29px; justify-content: center; min-width: 38px; padding: 0 7px; white-space: nowrap; }
.ct-slots__pill.is-free { color: var(--muted); }

.ct-lines { display: grid; gap: 2px 32px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); list-style: none; margin: 0; padding: 0; }
.ct-line { align-items: center; border-bottom: 1px solid rgb(255 255 255 / .06); display: grid; gap: 12px; grid-template-columns: 60px minmax(0, 1fr) auto 32px; padding: 7px 0; }
.ct-line__img { aspect-ratio: 16 / 10; background: #110c0a; border-radius: 4px; display: block; overflow: hidden; width: 60px; }
.ct-line__img img { height: 100%; object-fit: cover; width: 100%; }
.ct-line__name { min-width: 0; }
.ct-line a { color: #fff; display: block; font-size: 14px; font-weight: 700; line-height: 1.25; text-decoration: none; }
.ct-line a:hover { text-decoration: underline; }
.ct-line small { color: var(--muted); font-size: 12.5px; }
.ct-line .price { font-size: 14px; }
.ct-x { align-items: center; background: none; border: 0; border-radius: 4px; color: var(--muted); cursor: pointer; display: inline-flex; height: 32px; justify-content: center; padding: 0; width: 32px; }
.ct-x svg { height: 16px; width: 16px; }
.ct-x:hover { background: rgb(255 255 255 / .07); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .ct-tray__bar { gap: 16px; }
  .ct-slot { height: 24px; width: 34px; }
  .ct-slots__pill { height: 24px; min-width: 32px; }
  .ct-slots { gap: 8px; }
  .ct-slots__cells { gap: 3px; }
  .ct-tray__msg { font-size: 13px; }
}

@media (max-width: 900px) {
  .ct-toolbar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ct-toolbar__head { margin-right: 0; }
  .ct-toolbar__clear { display: none; }
  .ct-floor { grid-template-columns: minmax(0, 1fr); }
  .ct-rail {
    background: var(--surface); border-right: 1px solid var(--hair-strong); bottom: 0; box-shadow: var(--shadow-lift); display: flex; flex-direction: column; left: 0;
    max-height: none; overflow: hidden; padding: 0; position: fixed; top: 0; transform: translateX(-105%); transition: transform .22s, visibility .22s; visibility: hidden; width: min(360px, 90vw); z-index: 10050;
  }
  /* Opening, only the slide is a transition: the sheet is visible at once, so the focus can go
     into it (catalogue.js setSheet; audit-a11y-2). Closing, visibility still waits for the slide. */
  body.ct-filters-open .ct-rail { transform: none; transition: transform .22s; visibility: visible; }
  body.ct-filters-open::after { background: rgb(0 0 0 / .6); content: ""; inset: 0; position: fixed; z-index: 10040; }
  .ct-rail__top { align-items: center; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; padding: 14px 18px; }
  .ct-rail__top h2 { font-size: 18px; margin: 0; }
  .ct-rail__body { flex: 1; overflow-y: auto; padding: 18px; }
  .ct-rail__foot { align-items: center; border-top: 1px solid var(--hair); display: flex; gap: 10px; justify-content: space-between; padding: 12px 18px; }
  .ct-rail__foot .btn--primary { flex: 1; }
  .ct-opt { padding: 7px 0; }
  .ct-down__main { grid-template-columns: minmax(0, 1fr); }
  .ct-down__row { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .ct-tiers { grid-template-columns: minmax(0, 1fr); }
  .ct-down { margin-top: 96px; padding-top: 40px; }
  .ct-band { margin-top: 88px; }
}

/* Tablets and phones: the tray stacks (cart and total, then the discount bar, then the message
   and Check out), so the bar never runs wider than the screen. */
@media (max-width: 1100px) {
  .ct-tray__bar { gap: 8px 12px; grid-template-columns: minmax(0, 1fr) auto; padding: 9px 14px 10px; }
  .ct-tray__toggle { grid-column: 1; grid-row: 1; justify-self: start; }
  .ct-tray__sum { grid-column: 2; grid-row: 1; justify-self: end; margin-left: 0; }
  .ct-tray__sum .price { font-size: 19px; }
  .ct-tray__bar > .ct-slots { grid-column: 1 / -1; grid-row: 2; }
  .ct-tray__msg { font-size: 13px; grid-column: 1; grid-row: 3; }
  .ct-tray__go { grid-column: 2; grid-row: 3; padding: 11px 16px; }
  .ct-tray .ct-slots { gap: 6px; width: 100%; }
  .ct-tray .ct-slots__group { flex: 3 1 0; min-width: 0; }
  .ct-tray .ct-slots__group:nth-child(3) { flex-grow: 4; }
  .ct-tray .ct-slots__cells { gap: 2px; }
  .ct-tray .ct-slot { border-radius: 2px; flex: 1 1 0; height: 8px; width: auto; }
  .ct-tray .ct-slot img { display: none; }
  .ct-tray .ct-slot.is-filled { background: rgb(255 255 255 / .8); border-color: rgb(255 255 255 / .8); }
  .ct-tray .ct-slots__group.is-lit .ct-slot.is-filled { background: var(--lantern); border-color: var(--lantern); }
  .ct-tray .ct-slot.is-filled::after { display: none; }
  .ct-tray .ct-slots__extra { display: none; }
  .ct-tray .ct-slots__mark { font-size: 12px; }
  .ct-tray .ct-trust--compact { grid-column: 1 / -1; grid-row: 4; justify-self: end; margin-top: -2px; }
  /* Without the discount (NB.directCheckout false) the slots are only pictures, too small to
     read as bars here. */
  .ct-tray .ct-slots--plain { display: none; }
}
/* Phones: one row about 56px tall with the cart and its count, the total and Check out, and
   nothing else (Dali, 11-10). The stack above was 154px on a 390 x 844 screen. The discount
   slots, the message, the secure-checkout line and the payment marks stay in the side cart,
   which the bar still opens, and on the cart page. The row grows by the bottom safe-area inset;
   core.js measures it (--ct-bar-h, --tray-h), so the page's bottom padding and the embers'
   pause button follow. */
@media (max-width: 640px) {
  .ct-tray__bar { gap: 8px; grid-template-columns: minmax(0, 1fr) auto auto; min-height: calc(56px + env(safe-area-inset-bottom, 0px)); padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px)); }
  /* When a long language or a big total fills the row, the label's arrow gives way first (it
     gets what the words leave), then the words end in an ellipsis. Measured at 390px in the nine
     languages with a $9.99 total: no label is cut. */
  .ct-tray__toggle { align-self: stretch; column-gap: 6px; grid-template-columns: auto minmax(0, 1fr); line-height: 1.25; max-width: 100%; min-width: 0; padding: 2px; }
  .ct-tray__title, .ct-tray__count { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ct-tray__title { font-size: 14px; }
  .ct-tray__count { font-size: 12px; }
  .ct-tray .ct-tray__toggle svg { height: 14px; max-width: 100%; min-width: 0; width: 14px; }
  .ct-tray__go { font-size: 15px; grid-column: 3; grid-row: 1; padding: 10px 12px; white-space: nowrap; }
  .ct-tray__bar > .ct-slots, .ct-tray__msg, .ct-tray .ct-trust--compact { display: none; }
}
@media (max-width: 640px) {
  .ct-main { padding-top: 28px; }
  /* The filters become a sheet from the bottom. */
  .ct-rail { border-radius: 16px 16px 0 0; border-right: 0; border-top: 1px solid var(--hair-strong); max-height: 86vh; top: auto; transform: translateY(105%); width: 100%; }
  .ct-ghead { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
  .ct-bulk { justify-items: start; }
  .ct-bulk__note { text-align: left; }
  .ct-bulk__acts { justify-content: flex-start; }
  .ct-group + .ct-group { margin-top: 64px; }
  .ct-pick { flex-basis: 108px; }

  .ct-lines { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .ct-ped__img, .ct-shot { animation: none; }
}

/* ---------- Item page: Dali's layout ---------- */
/* Rows of a wide left column and a boxed right column; each box stretches to its row. */
.ct-irow { align-items: stretch; display: grid; gap: clamp(20px, 2.4vw, 32px); grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr); }
.ct-irow.is-single { grid-template-columns: minmax(0, 1fr); }
.ct-box { background: #0e0f15; border: 1px solid rgb(255 255 255 / .08); border-radius: 14px; min-width: 0; padding: clamp(20px, 2.2vw, 30px); }
.ct-box__title { color: #fff; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 14px; }

/* 1. Render, with the reel of the other pieces | the buy box */
/* The grid stretches it to the row. No min-height: 100%: Safari resolves it against the row's
   previous height, so a row that ever grew (a wider window, content that came and went) never
   shrank back and left a band under the reel (Dali, 11-04, Safari). */
.ct-render { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ct-render__stage { position: relative; width: 100%; }
.ct-render .ct-ped--item { width: 100%; }
.ct-ped--item .ct-ped__piece { aspect-ratio: 16 / 10; }
.ct-ped--item.is-shot { aspect-ratio: 16 / 10; display: block; width: 100%; }
.ct-render__shot { border: 0; border-radius: 14px; cursor: zoom-in; display: block; height: 100%; overflow: hidden; padding: 0; position: relative; width: 100%; }
.ct-render__shot[disabled] { cursor: default; }
.ct-render__shot img { height: 100%; object-fit: cover; width: 100%; }
.ct-render__shot::after { background: linear-gradient(0deg, rgb(0 0 0 / .35), transparent 30%); content: ""; inset: 0; position: absolute; }
/* The name of what's on the turntable, on the picture like the cards. */
.ct-render__name { display: grid; gap: 1px; left: 0; margin: 0; pointer-events: none; position: absolute; text-shadow: 0 1px 10px rgb(0 0 0 / .9); top: 0; z-index: 3; }
.ct-render__name[hidden] { display: none; }
.ct-render__name b { color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.ct-render__name span { color: var(--muted); font-size: 13px; font-weight: 600; }
/* How to turn it, in the bottom-right corner: it moves only while clicked and dragged. */
.ct-render__mark {
  align-items: center; background: rgb(8 8 12 / .74); border: 1px solid rgb(255 255 255 / .16); border-radius: 999px; bottom: 12px; color: #fff; display: inline-flex;
  font-size: 13px; font-weight: 700; gap: 6px; margin: 0; padding: 5px 12px 5px 9px; pointer-events: none; position: absolute; right: 12px; z-index: 3;
}
.ct-render__mark[hidden] { display: none; }
.ct-render__mark svg { flex: none; height: 15px; width: 15px; }
.ct-render__mark-touch { display: none; }
@media (hover: none) {
  .ct-render__mark-mouse { display: none; }
  .ct-render__mark-touch { display: inline; }
}
.ct-render__note { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 14px; font-weight: 600; gap: 10px 16px; justify-content: center; margin: 16px 0 0; min-height: 36px; text-align: center; }
.ct-render__note:empty { display: none; }
/* The 360° views rendered from the map files have no bosses in them: a yellow warning badge says
   so under the name while one is on the stage, and a small one marks their tiles in the reel.
   Views taken in the game (data-game) have the boss and skip the warning. */
.ct-render__name .ct-warn {
  align-items: center; background: #ffd23f; border-radius: 7px; box-shadow: 0 3px 14px rgb(0 0 0 / .5); color: #1d1600; display: inline-flex; font-size: 14px;
  font-weight: 800; gap: 8px; justify-self: start; line-height: 1.2; margin-top: 8px; padding: 4px 12px 4px 4px; text-shadow: none;
}
/* The sign sits on a dark chip: the emoji is yellow too and would vanish into the badge. */
.ct-render__name .ct-warn > span, .ct-reel__warn > span { background: #1d1600; display: inline-grid; line-height: 1; place-items: center; }
.ct-render__name .ct-warn > span { border-radius: 5px; color: inherit; font-size: 16px; height: 26px; width: 26px; }
/* Full screen, top-right of the stage. */
.ct-render__full {
  align-items: center; background: rgb(8 8 12 / .74); border: 1px solid rgb(255 255 255 / .16); border-radius: 50%; color: #fff; cursor: pointer; display: inline-flex;
  height: 40px; justify-content: center; padding: 0; position: absolute; right: 12px; top: 12px; transition: background .15s, border-color .15s; width: 40px; z-index: 3;
}
.ct-render__full[hidden] { display: none; }
.ct-render__full svg { height: 18px; width: 18px; }
.ct-render__full:hover { background: rgb(22 22 30 / .92); border-color: rgb(255 255 255 / .42); }
.ct-render__full:focus-visible { outline: 2px solid var(--flare); outline-offset: 2px; }
/* A 360° view on the stage (core.js Pano). */
.ct-ped--item[data-kind="pano"] .ct-ped__piece { background: #0b0a0c; border-radius: 14px; overflow: hidden; }
.ct-pano { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ct-pano.is-grabbing { cursor: grabbing; }
.ct-pano:focus-visible { outline: 2px solid var(--flare); outline-offset: -2px; }
.ct-pano__canvas { display: block; height: 100%; inset: 0; position: absolute; width: 100%; }
.ct-pano__flat { background-repeat: repeat-x; background-size: auto 100%; inset: 0; position: absolute; }
.ct-pano__status { color: var(--muted); font-size: 14px; font-weight: 600; left: 0; margin: 0; position: absolute; right: 0; text-align: center; top: 50%; transform: translateY(-50%); }
.ct-render__stage:has(.ct-ped--item[data-kind="pano"]) .ct-render__name { left: 18px; top: 14px; }
/* Models stand on the clips' flat #111319, as on the model cards, so the idle clip shows no box. */
.ct-ped--item[data-kind="model"] .ct-stage { background: #111319; border-radius: 14px; }
.ct-render__stage:has(.ct-ped--item[data-kind="model"]) .ct-render__name { left: 18px; top: 14px; }
/* A picture on the stage with a name (item.js, a piece of kind 'shot': an item's variants). The
   name sits on the picture as on a model's stage, and the picture is shaded under it. The
   screenshot of an item without a render has no name and keeps its look. */
.ct-render.is-pictures .ct-render__name { left: 18px; top: 14px; }
.ct-render.is-pictures .ct-render__name span { color: #fff; }
.ct-render.is-pictures .ct-render__shot::after { background: linear-gradient(180deg, rgb(0 0 0 / .62), transparent 34%), linear-gradient(0deg, rgb(0 0 0 / .35), transparent 30%); }
.ct-stage__clip { height: 100%; inset: 0; object-fit: contain; object-position: 50% 100%; opacity: 0; pointer-events: none; position: absolute; transition: opacity .25s; width: 100%; z-index: 2; }
.ct-stage.is-clip::before { opacity: 0; }
.ct-stage.is-clip .ct-stage__clip { opacity: 1; }
/* A model's animations (item.js): one small button per clip in the stage's bottom-left corner,
   clear of the name (top left), full screen (top right) and the "drag to rotate" mark (bottom
   right). The one that is playing is filled. 32px tall with a mouse, 44px for a finger. */
.ct-render__clips { bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; left: 12px; max-width: calc(100% - 24px); position: absolute; z-index: 3; }
.ct-render__clips[hidden] { display: none; }
.ct-clipbtn {
  background: rgb(8 8 12 / .74); border: 1px solid rgb(255 255 255 / .16); border-radius: 999px; color: #fff; cursor: pointer; font: 700 13px/1.2 var(--font);
  min-height: 32px; min-width: 44px; padding: 5px 13px; transition: background .15s, border-color .15s, color .15s;
}
.ct-clipbtn:hover { background: rgb(22 22 30 / .92); border-color: rgb(255 255 255 / .42); }
.ct-clipbtn:focus-visible { outline: 2px solid var(--flare); outline-offset: 2px; }
.ct-clipbtn[aria-pressed="true"] { background: #fff; border-color: #fff; color: #0b0b10; }
@media (pointer: coarse), (max-width: 640px) { .ct-clipbtn { min-height: 44px; padding-inline: 14px; } }
/* On a phone the stage is about 360 x 225: the row goes under it, so it covers nothing, and the
   mark stays in the picture's corner (item.js measures the row, --clips-h). In full screen there
   is room under the model: the row sits above the mark. */
@media (max-width: 640px) {
  .ct-render:not(.is-full) .ct-render__clips { margin-top: 8px; max-width: none; position: static; }
  .ct-render:not(.is-full) .ct-render__stage:has(.ct-render__clips:not([hidden])) .ct-render__mark { bottom: calc(20px + var(--clips-h, 44px)); }
  .ct-render.is-full .ct-render__clips { bottom: 52px; }
}

/* Full screen (item.js enterFull): the same stage and reel fill the screen, the stage as big as
   it fits. In the browser's full screen, or as a fixed layer where that isn't available. */
html.ct-full-open { overflow: hidden; }
.ct-render.is-full {
  background: radial-gradient(ellipse 70% 62% at 50% 42%, #16131a 0%, #07070a 76%); box-sizing: border-box; display: flex; flex-direction: column; gap: 10px;
  height: 100%; inset: 0; justify-content: flex-start; margin: 0; min-height: 0; padding: 14px 18px 10px; position: fixed; width: 100%; z-index: 10080;
}
.ct-render.is-full .ct-render__stage { display: flex; flex: 1 1 0; min-height: 0; }
.ct-render.is-full .ct-ped--item { flex: 1 1 auto; height: 100%; width: 100%; }
.ct-render.is-full .ct-ped--item .ct-ped__piece { aspect-ratio: auto; flex: 1 1 0; min-height: 0; }
.ct-render.is-full .ct-stage__img, .ct-render.is-full .ct-stage__clip { object-position: 50% 50%; }
.ct-render.is-full .ct-reel { flex: none; margin-top: 0; }
.ct-render.is-full .ct-render__note { display: none; }
.ct-render.is-full .ct-pano { touch-action: none; }
.ct-render.is-full .ct-render__full { right: 14px; top: 14px; }

/* The reel: every other piece, drifting slowly; models play their clips in turn. */
.ct-reel { margin-top: 10px; position: relative; }
.ct-reel[hidden] { display: none; }
/* --fade is the width of the fade at each edge of a drifting row. driftRow (core.js) reads it
   to keep a tile with keyboard focus clear of the fade. */
.ct-reel__view { --fade: 64px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.ct-reel__view::-webkit-scrollbar { display: none; }
.ct-reel.is-loop .ct-reel__view {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.ct-reel__track { display: flex; margin-inline: auto; width: max-content; }
.ct-reel__set { display: flex; gap: 12px; list-style: none; margin: 0; padding: 4px 0 6px; }
.ct-reel.is-loop .ct-reel__set { padding-right: 12px; }
.ct-reel__set > li { flex: none; width: 140px; }
.ct-reel__tile { background: none; border: 0; color: var(--muted); cursor: pointer; display: grid; font: inherit; gap: 7px; padding: 0; text-align: left; width: 100%; }
.ct-reel__pic {
  aspect-ratio: 16 / 10; background: radial-gradient(ellipse 75% 70% at 50% 42%, #1e161a 0%, #0c0b10 72%); border: 1px solid rgb(255 255 255 / .07);
  border-radius: 8px; display: block; overflow: hidden; position: relative; transition: border-color .2s;
}
.ct-reel__tile[data-kind="model"] .ct-reel__pic { background: #111319; }
.ct-reel__pic img, .ct-reel__clip { height: 100%; inset: 0; object-fit: contain; position: absolute; width: 100%; }
.ct-reel__pic img { padding: 4%; }
.ct-reel__tile[data-kind="model"] .ct-reel__pic img { padding: 0; }
.ct-reel__tile[data-kind="pano"] .ct-reel__pic img { object-fit: cover; padding: 0; }
.ct-reel__warn {
  align-items: center; background: #ffd23f; border-radius: 5px; box-shadow: 0 2px 8px rgb(0 0 0 / .5); color: #1d1600; display: none; font-size: 12px; font-weight: 800;
  gap: 5px; left: 6px; line-height: 1; padding: 2px 7px 2px 2px; position: absolute; top: 6px; z-index: 2;
}
.ct-reel__tile[data-kind="pano"] .ct-reel__warn { display: inline-flex; }
.ct-reel__warn > span { border-radius: 4px; font-size: 12px; height: 18px; width: 18px;
}
/* A view taken in the game has the boss in it: a plain 360° mark, no warning. */
.ct-reel__tile[data-game] .ct-reel__warn { background: rgb(17 19 26 / .85); color: #fff; padding: 3px 7px; }
.ct-reel__tile[data-game] .ct-reel__warn > span { display: none; }
.ct-reel__clip { opacity: 0; transition: opacity .3s; }
.ct-reel__tile.is-clip .ct-reel__clip { opacity: 1; }
.ct-reel__name { font-size: 12.5px; font-weight: 600; line-height: 1.3; overflow: hidden; padding: 0 2px; text-overflow: ellipsis; white-space: nowrap; }
.ct-reel__tile:hover .ct-reel__pic { border-color: rgb(248 80 32 / .6); }
.ct-reel__tile:hover .ct-reel__name { color: #fff; }
.ct-reel__tile:focus-visible { outline: none; }
.ct-reel__tile:focus-visible .ct-reel__pic { border-color: var(--flare); box-shadow: 0 0 0 2px var(--flare); }
.ct-reel__tile:focus-visible .ct-reel__name { color: #fff; }
.ct-reel__arrow { position: absolute; top: calc(4px + 140px * 5 / 16); transform: translateY(-50%); z-index: 2; }
.ct-reel__arrow:not(.is-next) { left: 0; }
.ct-reel__arrow.is-next { right: 0; }
/* What a reel can do beyond a render's pieces (item.js, mountReel). Each is off unless the
   item asks: a turntable's reel has none of these and is as it was.
   A picture piece fills its tile, as a 360° view's does. */
.ct-reel__tile[data-kind="shot"] .ct-reel__pic img { object-fit: cover; padding: 0; }
/* Tiles that stay: the one on the stage is marked. */
.ct-reel__tile[aria-pressed="true"] .ct-reel__pic { border-color: var(--flare); box-shadow: inset 0 0 0 1px var(--flare); }
.ct-reel__tile[aria-pressed="true"] .ct-reel__name { color: #fff; }
/* A word under a tile's name: "Rare". Gold, the colour of a note about a thing. */
.ct-reel__mark { color: var(--gold); display: block; font-size: 11.5px; font-weight: 700; line-height: 1.2; margin-top: -5px; overflow: hidden; padding: 0 2px; text-overflow: ellipsis; white-space: nowrap; }
/* A line over each group of tiles, in the cell of the group's first tile, so every cell stays
   one tile wide and the row drifts as ever. It may be as wide as the group's tiles (--n, set by
   item.js). The word wears the group's colour: red for free, orange for paid. A hair line parts
   a group from the one before. */
.ct-reel.has-groups .ct-reel__set { padding-top: 32px; }
.ct-reel.has-groups .ct-reel__arrow { top: calc(32px + 140px * 5 / 16); }
.ct-reel__set > li.is-group-start { position: relative; }
.ct-reel__group { align-items: center; color: var(--muted); display: flex; font-size: 12.5px; font-weight: 600; gap: 7px; left: 0; line-height: 1; max-width: calc(var(--n, 1) * 152px - 12px); position: absolute; top: -27px; white-space: nowrap; }
.ct-reel__group b { background: rgb(255 255 255 / .14); border-radius: 4px; color: #fff; flex: none; font: 800 12px/1 var(--font); padding: 4px 8px; }
.ct-reel__group[data-tone="free"] b { background: var(--ember); }
.ct-reel__group[data-tone="paid"] b { background: var(--flare-fill); }
.ct-reel__group > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ct-reel__set > li.is-group-start:not(:first-child)::before, .ct-reel.is-loop .ct-reel__set > li.is-group-start::before { background: rgb(255 255 255 / .14); bottom: 0; content: ""; left: -6.5px; position: absolute; top: -27px; width: 1px; }

/* Round arrow buttons, shared by the reel and the screenshots. */
.ct-arrow { align-items: center; background: rgb(13 15 21 / .88); border: 1px solid var(--hair-strong); border-radius: 50%; color: #fff; cursor: pointer; display: inline-flex; flex: none; height: 38px; justify-content: center; padding: 0; transition: border-color .15s, background .15s; width: 38px; }
.ct-arrow[hidden] { display: none; }
.ct-arrow svg { height: 18px; width: 18px; }
.ct-arrow.is-next svg { transform: scaleX(-1); }
.ct-arrow:hover { background: rgb(30 32 40 / .95); border-color: rgb(255 255 255 / .6); }
.ct-arrow:focus-visible { outline: 2px solid var(--flare); outline-offset: 2px; }

/* The buy box: buy once or a membership, then where else it's sold. One filled button. */
.ct-info { display: flex; flex-direction: column; }
.ct-info__kind { color: var(--muted); font-size: 14px; font-weight: 600; margin: 0; }
/* "Uses EliteMobs, FreeMinecraftModels, RSPM" (item.js, usesTags; Dali, 11-12): a line of its
   own under the top line, one step smaller (Dali: "should be in smaller font size"). The words
   are 12 px against the top line's 14, a tag's name 12 px against 13 and its icon 14 px against
   16, so a tag is 20 px tall against 24. Nothing is under 12 px. A tag that is a link keeps the
   24 px a finger gets on the top line: its hit area reaches 2 px above and below what shows.
   The tags' 3 px margins put two rows of tags 26 px apart, so their hit areas never meet. */
.ct-info__uses { font-size: 12px; margin-top: 4px; }
.ct-info__uses .ct-ptag { font-size: 12px; gap: 4px; margin-block: 3px; padding: 2px 7px 2px 5px; position: relative; }
.ct-info__uses .ct-ptag__icon { height: 14px; width: 14px; }
.ct-info__uses a.ct-ptag::after { content: ""; inset: -3px 0; position: absolute; }
/* The plugin tag (item.js, pluginTag; Dali, 11-12): the plugin's name in "Dungeon for EliteMobs"
   as a small tag in the plugin's colour, with its icon.
   MagmaGuy (11-12): "give the tags a color pallete that better fits our 'burnt glow'". Each
   plugin keeps its hue family (Dali named red, yellow, green and cyan), pulled into the site's
   world: warmer, deeper, less saturated. One line per plugin: the deep burnt fill, the words on
   it (-ink) and the hue as light on the dark page (-lit). White on every fill is 4.6 to 1 or
   more. The lit tone on the glow look's own fill is 5.6 to 1 or more, 5 to 1 under the pointer.
   The look is the glow: a near-black fill tinted with the hue, a 1 px border, the words and
   the icon in the lit tone, and a soft glow of it round the tag, so the colour reads as light,
   not paint. A second look, the deep fill with white words, was tried beside it on 11-12 and
   dropped. The deep fill and its -ink tone stay in the palette; no rule uses them today. */
:root {
  --plugin-elitemobs: #bd2f27;           --plugin-elitemobs-ink: #fff;           --plugin-elitemobs-lit: #f26a6c;             /* ember red */
  --plugin-freeminecraftmodels: #a06a08; --plugin-freeminecraftmodels-ink: #fff; --plugin-freeminecraftmodels-lit: #e9ae45;   /* amber */
  --plugin-betterstructures: #587a2c;    --plugin-betterstructures-ink: #fff;    --plugin-betterstructures-lit: #a5bf63;      /* moss */
  --plugin-eternaltd: #1d7b76;           --plugin-eternaltd-ink: #fff;           --plugin-eternaltd-lit: #58bdb4;             /* deep teal */
  --plugin-resurrectionchest: #81508c;   --plugin-resurrectionchest-ink: #fff;   --plugin-resurrectionchest-lit: #d09fe0;     /* dusty plum */
  --plugin-cannonrtp: #4766a8;           --plugin-cannonrtp-ink: #fff;           --plugin-cannonrtp-lit: #7f9bdc;             /* slate blue */
  --plugin-resourcepackmanager: #70675e; --plugin-resourcepackmanager-ink: #fff; --plugin-resourcepackmanager-lit: #cdc3b6;   /* warm ash */
  --plugin-betterfood: #a4574b;          --plugin-betterfood-ink: #fff;          --plugin-betterfood-lit: #e2a08c;            /* copper rose */
  /* Not one of ours: LibsDisguises, which some packs use for their bosses' looks. */
  --plugin-libsdisguises: #5d52a3;       --plugin-libsdisguises-ink: #fff;       --plugin-libsdisguises-lit: #a9a0ee;         /* dusk violet */
}
/* A plugin with no colour yet: grey. */
.ct-ptag {
  --ptag: #4d5160; --ptag-ink: #fff; --ptag-lit: #c9ccd6;
  align-items: center; border: 1px solid; border-radius: 4px; display: inline-flex; font: 700 13px/1 var(--font); gap: 5px; margin-block: 2px; padding: 3px 8px 3px 6px;
  text-decoration: none; transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s; vertical-align: middle; white-space: nowrap;
}
.ct-ptag__icon { flex: none; height: 16px; width: 16px; }
.ct-ptag[data-plugin="elitemobs"] { --ptag: var(--plugin-elitemobs); --ptag-ink: var(--plugin-elitemobs-ink); --ptag-lit: var(--plugin-elitemobs-lit); }
.ct-ptag[data-plugin="freeminecraftmodels"] { --ptag: var(--plugin-freeminecraftmodels); --ptag-ink: var(--plugin-freeminecraftmodels-ink); --ptag-lit: var(--plugin-freeminecraftmodels-lit); }
.ct-ptag[data-plugin="betterstructures"] { --ptag: var(--plugin-betterstructures); --ptag-ink: var(--plugin-betterstructures-ink); --ptag-lit: var(--plugin-betterstructures-lit); }
.ct-ptag[data-plugin="eternaltd"] { --ptag: var(--plugin-eternaltd); --ptag-ink: var(--plugin-eternaltd-ink); --ptag-lit: var(--plugin-eternaltd-lit); }
.ct-ptag[data-plugin="resurrectionchest"] { --ptag: var(--plugin-resurrectionchest); --ptag-ink: var(--plugin-resurrectionchest-ink); --ptag-lit: var(--plugin-resurrectionchest-lit); }
.ct-ptag[data-plugin="cannonrtp"] { --ptag: var(--plugin-cannonrtp); --ptag-ink: var(--plugin-cannonrtp-ink); --ptag-lit: var(--plugin-cannonrtp-lit); }
.ct-ptag[data-plugin="resourcepackmanager"] { --ptag: var(--plugin-resourcepackmanager); --ptag-ink: var(--plugin-resourcepackmanager-ink); --ptag-lit: var(--plugin-resourcepackmanager-lit); }
.ct-ptag[data-plugin="betterfood"] { --ptag: var(--plugin-betterfood); --ptag-ink: var(--plugin-betterfood-ink); --ptag-lit: var(--plugin-betterfood-lit); }
.ct-ptag[data-plugin="libsdisguises"] { --ptag: var(--plugin-libsdisguises); --ptag-ink: var(--plugin-libsdisguises-ink); --ptag-lit: var(--plugin-libsdisguises-lit); }
/* Glow. The first value of each pair is for a browser without color-mix(). Under the pointer
   the tag burns brighter: more of the hue in the fill, the full border, a wider glow. */
.ct-ptag--glow {
  background: #0e1015; background: color-mix(in srgb, var(--ptag-lit) 13%, #0b0c10);
  border-color: var(--ptag-lit); border-color: color-mix(in srgb, var(--ptag-lit) 60%, transparent);
  box-shadow: 0 0 10px -1px color-mix(in srgb, var(--ptag-lit) 40%, transparent), inset 0 0 6px color-mix(in srgb, var(--ptag-lit) 10%, transparent);
  color: var(--ptag-lit);
}
a.ct-ptag--glow:hover {
  background: color-mix(in srgb, var(--ptag-lit) 20%, #0b0c10); border-color: var(--ptag-lit);
  box-shadow: 0 0 14px 0 color-mix(in srgb, var(--ptag-lit) 55%, transparent), inset 0 0 8px color-mix(in srgb, var(--ptag-lit) 16%, transparent);
}
a.ct-ptag:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* A line with several tags in it ("Uses EliteMobs, FreeMinecraftModels, RSPM"; item.js,
   tagLine) may wrap between its tags. A tag never breaks, and the comma or bracket that touches
   a tag stays on the tag's line. */
.ct-ptag-run { white-space: nowrap; }
.ct-info h1.nb-heading { font-size: clamp(32px, 3.2vw, 46px); margin-top: 6px; }
.ct-info__blurb { color: var(--wall); font-size: 16.5px; margin: 14px 0 0; }
.ct-info__blurb { margin-bottom: 24px; }
.ct-info__offer { margin-top: auto; }
.ct-offer { background: #13141a; border: 1px solid rgb(255 255 255 / .1); border-radius: 12px; }
.ct-offer__opt { align-items: center; column-gap: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 16px 18px; }
.ct-offer__opt--once, .ct-offer__opt--tier, .ct-offer__opt--itch { grid-template-areas: "head act" "note note"; row-gap: 8px; }
.ct-offer__opt--sub { grid-template-areas: "name btn" "line btn"; row-gap: 3px; }
.ct-offer__head { align-items: baseline; display: flex; flex-wrap: wrap; gap: 2px 12px; grid-area: head; }
.ct-offer__name { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 0; line-height: 1.3; margin: 0; }
.ct-offer__opt--once .ct-offer__name, .ct-offer__opt--tier .ct-offer__name { flex: 1 0 100%; }
.ct-offer__opt--sub .ct-offer__name { grid-area: name; }
.ct-offer__head .price, .ct-offer__head .ct-free, .ct-offer__more { font-size: 30px; line-height: 1.1; }
/* "+ 23 other DLC" in the subscription half, set like the buy-once price below it. */
.ct-offer__more { font-variant-numeric: tabular-nums; font-weight: 800; }
/* Elite's "Everything", then what that means on a small line under it (MagmaGuy, 11-06). */
.ct-offer__moresub { color: var(--wall); flex: 1 0 100%; font-size: 14px; font-weight: 600; line-height: 1.35; }
.ct-offer__act { align-items: center; display: flex; flex-wrap: wrap; gap: 6px 14px; grid-area: act; justify-content: flex-end; }
.ct-offer__note { color: var(--muted); font-size: 13.5px; grid-area: note; line-height: 1.45; margin: 0; }
.ct-offer__line { color: var(--wall); font-size: 14.5px; grid-area: line; line-height: 1.45; margin: 0; }
.ct-offer__line b { color: #fff; font-weight: 800; }
.ct-offer__learn { grid-area: btn; }
/* Phased rollout (11-05): the subscription is its Patreon tier tag, on the right like Add to cart,
   then "or" and the buy-once row (core.js, DIRECT_MEMBERSHIP). In the box and the placard the tag
   takes the Add's size, font and corners (.btn): a filled orange button beside the box's filled
   red Add, an orange outline beside the placard's outlined Add (MagmaGuy, 11-05). */
.ct-offer__opt--tier { padding-bottom: 18px; }
/* The tag and Add to cart share one width, so the two halves' buttons line up. */
.ct-offer--tier .ct-offer__act > .ct-add, .ct-offer--tier .ct-tiertag, .ct-offer__itch { min-width: 11.5em; }
/* The itch.io option (Dali, 17:14): an outlined button, the box's quietest choice. */
.ct-offer__opt--itch, .ct-offer__opt--save { padding-top: 18px; }
/* "Compare subscriptions": a quiet link to subscriptions.html beside the tier in the buy box. */
.ct-offer__compare { color: var(--muted); display: inline-block; font-size: 13.5px; font-weight: 600; margin-top: 2px; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.ct-offer__compare:hover { color: var(--flare); }
/* In the subscription half it sits on its own line under the note. */
.ct-offer__note .ct-offer__compare { display: block; margin-top: 3px; width: fit-content; }
/* "Compare subscriptions" is a real button on the heading's right (Dali, 11-06). */
.ct-band__top { align-items: center; display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
.ct-band__compare { flex: none; }
.ct-offer .ct-tiertag, .ct-placard__buy .ct-tiertag { border-radius: 4px; border-width: 2px; font-size: 15px; gap: .55em; justify-content: center; padding: 13px 22px; }
.ct-offer .ct-tiertag .ct-logo svg, .ct-placard__buy .ct-tiertag .ct-logo svg { height: 1em; width: 1em; }
/* White on a deeper orange (MagmaGuy 11-05: dark text on the bright orange read badly). */
.ct-offer .ct-tiertag { background: var(--flare-fill); border-color: var(--flare-fill); color: #fff; }
.ct-offer .ct-tiertag:hover { background: var(--flare-fill-hover); border-color: var(--flare-fill-hover); }
.ct-placard__buy .ct-tiertag { background: transparent; }
.ct-offer--tier .ct-offer__opt--once { padding-top: 18px; }
.ct-offer__or { border-top: 1px solid rgb(255 255 255 / .08); height: 0; margin: 0 18px; position: relative; text-align: center; }
.ct-offer__or span { background: #13141a; color: var(--muted); font-size: 12.5px; font-weight: 700; padding: 0 10px; position: relative; top: -.75em; }
.ct-offer__in { align-items: center; color: var(--ok); display: inline-flex; font-size: 15px; font-weight: 800; gap: 6px; margin: 0; }
.ct-offer__in svg { height: 18px; width: 18px; }
.ct-offer__in.is-just svg path { animation: ct-draw .36s .06s ease-out both; stroke-dasharray: 24; }
.ct-offer__remove { color: var(--muted); font-size: 13.5px; font-weight: 700; padding: 2px; }
.ct-offer__solo { color: var(--muted); font-size: 13.5px; margin: 0; padding: 0 18px 14px; }
.ct-offer--have { align-items: center; background: none; border: 0; display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: space-between; }
.ct-offer__have { align-items: flex-start; color: var(--wall); display: flex; font-size: 15px; gap: 8px; margin: 0; max-width: 40ch; }
.ct-offer__have svg { color: var(--ok); flex: none; height: 20px; margin-top: 1px; width: 20px; }
.ct-offer__fine { color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }
/* The cards sit at the bottom of the box (Dali, 11-12: "align all those 3 cards to the bottom of
   the container"). All the room a tall box has to spare is above them, between the description
   and the cards: .ct-info__offer's auto margin takes it. Nothing follows the cards: the bundle
   list that showed under them once the item was in the cart is gone (Dali, 11-12). */
/* Check out sits right under "In your cart"; the cart bar carries it once the box scrolls away. */
.ct-offer__go { font-size: 16px; justify-content: center; margin-top: 16px; padding-block: 14px; width: 100%; }
.ct-offer__go svg { height: 18px; width: 18px; }
/* Without our own checkout (item.js, getOptionsHtml; Dali, 11-10): the box is where to get the
   item today, its Patreon tier and itch.io as two full buttons, with the price above itch.io's
   note as "Buy once" had it. Save to cart is the last card of the same block (Dali, 11-12): an
   outlined button as wide as the two above it, on an item with a tier or without one. */
.ct-offer__opt--get .ct-offer__name { flex: 1 0 100%; }
.ct-offer--get .ct-offer__act > .ct-add { min-width: 11.5em; }
/* Its label and button share a line while the label has 104 px beside the button, room for two
   words a line. In a narrower box, or with a long translated button, the button goes under the
   label and keeps the right. Set as two grid columns, like the cards above it, the French label
   was left 12 px wide in a box 321 px wide and broke into four lines. */
.ct-offer__opt--save { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ct-offer__opt--save .ct-offer__head { flex: 1 1 6.5em; }
.ct-offer__opt--save .ct-offer__act { flex: none; margin-left: auto; }
.ct-offer__opt--save .ct-offer__note { flex: 1 0 100%; }
/* The subscription card and the itch.io card wrap the same way. Their label holds a 30 px line
   (the count of other items, "Everything", the price), so it keeps the button beside it only
   while it has 160 px. As two grid columns the label was left 49 to 108 px in a box 321 to
   335 px wide (901 to about 1280 px screens): the count broke into three lines, four or five
   in Russian and Japanese, and "Everything" had its second line squeezed beside the button. In
   such a box the button now goes under the label and keeps the right, as on the card above. At
   1440 and wider the label has 170 px or more in every language, so nothing moves there. */
.ct-offer__opt--tier, .ct-offer__opt--itch { display: flex; flex-wrap: wrap; }
.ct-offer__opt--tier .ct-offer__head, .ct-offer__opt--itch .ct-offer__head { flex: 1 1 10em; }
.ct-offer__opt--tier .ct-offer__act, .ct-offer__opt--itch .ct-offer__act { flex: none; margin-left: auto; }
.ct-offer__opt--tier .ct-offer__note, .ct-offer__opt--itch .ct-offer__note { flex: 1 0 100%; }

/* 2. The facts bar; it opens the rest of the technical details as a console readout. */
.ct-facts { background: #0e0f15; border: 1px solid rgb(255 255 255 / .08); border-radius: 14px; margin-top: clamp(20px, 2.4vw, 32px); overflow: hidden; }
.ct-facts__bar { align-items: stretch; display: flex; }
.ct-factbar { display: flex; flex: 1 1 auto; flex-wrap: wrap; margin: 0; min-width: 0; }
.ct-factbar > div { border-left: 1px solid rgb(255 255 255 / .07); flex: 1 1 120px; margin-left: -1px; padding: 16px 20px; }
.ct-factbar > .is-needs { flex: 2.4 1 300px; }
.ct-factbar > .is-type { flex: 1.4 1 170px; }
.ct-factbar dt { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ct-factbar dd { color: #fff; font-size: 15px; font-weight: 700; line-height: 1.35; margin: 3px 0 0; }
.ct-factbar dd small { color: var(--muted); display: block; font-size: 13px; font-weight: 600; margin-top: 3px; }
.ct-factbar a { color: #fff; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.ct-facts__more {
  align-content: center; background: rgb(255 255 255 / .025); border: 0; border-left: 1px solid rgb(255 255 255 / .08); color: #fff; column-gap: 12px; cursor: pointer; display: grid; flex: none;
  font: inherit; grid-template-columns: auto 20px; padding: 14px 22px; text-align: left; transition: background .15s;
}
.ct-facts__more:hover { background: rgb(255 255 255 / .06); }
.ct-facts__more:focus-visible { outline: 2px solid var(--flare); outline-offset: -3px; }
.ct-facts__morelabel { font-size: 15px; font-weight: 800; }
.ct-facts__count { color: var(--muted); font-size: 12.5px; font-weight: 600; grid-column: 1; }
.ct-facts__chev { color: var(--flare); grid-column: 2; grid-row: 1 / span 2; height: 20px; transition: transform .25s; width: 20px; }
.ct-facts__more[aria-expanded="true"] .ct-facts__chev { transform: rotate(180deg); }
.ct-readout { background: #07080a; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .32s; visibility: hidden; }
.ct-readout.is-open { border-top: 1px solid rgb(255 255 255 / .08); grid-template-rows: 1fr; transition-delay: 0s; visibility: visible; }
.ct-readout__inner { min-height: 0; overflow: hidden; }
.ct-readout .ct-tech {
  color: #e7e4dc; column-gap: 56px; column-rule: 1px solid rgb(255 255 255 / .06); columns: 2 360px; font-family: Inconsolata, ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 15.5px; line-height: 1.45; padding: 22px 26px 24px;
}
.ct-tech__group { break-inside: avoid-column; }
.ct-tech__group + .ct-tech__group { margin-top: 18px; }
.ct-tech h4 { break-after: avoid; color: var(--flare); font: 700 15px/1.4 Inconsolata, ui-monospace, Consolas, monospace; margin: 0 0 4px; }
.ct-tech h4::before { color: rgb(248 80 32 / .55); content: "# "; }
.ct-tech dl { margin: 0; }
.ct-tech dl > div { break-inside: avoid; display: grid; gap: 18px; grid-template-columns: minmax(0, 17ch) minmax(0, 1fr); padding: 3px 0; }
.ct-tech dt { color: #8d93a3; font-weight: 400; }
.ct-tech dd { color: #ece9e1; margin: 0; }
/* Key-only rows: a sub-heading inside a group ("The Climb Sanctum") or a short note. */
.ct-tech .is-note:not(:first-child) { padding-top: 10px; }
.ct-tech .is-note dd { color: #ece9e1; font-weight: 700; grid-column: 1 / -1; }
.ct-tech a { color: #fff; text-decoration-color: var(--rule); text-underline-offset: 3px; }

/* 3. About on the left; the video on the right with no heading (MagmaGuy, 11-01: "make the video
   larger, remove the label video just make it right aligned"). Dali (11-05): the description
   takes at least half the width (it had about 42% beside a 1 : 1.3 video), so its column is at
   least 50% of the row and the gap comes out of the video's; the text fills its column (70ch
   stopped it short at 1440). Complete the set is off for now (SHOW_SET in item.js). Dali
   (11-12 17:16): the install steps sit in the right column, under the video, at half width. */
.ct-irow--about { margin-top: 72px; }
.ct-irow.ct-irow--about:not(.is-single) { align-items: start; grid-template-columns: minmax(50%, 1fr) minmax(0, 1fr); }
.ct-about h2.nb-heading, .ct-item__sec h2.nb-heading { margin-bottom: 20px; }
.ct-about { min-width: 0; }
.ct-prose { color: var(--wall); font-size: 16.5px; line-height: 1.7; max-width: 82ch; }
.ct-prose p { margin: 0 0 14px; }
.ct-prose h2, .ct-prose h3 { color: #fff; font-size: 19px; font-weight: 800; line-height: 1.3; margin: 28px 0 10px; }
.ct-prose ul, .ct-prose ol { margin: 0 0 16px; padding-left: 20px; }
.ct-prose li + li { margin-top: 4px; }
.ct-prose a { color: #fff; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.ct-prose strong { color: #fff; }
.ct-side { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.ct-side > .ct-set { flex: 1 1 auto; }
/* The item page's right column: the video, then "Installing it" with its orange heading (Dali,
   11-12: "put it on the right column under the video, have it half width"). The cart and the
   library's .ct-side further down this file is the same class, and its sticky rule reached this
   column: with the install box under the video the column is too tall to follow the page, so
   it stands still. 40 px between the video and the heading. Without a video the heading starts
   the column, level with the About heading. */
.ct-irow--about > .ct-side--item { display: flex; flex-direction: column; gap: 40px; position: static; }
.ct-installsec { min-width: 0; }
.ct-installsec h2.nb-heading { margin-bottom: 20px; }
.ct-video { min-width: 0; }
.ct-video__note { color: var(--muted); font-size: 13.5px; font-weight: 600; margin: 10px 0 0; }
.ct-videos-more { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.ct-set { display: flex; flex-direction: column; }
.ct-set__intro { color: var(--muted); font-size: 14px; margin: -6px 0 10px; }
.ct-set__list { list-style: none; margin: 0; padding: 0; }
.ct-set__row { align-items: center; border-bottom: 1px solid rgb(255 255 255 / .06); cursor: pointer; display: grid; gap: 12px; grid-template-columns: 18px 56px minmax(0, 1fr) auto; padding: 8px 0; }
.ct-set__row input { accent-color: var(--ember); height: 18px; margin: 0; width: 18px; }
.ct-set__row.is-in { cursor: default; opacity: .62; }
.ct-set__img { aspect-ratio: 16 / 10; background: #110c0a; border-radius: 4px; display: block; overflow: hidden; }
.ct-set__img img { height: 100%; object-fit: cover; width: 100%; }
.ct-set__img img.is-render { object-fit: contain; padding: 1px; }
.ct-set__name { min-width: 0; }
.ct-set__name a { color: #fff; display: block; font-size: 14.5px; font-weight: 700; line-height: 1.25; text-decoration: none; }
.ct-set__name a:hover { text-decoration: underline; }
.ct-set__name small { color: var(--muted); font-size: 12.5px; }
.ct-set__row .price { font-size: 14.5px; }
.ct-set__none { color: var(--muted); font-size: 14px; padding: 8px 0; }
.ct-set__sum { margin-top: auto; padding-top: 16px; }
.ct-set__sum p { color: var(--wall); font-size: 14px; margin: 0 0 12px; }
.ct-set__sum b { color: #fff; }
.ct-set__sum .btn { width: 100%; }
.ct-set__sum .btn[disabled] { border-color: var(--hair-strong); color: var(--muted); opacity: 1; }

/* 4. Screenshots: one row drifting slowly, like the reel (driftRow in item.js). Cells are sized
   from the scroller's width (container units), since the track inside is as wide as its copies. */
.ct-item__sec { margin-top: 80px; }
.ct-shotsec__head { align-items: flex-end; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 20px; }
.ct-shotsec__head h2.nb-heading { margin: 0; }
.ct-shotsec__nav { display: flex; gap: 8px; }
.ct-shotsec__nav[hidden] { display: none; }
.ct-shots { --fade: 48px; container-type: inline-size; margin: -3px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; padding: 3px; scrollbar-width: none; }
.ct-shots::-webkit-scrollbar { display: none; }
.ct-shotsec.is-loop .ct-shots {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.ct-shots__track { display: flex; width: max-content; }
.ct-shots__set { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.ct-shotsec.is-loop .ct-shots__set { padding-right: 14px; }
.ct-shots__cell { flex: none; width: calc((100cqw - 28px) / 3); }
.ct-shots.is-1 .ct-shots__cell { width: min(100cqw, 720px); }
.ct-shots.is-2 .ct-shots__cell { width: calc((100cqw - 14px) / 2); }
.ct-shots__item { aspect-ratio: 16 / 10; background: var(--surface); border: 1px solid var(--hair); border-radius: 8px; cursor: zoom-in; display: block; overflow: hidden; padding: 0; position: relative; width: 100%; }
.ct-shots__item img { height: 100%; object-fit: cover; transition: transform .3s; width: 100%; }
.ct-shots__item:hover img { transform: scale(1.03); }
.ct-shots__item:focus-visible { outline: 2px solid var(--flare); outline-offset: 2px; }
/* A screenshot's name (item.js, the item's `shotNames`): a small tag in the picture's bottom
   left corner. Only a picture with a name has one. */
.ct-shots__tag { background: rgb(8 8 12 / .8); border: 1px solid rgb(255 255 255 / .16); border-radius: 4px; bottom: 8px; color: #fff; font: 700 12.5px/1 var(--font); left: 8px; max-width: calc(100% - 16px); overflow: hidden; padding: 5px 8px; pointer-events: none; position: absolute; text-overflow: ellipsis; white-space: nowrap; }
.ct-viewer-host { height: 1px; left: 0; opacity: 0; overflow: hidden; pointer-events: none; position: fixed; top: 0; width: 1px; }

/* 5. More <type> for <plugin>: the catalogue's cards in one row that drifts and loops (mountMore
   in item.js). MagmaGuy, 11-12: "in a carroussel as well not a grid"; Dali, 11-12: "make it a
   carousel like the screenshots". So it is built like the screenshots row above: the arrows are
   that row's (.ct-shotsec__nav, in the heading, 34px on a phone), with its gap (14px), its fade
   at the edges (48px, 20px on a phone) and its space under the heading (20px).
   One thing is the grid's, not the screenshots': a card is as wide as a column of .ct-grid at
   the same screen width (three, two under 760px, one under 480px), so the cards keep the size
   they had. Three cards and their gaps then stop 28px short of the row at 1440, and the edge of
   the fourth shows there. The widths come from the scroller's own width (container units), as
   the screenshots' do. The scroller is 6px bigger all round for a card's focus outline (5px). */
.ct-more .ct-ghead { margin-bottom: 20px; }
/* Add all and the arrows keep the right: beside the heading, or on their own line when a long
   bundle name pushes them under it (820px wide in most languages). */
.ct-more__tools { align-items: flex-end; display: flex; flex: 1 1 auto; gap: 14px 16px; justify-content: flex-end; }
.ct-more__view { --fade: 48px; container-type: inline-size; margin: -6px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; padding: 6px; scrollbar-width: none; }
.ct-more__view::-webkit-scrollbar { display: none; }
.ct-more.is-loop .ct-more__view {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.ct-more__track { display: flex; width: max-content; }
/* A list short enough to stand still keeps the grid's gap, so up to three cards sit where the
   grid had them and three fill the row. A set that fits with this gap also fits with 14px, so
   the row cannot flip between the two. */
.ct-more__set { display: flex; gap: var(--col-gap); list-style: none; margin: 0; padding: 0; }
.ct-more.is-loop .ct-more__set { gap: 14px; padding-right: 14px; }
/* A grid cell, so a card is as tall as the tallest in the row, as in a grid's row. */
.ct-more__set > li { display: grid; flex: none; width: calc((100cqw - 2 * var(--col-gap)) / 3); }
@media (max-width: 760px) {
  .ct-more__set { gap: 14px; }
  .ct-more__set > li { width: calc((100cqw - 14px) / 2); }
}
@media (max-width: 640px) {
  /* The heading stacks here (.ct-ghead): Add all keeps the left, the arrows the right. */
  .ct-more__tools { align-self: stretch; justify-content: space-between; }
  /* When Add all and the arrows don't fit on one line (320px with something in the cart: "Add
     the other 11 for €84.89" ran the row 10px past the screen; audit 2026-11-14, audit-a11y-9),
     the arrows go under it, still on the right. Add all is counted at its narrowest for that, so
     where the two fit today nothing moves. */
  .ct-more__tools { flex-wrap: wrap; }
  .ct-more__tools > .ct-bulk { flex: 1 1 0; }
  .ct-more__tools > .ct-shotsec__nav { margin-left: auto; }
  .ct-more__view { --fade: 20px; }
}
@media (max-width: 480px) { .ct-more__set > li { width: 100cqw; } }

@media (max-width: 1100px) {
  .ct-irow { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); }
  .ct-facts__bar { flex-direction: column; }
  .ct-facts__more { border-left: 0; border-top: 1px solid rgb(255 255 255 / .08); grid-template-columns: auto auto 20px; justify-content: start; padding: 12px 20px; }
  .ct-facts__count { align-self: center; grid-column: 2; grid-row: 1; }
  .ct-facts__chev { grid-column: 3; grid-row: 1; }
}
@media (max-width: 900px) {
  /* Phones and narrow tablets: the rows stack in reading order. */
  .ct-irow { grid-template-columns: minmax(0, 1fr); }
  .ct-irow--about, .ct-item__sec { margin-top: 56px; }
  .ct-irow.ct-irow--about:not(.is-single) { grid-template-columns: minmax(0, 1fr); }
  /* One column: About, the video, then Installing it, 40 px apart. */
  .ct-irow--about:has(> .ct-side--item) { row-gap: 40px; }
  .ct-shots__cell { width: calc((100cqw - 14px) / 2); }
}
@media (max-width: 640px) {
  .ct-reel__set > li { width: 112px; }
  .ct-reel__group { max-width: calc(var(--n, 1) * 124px - 12px); }
  .ct-reel__arrow { display: none; }
  .ct-reel__view { --fade: 28px; }
  .ct-render__name b { font-size: 15px; }
  .ct-factbar > div, .ct-factbar > .is-needs, .ct-factbar > .is-type { border-top: 1px solid rgb(255 255 255 / .07); flex: 1 1 40%; margin-top: -1px; padding: 12px 14px; }
  .ct-factbar > .is-needs { flex-basis: 100%; }
  .ct-facts__more { padding: 12px 14px; }
  .ct-readout .ct-tech { font-size: 15px; padding: 16px 14px 18px; }
  .ct-tech dl > div { gap: 0; grid-template-columns: minmax(0, 1fr); padding: 4px 0; }
  .ct-offer__opt { padding: 14px; }
  .ct-offer__opt--once, .ct-offer__opt--tier, .ct-offer__opt--itch { grid-template-areas: "head head" "act act" "note note"; }
  .ct-offer__opt--save .ct-offer__act, .ct-offer__opt--tier .ct-offer__act, .ct-offer__opt--itch .ct-offer__act { flex: 1 0 100%; margin-left: 0; }
  .ct-offer__act { justify-content: flex-start; }
  .ct-offer__act .ct-add, .ct-offer__act .ct-tiertag, .ct-offer__itch { flex: 1 1 auto; justify-content: center; }
  .ct-offer__opt--sub { grid-template-areas: "name name" "line line" "btn btn"; row-gap: 6px; }
  .ct-offer__learn { justify-self: start; margin-top: 4px; }
  .ct-offer__or { margin-inline: 14px; }
  .ct-shots__cell { width: 84cqw; }
  .ct-shots.is-1 .ct-shots__cell { width: 100cqw; }
  .ct-shots { --fade: 20px; }
  .ct-shotsec__nav .ct-arrow { height: 34px; width: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-readout, .ct-facts__chev, .ct-reel__clip, .ct-stage__clip { transition: none; }
  .ct-offer__in.is-just svg path { animation: none; }
}

.ct-sub { color: var(--wall); font-size: 17px; margin: 12px 0 0; max-width: 66ch; }

/* ---------- Cart and checkout ---------- */
.ct-cart { align-items: start; display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1fr) 400px; margin-top: 32px; }
.ct-cart[hidden] { display: none; }
.ct-meter { border-bottom: 1px solid var(--hair); padding-bottom: 22px; }
.ct-meter p { color: var(--wall); font-size: 15px; margin: 14px 0 0; }
.ct-meter b { color: #fff; }
.ct-slots--big { gap: 16px; }
.ct-slots--big .ct-slot { height: 42px; width: 64px; }
.ct-slots--big .ct-slots__pill { height: 42px; }
.ct-slots--big .ct-slots__mark { font-size: 12.5px; }
.ct-cartlist { margin-top: 26px; }
.ct-cartlist h2 { color: #fff; font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.ct-cartlist .ct-lines { grid-template-columns: minmax(0, 1fr); }
.ct-cartlist .ct-line { grid-template-columns: 84px minmax(0, 1fr) auto 32px; padding: 9px 0; }
.ct-cartlist .ct-line__img { width: 84px; }
.ct-cart__more { align-items: center; display: flex; gap: 24px; justify-content: space-between; margin: 22px 0 0; }
.ct-perks { color: var(--wall); margin: 0 0 18px; padding-left: 20px; }
.ct-pay { background: rgb(13 15 21 / .92); border: 1px solid var(--hair); border-radius: 12px; display: grid; gap: 20px; padding: 24px; position: sticky; top: 100px; }
.ct-pay h2 { color: #fff; font-size: 20px; font-weight: 800; margin: 0; }
.ct-pay__who { color: var(--muted); font-size: 14px; margin: -10px 0 0; }
.ct-pay__who b { color: #fff; }
.ct-pay [hidden] { display: none; }
.ct-methods { border: 0; display: grid; gap: 8px; margin: 0; padding: 0; }
.ct-methods legend { color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 8px; padding: 0; }
.ct-method { align-items: center; border: 1px solid var(--hair-strong); border-radius: 8px; cursor: pointer; display: grid; gap: 12px; grid-template-columns: 18px 34px minmax(0, 1fr); padding: 11px 14px; }
.ct-method:has(input:checked) { background: rgb(255 255 255 / .04); border-color: #fff; }
.ct-method input { accent-color: var(--ember); margin: 0; }
.ct-method svg { color: #fff; height: 22px; width: 34px; }
.ct-method b { color: #fff; display: block; font-size: 14.5px; }
.ct-method small { color: var(--muted); font-size: 12.5px; }
.ct-field { display: grid; gap: 6px; }
.ct-field label { color: #fff; font-size: 14px; font-weight: 800; }
.ct-field small { color: var(--muted); font-size: 12px; font-weight: 600; }
.ct-field input { background: rgb(255 255 255 / .04); border: 1px solid var(--hair-strong); border-radius: 6px; color: #fff; font: 600 15px var(--font); padding: 11px 12px; }
.ct-field p { color: var(--muted); font-size: 12.5px; margin: 0; }
.ct-totals { border-top: 1px solid var(--hair); display: grid; gap: 8px; padding-top: 16px; }
.ct-totals > div { color: var(--wall); display: flex; font-size: 14.5px; gap: 12px; justify-content: space-between; }
.ct-totals .is-off { color: var(--lantern); font-weight: 700; }
.ct-totals .is-total { border-top: 1px solid var(--hair); color: #fff; font-size: 17px; font-weight: 800; margin-top: 4px; padding-top: 10px; }
.ct-totals .is-total .price { font-size: 24px; }
.ct-totals .is-vat { color: var(--muted); font-size: 12.5px; }
.ct-consent { align-items: start; color: var(--wall); cursor: pointer; display: grid; font-size: 14px; gap: 10px; grid-template-columns: 18px minmax(0, 1fr); }
.ct-consent input { accent-color: var(--ember); height: 18px; margin: 2px 0 0; width: 18px; }
.ct-consent.is-error { color: #fff; }
.ct-consent.is-error input { outline: 2px solid var(--ember); outline-offset: 2px; }
.ct-error { color: #ff8a7a; font-size: 13px; font-weight: 600; margin: 8px 0 0; }
.ct-pay__go { width: 100%; }
.ct-pay__fine { color: var(--muted); font-size: 13px; margin: -6px 0 0; }
.ct-result { display: grid; gap: 14px; justify-items: start; margin: 40px 0 0; max-width: 64ch; }
.ct-result h2 { color: #fff; font-size: 22px; margin: 0; }
.ct-result p { color: var(--wall); margin: 0; }
.ct-result__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- Library ---------- */
.ct-lib { align-items: start; display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1fr) 300px; margin-top: 32px; }
.ct-ways { display: grid; gap: var(--col-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ct-way { align-content: start; border: 1px solid var(--hair); border-radius: 12px; display: grid; gap: 12px; justify-items: start; padding: 24px; }
.ct-way h2, .ct-side__box h2 { color: #fff; font-size: 19px; font-weight: 800; margin: 0; }
.ct-way p, .ct-side__box p { color: var(--wall); font-size: 14.5px; margin: 0; }
.ct-way p.ct-muted { color: var(--muted); }
.ct-cmd { align-items: center; display: flex; gap: 12px; }
.ct-cmd code { font-size: 16px; padding: 8px 12px; }
.ct-status { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.ct-status:empty { display: none; }
.ct-libitems { margin-top: 56px; }
.ct-libitems > .ct-status { margin: 12px 0 0; }
.ct-libgroup { margin-top: 28px; }
.ct-libgroup h3 { color: var(--flare); font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.ct-libgroup ul { list-style: none; margin: 0; padding: 0; }
.ct-librow { align-items: center; border-bottom: 1px solid rgb(255 255 255 / .06); display: grid; gap: 14px; grid-template-columns: 72px minmax(0, 1fr) 220px 136px; padding: 9px 0; }
.ct-librow .ct-line__img { width: 72px; }
.ct-librow a { color: #fff; display: block; font-size: 15px; font-weight: 700; text-decoration: none; }
.ct-librow a:hover { text-decoration: underline; }
.ct-librow small { color: var(--muted); font-size: 12.5px; }
.ct-librow__state { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.ct-librow__state.is-update { color: var(--lantern); }
.ct-librow .btn { justify-self: end; }
.ct-side { display: grid; gap: 20px; position: sticky; top: 100px; }
.ct-side__box { border: 1px solid var(--hair); border-radius: 12px; display: grid; gap: 10px; padding: 22px; }
.ct-side__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-trophy { background: radial-gradient(ellipse at 50% 0%, rgb(196 153 82 / .06), transparent 70%); }
.ct-trophy__grid { display: grid; gap: 12px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 4px; }
.ct-const { margin: 0; }
.ct-const svg { display: block; height: auto; width: 100%; }
.ct-const__stars circle { fill: rgb(255 255 255 / .2); }
.ct-const__stars circle.is-lit { fill: var(--lantern); filter: drop-shadow(0 0 3px rgb(242 196 109 / .8)); }
.ct-const__lines line { stroke: rgb(242 196 109 / .35); stroke-width: .7; }
.ct-const figcaption { color: var(--wall); display: grid; font-size: 12px; font-weight: 700; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.ct-const figcaption small { color: var(--muted); font-size: 12px; font-weight: 600; }

@media (max-width: 1180px) {
  .ct-librow { grid-template-columns: 64px minmax(0, 1fr) 128px; }
  .ct-librow__state { font-size: 12.5px; grid-column: 2; grid-row: 2; margin-top: -8px; }
  .ct-librow .btn { grid-column: 3; grid-row: 1 / span 2; }
  .ct-librow .ct-line__img { grid-row: 1 / span 2; width: 64px; }
}
@media (max-width: 980px) {
  .ct-cart, .ct-lib { grid-template-columns: minmax(0, 1fr); }
  .ct-pay, .ct-side { position: static; }
}
@media (max-width: 640px) {
  .ct-ways { grid-template-columns: minmax(0, 1fr); }
  .ct-slots--big { gap: 8px; }
  .ct-slots--big .ct-slot { height: 26px; width: 30px; }
  .ct-slots--big .ct-slots__pill { height: 26px; }
  .ct-cartlist .ct-line { grid-template-columns: 60px minmax(0, 1fr) auto 32px; }
  .ct-cartlist .ct-line__img { width: 60px; }
  .ct-pay { padding: 18px; }
  .ct-librow { gap: 10px; grid-template-columns: 56px minmax(0, 1fr); }
  .ct-librow .ct-line__img { grid-row: auto; width: 56px; }
  .ct-librow__state { grid-column: 2; grid-row: auto; margin-top: -6px; }
  .ct-librow .btn { grid-column: 2; grid-row: auto; justify-self: start; }
}

/* =================== Round 4 additions =================== */

/* ---------- Free: an obvious label ---------- */
.ct-free { background: var(--gold); border-radius: 999px; color: #120c04; display: inline-flex; font-size: 13px; font-weight: 800; line-height: 1; padding: 6px 11px; white-space: nowrap; }
.ct-freeline { color: var(--wall); flex-basis: 100%; font-size: 14.5px; margin: 0; }
.ct-buy__row .ct-free { font-size: 18px; padding: 9px 16px; }
.ct-save { color: var(--lantern); font-style: normal; font-weight: 700; }


/* ---------- Bundle options (inline, side cart, item page) ---------- */
.ct-bopts { list-style: none; margin: 0; padding: 0; }
.ct-bopt { align-items: center; border-bottom: 1px solid rgb(255 255 255 / .07); display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) auto; padding: 11px 0; }
.ct-bopt__text { display: grid; gap: 1px; min-width: 0; }
.ct-bopt__text b { color: #fff; font-size: 14.5px; line-height: 1.3; }
.ct-bopt__text > span { color: var(--wall); font-size: 13.5px; }
.ct-bopt__text small { color: var(--muted); font-size: 12px; }
.ct-bopt__text .ct-save { font-size: 13px; }
.ct-bopt__act { align-items: center; display: flex; gap: 4px; }
.ct-bopt.is-in .ct-bopt__text b { color: var(--wall); }
/* On a phone a bundle's name and its button no longer share a line: a long name ("Alles
   Bisherige für FreeMinecraftModels") ran under the button beside it (found 2026-11-12). The
   button goes under the text. */
@media (max-width: 480px) {
  .ct-bopt { grid-template-columns: minmax(0, 1fr); }
  .ct-bopt__act { justify-self: start; }
}
.ct-bundle__in { align-items: center; color: var(--wall); display: inline-flex; font-size: 13px; font-weight: 700; gap: 5px; white-space: nowrap; }
.ct-bundle__in svg { color: var(--lantern); height: 15px; width: 15px; }

/* ---------- Bundle cards: the rows further down ---------- */
.ct-bundles { margin-top: 120px; }
.ct-bundles[hidden] { display: none; }
.ct-bgrid {
  display: grid; gap: var(--col-gap); grid-auto-columns: calc((100% - 2 * var(--col-gap)) / 3); grid-auto-flow: column; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.ct-bgrid::-webkit-scrollbar { display: none; }
@media (max-width: 1100px) { .ct-bgrid { grid-auto-columns: calc((100% - var(--col-gap)) / 2); } }
.ct-bnav { display: flex; gap: 8px; }
.ct-arrow:disabled { cursor: default; opacity: .35; }
.ct-arrow:disabled:hover { background: rgb(13 15 21 / .88); border-color: var(--hair-strong); }
.ct-bcard {
  background: linear-gradient(180deg, #121219, #0c0c11); border: 1px solid rgb(255 255 255 / .08); border-radius: 14px; display: flex; flex-direction: column; min-width: 0;
  padding: 14px 16px 16px; scroll-snap-align: start;
}
.ct-bcard.is-in { border-color: rgb(242 196 109 / .3); }
/* The card's reel: every item in the bundle, drifting by. */
.ct-bcard__reel { margin-bottom: 12px; position: relative; }
.ct-bcard__view { --fade: 36px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.ct-bcard__view::-webkit-scrollbar { display: none; }
.ct-bcard__reel.is-loop .ct-bcard__view {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.ct-bcard__track { display: flex; margin-inline: auto; width: max-content; }
.ct-bcard__set { display: flex; gap: 10px; list-style: none; margin: 0; padding: 4px 0; }
.ct-bcard__reel.is-loop .ct-bcard__set { padding-right: 10px; }
.ct-bcard__set > li { flex: none; width: 132px; }
.ct-bcard__tile { color: var(--muted); display: grid; gap: 6px; text-decoration: none; }
.ct-bcard__pic {
  aspect-ratio: 16 / 10; background: radial-gradient(ellipse 75% 70% at 50% 42%, #1e161a 0%, #0c0b10 72%); border: 1px solid rgb(255 255 255 / .07); border-radius: 8px;
  display: block; overflow: hidden; position: relative; transition: border-color .2s;
}
.ct-bcard__pic img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.ct-bcard__pic img.is-render { background: #111319; object-fit: contain; padding: 4%; }
.ct-bcard__tname { font-size: 12.5px; font-weight: 600; line-height: 1.3; overflow: hidden; padding: 0 2px; text-overflow: ellipsis; white-space: nowrap; }
.ct-bcard__tile:hover .ct-bcard__pic { border-color: rgb(248 80 32 / .6); }
.ct-bcard__tile:hover .ct-bcard__tname { color: #fff; }
.ct-bcard__tile:focus-visible { outline: none; }
.ct-bcard__tile:focus-visible .ct-bcard__pic { border-color: var(--flare); box-shadow: 0 0 0 2px var(--flare); }
.ct-bcard__arrow { height: 32px; position: absolute; top: calc(4px + 132px * 5 / 16); transform: translateY(-50%); width: 32px; z-index: 2; }
.ct-bcard__arrow svg { height: 16px; width: 16px; }
.ct-bcard__arrow:not(.is-next) { left: 0; }
.ct-bcard__arrow.is-next { right: 0; }
/* With a mouse, the card's arrows show while it's under the pointer, so the row stays calm. */
@media (hover: hover) {
  .ct-bcard__arrow { opacity: 0; transition: opacity .15s, border-color .15s, background .15s; }
  .ct-bcard:hover .ct-bcard__arrow, .ct-bcard__arrow:focus-visible { opacity: 1; }
}
/* Name, then the price and saving at the bottom left with the red Add beside them. */
.ct-bcard__body { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.ct-bcard__name { color: #fff; font-size: 17px; font-weight: 800; line-height: 1.25; margin: 0; }
/* The name opens the bundle's drawer, and so does the rest of the card; the reel's tiles and the
   Add sit above that. */
.ct-bcard { cursor: pointer; position: relative; }
.ct-bcard__open { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; text-align: left; }
.ct-bcard__open::after { content: ""; inset: 0; position: absolute; z-index: 1; }
.ct-bcard__open:hover, .ct-bcard:hover .ct-bcard__open { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ct-bcard__open:focus-visible { outline: none; }
.ct-bcard:has(.ct-bcard__open:focus-visible) { outline: 2px solid var(--flare); outline-offset: 3px; }
.ct-bcard__reel, .ct-bcard__act { position: relative; z-index: 2; }
.ct-bcard__reel { cursor: default; }
.ct-bcard__left { color: var(--muted); font-size: 12.5px; margin: 0; }
.ct-bcard__foot { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.ct-bcard__sum { min-width: 0; }
.ct-bcard__price { color: var(--muted); font-size: 14px; font-weight: 600; margin: 0; }
.ct-bcard__price .price { color: #fff; font-size: 20px; margin-right: 2px; }
.ct-bcard__save { color: var(--lantern); font-size: 13.5px; font-weight: 700; margin: 2px 0 0; min-height: 1.4em; }
.ct-bcard__act { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; }
/* The subscription that includes the bundle's paid items (core.js, bundleTierLine): one quiet
   sentence under the price and Add, set off by a hairline. It is a link, above the card's own
   click target. A card without one keeps the slot empty and shows nothing. */
.ct-bcard__tier { border-top: 1px solid var(--hair); margin: 14px 0 0; padding-top: 12px; position: relative; z-index: 2; }
.ct-bcard__tier:empty { display: none; }
.ct-btier { align-items: flex-start; border-radius: 3px; color: var(--muted); display: flex; font-size: 13px; font-weight: 600; gap: 8px; line-height: 1.45; text-decoration: none; }
.ct-btier b { color: #fff; font-weight: 700; }
.ct-btier .ct-logo { background: none; color: var(--flare); flex: none; height: 1.45em; width: auto; }
.ct-btier .ct-logo svg { height: 13px; width: 13px; }
.ct-btier:hover { color: var(--wall); }
.ct-btier:hover > span:last-child { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ct-btier:focus-visible { outline: 2px solid var(--flare); outline-offset: 3px; }
/* The cards of a row share three rows: the reel, the text with price and Add, the subscription
   line. So every price and Add sits on one line across the row, whatever a card's name or its
   subscription line wraps to, and a card without the line is as tall as the others. Without
   subgrid the cards are still one height (the row stretches them); a longer name or line then
   moves that card's price and Add up a little. */
@supports (grid-template-rows: subgrid) {
  .ct-bgrid { grid-template-rows: auto auto auto; row-gap: 0; }
  .ct-bcard { display: grid; grid-row: span 3; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; }
}
.ct-bundles__fine { color: var(--muted); font-size: 13px; margin: 18px 0 0; }

/* ---------- Memberships: tier cards with "See everything" ---------- */
.ct-tier__flag { align-items: center; color: var(--lantern); display: flex; font-size: 13px; font-weight: 700; gap: 6px; margin: -6px 0 10px; }
.ct-tier__flag svg { flex: none; height: 15px; width: 15px; }
/* "Doesn't include X" on a tier without the item (Dali, 11-12: "in red with an x"). The red is
   the button red's lighter step. On the card it is 4.8 to 1 at this size; the button red itself
   is 4.1 to 1 as text. */
.ct-tier__flag--no { color: var(--ember-hover); }
.ct-tier.is-covers { border-color: rgb(242 196 109 / .32); }
/* With lines on the cards, the lines share one row across the three cards, so the headings stay
   level when a line wraps on one card and not on the next, and when a card has no line. The
   rest of a card (.ct-tier__body) flows as it did. Side by side only: stacked cards (760 px and
   under) need no shared row, and there, or in a browser without subgrid, the body is no box of
   its own and the card is laid out as before. */
.ct-tier__body { display: contents; }
@media (min-width: 761px) {
  @supports (grid-template-rows: subgrid) {
    .ct-tiers--flags { grid-template-rows: auto 1fr; }
    .ct-tiers--flags .ct-tier { align-items: stretch; display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
    .ct-tiers--flags .ct-tier__flag { align-self: start; grid-row: 1; justify-self: start; }
    /* margin-top: the card's last child takes an auto margin (.ct-tier > :last-child). On the
       body it would stop it from filling its row. */
    .ct-tiers--flags .ct-tier__body { align-items: start; display: flex; flex-direction: column; grid-row: 2; margin-top: 0; min-width: 0; }
  }
}
.ct-tier__unlocks small { color: var(--lantern); display: block; font-size: 13px; font-weight: 700; margin-top: 2px; }
.ct-tier__acts { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 6px; margin-top: auto; }
.ct-tier__see { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Tier contents drawer ---------- */
.ct-drawer { background: transparent; border: 0; height: 100vh; inset: 0 0 0 auto; margin: 0 0 0 auto; max-height: 100vh; max-width: 100vw; padding: 0; width: min(620px, 100vw); }
.ct-drawer::backdrop { background: rgb(0 0 0 / .62); }
.ct-drawer[open] { animation: ct-drawer-in .24s ease-out both; }
@keyframes ct-drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.ct-drawer__inner { background: var(--shell); border-left: 1px solid var(--hair-strong); color: var(--fg); height: 100%; overflow-y: auto; padding: 26px clamp(18px, 3vw, 34px) 40px; }
.ct-drawer__head { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; }
/* A long plugin name is one word ("FreeMinecraftModels"): on a phone it was wider than the
   panel, the panel scrolled sideways and the close button sat off screen (found 2026-11-12). The
   heading's box may shrink, and a word too long for a line breaks. */
.ct-drawer__head > div { min-width: 0; }
.ct-drawer__head .nb-heading { overflow-wrap: anywhere; }
.ct-drawer__kicker { color: var(--muted); font-size: 13.5px; font-weight: 600; margin: 0 0 4px; }
.ct-drawer h2.nb-heading { font-size: 38px; }
.ct-drawer__price { color: var(--muted); font-weight: 600; margin: 6px 0 0; }
.ct-drawer__price .price { color: #fff; font-size: 28px; margin-right: 4px; }
.ct-drawer__sum { color: var(--wall); font-size: 15.5px; margin: 18px 0 0; }
.ct-drawer__sum b { color: #fff; }
.ct-drawer__acts { align-items: center; display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 18px; }
.ct-drawer__acts p { color: var(--muted); font-size: 13px; margin: 0; }
.ct-drawer__perks { color: var(--wall); font-size: 14.5px; margin: 20px 0 0; padding-left: 18px; }
.ct-drawer__group { margin-top: 28px; }
.ct-drawer__save { color: var(--lantern); font-size: 14px; font-weight: 700; margin: 2px 0 0; }
.ct-drawer__about { display: grid; gap: 12px; margin: 20px 0 0; }
.ct-drawer__about dt { color: #fff; font-size: 14px; font-weight: 800; }
.ct-drawer__about dd { color: var(--wall); font-size: 15px; line-height: 1.45; margin: 2px 0 0; }
.ct-drawer__tier { margin: 14px 0 0; }
.ct-drawer__tier .ct-btier { font-size: 14px; }
.ct-drawer__inside { align-items: baseline; border-top: 1px solid var(--hair); color: #fff; display: flex; font-size: 19px; font-weight: 800; gap: 8px; margin: 26px 0 0; padding-top: 22px; }
.ct-drawer__inside small { color: var(--muted); font-size: 13px; font-weight: 700; }
.ct-drawer__inside + .ct-drawer__group { margin-top: 14px; }
.ct-drawer__note { color: var(--muted); font-size: 13px; margin: -2px 0 6px; }
.ct-ttile__free { color: var(--muted); font-size: 13px; font-weight: 700; }
.ct-drawer__group h3 { align-items: baseline; color: var(--flare); display: flex; font-size: 17px; font-weight: 800; gap: 8px; margin: 0 0 6px; }
.ct-drawer__group h3 small { color: var(--muted); font-size: 13px; font-weight: 700; }
.ct-ttiles { list-style: none; margin: 0; padding: 0; }
.ct-ttile { align-items: center; border-bottom: 1px solid rgb(255 255 255 / .06); display: grid; gap: 12px; grid-template-columns: 72px minmax(0, 1fr) auto; padding: 7px 0; }
.ct-ttile__pic { aspect-ratio: 16 / 10; background: #110c0a; border-radius: 5px; display: block; overflow: hidden; }
.ct-ttile__pic img { height: 100%; object-fit: cover; width: 100%; }
.ct-ttile__pic img.is-render { background: radial-gradient(ellipse at 50% 70%, #2a1810, #0d0907 75%); object-fit: contain; padding: 2px; }
.ct-ttile__name { min-width: 0; }
.ct-ttile__name a { color: #fff; display: block; font-size: 14.5px; font-weight: 700; line-height: 1.25; text-decoration: none; }
.ct-ttile__name a:hover { text-decoration: underline; }
.ct-ttile__name small { color: var(--muted); font-size: 12.5px; }
.ct-ttile .price { font-size: 14px; }
.ct-ttile.is-have .ct-ttile__pic { opacity: .6; }

@media (max-width: 900px) {
  .ct-sort__label { display: none; }
  .ct-sort { padding-left: 12px; }
}
@media (max-width: 640px) {
  .ct-toolbar { gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ct-search { grid-column: 1 / -1; grid-row: 1; }
  .ct-toolbar__head { grid-column: 1; grid-row: 2; }
  .ct-sort { grid-column: 2; grid-row: 2; }
  .ct-sort select { width: 100%; }
  .ct-filters-toggle { justify-content: center; width: 100%; }
  .ct-bundles { margin-top: 88px; }
  .ct-bgrid { grid-auto-columns: 86%; }
  .ct-tier__acts { align-items: flex-start; flex-direction: column; }
  .ct-free { font-size: 12px; padding: 5px 9px; }
  .ct-ttile { grid-template-columns: 56px minmax(0, 1fr); }
  .ct-ttile > :last-child { grid-column: 2; justify-self: start; margin-top: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-drawer[open] { animation: none; }
}

/* ---------- Cart: a membership could cover it ---------- */
.ct-cover { background: #0e0f15; border: 1px solid rgb(242 196 109 / .28); border-radius: 12px; margin-top: 22px; padding: 16px 18px; }
.ct-cover p { color: var(--wall); font-size: 14.5px; margin: 0; }
.ct-cover b { color: #fff; }
.ct-cover__acts { align-items: center; display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; }

/* =================== Round 4.1 additions (first public feedback, 11-01) =================== */

/* ---------- Add: a moment of spinner, then the check draws itself (Velshi) ---------- */
.ct-add { position: relative; }
.ct-add.is-busy { cursor: progress; }
.ct-add__ghost { visibility: hidden; }
.ct-spin { animation: ct-spin .7s linear infinite; border: 2.5px solid rgb(255 255 255 / .35); border-radius: 50%; border-top-color: #fff; height: 1.1em; left: 50%; margin: -.55em 0 0 -.55em; position: absolute; top: 50%; width: 1.1em; }
@keyframes ct-spin { to { transform: rotate(360deg); } }
.ct-add.is-just { animation: ct-pop-in .36s ease-out; }
.ct-add.is-just svg path { animation: ct-draw .36s .06s ease-out both; stroke-dasharray: 24; }
@keyframes ct-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes ct-pop-in { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: none; } }

/* ---------- The popover above the button (instead of the toast) ---------- */
.ct-pop {
  background: var(--raised); border: 1px solid rgb(255 255 255 / .16); border-radius: 12px; box-shadow: 0 18px 50px rgb(0 0 0 / .6);
  max-width: min(340px, calc(100vw - 16px)); opacity: 0; padding: 12px 42px 13px 14px; pointer-events: none; position: fixed;
  transform: translateY(6px) scale(.98); transform-origin: var(--tip, 50%) 100%; transition: opacity .16s ease-out, transform .16s ease-out; width: max-content; z-index: 10060;
}
.ct-pop[hidden] { display: none; }
.ct-pop.is-on { opacity: 1; pointer-events: auto; transform: none; }
.ct-pop.is-below { transform: translateY(-6px) scale(.98); transform-origin: var(--tip, 50%) 0; }
.ct-pop.is-below.is-on { transform: none; }
.ct-pop::after { background: inherit; border: inherit; border-width: 0 1px 1px 0; bottom: -7px; content: ""; height: 12px; left: var(--tip, 50%); position: absolute; transform: translateX(-50%) rotate(45deg); width: 12px; }
.ct-pop.is-below::after { border-width: 1px 0 0 1px; bottom: auto; top: -7px; }
.ct-pop__title { align-items: center; color: #fff; display: flex; font-size: 14.5px; font-weight: 600; gap: 8px; line-height: 1.3; margin: 0; }
.ct-pop__title b { font-weight: 800; }
.ct-pop__title svg { color: var(--ok); flex: none; height: 18px; width: 18px; }
.ct-pop__line { color: #c9c9d2; font-size: 13px; margin: 5px 0 0; }
.ct-pop__acts { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 11px; }
.ct-pop__bundle { align-items: center; display: inline-flex; font-size: 13.5px; gap: 6px; padding: 2px 0; }
.ct-pop__bundle svg { color: var(--flare); flex: none; height: 16px; width: 16px; }
.ct-pop__x { position: absolute; right: 5px; top: 5px; }
/* Check out at the bottom of the "Added" popover: its one red button (MagmaGuy, 11-01). */
.ct-pop__go { margin-top: 12px; width: 100%; }
.ct-pop__go svg { height: 1em; width: 1em; }
/* When the page already shows its own red Check out in view (the item page's box, right under
   "In your cart"), the popover leaves its copy out, so the view keeps one red button. */
body:has(.ct-main .btn--primary.ct-go:not(.is-away *)) .ct-pop__go { display: none; }
.ct-pop__acts:empty { display: none; }

/* ---------- The side cart (Velshi): lines, bundles, checkout at the bottom ---------- */
.ct-sc { background: transparent; border: 0; color: var(--fg); height: 100vh; height: 100dvh; inset: 0 0 0 auto; margin: 0 0 0 auto; max-height: 100dvh; max-width: 100vw; padding: 0; width: min(440px, 100vw); }
.ct-sc::backdrop { background: rgb(0 0 0 / .55); }
.ct-sc[open] { animation: ct-sc-in .26s cubic-bezier(.2, .8, .2, 1) both; }
.ct-sc.is-closing { animation: ct-sc-out .2s ease-in both; }
@keyframes ct-sc-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes ct-sc-out { from { transform: none; } to { transform: translateX(100%); } }
body.ct-sc-open { overflow: hidden; }
.ct-sc__inner { background: var(--shell); border-left: 1px solid var(--hair-strong); display: flex; flex-direction: column; height: 100%; }
.ct-sc__head { align-items: center; border-bottom: 1px solid var(--hair); display: flex; flex: none; justify-content: space-between; padding: 14px 18px 14px 22px; }
.ct-sc__head h2 { align-items: baseline; color: #fff; display: flex; font-size: 21px; font-weight: 800; gap: 10px; margin: 0; }
.ct-sc__head small { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.ct-sc__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 22px; scrollbar-width: thin; }
.ct-sc__meter { border-bottom: 1px solid var(--hair); padding: 16px 0 14px; }
.ct-sc__meter p { color: var(--wall); font-size: 13.5px; font-weight: 600; margin: 9px 0 0; }
.ct-sc__meter b { color: #fff; }
.ct-sc .ct-lines { grid-template-columns: minmax(0, 1fr); }
.ct-sc .ct-line { grid-template-columns: 64px minmax(0, 1fr) auto 32px; }
.ct-sc__undo { align-items: center; background: rgb(255 255 255 / .05); border-radius: 8px; color: var(--wall); display: flex; font-size: 13.5px; gap: 10px; justify-content: space-between; margin: 14px 0 0; padding: 6px 8px 6px 12px; }
.ct-sc__empty { display: grid; gap: 14px; justify-items: start; padding: 24px 0 4px; }
.ct-sc__empty p { color: var(--wall); font-size: 14.5px; margin: 0; }
.ct-sc__empty b { color: #fff; display: block; font-size: 16px; margin-bottom: 4px; }
/* Bundles are about saving, so their box takes the savings gold, not the action red. */
.ct-sc__bundles { background: #101016; border: 1px solid rgb(242 196 109 / .26); border-radius: 12px; margin-top: 22px; padding: 13px 15px 3px; }
.ct-sc__bundles h3 { align-items: center; color: #fff; display: flex; font-size: 16px; font-weight: 800; gap: 8px; margin: 0 0 2px; }
.ct-sc__bundles h3 svg { color: var(--lantern); height: 19px; width: 19px; }
.ct-sc__bundles .ct-bopt:last-child { border-bottom: 0; }
.ct-sc__foot { background: #0b0c12; border-top: 1px solid var(--hair); box-shadow: 0 -14px 30px rgb(0 0 0 / .35); display: grid; flex: none; gap: 12px; padding: 14px 22px calc(16px + env(safe-area-inset-bottom)); }
.ct-sc__sum { display: grid; gap: 3px; }
.ct-sc__sum p { align-items: baseline; display: flex; justify-content: space-between; margin: 0; }
.ct-sc__off { color: var(--lantern); font-size: 14px; font-weight: 700; }
.ct-sc__total { color: #fff; font-size: 16px; font-weight: 800; }
.ct-sc__total .price { font-size: 25px; }
.ct-sc__go { font-size: 16px; padding-block: 15px; width: 100%; }
.ct-sc__fine { color: var(--muted); font-size: 12px; margin: -4px 0 0; text-align: center; }
/* Only free items in the cart: how to get them, where a total would read as something to pay. */
.ct-sc__free { color: var(--wall); font-size: 14px; line-height: 1.55; margin: 0; }
.ct-sc__foot .ct-trust--compact { justify-items: center; margin-top: -4px; }
.ct-sc__foot .ct-trust--compact .ct-trust__lock, .ct-sc__foot .ct-trust--compact .ct-trust__marks { justify-content: center; }
.ct-sc__foot > .ct-trust__also { margin-top: -4px; }

/* The discount meter as thin bars (side cart). */
.ct-slots--bar { gap: 6px; width: 100%; }
.ct-slots--bar .ct-slots__group { flex: 3 1 0; min-width: 0; }
.ct-slots--bar .ct-slots__group:nth-child(3) { flex-grow: 4; }
.ct-slots--bar .ct-slots__cells { gap: 2px; }
.ct-slots--bar .ct-slot { border-radius: 2px; flex: 1 1 0; height: 8px; width: auto; }
.ct-slots--bar .ct-slot.is-filled { background: rgb(255 255 255 / .8); border-color: rgb(255 255 255 / .8); }
.ct-slots--bar .ct-slots__group.is-lit .ct-slot.is-filled { background: var(--lantern); border-color: var(--lantern); }
.ct-slots--bar .ct-slots__extra { display: none; }
.ct-slots--bar .ct-slots__mark { font-size: 12px; }
.ct-tray__toggle svg { height: 16px; width: 16px; }

/* ---------- Trust: "Secure checkout with Stripe" and the payment marks (Velshi) ---------- */
.ct-logo { align-items: center; background: #fff; border-radius: 5px; color: var(--brand, #000); display: inline-flex; flex: none; height: 26px; justify-content: center; width: 40px; }
.ct-logo svg { display: block; height: 22px; width: 22px; }
.ct-logo--stripe { background: var(--brand); border-radius: 4px; color: #fff; height: 20px; width: 20px; }
.ct-logo--stripe svg { height: 13px; width: 13px; }
.ct-trust { display: grid; gap: 9px; justify-items: center; text-align: center; }
.ct-trust__lock { align-items: center; color: var(--wall); display: flex; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; gap: 6px; justify-content: center; margin: 0; }
.ct-trust__lock > svg { color: var(--ok); height: 16px; width: 16px; }
.ct-trust__lock b { color: #fff; font-weight: 800; }
.ct-trust__marks { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ct-trust__marks > span { display: inline-flex; }
.ct-trust__also { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 13px; font-weight: 600; gap: 6px 8px; justify-content: center; margin: 0; }
.ct-shoplink { align-items: center; color: #fff; display: inline-flex; font-weight: 700; gap: 6px; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ct-shoplink:hover { color: var(--flare); }
.ct-shoplink .ct-logo { border-radius: 4px; height: 20px; width: 20px; }
.ct-shoplink .ct-logo svg { height: 14px; width: 14px; }
.ct-trustbar { border-top: 1px solid var(--hair); padding: 24px 0 28px; }
.ct-trust--footer { align-items: center; display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; }
/* While nothing is sold here the strip is one line, "Also on itch.io and Patreon", centred. */
.ct-trust--footer.ct-trust--shops { justify-content: center; }
.ct-trust--side { padding-top: 2px; }
.ct-trust--checkout { margin-top: -4px; }
.ct-also { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 14px; font-weight: 600; gap: 6px 8px; margin: 14px 0 0; }
[data-also]:empty { display: none; }

/* ---------- Checkout: itch.io and Patreon next to the ways to pay ---------- */
.ct-method { grid-template-columns: 18px 34px minmax(0, 1fr) auto; }
.ct-method > .ct-logo { height: 26px; width: 34px; }
.ct-method .ct-logo svg { color: inherit; height: 18px; width: 18px; }
.ct-method__marks { display: flex; gap: 4px; }
.ct-method__marks .ct-logo { border-radius: 4px; height: 20px; width: 30px; }
.ct-method__marks .ct-logo svg { height: 18px; width: 18px; }
.ct-methods__or { color: var(--muted); font-size: 13px; font-weight: 700; margin: 10px 0 0; }
.ct-else { background: rgb(255 255 255 / .03); border: 1px solid var(--hair-strong); border-radius: 10px; display: grid; gap: 11px; justify-items: start; padding: 14px 16px; }
.ct-else[hidden] { display: none; }
.ct-else p { color: var(--wall); font-size: 14px; margin: 0; }
.ct-else b { color: #fff; }
.ct-else__list { list-style: none; margin: 0; padding: 0; width: 100%; }
.ct-else__list li { align-items: center; border-bottom: 1px solid rgb(255 255 255 / .06); color: #fff; display: flex; font-size: 14px; font-weight: 600; gap: 12px; justify-content: space-between; padding: 7px 0; }
.ct-else__list li:last-child { border-bottom: 0; }
.ct-else__list small { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.ct-else .ct-link { align-items: center; display: inline-flex; font-size: 14px; gap: 5px; white-space: nowrap; }
.ct-else .ct-link svg { height: 15px; width: 15px; }
.ct-else__go .ct-link { font-size: 15px; }
p.ct-else__note { color: var(--muted); font-size: 13px; }
/* No checkout of our own yet (NB.directCheckout false): the panel lists where to get each item. */
.ct-get__soon { color: var(--wall); font-size: 15px; line-height: 1.5; margin: -8px 0 0; }
.ct-get__soon b { color: #fff; display: block; font-size: 16px; margin-bottom: 2px; }
.ct-get__box { justify-items: stretch; }
.ct-get__box .ct-else__list li > span { min-width: 0; }
.ct-get__box .ct-else__list .ct-link { flex: none; }
.ct-get__box .ct-else__list li[data-get="tier"] .ct-link { flex: 0 1 auto; text-align: right; white-space: normal; }
.ct-get__notes { display: grid; gap: 8px; }
.ct-get__notes:empty { display: none; }
.ct-pay .is-away { display: none !important; }
.ct-pay__go svg, .ct-sc__go svg { height: 1em; width: 1em; }

/* ---------- Installing: link once, then one click ---------- */
/* The steps' box on the item page: in the About row's right column, under the video, as wide as
   that column (Dali, 11-12 17:16; .ct-side--item above). Its heading, "Installing it", is the
   orange h2 above the box. The two steps stand one under the other. A command never breaks in
   the middle. */
.ct-install { background: #0e0f15; border: 1px solid rgb(255 255 255 / .08); border-radius: 14px; padding: 18px 22px 20px; }
.ct-install code { white-space: nowrap; }
.ct-steps { color: var(--wall); display: grid; font-size: 14.5px; gap: 8px; line-height: 1.55; margin: 0; padding-left: 20px; }
.ct-steps b { color: #fff; }
.ct-steps li::marker { color: var(--flare); font-weight: 800; }
.ct-install__alt { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
/* The box's last rows: the fallback line, and under it a button to the full installation guide
   (Dali, 11-12). The line answers the one other way most servers need. The button is for the
   rest, so both stay. On a phone the button is as wide as the box. */
.ct-install__foot { align-items: flex-start; display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.ct-install__foot .ct-install__alt { margin: 0; }
.ct-install__guide { flex: none; }
@media (max-width: 640px) { .ct-install__guide { align-self: stretch; justify-content: center; } }
/* On the item page the two share one row (Dali, 11-12 17:50: "put the installation guide button
   next to the 'server without a connection...' text"): the line at the left, the button at the
   right, centred on each other. The line keeps at least 320 px beside the button, which is three
   lines of it at most. In a box too narrow for both, the button goes under the line, at the
   right and at its own width, on a phone too. */
.ct-installsec .ct-install__foot { align-items: center; flex-flow: row wrap; gap: 12px 20px; justify-content: flex-end; }
.ct-installsec .ct-install__alt { flex: 1 1 320px; }
.ct-installsec .ct-install__guide { align-self: center; }
.ct-way .ct-steps { font-size: 14px; }
.ct-next { margin-top: 12px; max-width: 64ch; }

@media (max-width: 640px) {
  .ct-sc__body { padding: 0 16px 18px; }
  .ct-sc__head { padding: 12px 12px 12px 16px; }
  .ct-sc__foot { padding-inline: 16px; }
  .ct-trust--footer { justify-content: center; }
  .ct-method { grid-template-columns: 18px 34px minmax(0, 1fr); }
  .ct-method__marks { grid-column: 3; }
  .ct-install { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-spin { animation-duration: 1.4s !important; animation-iteration-count: infinite !important; }
  .ct-add.is-just, .ct-add.is-just svg path, .ct-sc[open], .ct-sc.is-closing { animation: none; }
  .ct-pop { transition: none; }
}
