/* Store (/store, 28 Nov 2026): Spark packs through Tebex, bought on this page. Over the packs is the Vote page's name box, for a buyer. A pack is
   a picture tile with its caption on the ground (BRAND.md 3): a pile of the game's Spark icon that grows with the pack, the Sparks, what they are
   enough for, and one Buy button. What Sparks buy is rows between hairlines, the steps are one ruled strip, and the promise is prose. The word
   Sparks is the site's one token, --gems; a tile is lit in its picture's own colour, --st-lit (the Amethyst Cluster's), so the light and the
   crystal agree whatever colour the word is. The page's wrapper is .st-page: .st alone is the site's Chits colour. */
.st-page { --st-lit: #B48CF2; }
.st-soon { margin: 0 0 var(--sp-5); max-width: 62ch; color: var(--text-2); font-size: 17px; line-height: 1.55; }
.st-lead { margin: 0 0 var(--sp-4); max-width: 62ch; color: var(--text-2); font-size: 17px; line-height: 1.55; }
.st-g { color: var(--gems); }
.st-page > .sec:first-child > h2 { margin-top: var(--sp-5); }

/* ---- the name box (the Vote page's, for a buyer): a label, the field, a line of help. Once a name is known the name stands in the field's
   place with "Not you?" beside it, at the field's own height, so nothing below moves ---- */
.st-you { margin: var(--sp-5) 0 0; }
html:not(.js) .st-you { display: none; }
.st-form { margin: 0; }
.st-label { display: block; margin: 0 0 var(--sp-2); font: 600 12px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.st-input { display: block; width: 100%; max-width: 340px; height: 48px; padding: 0 var(--sp-4); font: 500 17px/1.2 var(--sans); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--control-border); border-radius: var(--radius-sm);
  transition: border-color var(--t-fast) var(--ease); }
.st-input[hidden] { display: none; }
.st-input:hover { border-color: var(--control-border-hover); }
.st-input:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.st-who { display: flex; align-items: center; gap: var(--sp-4); height: 48px; margin: 0; max-width: none; }
.st-who[hidden] { display: none; }
.st-who strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 600 26px/1.2 var(--display); letter-spacing: .015em; color: var(--ember-soft); }
.st-not { flex: none; display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.st-not:hover { color: var(--text); }
.st-not:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: var(--radius-sm); }
.st-help { margin: var(--sp-2) 0 0; max-width: 62ch; color: var(--text-3); font-size: 13px; line-height: 1.5; }
.st-msg { margin: var(--sp-1) 0 0; max-width: none; color: var(--ember-soft); font-size: 14px; line-height: 1.5; }
.st-msg:empty { display: none; }

/* ---- the thank-you, once Tebex's window reports a payment: one strip in the tile's own light ---- */
.st-thanks { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: var(--sp-4); margin: var(--sp-5) 0 0; padding: var(--sp-4) var(--sp-5);
  border-radius: 14px; border: 1px solid color-mix(in srgb, var(--st-lit) 40%, var(--border));
  background:
    radial-gradient(50% 160% at 0% 50%, color-mix(in srgb, var(--st-lit) 24%, transparent), transparent 72%),
    color-mix(in srgb, var(--st-lit) 6%, var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07); animation: st-in var(--t-slow) var(--ease); }
.st-thanks[hidden] { display: none; }
.st-thanks .ic { background-color: transparent; box-shadow: none; border-radius: 0; filter: drop-shadow(0 3px 0 rgba(0,0,0,.28)); }
.st-thanks-t { margin: 0; max-width: none; font: 600 22px/1.25 var(--display); letter-spacing: .015em; color: var(--text); }
.st-thanks-l { margin: 4px 0 0; max-width: none; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.st-thanks-l .st-g { font-weight: 600; }
@keyframes st-in { from { opacity: 0; transform: translateY(6px); } }

/* ---- the packs: four across, two by two under 900 ---- */
.st-packs { --gem: 96px; list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); }
.st-packs--1, .st-packs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
.st-packs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 920px; }
.st-pack { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; max-width: none; }

/* the tile: the Spark icon in a pile, lit from below in the Spark's own colour */
.st-art { --lit: 30%; position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--st-lit) 26%, var(--border));
  background:
    radial-gradient(34% 26% at 50% 70%, color-mix(in srgb, var(--st-lit) calc(var(--lit) * 1.5), transparent), transparent 100%),
    radial-gradient(78% 70% at 50% 66%, color-mix(in srgb, var(--st-lit) var(--lit), transparent), transparent 74%),
    linear-gradient(180deg, color-mix(in srgb, var(--st-lit) 9%, var(--surface)), color-mix(in srgb, var(--st-lit) 4%, var(--bg-raised)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  transition: border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease); }
