/* ==================================================================
   Character Forge — web edition
   Built for tablets and phones first; the desktop layout is the wide case.
   ================================================================== */

:root {
  --bg-0: #08060f;
  --bg-1: #120c22;
  --ink: #ece7f8;
  --ink-dim: #a99fc4;
  --ink-faint: #6f6690;
  --gold: #e8c87a;
  --gold-deep: #a98436;
  --line: rgba(232, 200, 122, 0.22);

  --r-common: #9aa4b2;
  --r-rare: #4fa3ff;
  --r-epic: #b06cff;
  --r-legendary: #ffb648;

  --display: "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --body: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --tap: 46px;   /* minimum comfortable tap target */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* Panels below set display:grid/flex, which would otherwise beat the
   hidden attribute. Keep hidden meaning hidden. */
[hidden] { display: none !important; }

html, body { min-height: 100%; margin: 0; }

body {
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(1100px 700px at 18% -10%, #2a1c52 0%, transparent 60%),
    radial-gradient(900px 600px at 92% 8%, #12324f 0%, transparent 55%),
    radial-gradient(800px 800px at 50% 120%, #3a1c46 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  background-attachment: fixed;
  -webkit-user-select: none;
  user-select: none;
  padding-bottom: env(safe-area-inset-bottom);
}

body.is-locked { overflow: hidden; }

.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.ui-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: none;
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.2px 1.2px at 78% 14%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.6px 1.6px at 34% 68%, rgba(232,200,122,.40), transparent),
    radial-gradient(1.1px 1.1px at 62% 82%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.3px 1.3px at 88% 56%, rgba(160,140,255,.45), transparent),
    radial-gradient(1px 1px at 22% 44%, rgba(255,255,255,.30), transparent);
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

/* ---------------- top bar ---------------- */
.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: calc(14px + env(safe-area-inset-top)) 20px 12px;
  border-bottom: 1px solid rgba(232, 200, 122, 0.14);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--gold); font-size: 16px; filter: drop-shadow(0 0 8px rgba(232,200,122,.6)); }

.topbar h1 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0;
  background: linear-gradient(180deg, #fdf3d6 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar-controls { display: flex; align-items: center; gap: 10px; }

.genre-toggle {
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(10, 7, 20, 0.6);
  border: 1px solid var(--line);
}

.genre-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .18s, background .18s;
}
.genre-btn.is-active {
  color: #1a1230;
  background: linear-gradient(180deg, #fbeec4, var(--gold));
  box-shadow: 0 2px 12px rgba(232, 200, 122, .35);
}

.icon-btn {
  position: relative;
  width: var(--tap);
  height: var(--tap);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 7, 20, 0.6);
  color: var(--gold);
  cursor: pointer;
  transition: background .18s, color .18s, opacity .18s;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn.is-muted { color: var(--ink-faint); opacity: .55; }

.badge-count {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--gold);
  color: #1a1230;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

/* ---------------- stage ---------------- */
.stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 560px);
  gap: 24px;
  align-items: start;
  padding: 18px 20px 34px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ---------------- die ---------------- */
.dice-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 16px;
}

.dice-arena {
  position: relative;
  width: 280px;
  height: 270px;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.dice-shadow {
  position: absolute;
  bottom: 26px;
  width: 150px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(127,107,255,.45), transparent 70%);
  filter: blur(5px);
}

.flash-ring {
  position: absolute;
  width: 190px; height: 190px;
  border-radius: 50%;
  border: 2px solid rgba(232, 200, 122, .85);
  opacity: 0;
  pointer-events: none;
}
.flash-ring.is-firing { animation: ring-out .75s cubic-bezier(.2,.7,.3,1); }
@keyframes ring-out {
  0% { opacity: .9; transform: scale(.45); }
  100% { opacity: 0; transform: scale(1.85); }
}

.die {
  width: 200px;
  height: 200px;
  cursor: pointer;
  transform-style: preserve-3d;
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.6)) drop-shadow(0 0 22px rgba(127,107,255,.35));
  animation: idle-bob 4.5s ease-in-out infinite;
}
.die-svg { width: 100%; height: 100%; overflow: visible; }

