:root {
  color-scheme: dark;
  --bg: #1c1714;
  --bg-2: #241c18;
  --card: #2a211c;
  --ink: #f6efe4;
  --muted: #b7a89a;
  --line: rgba(228, 194, 122, 0.28);
  --gold: #e4c27a;
  --gold-2: #f0d7a2;
  --bad: #ff8b98;
  --ok: #b7d7a8;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  height: 100%;
  background: #120e0c;
  color: var(--ink);
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  overscroll-behavior: none;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

body.is-dragging { overflow: hidden; }

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

button {
  touch-action: manipulation;
  cursor: pointer;
}

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

.shell {
  width: min(430px, 100%);
  height: 100dvh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
  user-select: none;
  -webkit-user-select: none;
}

.shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(rgba(255, 244, 230, 0.05) 0.65px, transparent 0.75px),
    radial-gradient(rgba(0, 0, 0, 0.28) 0.65px, transparent 0.75px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
}

.topbar,
.view,
.tabbar,
.home-ad,
.consent,
.embed-bar {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  gap: 6px;
  align-items: stretch;
  padding: 8px 10px 4px;
}

.pill,
.icon-btn {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
}

.pill {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 4px 8px 5px;
}

.pill b,
.num {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill small,
.subnum {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.icon-btn {
  width: 44px;
  flex: none;
  border-radius: 14px;
  color: var(--gold);
  font-size: 12px;
}

.view {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.view.is-board {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 16px 28px;
}

.h1,
.hero-title {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif SC", Palatino, serif;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.hero-title { font-size: 40px; text-align: center; }

.h1 { font-size: 26px; letter-spacing: 0.08em; }

.lead { margin: 0; color: var(--muted); line-height: 1.5; }

.muted { margin: 0; color: var(--muted); line-height: 1.45; font-size: 13px; }

.hero-sub {
  margin: 0;
  text-align: center;
  color: var(--gold-2);
  font-size: 14px;
}

.ball {
  width: 148px;
  height: 148px;
  margin: 4px auto;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.5), transparent 26%),
    conic-gradient(from 24deg, var(--ya), var(--yb) 18%, var(--ya) 34%, var(--yb) 52%, var(--ya) 70%, var(--yb) 86%, var(--ya));
  box-shadow: var(--shadow), inset 0 0 0 7px rgba(0, 0, 0, 0.16);
}

.ball i,
.ball b {
  position: absolute;
  border-radius: 50%;
  border: 3px dashed var(--yn);
  opacity: 0.75;
}

.ball i { inset: 22px; }
.ball b { inset: 46px; border-style: solid; border-width: 4px; opacity: 0.9; }

.card {
  background:
    linear-gradient(180deg, rgba(255, 244, 230, 0.045), rgba(0, 0, 0, 0.08)),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.card-title { margin: 6px 0; font-size: 18px; }

.banner {
  width: 100%;
  text-align: left;
  border-radius: 18px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(228, 194, 122, 0.5);
  background: linear-gradient(135deg, #4a3424, #2a211c 62%);
  box-shadow: var(--shadow);
}

.banner strong { display: block; font-size: 16px; margin-bottom: 4px; }
.banner span { color: var(--gold-2); font-size: 12px; }

.dots {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.dot-btn {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #5c4a40;
}

.dot-btn.is-on { background: var(--gold); }

.row-3 { display: flex; gap: 8px; }

.btn {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #6a5346;
  background: #3c2f29;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.btn.block { width: 100%; }

.btn.primary {
  background: linear-gradient(180deg, #f3ddb0, #d7a441);
  color: #2a1c0c;
  border-color: #f0d7a2;
  font-weight: 750;
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
}

.btn.danger {
  background: #6e2c34;
  border-color: #ff8b98;
  color: #ffe8ea;
}

.btn:active { transform: translateY(1px) scale(0.98); }

.btn:disabled {
  opacity: 0.42;
  transform: none;
}

.row-3 .btn {
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
  font-size: 13px;
  position: relative;
}

.tag {
  display: inline-block;
  font-size: 11px;
  line-height: 1.4;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(228, 194, 122, 0.45);
  color: var(--gold-2);
}

.tag.sold { color: var(--muted); border-color: #5c4a40; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-grid div {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  padding: 10px;
}

.stat-grid b { display: block; font-size: 18px; }
.stat-grid span { color: var(--muted); font-size: 12px; }

.tabbar {
  display: flex;
  flex: none;
  background: #181410;
  border-top: 1px solid rgba(228, 194, 122, 0.16);
  padding-bottom: env(safe-area-inset-bottom);
}

.tab {
  position: relative;
  flex: 1;
  min-height: 54px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
}

.tab i { font-style: normal; font-size: 16px; color: var(--gold); }

.tab.is-on { color: var(--gold-2); }

.dot {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #ff4d6d;
  box-shadow: 0 0 0 2px #181410;
  display: none;
}

.tab .dot {
  top: 8px;
  right: calc(50% - 18px);
}

.dot.is-on { display: block; }

.with-dot { position: relative; }

.game-screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.game-hud,
.game-tools {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  align-items: center;
  padding: 4px 10px;
}

.game-screen.is-settled .game-tools {
  visibility: hidden;
}

.game-hud { color: var(--ink); font-size: 13px; }

.hud-bit { white-space: nowrap; }
.hud-bit.bad { color: var(--bad); }
.hud-bit.ok { color: var(--ok); }
.hud-score.is-flash { color: var(--gold-2); animation: pop 0.35s ease; }

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

canvas.board {
  position: relative;
  z-index: 1;
  display: block;
  flex: none;
  touch-action: none;
  cursor: grab;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(228, 194, 122, 0.34);
}

canvas.board:active { cursor: grabbing; }

.game-tools .btn {
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
  font-size: 14px;
}

.coach {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  z-index: 3;
  margin: 0;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(36, 28, 24, 0.94);
  border: 1px solid rgba(228, 194, 122, 0.55);
  color: var(--gold-2);
  font-size: 13px;
  pointer-events: none;
}

.coach.is-hidden { display: none; }

.settle {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px;
  background: rgba(8, 6, 5, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.settle.is-hidden { display: none; }

.settle-card {
  width: 100%;
  max-height: 100%;
  overflow: auto;
  background-color: #2a211c;
  background-image: linear-gradient(180deg, rgba(255, 244, 230, 0.07), transparent 32%);
  color: var(--ink);
  border: 1px solid rgba(228, 194, 122, 0.46);
  border-radius: 22px 22px 16px 16px;
  padding: 16px 14px 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
}

.settle-kicker { margin: 0; color: var(--gold); letter-spacing: 0.16em; font-size: 12px; }

.settle-title {
  margin: 0 0 4px;
  text-align: center;
  font-family: "Songti SC", "STSong", Palatino, serif;
  font-size: 28px;
  letter-spacing: 0.14em;
}

.settle-sec {
  padding: 8px 2px;
  border-top: 1px solid rgba(228, 194, 122, 0.18);
}

.settle-level { margin: 2px 0 0; font-size: 16px; }
.settle-coin { margin: 0; font-size: 18px; font-weight: 700; }
.settle-sub, .settle-auto { margin: 0; color: var(--muted); font-size: 13px; }
.settle-auto { margin-top: 4px; }

.settle-primary { margin-top: 8px; }
.settle-primary .btn { width: 100%; }

.settle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.settle-actions .btn { flex: 1 1 calc(50% - 8px); }
.settle-actions .btn.wide { flex: 1 1 100%; }

.stars { display: flex; gap: 6px; font-size: 28px; }

.star { opacity: 0.28; }

.star.on {
  color: var(--gold-2);
  opacity: 0;
  transform: scale(0.4);
  animation: pop 0.35s ease forwards;
}

.star.on:nth-child(2) { animation-delay: 0.12s; }
.star.on:nth-child(3) { animation-delay: 0.24s; }

.float-plus {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 3;
  color: var(--gold-2);
  font-size: 32px;
  font-weight: 800;
  pointer-events: none;
  animation: floatup 0.55s ease forwards;
}

.mask {
  position: fixed;
  inset: 0;
  z-index: 92;
  background: rgba(8, 6, 5, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.modal {
  width: min(420px, 100%);
  background:
    linear-gradient(180deg, rgba(255, 244, 230, 0.04), transparent 30%),
    #2a221c;
  border-radius: 20px;
  border: 1px solid rgba(228, 194, 122, 0.42);
  padding: 18px 16px 14px;
  box-shadow: var(--shadow);
}

.modal-title { margin: 0 0 8px; font-size: 20px; }

.modal-body { margin: 0 0 12px; line-height: 1.55; color: var(--ink); }

.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-actions .btn { flex: 1 1 40%; }

.toast-root {
  position: fixed;
  z-index: 100;
  left: 50%;
  top: calc(10px + env(safe-area-inset-top));
  transform: translateX(-50%);
  width: min(400px, calc(100% - 24px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #3a2e24;
  border: 1px solid rgba(228, 194, 122, 0.42);
  border-radius: 999px;
  padding: 10px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.ad {
  position: fixed;
  inset: 0;
  z-index: 80;
  background:
    radial-gradient(circle at 50% 20%, rgba(228, 194, 122, 0.16), transparent 32%),
    #120e0c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ad-card { width: min(420px, 100%); }

.ad-kicker { margin: 0; color: var(--gold); letter-spacing: 0.2em; font-size: 12px; }
.ad-title { margin: 8px 0; font-size: 28px; }
.ad-line { margin: 0 0 16px; line-height: 1.5; color: var(--muted); }

.ad-bar {
  height: 8px;
  border-radius: 99px;
  background: #3a3028;
  overflow: hidden;
  margin-bottom: 14px;
}

.ad-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #c9963a, #f0d7a2);
}

.gold-burst {
  position: fixed;
  inset: 0;
  z-index: 96;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(255, 214, 120, 0.48), transparent 56%);
  animation: fade 0.9s ease forwards;
}

.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day {
  min-height: 72px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #241c18;
  padding: 6px 2px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.day b { display: block; color: var(--ink); font-size: 13px; margin-top: 4px; }
.day.is-today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.day.is-done { background: #3a2e18; color: var(--gold-2); }
.day.is-chest b { color: var(--gold-2); }

.bar {
  height: 8px;
  border-radius: 99px;
  background: #3a3028;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8c6a3d, #f0d7a2);
}

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

.mission-top, .rank-row, .link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.link-row, .rank-row {
  width: 100%;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #241c18;
  padding: 12px;
  position: relative;
}

.rank-row { padding: 8px 12px; }

.page.tight { gap: 8px; }

.rank-row.is-you { border-color: var(--gold); }
.rank-row span { min-width: 0; overflow-wrap: anywhere; }

.rank-who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rank-idx {
  width: 28px;
  flex: none;
  text-align: center;
  font-style: normal;
  color: var(--muted);
}

.medal {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.medal.m-1 {
  color: #3a2808;
  background: radial-gradient(circle at 35% 30%, #fff6d4, #f0d078 46%, #c8902e);
  box-shadow: 0 0 0 2px #a87420;
}

.medal.m-2 {
  color: #24303a;
  background: radial-gradient(circle at 35% 30%, #ffffff, #d5dae1 48%, #8e98a4);
  box-shadow: 0 0 0 2px #7d868f;
}

.medal.m-3 {
  color: #3a1c0c;
  background: radial-gradient(circle at 35% 30%, #ffe4cc, #e09a62 48%, #a85a30);
  box-shadow: 0 0 0 2px #8a4c28;
}

.medal::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -6px;
  height: 8px;
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.medal.m-1::after { background: #c8902e; }
.medal.m-2::after { background: #8e98a4; }
.medal.m-3::after { background: #a85a30; }

.you-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #2a1c0c;
  font-size: 12px;
}

.skin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.skin {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #241c18;
  padding: 6px;
  min-height: 92px;
  text-align: center;
}

.skin.is-off { filter: grayscale(1); opacity: 0.55; }
.skin.is-eq { border-color: var(--gold); }

.swatch {
  height: 28px;
  border-radius: 10px;
  margin-bottom: 4px;
}

.skin small { display: block; color: var(--muted); font-size: 10px; }
.skin b { display: block; font-size: 12px; font-weight: 650; }

.reveal {
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #241c18;
}

.reveal.is-n { box-shadow: inset 0 0 0 1px #d9d3cb; }
.reveal.is-r { box-shadow: inset 0 0 0 1px #67b4ff, 0 0 18px rgba(103, 180, 255, 0.25); }
.reveal.is-sr { box-shadow: inset 0 0 0 1px #c084fc, 0 0 18px rgba(192, 132, 252, 0.28); }
.reveal.is-ssr {
  box-shadow: inset 0 0 0 1px #ffd76a, 0 0 28px rgba(255, 215, 106, 0.45);
  animation: pulse 0.8s ease;
}

.gacha-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 2px;
}

.gacha-aside {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gacha-aside .muted { margin: 0; font-size: 13px; }

.gacha-rate {
  margin: 2px 0 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.yarn-ball {
  width: 108px;
  height: 108px;
  flex: none;
}

.yarn-ball canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.yarn-ball.is-spin { animation: spin 0.7s linear; }

.profile-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.2);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.45), transparent 28%),
    conic-gradient(from 20deg, var(--ya), var(--yb), var(--ya), var(--yb));
}

.share-preview canvas {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.copy-box {
  width: 100%;
  min-height: 96px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #1c1714;
  color: var(--ink);
  padding: 8px;
  user-select: text;
  -webkit-user-select: text;
}

.fine { font-size: 12px; color: var(--muted); text-align: center; }

.ad-slot {
  flex: none;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  background: rgba(0, 0, 0, 0.18);
}

/* 没接广告网络时整块收起，不占位、不留空框 */
.ad-slot.is-off { display: none !important; }

/* 收款码：没有支付链接时的最快通道 */
.pay-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 4px 0 2px;
}

.qr-img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-sizing: content-box;
  object-fit: contain;
}

/* 收款码弹窗里那行联系方式 */
.pay-qr .muted { text-align: center; word-break: break-all; }

.home-ad { display: none; }

.shell[data-route="home"]:not(.is-embed) .home-ad {
  display: flex;
  border-top: 1px solid rgba(228, 194, 122, 0.16);
}

.page .ad-slot {
  border-radius: 16px;
  border: 1px dashed rgba(228, 194, 122, 0.28);
}

.ad-badge {
  position: absolute;
  top: 4px;
  left: 8px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold);
  opacity: 0.85;
  pointer-events: none;
}

.ad-slot iframe,
.ad-slot ins,
.ad-slot .adsbygoogle {
  max-width: 100%;
  width: 320px;
  height: 50px;
  max-height: 50px;
  overflow: hidden;
  border: 0;
}

.consent {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #241c18;
  border-top: 1px solid rgba(228, 194, 122, 0.2);
}

.consent.is-off { display: none; }

.consent-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.consent .btn {
  flex: none;
  min-height: 32px;
  padding: 4px 8px;
  font-size: 12px;
}

.embed-bar {
  display: none;
  flex: none;
  justify-content: center;
  padding: 6px 10px calc(8px + env(safe-area-inset-bottom));
  background: #181410;
  border-top: 1px solid rgba(228, 194, 122, 0.16);
}

.embed-bar a {
  color: var(--gold-2);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.shell.is-embed .topbar,
.shell.is-embed .tabbar,
.shell.is-embed .home-ad { display: none; }

.shell.is-embed .embed-bar { display: flex; }

.code-input {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #1c1714;
  color: var(--ink);
  padding: 8px 12px;
  user-select: text;
  -webkit-user-select: text;
}

.switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

@media (min-width: 840px) {
  body {
    background:
      radial-gradient(circle at 16% 36%, rgba(228, 194, 122, 0.18), transparent 24%),
      radial-gradient(circle at 86% 64%, rgba(224, 122, 95, 0.14), transparent 22%),
      #120e0c;
  }

  .shell {
    width: 430px;
    box-shadow:
      0 0 0 1px rgba(228, 194, 122, 0.32),
      0 24px 80px rgba(0, 0, 0, 0.45);
  }

  .mask { align-items: center; }

  .settle { align-items: center; padding: 18px; }

  .settle-card {
    width: min(360px, 100%);
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .star.on,
  .float-plus,
  .gold-burst,
  .yarn-ball.is-spin,
  .reveal.is-ssr,
  .hud-score.is-flash {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  to { opacity: 1; transform: scale(1); }
}

@keyframes floatup {
  to { opacity: 0; transform: translate(-50%, -28px); }
}

@keyframes fade {
  to { opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

@keyframes pulse {
  50% { transform: scale(1.03); }
}