.st-art::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 17%; height: 9%; border-radius: 50%; background: rgba(0,0,0,.42); filter: blur(7px); }
.st-pile { position: relative; z-index: 1; display: block; width: var(--gem); height: var(--gem); transition: transform var(--t-slow) var(--ease); }
.st-pile .ic { position: absolute; left: 0; bottom: 0; --s: var(--gem) !important; border-radius: 0; background-color: transparent; box-shadow: none;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.28)); }
/* a bigger pack throws more light */
.st-pack--2 .st-art { --lit: 36%; }
.st-pack--3 .st-art { --lit: 42%; }
.st-pack--4 .st-art { --lit: 50%; }
/* two: side by side, the second in front */
.st-art--2 .st-pile { width: calc(var(--gem) * 1.6); }
.st-art--2 .ic:nth-child(1) { left: 0; bottom: calc(var(--gem) * .1); }
.st-art--2 .ic:nth-child(2) { left: calc(var(--gem) * .6); }
/* three: one behind, two in front */
.st-art--3 .st-pile { width: calc(var(--gem) * 1.7); height: calc(var(--gem) * 1.4); }
.st-art--3 .ic:nth-child(1) { left: calc(var(--gem) * .35); bottom: calc(var(--gem) * .4); }
.st-art--3 .ic:nth-child(2) { left: 0; }
.st-art--3 .ic:nth-child(3) { left: calc(var(--gem) * .7); }
/* four: two behind, two in front */
.st-art--4 .st-pile { width: calc(var(--gem) * 1.9); height: calc(var(--gem) * 1.4); }
.st-art--4 .ic:nth-child(1) { left: calc(var(--gem) * .15); bottom: calc(var(--gem) * .4); }
.st-art--4 .ic:nth-child(2) { left: calc(var(--gem) * .8); bottom: calc(var(--gem) * .4); }
.st-art--4 .ic:nth-child(3) { left: 0; }
.st-art--4 .ic:nth-child(4) { left: calc(var(--gem) * .9); }
/* five: two behind, three in front */
.st-art--5 .st-pile { width: calc(var(--gem) * 2.2); height: calc(var(--gem) * 1.4); }
.st-art--5 .ic:nth-child(1) { left: calc(var(--gem) * .3); bottom: calc(var(--gem) * .4); }
.st-art--5 .ic:nth-child(2) { left: calc(var(--gem) * .9); bottom: calc(var(--gem) * .4); }
.st-art--5 .ic:nth-child(3) { left: 0; }
.st-art--5 .ic:nth-child(4) { left: calc(var(--gem) * .6); }
.st-art--5 .ic:nth-child(5) { left: calc(var(--gem) * 1.2); }

.st-cap { padding: var(--sp-4) 2px var(--sp-3); }
.st-name { margin: 0; font: 600 24px/1.15 var(--display); letter-spacing: .015em; color: var(--text); }
.st-for { margin: 6px 0 0; max-width: none; color: var(--text-2); font-size: 14px; line-height: 1.45; text-wrap: balance; }

/* the one button of a pack: Buy on the left, the price on the right; it covers the whole tile, and the tile under the pointer is the one lit */
.st-buy { margin-top: auto; width: 100%; justify-content: space-between; padding: 0 var(--sp-4); font-variant-numeric: tabular-nums; }
.st-buy::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.st-buy-p { font-weight: 600; }
.st-pack:has(.st-buy:enabled):hover .st-art, .st-pack:has(.st-buy:focus-visible) .st-art, .st-pack:has(.st-buy--busy) .st-art {
  border-color: color-mix(in srgb, var(--st-lit) 55%, transparent); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 16px 36px color-mix(in srgb, var(--st-lit) 14%, transparent); }
.st-pack:has(.st-buy:enabled):hover .st-pile, .st-pack:has(.st-buy--busy) .st-pile { transform: translateY(-3px); }
.st-pack:hover .st-buy:enabled, .st-buy:focus-visible, .st-buy--busy { background: var(--ember); border-color: var(--ember); color: #1A0D05; box-shadow: 0 8px 24px rgba(255,106,26,.28); }
/* while one pack's payment window is opening: that button says so, and the others wait */
.st-buy:disabled { cursor: default; }
.st-buy:disabled:not(.st-buy--busy) { opacity: .45; }
.st-buy--busy .st-buy-w::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: st-dots 1.2s steps(1, end) infinite; }
@keyframes st-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
/* without JS nothing can be bought here: a pack shows its price alone, and nothing looks like a button */
html:not(.js) .st-buy { pointer-events: none; justify-content: flex-end; padding: 0 2px; border-color: transparent; }
html:not(.js) .st-buy-w { display: none; }
/* Tebex's payment window, over the page: the House's own dark behind it */
body { --tebex-js-lightbox-bg: rgba(13,10,8,.88); }

