:root {
  --ember: #ff6f00;
  --gold: #ffd700;
  --ink: #0a0a0a;
  --cream: #fff6e0;
  --cream-dim: rgba(255, 246, 224, 0.76);
  --line: rgba(255, 215, 0, 0.42);
  --lacquer: rgba(10, 10, 10, 0.72);
  --tile: 48px;
  --gap: 5px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  color: var(--cream);
  font-family: Manrope, "Avenir Next", "Segoe UI", sans-serif;
  overscroll-behavior: none;
}

body {
  min-height: 100dvh;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
p { margin: 0; }

::selection { background: var(--ember); color: var(--ink); }

.screen { display: none; }
.screen.is-on {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  height: 100dvh;
  overflow: auto;
  position: relative;
  isolation: isolate;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.screen::before,
.screen::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.screen::before {
  background: var(--bg) center / cover no-repeat;
  z-index: -2;
}

.screen::after {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.78), rgba(10, 10, 10, 0.42) 32%, rgba(10, 10, 10, 0.86));
  z-index: -1;
}

.screen-menu { --bg: url("jungle-sovereign.jpg"); }
.screen-shop { --bg: url("molten-aurora.jpg"); }
.screen-records { --bg: url("lantern-dusk.jpg"); }
.screen-settings { --bg: url("jungle-sovereign.jpg"); }
.screen-play { --bg: url("molten-aurora.jpg"); }
.screen-play::after { background: rgba(10, 10, 10, 0.86); }
.screen-rite::before,
.screen-rite::after { display: none; }

.eyebrow {
  margin: 0 0 6px;
  color: var(--ember);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: Cinzel, Palatino, "Palatino Linotype", Georgia, serif; font-weight: 700; }

.wordmark {
  margin: 0;
  font-size: clamp(2.5rem, 9vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.wordmark span { display: block; color: var(--gold); }

.lede, .sheet-lead, .rite-copy p, .set-row p, .outcome-card p {
  color: var(--cream-dim);
  line-height: 1.45;
}

.lede { margin-top: 12px; font-size: 1.02rem; }

.crest-medal {
  width: clamp(116px, 30vw, 188px);
  aspect-ratio: 1;
  margin: 0 auto 12px;
  padding: 7px;
  border-radius: 50%;
  background: conic-gradient(from 30deg, var(--gold), var(--ember), #fff1a8, #8a5200, var(--gold));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.crest-medal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #3a2010, var(--ink) 72%);
}

.menu-frame {
  width: min(1080px, 100%);
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  flex: 1;
}

.hero { text-align: center; }

.purse-line {
  margin-top: 14px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.plaque {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 88px;
  padding: 12px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 215, 0, 0.16), rgba(255, 111, 0, 0.05) 46%, rgba(10, 10, 10, 0.15)),
    var(--lacquer);
  box-shadow: inset 0 0 0 1px rgba(255, 111, 0, 0.18), 0 12px 28px rgba(0, 0, 0, 0.28);
}

.plaque::before,
.plaque::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--gold);
  border-style: solid;
}

.plaque::before { top: 7px; left: 7px; border-width: 2px 0 0 2px; }
.plaque::after { right: 7px; bottom: 7px; border-width: 0 2px 2px 0; }

