.activity-modal-open { overflow: hidden; }
.activity-modal-open body {
  position: fixed;
  inset-inline: 0;
  top: var(--activity-scroll-y);
  width: 100%;
  padding-inline-end: var(--activity-scrollbar);
}
.activities-dialog {
  width: min(560px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 20px;
  background: #edf5ff;
  box-shadow: 0 20px 65px #03142b80;
}
.activities-dialog::backdrop { background: #04152f9c; backdrop-filter: blur(4px); }
.activities-dialog p { margin: 0; }
.activities-dialog h2 { padding-inline-end: 0; }
.activity-back {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 10px 24px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.activity-back > span:first-child { font-size: 28px; line-height: 1; }
.activity-back:hover { color: var(--blue); }
.activities-card {
  width: 100%;
  overflow: clip;
  border: 1px solid #bbd8f3;
  border-radius: 20px;
  background: linear-gradient(150deg, #fcfeff, #eaf4ff);
  box-shadow: inset 0 1px #fff;
}
.activities-heading {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 21px 24px 19px;
  color: #fff;
  background: linear-gradient(115deg, #155eaa, #073670 60%, #082958);
}
.activities-heading-actions { display: flex; align-items: center; gap: 10px; }
.activities-close {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #b5d9ff75;
  border-radius: 50%;
  color: #fff;
  background: #d6eaff14;
  font-size: 24px;
  line-height: 1;
}
.activities-close:hover { border-color: #d5efff; background: #d6eaff30; }
.activities-heading h1 { margin: 0; font-size: 25px; line-height: 1.25; }
.activities-heading p { margin-top: 5px; color: #d9eaff; font-size: 12px; }
.activities-demo {
  padding: 3px 7px;
  border: 1px solid #bedfff66;
  border-radius: 7px;
  color: #e3f1ff;
  font-size: 10px;
}
.activities-wallet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 19px 23px 8px;
  padding: 12px 16px;
  border: 1px solid #bfd9f1;
  border-radius: 13px;
  background: #e0edfc;
  box-shadow: inset 0 1px #fff;
}
.activities-wallet > div { display: grid; gap: 2px; }
.activities-wallet > div + div { text-align: end; border-inline-start: 1px solid #b6d0ee; }
.activities-wallet > div > span { color: #4c6a8f; font-size: 11px; }
.activities-wallet strong { color: #123c73; font-size: 21px; font-variant-numeric: tabular-nums; }
.activity-coin {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
}
.activity-coin-total { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.activity-coin-total .activity-coin { width: 30px; height: 30px; }
.activity-action .activity-coin { margin-inline: 4px; }
.activity-calendar-heading .activity-coin { width: 16px; height: 16px; }
.activity-day small .activity-coin { width: 13px; height: 13px; }
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 23px 19px;
}
.activity-tile {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 118px;
  padding: 10px 3px;
  border: 1px solid #cee2f5;
  border-radius: 14px;
  color: #0b3269;
  background: linear-gradient(145deg, #fff, #e5f1ff);
  box-shadow: inset 0 1px #fff, 0 2px 5px #0b42760a;
  font-size: 13px;
  font-weight: 750;
}
.activity-tile:hover, .activity-tile:focus-visible {
  border-color: #5599d6;
  background: linear-gradient(145deg, #fff, #cfe7ff);
  box-shadow: inset 0 1px #fff, 0 4px 11px #0b427624;
}
.activity-art {
  display: block;
  width: 77px;
  height: 77px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.activity-art--checkin { background-image: url("./assets/activities/checkin.png"); }
.activity-art--deposit { background-image: url("./assets/activities/deposit.png"); }
.activity-art--wheel { background-image: url("./assets/activities/wheel.png"); }
.activity-art--box { background-image: url("./assets/activities/box.png"); }
.activity-art--cashback { background-image: url("./assets/activities/cashback.png"); }
.activity-art--commission { background-image: url("./assets/activities/commission.png"); }
.activity-art--referral { background-image: url("./assets/activities/referral.png"); }
.activity-art--coupon { background-image: url("./assets/activities/coupon.png"); }
.activity-art--ranking { background-image: url("./assets/activities/ranking.png"); }
.activities-note {
  padding: 12px 20px;
  border-top: 1px solid #caddf2;
  color: #537096;
  background: #dceafb87;
  font-size: 10px;
  text-align: center;
}
.activity-detail { padding: 17px 24px 20px; }
.activity-detail h2 { margin-bottom: 13px; color: var(--ink); font-size: 20px; }
.activity-detail h3 { margin: 15px 0 8px; font-size: 14px; }
.activity-detail p { color: var(--muted); font-size: 12px; }
.activity-status:not(:empty) {
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid #abd8ed;
  border-radius: 9px;
  color: #164a77;
  background: #dff2fd;
}
.activity-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid #79aee0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(#1c78c5, #0a4e99);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}
.activity-action:hover { background: linear-gradient(#288bda, #125ead); }
.activity-action--gold { border-color: #ebbd52; color: #352706; background: linear-gradient(#ffe9a2, #ffc851); }
.activity-action--gold:hover { background: linear-gradient(#fff0ba, #ffd269); }
.activity-action:disabled { cursor: default; border-color: #c7d8e9; color: #617b9a; background: #dae6f3; }
.activity-summary {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 18px 12px;
  border: 1px solid #ccdef1;
  border-radius: 13px;
  background: #fff9;
  text-align: center;
}
.activity-summary > strong { font-size: 24px; color: #114784; }
.activity-summary > .activity-art { width: 90px; height: 90px; }
.activity-summary img { width: 62px; height: 62px; border: 2px solid #a3cef1; border-radius: 50%; }
.activity-vip-card { overflow: hidden; border: 1px solid #bdd7ee; border-radius: 18px; background: #fff; box-shadow: 0 5px 18px #194b7b0c; }
.activity-vip-member { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 16px; color: #eaf5ff; background: linear-gradient(115deg,#194c7d,#0b294e); }
.activity-vip-member > img { width: 48px; height: 48px; border: 2px solid #b4e0ff; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #d0b17477; }
.activity-vip-member > span { display: grid; gap: 4px; min-width: 0; }
.activity-vip-name { overflow-wrap: anywhere; font-size: 14px; font-weight: 700; }
.activity-vip-member small { color: #b1cee5; font-size: 12px; }
.activity-vip-member > strong { font: 800 18px/1.3 Tahoma,sans-serif; letter-spacing: .5px; }
.activity-vip-art-wrap { display: grid; justify-items: center; padding: 22px 18px; background: radial-gradient(ellipse at 50% 0,#3e6e9b7d,transparent 80%),linear-gradient(135deg,#143b62,#071e39); }
.activity-vip-art-wrap > .vip-card-art { width: min(100%,260px); box-shadow: 0 10px 24px #0007; }
.activity-vip-progress { padding: 18px 16px 16px; }
.activity-vip-progress-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px 12px; color: #7490aa; font-size: 13px; }
.activity-vip-progress-heading > strong { color: #355f88; font-size: 14px; }
.activity-vip-progress-heading > span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.activity-vip-progress-heading b { color: #087ac5; font-size: 16px; }
.activity-vip-progress-track { margin-top: 12px; }
.activity-vip-card .activity-vip-target { margin: 9px 0 0; color: #7390ab; font-size: 12px; }
.activity-vip-card > .activity-action { width: calc(100% - 32px); margin: 0 16px 16px; }
@media (max-width: 360px) {
  .activity-vip-member { grid-template-columns: 40px minmax(0,1fr); gap: 9px; padding: 13px; }
  .activity-vip-member > img { grid-row: 1 / 3; width: 40px; height: 40px; }
  .activity-vip-member > strong { grid-column: 2; font-size: 17px; }
  .activity-vip-member small { font-size: 12px; }
  .activity-vip-art-wrap { padding: 18px 15px; }
}
.activity-calendar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  margin: 13px 0;
  list-style: none;
}
.activity-day {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 58px;
  padding: 6px 2px;
  border: 1px solid #cedded;
  border-radius: 9px;
  color: #627c9e;
  background: #e9f1fa;
  font-size: 16px;
  font-weight: 750;
}
.activity-day small { color: #8a6a2b; font-size: 10px; }
.activity-day--past { color: #8e9eae; background: #dfe7f0; }
.activity-day--today { border-color: #dda837; color: #fff; background: #1664af; box-shadow: 0 0 0 1px #ffe5a7; }
.activity-day--today small { color: #d7f4ff; }
.activity-day--claimed { border-color: #85c8bd; color: #185f4d; background: #d7f2e8; }
.activity-calendar-heading { display: flex; justify-content: space-between; gap: 10px; color: #234c79; font-size: 13px; }
.activity-progress { display: flex; justify-content: space-between; gap: 5px; margin: 16px 0; }
.activity-progress span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #bdd1e8;
  border-radius: 50%;
  color: #7187a2;
  background: #e2ecf8;
  font-size: 12px;
}
.activity-empty {
  margin-top: 12px;
  padding: 16px 12px;
  border: 1px dashed #b8d1e9;
  border-radius: 10px;
  color: #58728f;
  background: #ffffff70;
  text-align: center;
}
.activity-input {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid #a5c5e3;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
}
.activity-label { display: block; margin: 12px 0 6px; font-size: 12px; font-weight: 700; }
.activity-referral { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.activity-referral .activity-input { min-width: 0; }
.activity-referral button { width: auto; min-width: 84px; margin-top: 0; white-space: nowrap; }
.activity-history { padding: 0; margin: 8px 0 0; list-style: none; }
.activity-history li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #d4e2f0;
  color: #3a5a7d;
  font-size: 12px;
}
.activity-history small { display: block; color: #6882a0; font-size: 10px; }
.activity-history strong { color: #0c638d; white-space: nowrap; }
.activity-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 13px; }
.activity-tabs button {
  min-height: 38px;
  border: 1px solid #c5d9ed;
  border-radius: 9px;
  color: #345c87;
  background: #e6f0fb;
  font: inherit;
  font-size: 12px;
}
.activity-tabs [aria-selected="true"] { border-color: #5a99d1; color: #fff; background: #155fa7; }
.activity-wheel {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 33px auto 18px;
  filter: drop-shadow(0 7px 10px #12416e25);
}
.activity-wheel-frame, .activity-wheel-disc {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
}
.activity-wheel-disc { clip-path: circle(40.8% at 50% 50%); }
.activity-wheel-pointer {
  position: absolute;
  z-index: 2;
  top: -5.2365%;
  left: 40.625%;
  width: 19.7635%;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.wheel-result {
  width: min(380px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #e2c271;
  border-radius: 24px;
  color: #fff;
  background: radial-gradient(ellipse at 50% 28%, #1e6db6, #0a3974 45%, #071f45 85%);
  box-shadow: 0 0 0 5px #9bd7ff12, 0 22px 80px #0009, inset 0 1px #fff6;
}
.wheel-result::backdrop { background: #020d27b3; backdrop-filter: blur(5px); }
.wheel-result[open] { animation: wheel-reward-enter .45s cubic-bezier(.16,1.3,.38,1); }
.wheel-result-card { position: relative; z-index: 1; padding: 29px 27px 23px; text-align: center; }
.wheel-result-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid #c2dcff40;
  border-radius: 50%;
  color: #d5e7ff;
  background: #081d3b45;
  font-size: 24px;
  line-height: 1;
}
.wheel-result p { margin: 0; }
.wheel-result .wheel-result-eyebrow { color: #c7e3ff; font-size: 12px; letter-spacing: .08em; }
.wheel-result-art { position: relative; display: grid; place-items: center; width: 158px; height: 158px; margin: 5px auto 0; }
.wheel-result-art::before {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 4deg, #ffdf7b22 0deg 9deg, transparent 9deg 26deg);
  mask-image: radial-gradient(circle, #000 5%, transparent 70%);
  animation: wheel-reward-rays 7s linear;
  content: "";
}
.wheel-result-coupon { position: relative; width: 170px; height: 110px; overflow: visible; filter: drop-shadow(0 0 21px #ffcf5970); }
.wheel-result[open] .wheel-result-coupon { animation: wheel-reward-coupon .8s cubic-bezier(.18,1.3,.4,1); }
.wheel-result h2 { padding: 0; margin: 0 0 5px; color: #ffe59b; font-size: 30px; font-weight: 800; }
.wheel-result .wheel-result-caption { color: #d3e6ff; font-size: 14px; }
.wheel-result-value { display: flex; align-items: baseline; justify-content: center; gap: 10px; min-height: 94px; margin: 0 0 13px; color: #ffe29a; }
.wheel-result-value strong { font-size: 76px; line-height: 1.15; font-weight: 850; font-variant-numeric: tabular-nums; text-shadow: 0 3px 0 #88601f, 0 0 30px #ffcc5545; }
.wheel-result-value span { font-size: 20px; font-weight: 700; }
.wheel-result-again {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  border: 1px solid #ffecac;
  border-radius: 12px;
  color: #573806;
  background: linear-gradient(#fff0ad, #ffc944);
  box-shadow: inset 0 1px #fff9, 0 4px 18px #ffc84a25;
  font: inherit;
  font-weight: 800;
  transition: filter .15s, transform .15s;
}
.wheel-result-again:hover { filter: brightness(1.08); transform: translateY(-1px); }
.wheel-result-dismiss { min-height: 42px; margin-top: 5px; padding: 5px 14px; border: 0; color: #c8ddfa; background: transparent; font: inherit; font-size: 12px; }
.wheel-result-dismiss:hover { color: #fff; }
.wheel-result .wheel-result-note { color: #9eb9dc; font-size: 10px; }
.wheel-result-confetti { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.wheel-result-confetti i {
  position: absolute;
  top: -18px;
  left: var(--confetti-x);
  width: 7px;
  height: 13px;
  border-radius: 2px;
  background: var(--confetti-color);
  animation: wheel-reward-confetti var(--confetti-duration) var(--confetti-delay) ease-out both;
}
.wheel-result-confetti i:nth-child(3n) { width: 6px; height: 6px; border-radius: 50%; }
@keyframes wheel-reward-enter { from { opacity: 0; transform: translateY(20px) scale(.88); } to { opacity: 1; transform: none; } }
@keyframes wheel-reward-coupon { from { opacity: 0; transform: scale(.45) rotate(-22deg); } 65% { opacity: 1; transform: scale(1.12) rotate(5deg); } to { transform: none; } }
@keyframes wheel-reward-rays { to { transform: rotate(80deg); } }
@keyframes wheel-reward-confetti {
  0% { opacity: 0; transform: translate(0, -15px) rotate(0); }
  8%, 65% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--confetti-drift), 510px) rotate(620deg); }
}
.activity-box { width: 145px; height: 145px; margin: 15px auto; }
.activity-box.is-opening { animation: activity-box-shake .9s ease-in-out; }
.header-events[aria-current="page"] { box-shadow: 0 0 0 2px #b1dbff80; }
@keyframes activity-box-shake {
  20%, 60% { transform: rotate(-7deg); }
  40%, 80% { transform: rotate(7deg); }
}
@media (max-width: 620px) {
  .activities-dialog { max-height: calc(100dvh - 24px); }
  .activity-back { margin-inline: 14px; }
  .activities-heading { padding: 18px 16px; }
  .activities-heading h1 { font-size: 23px; }
  .activities-wallet { margin: 14px 14px 5px; padding: 11px 12px; }
  .activities-grid { gap: 7px; padding: 12px 14px 15px; }
  .activity-tile { min-height: 108px; gap: 5px; font-size: 12px; }
  .activity-art { width: 65px; height: 65px; }
  .activity-detail { padding: 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .wheel-result[open], .wheel-result[open] .wheel-result-coupon,
  .wheel-result-art::before, .wheel-result-confetti i { animation: none; }
  .wheel-result-again { transition: none; }
  .activity-box.is-opening { animation: none; }
}
