/* shmoney dance: black, gold and money green, with bills falling behind everything. */

:root {
  /* A look is these colours: --a the main accent (gold), --b the second one (money green), --c1 to --c3 the surfaces. */
  --a: 255 201 60;
  --a-hi: 255 233 160;
  --gold-0: #fffbe6;
  --gold-1: #fff3b0;
  --gold-2: rgb(var(--a));
  --gold-3: #c98704;
  --a-text: #ffe9a8;
  --on-a: #2a1800;
  --b: 43 255 136;
  --b-hi: #e3fff0;
  --b-lo: #0c9b4e;
  --b-text: #b6ffd6;
  --on-b: #012b14;
  --b-deep: 3 20 12;
  --b-mid: 10 60 34;
  --c1: 13 26 18;
  --c2: 5 11 8;
  --c3: 28 46 35;
  --ink: #030705;
  --text: #fff8e1;
  --mist: #b9c7b3;
  --dim: #7f8e7b;
  --card: rgb(var(--c1) / 0.9);
  --raised: rgb(var(--c3) / 0.95);
  --line: rgb(var(--a) / 0.17);
  --gold: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 48%, var(--gold-3) 100%);
  /* The accent used all over the page (picked pictures, focus). */
  --ember: rgb(var(--a));
  --ember-soft: rgb(var(--a) / 0.13);
  --green: rgb(var(--b));
  --green-soft: rgb(var(--b) / 0.11);
  --red: #ff4d6d;
  --red-soft: rgb(255 77 109 / 0.13);
  --heavy: "Segoe UI Black", "Arial Black", Impact, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.5 "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1100px 620px at 8% -8%, rgb(var(--b) / 0.17), transparent 62%),
    radial-gradient(900px 520px at 100% 0%, rgb(var(--a) / 0.15), transparent 58%),
    radial-gradient(900px 700px at 50% 118%, rgb(var(--b) / 0.1), transparent 62%),
    repeating-linear-gradient(135deg, rgb(255 255 255 / 0.014) 0 2px, transparent 2px 9px),
    var(--ink);
  background-attachment: fixed;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

h1,
h2,
p {
  margin: 0;
}

::selection {
  background: var(--gold-2);
  color: #1a1000;
}

/* --- The falling money: hundred-dollar bills, coming down slowly ------------------------------------------- */
.bills {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bills i {
  --size: 1;
  position: absolute;
  top: -140px;
  left: var(--x);
  width: calc(165px * var(--size));
  height: calc(70px * var(--size));
  border-radius: calc(3px * var(--size));
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 235 100'><defs><linearGradient id='p' x1='0' x2='1'><stop offset='0' stop-color='%23d9e4cb'/><stop offset='.5' stop-color='%23eef3e3'/><stop offset='1' stop-color='%23d2dec4'/></linearGradient></defs><rect width='235' height='100' rx='3' fill='url(%23p)'/><rect x='4.5' y='4.5' width='226' height='91' rx='2' fill='none' stroke='%2346684e' stroke-width='1.8'/><rect x='8.5' y='8.5' width='218' height='83' fill='none' stroke='%2346684e' stroke-width='.6'/><rect x='132' y='4.5' width='9' height='91' fill='%232d5fb3' opacity='.9'/><path d='M132 14h9M132 26h9M132 38h9M132 50h9M132 62h9M132 74h9M132 86h9' stroke='%239cc0f2' stroke-width='1.6'/><ellipse cx='96' cy='50' rx='27' ry='34' fill='%23c5d3b8' stroke='%233c5943' stroke-width='1.6'/><ellipse cx='96' cy='50' rx='23' ry='30' fill='none' stroke='%233c5943' stroke-width='.5'/><circle cx='96' cy='40' r='10.5' fill='%23506b55'/><path d='M74 80c2-17 11-24 22-24s20 7 22 24z' fill='%23506b55'/><path d='M150 60c0-9 5-14 10-14s10 5 10 14z' fill='%23bf7436'/><rect x='151' y='60' width='18' height='5' rx='1' fill='%23bf7436'/><circle cx='196' cy='44' r='11' fill='none' stroke='%232c7a48' stroke-width='2.2'/><circle cx='196' cy='44' r='6' fill='%232c7a48' opacity='.55'/><circle cx='40' cy='52' r='10' fill='none' stroke='%23303a34' stroke-width='1.6'/><g font-family='Georgia,Times New Roman,serif' font-weight='700' fill='%2332503a'><text x='13' y='27' font-size='17'>100</text><text x='193' y='27' font-size='17'>100</text><text x='13' y='88' font-size='17'>100</text><text x='117.5' y='17' font-size='5.6' letter-spacing='.7' text-anchor='middle'>THE UNITED STATES OF AMERICA</text><text x='96' y='93.5' font-size='5.2' letter-spacing='.6' text-anchor='middle'>ONE HUNDRED DOLLARS</text></g><text x='181' y='90' font-family='Georgia,Times New Roman,serif' font-weight='700' font-size='27' fill='%23b8822e'>100</text></svg>") center / 100% 100% no-repeat;
  box-shadow: 0 12px 26px rgb(0 0 0 / 0.5);
  opacity: var(--fade, 0.6);
  filter: blur(var(--blur, 0));
  animation: fall var(--time, 60s) linear var(--wait, 0s) infinite;
  will-change: transform;
}

/* A slow drift with a gentle turn: no tumbling. */
@keyframes fall {
  from {
    transform: translate3d(0, -14vh, 0) rotate(var(--tilt, -10deg));
  }
  to {
    transform: translate3d(var(--drift, 40px), 124vh, 0) rotate(var(--turn, 12deg));
  }
}

.bills i:nth-child(1) { --x: 3%; --size: 1.05; --time: 58s; --wait: -9s; --tilt: -14deg; --turn: 8deg; --drift: 60px; --fade: 0.75; }
.bills i:nth-child(2) { --x: 12%; --size: 0.6; --time: 86s; --wait: -52s; --tilt: 9deg; --turn: -12deg; --drift: -30px; --fade: 0.42; --blur: 1.5px; }
.bills i:nth-child(3) { --x: 21%; --size: 0.85; --time: 66s; --wait: -31s; --tilt: -6deg; --turn: 16deg; --drift: 40px; --fade: 0.62; }
.bills i:nth-child(4) { --x: 30%; --size: 0.5; --time: 96s; --wait: -74s; --tilt: 14deg; --turn: -4deg; --drift: 50px; --fade: 0.36; --blur: 2px; }
.bills i:nth-child(5) { --x: 39%; --size: 1.15; --time: 54s; --wait: -20s; --tilt: 10deg; --turn: -10deg; --drift: -50px; --fade: 0.7; }
.bills i:nth-child(6) { --x: 48%; --size: 0.7; --time: 78s; --wait: -43s; --tilt: -16deg; --turn: 6deg; --drift: 24px; --fade: 0.48; --blur: 1px; }
.bills i:nth-child(7) { --x: 57%; --size: 0.95; --time: 62s; --wait: -4s; --tilt: 4deg; --turn: 18deg; --drift: -40px; --fade: 0.66; }
.bills i:nth-child(8) { --x: 66%; --size: 0.55; --time: 92s; --wait: -63s; --tilt: -8deg; --turn: -14deg; --drift: 34px; --fade: 0.38; --blur: 2px; }
.bills i:nth-child(9) { --x: 74%; --size: 1.1; --time: 56s; --wait: -36s; --tilt: 13deg; --turn: -3deg; --drift: 56px; --fade: 0.72; }
.bills i:nth-child(10) { --x: 83%; --size: 0.75; --time: 74s; --wait: -14s; --tilt: -11deg; --turn: 14deg; --drift: -36px; --fade: 0.52; --blur: 1px; }
.bills i:nth-child(11) { --x: 91%; --size: 0.9; --time: 68s; --wait: -48s; --tilt: 6deg; --turn: -16deg; --drift: -60px; --fade: 0.6; }
.bills i:nth-child(12) { --x: 8%; --size: 0.65; --time: 88s; --wait: -27s; --tilt: 16deg; --turn: 2deg; --drift: 70px; --fade: 0.42; --blur: 1.5px; }
.bills i:nth-child(13) { --x: 52%; --size: 0.58; --time: 94s; --wait: -81s; --tilt: -3deg; --turn: 15deg; --drift: -24px; --fade: 0.38; --blur: 2px; }
.bills i:nth-child(14) { --x: 88%; --size: 1; --time: 64s; --wait: -57s; --tilt: -15deg; --turn: 9deg; --drift: -50px; --fade: 0.64; }

@media (max-width: 760px) {
  .bills i:nth-child(n + 8) {
    display: none;
  }
}

/* --- Top bar and ticker -------------------------------------------------------------------------------------- */
#top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 12px 26px;
  background: linear-gradient(180deg, rgb(var(--c2) / 0.97), rgb(var(--c1) / 0.94));
  border-bottom: 1px solid rgb(var(--a) / 0.28);
  box-shadow: 0 12px 40px -18px rgb(var(--a) / 0.45);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font: italic 900 25px/1 var(--heavy);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(100deg, var(--gold-3) 0%, var(--gold-2) 22%, var(--gold-0) 42%, var(--gold-2) 62%, var(--gold-3) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 0 rgb(0 0 0 / 0.7)) drop-shadow(0 0 18px rgb(var(--a) / 0.35));
  animation: shine 4.5s linear infinite;
}

.logo span {
  color: var(--green);
  -webkit-text-fill-color: var(--green);
  text-shadow: 0 0 18px rgb(var(--b) / 0.65);
}

@keyframes shine {
  from {
    background-position: 110% 0;
  }
  to {
    background-position: -110% 0;
  }
}

.coin {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 900 20px/1 Georgia, serif;
  font-style: normal;
  color: var(--on-a);
  -webkit-text-fill-color: var(--on-a);
  background: radial-gradient(circle at 34% 28%, var(--gold-0) 0%, var(--gold-2) 46%, var(--gold-3) 100%);
  box-shadow:
    inset 0 0 0 2px rgb(255 255 255 / 0.5),
    inset 0 0 0 4px var(--gold-3),
    0 0 22px rgb(var(--a) / 0.6);
  animation: spin 3.2s ease-in-out infinite;
}

@keyframes spin {
  0%,
  55% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.tabs {
  display: flex;
  gap: 6px;
}

.tab {
  position: relative;
  padding: 8px 16px;
  border: 0;
  background: none;
  font: italic 900 14px/1 var(--heavy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.15s;
}

.tab:hover {
  color: var(--text);
}

.tab.on {
  color: var(--gold-2);
  text-shadow: 0 0 16px rgb(var(--a) / 0.55);
}

.tab.on::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
  box-shadow: 0 0 14px rgb(var(--a) / 0.9);
}

.top-right {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-bottom: 1px solid rgb(var(--a) / 0.14);
  background: linear-gradient(90deg, rgb(var(--a) / 0.1), rgb(var(--b) / 0.08), rgb(var(--a) / 0.1));
}

.ticker-run {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  padding: 6px 0;
  font: italic 900 11px/1 var(--heavy);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgb(var(--a-hi) / 0.8);
  animation: ticker 38s linear infinite;
}

.ticker-run b {
  color: var(--green);
  text-shadow: 0 0 10px rgb(var(--b) / 0.8);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* --- Pills ----------------------------------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(0 0 0 / 0.35);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}

button.pill {
  background: rgb(0 0 0 / 0.35);
}

.pill.good {
  border-color: rgb(var(--b) / 0.55);
  background: var(--green-soft);
  color: var(--b-text);
  box-shadow: 0 0 16px -4px rgb(var(--b) / 0.6);
}

.pill.warn {
  border-color: rgb(var(--a) / 0.55);
  background: var(--ember-soft);
  color: var(--a-text);
}

.pill.bad {
  border-color: rgb(255 77 109 / 0.6);
  background: var(--red-soft);
  color: #ffc2cd;
}

/* The cash counter. */
.pill.spend {
  padding: 6px 14px;
  border-color: rgb(var(--b) / 0.4);
  background: linear-gradient(180deg, rgb(var(--b-deep) / 0.95), rgb(var(--b-deep) / 0.95));
  font-variant-numeric: tabular-nums;
  color: var(--mist);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.pill.spend:hover {
  border-color: var(--green);
  box-shadow: 0 0 22px -4px rgb(var(--b) / 0.7);
}

.pill.spend b {
  font-size: 13px;
  color: var(--green);
  text-shadow: 0 0 12px rgb(var(--b) / 0.75);
}

.pill.spend.bad {
  border-color: rgb(255 77 109 / 0.7);
}

.pill.spend.bad b {
  color: #ff8fa3;
  text-shadow: 0 0 12px rgb(255 77 109 / 0.7);
}

/* --- Layout, cards ------------------------------------------------------------------------------------------- */
main {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: 22px 26px 130px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

main > div:empty {
  display: none;
}

.card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgb(var(--c1) / 0.84), rgb(var(--c2) / 0.88));
  box-shadow:
    0 34px 80px -44px rgb(0 0 0 / 0.95),
    inset 0 1px 0 rgb(255 255 255 / 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* A gold thread along the top of every card. */
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 26px;
  right: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--a-hi) / 0.9), transparent);
  pointer-events: none;
}