.plaque img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.plaque span { min-width: 0; }
.plaque strong {
  display: block;
  color: var(--gold);
  font-family: Cinzel, Palatino, Georgia, serif;
  font-size: clamp(0.92rem, 3.5vw, 1.15rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plaque small { color: var(--cream); font-size: 0.78rem; }

.plaque:active { transform: translateY(1px) scale(0.99); }

.gold-btn, .ghost-btn, .block-btn {
  border-radius: 999px;
  min-height: 48px;
  padding: 0 18px;
}

.gold-btn {
  border: 0;
  width: min(100%, 440px);
  background: linear-gradient(180deg, #ffe58a, var(--gold) 42%, #d79b00);
  color: var(--ink);
  font-family: Cinzel, Palatino, Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(255, 111, 0, 0.32);
}

.gold-btn:active, .ghost-btn:active, .block-btn:active { transform: translateY(1px); }

.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.55);
  color: var(--cream);
  font-weight: 700;
}

.block-btn {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.62);
  color: var(--gold);
  font-family: Cinzel, Palatino, Georgia, serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.block-btn.is-danger { color: #ffb088; border-color: rgba(255, 111, 0, 0.7); }

.sheet { width: min(740px, 100%); margin: 0 auto; }
.sheet-lead { margin: 14px 0 4px; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.bar h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.purse-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  margin: 0;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.55);
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.purse-pill img { width: 26px; height: 26px; object-fit: contain; }

.shop-list, .ledger { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ledger { list-style: none; padding: 0; }

.ware, .ledger li, .set-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.62);
}

.ware img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.ware h3, .set-row strong { margin: 0; color: var(--gold); font-size: 1.05rem; }
.ware p, .set-row p { margin-top: 3px; font-size: 0.92rem; }
.ware .owned { color: var(--gold); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ware-copy { flex: 1; min-width: 0; }

.buy-btn {
  flex: none;
  min-width: 84px;
  min-height: 48px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(180deg, #ffe58a, var(--gold));
  color: var(--ink);
  font-weight: 800;
}

.buy-btn:disabled { background: #2a2418; color: rgba(255, 246, 224, 0.45); }

.ledger li { display: grid; grid-template-columns: auto 1fr auto; }
.ledger li.is-first { border-color: var(--ember); box-shadow: inset 0 0 0 1px rgba(255, 111, 0, 0.35); }
.rank { font-family: Cinzel, Palatino, Georgia, serif; color: var(--gold); font-size: 1.25rem; }
.ledger .who { font-weight: 700; }
.ledger .meta, .empty-ledger { color: var(--cream-dim); }
.ledger .points { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--cream); }

.set-row { justify-content: space-between; align-items: center; margin-top: 10px; }
.set-row div { min-width: 0; }

.switch {
  width: 58px;
  height: 34px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #17130f;
  position: relative;
  padding: 0;
}

.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #8a8a8a;
  transition: transform 160ms ease, background 160ms ease;
}

.switch[aria-checked="true"] { background: var(--ember); }
.switch[aria-checked="true"] i { transform: translateX(24px); background: var(--gold); }

.screen-play.is-on {
  overflow: auto;
  padding: 0;
}

.play-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding:
    max(10px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    8px
    max(12px, env(safe-area-inset-left));
}

.level-chip {
  margin: 0;
  color: var(--cream);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.level-chip strong { color: var(--gold); font-family: Cinzel, Palatino, Georgia, serif; font-size: 1rem; letter-spacing: 0; }

.play-layout {
  flex: 1;
  min-height: min-content;
  display: flex;
  flex-direction: column;
  padding: 0 max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  gap: 8px;
}

.side-stats { order: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.board-frame { order: 2; }
.booster-tray { order: 3; }

.stat {
  text-align: center;
  padding: 6px 4px 7px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.62);
}

.stat span {
  display: block;
  color: var(--ember);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  color: var(--gold);
  font-family: Cinzel, Palatino, Georgia, serif;
  font-size: clamp(1rem, 4.4vw, 1.55rem);
  font-variant-numeric: tabular-nums;
}

.stat em {
  display: block;
  color: var(--cream-dim);
  font-style: normal;
  font-size: 0.75rem;
}

.sigil-row { grid-column: 1 / -1; display: flex; justify-content: center; gap: 6px; }
.sigil-row img { width: 30px; height: 30px; object-fit: contain; }
.sigil-row img.is-new { outline: 2px solid var(--ember); border-radius: 8px; outline-offset: 2px; }

.how {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  color: var(--cream-dim);
  font-size: 0.82rem;
}

.board-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.board {
  display: grid;
  gap: var(--gap);
  touch-action: none;
  position: relative;
  padding: 8px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 215, 0, 0.16), rgba(255, 111, 0, 0.05)),
    rgba(10, 10, 10, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.38), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.board::before,
.board::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold);
  pointer-events: none;
}

.board::before { top: 5px; left: 5px; border-right: 0; border-bottom: 0; }
.board::after { right: 5px; bottom: 5px; border-left: 0; border-top: 0; }