/* ---- how it works: one ruled strip, the number a plain numeral in ember (as the homepage's steps) ---- */
.st-steps { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
.st-step { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: 4px var(--sp-4); margin: 0; max-width: none; padding: var(--sp-5) 24px;
  border-left: 1px solid var(--border); }
.st-step:first-child { padding-left: 0; border-left: 0; }
.st-step-n { grid-row: 1 / span 2; font: 800 28px/1 var(--display); color: var(--ember); font-variant-numeric: tabular-nums; }
.st-step-t { margin: 0; font-size: 18px; line-height: 1.3; }
.st-step-l { margin: 0; max-width: none; color: var(--text-2); font-size: 15px; line-height: 1.5; }

/* ---- what Sparks buy beside the promise ---- */
.st-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--sp-8); align-items: start; }
@media (min-width: 1000px) { .st-two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.st-two p { max-width: 62ch; }
.st-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
.st-row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 0 var(--sp-4); min-height: 68px; margin: 0; max-width: none; padding: 10px 0; }
.st-row + .st-row { border-top: 1px solid var(--border); }
.st-row .ic { background-color: transparent; box-shadow: none; border-radius: 0; }
.st-row-t { margin: 0; font: 600 17px/1.3 var(--sans); letter-spacing: 0; }
.st-row-t a { color: var(--text); text-decoration: none; }
.st-row-t a::after { content: ""; position: absolute; inset: 0; }
.st-row:hover .st-row-t a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.st-row-l { margin: 2px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.st-row-c { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin: 0; font-size: 14px; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-row-n { color: var(--text-3); font-size: 13px; }
.st-row-p { color: var(--text-2); }
.st-row-p .st-g { font-weight: 600; }

/* Tebex's seller clause: small print, since the words are Tebex's and not the House's */
.st-terms { margin: 0; color: var(--text-3); font-size: 13.5px; line-height: 1.6; }
.st-terms a { color: var(--text-2); overflow-wrap: anywhere; }

/* a link that leads out of a section: words and an arrow (the homepage's .hm-go) */
.st-more { margin: var(--sp-3) 0 0; max-width: none; }
.st-more--row { display: flex; flex-wrap: wrap; gap: 0 var(--sp-6); }
.st-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 15px/1.3 var(--sans); color: var(--text); text-decoration: underline;
  text-decoration-color: var(--border-strong); text-decoration-thickness: 1px; text-underline-offset: .28em; }
.st-go::after { content: "\2192"; color: var(--ember); transition: transform var(--t-mid) var(--ease); }
.st-go:hover { text-decoration-color: var(--ember); }
.st-go:hover::after { transform: translateX(3px); }

@media (max-width: 900px) {
  .st-packs, .st-packs--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .st-steps { grid-template-columns: minmax(0, 1fr); }
  .st-step { padding: var(--sp-4) 0; border-left: 0; }
  .st-step + .st-step { border-top: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .st-packs { --gem: 48px; gap: var(--sp-5) var(--sp-3); }
  .st-name { font-size: 20px; }
  .st-cap { padding-top: var(--sp-3); }
  .st-buy { padding: 0 var(--sp-3); }
  .st-input { max-width: none; }
  .st-who strong { font-size: 22px; }
  .st-thanks-t { font-size: 20px; }
  .st-thanks { padding: var(--sp-4); gap: var(--sp-3); }
  .st-row { grid-template-columns: 40px minmax(0, 1fr); row-gap: 4px; }
  .st-row-c { grid-column: 2; flex-direction: row; align-items: baseline; gap: var(--sp-3); }
}
@media (min-width: 561px) and (max-width: 1100px) { .st-packs { --gem: 64px; } }
@media (prefers-reduced-motion: reduce) {
  .st-art, .st-pile, .st-go::after, .st-input { transition: none; }
  .st-pack:has(.st-buy):hover .st-art, .st-pack:has(.st-buy):hover .st-pile, .st-pack:has(.st-buy--busy) .st-art, .st-pack:has(.st-buy--busy) .st-pile { transform: none; }
  .st-go:hover::after { transform: none; }
  .st-thanks { animation: none; }
  .st-buy--busy .st-buy-w::after { animation: none; content: "..."; }
}