.card.complete {
  border-color: rgb(var(--b) / 0.6);
  box-shadow:
    0 0 44px -14px rgb(var(--b) / 0.6),
    inset 0 1px 0 rgb(255 255 255 / 0.06);
}

.card.complete::before {
  background: linear-gradient(90deg, transparent, rgb(var(--b) / 0.95), transparent);
}

.card h2 {
  font: italic 900 21px/1.15 var(--heavy);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: transparent;
  background: var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 0 rgb(0 0 0 / 0.65));
}

.sub {
  color: var(--mist);
  font-size: 14px;
}

.sub b,
.small b {
  color: var(--text);
}

.small {
  font-size: 12px;
  color: var(--dim);
}

.small.cost {
  color: var(--mist);
}

.small.cost b {
  color: var(--green);
  text-shadow: 0 0 10px rgb(var(--b) / 0.5);
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.spread {
  justify-content: space-between;
}

.push {
  margin-left: auto;
}

/* --- Buttons and fields -------------------------------------------------------------------------------------- */
.btn {
  position: relative;
  overflow: hidden;
  padding: 10px 18px;
  border: 1px solid rgb(var(--a) / 0.3);
  border-radius: 12px;
  background: linear-gradient(180deg, rgb(var(--c3) / 0.95), rgb(var(--c1) / 0.95));
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    transform 0.12s,
    border-color 0.12s,
    box-shadow 0.12s,
    filter 0.12s;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--gold-2);
  box-shadow: 0 10px 26px -12px rgb(var(--a) / 0.75);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

/* The light that sweeps across a button under the mouse. */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.5), transparent);
  opacity: 0;
  pointer-events: none;
}

.btn:hover:not(:disabled)::after {
  opacity: 1;
  left: 130%;
  transition: left 0.55s ease;
}

.btn.primary {
  border-color: var(--gold-0);
  background: var(--gold);
  color: var(--on-a);
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.45);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.7),
    inset 0 -2px 0 rgb(120 70 0 / 0.35),
    0 12px 30px -12px rgb(var(--a) / 0.9);
}

.btn.primary:hover:not(:disabled) {
  filter: brightness(1.08) saturate(1.1);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.7),
    inset 0 -2px 0 rgb(120 70 0 / 0.35),
    0 16px 40px -12px rgb(var(--a) / 1);
}

.btn.mini {
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 11px;
}

.btn.danger {
  border-color: rgb(255 77 109 / 0.6);
  background: linear-gradient(180deg, rgb(70 12 26 / 0.9), rgb(38 6 14 / 0.9));
  color: #ffc2cd;
}

.btn.danger:hover:not(:disabled) {
  border-color: var(--red);
  box-shadow: 0 10px 26px -12px rgb(255 77 109 / 0.9);
}

/* The way to the Batches page: the bag. */
.btn.bag {
  padding: 14px 22px;
  border-color: rgb(var(--b) / 0.65);
  background: linear-gradient(180deg, rgb(var(--b-mid) / 0.95), rgb(var(--b-deep) / 0.95));
  font: italic 900 16px/1 var(--heavy);
  color: var(--b-text);
  box-shadow: 0 0 30px -10px rgb(var(--b) / 0.8);
}

.btn.bag:hover:not(:disabled) {
  border-color: var(--green);
  box-shadow: 0 0 40px -8px rgb(var(--b) / 1);
}

.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--mist);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(var(--a) / 0.5);
}

.link:hover {
  color: var(--gold-2);
}

.field {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgb(0 0 0 / 0.55);
  outline: none;
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}

.field:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgb(var(--a) / 0.16);
}

.field::placeholder {
  color: var(--dim);
}

select.field option {
  background: rgb(var(--c1));
}

textarea.field {
  resize: vertical;
  line-height: 1.5;
}

.field.narrow {
  width: 92px;
  text-align: center;
  font-weight: 800;
}

label.lab {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mist);
}

label.lab .field {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.note {
  padding: 12px 16px;
  border: 1px solid;
  border-radius: 13px;
  font-size: 14px;
}

.note.ok {
  border-color: rgb(var(--b) / 0.45);
  background: var(--green-soft);
  color: var(--b-text);
  box-shadow: 0 0 28px -12px rgb(var(--b) / 0.7);
}

.note.error {
  border-color: rgb(255 77 109 / 0.5);
  background: var(--red-soft);
  color: #ffc2cd;
}

.note.warn {
  border-color: rgb(var(--a) / 0.45);
  background: var(--ember-soft);
  color: var(--a-text);
}

details > summary {
  cursor: pointer;
  font-weight: 800;
}

details > summary span {
  font-weight: 400;
  color: var(--dim);
}

.online-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(0 0 0 / 0.4);
}

/* --- The model picker ---------------------------------------------------------------------------------------- */
.models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.model {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(0 0 0 / 0.45);
  text-align: left;
  transition:
    transform 0.12s,
    border-color 0.12s,
    box-shadow 0.12s;
}

.model:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgb(var(--a) / 0.7);
}

.model.on {
  border-color: var(--gold-2);
  background: linear-gradient(180deg, rgb(var(--a) / 0.16), rgb(0 0 0 / 0.45));
  box-shadow:
    0 0 34px -12px rgb(var(--a) / 0.9),
    inset 0 1px 0 rgb(255 255 255 / 0.1);
}

.model-name {
  font: italic 900 15px/1.2 var(--heavy);
  text-transform: uppercase;
  color: var(--text);
}

.model-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}

.model-price {
  margin-top: 6px;
  font: 900 26px/1 var(--heavy);
  font-variant-numeric: tabular-nums;
  color: var(--green);
  text-shadow: 0 0 16px rgb(var(--b) / 0.6);
}

.model-on {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-a);
}

.chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(0 0 0 / 0.45);
  font-size: 12px;
  font-weight: 800;
  color: var(--mist);
}

.chip b {
  margin-left: 4px;
  color: var(--green);
}

.chip:hover:not(:disabled) {
  border-color: rgb(var(--a) / 0.7);
}

.chip.on {
  border-color: var(--gold-2);
  background: var(--ember-soft);
  color: var(--text);
  box-shadow: 0 0 20px -8px rgb(var(--a) / 0.9);
}

/* --- Spending panel ------------------------------------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgb(var(--b) / 0.25);
  border-radius: 14px;
  background: linear-gradient(180deg, rgb(var(--b-deep) / 0.9), rgb(0 0 0 / 0.5));
}

.stat .big {
  color: var(--green);
  text-shadow: 0 0 16px rgb(var(--b) / 0.6);
}

.big {
  font: 900 30px/1 var(--heavy);
  font-variant-numeric: tabular-nums;
  color: var(--gold-2);
  text-shadow: 0 0 18px rgb(var(--a) / 0.45);
}

/* --- Reference pictures and prompts -------------------------------------------------------------------------- */
.refs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ref {
  position: relative;
  width: 120px;
  aspect-ratio: 9 / 16;
  border: 2px dashed rgb(var(--a) / 0.35);
  border-radius: 14px;
  background: rgb(0 0 0 / 0.45);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--mist);
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}

.ref:hover {
  border-color: var(--gold-2);
  box-shadow: 0 0 26px -10px rgb(var(--a) / 0.9);
}

.ref.has {
  border-style: solid;
  padding: 0;
}

.ref img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ref-wrap {
  position: relative;
}

.prompt-list {
  max-height: 180px;
  overflow: auto;
  margin: 0;
  padding: 8px 12px 8px 34px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgb(0 0 0 / 0.5);
  font-size: 12px;
  color: var(--mist);
}

.prompt-list li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.runs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.run {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgb(0 0 0 / 0.45);
  font-size: 13px;
}

.run .what {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--mist);
}

.run .err {
  color: #ff9fb1;
  white-space: normal;
}

/* --- Picture tiles ------------------------------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.seven {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 900px) {
  .seven {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pair-thumb {
  width: 30px;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--raised);
}

.pair-thumb:hover {
  border-color: var(--gold-2);
}

.pair-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pair-big {
  display: grid;
  grid-template-columns: repeat(2, 130px);
  gap: 8px;
}

.tile-wrap {
  position: relative;
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--raised);
  overflow: hidden;
  outline: 2px solid transparent;
  outline-offset: 0;
  transition:
    outline-color 0.12s,
    opacity 0.12s,
    transform 0.14s,
    box-shadow 0.14s;
}

.tile:hover {
  outline-color: rgb(var(--a-hi) / 0.6);
  transform: translateY(-2px);
}

.tile.on {
  outline: 3px solid var(--gold-2);
  box-shadow: 0 0 34px -6px rgb(var(--a) / 0.9);
}

.tile.dim {
  opacity: 0.4;
}

.tile.result {
  outline: 3px solid var(--green);
  box-shadow: 0 0 34px -6px rgb(var(--b) / 0.85);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.empty-tile {
  aspect-ratio: 9 / 16;
  border: 2px dashed rgb(var(--a) / 0.3);
  border-radius: 12px;
  background: rgb(0 0 0 / 0.35);
  display: grid;
  place-items: center;
  align-content: center;
  padding: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--mist);
}

.empty-tile.making {
  border-color: rgb(var(--a) / 0.6);
  color: var(--a-text);
  background: linear-gradient(110deg, rgb(var(--a) / 0.05) 30%, rgb(var(--a) / 0.2) 50%, rgb(var(--a) / 0.05) 70%);
  background-size: 220% 100%;
  animation: shine 1.6s linear infinite;
}

.num,
.tick {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, var(--gold-0), var(--gold-2) 50%, var(--gold-3));
  color: var(--on-a);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 0 2px rgb(0 0 0 / 0.5);
}

.tick {
  background: radial-gradient(circle at 34% 28%, var(--b-hi), var(--green) 55%, var(--b-lo));
  color: var(--on-b);
}

.main-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(100deg, var(--gold-3), var(--gold-2) 30%, var(--gold-0) 50%, var(--gold-2) 70%, var(--gold-3));
  background-size: 220% 100%;
  animation: shine 2.6s linear infinite;
  color: var(--on-a);
  font: italic 900 11px/1.2 var(--heavy);
  letter-spacing: 0.08em;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.65),
    0 0 18px rgb(var(--a) / 0.7);
}

.label {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgb(0 0 0 / 0.78);
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--b-text);
}

.label.ember {
  color: var(--a-text);
}

.corner {
  position: absolute;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(var(--a) / 0.35);
  border-radius: 8px;
  background: rgb(0 0 0 / 0.72);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.12s;
}

.tile-wrap:hover .corner,
.corner:focus-visible {
  opacity: 1;
}

.corner:hover {
  background: #000;
  border-color: var(--gold-2);
}

.corner.tl {
  top: 7px;
  left: 7px;
}

.corner.tl2 {
  top: 41px;
  left: 7px;
}

.corner.x {
  right: 7px;
  bottom: 7px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #e11d48;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  opacity: 1;
  box-shadow: 0 0 0 2px rgb(0 0 0 / 0.55);
  transition: transform 0.12s;
}

.corner.x:hover {
  background: var(--red);
  transform: scale(1.14);
}

/* --- The bar at the bottom ----------------------------------------------------------------------------------- */
#bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

#bar .inner {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 22px;
  border: 1px solid rgb(var(--a) / 0.55);
  border-radius: 18px;
  background: linear-gradient(180deg, rgb(var(--c1) / 0.98), rgb(var(--c2) / 0.98));
  box-shadow:
    0 24px 60px -18px rgb(0 0 0 / 0.95),
    0 0 44px -14px rgb(var(--a) / 0.8);
  font-size: 14px;
  color: var(--mist);
}

#bar b {
  color: var(--gold-2);
}

#bar .gone {
  color: #ff9fb1;
}

#bar .sep {
  width: 1px;
  height: 18px;
  background: var(--line);
}

/* --- Full preview -------------------------------------------------------------------------------------------- */
#overlay:empty {
  display: none;
}

.preview {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(900px 600px at 50% 40%, rgb(var(--a) / 0.1), transparent 65%),
    rgb(0 3 1 / 0.95);
}