.die-num {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  fill: #fff8e4;
  paint-order: stroke;
  stroke: rgba(40, 24, 80, .85);
  stroke-width: 4px;
}

@keyframes idle-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-11px) rotate(-2.5deg); }
}

.die.is-rolling { animation: tumble 1.35s cubic-bezier(.32,.06,.28,1) forwards; }
@keyframes tumble {
  0%   { transform: translateY(0) rotateZ(0) rotateX(0) scale(1); }
  12%  { transform: translateY(-96px) rotateZ(180deg) rotateX(28deg) scale(1.1); }
  30%  { transform: translateY(10px) rotateZ(430deg) rotateX(-22deg) scale(.94); }
  46%  { transform: translateY(-58px) rotateZ(700deg) rotateX(20deg) scale(1.06); }
  62%  { transform: translateY(12px) rotateZ(940deg) rotateX(-14deg) scale(.96); }
  78%  { transform: translateY(-24px) rotateZ(1120deg) rotateX(9deg) scale(1.03); }
  90%  { transform: translateY(6px) rotateZ(1240deg) rotateX(-4deg) scale(.98); }
  100% { transform: translateY(0) rotateZ(1440deg) rotateX(0) scale(1); }
}
.die.is-landing { animation: land-pop .5s cubic-bezier(.2,1.5,.4,1); }
@keyframes land-pop { 0% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* ---------------- roll button ---------------- */
.roll-btn {
  position: relative;
  appearance: none;
  cursor: pointer;
  min-height: 62px;
  padding: 14px 40px;
  border-radius: 16px;
  border: 1px solid rgba(232, 200, 122, .55);
  background: linear-gradient(180deg, #2c1f4f 0%, #1a1132 100%);
  color: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .12s;
}
.roll-btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 240, 200, .22), transparent);
  transform: skewX(-18deg);
  animation: sheen 3.6s ease-in-out infinite;
}
@keyframes sheen { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.roll-btn:active { transform: translateY(2px) scale(.99); }
.roll-btn:disabled { opacity: .55; }

.roll-btn-label {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.roll-btn-hint {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------------- card ---------------- */
.card-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.card {
  position: relative;
  border-radius: 18px;
  padding: 18px 20px 16px;
  background: linear-gradient(180deg, rgba(38, 27, 66, .94) 0%, rgba(18, 12, 34, .96) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 26px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .5s ease;
}

/* Each rarity gets its own tint, edge and amount of shine. */
.card[data-rarity="common"] {
  --r: var(--r-common);
  --holo: 0;
  --lift: 0;
  background: linear-gradient(180deg, rgba(38, 27, 66, .94), rgba(18, 12, 34, .96));
}
.card[data-rarity="rare"] {
  --r: var(--r-rare);
  --holo: .22;
  --lift: 1;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(79, 163, 255, .18), transparent 60%),
    linear-gradient(180deg, rgba(30, 38, 74, .95), rgba(14, 16, 36, .97));
}
.card[data-rarity="epic"] {
  --r: var(--r-epic);
  --holo: .4;
  --lift: 2;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(176, 108, 255, .24), transparent 62%),
    linear-gradient(180deg, rgba(46, 27, 78, .95), rgba(20, 11, 38, .97));
}
.card[data-rarity="legendary"] {
  --r: var(--r-legendary);
  --holo: .62;
  --lift: 3;
  background:
    radial-gradient(120% 85% at 50% -22%, rgba(255, 182, 72, .28), transparent 64%),
    linear-gradient(180deg, rgba(58, 36, 34, .95), rgba(26, 14, 26, .97));
}

/* 3D pop: the card leans toward the pointer, more so the rarer it is. */
.card {
  transform:
    perspective(1100px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translateZ(0);
  transform-style: preserve-3d;
  will-change: transform;
}
.card:not(.is-empty) {
  box-shadow:
    0 calc(18px + var(--lift, 0) * 8px) calc(40px + var(--lift, 0) * 16px) rgba(0, 0, 0, .6),
    0 0 calc(var(--lift, 0) * 16px) color-mix(in srgb, var(--r) calc(var(--lift, 0) * 12%), transparent),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

/* ---- holographic sheen ---- */
.card-holo,
.card-glare,
.card-edge {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  z-index: 3;
}

.card-holo {
  opacity: var(--holo, 0);
  /* overlay keeps dark pixels dark — color-dodge blew out the colour
     swatches and the body text. */
  mix-blend-mode: overlay;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 0, 128, .5) 0%,
      rgba(255, 200, 0, .5) 12%,
      rgba(0, 255, 170, .5) 24%,
      rgba(0, 170, 255, .5) 36%,
      rgba(180, 0, 255, .5) 48%,
      rgba(255, 0, 128, .5) 60%
    );
  background-size: 220% 220%;
  background-position: var(--gx, 50%) var(--gy, 0%);
  filter: saturate(1.5) blur(1px);
  transition: background-position .12s linear;

  /* keep the rainbow near the pointer so the text stays readable */
  -webkit-mask-image: radial-gradient(46% 34% at var(--gx, 50%) var(--gy, 0%), #000 0%, rgba(0,0,0,.3) 45%, transparent 72%);
  mask-image: radial-gradient(46% 34% at var(--gx, 50%) var(--gy, 0%), #000 0%, rgba(0,0,0,.3) 45%, transparent 72%);
}

/* a soft specular that follows the pointer */
.card-glare {
  background: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 0%),
    rgba(255, 255, 255, calc(.18 + var(--holo, 0) * .22)),
    transparent 45%
  );
  mix-blend-mode: soft-light;
}

.card.is-empty .card-holo,
.card.is-empty .card-glare,
.card.is-empty .card-edge { opacity: 0; }

/* ---- edges ---- */
.card-edge { border: 1px solid transparent; }

.card[data-rarity="rare"] .card-edge {
  border: 1px solid rgba(79, 163, 255, .5);
  box-shadow: inset 0 0 18px rgba(79, 163, 255, .18);
}
.card[data-rarity="epic"] .card-edge {
  border: 2px solid rgba(176, 108, 255, .55);
  box-shadow: inset 0 0 24px rgba(176, 108, 255, .22);
}
.card[data-rarity="legendary"] .card-edge {
  border: 2px solid transparent;
  background:
    linear-gradient(#0000, #0000) padding-box,
    conic-gradient(from 0deg, #ffb648, #fff3c4, #ff7a3c, #ffd479, #ffb648) border-box;
  animation: edge-spin 6s linear infinite;
  box-shadow: inset 0 0 30px rgba(255, 182, 72, .22);
}
@keyframes edge-spin { to { filter: hue-rotate(360deg); } }

/* outer glow only — the visible edge is drawn by .card-edge */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--r, #9aa4b2) 30%, transparent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--r, #9aa4b2) 28%, transparent);
  pointer-events: none;
}

.card[data-rarity="legendary"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,214,140,.14) 50%, transparent 62%);
  background-size: 260% 100%;
  animation: legendary-shine 4.5s ease-in-out infinite;
}
@keyframes legendary-shine {
  0%, 55% { background-position: 150% 0; }
  100% { background-position: -60% 0; }
}

.card.is-dealing { animation: deal-in .6s cubic-bezier(.2,.8,.3,1); }
@keyframes deal-in {
  0% { opacity: 0; transform: translateY(26px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* gentle breathing while the narrator is speaking */
body.is-narrating .card { animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.008); }
}

.card-empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 380px;
  color: var(--ink-faint);
  text-align: center;
}
.card.is-empty .card-empty-state { display: flex; }
.card.is-empty .card-inner { display: none; }
.empty-glyph { font-size: 34px; color: rgba(232,200,122,.45); }
.card-empty-state p { margin: 0; font-size: 15px; }
.empty-sub { font-size: 13px !important; color: rgba(111,102,144,.75); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.rarity { display: flex; align-items: center; gap: 8px; }
.gem {
  width: 11px; height: 11px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: var(--r);
  box-shadow: 0 0 10px var(--r);
  flex: none;
}
.rarity-name {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--r);
}

.magic-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 5px 12px 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(232,200,122,.2);
  background: rgba(10,7,20,.5);
}
.tag-icon { width: 16px; height: 16px; color: var(--gold); }