.tile {
  width: var(--tile);
  height: var(--tile);
  padding: 3px;
  border-radius: calc(var(--tile) * 0.22);
  border: 1px solid rgba(255, 215, 0, 0.28);
  background: radial-gradient(circle at 50% 35%, #32241a, #0a0a0a 74%);
  box-shadow: inset 0 0 0 1px rgba(255, 111, 0, 0.14);
  touch-action: none;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.tile.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(255, 111, 0, 0.75);
  z-index: 2;
}

.tile.is-hint { animation: pulse 0.9s ease-in-out infinite; }
.tile.is-clear { transform: scale(0.35); opacity: 0; transition: 180ms ease; }

.score-pop {
  position: absolute;
  left: 50%;
  top: 18%;
  z-index: 5;
  color: var(--gold);
  font-family: Cinzel, Palatino, Georgia, serif;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  text-shadow: 0 2px 10px #000;
  pointer-events: none;
  animation: lift 720ms ease forwards;
}

.booster-tray {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.boost {
  min-height: 68px;
  padding: 4px 2px 5px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.boost img { width: 28px; height: 28px; object-fit: contain; }
.boost span { font-size: 0.62rem; letter-spacing: 0.03em; text-transform: uppercase; font-weight: 700; }
.boost em { font-style: normal; color: var(--gold); font-size: 0.72rem; font-weight: 800; }
.boost.is-empty { opacity: 0.42; }
.boost.is-armed {
  border-color: var(--ember);
  box-shadow: 0 0 0 1px var(--ember), 0 0 16px rgba(255, 111, 0, 0.5);
}

.screen-rite.is-on { display: block; padding: 0; overflow: hidden; }

.rite-pips {
  position: absolute;
  z-index: 4;
  top: max(14px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.rite-pip { width: 36px; height: 4px; border-radius: 99px; background: rgba(255, 215, 0, 0.28); }
.rite-pip.is-here, .rite-pip.is-done { background: var(--gold); }

.rite-page {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  padding:
    max(58px, calc(env(safe-area-inset-top) + 46px))
    20px
    max(72px, calc(env(safe-area-inset-bottom) + 58px));
}

.rite-page.is-on { display: flex; }
.rite-page .bg, .rite-page .shade { position: absolute; inset: 0; }
.rite-page .bg { background-position: center; background-size: cover; z-index: -2; }
.rite-page .shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.62), rgba(10, 10, 10, 0.18) 34%, rgba(10, 10, 10, 0.84));
}

.rite-copy { text-align: center; width: min(640px, 100%); margin: 0 auto; }
.coin-count {
  margin-top: 6px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rite-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 8vw, 3.4rem);
  color: var(--cream);
  line-height: 0.95;
}

.rite-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.seal {
  width: clamp(180px, 54vw, 280px);
  aspect-ratio: 1;
  border: 0;
  padding: 12px;
  border-radius: 50%;
  background: transparent;
  position: relative;
  touch-action: none;
}

.seal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--p, 0) * 1turn), rgba(255, 215, 0, 0.18) 0);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%);
  mask: radial-gradient(circle, transparent 62%, #000 64%);
}

.seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(255, 111, 0, 0.28), rgba(10, 10, 10, 0.92) 70%);
  filter: saturate(0.25) brightness(0.62);
  transition: filter 280ms ease;
}

.seal.is-awake img { filter: none; }

.coin-stage {
  position: relative;
  width: min(640px, 100%);
  height: min(420px, 48dvh);
}

.loose-coin {
  position: absolute;
  width: clamp(76px, 18vw, 120px);
  height: clamp(76px, 18vw, 120px);
  padding: 0;
  border: 0;
  background: transparent;
  touch-action: manipulation;
}

.loose-coin img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); }
.loose-coin:nth-child(1) { left: 6%; top: 16%; animation: drift-a 2.8s ease-in-out infinite; }
.loose-coin:nth-child(2) { right: 8%; top: 6%; animation: drift-b 3.4s ease-in-out infinite; }
.loose-coin:nth-child(3) { left: 36%; bottom: 8%; animation: drift-c 3s ease-in-out infinite; }
.loose-coin.is-caught { animation: none; opacity: 0; transform: translateY(-50px) scale(0.3); transition: 420ms ease; pointer-events: none; }

