/**
 * The 1000 ⭐ quest: the button that replaces the balances block in the wallet, the step sheet it opens, and the
 * stars that fly into the balance when the tour ends. Same tokens as style.css, nothing global is touched.
 */

/* ───────── the button in the wallet ───────── */
.bonus-cta {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid rgba(255, 200, 87, .55); border-radius: 20px; cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 200, 87, .22), rgba(255, 138, 76, .12));
  box-shadow: 0 10px 30px rgba(255, 176, 32, .18);
  color: var(--text, #f3f3ff); text-align: left;
}
.bonus-cta:active { transform: scale(.985); }
.bonus-cta .bc-ico { font-size: 26px; filter: drop-shadow(0 4px 10px rgba(255, 190, 60, .5)); }
.bonus-cta .bc-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bonus-cta .bc-col b { font-size: 17px; font-weight: 800; }
.bonus-cta .bc-col i { font-style: normal; font-size: 12px; opacity: .7; }
.bonus-cta .bc-steps { font-weight: 800; font-size: 13px; padding: 5px 9px; border-radius: 99px; background: rgba(0, 0, 0, .25); }

/* ───────── the sheet ───────── */
.bonus-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(4, 3, 12, .72); display: flex; align-items: flex-end; }
.bonus-sheet.hidden { display: none; }
.bonus-sheet .bs-wrap {
  width: 100%; max-height: 88vh; overflow-y: auto; padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0; background: var(--card, #14131f); border-top: 1px solid rgba(255, 255, 255, .08);
  animation: bsUp .25s cubic-bezier(.2, .9, .3, 1);
}
@keyframes bsUp { from { transform: translateY(24px); opacity: .6 } }
.bonus-sheet .bs-head { display: flex; align-items: center; gap: 10px; }
.bonus-sheet .bs-title { flex: 1; font-size: 19px; font-weight: 800; }
.bonus-sheet .bs-close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: inherit; font-size: 16px; cursor: pointer; }
.bonus-sheet .bs-intro { margin: 8px 0 14px; font-size: 13px; opacity: .72; }
.bonus-sheet .bs-steps { display: flex; flex-direction: column; gap: 10px; }

.bs-step { border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 12px 14px; background: rgba(255, 255, 255, .03); }
.bs-step.now { border-color: rgba(255, 200, 87, .5); background: rgba(255, 200, 87, .06); }
.bs-step.done { opacity: .75; }
.bs-step-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.bs-step-head b { flex: 1; font-weight: 700; }
.bs-step-head i { font-style: normal; font-size: 12px; color: #5ef2c0; }
.bs-num { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 800; background: rgba(255, 255, 255, .1); }
.bs-step.done .bs-num { background: rgba(94, 242, 192, .2); color: #5ef2c0; }
.bs-body { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.bs-body p { margin: 0; font-size: 13px; opacity: .8; line-height: 1.45; }
.bs-link { display: block; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); font-size: 12px; word-break: break-all; }
.bs-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bs-copy { flex: 1; min-width: 120px; padding: 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: inherit; font-size: 13px; cursor: pointer; }
.bs-main { padding: 13px; border: 0; border-radius: 14px; font-size: 15px; font-weight: 800; cursor: pointer; color: #2a1a00; background: linear-gradient(135deg, #ffd66b, #ffab3f); }
.bs-main.ok { background: rgba(94, 242, 192, .18); color: #5ef2c0; }
.bs-main:disabled { opacity: .6; }
.bs-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bs-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffd66b, #ffab3f); transition: width .3s; }
.bs-count { font-size: 26px; font-weight: 800; }
.bs-count span { font-size: 15px; opacity: .55; }
.bs-cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(30px, 1fr)); gap: 6px; }
.bs-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .06); opacity: .6; }
.bs-day.paid { background: rgba(94, 242, 192, .2); color: #5ef2c0; opacity: 1; }
.bs-day.next { outline: 2px solid rgba(255, 200, 87, .6); opacity: 1; }
.bs-next { font-size: 12px; opacity: .8; }
.bs-warn { font-size: 12px; color: #ffb36b; }

/* A press must be visible on every button here, and a copy answers on the button itself. */
.bs-copy:active, .bs-main:active, .bonus-cta:active { transform: scale(.96); }
.bs-copy { transition: transform .08s, background .18s, color .18s, border-color .18s; }
.bs-copy.done { background: rgba(94, 242, 192, .18); border-color: rgba(94, 242, 192, .6); color: #5ef2c0; }
.bs-main { transition: transform .08s, filter .15s; }
.bs-main:active { filter: brightness(1.08); }

/* A refused check: the button cracks, floods red and fades — the answer is felt, not only heard. */
.bs-main.refused { animation: bsCrack .5s cubic-bezier(.36, .07, .19, .97), bsRed 1.1s ease forwards; }
@keyframes bsCrack {
  10%, 90% { transform: translateX(-2px) rotate(-.4deg) }
  20%, 80% { transform: translateX(3px) rotate(.5deg) }
  30%, 50%, 70% { transform: translateX(-5px) rotate(-.7deg) }
  40%, 60% { transform: translateX(5px) rotate(.7deg) }
}
@keyframes bsRed {
  0% { background: linear-gradient(135deg, #ff6b6b, #e5484d); color: #fff }
  55% { background: linear-gradient(135deg, #ff6b6b, #e5484d); color: #fff; opacity: 1 }
  100% { background: linear-gradient(135deg, #ff6b6b, #e5484d); color: #fff; opacity: .25 }
}
.bonus-cta.done { border-color: rgba(94, 242, 192, .55); background: linear-gradient(135deg, rgba(94, 242, 192, .2), rgba(46, 190, 140, .1)); box-shadow: 0 10px 30px rgba(46, 190, 140, .18); }

/* ───────── the stars landing in the wallet ───────── */
.bonus-wallet-notice { display:flex; flex-direction:column; gap:9px; margin:0 0 12px; padding:14px; border:1px solid rgba(255,190,90,.38); border-radius:16px; background:rgba(255,179,65,.07); color:var(--text,#f4f1ec); overflow-wrap:anywhere; }
.bonus-wallet-notice > b { font-size:15px; line-height:1.3; color:#ffd18a; }
.bonus-wallet-notice p { margin:0; font-size:13px; line-height:1.5; }
.bonus-wallet-notice small { font-size:12px; line-height:1.4; opacity:.7; }
.bonus-wallet-notice .bs-row > button { flex:1; min-width:120px; font-size:13px; padding:11px; }
.bonus-fly { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
/* One flight: the stars gather where they appear and drop into the Wallet tab. Nothing else, no text. */
.bf-star {
  position: absolute; font-style: normal; will-change: transform, opacity;
  filter: drop-shadow(0 4px 12px rgba(255, 190, 60, .55));
  animation: bfStar 1.25s cubic-bezier(.35, 0, .25, 1) forwards;
}
@keyframes bfStar {
  0% { transform: translate(0, 0) scale(.2) rotate(0); opacity: 0 }
  18% { transform: translate(0, -12px) scale(1.15) rotate(var(--spin)); opacity: 1 }
  100% { transform: translate(var(--dx), var(--dy)) scale(.25) rotate(var(--spin)); opacity: 0 }
}
@media (prefers-reduced-motion: reduce) { .bonus-fly i { animation-duration: .01ms } }
.bs-paid { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: #5ef2c0; } /* part of the reward already paid out early */