.char-name {
  font-family: var(--display);
  font-size: clamp(24px, 5vw, 30px);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 3px;
  color: #fdf6e2;
  text-shadow: 0 2px 18px rgba(232,200,122,.22);
}

.char-sub {
  margin: 0 0 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .85;
}

.art-frame {
  position: relative;
  height: 150px;
  border-radius: 10px;
  border: 1.5px dashed rgba(232, 200, 122, .38);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.016) 0 12px, transparent 12px 24px),
    rgba(8, 5, 16, .45);
  display: grid;
  place-items: center;
  margin-bottom: 13px;
}
.art-corner { position: absolute; width: 13px; height: 13px; border: 1.5px solid var(--gold); opacity: .65; }
.art-corner.tl { top: 7px; left: 7px; border-right: 0; border-bottom: 0; }
.art-corner.tr { top: 7px; right: 7px; border-left: 0; border-bottom: 0; }
.art-corner.bl { bottom: 7px; left: 7px; border-right: 0; border-top: 0; }
.art-corner.br { bottom: 7px; right: 7px; border-left: 0; border-top: 0; }
.art-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(232, 200, 122, .5);
  transition: color .18s;
}
.art-hint .ui-icon { width: 18px; height: 18px; }

/* ---- their own drawing ---- */
.art-drop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 10px;
  z-index: 2;
}
.art-drop:hover .art-hint { color: var(--gold); }