.lamp-row { display: flex; align-items: flex-end; justify-content: center; gap: clamp(4px, 2vw, 16px); width: min(100%, 560px); }
.lamp {
  width: clamp(68px, 18vw, 120px);
  padding: 0;
  border: 0;
  background: transparent;
  filter: grayscale(1) brightness(0.42);
  transition: filter 180ms ease, transform 180ms ease;
}
.lamp img { width: 100%; height: auto; object-fit: contain; }
.lamp.is-lit { filter: none; transform: translateY(-8px); }
.lamp-row.is-wrong { animation: shake 360ms ease; }
.win-trophy { width: clamp(92px, 22vw, 140px); filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5)); }

.quiet {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  color: rgba(255, 246, 224, 0.82);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 40px;
}

.rite-page .gold-btn { align-self: center; margin-top: 8px; }

.outcome, .modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 10, 10, 0.74);
}

.outcome[hidden], .modal[hidden] { display: none; }

.outcome-card, .modal-card {
  width: min(440px, 100%);
  max-height: min(88dvh, 680px);
  overflow: auto;
  padding: 22px 18px 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 111, 0, 0.16), rgba(10, 10, 10, 0.2) 28%),
    #120e0b;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.outcome-card img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 8px; }
.outcome-card h3, .modal-card h3 { margin: 0 0 8px; font-size: clamp(1.6rem, 5vw, 2.1rem); color: var(--cream); }
.modal-card { text-align: left; }
.modal-card h3 { color: var(--gold); }
.outcome-actions, .modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.outcome-actions .gold-btn, .modal-actions .gold-btn, .outcome-actions .ghost-btn, .modal-actions .ghost-btn { flex: 1; width: auto; }

.toast {
  position: fixed;
  z-index: 40;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  opacity: 0;
  pointer-events: none;
  max-width: min(92vw, 440px);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.92);
  color: var(--gold);
  text-align: center;
  transition: 180ms ease;
}

.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.noscript {
  position: fixed;
  inset: auto 16px 16px 16px;
  padding: 12px;
  background: var(--ink);
  color: var(--cream);
}

button:focus-visible, .tile:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (hover: hover) {
  .plaque:hover, .ware:hover, .ghost-btn:hover {
    border-color: var(--gold);
  }
  .plaque:hover { transform: translateY(-2px); }
}

@media (min-width: 900px) {
  .menu-frame {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
  }
  .hero { text-align: left; }
  .crest-medal { margin-left: 0; }
  .menu-grid { gap: 16px; }
  .plaque { min-height: 108px; padding: 16px; }
  .plaque img { width: 58px; height: 58px; }
}

@media (min-width: 1040px) {
  .play-layout {
    width: min(1180px, 100%);
    margin: 0 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 230px minmax(300px, 1fr) 250px;
    grid-template-areas: "tray board stats";
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
  }
  .booster-tray { grid-area: tray; order: 0; grid-template-columns: 1fr; align-self: center; }
  .board-frame { grid-area: board; order: 0; height: 100%; }
  .side-stats {
    grid-area: stats;
    order: 0;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 12px;
  }
  .sigil-row, .how { justify-content: flex-start; text-align: left; }
  .stat { text-align: left; padding: 12px 14px; }
  .stat strong { font-size: 1.8rem; }
  .boost {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    min-height: 58px;
    padding: 8px 12px;
  }
  .boost img { width: 36px; height: 36px; }
  .boost span { font-size: 0.84rem; letter-spacing: 0.06em; }
  .play-bar { width: min(1180px, 100%); margin: 0 auto; }
}

@media (max-width: 359px) {
  .plaque small { display: none; }
  .plaque { min-height: 72px; }
  .boost span { font-size: 0.56rem; }
}

@media (max-height: 680px) {
  .how { font-size: 0.72rem; }
  .crest-medal { width: 96px; }
  .lede { display: none; }
  .sigil-row img { width: 24px; height: 24px; }
  .coin-stage { height: min(280px, 42dvh); }
  .stat { padding: 4px 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(16px, -22px); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-18px, 20px); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(14px, -16px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.15); }
  50% { box-shadow: 0 0 0 3px var(--ember); }
}
@keyframes lift {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-28px); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}