.preview .stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 16px 8px;
}

.preview .shot {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
}

.preview .shot img {
  max-height: 100%;
  max-width: min(78vw, 1000px);
  border-radius: 16px;
  outline: 3px solid transparent;
  box-shadow: 0 30px 90px -30px rgb(0 0 0 / 1);
}

.preview .shot.on img {
  outline-color: var(--gold-2);
  box-shadow: 0 0 70px -14px rgb(var(--a) / 0.9);
}

.preview .arrow,
.preview .close {
  border: 1px solid rgb(var(--a) / 0.4);
  border-radius: 50%;
  background: rgb(8 17 12 / 0.95);
  color: var(--gold-2);
}

.preview .arrow {
  flex: none;
  width: 54px;
  height: 54px;
  font-size: 26px;
}

.preview .arrow:hover:not(:disabled),
.preview .close:hover {
  border-color: var(--gold-2);
  box-shadow: 0 0 26px -6px rgb(var(--a) / 0.9);
}

.preview .close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.preview .foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 16px 20px;
  color: var(--mist);
  font-size: 14px;
}

.preview .foot b {
  color: var(--gold-2);
}

/* --- Small screens, and people who'd rather nothing moved ---------------------------------------------------- */
@media (max-width: 700px) {
  #top {
    padding: 10px 14px;
  }

  main {
    padding: 16px 12px 130px;
  }

  .card {
    padding: 16px;
    border-radius: 18px;
  }

  .logo {
    font-size: 21px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  }

  .pair-big {
    grid-template-columns: repeat(2, 104px);
  }

  /* The counters get a row of their own and may wrap, so nothing runs off the side. */
  .top-right {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .pill {
    white-space: normal;
  }

  .models {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model {
    padding: 12px;
  }

  .model-price {
    font-size: 20px;
  }

  .model-on {
    position: static;
    align-self: flex-start;
    margin-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bills,
  .ticker {
    display: none;
  }

  .logo,
  .coin,
  .main-badge,
  .empty-tile.making {
    animation: none;
  }
}

/* --- Picking a look ------------------------------------------------------------------------------------------- */
.looks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

/* A small sample of one look, in that look's own colours (set on the button itself). */
.look {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px;
  border: 2px solid rgb(var(--la) / 0.35);
  border-radius: 16px;
  background:
    radial-gradient(160px 90px at 0% 0%, rgb(var(--lb) / 0.28), transparent 70%),
    radial-gradient(160px 90px at 100% 0%, rgb(var(--la) / 0.26), transparent 70%),
    linear-gradient(180deg, rgb(var(--l1)), rgb(var(--l2)));
  text-align: left;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}

.look:hover {
  transform: translateY(-2px);
}

.look.on {
  border-color: rgb(var(--la));
  box-shadow: 0 0 34px -10px rgb(var(--la) / 0.95);
}

.look-name {
  font: italic 900 18px/1 var(--heavy);
  text-transform: uppercase;
  color: rgb(var(--la));
  text-shadow: 0 0 16px rgb(var(--la) / 0.55);
}

.look-what {
  font-size: 12px;
  color: rgb(255 255 255 / 0.72);
}

.look-chips {
  display: flex;
  align-items: center;
  gap: 6px;
}

.look-chips span {
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.look-chips span:first-child {
  background: rgb(var(--la));
  color: rgb(var(--l2));
}

.look-chips span:last-child {
  color: rgb(var(--lb));
  text-shadow: 0 0 10px rgb(var(--lb) / 0.7);
}

/* ==================================================================================================================
   The other looks. Cash (above) is the main one; each of these changes the whole page: its own artwork behind
   everything, its own lettering, its own shapes. A look is put on with data-theme on <html> (the Look button).
   ================================================================================================================== */

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  to {
    transform: translateY(-16px);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.08;
    transform: scale(0.35) rotate(0deg);
  }
  50% {
    opacity: 0.95;
    transform: scale(1) rotate(45deg);
  }
}

/* ------------------------------------------------------------------------------------------------------------------
   VAULT: inside the bank. Steel plates with rivets, hazard tape, stencil lettering, a vault door slowly turning and
   gold bars stacked in the corner. Gold coins come down.
   ------------------------------------------------------------------------------------------------------------------ */
:root[data-theme="vault"] {
  --b: 255 222 130;
  --b-hi: #fffbe6;
  --b-lo: #b07a08;
  --b-text: #fff0c0;
  --on-b: #2a1800;
  --b-deep: 26 24 18;
  --b-mid: 84 66 20;
  --c1: 58 63 70;
  --c2: 28 31 35;
  --c3: 78 85 94;
  --ink: #0f1113;
  --text: #f6f2e4;
  --mist: #c8cdd4;
  --dim: #8d949d;
  --heavy: "Black Ops One", Impact, "Arial Black", sans-serif;
}

:root[data-theme="vault"] body {
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.03) 0 1px, transparent 1px 3px),
    radial-gradient(1000px 700px at 82% 45%, rgb(255 201 60 / 0.12), transparent 60%),
    linear-gradient(180deg, #2d3137, #111315);
  background-attachment: fixed;
}

:root[data-theme="vault"] body::before {
  content: "";
  position: fixed;
  z-index: 0;
  top: 50%;
  right: -190px;
  width: 780px;
  height: 780px;
  margin-top: -390px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><circle cx='200' cy='200' r='196' fill='%233b4047' stroke='%23858d97' stroke-width='5'/><circle cx='200' cy='200' r='166' fill='%232a2e33' stroke='%23666e77' stroke-width='3'/><circle cx='381.0' cy='200.0' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='372.1' cy='255.9' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='346.4' cy='306.4' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='306.4' cy='346.4' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='255.9' cy='372.1' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='200.0' cy='381.0' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='144.1' cy='372.1' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='93.6' cy='346.4' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='53.6' cy='306.4' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='27.9' cy='255.9' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='19.0' cy='200.0' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='27.9' cy='144.1' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='53.6' cy='93.6' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='93.6' cy='53.6' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='144.1' cy='27.9' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='200.0' cy='19.0' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='255.9' cy='27.9' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='306.4' cy='53.6' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='346.4' cy='93.6' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='372.1' cy='144.1' r='6.5' fill='%239aa2ab' stroke='%231c1f22' stroke-width='2'/><circle cx='200' cy='200' r='130' fill='%23484e56' stroke='%239099a3' stroke-width='3'/><circle cx='200' cy='200' r='106' fill='none' stroke='%2333383e' stroke-width='10' stroke-dasharray='4 10'/><circle cx='200' cy='200' r='78' fill='none' stroke='%23e0aa2e' stroke-width='10'/><line x1='200' y1='200' x2='278.0' y2='200.0' stroke='%23e0aa2e' stroke-width='9' stroke-linecap='round'/><circle cx='278.0' cy='200.0' r='10' fill='%23ffd24a' stroke='%238a5c06' stroke-width='2'/><line x1='200' y1='200' x2='255.2' y2='255.2' stroke='%23e0aa2e' stroke-width='9' stroke-linecap='round'/><circle cx='255.2' cy='255.2' r='10' fill='%23ffd24a' stroke='%238a5c06' stroke-width='2'/><line x1='200' y1='200' x2='200.0' y2='278.0' stroke='%23e0aa2e' stroke-width='9' stroke-linecap='round'/><circle cx='200.0' cy='278.0' r='10' fill='%23ffd24a' stroke='%238a5c06' stroke-width='2'/><line x1='200' y1='200' x2='144.8' y2='255.2' stroke='%23e0aa2e' stroke-width='9' stroke-linecap='round'/><circle cx='144.8' cy='255.2' r='10' fill='%23ffd24a' stroke='%238a5c06' stroke-width='2'/><line x1='200' y1='200' x2='122.0' y2='200.0' stroke='%23e0aa2e' stroke-width='9' stroke-linecap='round'/><circle cx='122.0' cy='200.0' r='10' fill='%23ffd24a' stroke='%238a5c06' stroke-width='2'/><line x1='200' y1='200' x2='144.8' y2='144.8' stroke='%23e0aa2e' stroke-width='9' stroke-linecap='round'/><circle cx='144.8' cy='144.8' r='10' fill='%23ffd24a' stroke='%238a5c06' stroke-width='2'/><line x1='200' y1='200' x2='200.0' y2='122.0' stroke='%23e0aa2e' stroke-width='9' stroke-linecap='round'/><circle cx='200.0' cy='122.0' r='10' fill='%23ffd24a' stroke='%238a5c06' stroke-width='2'/><line x1='200' y1='200' x2='255.2' y2='144.8' stroke='%23e0aa2e' stroke-width='9' stroke-linecap='round'/><circle cx='255.2' cy='144.8' r='10' fill='%23ffd24a' stroke='%238a5c06' stroke-width='2'/><circle cx='200' cy='200' r='24' fill='%23ffd24a' stroke='%238a5c06' stroke-width='3'/></svg>") center / contain no-repeat;
  opacity: 0.6;
  pointer-events: none;
  animation: turn 240s linear infinite;
}

:root[data-theme="vault"] body::after {
  content: "";
  position: fixed;
  z-index: 0;
  left: 18px;
  bottom: 0;
  width: 364px;
  height: 150px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 364 150'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23fff0a0'/><stop offset='.45' stop-color='%23ffc93c'/><stop offset='1' stop-color='%23b3760a'/></linearGradient></defs><polygon points='16,102 108,102 122,148 2,148' fill='url(%23g)' stroke='%237a5206' stroke-width='2'/><polygon points='20,106 104,106 107,116 17,116' fill='%23fff6c4' opacity='.75'/><polygon points='136,102 228,102 242,148 122,148' fill='url(%23g)' stroke='%237a5206' stroke-width='2'/><polygon points='140,106 224,106 227,116 137,116' fill='%23fff6c4' opacity='.75'/><polygon points='256,102 348,102 362,148 242,148' fill='url(%23g)' stroke='%237a5206' stroke-width='2'/><polygon points='260,106 344,106 347,116 257,116' fill='%23fff6c4' opacity='.75'/><polygon points='76,54 168,54 182,100 62,100' fill='url(%23g)' stroke='%237a5206' stroke-width='2'/><polygon points='80,58 164,58 167,68 77,68' fill='%23fff6c4' opacity='.75'/><polygon points='196,54 288,54 302,100 182,100' fill='url(%23g)' stroke='%237a5206' stroke-width='2'/><polygon points='200,58 284,58 287,68 197,68' fill='%23fff6c4' opacity='.75'/><polygon points='136,6 228,6 242,52 122,52' fill='url(%23g)' stroke='%237a5206' stroke-width='2'/><polygon points='140,10 224,10 227,20 137,20' fill='%23fff6c4' opacity='.75'/></svg>") center bottom / contain no-repeat;
  pointer-events: none;
}

:root[data-theme="vault"] .bills i {
  width: calc(60px * var(--size));
  height: calc(60px * var(--size));
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fffbe0 0%, #ffc93c 46%, #b9770a 100%);
  box-shadow:
    inset 0 0 0 calc(3px * var(--size)) rgb(255 255 255 / 0.45),
    inset 0 0 0 calc(7px * var(--size)) rgb(176 112 6 / 0.9),
    0 12px 26px rgb(0 0 0 / 0.55);
}

:root[data-theme="vault"] .bills i::before {
  content: "$";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 900 calc(32px * var(--size)) / 1 Georgia, "Times New Roman", serif;
  color: #6b4300;
}

:root[data-theme="vault"] #top {
  background: linear-gradient(180deg, #3a3f46, #1c1f23);
  border-bottom: 3px solid #0c0d0f;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    0 10px 30px -10px #000;
}

:root[data-theme="vault"] .ticker {
  background: repeating-linear-gradient(135deg, #ffc93c 0 14px, #15171a 14px 28px);
  border: 0;
}

:root[data-theme="vault"] .ticker-run {
  margin: 4px 0;
  background: #15171a;
  color: #ffc93c;
}

:root[data-theme="vault"] .card {
  padding: 28px 26px 24px;
  border: 1px solid #7c848e;
  border-radius: 6px;
  background:
    radial-gradient(circle at 14px 16px, #c8ced5 0 2.5px, #202327 3px 5px, transparent 5.5px),
    radial-gradient(circle at calc(100% - 14px) 16px, #c8ced5 0 2.5px, #202327 3px 5px, transparent 5.5px),
    radial-gradient(circle at 14px calc(100% - 12px), #c8ced5 0 2.5px, #202327 3px 5px, transparent 5.5px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 12px), #c8ced5 0 2.5px, #202327 3px 5px, transparent 5.5px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.028) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgb(66 72 80 / 0.95), rgb(32 35 40 / 0.97));
  box-shadow:
    0 30px 60px -30px #000,
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    inset 0 -1px 0 rgb(0 0 0 / 0.55);
}

/* Hazard tape along the top of every plate. */
:root[data-theme="vault"] .card::before {
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 5px 5px 0 0;
  background: repeating-linear-gradient(135deg, #ffc93c 0 12px, #15171a 12px 24px);
}

:root[data-theme="vault"] .card h2,
:root[data-theme="vault"] .logo,
:root[data-theme="vault"] .tab,
:root[data-theme="vault"] .btn,
:root[data-theme="vault"] .model-name {
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.07em;
}

:root[data-theme="vault"] .btn,
:root[data-theme="vault"] .field,
:root[data-theme="vault"] .pill,
:root[data-theme="vault"] .chip,
:root[data-theme="vault"] .tile,
:root[data-theme="vault"] .empty-tile,
:root[data-theme="vault"] .model,
:root[data-theme="vault"] .note,
:root[data-theme="vault"] .ref,
:root[data-theme="vault"] .stat,
:root[data-theme="vault"] .online-box,
:root[data-theme="vault"] .look {
  border-radius: 4px;
}

:root[data-theme="vault"] .btn {
  border-color: #949ca6;
  background: linear-gradient(180deg, #5b636d, #2f343a);
  font-family: var(--heavy);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.25),
    0 4px 0 #15171a;
}

/* A gold bar. */
:root[data-theme="vault"] .btn.primary {
  border-color: #fff3b0;
  background: linear-gradient(180deg, #fff3b0, #ffc93c 45%, #b9770a);
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.75),
    inset 0 -4px 0 rgb(110 64 0 / 0.45),
    0 5px 0 #6d4a05,
    0 16px 24px -10px #000;
}

/* ------------------------------------------------------------------------------------------------------------------
   ICE: the jeweller's. Cut-glass facets, one big diamond floating in the corner, stars that twinkle, cards with
   their corners cut off like gems, and tall engraved lettering.
   ------------------------------------------------------------------------------------------------------------------ */
:root[data-theme="ice"] {
  --a: 176 228 255;
  --a-hi: 232 247 255;
  --gold-0: #ffffff;
  --gold-1: #f2fbff;
  --gold-3: #5e9fc4;
  --a-text: #d8f1ff;
  --on-a: #04202e;
  --b: 96 214 255;
  --b-hi: #f0fbff;
  --b-lo: #1787b8;
  --b-text: #c9f0ff;
  --on-b: #021a26;
  --b-deep: 3 14 24;
  --b-mid: 10 48 74;
  --c1: 13 22 34;
  --c2: 5 9 16;
  --c3: 26 42 62;
  --ink: #03060b;
  --text: #f3faff;
  --mist: #b4c4d4;
  --dim: #7a8a9c;
  --heavy: "Cinzel", "Palatino Linotype", Georgia, serif;
}

:root[data-theme="ice"] body {
  background:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><polygon points='0,0 64,0 53,67' fill='%23ffffff' opacity='0.018'/><polygon points='0,0 53,67 0,50' fill='%2360d6ff' opacity='0.046'/><polygon points='64,0 131,0 112,56' fill='%23ffffff' opacity='0.021'/><polygon points='64,0 112,56 53,67' fill='%23ffffff' opacity='0.063'/><polygon points='131,0 175,0 188,56' fill='%23ffffff' opacity='0.043'/><polygon points='131,0 188,56 112,56' fill='%23ffffff' opacity='0.074'/><polygon points='175,0 240,0 240,63' fill='%23ffffff' opacity='0.065'/><polygon points='175,0 240,63 188,56' fill='%2360d6ff' opacity='0.081'/><polygon points='0,50 53,67 72,120' fill='%23ffffff' opacity='0.076'/><polygon points='0,50 72,120 0,129' fill='%23ffffff' opacity='0.051'/><polygon points='53,67 112,56 115,119' fill='%23ffffff' opacity='0.036'/><polygon points='53,67 115,119 72,120' fill='%2360d6ff' opacity='0.053'/><polygon points='112,56 188,56 179,122' fill='%2360d6ff' opacity='0.043'/><polygon points='112,56 179,122 115,119' fill='%23ffffff' opacity='0.081'/><polygon points='188,56 240,63 240,114' fill='%2360d6ff' opacity='0.028'/><polygon points='188,56 240,114 179,122' fill='%23ffffff' opacity='0.069'/><polygon points='0,129 72,120 50,187' fill='%23ffffff' opacity='0.018'/><polygon points='0,129 50,187 0,188' fill='%23ffffff' opacity='0.028'/><polygon points='72,120 115,119 108,175' fill='%2360d6ff' opacity='0.077'/><polygon points='72,120 108,175 50,187' fill='%2360d6ff' opacity='0.020'/><polygon points='115,119 179,122 178,181' fill='%2360d6ff' opacity='0.078'/><polygon points='115,119 178,181 108,175' fill='%23ffffff' opacity='0.018'/><polygon points='179,122 240,114 240,182' fill='%2360d6ff' opacity='0.038'/><polygon points='179,122 240,182 178,181' fill='%23ffffff' opacity='0.051'/><polygon points='0,188 50,187 64,240' fill='%23ffffff' opacity='0.066'/><polygon points='0,188 64,240 0,240' fill='%2360d6ff' opacity='0.023'/><polygon points='50,187 108,175 126,240' fill='%23ffffff' opacity='0.049'/><polygon points='50,187 126,240 64,240' fill='%23ffffff' opacity='0.022'/><polygon points='108,175 178,181 177,240' fill='%23ffffff' opacity='0.073'/><polygon points='108,175 177,240 126,240' fill='%23ffffff' opacity='0.021'/><polygon points='178,181 240,182 240,240' fill='%23ffffff' opacity='0.061'/><polygon points='178,181 240,240 177,240' fill='%23ffffff' opacity='0.064'/></svg>") 0 0 / 420px 420px,
    radial-gradient(900px 600px at 85% 10%, rgb(96 214 255 / 0.22), transparent 60%),
    radial-gradient(900px 700px at 0% 100%, rgb(176 228 255 / 0.12), transparent 60%),
    linear-gradient(160deg, #0b1626, #03060b 70%);
  background-attachment: fixed;
}

:root[data-theme="ice"] body::before {
  content: "";
  position: fixed;
  z-index: 0;
  top: 120px;
  right: 3%;
  width: 460px;
  height: 391px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 170'><g stroke='%23ffffff' stroke-opacity='.7' stroke-width='1.2' stroke-linejoin='round'><polygon points='40,10 5,60 60,60' fill='%237fcff5'/><polygon points='40,10 100,10 60,60' fill='%23d9f4ff'/><polygon points='100,10 60,60 140,60' fill='%23a8e2ff'/><polygon points='100,10 160,10 140,60' fill='%23eefaff'/><polygon points='160,10 140,60 195,60' fill='%236cc0ea'/><polygon points='5,60 60,60 100,165' fill='%234aa6d8'/><polygon points='60,60 140,60 100,165' fill='%238fd6fb'/><polygon points='140,60 195,60 100,165' fill='%233b93c6'/></g></svg>") center / contain no-repeat;
  opacity: 0.42;
  pointer-events: none;
  animation: float 9s ease-in-out infinite alternate;
}

/* Stars in place of the bills: they stay where they are and twinkle. */
:root[data-theme="ice"] .bills i {
  top: var(--y, 50%);
  width: calc(30px * var(--size));
  height: calc(30px * var(--size));
  border-radius: 0;
  background: #eafaff;
  clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%);
  box-shadow: none;
  filter: none;
  animation: twinkle calc(var(--time) / 11) ease-in-out var(--wait) infinite;
}

:root[data-theme="ice"] .bills i:nth-child(1) { --y: 12%; }
:root[data-theme="ice"] .bills i:nth-child(2) { --y: 64%; }
:root[data-theme="ice"] .bills i:nth-child(3) { --y: 34%; }
:root[data-theme="ice"] .bills i:nth-child(4) { --y: 82%; }
:root[data-theme="ice"] .bills i:nth-child(5) { --y: 20%; }
:root[data-theme="ice"] .bills i:nth-child(6) { --y: 54%; }
:root[data-theme="ice"] .bills i:nth-child(7) { --y: 8%; }
:root[data-theme="ice"] .bills i:nth-child(8) { --y: 44%; }
:root[data-theme="ice"] .bills i:nth-child(9) { --y: 72%; }
:root[data-theme="ice"] .bills i:nth-child(10) { --y: 28%; }
:root[data-theme="ice"] .bills i:nth-child(11) { --y: 90%; }
:root[data-theme="ice"] .bills i:nth-child(12) { --y: 48%; }
:root[data-theme="ice"] .bills i:nth-child(13) { --y: 16%; }
:root[data-theme="ice"] .bills i:nth-child(14) { --y: 60%; }

:root[data-theme="ice"] #top {
  background: linear-gradient(180deg, rgb(5 10 18 / 0.97), rgb(12 24 40 / 0.92));
  border-bottom: 1px solid rgb(255 255 255 / 0.45);
  box-shadow: 0 12px 40px -18px rgb(96 214 255 / 0.8);
}

:root[data-theme="ice"] .card {
  padding: 26px;
  border: 1px solid rgb(232 247 255 / 0.5);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.02) 36%, rgb(96 214 255 / 0.12)),
    linear-gradient(180deg, rgb(13 22 34 / 0.9), rgb(5 9 16 / 0.93));
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
}

:root[data-theme="ice"] .card h2,
:root[data-theme="ice"] .logo,
:root[data-theme="ice"] .tab,
:root[data-theme="ice"] .model-name {
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.14em;
}

:root[data-theme="ice"] .logo span {
  color: #7fe0ff;
  -webkit-text-fill-color: #7fe0ff;
}

:root[data-theme="ice"] .btn,
:root[data-theme="ice"] .chip,
:root[data-theme="ice"] .pill,
:root[data-theme="ice"] .field,
:root[data-theme="ice"] .note,
:root[data-theme="ice"] .model,
:root[data-theme="ice"] .stat,
:root[data-theme="ice"] .online-box,
:root[data-theme="ice"] .tile,
:root[data-theme="ice"] .empty-tile,
:root[data-theme="ice"] .ref,
:root[data-theme="ice"] .look {
  border-radius: 2px;
}

:root[data-theme="ice"] .btn {
  border-color: rgb(232 247 255 / 0.55);
  background: linear-gradient(135deg, rgb(255 255 255 / 0.16), rgb(96 214 255 / 0.08));
  font-family: var(--heavy);
  letter-spacing: 0.12em;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

:root[data-theme="ice"] .btn.primary {
  border-color: #fff;
  background: linear-gradient(135deg, #ffffff 0%, #c9efff 42%, #6fb8dc 100%);
  box-shadow: none;
}

/* ------------------------------------------------------------------------------------------------------------------
   VICE: 1984, by the beach. A striped sun going down over a neon grid, palm trees on both sides, neon-tube cards
   and a handwritten neon sign for a logo. Nothing falls here.
   ------------------------------------------------------------------------------------------------------------------ */
:root[data-theme="vice"] {
  --a: 255 86 214;
  --a-hi: 255 190 240;
  --gold-0: #fff0fc;
  --gold-1: #ffb3ee;
  --gold-3: #b3158f;
  --a-text: #ffc8f2;
  --on-a: #2a0022;
  --b: 0 236 255;
  --b-hi: #e6fdff;
  --b-lo: #0892a8;
  --b-text: #b8f8ff;
  --on-b: #00252b;
  --b-deep: 6 10 34;
  --b-mid: 10 50 82;
  --c1: 27 13 44;
  --c2: 10 5 22;
  --c3: 48 26 74;
  --ink: #07030f;
  --text: #fff4fd;
  --mist: #cdbfe2;
  --dim: #9484ad;
  --heavy: "Audiowide", "Segoe UI Black", "Arial Black", sans-serif;
}

:root[data-theme="vice"] body {
  background: linear-gradient(180deg, #0d0221 0%, #2a0a4a 30%, #7b1e8f 52%, #ff4f9a 66%, #ffb35c 72%, #170326 72.1%, #07010f 100%);
  background-attachment: fixed;
}

/* The sun. */
:root[data-theme="vice"] body::before {
  content: "";
  position: fixed;
  z-index: 0;
  left: 50%;
  top: 72vh;
  width: 52vh;
  height: 52vh;
  margin: -42vh 0 0 -26vh;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff36b 0%, #ffb13c 42%, #ff3f8e 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0 46%, transparent 46% 49%, #000 49% 56%, transparent 56% 60%, #000 60% 66%, transparent 66% 71%, #000 71% 76%, transparent 76% 81%, #000 81%);
  mask-image: linear-gradient(180deg, #000 0 46%, transparent 46% 49%, #000 49% 56%, transparent 56% 60%, #000 60% 66%, transparent 66% 71%, #000 71% 76%, transparent 76% 81%, #000 81%);
  pointer-events: none;
}

/* The neon grid running to the horizon. */
:root[data-theme="vice"] body::after {
  content: "";
  position: fixed;
  z-index: 0;
  left: -60%;
  right: -60%;
  top: 72vh;
  height: 60vh;
  background:
    linear-gradient(rgb(0 236 255 / 0.75) 2px, transparent 2px) 0 0 / 70px 70px,
    linear-gradient(90deg, rgb(255 86 214 / 0.75) 2px, transparent 2px) 0 0 / 70px 70px,
    linear-gradient(180deg, #1c0433, #07010f);
  transform: perspective(38vh) rotateX(64deg);
  transform-origin: 50% 0;
  pointer-events: none;
}

/* Palm trees, one each side. */
:root[data-theme="vice"]::after {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  background:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 520'><g fill='%230b0118' ><path d='M150 520 C140 400 150 300 170 212 L187 215 C168 300 161 400 174 520 Z'/><path d='M178 212 Q93 174 29 249 Q93 204 178 212 Z'/><path d='M178 212 Q107 138 54 186 Q107 168 178 212 Z'/><path d='M178 212 Q138 110 108 138 Q138 140 178 212 Z'/><path d='M178 212 Q181 100 183 120 Q181 130 178 212 Z'/><path d='M178 212 Q224 113 257 143 Q224 143 178 212 Z'/><path d='M178 212 Q252 143 308 195 Q252 173 178 212 Z'/><path d='M178 212 Q264 180 328 260 Q264 210 178 212 Z'/><path d='M178 212 Q95 162 34 229 Q95 192 178 212 Z'/></g></svg>") left -40px bottom / auto 66vh no-repeat,
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 520'><g fill='%230b0118' transform='translate(360 0) scale(-1 1)'><path d='M150 520 C140 400 150 300 170 212 L187 215 C168 300 161 400 174 520 Z'/><path d='M178 212 Q93 174 29 249 Q93 204 178 212 Z'/><path d='M178 212 Q107 138 54 186 Q107 168 178 212 Z'/><path d='M178 212 Q138 110 108 138 Q138 140 178 212 Z'/><path d='M178 212 Q181 100 183 120 Q181 130 178 212 Z'/><path d='M178 212 Q224 113 257 143 Q224 143 178 212 Z'/><path d='M178 212 Q252 143 308 195 Q252 173 178 212 Z'/><path d='M178 212 Q264 180 328 260 Q264 210 178 212 Z'/><path d='M178 212 Q95 162 34 229 Q95 192 178 212 Z'/></g></svg>") right -40px bottom / auto 58vh no-repeat;
  pointer-events: none;
}

:root[data-theme="vice"] .bills {
  display: none;
}

:root[data-theme="vice"] #top {
  background: rgb(13 2 33 / 0.93);
  border-bottom: 2px solid #ff56d6;
  box-shadow: 0 0 34px rgb(255 86 214 / 0.55);
}

:root[data-theme="vice"] .ticker {
  background: #0d0221;
  border-bottom: 2px solid #00ecff;
}

:root[data-theme="vice"] .ticker-run {
  font-style: normal;
  color: #ffc8f2;
  text-shadow: 0 0 10px #ff56d6;
}

/* A handwritten neon sign. */
:root[data-theme="vice"] .logo {
  font: 400 36px/1 "Mr Dafoe", "Segoe Script", "Brush Script MT", cursive;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  filter: none;
  text-shadow:
    0 0 5px #fff,
    0 0 16px #ff56d6,
    0 0 38px #ff56d6;
  transform: rotate(-4deg);
  animation: none;
}

:root[data-theme="vice"] .logo span {
  color: #d9fdff;
  -webkit-text-fill-color: #d9fdff;
  text-shadow:
    0 0 5px #fff,
    0 0 16px #00ecff,
    0 0 38px #00ecff;
}

:root[data-theme="vice"] .coin {
  display: none;
}

:root[data-theme="vice"] .card {
  border: 2px solid #ff56d6;
  border-radius: 18px;
  background: linear-gradient(180deg, rgb(26 9 52 / 0.88), rgb(9 3 24 / 0.92));
  box-shadow:
    inset 0 0 0 2px rgb(0 236 255 / 0.55),
    inset 0 0 34px rgb(0 236 255 / 0.1),
    0 0 26px rgb(255 86 214 / 0.5);
}

:root[data-theme="vice"] .card::before {
  display: none;
}

:root[data-theme="vice"] .card h2 {
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  filter: none;
  text-shadow:
    0 0 6px #fff,
    0 0 16px #00ecff,
    2px 2px 0 #ff56d6;
}

:root[data-theme="vice"] .tab,
:root[data-theme="vice"] .model-name {
  font-style: normal;
  font-weight: 400;
}

:root[data-theme="vice"] .btn {
  border: 2px solid #00ecff;
  border-radius: 999px;
  background: rgb(9 3 24 / 0.75);
  color: #d9fdff;
  font-family: var(--heavy);
  font-weight: 400;
  box-shadow:
    0 0 14px rgb(0 236 255 / 0.4),
    inset 0 0 10px rgb(0 236 255 / 0.18);
}

:root[data-theme="vice"] .btn.primary {
  border-color: #ffd0f4;
  background: linear-gradient(90deg, #ff3f8e, #ff8a3c);
  color: #fff;
  text-shadow: 0 1px 0 rgb(0 0 0 / 0.35);
  box-shadow: 0 0 26px rgb(255 63 142 / 0.75);
}

:root[data-theme="vice"] .btn.danger {
  border-color: #ff4d6d;
  color: #ffc2cd;
  box-shadow: 0 0 14px rgb(255 77 109 / 0.45);
}

:root[data-theme="vice"] .pill,
:root[data-theme="vice"] .chip {
  border-width: 2px;
}

/* ------------------------------------------------------------------------------------------------------------------
   CASINO: the Strip. Red felt with the four suits in it, a roulette wheel turning in the corner, poker chips coming
   down, and every card framed in marquee bulbs.
   ------------------------------------------------------------------------------------------------------------------ */
:root[data-theme="casino"] {
  --b: 38 222 138;
  --b-deep: 22 5 8;
  --b-mid: 8 62 40;
  --c1: 74 14 22;
  --c2: 30 5 9;
  --c3: 104 26 36;
  --ink: #120305;
  --mist: #e2c9c3;
  --dim: #ab8a84;
  --heavy: "Limelight", Georgia, "Times New Roman", serif;
}

:root[data-theme="casino"] body {
  background:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'><g font-family='Georgia,serif' font-size='36' fill='%23ffffff' fill-opacity='.055' text-anchor='middle'><text x='40' y='52'>♠</text><text x='120' y='52'>♥</text><text x='40' y='132'>♦</text><text x='120' y='132'>♣</text></g></svg>") 0 0 / 160px 160px,
    radial-gradient(1200px 800px at 50% 25%, #8a1826, #45080f 58%, #1a0306);
  background-attachment: fixed;
}

/* The roulette wheel. */
:root[data-theme="casino"] body::before {
  content: "";
  position: fixed;
  z-index: 0;
  right: -190px;
  bottom: -190px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #d4a024 0 5%, #2a1205 5.5% 17%, #d4a024 17.5% 20%, transparent 20.5% 57%, #d4a024 57.5% 60%, transparent 60.5%),
    repeating-conic-gradient(#c0142c 0 9.73deg, #121212 9.73deg 19.46deg);
  box-shadow:
    0 0 0 10px #d4a024,
    0 0 0 18px #4d3305,
    0 0 60px rgb(0 0 0 / 0.8);
  opacity: 0.85;
  pointer-events: none;
  animation: turn 300s linear infinite;
}

/* Poker chips in place of the bills: red, black and green. */
:root[data-theme="casino"] .bills i {
  --chip: #c0142c;
  width: calc(62px * var(--size));
  height: calc(62px * var(--size));
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--chip) 0 44%, #fff 45% 50%, var(--chip) 51% 60%, transparent 61%),
    repeating-conic-gradient(#fff 0 15deg, var(--chip) 15deg 45deg);
  box-shadow:
    0 0 0 calc(2px * var(--size)) rgb(0 0 0 / 0.5),
    0 12px 26px rgb(0 0 0 / 0.6);
}

:root[data-theme="casino"] .bills i:nth-child(3n) {
  --chip: #171717;
}

:root[data-theme="casino"] .bills i:nth-child(3n + 1) {
  --chip: #0c7a45;
}

:root[data-theme="casino"] #top {
  background: linear-gradient(180deg, #1a0306, #2e060b);
  border-bottom: 4px dotted #ffd66e;
  box-shadow: 0 10px 40px -10px rgb(255 201 60 / 0.6);
}

:root[data-theme="casino"] .ticker {
  background: #0d0204;
  border-bottom: 1px solid #b8860b;
}

:root[data-theme="casino"] .ticker-run {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.3em;
}

@keyframes bulbs {
  50% {
    border-color: #fff6cf;
  }
}

/* Marquee bulbs all the way round. */
:root[data-theme="casino"] .card {
  border: 5px dotted #ffd66e;
  border-radius: 22px;
  background: linear-gradient(180deg, rgb(80 15 24 / 0.95), rgb(36 6 11 / 0.96));
  box-shadow:
    0 0 0 3px #1c0406,
    0 0 0 6px #b8860b,
    0 0 36px rgb(255 201 60 / 0.35),
    inset 0 0 44px rgb(0 0 0 / 0.45);
  animation: bulbs 3.2s ease-in-out infinite;
}

:root[data-theme="casino"] .card::before {
  display: none;
}

:root[data-theme="casino"] .card h2,
:root[data-theme="casino"] .logo,
:root[data-theme="casino"] .tab,
:root[data-theme="casino"] .model-name {
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.05em;
}

:root[data-theme="casino"] .card h2 {
  font-size: 25px;
}

:root[data-theme="casino"] .logo {
  font-size: 28px;
}

:root[data-theme="casino"] .btn {
  border: 2px solid #d4a024;
  border-radius: 999px;
  background: linear-gradient(180deg, #2a2a2a, #0d0d0d);
  font-family: var(--heavy);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.06em;
}

:root[data-theme="casino"] .btn.primary {
  border-color: #fff3b0;
  background: var(--gold);
}

:root[data-theme="casino"] .btn.bag {
  background: linear-gradient(180deg, #0f8a50, #064527);
  border-color: #7dffbf;
  color: #eafff4;
}

:root[data-theme="casino"] .tile {
  border-radius: 10px;
}

/* ------------------------------------------------------------------------------------------------------------------
   ARCADE: 8-bit. Black screen with stars and scan lines, chunky pixel lettering, square everything with hard drop
   shadows, and pixel coins dropping one notch at a time.
   ------------------------------------------------------------------------------------------------------------------ */
:root[data-theme="arcade"] {
  --a: 255 230 0;
  --a-hi: 255 245 150;
  --gold-0: #ffffff;
  --gold-1: #fff37a;
  --gold-3: #ff9d00;
  --a-text: #fff37a;
  --on-a: #000000;
  --b: 57 255 20;
  --b-hi: #eaffea;
  --b-lo: #0f9b00;
  --b-text: #b6ffb0;
  --on-b: #001a00;
  --b-deep: 0 14 0;
  --b-mid: 0 60 10;
  --c1: 12 12 36;
  --c2: 2 2 14;
  --c3: 30 30 78;
  --ink: #000008;
  --text: #ffffff;
  --mist: #c2c2ff;
  --dim: #7c7cd0;
  --heavy: "Press Start 2P", "Lucida Console", "Courier New", monospace;
}

:root[data-theme="arcade"] * {
  border-radius: 0 !important;
}

:root[data-theme="arcade"] body {
  font-family: "Lucida Console", Consolas, "Courier New", monospace;
  font-size: 14px;
  background:
    radial-gradient(2px 2px at 23px 37px, #fff 98%, transparent) 0 0 / 220px 220px,
    radial-gradient(2px 2px at 131px 83px, #7fd4ff 98%, transparent) 0 0 / 220px 220px,
    radial-gradient(3px 3px at 177px 161px, #ff5ad2 98%, transparent) 0 0 / 220px 220px,
    radial-gradient(2px 2px at 71px 189px, #fff 98%, transparent) 0 0 / 220px 220px,
    radial-gradient(2px 2px at 199px 19px, #ffe600 98%, transparent) 0 0 / 220px 220px,
    linear-gradient(180deg, #05052a, #000008);
  background-attachment: fixed;
}

/* One big coin bobbing in the corner. */
@keyframes bob {
  to {
    transform: translateY(-18px);
  }
}

:root[data-theme="arcade"] body::before {
  content: "";
  position: fixed;
  z-index: 0;
  right: 34px;
  bottom: 34px;
  width: 208px;
  height: 208px;
  background: url("data:image/svg+xml,<svg shape-rendering='crispEdges' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'><rect x='5' y='0' width='1.02' height='1.02' fill='%237a4a00'/><rect x='6' y='0' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='0' width='1.02' height='1.02' fill='%237a4a00'/><rect x='3' y='1' width='1.02' height='1.02' fill='%237a4a00'/><rect x='4' y='1' width='1.02' height='1.02' fill='%237a4a00'/><rect x='5' y='1' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='1' width='1.02' height='1.02' fill='%23ffe600'/><rect x='7' y='1' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='1' width='1.02' height='1.02' fill='%237a4a00'/><rect x='9' y='1' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='2' width='1.02' height='1.02' fill='%237a4a00'/><rect x='3' y='2' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='2' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='2' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='2' width='1.02' height='1.02' fill='%23ffe600'/><rect x='7' y='2' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='2' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='2' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='2' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='3' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='3' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='3' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='3' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='3' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='3' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='3' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='3' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='3' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='3' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='3' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='4' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='4' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='4' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='6' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='8' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='9' y='4' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='4' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='0' y='5' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='5' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='2' y='5' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='5' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='5' width='1.02' height='1.02' fill='%237a4a00'/><rect x='5' y='5' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='5' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='5' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='5' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='5' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='5' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='5' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='12' y='5' width='1.02' height='1.02' fill='%237a4a00'/><rect x='0' y='6' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='6' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='2' y='6' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='6' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='6' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='6' width='1.02' height='1.02' fill='%237a4a00'/><rect x='6' y='6' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='6' width='1.02' height='1.02' fill='%237a4a00'/><rect x='8' y='6' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='6' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='6' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='6' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='12' y='6' width='1.02' height='1.02' fill='%237a4a00'/><rect x='0' y='7' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='7' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='2' y='7' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='7' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='7' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='7' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='7' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='7' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='7' width='1.02' height='1.02' fill='%237a4a00'/><rect x='9' y='7' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='7' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='7' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='12' y='7' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='8' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='8' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='5' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='6' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='8' y='8' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='8' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='8' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='9' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='9' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='9' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='9' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='9' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='9' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='9' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='9' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='9' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='9' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='9' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='10' width='1.02' height='1.02' fill='%237a4a00'/><rect x='3' y='10' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='10' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='10' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='10' width='1.02' height='1.02' fill='%23ffe600'/><rect x='7' y='10' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='10' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='10' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='10' width='1.02' height='1.02' fill='%237a4a00'/><rect x='3' y='11' width='1.02' height='1.02' fill='%237a4a00'/><rect x='4' y='11' width='1.02' height='1.02' fill='%237a4a00'/><rect x='5' y='11' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='11' width='1.02' height='1.02' fill='%23ffe600'/><rect x='7' y='11' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='11' width='1.02' height='1.02' fill='%237a4a00'/><rect x='9' y='11' width='1.02' height='1.02' fill='%237a4a00'/><rect x='5' y='12' width='1.02' height='1.02' fill='%237a4a00'/><rect x='6' y='12' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='12' width='1.02' height='1.02' fill='%237a4a00'/></svg>") center / contain no-repeat;
  image-rendering: pixelated;
  opacity: 0.9;
  pointer-events: none;
  animation: bob 1s steps(2) infinite alternate;
}

/* Scan lines over the whole screen. */
:root[data-theme="arcade"] body::after {
  content: "";
  position: fixed;
  z-index: 45;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgb(0 0 0 / 0.24) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

:root[data-theme="arcade"] .bills i {
  width: calc(52px * var(--size));
  height: calc(52px * var(--size));
  background: url("data:image/svg+xml,<svg shape-rendering='crispEdges' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'><rect x='5' y='0' width='1.02' height='1.02' fill='%237a4a00'/><rect x='6' y='0' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='0' width='1.02' height='1.02' fill='%237a4a00'/><rect x='3' y='1' width='1.02' height='1.02' fill='%237a4a00'/><rect x='4' y='1' width='1.02' height='1.02' fill='%237a4a00'/><rect x='5' y='1' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='1' width='1.02' height='1.02' fill='%23ffe600'/><rect x='7' y='1' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='1' width='1.02' height='1.02' fill='%237a4a00'/><rect x='9' y='1' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='2' width='1.02' height='1.02' fill='%237a4a00'/><rect x='3' y='2' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='2' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='2' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='2' width='1.02' height='1.02' fill='%23ffe600'/><rect x='7' y='2' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='2' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='2' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='2' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='3' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='3' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='3' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='3' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='3' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='3' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='3' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='3' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='3' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='3' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='3' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='4' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='4' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='4' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='6' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='8' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='9' y='4' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='4' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='0' y='5' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='5' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='2' y='5' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='5' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='5' width='1.02' height='1.02' fill='%237a4a00'/><rect x='5' y='5' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='5' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='5' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='5' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='5' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='5' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='5' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='12' y='5' width='1.02' height='1.02' fill='%237a4a00'/><rect x='0' y='6' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='6' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='2' y='6' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='6' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='6' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='6' width='1.02' height='1.02' fill='%237a4a00'/><rect x='6' y='6' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='6' width='1.02' height='1.02' fill='%237a4a00'/><rect x='8' y='6' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='6' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='6' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='6' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='12' y='6' width='1.02' height='1.02' fill='%237a4a00'/><rect x='0' y='7' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='7' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='2' y='7' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='7' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='7' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='7' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='7' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='7' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='7' width='1.02' height='1.02' fill='%237a4a00'/><rect x='9' y='7' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='7' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='7' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='12' y='7' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='8' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='8' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='5' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='6' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='8' y='8' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='8' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='8' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='9' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='9' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='9' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='9' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='9' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='9' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='9' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='9' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='9' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='9' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='9' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='10' width='1.02' height='1.02' fill='%237a4a00'/><rect x='3' y='10' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='10' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='10' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='10' width='1.02' height='1.02' fill='%23ffe600'/><rect x='7' y='10' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='10' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='10' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='10' width='1.02' height='1.02' fill='%237a4a00'/><rect x='3' y='11' width='1.02' height='1.02' fill='%237a4a00'/><rect x='4' y='11' width='1.02' height='1.02' fill='%237a4a00'/><rect x='5' y='11' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='11' width='1.02' height='1.02' fill='%23ffe600'/><rect x='7' y='11' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='11' width='1.02' height='1.02' fill='%237a4a00'/><rect x='9' y='11' width='1.02' height='1.02' fill='%237a4a00'/><rect x='5' y='12' width='1.02' height='1.02' fill='%237a4a00'/><rect x='6' y='12' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='12' width='1.02' height='1.02' fill='%237a4a00'/></svg>") center / contain no-repeat;
  image-rendering: pixelated;
  box-shadow: none;
  filter: none;
  animation-timing-function: steps(48);
}

:root[data-theme="arcade"] #top {
  background: #000014;
  border-bottom: 4px solid #fff;
  box-shadow: none;
}

:root[data-theme="arcade"] .ticker {
  background: #ff2bd6;
  border: 0;
}

:root[data-theme="arcade"] .ticker-run {
  font: 400 9px/1 var(--heavy);
  color: #fff;
}

:root[data-theme="arcade"] .ticker-run b {
  color: #ffe600;
  text-shadow: none;
}

:root[data-theme="arcade"] .logo,
:root[data-theme="arcade"] .card h2 {
  font: 400 15px/1.5 var(--heavy);
  letter-spacing: 0;
  color: #ffe600;
  -webkit-text-fill-color: #ffe600;
  background: none;
  filter: none;
  text-shadow: 3px 3px 0 #ff2bd6;
  animation: none;
}

:root[data-theme="arcade"] .logo span {
  color: #39ff14;
  -webkit-text-fill-color: #39ff14;
  text-shadow: 3px 3px 0 #ff2bd6;
}

:root[data-theme="arcade"] .coin {
  width: 30px;
  height: 30px;
  background: url("data:image/svg+xml,<svg shape-rendering='crispEdges' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'><rect x='5' y='0' width='1.02' height='1.02' fill='%237a4a00'/><rect x='6' y='0' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='0' width='1.02' height='1.02' fill='%237a4a00'/><rect x='3' y='1' width='1.02' height='1.02' fill='%237a4a00'/><rect x='4' y='1' width='1.02' height='1.02' fill='%237a4a00'/><rect x='5' y='1' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='1' width='1.02' height='1.02' fill='%23ffe600'/><rect x='7' y='1' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='1' width='1.02' height='1.02' fill='%237a4a00'/><rect x='9' y='1' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='2' width='1.02' height='1.02' fill='%237a4a00'/><rect x='3' y='2' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='2' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='2' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='2' width='1.02' height='1.02' fill='%23ffe600'/><rect x='7' y='2' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='2' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='2' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='2' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='3' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='3' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='3' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='3' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='3' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='3' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='3' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='3' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='3' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='3' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='3' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='4' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='4' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='4' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='6' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='8' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='9' y='4' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='4' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='4' width='1.02' height='1.02' fill='%237a4a00'/><rect x='0' y='5' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='5' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='2' y='5' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='5' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='5' width='1.02' height='1.02' fill='%237a4a00'/><rect x='5' y='5' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='5' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='5' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='5' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='5' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='5' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='5' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='12' y='5' width='1.02' height='1.02' fill='%237a4a00'/><rect x='0' y='6' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='6' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='2' y='6' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='6' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='6' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='6' width='1.02' height='1.02' fill='%237a4a00'/><rect x='6' y='6' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='6' width='1.02' height='1.02' fill='%237a4a00'/><rect x='8' y='6' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='6' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='6' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='6' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='12' y='6' width='1.02' height='1.02' fill='%237a4a00'/><rect x='0' y='7' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='7' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='2' y='7' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='7' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='7' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='7' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='7' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='7' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='7' width='1.02' height='1.02' fill='%237a4a00'/><rect x='9' y='7' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='7' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='7' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='12' y='7' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='8' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='8' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='5' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='6' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='8' y='8' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='8' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='8' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='8' width='1.02' height='1.02' fill='%237a4a00'/><rect x='1' y='9' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='9' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='3' y='9' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='9' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='9' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='9' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='9' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='9' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='9' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='9' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='11' y='9' width='1.02' height='1.02' fill='%237a4a00'/><rect x='2' y='10' width='1.02' height='1.02' fill='%237a4a00'/><rect x='3' y='10' width='1.02' height='1.02' fill='%23fff7a0'/><rect x='4' y='10' width='1.02' height='1.02' fill='%23ffe600'/><rect x='5' y='10' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='10' width='1.02' height='1.02' fill='%23ffe600'/><rect x='7' y='10' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='10' width='1.02' height='1.02' fill='%23ffe600'/><rect x='9' y='10' width='1.02' height='1.02' fill='%23ff9d00'/><rect x='10' y='10' width='1.02' height='1.02' fill='%237a4a00'/><rect x='3' y='11' width='1.02' height='1.02' fill='%237a4a00'/><rect x='4' y='11' width='1.02' height='1.02' fill='%237a4a00'/><rect x='5' y='11' width='1.02' height='1.02' fill='%23ffe600'/><rect x='6' y='11' width='1.02' height='1.02' fill='%23ffe600'/><rect x='7' y='11' width='1.02' height='1.02' fill='%23ffe600'/><rect x='8' y='11' width='1.02' height='1.02' fill='%237a4a00'/><rect x='9' y='11' width='1.02' height='1.02' fill='%237a4a00'/><rect x='5' y='12' width='1.02' height='1.02' fill='%237a4a00'/><rect x='6' y='12' width='1.02' height='1.02' fill='%237a4a00'/><rect x='7' y='12' width='1.02' height='1.02' fill='%237a4a00'/></svg>") center / contain no-repeat;
  image-rendering: pixelated;
  box-shadow: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: bob 0.6s steps(2) infinite alternate;
}

:root[data-theme="arcade"] .card {
  border: 4px solid #fff;
  background: rgb(4 4 26 / 0.93);
  box-shadow: 8px 8px 0 #ffe600;
}

:root[data-theme="arcade"] .card.complete {
  border-color: #39ff14;
  box-shadow: 8px 8px 0 #39ff14;
}

:root[data-theme="arcade"] .card::before {
  display: none;
}

:root[data-theme="arcade"] .tab {
  font: 400 10px/1 var(--heavy);
  letter-spacing: 0;
}

:root[data-theme="arcade"] .tab.on::after {
  height: 4px;
  box-shadow: none;
}

:root[data-theme="arcade"] .btn {
  padding: 12px 14px;
  border: 3px solid #fff;
  background: #1c1c5a;
  font: 400 10px/1.3 var(--heavy);
  letter-spacing: 0;
  box-shadow: 4px 4px 0 #000;
  transition: none;
}

:root[data-theme="arcade"] .btn::after {
  display: none;
}

:root[data-theme="arcade"] .btn:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  border-color: #ffe600;
  box-shadow: 5px 5px 0 #ff2bd6;
}

:root[data-theme="arcade"] .btn:active:not(:disabled) {
  transform: translate(4px, 4px);
  box-shadow: none;
}

:root[data-theme="arcade"] .btn.primary {
  border-color: #fff;
  background: #ffe600;
  color: #000;
  text-shadow: none;
  box-shadow: 4px 4px 0 #ff2bd6;
}

:root[data-theme="arcade"] .btn.mini {
  padding: 8px 9px;
  font-size: 8px;
}

:root[data-theme="arcade"] .btn.bag {
  font: 400 12px/1.3 var(--heavy);
  background: #064a10;
  border-color: #39ff14;
  box-shadow: 4px 4px 0 #000;
}

:root[data-theme="arcade"] .pill,
:root[data-theme="arcade"] .chip,
:root[data-theme="arcade"] .field,
:root[data-theme="arcade"] .note,
:root[data-theme="arcade"] .model,
:root[data-theme="arcade"] .empty-tile {
  border-width: 2px;
}

:root[data-theme="arcade"] .tile.on {
  outline-width: 4px;
  box-shadow: 6px 6px 0 #ff2bd6;
}

:root[data-theme="arcade"] .tile.result {
  box-shadow: 6px 6px 0 #ff2bd6;
}

:root[data-theme="arcade"] .model.on {
  box-shadow: 6px 6px 0 #ff2bd6;
}

:root[data-theme="arcade"] .model-name {
  font: 400 10px/1.6 var(--heavy);
}

:root[data-theme="arcade"] .model-price {
  font: 400 17px/1.4 var(--heavy);
}

:root[data-theme="arcade"] .big {
  font: 400 20px/1.2 var(--heavy);
}

:root[data-theme="arcade"] .main-badge {
  font: 400 8px/1.4 var(--heavy);
  background: #ffe600;
  animation: none;
}

:root[data-theme="arcade"] #bar .inner {
  border: 4px solid #fff;
  background: #000014;
  box-shadow: 8px 8px 0 #ffe600;
}

/* --- All looks: small screens and no-motion ----------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root[data-theme="vault"] body::after,
  :root[data-theme="arcade"] body::before {
    display: none;
  }

  :root[data-theme="vault"] body::before,
  :root[data-theme="casino"] body::before,
  :root[data-theme="ice"] body::before {
    opacity: 0.3;
  }

  :root[data-theme="vice"] .logo {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .card,
  .coin {
    animation: none !important;
  }
}

/* --- Fixes that go for every look ----------------------------------------------------------------------------- */
/* "In use" sits above the model's name, so a long name never runs under it. */
.model-on {
  position: static;
  align-self: flex-start;
  margin-bottom: 4px;
}

/* Vice: words that sit straight on the sunset get a dark strip behind them. */
:root[data-theme="vice"] #sec-batches > .row,
:root[data-theme="vice"] #sec-batches > p.sub,
:root[data-theme="vice"] #sec-batches > div > p.sub {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgb(9 3 24 / 0.8);
}

/* --- Dropping a picture into a reference box ------------------------------------------------------------------ */
/* While files are dragged over the page, the boxes show where they can go; the one under the pointer lights up. */
.dragging .ref {
  border-color: rgb(var(--a) / 0.7);
}

.ref.drop {
  border-style: solid;
  border-color: rgb(var(--a));
  transform: scale(1.05);
  box-shadow:
    0 0 0 3px rgb(var(--a) / 0.35),
    0 0 34px -6px rgb(var(--a) / 0.95);
}

.ref.drop::after {
  content: "Drop it";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 0.55);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--a));
}

/* --- The pool's boxes for pictures still to come --------------------------------------------------------------- */
.empty-tile {
  gap: 8px;
  overflow: hidden;
}

.empty-tile b {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tile-text {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.4;
  color: var(--dim);
}

.empty-tile.waiting {
  opacity: 0.75;
}

.empty-tile.failed {
  border-style: solid;
  border-color: rgb(255 77 109 / 0.6);
  background: var(--red-soft);
  color: #ffc2cd;
}

.empty-tile.failed .tile-text {
  -webkit-line-clamp: 9;
  color: #ffc2cd;
}

/* --- A model's ways to buy it (APIMart: cheap and official) ---------------------------------------------------- */
.model {
  gap: 6px;
}

.variant {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(0 0 0 / 0.35);
  text-align: left;
  transition:
    border-color 0.12s,
    box-shadow 0.12s,
    transform 0.12s;
}

.variant:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgb(var(--a) / 0.7);
}

.variant.on {
  border-color: rgb(var(--a));
  background: rgb(var(--a) / 0.12);
  box-shadow: 0 0 22px -8px rgb(var(--a) / 0.9);
}

.variant .model-price {
  margin-top: 2px;
  font-size: 22px;
}

.route {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route.cheap {
  background: rgb(var(--b));
  color: var(--on-b);
}

.route.official {
  background: var(--gold);
  color: var(--on-a);
}

:root[data-theme="vault"] .variant,
:root[data-theme="ice"] .variant {
  border-radius: 3px;
}

:root[data-theme="arcade"] .variant .model-price {
  font: 400 14px/1.4 var(--heavy);
}

/* ==================================================================================================================
   CASH, the main look: black and red. The hundreds lie still in the background; only the logo moves.
   ================================================================================================================== */
:root[data-theme="cash"] {
  --a: 255 34 60;
  --a-hi: 255 150 160;
  --gold-0: #fff1f3;
  --gold-1: #ff8794;
  --gold-3: #8c0017;
  --a-text: #ffc4cb;
  --on-a: #160002;
  --b: 255 74 74;
  --b-hi: #ffe8e8;
  --b-lo: #a00018;
  --b-text: #ffd1d1;
  --on-b: #160002;
  --b-deep: 22 3 5;
  --b-mid: 78 8 16;
  --c1: 20 9 10;
  --c2: 7 3 4;
  --c3: 40 15 17;
  --ink: #040102;
  --text: #fff5f5;
  --mist: #d7b9bb;
  --dim: #927375;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  scroll-behavior: smooth;
}

:root[data-theme="cash"] body {
  background:
    radial-gradient(1100px 620px at 0% -10%, rgb(255 34 60 / 0.22), transparent 62%),
    radial-gradient(900px 600px at 100% 110%, rgb(160 0 24 / 0.28), transparent 62%),
    repeating-linear-gradient(118deg, rgb(255 34 60 / 0.035) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, #0a0203, #040102 60%);
  background-attachment: fixed;
}

/* The hundreds: still, scattered, dyed red and dark. */
:root[data-theme="cash"] .bills i {
  top: var(--y);
  animation: none;
  transform: rotate(var(--tilt, -10deg));
  opacity: calc(var(--fade, 0.5) * 0.55);
  filter: grayscale(1) sepia(1) hue-rotate(-45deg) saturate(5) brightness(0.5) blur(var(--blur, 0));
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.7);
}

:root[data-theme="cash"] .bills i:nth-child(1) { --y: 8%; }
:root[data-theme="cash"] .bills i:nth-child(2) { --y: 62%; }
:root[data-theme="cash"] .bills i:nth-child(3) { --y: 34%; }
:root[data-theme="cash"] .bills i:nth-child(4) { --y: 84%; }
:root[data-theme="cash"] .bills i:nth-child(5) { --y: 18%; }
:root[data-theme="cash"] .bills i:nth-child(6) { --y: 52%; }
:root[data-theme="cash"] .bills i:nth-child(7) { --y: 76%; }
:root[data-theme="cash"] .bills i:nth-child(8) { --y: 40%; }
:root[data-theme="cash"] .bills i:nth-child(9) { --y: 66%; }
:root[data-theme="cash"] .bills i:nth-child(10) { --y: 12%; }
:root[data-theme="cash"] .bills i:nth-child(11) { --y: 90%; }
:root[data-theme="cash"] .bills i:nth-child(12) { --y: 46%; }
:root[data-theme="cash"] .bills i:nth-child(13) { --y: 26%; }
:root[data-theme="cash"] .bills i:nth-child(14) { --y: 58%; }

/* Nothing else moves by itself: the ticker stands still, the badges don't shimmer, buttons don't sweep. */
:root[data-theme="cash"] .ticker-run,
:root[data-theme="cash"] .main-badge,
:root[data-theme="cash"] .empty-tile.making {
  animation: none;
}

:root[data-theme="cash"] .btn::after {
  display: none;
}

/* The logo: chrome-red lettering with a slow, smooth shine and a red glow; the coin turns. */
:root[data-theme="cash"] .logo {
  font-size: 27px;
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, #7a0012 0%, #ff223c 24%, #ffffff 44%, #ff223c 64%, #7a0012 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 0 rgb(0 0 0 / 0.85)) drop-shadow(0 0 22px rgb(255 34 60 / 0.55));
  animation: shine 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

:root[data-theme="cash"] .logo span {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-shadow:
    0 0 14px rgb(255 34 60 / 0.9),
    0 0 34px rgb(255 34 60 / 0.6);
}

:root[data-theme="cash"] .coin {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: radial-gradient(circle at 34% 28%, #ff8a97 0%, #e3001e 48%, #5c000c 100%);
  box-shadow:
    inset 0 0 0 2px rgb(255 255 255 / 0.4),
    inset 0 0 0 4px rgb(92 0 12 / 0.9),
    0 0 26px rgb(255 34 60 / 0.75);
  animation: spin 4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* Hard edges: cut corners, a red slash along the top of each card, slanted buttons. */
:root[data-theme="cash"] #top {
  background: linear-gradient(180deg, rgb(8 2 3 / 0.97), rgb(18 4 6 / 0.95));
  border-bottom: 2px solid #ff223c;
  box-shadow: 0 14px 44px -18px rgb(255 34 60 / 0.75);
}

:root[data-theme="cash"] .ticker {
  background: #ff223c;
  border: 0;
}

:root[data-theme="cash"] .ticker-run {
  color: #160002;
  text-shadow: none;
}

:root[data-theme="cash"] .ticker-run b {
  color: #ffffff;
  text-shadow: none;
}

:root[data-theme="cash"] .card {
  border: 1px solid rgb(255 34 60 / 0.28);
  border-radius: 4px;
  background: linear-gradient(160deg, rgb(26 9 11 / 0.9), rgb(7 3 4 / 0.93) 55%);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
}

:root[data-theme="cash"] .card::before {
  top: 0;
  left: 0;
  right: auto;
  width: 38%;
  height: 3px;
  background: linear-gradient(90deg, #ff223c, transparent);
}

:root[data-theme="cash"] .card.complete {
  border-color: rgb(255 255 255 / 0.55);
}

:root[data-theme="cash"] .card.complete::before {
  background: linear-gradient(90deg, #ffffff, transparent);
}

:root[data-theme="cash"] .card h2 {
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #ffd0d5 40%, #ff223c 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

:root[data-theme="cash"] .btn {
  border-radius: 3px;
  border-color: rgb(255 34 60 / 0.4);
  background: linear-gradient(180deg, #24090c, #120405);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  padding-left: 22px;
  padding-right: 22px;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    filter 0.25s var(--ease);
}

:root[data-theme="cash"] .btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #ff223c;
  background: linear-gradient(180deg, #3a0c12, #1a0507);
  box-shadow: none;
}

:root[data-theme="cash"] .btn.primary {
  border-color: #ff5b70;
  background: linear-gradient(180deg, #ff3b55 0%, #e0001f 55%, #9e0016 100%);
  color: #ffffff;
  text-shadow: 0 1px 0 rgb(0 0 0 / 0.45);
  box-shadow: none;
}

:root[data-theme="cash"] .btn.primary:hover:not(:disabled) {
  filter: brightness(1.12);
}

:root[data-theme="cash"] .btn.mini {
  padding-left: 16px;
  padding-right: 16px;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}

:root[data-theme="cash"] .btn.bag {
  border-color: #ff223c;
  background: linear-gradient(180deg, #ff223c, #8c0017);
  color: #ffffff;
  box-shadow: none;
}

:root[data-theme="cash"] .tile,
:root[data-theme="cash"] .empty-tile,
:root[data-theme="cash"] .ref,
:root[data-theme="cash"] .model,
:root[data-theme="cash"] .variant,
:root[data-theme="cash"] .stat,
:root[data-theme="cash"] .online-box,
:root[data-theme="cash"] .note,
:root[data-theme="cash"] .field {
  border-radius: 3px;
}

:root[data-theme="cash"] .tile.on {
  outline-color: #ff223c;
  box-shadow: 0 0 30px -6px rgb(255 34 60 / 0.95);
}

:root[data-theme="cash"] .tile.result {
  outline-color: #ffffff;
  box-shadow: 0 0 30px -8px rgb(255 255 255 / 0.6);
}

:root[data-theme="cash"] .main-badge {
  background: #ff223c;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.7);
}

:root[data-theme="cash"] .num {
  background: #ff223c;
  color: #ffffff;
}

:root[data-theme="cash"] .tick {
  background: #ffffff;
  color: #160002;
}

/* "Good" (saved, online, done) in white, so it doesn't read like a warning in a red look. */
:root[data-theme="cash"] .pill.good,
:root[data-theme="cash"] .note.ok {
  border-color: rgb(255 255 255 / 0.45);
  background: rgb(255 255 255 / 0.07);
  color: #ffffff;
  box-shadow: none;
}

:root[data-theme="cash"] .pill.spend b,
:root[data-theme="cash"] .small.cost b,
:root[data-theme="cash"] .model-price,
:root[data-theme="cash"] .stat .big,
:root[data-theme="cash"] .chip b {
  color: #ffffff;
  text-shadow: 0 0 14px rgb(255 34 60 / 0.85);
}

:root[data-theme="cash"] .big {
  color: #ff223c;
  text-shadow: 0 0 18px rgb(255 34 60 / 0.5);
}

:root[data-theme="cash"] .route.cheap {
  background: #ffffff;
  color: #160002;
}

:root[data-theme="cash"] .route.official {
  background: #ff223c;
  color: #ffffff;
}

:root[data-theme="cash"] .tab.on {
  color: #ffffff;
  text-shadow: 0 0 16px rgb(255 34 60 / 0.8);
}

:root[data-theme="cash"] .tab.on::after {
  background: #ff223c;
  box-shadow: 0 0 14px rgb(255 34 60 / 0.9);
}

/* --- A batch: its pair and its six, then the fixed-prompt picture ---------------------------------------------- */
.batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

@media (max-width: 700px) {
  .batch-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  }
}

/* The note saying what to do now. */
.step-note {
  font-size: 15px;
}

.step-note b {
  font-size: 16px;
}

/* ==================================================================================================================
   CASH CLASSIC (data-theme="classic") is the old main look: it's the page's own gold and green, with nothing
   added, so it needs no rules of its own here.

   NOIR: plain, calm black. Soft white on charcoal, thin lines, gentle corners; no artwork and nothing moving.
   ================================================================================================================== */
:root[data-theme="noir"] {
  --a: 236 236 236;
  --a-hi: 255 255 255;
  --gold-0: #ffffff;
  --gold-1: #f4f4f5;
  --gold-3: #b8b8bd;
  --a-text: #f4f4f5;
  --on-a: #111113;
  --b: 200 200 206;
  --b-hi: #ffffff;
  --b-lo: #8a8a90;
  --b-text: #ededef;
  --on-b: #111113;
  --b-deep: 22 22 24;
  --b-mid: 44 44 48;
  --c1: 30 30 33;
  --c2: 18 18 20;
  --c3: 42 42 46;
  --ink: #111113;
  --text: #f1f1f3;
  --mist: #a9a9b0;
  --dim: #74747b;
  --line: rgb(255 255 255 / 0.09);
  --heavy: "Segoe UI", system-ui, sans-serif;
}

:root[data-theme="noir"] body {
  background: linear-gradient(180deg, #19191c 0%, #111113 45%, #0d0d0f 100%);
  background-attachment: fixed;
}

:root[data-theme="noir"] .bills,
:root[data-theme="noir"] .ticker {
  display: none;
}

:root[data-theme="noir"] #top {
  background: rgb(17 17 19 / 0.92);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: none;
}

:root[data-theme="noir"] .logo {
  font: 600 20px/1 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.08em;
  color: #f1f1f3;
  -webkit-text-fill-color: #f1f1f3;
  background: none;
  filter: none;
  animation: none;
}

:root[data-theme="noir"] .logo span {
  color: #8f8f96;
  -webkit-text-fill-color: #8f8f96;
  text-shadow: none;
}

:root[data-theme="noir"] .coin {
  width: 28px;
  height: 28px;
  font-size: 15px;
  color: #111113;
  -webkit-text-fill-color: #111113;
  background: #ececee;
  box-shadow: none;
  animation: none;
}

:root[data-theme="noir"] .tab {
  font: 500 14px/1 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-transform: none;
}

:root[data-theme="noir"] .tab.on {
  color: #f1f1f3;
  text-shadow: none;
}

:root[data-theme="noir"] .tab.on::after {
  height: 2px;
  background: #f1f1f3;
  box-shadow: none;
}

:root[data-theme="noir"] .card {
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: 18px;
  background: #1a1a1d;
  box-shadow: 0 20px 50px -30px rgb(0 0 0 / 0.8);
}

:root[data-theme="noir"] .card::before {
  display: none;
}

:root[data-theme="noir"] .card.complete {
  border-color: rgb(255 255 255 / 0.3);
  box-shadow: 0 20px 50px -30px rgb(0 0 0 / 0.8);
}

:root[data-theme="noir"] .card h2 {
  font: 600 19px/1.25 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #f1f1f3;
  -webkit-text-fill-color: #f1f1f3;
  background: none;
  filter: none;
}

:root[data-theme="noir"] .btn {
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 10px;
  background: #242428;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

:root[data-theme="noir"] .btn::after {
  display: none;
}

:root[data-theme="noir"] .btn:hover:not(:disabled) {
  transform: none;
  border-color: rgb(255 255 255 / 0.25);
  background: #2c2c31;
  box-shadow: none;
}

:root[data-theme="noir"] .btn.primary {
  border-color: #ececee;
  background: #ececee;
  color: #111113;
  text-shadow: none;
  box-shadow: none;
}

:root[data-theme="noir"] .btn.primary:hover:not(:disabled) {
  background: #ffffff;
  filter: none;
}

:root[data-theme="noir"] .btn.danger {
  border-color: rgb(255 120 130 / 0.35);
  background: #2a1d1f;
  color: #f2c4c8;
}

:root[data-theme="noir"] .btn.bag {
  font: 600 15px/1 "Segoe UI", system-ui, sans-serif;
  border-color: rgb(255 255 255 / 0.2);
  background: #242428;
  color: #f1f1f3;
  box-shadow: none;
}

:root[data-theme="noir"] .pill,
:root[data-theme="noir"] .chip {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow: none;
}

:root[data-theme="noir"] .pill.good,
:root[data-theme="noir"] .note.ok {
  border-color: rgb(255 255 255 / 0.25);
  background: rgb(255 255 255 / 0.05);
  color: #f1f1f3;
  box-shadow: none;
}

:root[data-theme="noir"] .pill.spend b,
:root[data-theme="noir"] .small.cost b,
:root[data-theme="noir"] .model-price,
:root[data-theme="noir"] .stat .big,
:root[data-theme="noir"] .chip b,
:root[data-theme="noir"] .big {
  color: #ffffff;
  text-shadow: none;
}

:root[data-theme="noir"] .model,
:root[data-theme="noir"] .variant,
:root[data-theme="noir"] .online-box,
:root[data-theme="noir"] .stat {
  border-radius: 12px;
  background: #151517;
  box-shadow: none;
}

:root[data-theme="noir"] .model.on,
:root[data-theme="noir"] .variant.on {
  border-color: rgb(255 255 255 / 0.45);
  background: #202024;
  box-shadow: none;
}

:root[data-theme="noir"] .model-name {
  font: 600 14px/1.3 "Segoe UI", system-ui, sans-serif;
  text-transform: none;
}

:root[data-theme="noir"] .route.cheap {
  background: #ececee;
  color: #111113;
}

:root[data-theme="noir"] .route.official {
  background: #4a4a50;
  color: #ffffff;
}

:root[data-theme="noir"] .tile {
  border-radius: 12px;
}

:root[data-theme="noir"] .tile.on,
:root[data-theme="noir"] .tile.result {
  outline-color: #ececee;
  box-shadow: none;
}

:root[data-theme="noir"] .main-badge,
:root[data-theme="noir"] .num {
  background: #ececee;
  color: #111113;
  animation: none;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.5);
}

:root[data-theme="noir"] .empty-tile.making {
  animation: none;
  background: rgb(255 255 255 / 0.04);
  color: #d4d4d8;
  border-color: rgb(255 255 255 / 0.25);
}

:root[data-theme="noir"] .ticker-run,
:root[data-theme="noir"] .card {
  animation: none;
}

/* --- The explainer above the batches -------------------------------------------------------------------------- */
.card.how {
  margin-top: 10px;
}

.how-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.how-steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 14px 14px 58px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(0 0 0 / 0.35);
  font-size: 14px;
  line-height: 1.45;
  color: var(--mist);
}

.how-steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--a));
  color: var(--on-a);
  font: 900 16px/1 var(--heavy);
}

.how-steps b {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
  color: var(--text);
}

.how-steps i {
  font-style: normal;
  font-weight: 700;
  color: var(--text);
}

.ask-delete .btn {
  font-size: 13px;
}

/* --- "Make more" on a batch ---------------------------------------------------------------------------------- */
.more-row {
  padding-top: 4px;
  border-top: 1px dashed var(--line);
}

/* --- Approved and posted batches: impossible to miss, in every look ------------------------------------------- */
:root .card.approved {
  border: 2px solid #22c55e !important;
  background:
    linear-gradient(180deg, rgb(34 197 94 / 0.22), rgb(34 197 94 / 0.06) 40%, rgb(3 14 7 / 0.94)) !important;
  box-shadow:
    0 0 0 1px rgb(34 197 94 / 0.35),
    0 0 50px -10px rgb(34 197 94 / 0.85) !important;
}

:root .card.posted {
  border: 2px solid #60a5fa !important;
  background:
    linear-gradient(180deg, rgb(96 165 250 / 0.2), rgb(96 165 250 / 0.05) 40%, rgb(4 9 18 / 0.94)) !important;
  box-shadow:
    0 0 0 1px rgb(96 165 250 / 0.3),
    0 0 44px -12px rgb(96 165 250 / 0.75) !important;
}

.stamp-banner {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: -4px 0 2px;
  padding: 12px 18px;
  border-radius: 10px;
}

.stamp-banner span {
  font: italic 900 30px/1 "Segoe UI Black", "Arial Black", Impact, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stamp-banner small {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.85;
}

.stamp-banner.approved {
  background: linear-gradient(90deg, #16a34a, #22c55e 60%, rgb(34 197 94 / 0.25));
  color: #ffffff;
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.3);
}

.stamp-banner.posted {
  background: linear-gradient(90deg, #2563eb, #60a5fa 60%, rgb(96 165 250 / 0.2));
  color: #ffffff;
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.3);
}

/* The pictures of an approved batch get a green frame too. */
:root .card.approved .tile {
  outline: 2px solid rgb(34 197 94 / 0.55);
}

:root .card.posted .tile {
  outline: 2px solid rgb(96 165 250 / 0.5);
}

/* --- Messages: floating near the top of the screen, wherever the page is scrolled ----------------------------- */
#note:not(:empty) {
  display: block;
  height: 0;
}

.toast {
  position: fixed;
  top: 96px;
  left: 50%;
  z-index: 46;
  width: max-content;
  max-width: min(760px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 50px -12px rgb(0 0 0 / 0.9);
}

.toast.error {
  border-width: 2px;
  background: rgb(60 8 16 / 0.96);
  color: #ffe1e5;
}

.toast.ok {
  background: rgb(6 40 20 / 0.96);
}

.toast.warn {
  background: rgb(50 36 4 / 0.96);
}

.toast b {
  opacity: 0.7;
}

@media (max-width: 700px) {
  .toast {
    top: 150px;
  }
}

/* Not enough prompts for a button: said next to it. */
.short-note {
  font-size: 13px;
  font-weight: 600;
  color: #ff9fb1;
}

.short-note .link {
  font-size: 13px;
  color: inherit;
}