.art-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* safe to fill: they chose this framing in the cropper */
  object-fit: cover;
  border-radius: 9px;
  z-index: 1;
}

.art-frame.has-art {
  height: auto;
  aspect-ratio: 3 / 2;
  border-style: solid;
  border-color: rgba(232, 200, 122, .5);
}
.art-frame.has-art .art-hint {
  opacity: 0;
  transition: opacity .18s;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 5, 16, .78);
  color: var(--gold);
}
.art-frame.has-art .art-drop:hover .art-hint { opacity: 1; }
.art-frame.has-art .art-corner { opacity: .35; }

.art-remove {
  position: absolute;
  top: 7px; right: 7px;
  z-index: 4;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  appearance: none;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(255, 143, 125, .4);
  background: rgba(8, 5, 16, .8);
  color: #ff8f7d;
}
.art-remove:hover { background: rgba(255, 143, 125, .18); }
.art-remove .ui-icon { width: 16px; height: 16px; }

.lib-thumb {
  display: block;
  width: 100%;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}

/* ---------------- description (tap to hear) ---------------- */
.char-desc {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.68;
  color: #ded7f0;
  margin: 0 0 13px;
  padding: 6px 8px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.char-desc:hover { background: rgba(255,255,255,.03); border-color: rgba(232,200,122,.16); }
.char-desc:active { background: rgba(255,255,255,.06); }

.w {
  display: inline-block;
  border-radius: 5px;
  padding: 0 1px;
  transition: color .12s, background .12s, transform .12s;
}
/* a colour word wears its own colour */
.w.is-color {
  background: var(--swatch);
  color: var(--swatch-ink);
  padding: 1px 5px;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 2px 6px rgba(0,0,0,.35);
}

.w.is-spoken {
  color: #1a1230;
  background: linear-gradient(180deg, #fbeec4, var(--gold));
  transform: scale(1.14);
  box-shadow: 0 0 16px rgba(232, 200, 122, .55);
}
.w.is-color.is-spoken {
  color: var(--swatch-ink);
  background: var(--swatch);
  box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(232, 200, 122, .6);
}

/* ---------------- race chip ---------------- */
.char-sub { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

.race-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  cursor: pointer;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(232, 200, 122, .1);
  border: 1px solid rgba(232, 200, 122, .38);
  transition: background .16s, transform .12s;
}
.race-chip:hover { background: rgba(232, 200, 122, .2); }
.race-chip:active { transform: scale(.96); }
.race-eye { width: 15px; height: 15px; opacity: .85; }

.sub-rest { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); opacity: .8; }

/* ---------------- stats ---------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 9px 4px 7px;
  border-radius: 10px;
  background: rgba(8, 5, 16, .5);
  border: 1px solid rgba(232, 200, 122, .14);
}
.stat-icon { width: 19px; height: 19px; color: var(--gold); opacity: .85; margin-bottom: 2px; }
.stat-val {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.stat-key {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------------- moves ---------------- */
.moves { display: flex; flex-direction: column; gap: 8px; }

.move {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  text-align: left;
  appearance: none;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(8, 5, 16, .45);
  border: 1px solid rgba(232, 200, 122, .12);
  border-left: 3px solid var(--kind, var(--gold));
  font-family: var(--body);
  transition: background .18s, transform .18s;
}
.move:active { transform: scale(.99); }
.move.is-reading {
  background: rgba(232, 200, 122, .1);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--kind, #e8c87a) 45%, transparent);
}

.move-badge {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--kind, var(--gold));
  background: color-mix(in srgb, var(--kind, #e8c87a) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--kind, #e8c87a) 42%, transparent);
}
.move-icon { width: 20px; height: 20px; }
.move-body { flex: 1; min-width: 0; }
.move-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.move-name {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: #fdf6e2;
  flex: 1;
}
.cost-pips { display: flex; gap: 3px; flex: none; }
.pip {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--kind, var(--gold));
  opacity: .85;
  box-shadow: 0 0 6px color-mix(in srgb, var(--kind, #e8c87a) 55%, transparent);
}
.move-text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-dim); }

.move[data-kind="Attack"]  { --kind: #ff7d6b; }
.move[data-kind="Special"] { --kind: #7fb0ff; }
.move[data-kind="Defense"] { --kind: #6fdcae; }

.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 9px;
  border-top: 1px solid rgba(232, 200, 122, .14);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------------- action bar ---------------- */
.action-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
}

.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px 12px;
  appearance: none;
  cursor: pointer;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 7, 20, .6);
  color: var(--ink-dim);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: color .16s, background .16s, border-color .16s, transform .12s;
}
.action-btn:active { transform: scale(.97); }
.action-btn:disabled { opacity: .4; cursor: default; }
.action-btn:not(:disabled):hover { color: var(--ink); background: rgba(232,200,122,.08); }

.action-btn.is-primary:not(:disabled) { color: var(--gold); border-color: rgba(232,200,122,.45); }
.action-btn.is-on { color: #1a1230; background: linear-gradient(180deg, #fbeec4, var(--gold)); border-color: var(--gold); }

.action-btn .ui-icon { width: 20px; height: 20px; }

/* animated bars while speaking */
.wave { display: none; align-items: flex-end; gap: 3px; height: 20px; }
.wave i {
  width: 3px;
  background: currentColor;
  border-radius: 2px;
  animation: wave 900ms ease-in-out infinite;
}
.wave i:nth-child(1) { height: 7px;  animation-delay: 0ms; }
.wave i:nth-child(2) { height: 14px; animation-delay: 120ms; }
.wave i:nth-child(3) { height: 20px; animation-delay: 240ms; }
.wave i:nth-child(4) { height: 12px; animation-delay: 360ms; }
.wave i:nth-child(5) { height: 8px;  animation-delay: 480ms; }
@keyframes wave {
  0%, 100% { transform: scaleY(.35); }
  50% { transform: scaleY(1); }
}
.action-btn.is-speaking .wave { display: flex; }
.action-btn.is-speaking > .ui-icon { display: none; }
.action-btn.is-speaking { color: var(--gold); border-color: var(--gold); }

.toast {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #6fdcae;
  padding: 10px;
  border-radius: 10px;
  background: rgba(111, 220, 174, .08);
  border: 1px solid rgba(111, 220, 174, .25);
}

/* ---------------- collection ---------------- */
.library-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 3, 9, .74);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.library-sheet {
  width: min(1000px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #1b1233 0%, #0d0918 100%);
  border: 1px solid var(--line);
  border-bottom: 0;
  padding: 18px 18px calc(20px + env(safe-area-inset-bottom));
  animation: sheet-up .3s cubic-bezier(.2,.8,.3,1);
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.library-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.library-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}
.library-head-actions { display: flex; align-items: center; gap: 8px; }

.text-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink-faint);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 10px;
  cursor: pointer;
}
.text-btn:hover { color: #ff8f7d; }

.library-hint { margin: 4px 0 14px; font-size: 12.5px; color: var(--ink-faint); }

/* ---------------- collection tabs ---------------- */
.lib-tabs {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(8, 5, 16, .6);
  border: 1px solid var(--line);
}

.lib-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  appearance: none;
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: color .16s, background .16s;
}
.lib-tab .ui-icon { width: 17px; height: 17px; }
.lib-tab:hover { color: var(--ink); }
.lib-tab.is-active {
  color: #1a1230;
  background: linear-gradient(180deg, #fbeec4, var(--gold));
}

.tab-count {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: inherit;
}
.lib-tab.is-active .tab-count { background: rgba(26, 18, 48, .18); }

.badge-count.is-deck { background: #6fdcae; }

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  overflow-y: auto;
  padding-bottom: 8px;
}

.lib-tile {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(232, 200, 122, .16);
  background: rgba(8, 5, 16, .6);
  overflow: hidden;
}
.lib-tile[data-rarity="common"]    { --r: var(--r-common); }
.lib-tile[data-rarity="rare"]      { --r: var(--r-rare); }
.lib-tile[data-rarity="epic"]      { --r: var(--r-epic); }
.lib-tile[data-rarity="legendary"] { --r: var(--r-legendary); }
.lib-tile { border-left: 3px solid var(--r); }

.lib-open {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  text-align: left;
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  font-family: var(--body);
  padding: 12px 44px 12px 12px;
  cursor: pointer;
}
.lib-open:hover { background: rgba(232,200,122,.06); }

.lib-top { display: flex; align-items: center; gap: 7px; }
.lib-rarity {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--r);
}
.lib-star { width: 14px; height: 14px; color: var(--gold); }

