/* Sukli look: dark violet "obsidian" theme (one theme, no light version). */

/* Display font. The files are optional: if fonts/ is empty the system font is used. */
@font-face { font-family: Orbitron; src: url("fonts/orbitron-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Orbitron; src: url("fonts/orbitron-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --bg: #05060f;
  --solid: #111029;
  --card: rgba(255, 255, 255, 0.04);
  --text: #e8ecf7;
  --muted: #8a93ad;
  --line: rgba(167, 139, 250, 0.18);
  --line-strong: rgba(167, 139, 250, 0.3);
  --soft: rgba(167, 139, 250, 0.1);
  --brand: #a78bfa;
  --cyan: #a5f3fc;
  --grad: linear-gradient(135deg, #7c3aed, #4f46e5 55%, #0891b2);
  --title-grad: linear-gradient(90deg, #e9d5ff, #a78bfa 55%, #67e8f9);
  --page-grad: radial-gradient(120% 60% at 50% 0%, #1b1140 0%, #070916 55%, #05060f 100%);
  --green: #2fb673; /* deeper green for cards, text, and bars; easier on the eyes on the dark background */
  --green-bright: #4ade80; /* kept only for the ring gauge */
  --orange: #fbbf24;
  --red: #f87171;
  --green-bg: rgba(47, 182, 115, 0.07);
  --orange-bg: rgba(251, 191, 36, 0.1);
  --red-bg: rgba(248, 113, 113, 0.1);
  --display: Orbitron, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --tabs-h: 62px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 17px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
/* Page glow, fixed behind everything so it does not scroll away. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--page-grad); }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }

#view {
  max-width: 520px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 12px) calc(env(safe-area-inset-right) + 16px)
    calc(env(safe-area-inset-bottom) + var(--tabs-h) + 24px) calc(env(safe-area-inset-left) + 16px);
}

.top { display: flex; align-items: center; gap: 8px; min-height: 48px; margin-bottom: 12px; }
.top h1 { flex: 1; min-width: 0; margin: 0; font: 900 21px var(--display); letter-spacing: 0.16em; text-transform: uppercase; background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top h1.small { font: 700 21px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.01em; text-transform: none; background: none; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { min-width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; font-size: 22px; color: var(--brand); padding: 0 6px; }
.sub { color: var(--muted); font-size: 15px; margin: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card h2 { margin: 0 0 10px; font: 700 11px var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }

.btn { display: block; width: 100%; min-height: 52px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--soft); font-weight: 600; padding: 10px 16px; }
.btn.primary { border: 0; background: var(--grad); color: #fff; font: 700 14px var(--display); letter-spacing: 0.14em; text-transform: uppercase; box-shadow: 0 6px 22px rgba(124, 58, 237, 0.35); }
.btn.big { min-height: 64px; font-size: 16px; }
.btn.danger { color: var(--red); }
.btn.link { border: 0; background: transparent; color: var(--muted); min-height: 44px; font-weight: 500; }
.btn.link.danger { color: var(--red); }
.btn.ghost-light { width: auto; background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn:disabled { opacity: 0.45; box-shadow: none; }
.btn:active { filter: brightness(1.15); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.stack > * + * { margin-top: 10px; }

/* Dashboard hero and loading screen */
.hero { position: relative; text-align: center; padding: 4px 0 6px; }
.hero-gear { position: absolute; top: 0; right: -6px; z-index: 1; }
/* Dashboard: content sits in the middle of the screen while there is little to show. */
.home { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--tabs-h) - 36px); }
@supports (height: 100dvh) { .home { min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--tabs-h) - 36px); } }
.gem-wrap { position: relative; display: inline-block; }
.gem-holder { width: 100%; height: 100%; perspective: 700px; }
.gem-photo { object-fit: contain; animation: gem-turn 7s ease-in-out infinite; }
@keyframes gem-turn { 0%, 100% { transform: rotateY(-26deg) rotateZ(-1.5deg); } 50% { transform: rotateY(26deg) rotateZ(1.5deg); } }
.gem-wrap::before { content: ""; position: absolute; inset: -12% -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 58, 237, 0.42), rgba(124, 58, 237, 0) 100%); animation: gem-glow 3.6s ease-in-out infinite; }
.gem-slot { position: relative; width: 160px; height: 230px; animation: gem-float 5s ease-in-out infinite; }
.gem-slot.big { width: 210px; height: 300px; }
.gem { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 18px rgba(124, 58, 237, 0.55)) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.65)); }
.gem-flat { perspective: 600px; }
.gem-flat svg { display: block; width: 100%; height: 100%; animation: gem-sway 6s ease-in-out infinite; }
@keyframes gem-glow { 0%, 100% { opacity: 0.55; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes gem-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes gem-sway { 0%, 100% { transform: rotateY(-32deg); } 50% { transform: rotateY(32deg); } }

.brand { margin: 12px 0 4px; font: 900 30px var(--display); letter-spacing: 0.22em; text-indent: 0.22em; text-transform: uppercase; background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { margin: 0; font: 700 11px var(--display); letter-spacing: 0.22em; text-indent: 0.22em; text-transform: uppercase; color: var(--muted); }
.pill { display: inline-block; margin-top: 12px; padding: 3px 14px; border-radius: 999px; font-size: 14px; border: 1px solid; }
.pill.on { color: var(--green); border-color: rgba(47, 182, 115, 0.4); }
.pill.off { color: var(--muted); border-color: rgba(138, 147, 173, 0.35); }
.hero-cta { margin-top: 16px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stat { min-width: 0; padding: 12px 4px; text-align: center; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font: 700 17px var(--display); color: var(--cyan); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.stat b.long { font-size: 13px; line-height: 22px; }
.stat span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.built { margin: 8px 0 14px; text-align: center; font-size: 14px; color: var(--muted); }

.splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 8vh; background: var(--bg); background-image: var(--page-grad); transition: opacity 0.45s ease; }
.splash.out { opacity: 0; pointer-events: none; }
.splash[hidden] { display: none; }
.splash .brand { font-size: 36px; margin-top: 22px; }
.splash .brand-sub { font-size: 12px; }

/* Budget card: the only place green, orange, and red are used. */
.budget { border-radius: var(--radius); padding: 16px; margin: 14px 0; border: 1px solid transparent; text-align: left; }
.budget.green { background: var(--green-bg); border-color: rgba(47, 182, 115, 0.4); }
.budget.orange { background: var(--orange-bg); border-color: rgba(251, 191, 36, 0.6); }
.budget.red { background: var(--red-bg); border-color: rgba(248, 113, 113, 0.6); }
.budget-top { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.budget-main { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.budget.green .budget-main, .budget.green .budget-state { color: var(--green); }
.budget.orange .budget-main, .budget.orange .budget-state { color: var(--orange); }
.budget.red .budget-main, .budget.red .budget-state { color: var(--red); }
.budget-state { font-weight: 600; font-size: 15px; }
.bar { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin: 10px 0 8px; }
.fill { height: 100%; border-radius: 6px; }
.budget.green .fill { background: var(--green); }
.budget.orange .fill { background: var(--orange); }
.budget.red .fill { background: var(--red); }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.line { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-main { flex: 1; min-width: 0; text-align: left; border: 0; background: transparent; padding: 4px 0; min-height: 44px; }
.line-name { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-sub { display: block; color: var(--muted); font-size: 14px; }
.line-total { min-width: 84px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; gap: 2px; }
.stepper button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--soft); font-size: 20px; line-height: 1; }
.stepper span { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper.large button { width: 56px; height: 56px; font-size: 26px; }
.stepper.large span { min-width: 56px; font-size: 24px; }
.total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 19px; padding-top: 12px; }
.sum-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 15px; padding-top: 10px; font-variant-numeric: tabular-nums; }
.sum-row + .total-row { padding-top: 6px; }
.budget-main.small { font-size: 24px; }

/* Shopping list and small add rows */
.add-row { display: flex; gap: 8px; margin-bottom: 14px; }
.add-row input { flex: 1; min-width: 0; }
.add-row .btn { width: auto; flex: none; padding: 10px 18px; }
.card .add-row { margin-bottom: 0; }
.check { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--line-strong); background: transparent; color: #fff; font-size: 18px; font-weight: 700; line-height: 1; padding: 0; }
.check[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #0b0a1f; }
.line.done .line-name { text-decoration: line-through; color: var(--muted); }
.line .icon-btn { color: var(--muted); min-width: 36px; }

.rowlink { display: flex; width: 100%; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent; padding: 12px 0; min-height: 52px; border-bottom: 1px solid var(--line); }
.rowlink:last-child { border-bottom: 0; }
.rowlink .grow { flex: 1; min-width: 0; }
.rowlink .amt { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.rowlink .chev { color: var(--muted); }

.trend { font-size: 14px; font-weight: 600; }
.trend.up { color: var(--red); }
.trend.down { color: var(--green); }
.trend.same { color: var(--muted); }

/* Forms */
label.field { display: block; margin-bottom: 14px; }
label.field > span, .field-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
/* ---------- Refinements (2026-11-23): icons, ring gauge, quick add, calmer cards ---------- */

.ico { display: block; flex: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; }
.tab-ico { display: flex; align-items: center; justify-content: center; height: 26px; }
.chev { display: inline-flex; align-items: center; }
.lock-ico { display: inline-flex; vertical-align: -2px; color: var(--brand); }
.lock-ico.open { color: var(--orange); }

/* Cards read as thin glass panels instead of boxes. */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); border-radius: 18px; }
.card h2 { color: #9aa3c0; }
.rowlink { transition: background-color 0.15s ease; border-radius: 10px; }
.rowlink:active { background: rgba(167, 139, 250, 0.08); }
.amt, .line-total, .total-row, .budget-main { font-variant-numeric: tabular-nums; }

/* Ring gauge: the one main figure on the Budget tab. */
.ringcard { --tone: var(--green-bright); position: relative; text-align: center; padding: 6px 0 4px; margin-bottom: 14px; }
.ringcard.orange { --tone: var(--orange); }
.ringcard.red { --tone: var(--red); }
.ring { position: relative; width: 220px; max-width: 62vw; aspect-ratio: 1; margin: 0 auto; }
.ring::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 16%, transparent), transparent); }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 6; }
.ring-arc { fill: none; stroke: var(--tone); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--tone)); transition: stroke-dashoffset 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), stroke 0.3s ease; }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 26px; }
.ring-cap { font: 700 10px var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.ring-num { font-size: 27px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--tone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ring-num.long { font-size: 21px; }
.ring-sub { font-size: 12.5px; color: var(--muted); }
.ring-state { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--tone); }
.ring-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ring-meta div { min-width: 0; padding: 10px 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.ring-meta span { display: block; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ring-meta b { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

/* Where Extra went */
.where { padding: 8px 0; }
.where-top { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.where-top b { font-weight: 600; font-variant-numeric: tabular-nums; }
.where-bar { height: 4px; margin-top: 6px; border-radius: 2px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.where-bar i { display: block; height: 100%; border-radius: 2px; background: var(--grad); }

/* Quick add */
#view { padding-bottom: calc(env(safe-area-inset-bottom) + var(--tabs-h) + 92px); }
.fab { position: fixed; right: calc(env(safe-area-inset-right) + 18px); bottom: calc(env(safe-area-inset-bottom) + var(--tabs-h) + 16px); z-index: 20; width: 58px; height: 58px; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); box-shadow: 0 8px 26px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); transition: transform 0.15s ease; }
.fab:active { transform: scale(0.94); }
.fab[hidden] { display: none; }
.sheet-item { display: flex; align-items: center; gap: 12px; text-align: left; }
.sheet-item span { flex: 1; }
.ask-box { animation: sheet-up 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes sheet-up { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
#toast.toast { bottom: calc(env(safe-area-inset-bottom) + var(--tabs-h) + 86px); }

@media (prefers-reduced-motion: reduce) {
  .ring-arc, .fab, .rowlink { transition: none; }
  .ask-box { animation: none; }
}

/* Foldable section header (Budget tab) */
.fold { display: flex; width: 100%; align-items: center; gap: 8px; min-height: 44px; margin: -8px 0; padding: 0; border: 0; background: transparent; text-align: left; }
.card .fold h2 { flex: none; margin: 0; }
.fold-sum { flex: 1; min-width: 0; text-align: right; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.fold-ico { flex: none; width: 18px; text-align: center; color: var(--brand); }
.fold[aria-expanded="true"] { margin-bottom: 4px; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot.green { background: var(--green); }
.dot.orange { background: var(--orange); }
.dot.red { background: var(--red); }
.budget[role="button"] { cursor: pointer; }
input[type="date"] { -webkit-appearance: none; appearance: none; color-scheme: dark; }
input[type="text"], input[type="number"], input[type="date"], input[inputmode] {
  width: 100%; min-height: 52px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.05); padding: 10px 14px; font-size: 19px;
}
input::placeholder { color: rgba(138, 147, 173, 0.7); }
input:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.seg { display: flex; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 12px; padding: 3px; margin-bottom: 14px; }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: rgba(167, 139, 250, 0.28); color: #fff; box-shadow: 0 0 14px rgba(167, 139, 250, 0.25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 14px; }
.chip { border: 1px solid var(--line-strong); background: var(--soft); border-radius: 999px; padding: 8px 14px; min-height: 40px; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note { background: var(--card); border: 1px dashed var(--line-strong); border-radius: 12px; padding: 10px 12px; font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.hint { border-radius: 12px; background: var(--card); border: 1px solid var(--line); padding: 10px 12px; margin-bottom: 14px; font-size: 15px; }
.hint .mini { display: inline-block; min-height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--soft); padding: 4px 14px; margin: 6px 6px 0 0; font-weight: 600; }
.hint:empty { display: none; }

/* Tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: rgba(10, 9, 28, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
.tabs button { flex: 1; height: var(--tabs-h); border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.tabs button[aria-current="page"] { color: var(--brand); }
.tab-ico { font-size: 22px; line-height: 1; }
.tabs[hidden] { display: none; }

/* Camera overlay */
.camera { position: fixed; inset: 0; background: #000; z-index: 50; display: flex; flex-direction: column; }
.camera[hidden] { display: none; }
.camera video { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.cam-msg { position: absolute; top: calc(env(safe-area-inset-top) + 12px); left: 16px; right: 16px; margin: 0; text-align: center; color: #fff; background: rgba(0, 0, 0, 0.5); border-radius: 12px; padding: 8px 12px; font-size: 15px; }
.cam-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px calc(env(safe-area-inset-bottom) + 20px); background: #000; min-height: 120px; }
.shutter { width: 76px; height: 76px; border-radius: 50%; border: 5px solid #fff; background: #fff; box-shadow: inset 0 0 0 3px #000; }
.shutter[hidden], .cam-actions .btn[hidden] { display: none; }

/* Busy and toast */
.busy { position: fixed; inset: 0; background: rgba(2, 2, 10, 0.65); z-index: 60; display: flex; align-items: center; justify-content: center; }
.busy[hidden] { display: none; }
.busy-box { background: var(--solid); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 22px 28px; text-align: center; }
.busy-box p { margin: 12px 0 0; }
.spinner { width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* In-app confirm sheet (used instead of the browser's own confirm box) */
.ask { position: fixed; inset: 0; background: rgba(2, 2, 10, 0.65); z-index: 65; display: flex; align-items: flex-end; justify-content: center; padding: 16px 16px calc(env(safe-area-inset-bottom) + 16px); }
.ask[hidden] { display: none; }
.ask-box { width: 100%; max-width: 488px; background: var(--solid); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px 16px 16px; }
.ask-box p { margin: 0 0 16px; text-align: center; font-weight: 600; }
.ask-box .btn.danger { background: #dc2626; border-color: #dc2626; color: #fff; }

.toast { position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + var(--tabs-h) + 14px); background: #ece8ff; color: #0b0a1f; border-radius: 12px; padding: 12px 16px; text-align: center; z-index: 70; font-size: 15px; }
.toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 3s; }
  .gem-slot, .gem-wrap::before, .gem-flat svg, .gem-photo { animation: none; }
}
