:root {
  color-scheme: dark;
  --bg: #0f1020;
  --panel: #1a1b28;
  --panel-2: #212233;
  --line: rgba(255, 255, 255, 0.07);
  --accent: #6842ff;
  --accent-2: #8a6bff;
  --text: #fff;
  --muted: #aaadbe;
  --pink: #ff5fa8;
  --gold: #ffc21a;
  --green: #3ddc84;
  --danger: #ff4d6d;
  font-family:
    "Nunito",
    ui-rounded,
    "SF Pro Rounded",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
}
body {
  padding: 10px;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
}
button:focus-visible,
.tab:focus-visible {
  outline: 3px solid #ffd84d;
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- layout ---------- */
.dt-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 12px;
  width: min(1000px, 100%);
  height: 580px;
  margin: 0 auto;
}
.bakery,
.store {
  position: relative;
  min-width: 0;
  min-height: 0;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.bakery {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 58%,
      rgba(255, 95, 168, 0.22),
      transparent 55%
    ),
    radial-gradient(circle at 50% 120%, rgba(104, 66, 255, 0.45), transparent 60%),
    linear-gradient(180deg, #1d1e30, #15162a);
}
.bakery::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  pointer-events: none;
}
.store {
  display: flex;
  flex-direction: column;
  padding: 10px;
  overflow: hidden;
}

/* ---------- HUD ---------- */
.hud {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.brand-donut {
  width: 28px;
  height: 28px;
  display: inline-block;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}
.brand-donut svg,
.card-donut svg,
.big-donut svg,
.golden svg,
.toast-icon svg,
.icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.chips {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.chip-k {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chip-saved {
  color: var(--green);
  font-size: 11px;
  opacity: 0;
  position: absolute;
  right: 10px;
  top: 44px;
  pointer-events: none;
}
.chip-saved.show {
  animation: saved 1.6s ease;
}
@keyframes saved {
  0%,
  100% {
    opacity: 0;
  }
  15%,
  70% {
    opacity: 1;
  }
}

/* ---------- bank ---------- */
.bank {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 10px 0;
  text-align: center;
}
.bank strong {
  font-size: clamp(30px, 5.2vw, 44px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #ffd7ea);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35));
}
.bank-label {
  font-size: 14px;
  font-weight: 900;
  color: #ffc4de;
  margin-top: 2px;
}
.bank-cps {
  margin-top: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.bank-cps b {
  color: #fff;
  font-weight: 900;
}
.frenzy-tag {
  color: var(--gold);
  font-weight: 900;
}

/* ---------- stage ---------- */
.stage {
  position: relative;
  flex: 1;
  min-height: 220px;
  display: grid;
  place-items: center;
  z-index: 1;
}
.rays,
.glow {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
}
.rays {
  width: 150%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.07) 0deg 9deg,
    transparent 9deg 24deg
  );
  -webkit-mask: radial-gradient(circle, #000 12%, transparent 58%);
  mask: radial-gradient(circle, #000 12%, transparent 58%);
  animation: spin 40s linear infinite;
}
.glow {
  width: min(300px, 70%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 190, 0.45), transparent 68%);
  filter: blur(8px);
}
@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.big-donut {
  position: relative;
  width: min(260px, 64%, 38vh);
  min-width: 150px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.15s ease;
  animation: bob 3.2s ease-in-out infinite;
}
.big-donut:hover {
  transform: scale(1.04);
}
.big-donut:active {
  transform: scale(0.94);
}
.big-donut.squish {
  animation: squish 0.28s ease-out;
}
@keyframes bob {
  50% {
    translate: 0 -6px;
  }
}
@keyframes squish {
  0% {
    scale: 1;
  }
  30% {
    scale: 1.08 0.9;
  }
  60% {
    scale: 0.95 1.05;
  }
  100% {
    scale: 1;
  }
}
.fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}
.float {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  text-shadow:
    0 2px 0 #b3246a,
    0 4px 10px rgba(0, 0, 0, 0.4);
  animation: floatUp 1s ease-out forwards;
}
.float-hot {
  color: #ffe14d;
  font-size: 26px;
}
.float-gold {
  color: #ffe36b;
  font-size: 24px;
  text-shadow:
    0 2px 0 #a86a00,
    0 4px 12px rgba(0, 0, 0, 0.5);
  animation-duration: 1.4s;
}
@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translate(-50%, -30%) scale(0.7);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -60%) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), -260%) scale(1);
  }
}
.bit {
  position: absolute;
  width: 10px;
  height: 4px;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: bit 0.8s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
}
@keyframes bit {
  from {
    transform: translate(-50%, -50%) rotate(0);
    opacity: 1;
  }
  to {
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--r));
    opacity: 0;
  }
}
.golden {
  position: absolute;
  z-index: 4;
  width: var(--gs, 72px);
  height: var(--gs, 72px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  filter: drop-shadow(0 0 14px rgba(255, 206, 60, 0.9)) drop-shadow(0 6px 6px rgba(0, 0, 0, 0.4));
  animation:
    goldIn 0.5s cubic-bezier(0.3, 1.6, 0.5, 1),
    goldBob 1.6s ease-in-out 0.5s infinite;
}
.golden::before {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 220, 90, 0.35) 0 12deg, transparent 12deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%);
  mask: radial-gradient(circle, #000 20%, transparent 70%);
  animation: spinRing 6s linear infinite;
  z-index: -1;
}
@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}
@keyframes goldIn {
  from {
    scale: 0;
    rotate: -90deg;
  }
}
@keyframes goldBob {
  50% {
    translate: 0 -7px;
    rotate: 8deg;
  }
}
.stage.flash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 225, 120, 0.55), transparent 70%);
  animation: flash 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 2;
}
@keyframes flash {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
body.frenzy .rays {
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 214, 80, 0.2) 0deg 9deg,
    transparent 9deg 24deg
  );
  animation-duration: 10s;
}
body.frenzy .glow {
  background: radial-gradient(circle, rgba(255, 210, 80, 0.6), transparent 68%);
}