.lib-name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: #fdf6e2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lib-sub { font-size: 12px; color: var(--ink-dim); }
.lib-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.lib-tags .ui-icon { width: 14px; height: 14px; color: var(--gold); opacity: .8; }

.lib-actions {
  display: flex;
  gap: 4px;
  padding: 0 8px 8px;
}

.lib-act {
  flex: 1;
  min-height: 36px;
  display: grid;
  place-items: center;
  appearance: none;
  border-radius: 8px;
  border: 1px solid rgba(232, 200, 122, .14);
  background: rgba(255, 255, 255, .03);
  color: var(--ink-faint);
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.lib-act:hover { color: var(--ink); background: rgba(232,200,122,.1); }
.lib-act.is-on { color: #1a1230; background: var(--gold); border-color: var(--gold); }
.lib-act:last-child:hover { color: #ff8f7d; border-color: rgba(255,143,125,.35); background: rgba(255,143,125,.1); }
.lib-act .ui-icon { width: 17px; height: 17px; }

.library-empty { text-align: center; color: var(--ink-faint); font-size: 14px; padding: 30px 0; }

/* ---------------- race reference modal ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(4, 3, 9, .78);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-sheet {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  background: linear-gradient(180deg, #1b1233 0%, #0d0918 100%);
  border: 1px solid var(--line);
  padding: 18px;
  animation: sheet-up .28s cubic-bezier(.2,.8,.3,1);
}

.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gold);
}
.modal-hint { margin: 6px 0 14px; font-size: 13px; line-height: 1.55; color: var(--ink-dim); }

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

.fig-cell {
  margin: 0;
  padding: 10px 6px 8px;
  border-radius: 14px;
  background: rgba(8, 5, 16, .55);
  border: 1px solid rgba(232, 200, 122, .16);
  text-align: center;

  --fig-body: #2f2947;
  --fig-line: #cdc4e6;
  --fig-glow: var(--gold);
}

.fig-svg { width: 100%; height: auto; max-height: 300px; display: block; }

.fig-cell figcaption {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.fig-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-faint);
}

/* ==================================================================
   Cropping the drawing
   ================================================================== */
.modal-crop { width: min(560px, 100%); }

.crop-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #05040a;
  touch-action: none;          /* we handle pan and pinch ourselves */
  cursor: grab;
}
.crop-stage:active { cursor: grabbing; }

.crop-image {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* corner marks so the card's frame is obvious while they position it */
.crop-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(232, 200, 122, .55);
  border-radius: 12px;
  background:
    linear-gradient(to right, rgba(232,200,122,.16) 1px, transparent 1px) 33.33% 0 / 33.33% 100%,
    linear-gradient(to bottom, rgba(232,200,122,.16) 1px, transparent 1px) 0 33.33% / 100% 33.33%;
}

.crop-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.crop-btn {
  width: var(--tap);
  height: var(--tap);
  flex: none;
  display: grid;
  place-items: center;
  appearance: none;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 7, 20, .6);
  color: var(--gold);
}
.crop-btn:active { transform: scale(.94); }

.crop-zoom {
  flex: 1;
  height: var(--tap);
  accent-color: var(--gold);
  background: transparent;
}

.crop-use {
  flex: none;
  min-height: var(--tap);
  padding: 0 22px;
  appearance: none;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #fbeec4, var(--gold));
  color: #1a1230;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.crop-use:disabled { opacity: .6; cursor: default; }

/* ==================================================================
   The opening — a potion to uncork or a data core to smash
   ================================================================== */
.reveal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(30, 18, 60, .82), rgba(4, 3, 9, .94));
  backdrop-filter: blur(7px);
}

