/* Om Nom mini app — styles.
   Layout: a single fixed screen (max 430px wide) that never scrolls; the wheel
   is scaled through --ws so everything fits the viewport height. Bottom sheets
   slide over the screen. */

/* ---------- fonts ---------- */
@font-face { font-family: "Fira Sans Condensed"; font-weight: 800; font-display: swap;
  src: url("fonts/fira-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Fira Sans Condensed"; font-weight: 800; font-display: swap;
  src: url("fonts/fira-800-cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Condensed"; font-weight: 800; font-style: italic; font-display: swap;
  src: url("fonts/fira-800i-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Fira Sans Condensed"; font-weight: 800; font-style: italic; font-display: swap;
  src: url("fonts/fira-800i-cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Condensed"; font-weight: 900; font-style: italic; font-display: swap;
  src: url("fonts/fira-900i-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Fira Sans Condensed"; font-weight: 900; font-style: italic; font-display: swap;
  src: url("fonts/fira-900i-cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- tokens ---------- */
:root {
  --bg: #131319;
  --panel: #141419;
  --purple: #7934dd;
  --btn-disabled: #343445;
  --pill: #2b2b30;
  --card: rgba(255, 255, 255, 0.1);
  --text-dim: rgba(255, 255, 255, 0.51);
  --text-half: rgba(255, 255, 255, 0.5);
  --accent-grad: linear-gradient(100deg, #dfc9ff 0%, #c9f4ff 46%, #ab70ff 100%);
  --day-grad: linear-gradient(100deg, #6e90ff 0%, #964dff 100%);
  --premium-grad: linear-gradient(248deg, #c3a7eb 9.5%, #d78cf7 35.8%, #738dff 92.9%);
  --font-ui: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fira Sans Condensed", "Arial Narrow", var(--font-ui);
  --glow-alpha: 0.12;
  --glow-blur: 14px;
  --glow-scale: 1.4;
  /* the wheel face (wheel.svg) is drawn up to r 220.5 of 501, the frame's rim (wheel-frame.svg) starts at r 230:
     every rotating face is scaled by 230/220.5 so its edge meets the rim (app.js reads it as FACE_SCALE) */
  --face-scale: 1.0431;
  --safe-top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: calc(var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + var(--tg-content-safe-area-inset-bottom, 0px));
  --sheet-ease: cubic-bezier(0.22, 0.9, 0.3, 1);
}

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: #fff;
  font-family: var(--font-ui);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; }
img { -webkit-user-drag: none; }

.accent-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- screen skeleton ---------- */
.screen {
  position: fixed;
  inset: 0;
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: calc(12px + var(--safe-top)) 16px calc(16px + var(--safe-bottom));
  overflow: hidden;
}
#main.scroll { overflow-y: auto; }
#main.compact .prizes-block { display: none; }

/* flexible spacers: they shrink first when the viewport is short */
.sp { flex-shrink: 1; min-height: 6px; }
.sp-a { flex: 2 1 31px; }
.sp-b { flex: 3 1 30px; min-height: 10px; }
.sp-c { flex: 1 1 14px; min-height: 8px; }

.top { position: relative; padding-top: 6px; }
.titles { text-align: center; }
.h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 31px;
  line-height: 28px;
  letter-spacing: 0.2px;
}
.sub { margin-top: 8px; font-size: 16px; font-weight: 500; color: var(--text-dim); }

/* ---------- wheel ---------- */
.wheel-zone { flex: 0 0 auto; display: flex; justify-content: center; }
.wheel-wrap {
  position: relative;
  width: 322px;
  height: 322px;
  flex-shrink: 0;
  transform: scale(var(--ws, 1));
  transform-origin: center top;
  /* keep the layout box in sync with the scaled visual box */
  margin-top: calc(22px * var(--ws, 1));
  margin-bottom: calc(322px * var(--ws, 1) - 322px);
}
.wheel-wrap.fit-anim {
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), margin 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wheel {
  position: absolute;
  inset: 0;
  left: -2px;
  right: 2px;
  will-change: transform;
}
.wheel .wheel-face { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wheel-frame {
  position: absolute;
  top: 0;
  left: -2px;
  width: 322px;
  height: 322px;
  pointer-events: none;
  transform: scale(1.003);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
}
/* gift cells sit on r 150 of the 36° sectors: 42 px keeps the widest gift art (the rocket's flame reaches its
   corners) about 4 px off the dividers; the candy art fills more of its square, so 38 px reads the same size */
.cell, .cell-glow {
  position: absolute;
  width: 42px;
  height: 42px;
  pointer-events: none;
}
.cell.paw-cell, .cell-glow.paw-cell { width: 38px; height: 38px; }
.cell { transform: translate(-50%, -50%); }
.cell-glow {
  transform: translate(-50%, -50%) scale(var(--glow-scale));
  filter: blur(var(--glow-blur));
  opacity: var(--glow-alpha);
}
.pointer {
  position: absolute;
  right: -21px;   /* was -18px: the rim got narrower and the face bigger, so the tip moved out to stay off the candy icons */
  top: 50%;
  width: 54px;
  height: 32px;
  transform: translateY(-50%);
  z-index: 2;
  filter: drop-shadow(0 2px 3px rgba(40, 15, 90, 0.32));
}
.pointer img { width: 100%; height: 100%; display: block; }

/* badges hanging off the wheel */
.badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  background: none;
  border: 0;
  cursor: pointer;
  color: #fff;
}
.badge-right { right: -28px; top: -31px; padding: 16px 10px 4px; }
.badge-right.badge-lower { top: 20px; padding: 4px 10px 16px; }
.badge-left { left: -28px; top: -31px; padding: 16px 10px 4px; flex-direction: row-reverse; }
.badge-pill {
  background: var(--pill);
  border-radius: 31px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.badge-dot {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  margin: -7px 0 0 -15px;
  border-radius: 50%;
  background: var(--purple);
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  pointer-events: none;
}
.badge-left .badge-dot { margin: -7px -15px 0 0; }
.paw-ic { width: 17px; height: 17px; vertical-align: -3px; margin: -1px 5px -1px 0; }

/* ---------- streak strip ---------- */
.series-block { margin-top: 9px; }
.block-label { margin: 0 0 5px 10px; font-size: 14px; font-weight: 500; color: var(--text-dim); }
.series {
  display: flex;
  background: var(--card);
  border-radius: 20px;
  padding: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}
.series::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 auto;
  min-width: 67px;
  height: 30px;
  padding: 0 10px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-half);
  white-space: nowrap;
}
.day.current { background: #fff; }
.day.current span {
  background: var(--day-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.day.prize-day { background: var(--accent-grad); color: #131319; }
.day.prize-day span { color: #131319; -webkit-text-fill-color: #131319; }
.day.goal-day { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.78); }
.day.goal-day.current { background: #fff; }
.day.goal-day.taken { background: none; color: var(--text-half); }
.day-bonus { margin-left: 5px; color: #fff; font-weight: 700; }
.day.goal-day.current .day-bonus {
  background: var(--day-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.day.goal-day.taken .day-bonus { color: var(--text-half); }

/* ---------- prizes strip ---------- */
.prizes-block {
  position: relative;
  margin-top: 8px;
  height: 77px;
  flex-shrink: 0;
  background: var(--card);
  border-radius: 20px;
}
.prizes {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.prizes::-webkit-scrollbar { display: none; }
.prize-tgs { flex: 0 0 auto; width: 57px; height: 57px; }
.prize-tgs canvas, .prize-tgs img { display: block; width: 100%; height: 100%; }
.prize-q {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--accent-grad);
  color: #131319;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prize-prem { background: var(--premium-grad); }
.prize-prem svg { width: 34px; height: 34px; display: block; overflow: visible; }
.prizes-fade {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
}
.prizes-fade::before, .prizes-fade::after {
  content: "";
  position: absolute;
  inset: 0;
  transition: opacity 0.25s ease;
}
.prizes-fade::before { background: linear-gradient(90deg, rgba(19, 19, 25, 0) 40%, rgba(19, 19, 25, 0.85) 100%); }
.prizes-fade::after { background: linear-gradient(90deg, rgba(19, 19, 25, 0) calc(100% - 72px), rgba(19, 19, 25, 0.85) 100%); opacity: 0; }
.prizes-fade.at-end::before { opacity: 0; }
.prizes-fade.at-end::after { opacity: 1; }
.prizes-chevron {
  position: relative;
  z-index: 1;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  background: #34343a;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.28s var(--sheet-ease), opacity 0.2s ease;
}
.prizes-chevron:active { opacity: 0.6; }
.prizes-chevron.back { transform: rotate(180deg); }

/* ---------- status + buttons ---------- */
.status { text-align: center; font-size: 15px; font-weight: 600; color: var(--text-dim); }
.status b { color: #fff; font-weight: 600; }

.bottom-bar { flex-shrink: 0; }
.bottom-bar .btn:not([hidden]) ~ .btn:not([hidden]) { margin-top: 10px; }
.btn {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, opacity 0.18s ease;
}
.btn:active { transform: scale(0.97); filter: brightness(1.08); }
.btn-primary { background: var(--purple); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.22); }
.btn.disabled { background: var(--btn-disabled); color: var(--text-half); pointer-events: none; }
.btn.busy, .btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.btn[aria-busy="true"] { animation: pulse 1.1s ease-in-out infinite; }
.btn .star { width: 18px; height: 18px; margin-left: -2px; flex: 0 0 auto; }
/* the gift chance of a paid spin (SPEC 5.9) on the paid buttons and on «Крутить!»: «шанс 5%» */
.btn .paid-odds {
  flex: 0 0 auto;
  margin-left: -2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #131319;
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  white-space: nowrap;
}
.btn.disabled .paid-odds { opacity: 0.5; }
.btn-offer .offer-mini { width: 22px; height: 22px; flex: 0 0 auto; }
.btn-offer.pending { opacity: 0; visibility: hidden; pointer-events: none; }
.btn:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.8); outline-offset: -5px; }
@keyframes pulse { 50% { opacity: 0.4; } }

/* ---------- splash (not onboarded) ---------- */
.splash-center { margin: auto; text-align: center; }
.mini-wheel { position: relative; width: 81px; height: 81px; margin: 0 auto; }
.mini-wheel img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-wheel .face { transform: scale(var(--face-scale)); }
.mini-wheel .frame { transform: scale(1.003); }
.splash-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 24px;
  line-height: 22px;
}
.splash-sub { margin: 10px auto 0; max-width: 200px; font-size: 16px; font-weight: 500; color: var(--text-dim); }

/* fatal screen (401 at start) */
.fatal {
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  text-align: center;
  font-size: 16px;
  color: #fff;
}
/* boot failure other than 401: overlays the (still hidden) screens and offers a retry */
.fatal.boot-error { position: fixed; inset: 0; z-index: 20; flex-direction: column; gap: 22px; background: var(--bg); }
.fatal.boot-error .btn { width: auto; min-width: 220px; padding: 0 28px; }

/* ---------- sparkles / confetti ---------- */
.sparkles { position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; }
.confetti { position: fixed; inset: 0; z-index: 9; pointer-events: none; }

/* ---------- overlay + sheets ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  background: #000;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.overlay.show { opacity: 0.5; }
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  max-width: 430px;
  margin: 0 auto;
  padding: 10px 16px calc(16px + var(--safe-bottom));
  background: var(--panel);
  border-radius: 24px 24px 0 0;
  text-align: center;
  transform: translateY(105%);
  transition: transform 0.32s var(--sheet-ease);
  /* a very short screen (the chance sheet has the most lines): scroll inside the sheet instead of cutting its top */
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet.show { transform: translateY(0); }
.sheet-handle {
  width: 28px;
  height: 6px;
  margin: 2px auto 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.2);
}
.m-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 24px;
  line-height: 22px;
}
.m-sub { margin-top: 7px; font-size: 16px; font-weight: 500; }
.m-note { margin: 8px auto 0; max-width: 330px; font-size: 15px; font-weight: 400; color: var(--text-dim); }
.m-note b { color: #fff; font-weight: 600; }
.m-note.dim { margin-top: 16px; color: var(--text-half); }
.m-note.goal { margin-top: 12px; color: #fff; font-weight: 500; }
.goal-risk { margin-top: 2px; font-weight: 400; color: var(--text-dim); }
.m-sub.narrow, .m-note.narrow { max-width: 250px; margin-left: auto; margin-right: auto; }
.link { color: #b18aff; }
.in-sheet { margin-top: 18px; }
.chance-big {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 48px;
  line-height: 1.05;
}

/* win sheet */
.win-stage { position: relative; width: 175px; margin: 6px auto 0; }
.win-badge {
  position: absolute;
  right: -46px;
  top: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  border-radius: 31px;
  background: rgba(239, 164, 14, 0.15);
  color: #ffb900;
  font-size: 15px;
  font-weight: 500;
}
.star-ic { font-size: 13px; }
.big-tgs { width: 145px; height: 145px; margin: 0 auto; }
.big-tgs.solo { margin-top: 8px; }
.big-tgs canvas, .big-tgs img { display: block; width: 100%; height: 100%; }
.wrote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-dim);
  cursor: pointer;
}
.wrote-box {
  position: relative;
  display: inline-block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.wrote-box.on { background: var(--purple); }
.wrote-box.on::after {
  content: "✓";
  position: absolute;
  inset: 0;
  color: #fff;
  font-size: 12px;
  line-height: 19px;
  text-align: center;
}

/* paw sheets */
.paw-hero { width: 145px; height: 145px; margin: 8px auto 0; }
.paw-hero img { width: 100%; height: 100%; display: block; }
.paw-hero.small { width: 72px; height: 72px; margin-top: 12px; }
.paw-hero.small + .chance-big { margin-top: 6px; }
.sheet.show .paw-hero img { animation: pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes pop {
  from { transform: scale(0.4) rotate(-14deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.paws-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  max-width: 270px;
  margin: 14px auto 0;
}
.paw-slot {
  width: 21px;
  height: 21px;
  background: url("assets/candy.png") center / contain no-repeat;
  opacity: 0.16;
  filter: grayscale(1);
}
.paw-slot.on { opacity: 1; filter: none; }
.sheet.show .paw-slot.new { animation: pop 0.5s 0.3s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.paw-bar { display: block; width: 100%; max-width: 250px; height: 8px; border-radius: 4px; background: var(--card); overflow: hidden; }
.paw-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #cb984c, #8c5823); }
.m-note.hot { color: #fff; font-weight: 500; }
/* «50★» inside a text line (i18n STARS): one line, the star in gold like the prices on the tiles and the win badge */
.price { white-space: nowrap; }
.price i { margin-left: 1px; font-style: normal; color: #ffb900; }
/* the chance sheet's Sweet Hunt line: its top prize («Бриллиант за 100★», app.js renderHuntChance) on one line */
.hunt-top { white-space: nowrap; }

/* candies sheet: the gift the candies are exchanged for (one tile per paws_gifts entry) */
.paws-pick { display: flex; justify-content: center; gap: 8px; max-width: 330px; margin: 14px auto 0; }
.pick {
  flex: 1 1 0;
  min-width: 0;
  max-width: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px 7px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: var(--card);
  color: #fff;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}
.pick:active { transform: scale(0.96); }
.pick:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.8); outline-offset: -5px; }
.pick.on { border-color: #b18aff; background: rgba(121, 52, 221, 0.18); }
.pick-img { display: block; width: 48px; height: 48px; object-fit: contain; }
.pick-emoji { display: block; height: 48px; font-size: 34px; line-height: 48px; }
.pick-name { max-width: 100%; font-size: 13px; font-weight: 600; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-price { display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; line-height: 14px; color: #ffb900; }
.pick-price .star { width: 12px; height: 12px; flex: 0 0 auto; }
.pick.on .pick-img, .pick.on .pick-emoji { animation: pick-hop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes pick-hop { 40% { transform: translateY(-3px) scale(1.1); } }

/* friends sheet */
.fr-progress { display: flex; gap: 6px; justify-content: center; max-width: 250px; margin: 16px auto 0; }
.fr-seg { flex: 1 1 0; height: 8px; border-radius: 4px; background: var(--card); }
.fr-seg.on { background: var(--accent-grad); }
.fr-partner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 330px;
  margin: 14px auto 0;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: var(--card);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-align: left;
}
.fr-partner-ic { width: 30px; height: 30px; flex: 0 0 auto; }

/* chance sheet steps strip */
.chance-steps { max-width: 300px; margin: 14px auto 0; }
.chance-row { display: flex; background: var(--card); border-radius: 20px; padding: 3px; }
.chance-row .day { flex: 1 1 0; min-width: 0; padding: 0 6px; font-size: 14px; }
.chance-row .day-bonus { margin-left: 4px; }
.chance-caps { display: flex; margin-top: 6px; padding: 0 3px; }
.chance-caps > div {
  flex: 1 1 0;
  min-width: 0;
  font-size: 12px;
  line-height: 15px;
  color: var(--text-dim);
  text-align: center;
  white-space: nowrap;
}

/* ---------- offer card + offer sheet ---------- */
.offer-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 14px 0 0;
  padding: 10px 10px 10px 12px;
  border: 0;
  border-radius: 18px;
  background: var(--card);
  color: #fff;
  font-family: var(--font-ui);
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
}
.offer-card:active { transform: scale(0.98); }
.offer-card:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.8); outline-offset: -5px; }
.offer-row { display: flex; align-items: center; gap: 12px; }
.offer-ic { position: relative; flex: 0 0 44px; width: 44px; height: 44px; }
.offer-ic img { width: 100%; height: 100%; display: block; }
.offer-plus {
  position: absolute;
  right: -7px;
  top: -6px;
  min-width: 24px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--purple);
  box-shadow: 0 0 0 2px var(--panel);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #fff;
}
.offer-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.offer-h { font-size: 15px; font-weight: 600; }
.offer-s {
  font-size: 13px;
  line-height: 16px;
  color: var(--text-dim);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
.offer-cta {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  background: var(--purple);
  font-size: 14px;
  font-weight: 600;
  line-height: 34px;
  white-space: nowrap;
}
.offer-hint { display: block; margin: 8px 2px 0 56px; font-size: 13px; line-height: 16px; color: rgba(255, 255, 255, 0.82); }
.offer-card.wait .offer-cta { animation: pulse 1.1s ease-in-out infinite; }
.offer-card.ok { background: rgba(52, 199, 89, 0.14); }
.offer-card.ok .offer-cta { width: 34px; padding: 0; text-align: center; font-size: 17px; background: #2fb457; }

.offer-hero { position: relative; width: 112px; height: 112px; margin: 8px auto 0; }
.offer-hero img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.offer-hero .face { transform: scale(var(--face-scale)); animation: turn 24s linear infinite; }
.offer-hero .frame { transform: scale(1.003); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28)); }
/* both ends spelled out: a lone `to` would interpolate from the plain scale() as a matrix and never turn */
@keyframes turn {
  from { transform: rotate(0deg) scale(var(--face-scale)); }
  to { transform: rotate(360deg) scale(var(--face-scale)); }
}
.offer-plus.big {
  right: -16px;
  top: 2px;
  min-width: 46px;
  height: 30px;
  padding: 0 10px;
  border-radius: 15px;
  font-size: 16px;
  line-height: 30px;
  box-shadow: 0 0 0 3px var(--panel);
}

/* ---------- anti-abuse: human check, required channel, banned, dev toast ---------- */
.m-note.warn { color: #ff8a9b; }
.verify-field {
  position: relative;
  width: 100%;
  height: 220px;
  margin-top: 16px;
  border-radius: 20px;
  background: var(--card);
  touch-action: none;
}
.verify-target {
  position: absolute;
  right: 24px;
  top: 50%;
  width: 84px;
  height: 84px;
  margin-top: -42px;
  border: 2px dashed rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.verify-field.near .verify-target { border-color: #b18aff; background: rgba(121, 52, 221, 0.18); transform: scale(1.06); }
.verify-field.ok .verify-target { border-color: #2fb457; border-style: solid; background: rgba(52, 199, 89, 0.14); }
.verify-field.fail .verify-target { border-color: #ff6b81; }
.verify-bear {
  position: absolute;
  left: 24px;
  top: 50%;
  z-index: 2;
  width: 64px;
  height: 64px;
  margin-top: -32px;
  padding: 7px;
  border-radius: 50%;
  background: var(--pill);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  object-fit: contain;
  cursor: grab;
  touch-action: none;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.2, 1.6, 0.4, 1), box-shadow 0.2s ease;
}
.verify-bear.drag { z-index: 3; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); cursor: grabbing; transition: none; }
.verify-bear.busy { pointer-events: none; animation: pulse 1.1s ease-in-out infinite; }
.sub-hero { width: 72px; height: 72px; margin: 10px auto 0; padding: 8px; border-radius: 50%; background: var(--pill); }
.sub-hero img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* dev shim only (?dev_user / ?mock): in-page stand-in for Telegram's showAlert */
.dev-toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-bottom));
  z-index: 40;
  max-width: 340px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #2b2b30;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dev-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- «Сладкая охота» / Sweet Hunt: the bonus game section ---------- */
/* Over the main screen, under the overlay / sheets (5–6) and the confetti (9). Only transform and opacity move. */
.hunt {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: hidden;
}
.hunt.show { opacity: 1; }
.hunt::before {   /* stage light: purple behind the board, a warm candy glow under the title */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 46% at 50% 56%, rgba(121, 52, 221, 0.32), rgba(121, 52, 221, 0) 72%),
    radial-gradient(60% 24% at 50% 4%, rgba(255, 122, 184, 0.16), rgba(255, 122, 184, 0) 75%);
}
.hunt-col {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 430px;
  height: 100%;
  padding: calc(12px + var(--safe-top)) 16px calc(16px + var(--safe-bottom));
  transform: scale(0.96);
  transition: transform 0.45s var(--sheet-ease);
}
.hunt.show .hunt-col { transform: none; }
.hunt-head { flex: 0 0 auto; text-align: center; }
.hunt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  margin-top: 4px;
  padding: 0 11px 0 9px;
  border-radius: 12px;
  background: rgba(121, 52, 221, 0.3);
  box-shadow: inset 0 0 0 1px rgba(177, 138, 255, 0.38);
  color: #dcc8ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 24px;
}
.hunt-kicker svg { width: 14px; height: 14px; flex: 0 0 auto; }
.hunt-title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 36px;
  line-height: 34px;
  letter-spacing: 0.3px;
}
/* two lines are always reserved: a caption change never moves the board */
.hunt-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 42px;
  max-width: 340px;
  margin: 6px auto 0;
  font-size: 15px;
  line-height: 19px;
  text-align: center;
  color: #fff;
  transition: opacity 0.15s ease;
}
.hunt-caption.fade { opacity: 0; }
.hunt-caption b { font-weight: 600; }
.hunt-caption .hc-sub { font-size: 14px; font-weight: 500; color: var(--text-dim); }

/* the board area: the countdown row (always reserved) right above the board */
.hunt-stage {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.hunt-timer {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 24px;
  margin-bottom: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hunt-timer.on { opacity: 1; }
.hunt-track { position: relative; flex: 1 1 auto; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.hunt-track i { position: absolute; inset: 0; border-radius: 4px; background: var(--accent-grad); transform-origin: left center; will-change: transform; }
.hunt-timer.hot .hunt-track i { background: linear-gradient(90deg, #ffb36b, #ff4f7b); }
.hunt-num {
  flex: 0 0 30px;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 22px;
  line-height: 24px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hunt-timer.hot .hunt-num { color: #ff7d96; }
.hunt-plate {
  position: relative;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 18px 40px rgba(0, 0, 0, 0.35);
}
.hunt-board { position: relative; touch-action: none; }
.hunt-board.aiming { cursor: crosshair; }
.hunt-board.swap { opacity: 0.12; transition: opacity 0.2s ease; }
.hunt-fx { position: absolute; left: 8px; top: 8px; z-index: 5; pointer-events: none; }

/* a tile: .ht carries the grid position (transform, FLIP), .ht-body the pop / shake / dim, .ht-inner the flip */
.ht {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--tile, 48px);
  height: var(--tile, 48px);
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: inherit;
}
.ht:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.85); outline-offset: 2px; border-radius: 14px; }
.ht-body { display: block; width: 100%; height: 100%; perspective: 480px; transition: transform 0.14s ease, opacity 0.35s ease; }
.ht-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.42s cubic-bezier(0.3, 0.6, 0.3, 1.12);
}
.hunt-board.fast .ht-inner { transition-duration: 0.3s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.hunt-board.instant .ht-inner { transition: none; }
.ht.open .ht-inner { transform: rotateY(180deg); }
.ht-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--tile, 48px) * 0.24);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.ht-cover {
  background: linear-gradient(150deg, var(--c1) 0%, var(--c2) 100%);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 4px 10px rgba(0, 0, 0, 0.32);
}
.ht-cover::before {   /* the candy gloss */
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 6%;
  height: 40%;
  border-radius: calc(var(--tile, 48px) * 0.18) calc(var(--tile, 48px) * 0.18) 45% 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.ht-cover svg { position: relative; display: block; width: 60%; height: 60%; overflow: visible; }
.ht-prize {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #30284a 0%, #1c1829 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 4px 10px rgba(0, 0, 0, 0.3);
}
.ht-prize img { display: block; width: 50%; height: 50%; object-fit: contain; }
.ht-prize b {
  margin-top: 2%;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: calc(var(--tile, 48px) * 0.25);
  line-height: 1;
}
.ht-prize.k-paw b { color: #ffcf9e; }
.ht-prize.k-spin b { color: #d4bfff; }
.ht-prize.k-gift {
  background: radial-gradient(circle at 50% 45%, rgba(255, 190, 80, 0.42), rgba(255, 190, 80, 0) 62%), linear-gradient(160deg, #3d2b4f, #1f1828);
  box-shadow: inset 0 0 0 1.5px rgba(255, 200, 95, 0.6), 0 4px 10px rgba(0, 0, 0, 0.3);
}
.ht-prize.k-gift img { width: 76%; height: 76%; }
.ht-emoji { font-size: calc(var(--tile, 48px) * 0.5); line-height: 1; }
.ht.target .ht-body { transform: scale(1.07); }
.ht.target .ht-cover { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.85), 0 4px 12px rgba(0, 0, 0, 0.35); }
.ht.shot { z-index: 2; }
.ht.shot .ht-body { animation: ht-wait 0.75s ease-in-out infinite alternate; }
.ht.shot .ht-cover { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 0 0 2px #fff, 0 0 18px rgba(255, 255, 255, 0.55); }
@keyframes ht-wait { from { transform: scale(1.03); } to { transform: scale(1.1); } }
.ht.picked { z-index: 3; }
.ht.picked .ht-inner { transition-duration: 0.55s; }
.ht.picked .ht-body { transform: scale(1.12); transition: transform 0.5s cubic-bezier(0.2, 1.5, 0.4, 1); }
.ht.picked .ht-prize {
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 60%), linear-gradient(155deg, #8a4dff 0%, #5a26c2 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 0 2px rgba(171, 112, 255, 0.6), 0 0 26px rgba(171, 112, 255, 0.9);
}
.ht.picked .ht-prize b { color: #fff; }
.ht.picked::before {   /* the winner's halo */
  content: "";
  position: absolute;
  left: -35%;
  top: -35%;
  width: 170%;
  height: 170%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(171, 112, 255, 0.55) 0%, rgba(171, 112, 255, 0) 62%);
  pointer-events: none;
  animation: ht-halo 1.6s ease-in-out infinite;
}
@keyframes ht-halo { 0%, 100% { opacity: 0.65; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.06); } }
.ht.dim .ht-body { opacity: 0.6; }   /* dimmed, the "+N" labels still read (≥ 4:1) */

/* the crosshair: centred on its transform point (app.js moves it with translate3d) */
.hunt-reticle {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--tile, 48px) * 1.3);
  height: calc(var(--tile, 48px) * 1.3);
  margin: calc(var(--tile, 48px) * -0.65) 0 0 calc(var(--tile, 48px) * -0.65);
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform;
}
.hunt-reticle.on { opacity: 1; }
.hunt-reticle svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
/* the dashed ring turns as its own layer (a composited transform, no repaint); the glow sits on the static cross */
.hunt-reticle .rt-ring { animation: rt-spin 7s linear infinite; }
.hunt-reticle .rt-cross { filter: drop-shadow(0 0 5px rgba(255, 92, 160, 0.85)); transition: transform 0.14s ease; }
.hunt-reticle.lock .rt-cross { transform: scale(0.84); }
@keyframes rt-spin { to { transform: rotate(360deg); } }
.hunt-burst { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.hb-ring, .hb-flash {
  position: absolute;
  left: calc(var(--tile, 48px) * -0.7);
  top: calc(var(--tile, 48px) * -0.7);
  width: calc(var(--tile, 48px) * 1.4);
  height: calc(var(--tile, 48px) * 1.4);
  border-radius: 50%;
}
.hb-ring { border: 3px solid #fff; box-shadow: 0 0 12px rgba(255, 92, 160, 0.8), inset 0 0 10px rgba(255, 92, 160, 0.6); }
.hb-flash { background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 214, 240, 0.5) 35%, rgba(255, 255, 255, 0) 65%); }
.hb-spark { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; }

/* the panel under the board: «На поле» chips, replaced by the result card (same box: nothing moves). The chips set
   its height (a long prize list or a narrow screen may wrap them to a third row); the card covers the same box. */
.hunt-panel { position: relative; flex: 0 0 auto; min-height: 110px; margin-top: 10px; }
.hunt-legend, .hunt-result {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  transition: opacity 0.3s ease, transform 0.35s var(--sheet-ease);
}
.hunt-legend { position: relative; inset: auto; min-height: inherit; padding: 10px; background: var(--card); text-align: center; }
.hunt-label { font-size: 11px; font-weight: 700; line-height: 13px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-dim); }
.hunt-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 8px; }
.hl-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 27px;
  padding: 0 8px 0 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.hl-chip img { width: 19px; height: 19px; object-fit: contain; }
.hl-chip i { margin-left: 1px; font-style: normal; font-weight: 500; color: var(--text-dim); }
.hl-chip.k-gift { background: rgba(255, 185, 0, 0.14); color: #ffd36b; }
.hunt-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  text-align: left;
  background: linear-gradient(120deg, rgba(121, 52, 221, 0.4), rgba(121, 52, 221, 0.14));
  box-shadow: inset 0 0 0 1px rgba(177, 138, 255, 0.38);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
.hunt-panel.done .hunt-legend { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.hunt-panel.done .hunt-result { opacity: 1; transform: none; pointer-events: auto; }
.hunt-result-icon { position: relative; flex: 0 0 72px; width: 72px; height: 72px; }
.hunt-result-icon::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 120, 0.42), rgba(255, 214, 120, 0) 66%);
}
.hunt-result-icon img, .hunt-result-icon canvas { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.hunt-result-tx { flex: 1 1 auto; min-width: 0; }
.hunt-result .hunt-label { color: rgba(255, 255, 255, 0.62); }
.hunt-result-value {
  margin-top: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 26px;
  line-height: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hunt-result-note {
  margin-top: 3px;
  font-size: 13px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.74);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.hunt-result-note.hot { color: #fff; font-weight: 500; }
.hunt-result-note .link { color: #d6c0ff; cursor: pointer; }
/* the jackpot: «ДЖЕКПОТ!» in gold instead of «Твой приз»; a gift's price after its name, a size smaller and solid
   (not in the name's gradient), the star in gold as everywhere (.price) */
.hunt-result .hunt-label.jackpot { color: #ffd36b; }
.hunt-result-value .price { font-family: var(--font-ui); font-size: 17px; font-style: normal; font-weight: 700; -webkit-text-fill-color: #fff; color: #fff; }
.hunt-result-value .price i { -webkit-text-fill-color: #ffb900; }
.hunt .bottom-bar { margin-top: 12px; }
/* the button keeps its place while the round plays (hidden, not removed) */
#btn-hunt { transition: transform 0.12s ease, filter 0.12s ease, opacity 0.25s ease, visibility 0s; }
#btn-hunt.ghost { opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0s 0.2s; }
/* a short screen: no kicker, tighter texts, a lower panel (app.js adds .tight when the tiles would get too small) */
.hunt.tight .hunt-kicker { display: none; }
.hunt.tight .hunt-title { margin-top: 2px; font-size: 30px; line-height: 30px; }
.hunt.tight .hunt-caption { height: 38px; margin-top: 4px; font-size: 14px; line-height: 18px; }
.hunt.tight .hunt-caption .hc-sub { font-size: 13px; }
.hunt.tight .hunt-panel { min-height: 96px; }
.hunt.tight .hunt-legend { padding-top: 8px; }
.hunt.tight .hunt-chips { margin-top: 6px; gap: 4px; }
.hunt.tight .hl-chip { height: 25px; font-size: 12px; }
.hunt.tight .hunt-result-icon { flex-basis: 60px; width: 60px; height: 60px; }
/* the card drops its «Твой приз» label, so a gift's delivery note keeps all 3 lines (with the @support link); the
   jackpot keeps its gold «ДЖЕКПОТ!» while the texts still fit the card (app.js huntLabelFit adds .cut otherwise) */
.hunt.tight .hunt-result .hunt-label:not(.jackpot), .hunt.tight .hunt-result .hunt-label.cut { display: none; }
.hunt.tight .hunt-result-value { margin-top: 0; font-size: 23px; line-height: 25px; }
/* still under 40-px tiles: the title goes too (app.js adds .tighter) */
.hunt.tighter .hunt-title { display: none; }
/* not even 26-px tiles fit (a landscape phone, a short desktop window): the section scrolls instead of overlapping */
.hunt.scroll { overflow-y: auto; }
.hunt.scroll .hunt-col { align-self: flex-start; height: auto; min-height: 100%; }
.hunt.scroll .hunt-stage { flex: 0 0 auto; }
.hunt.scroll #btn-hunt { scroll-margin-bottom: calc(16px + var(--safe-bottom)); }   /* app.js huntShowButton: above the safe area */

/* ---------- responsive tweaks ---------- */
@media (max-height: 700px) {
  .series-block { margin-top: 8px; }
  .big-tgs { width: 112px; height: 112px; }
  .paw-hero { width: 112px; height: 112px; }
  .paw-hero.small { width: 60px; height: 60px; }
  .win-stage { width: 150px; }
  .m-title { margin-top: 8px; }
  .in-sheet { margin-top: 12px; }
  .offer-card { margin-top: 10px; padding-top: 8px; padding-bottom: 8px; }
  .offer-hero { width: 88px; height: 88px; }
  .paws-pick { margin-top: 10px; }
  .pick-img, .pick-emoji { width: 40px; height: 40px; line-height: 40px; font-size: 30px; }
}
@media (max-height: 620px) {
  .sub { display: none; }
  .btn { height: 46px; }
  .bottom-bar .btn:not([hidden]) ~ .btn:not([hidden]) { margin-top: 6px; }
}
@media (max-height: 540px) {
  .paw-hero { width: 72px; height: 72px; }
  .big-tgs { width: 96px; height: 96px; }
  .win-stage { width: 134px; }
  .offer-hero { width: 76px; height: 76px; }
  .sheet-handle { margin-bottom: 8px; }
  #modal-paws .paw-hero.small { display: none; }   /* the counter and the slots already show the candies */
}
@media (max-width: 359px) {
  .offer-cta, .offer-card.ok .offer-cta { width: 34px; padding: 0; font-size: 0; text-align: center; }
  .offer-cta::after { content: "›"; font-size: 22px; line-height: 32px; }
  .offer-card.ok .offer-cta::after { content: "✓"; font-size: 17px; line-height: 34px; }
  .offer-card.wait .offer-cta::after { content: "…"; font-size: 17px; line-height: 30px; }
  .offer-hint { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .offer-hero .face, .offer-card.wait .offer-cta, .btn[aria-busy="true"], .verify-bear.busy, .pick.on .pick-img, .pick.on .pick-emoji { animation: none; }
  .wheel-wrap.fit-anim { transition: none; }
  .verify-bear { transition: none; }
  /* Sweet Hunt: instant flips, no pulsing; the fades stay (they do not move anything) */
  .ht-inner, .ht-body, .hunt-col, .hunt-reticle .rt-cross { transition: none; }
  .hunt-col { transform: none; }
  .ht.shot .ht-body, .ht.picked::before, .hunt-reticle .rt-ring { animation: none; }
}