/* ---------- buffs + ticker ---------- */
.buffs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 14px;
}
.buff {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, #ff9d1a, #ffc21a);
  color: #3a2200;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(255, 170, 30, 0.35);
}
.buff-c {
  background: linear-gradient(90deg, #ff4f9a, #ff8ccf);
  color: #fff;
}
.buff-a {
  background: linear-gradient(90deg, #3ddc84, #8ef0b8);
  color: #06301a;
}
.ad-boost-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px 0;
}
.ad-boost {
  max-width: 100%;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid rgba(61, 220, 132, 0.55);
  border-radius: 999px;
  background: rgba(61, 220, 132, 0.14);
  color: #bff5d6;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.ad-boost:hover {
  background: rgba(61, 220, 132, 0.24);
}
.ad-boost:disabled {
  opacity: 0.7;
  cursor: progress;
}
.ad-boost[hidden],
.ad-boost-note[hidden] {
  display: none;
}
.ad-boost-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.buff-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  transform-origin: left;
}
.buff-label,
.buff-time {
  position: relative;
}
.ticker {
  position: relative;
  z-index: 2;
  margin: 8px 10px 10px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  color: #d8daea;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  min-height: 2.9em;
  display: grid;
  place-items: center;
}
.ticker.tick-in {
  animation: tickIn 0.4s ease;
}
@keyframes tickIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ---------- tabs ---------- */
.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
  flex: none;
}
.tab {
  position: relative;
  min-height: 40px;
  padding: 6px 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.tab[aria-selected="true"] {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow:
    0 4px 12px rgba(104, 66, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.tab-badge {
  position: absolute;
  top: -5px;
  right: -3px;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  vertical-align: 1px;
  animation: badge 1.4s ease-in-out infinite;
}
.tab-badge[hidden] {
  display: none;
}
@keyframes badge {
  50% {
    transform: scale(1.15);
  }
}
.panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-top: 8px;
}
.panel[hidden] {
  display: none;
}
.panel-note {
  margin: 2px 4px 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}
.amount {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 2px 8px;
  flex: none;
}
.amount-k {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 3px;
}
.amt {
  min-width: 52px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: #2a2b3d;
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
}
.amt[aria-pressed="true"] {
  background: #fff;
  color: #2b1a7a;
  box-shadow: 0 3px 10px rgba(255, 255, 255, 0.18);
}
.list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 4px 6px 2px;
  scrollbar-width: thin;
  scrollbar-color: #3a3b55 transparent;
}

/* ---------- store rows ---------- */
.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 7px 12px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background: var(--panel-2);
  text-align: left;
  cursor: pointer;
  flex: none;
  transition:
    background 0.15s,
    transform 0.1s;
}
.row[aria-disabled="true"] {
  cursor: default;
}
.row[aria-disabled="true"] .icon {
  filter: saturate(0.35) brightness(0.8);
}
.row[aria-disabled="true"] .cost {
  color: #ff8a9e;
}
.row.afford {
  background: linear-gradient(180deg, #2a2b44, #25263a);
  border-color: rgba(138, 107, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(138, 107, 255, 0.15);
}
.row.afford:hover {
  background: linear-gradient(180deg, #33345a, #2a2b46);
}
.row.afford:active {
  transform: scale(0.98);
}
.icon {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 5px;
  border-radius: 13px;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 0 rgba(0, 0, 0, 0.18),
    0 4px 8px rgba(0, 0, 0, 0.3);
}
.icon svg {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
.tier {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  color: #2b1a7a;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}
.row-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 1px;
}
.row-name {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-sub {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cost {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #7dffb0;
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.mini {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 28%, #ff6fb0 30% 62%, #d08a45 64%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.owned {
  flex: none;
  font-size: 26px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.row[hidden] {
  display: none;
}
.row.mystery {
  opacity: 0.55;
}
.row.mystery .icon::after {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 22px;
  font-weight: 900;
}
.row.mystery .icon {
  background: #15162a;
}
.row.mystery .icon svg {
  opacity: 0;
}
.row.mystery .row-name {
  letter-spacing: 0.2em;
}
.row.pop {
  animation: pop 0.3s ease;
}
.row.pop .owned {
  animation: popNum 0.35s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.row.shake {
  animation: shake 0.35s ease;
}
@keyframes pop {
  40% {
    transform: scale(1.03);
    background: #3a3070;
  }
}
@keyframes popNum {
  50% {
    transform: scale(1.5);
    color: #ffe14d;
  }
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

/* ---------- awards ---------- */
.awards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  overflow-y: auto;
  min-height: 0;
  padding: 2px 4px 6px 2px;
  scrollbar-width: thin;
  scrollbar-color: #3a3b55 transparent;
}
.award {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: var(--panel-2);
  opacity: 0.5;
}
.award.won {
  opacity: 1;
  background: linear-gradient(160deg, #2e2a4f, #262538);
  border: 1px solid rgba(255, 194, 26, 0.35);
}
.award-icon {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 50%;
  background: #3a3b52;
}
.award-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.award.won .award-icon {
  background: linear-gradient(160deg, #ffe36b, #ff9d1a);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    0 3px 8px rgba(255, 170, 30, 0.35);
}
.award-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.award-text strong {
  font-size: 13px;
  font-weight: 900;
}
.award-text span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

/* ---------- stats ---------- */
.stats {
  margin: 0 0 10px;
  display: grid;
  gap: 4px;
  overflow-y: auto;
  min-height: 0;
}
.stats div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--panel-2);
}
.stats dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.stats dd {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  overflow-wrap: anywhere;
}

/* ---------- pills ---------- */
.pill {
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 5px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.1s;
}
.pill:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 2px 0 rgba(0, 0, 0, 0.3);
}
.pill-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
.pill-secondary {
  background: #2a2b3d;
}
.pill-danger {
  background: linear-gradient(180deg, #ff6d86, var(--danger));
}
.panel .pill-danger {
  align-self: flex-start;
  flex: none;
}
.pill-big {
  min-width: 200px;
  min-height: 56px;
  font-size: 20px;
}

/* ---------- overlays ---------- */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 22px;
  background: rgba(10, 10, 26, 0.72);
  backdrop-filter: blur(6px);
}
.overlay[hidden] {
  display: none;
}
.card {
  width: min(400px, 100%);
  padding: 22px 22px 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, #2a2b44, #1c1d2e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: cardIn 0.4s cubic-bezier(0.3, 1.5, 0.5, 1);
}
@keyframes cardIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
}
.card h2 {
  margin: 4px 0 8px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
#intro .card h2 {
  font-size: 38px;
  background: linear-gradient(180deg, #fff 20%, #ff9ccb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #9b1d5c);
}
.card p {
  margin: 0 0 18px;
  color: #cfd1e2;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}
.card-donut {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45));
  animation: bob 3s ease-in-out infinite;
}
.card-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- toasts ---------- */
.toasts {
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(340px, calc(100% - 20px));
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 9px;
  border-radius: 18px;
  background: linear-gradient(180deg, #34355a, #262740);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  animation: toastIn 0.4s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.toast.out {
  animation: toastOut 0.4s ease forwards;
}
.toast-award {
  border-color: rgba(255, 194, 26, 0.5);
}
.toast-frenzy {
  background: linear-gradient(180deg, #ffcf3a, #ff9d1a);
  color: #3a2200;
}
.toast-frenzy .toast-text span {
  color: #5a3a00;
}
.toast-icon {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}
.toast-award .toast-icon {
  background: linear-gradient(160deg, #ffe36b, #ff9d1a);
  padding: 7px;
}
.toast-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.toast-text strong {
  font-size: 14px;
  font-weight: 900;
}
.toast-text span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #cfd1e2;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
@keyframes toastIn {
  from {
    transform: translateY(20px) scale(0.9);
    opacity: 0;
  }
}
@keyframes toastOut {
  to {
    transform: translateY(10px);
    opacity: 0;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 719px) {
  body {
    padding: 8px;
  }
  .dt-shell {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    gap: 10px;
  }
  .stage {
    min-height: 0;
    height: 230px;
    flex: none;
  }
  .big-donut {
    width: 200px;
    min-width: 0;
  }
  .store {
    height: auto;
  }
  .panel {
    flex: none;
  }
  .list,
  .awards,
  .stats {
    max-height: 440px;
  }
  .chip-k {
    display: none;
  }
  .toast:nth-last-child(n + 3) {
    display: none;
  }
  .toast {
    padding: 7px 12px 7px 7px;
  }
  .toast-icon {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 380px) {
  .brand {
    font-size: 15px;
  }
  .brand-donut {
    width: 24px;
    height: 24px;
  }
  .chip {
    padding: 5px 8px;
    font-size: 12px;
  }
  .tab {
    font-size: 12.5px;
  }
  .row {
    gap: 8px;
    padding-right: 10px;
  }
  .icon {
    width: 42px;
    height: 42px;
  }
  .owned {
    font-size: 22px;
  }
  .awards {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
  .float {
    animation: fadeOnly 1s linear forwards !important;
  }
  @keyframes fadeOnly {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
}