.reveal-fx { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

.reveal-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.reveal.is-shaking { animation: rig-shake .5s cubic-bezier(.36,.07,.19,.97); }
@keyframes rig-shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, -2px, 0); }
  30%, 50%, 70% { transform: translate3d(-7px, 2px, 0); }
  40%, 60% { transform: translate3d(7px, -1px, 0); }
}
.reveal[data-rarity="epic"].is-shaking { animation-duration: .6s; }
.reveal[data-rarity="legendary"].is-shaking { animation-duration: .75s; }

.vessel {
  width: min(46vw, 240px);
  cursor: pointer;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .6));
  animation: vessel-idle 2.4s ease-in-out infinite;
  transition: transform .18s;
}
.vessel:active { transform: scale(.96); }
.vessel-svg { width: 100%; height: auto; display: block; overflow: visible; }

@keyframes vessel-idle {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

/* the rarer it is, the more it strains before it goes */
.vessel.tier-2 { animation-duration: 1.9s; }
.vessel.tier-3 { animation-duration: 1.4s; filter: drop-shadow(0 0 22px rgba(176,108,255,.5)); }
.vessel.tier-4 { animation-duration: .9s; filter: drop-shadow(0 0 34px rgba(255,182,72,.75)); }

.v-core { animation: core-pulse 1.5s ease-in-out infinite; transform-origin: 100px 120px; }
@keyframes core-pulse {
  0%, 100% { opacity: .75; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

.v-bub { animation: bubble 2.6s ease-in-out infinite; }
.v-bub2 { animation-delay: .5s; }
.v-bub3 { animation-delay: 1.1s; }
@keyframes bubble {
  0% { transform: translateY(0); opacity: .0; }
  25% { opacity: .8; }
  100% { transform: translateY(-58px); opacity: 0; }
}

/* the pop */
.vessel.is-opening { animation: none; }
.vessel.is-opening .v-cork { animation: cork-fly .7s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes cork-fly {
  to { transform: translate(46px, -190px) rotate(220deg); opacity: 0; }
}
.vessel.is-opening .v-bottle,
.vessel.is-opening .v-shell {
  animation: vessel-break .8s cubic-bezier(.3,.8,.4,1) forwards;
}
@keyframes vessel-break {
  30% { transform: scale(1.16); filter: brightness(2.2); }
  100% { transform: scale(1.9); opacity: 0; filter: brightness(3); }
}
.vessel.is-opening .v-core { animation: core-blow .55s ease-out forwards; }
@keyframes core-blow {
  to { transform: scale(5); opacity: 0; }
}

.reveal-prompt {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(19px, 4.6vw, 30px);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
  text-shadow: 0 2px 22px rgba(232, 200, 122, .5);
  animation: prompt-throb 1.5s ease-in-out infinite;
}
@keyframes prompt-throb {
  0%, 100% { opacity: .8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.reveal-skip {
  appearance: none;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(232, 200, 122, .28);
  border-radius: 999px;
  color: var(--ink-faint);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 10px 22px;
}
.reveal-skip:hover { color: var(--gold); border-color: var(--gold); }

/* ---------------- admin ---------------- */
.brand-mark {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(232,200,122,.6));
}
.brand-mark:active { transform: scale(.9); }

.modal-narrow { width: min(380px, 100%); }
.modal-wide { width: min(1080px, 100%); max-height: 92vh; }

.unlock-form { display: flex; gap: 8px; margin-top: 14px; }

.unlock-input {
  flex: 1;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 5, 16, .7);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;   /* 16px stops iOS zooming the page on focus */
}
.unlock-input:focus { outline: none; border-color: var(--gold); }
.unlock-input.is-wrong { animation: shake .32s; border-color: #ff8f7d; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.unlock-go {
  min-height: 48px;
  padding: 0 20px;
  appearance: none;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #fbeec4, var(--gold));
  color: #1a1230;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.unlock-error { margin: 10px 0 0; font-size: 12.5px; color: #ff8f7d; }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  overflow-y: auto;
  padding: 2px 2px 8px;
}

.admin-race {
  border-radius: 14px;
  border: 1px solid rgba(232, 200, 122, .16);
  background: rgba(8, 5, 16, .55);
  padding: 10px;
}

.admin-race-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.admin-race-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: #fdf6e2;
}
.admin-genre {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.admin-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-fig { padding: 6px 4px; }
.admin-fig .fig-svg { max-height: 170px; }

.fig-img {
  display: block;
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  border-radius: 8px;
}
.fig-cell .fig-img { max-height: 280px; }

.admin-controls { display: flex; gap: 5px; margin-top: 6px; justify-content: center; }

.admin-upload,
.admin-reset {
  appearance: none;
  cursor: pointer;
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(232, 200, 122, .28);
  background: rgba(255, 255, 255, .04);
  color: var(--ink-dim);
}
.admin-upload:hover, .admin-reset:hover { color: var(--gold); background: rgba(232,200,122,.12); }
.admin-upload input { display: none; }
.admin-reset { border-color: rgba(255,143,125,.28); }
.admin-reset:hover { color: #ff8f7d; background: rgba(255,143,125,.1); }

/* ---------------- phones and small tablets ---------------- */
@media (max-width: 900px) {
  .stage {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 14px 14px 30px;
  }
  .dice-panel { position: static; gap: 14px; }
  .dice-arena { width: 200px; height: 190px; }
  .die { width: 150px; height: 150px; }
  .flash-ring { width: 132px; height: 132px; }
  .dice-shadow { width: 110px; }
  .roll-btn { width: 100%; max-width: 420px; }
  .card { padding: 16px 15px 14px; }
  .art-frame { height: 128px; }
  .action-bar { grid-template-columns: 1fr 1fr; }
  .action-btn.is-primary { grid-column: 1 / -1; }
  .library-sheet { max-height: 92vh; border-radius: 18px 18px 0 0; }
}

@media (max-width: 560px) {
  .topbar { padding-left: 14px; padding-right: 14px; }
  .topbar h1 { font-size: 17px; letter-spacing: .1em; }
  .genre-btn { padding: 10px 11px; font-size: 11px; }
  .stats { gap: 6px; }
  .stat-val { font-size: 19px; }
  .stat-key { font-size: 8px; letter-spacing: .06em; }
  .char-desc { font-size: 14.5px; }
  .library-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .die, .die.is-rolling, .card.is-dealing, .roll-btn::after, .stars,
  .card[data-rarity="legendary"]::after, .wave i, body.is-narrating .card,
  .vessel, .v-core, .v-bub, .reveal-prompt, .card[data-rarity="legendary"] .card-edge {
    animation: none !important;
  }
  .w.is-spoken { transform: none; }
  .card { transform: none !important; }
}
