/* The three tab pages (design-tabs/"Fistful of Gold v2.dc.html", 375px artboard), built on the club's tokens and
   kit (core.css, campaign.css). Same re-flow rules as the club page: one centred 375px column, works from 320px. */

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.page--tab { min-height: 100vh; background: linear-gradient(180deg, #24150B 0%, #160C06 45%, #0A0604 100%); }
.t-foot { height: calc(108px + env(safe-area-inset-bottom)); flex: none; }

/* Gold gradient text (design: #FFF3C4 → #F2BE45 → #C98A22) */
.t-grad { background: linear-gradient(180deg, #FFF3C4 0%, #F2BE45 62%, #C98A22 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero + heading */
.t-hero { position: relative; flex: none; }
.t-hero--missions { height: 268px; }
.t-hero__m { position: absolute; left: calc(50% - 119.5px); top: 40px; width: 228px; height: 246px; overflow: hidden; }
.t-hero__m-img { position: absolute; left: 0; top: 0; width: 228px; height: 149px; background: url(/assets/tabs/m-hero.webp) 50% 61.392% / 100% 153.02% no-repeat; }
.t-hero__m-ref { position: absolute; left: 0; top: 107px; width: 228px; height: 139px; opacity: .38; transform: scaleY(-1); background: url(/assets/tabs/m-hero.webp) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(0deg, #000, transparent 70%); mask-image: linear-gradient(0deg, #000, transparent 70%); }
.t-hero--rewards { height: 265px; z-index: 1; }
.t-hero__r { position: absolute; left: calc(50% - 125.5px); top: 20px; width: 265px; height: 265px; object-fit: cover; max-width: none; }
.t-hero--games { height: 162px; z-index: 1; }
.t-hero__g { position: absolute; left: calc(50% - 113.5px); top: 38px; width: 213px; height: 133px; background: url(/assets/tabs/g-hero.webp) 50% 70.588% / 100% 160.101% no-repeat; filter: drop-shadow(0 4px 4px #000); }

.t-head { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 24px; }
.t-head--rewards { padding: 16px 24px 20px; }
.t-head--games { padding: 67px 24px 20px; margin-top: -48px; }
.t-head__glow { position: absolute; left: calc(50% - 230px); top: -66px; width: 460px; height: 246px; pointer-events: none; filter: blur(12px);
  background: radial-gradient(230px 123px at 50% 50%, rgba(255, 154, 60, .45) 0%, rgba(236, 130, 48, .34) 18%, rgba(214, 108, 36, .24) 34%, rgba(194, 86, 26, .15) 50%, rgba(150, 66, 22, .08) 66%, rgba(90, 42, 16, .03) 83%, rgba(36, 21, 11, 0) 100%); }
.t-head__title { position: relative; margin: 0; align-self: stretch; font-size: 30px; font-weight: 900; line-height: 44px; text-align: center;
  background: linear-gradient(180deg, #FFF3C4 0%, #F2BE45 62%, #C98A22 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-head__lead { position: relative; margin: 0; align-self: stretch; font-size: 14px; font-weight: 500; line-height: 24px; text-align: center; color: #EAD8B8; }

/* ---------- Missions tab */
.mt-stats-wrap { margin-top: 22px; padding: 0 24px 8px; }
.mt-stats { height: 83px; border-radius: 18px; background: linear-gradient(180deg, #33210F, #150C06); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); display: flex; align-items: center; padding: 16px 12px; }
.mt-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mt-stat__v { font-size: 20px; font-weight: 900; line-height: 1; white-space: nowrap; color: var(--gold); unicode-bidi: isolate; }
.mt-stat__k { font-size: 11px; font-weight: 500; line-height: 1; white-space: nowrap; color: var(--muted); }
.mt-stats__sep { width: 1px; height: 40px; flex: none; background: rgba(246, 196, 83, .15); }

.mt-chips { margin-top: 13px; display: flex; gap: 8px; padding: 16px 24px 8px; overflow-x: auto; scrollbar-width: none; }
.mt-chips::-webkit-scrollbar { display: none; }
.mt-chip { height: 34px; flex: none; border: 0; cursor: pointer; border-radius: 999px; padding: 7px 14px; font-size: 12px; line-height: 1; white-space: nowrap;
  background: rgba(246, 196, 83, .06); box-shadow: inset 0 0 0 1px rgba(246, 196, 83, .25); color: #E3D3B6; font-weight: 500; transition: background .2s, color .2s; }
.mt-chip[aria-pressed="true"] { background: linear-gradient(180deg, #FFE38E 0%, #EBB03A 55%, #B9771B 100%); box-shadow: inset 0 0 0 1px rgba(255, 241, 191, .7), 0 4px 12px rgba(255, 154, 60, .35); color: var(--ink); font-weight: 900; }
.mt-notice { margin: 16px 24px 0; }
.mt-error { margin: 16px 24px 0; }
.mt-body { display: flex; flex-direction: column; }
.mt-body[data-filter="trade"] [data-mt-section]:not([data-mt-section="trade"]),
.mt-body[data-filter="invite"] [data-mt-section]:not([data-mt-section="invite"]),
.mt-body[data-filter="app"] [data-mt-section]:not([data-mt-section="app"]),
.mt-body[data-filter="social"] [data-mt-section]:not([data-mt-section="social"]):not([data-mt-section="rating"]) { display: none; }

/* Featured card («بیشترین امتیاز») */
.mt-featured { margin: 22px 24px 0; overflow: hidden; border-radius: 18px; display: flex; flex-direction: column;
  background: radial-gradient(136.25px 98.929px at 50% 50%, rgba(255, 154, 60, .35) 0%, rgba(255, 154, 60, 0) 100%), linear-gradient(180deg, #4A2D10 0%, #24150A 60%, #120A05 100%);
  box-shadow: 0 0 30px rgba(246, 166, 60, .3); }
.mt-featured__top { display: flex; align-items: center; gap: 12px; padding: 18px; min-height: 178px; }
.mt-featured__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mt-featured__tag { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 900; line-height: 17px; color: #FF9A3C; }
.mt-featured__pts { display: flex; align-items: center; gap: 4px; min-height: 45px; }
.mt-featured__n { font-size: 30px; font-weight: 900; line-height: 1; }
.mt-featured__u { font-size: 12px; font-weight: 500; color: var(--text-2); }
.mt-featured__title { margin: 0; font-size: 16px; font-weight: 900; line-height: 30px; color: var(--text); }
.mt-featured__desc { margin: 0; font-size: 13px; line-height: 22px; color: #C9B591; }
.mt-featured__img { width: 92px; height: 108px; flex: none; object-fit: contain; filter: drop-shadow(0 4px 18px #22140A); }
.mt-featured__cta { padding: 16px 18px 18px; display: flex; }
.mt-featured__cta > * { flex: 1; }

/* Section header («شروع سریع … ۰ از ۲») */
.mt-section { display: flex; flex-direction: column; gap: 14px; padding: 24px 24px 0; }
.mt-section + .mt-section { padding-top: 34px; }
.mt-featured + .mt-section { padding-top: 34px; }
.mt-shead { display: flex; align-items: flex-end; gap: 8px; min-height: 50px; }
.mt-shead__t { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mt-shead__title { margin: 0; font-size: 19px; font-weight: 900; line-height: 30px; color: var(--gold); }
.mt-shead__sub { font-size: 12px; font-weight: 500; line-height: 1; color: var(--muted); }
.mt-shead__count { flex: none; font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; color: var(--muted); }

/* Tile card (trade / kyc / app) */
.mt-cards { display: flex; flex-direction: column; gap: 20px; }
.mt-card { position: relative; overflow: hidden; border-radius: 18px; background: linear-gradient(180deg, #24170C, #120A05); box-shadow: 0 10px 22px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column; gap: 10px; padding: 14px; min-height: 209px; }
.mt-card__top { display: flex; align-items: center; justify-content: space-between; min-height: 42px; }
.mt-tile { position: relative; width: 42px; height: 42px; flex: none; border-radius: 12.6px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #5A3A18, #22140A); box-shadow: 0 0 14px rgba(246, 166, 60, .3), inset 0 2px 4px rgba(255, 226, 154, .25); }
.mt-card__title { margin: 0; font-size: 14px; font-weight: 900; line-height: 22px; color: var(--text); }
.mt-card__desc { margin: 0; font-size: 11px; line-height: 19px; color: var(--muted); }
.mt-card__grow { flex: 1; }

/* Points pill («۲ امتیاز») */
.mt-pts { height: 30px; flex: none; border-radius: 999px; background: rgba(246, 196, 83, .1); box-shadow: inset 0 0 0 1px rgba(246, 196, 83, .35);
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px 5px 10px; font-size: 12px; font-weight: 900; line-height: 1; white-space: nowrap; color: var(--gold); }
.mt-pts svg { display: block; flex: none; }
.mt-pts--done { color: var(--ok); background: rgba(123, 216, 143, .1); box-shadow: inset 0 0 0 1px rgba(123, 216, 143, .35); }

/* Action area: the club's states (open / claimable / done / loading / waiting / unavailable) */
.mt-act { display: flex; align-items: stretch; }
.mt-act > * { flex: 1; }
.mt-btn { height: 36px; border-radius: 10px; font-size: 12px; padding: 8px 16px; box-shadow: inset 0 0 0 1px rgba(255, 241, 191, .6), 0 4px 12px rgba(255, 154, 60, .35); }
.mt-btn--48 { height: 48px; border-radius: 14px; font-size: 16px; box-shadow: inset 0 0 0 1px rgba(255, 241, 191, .7), 0 6px 20px rgba(255, 154, 60, .45); }
.mt-badge { height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 900; }
.mt-badge--done { color: var(--ok); background: rgba(123, 216, 143, .1); box-shadow: inset 0 0 0 1px rgba(123, 216, 143, .35); }
.mt-badge--muted { color: var(--muted); background: rgba(168, 146, 114, .08); box-shadow: inset 0 0 0 1px rgba(168, 146, 114, .25); }
.mt-badge--wait { color: var(--gold); background: rgba(246, 196, 83, .08); box-shadow: inset 0 0 0 1px rgba(246, 196, 83, .35); }
.mt-act .skeleton { height: 36px; }
[data-state="done"] .mt-card__title, [data-state="done"] .mt-tl__title { color: var(--text-2); }

/* Invite timeline */
.mt-tl { position: relative; overflow: hidden; border-radius: 18px; background: linear-gradient(180deg, #24170C, #120A05); box-shadow: 0 10px 22px rgba(0, 0, 0, .5); display: flex; flex-direction: column; padding: 8px 16px; }
.mt-tl__medal { position: absolute; left: -40px; top: -20px; width: 150px; height: 150px; opacity: .12; transform: rotate(15deg); transform-origin: 0 0; background: url(/assets/tabs/m-medal.webp) center / contain no-repeat; pointer-events: none; }
.mt-tl__row { position: relative; display: flex; gap: 12px; padding: 12px 0; }
.mt-tl__rail { width: 30px; flex: none; align-self: stretch; display: flex; flex-direction: column; align-items: center; }
.mt-tl__dot { width: 30px; height: 30px; flex: none; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; line-height: 1; color: var(--ink);
  background: linear-gradient(180deg, #FFE38E, #C98A22); box-shadow: 0 0 12px rgba(246, 166, 60, .5); }
.mt-tl__line { width: 2px; flex: 1; margin-bottom: -24px; background: linear-gradient(180deg, rgba(246, 196, 83, .8), rgba(246, 196, 83, .15)); }
.mt-tl__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mt-tl__title { margin: 0; font-size: 15px; font-weight: 900; line-height: 24px; color: var(--text); }
.mt-tl__desc { margin: 0; font-size: 12px; line-height: 20px; color: var(--muted); }
.mt-tl__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; min-height: 42px; }
.mt-tl__foot .mt-act { flex: none; }
.mt-tl__foot .mt-act > * { min-width: 120px; }

/* Social card */
.mt-social { overflow: hidden; border-radius: 18px; background: linear-gradient(180deg, #24170C, #120A05); box-shadow: 0 10px 22px rgba(0, 0, 0, .5); display: flex; flex-direction: column; }
.mt-social__top { background: linear-gradient(180deg, rgba(246, 196, 83, .14), rgba(246, 196, 83, .03)); display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.mt-social__sum { display: flex; align-items: center; gap: 10px; min-height: 51px; }
.mt-social__all { flex: 1; font-size: 15px; font-weight: 900; line-height: 1; color: var(--text); }
.mt-social__total { flex: none; display: flex; flex-direction: column; }
.mt-social__total-row { height: 36px; display: flex; align-items: center; gap: 4px; }
.mt-social__total-n { font-size: 24px; font-weight: 900; line-height: 1; }
.mt-social__total-u { font-size: 11px; font-weight: 500; color: var(--text-2); }
.mt-social__total-k { font-size: 10px; font-weight: 500; line-height: 1; color: var(--muted); }
.mt-steps { position: relative; height: 40px; display: flex; align-items: center; justify-content: space-between; }
.mt-steps::before { content: ""; position: absolute; left: 20px; right: 20px; top: 19px; height: 2px; background: linear-gradient(180deg, rgba(246, 196, 83, .8), rgba(246, 196, 83, .15)); }
.mt-step { position: relative; width: 40px; height: 40px; flex: none; border-radius: 999px; background: #1A0F08; outline: 1.2px dashed rgba(246, 196, 83, .45); outline-offset: -1.2px;
  display: flex; align-items: center; justify-content: center; }
.mt-step > svg { opacity: .75; }
.mt-step.is-done { outline: 0; background: linear-gradient(180deg, #FFE38E, #C98A22); box-shadow: 0 0 12px rgba(246, 166, 60, .5); }
.mt-step.is-done > svg { opacity: 1; stroke: var(--ink); }
.mt-social__count { display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; line-height: 17px; color: var(--muted); }
.mt-social__sep { height: 1px; background: rgba(246, 196, 83, .22); }
.mt-social__rows { display: flex; flex-direction: column; padding: 4px 16px; }
.mt-srow { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-height: 65px; }
.mt-srow + .mt-srow { border-top: 1px solid rgba(246, 196, 83, .08); }
.mt-srow__icon { width: 40px; height: 40px; flex: none; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #5A3A18, #22140A); box-shadow: inset 0 2px 4px rgba(255, 226, 154, .25); }
.mt-srow__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mt-srow__head { display: flex; align-items: center; gap: 6px; min-height: 21px; }
.mt-srow__title { margin: 0; font-size: 14px; font-weight: 900; line-height: 1; color: var(--text); }
.mt-srow__plus { font-size: 11px; font-weight: 900; line-height: 1; color: #FF9A3C; }
.mt-srow__desc { margin: 0; font-size: 11px; line-height: 18px; color: var(--muted); }
.mt-srow .mt-act { flex: none; }
.mt-srow .mt-act > * { height: 34px; border-radius: 999px; min-width: 96px; }
.mt-follow { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 7px 12px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; color: var(--gold);
  border: 0; cursor: pointer; background: rgba(246, 196, 83, .08); box-shadow: inset 0 0 0 1px rgba(246, 196, 83, .5); border-radius: 999px; }
.mt-follow:hover { color: var(--gold-hi); }
.mt-follow[aria-disabled="true"] { cursor: not-allowed; filter: grayscale(.85) brightness(.7); }
.mt-srow .mt-badge, .mt-srow .mt-btn { border-radius: 999px; height: 34px; }

/* Rating card */
.mt-rate { position: relative; overflow: hidden; border-radius: 18px; display: flex; flex-direction: column; gap: 12px; padding: 20px 18px 22px;
  background: radial-gradient(116.786px 124.062px at 50% 62.5%, rgba(255, 154, 60, .25) 0%, rgba(255, 154, 60, 0) 100%), linear-gradient(180deg, #33210F, #120A05); box-shadow: 0 10px 22px rgba(0, 0, 0, .5); }
.mt-rate__head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mt-rate__stars { width: 142px; height: 34px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.mt-rate__stars svg { display: block; flex: none; filter: drop-shadow(0 0 5px rgba(246, 166, 60, .5)); }
.mt-rate__title { margin: 0; font-size: 18px; font-weight: 900; line-height: 28px; text-align: center; color: var(--text); }
.mt-rate__desc { margin: 0; font-size: 12px; line-height: 20px; text-align: center; color: #C9B591; }
.mt-rate__btns { display: flex; flex-direction: column; gap: 12px; }
.mt-rate .mt-act > * { height: 59px; border-radius: 14px; }
.mt-rate-btn { flex-direction: column; gap: 4px; }
.mt-rate-btn__l { font-size: 13px; font-weight: 900; line-height: 1; }
.mt-rate-btn__p { font-size: 10px; font-weight: 700; line-height: 1; color: #5A3410; }

/* ---------- Rewards tab */
.rw-score-wrap { padding: 0 24px 8px; }
.rw-score { min-height: 93px; overflow: hidden; border-radius: 18px; background: linear-gradient(180deg, #33210F, #150C06); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); display: flex; align-items: center; gap: 12px; padding: 16px; }
.rw-score__main { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.rw-score__k { font-size: 12px; font-weight: 500; line-height: 1; color: var(--muted); }
.rw-score__row { min-height: 39px; display: flex; align-items: center; gap: 6px; }
.rw-score__v { font-size: 26px; font-weight: 900; line-height: 1; color: var(--gold); unicode-bidi: isolate; }
.rw-score__u { font-size: 13px; font-weight: 500; color: var(--text-2); }
.rw-score__links { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.rw-more { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; line-height: 18px; white-space: nowrap; color: var(--gold); }
.rw-more svg { animation: nudge 1.2s ease-in-out infinite; }
.rw-hist-link { background: none; border: 0; padding: 0; cursor: pointer; font-size: 11px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.rw-list-wrap { display: flex; flex-direction: column; gap: 16px; padding: 24px 24px 32px; }
.rw-sep { height: 26px; display: flex; align-items: center; gap: 10px; }
.rw-sep span { flex: 1; height: 1px; background: rgba(233, 180, 76, .35); }
.rw-sep svg { display: block; flex: none; }
.rw-title { margin: 0; font-size: 20px; font-weight: 900; line-height: 32px; text-align: center; color: var(--gold); }
.rw-notice { margin: 0; }
.rw-list { display: flex; flex-direction: column; gap: 16px; }
.rw-card { position: relative; overflow: hidden; border-radius: 20px; border: 1.5px solid transparent; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #2A1A0D, #120A05) padding-box, linear-gradient(180deg, rgba(255, 216, 121, .95) 0%, rgba(246, 196, 83, .35) 55%, rgba(246, 196, 83, 0) 100%) border-box;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.rw-card__head { position: relative; min-height: 110px; display: flex; align-items: center; padding: 16px 134px 14px 16px; background: linear-gradient(180deg, rgba(246, 196, 83, .12), rgba(246, 196, 83, .02)); border-bottom: 1px solid rgba(246, 196, 83, .22); }
.rw-card__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rw-card__title { margin: 0; font-size: 22px; font-weight: 900; line-height: 34px; }
.rw-card__desc { margin: 0; font-size: 12px; line-height: 21px; color: #C9B591; }
.rw-card__img { position: absolute; right: 12px; top: 4px; width: 110px; height: 100px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .55)); max-width: none; }
.rw-card__body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.rw-need { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 500; line-height: 17px; color: var(--muted); }
.rw-need b { font-weight: 500; unicode-bidi: isolate; }
.rw-bar { height: 6px; overflow: hidden; border-radius: 4px; background: #3A2414; display: flex; }
.rw-bar__fill { min-width: 4px; border-radius: 4px; background: linear-gradient(90deg, #FFE38E, #D9962A); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.rw-card__foot { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rw-cost { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 900; line-height: 1; white-space: nowrap; color: var(--text); }
.rw-cost svg { display: block; flex: none; }
.rw-btn { height: 42px; width: 109px; flex: none; border-radius: 12px; font-size: 13px; padding: 0 8px; box-shadow: inset 0 0 0 1px rgba(255, 241, 191, .6), 0 4px 12px rgba(255, 154, 60, .35); }
.rw-btn.is-short { filter: saturate(.55) brightness(.85); }
.rw-rivet { position: absolute; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(90deg, #FFF3C4, #7A460A); }
.rw-rivet--l { left: 10px; } .rw-rivet--r { right: 10px; }
.rw-card--skeleton { min-height: 228px; }

/* Reward dialog */
.rw-modal { padding-top: 28px; }
.rw-modal__art { display: block; margin: 0 auto 6px; width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.rw-modal__cost { margin: 0; color: var(--text-2); font-size: 15px; line-height: 24px; }
.rw-modal__cost b { color: var(--gold-hi); font-weight: 900; }
.rw-balance { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rw-balance div { padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px rgba(246, 196, 83, .15); }
.rw-balance dt { font-size: 11px; color: var(--muted); }
.rw-balance dd { margin: 4px 0 0; font-size: 20px; font-weight: 900; color: var(--gold); }
.rw-modal__msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 22px; text-align: right;
  background: rgba(80, 20, 10, .35); box-shadow: inset 0 0 0 1px rgba(255, 138, 122, .45); color: #FFD3CB; }
.rw-modal__msg.is-warn { background: rgba(245, 158, 11, .1); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .4); color: var(--warn); }
.rw-modal__actions { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.rw-modal[data-face="insufficient"] .rw-balance div:last-child dd { color: var(--err); }
.rw-modal[aria-busy="true"] .modal__close { opacity: .4; cursor: progress; }

/* Sheets: points history and referral history (the referral sheet's look) */
/* Points history: at least half the screen, at most 85%; the head (title, close, tabs) stays put and only the
   list scrolls. svh/dvh where supported, vh otherwise. */
.sheet--tall { display: flex; flex-direction: column; overflow: hidden; overscroll-behavior: contain;
  min-height: 50vh; min-height: 50svh; max-height: 85vh; max-height: 85dvh; }
.sheet--tall > :not(.sheet__scroll) { flex: none; }
.sheet__scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet--tall .hlist { max-height: none; overflow: visible; }
.overlay { overscroll-behavior: contain; }
/* Sheet lists: scroll without a scrollbar; a soft fade while there is more below (js/core/scroll-fade.js). */
.sheet__scroll, .hlist { scrollbar-width: none; }
.sheet__scroll::-webkit-scrollbar, .hlist::-webkit-scrollbar { display: none; }
[data-fade="more"] { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 48px), transparent); }
.seg { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: #1E120A; box-shadow: inset 0 0 0 1px rgba(246, 196, 83, .2); margin: 4px 0 12px; }
.seg__btn { flex: 1; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.seg__btn[aria-selected="true"] { background: linear-gradient(180deg, #FFE38E 0%, #EBB03A 55%, #B9771B 100%); color: var(--ink); font-weight: 900; }
.hlist { list-style: none; margin: 0 0 12px; padding: 0 12px; border-radius: 14px; background: #1E120A; box-shadow: inset 0 0 0 1px rgba(246, 196, 83, .15); max-height: 52vh; overflow: auto; }
.hlist:empty { display: none; }
.hitem { display: flex; align-items: center; gap: 10px; padding: 12px 0; min-height: 58px; }
.hitem + .hitem { border-top: 1px solid rgba(246, 196, 83, .1); }
.hitem__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hitem__title { font-size: 14px; font-weight: 900; color: var(--text); overflow-wrap: anywhere; }
.hitem__sub { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.hitem__sub > span { unicode-bidi: isolate; overflow-wrap: anywhere; min-width: 0; }
.hitem__sub > span:last-child { white-space: nowrap; }
.hitem__sub > span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-inline-end: 6px; border-radius: 50%; background: currentColor; vertical-align: middle; opacity: .7; }
.hitem__end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hitem__amt { font-size: 15px; font-weight: 900; color: var(--gold-hi); unicode-bidi: isolate; direction: ltr; }
.hitem__amt.is-used { color: var(--err); }
.hitem__tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; color: var(--gold); background: rgba(246, 196, 83, .1); box-shadow: inset 0 0 0 1px rgba(246, 196, 83, .3); white-space: nowrap; }
.hitem__tag.is-ok { color: var(--ok); background: rgba(123, 216, 143, .1); box-shadow: inset 0 0 0 1px rgba(123, 216, 143, .35); }
.hitem__avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--gold);
  background: linear-gradient(180deg, #5A3A18, #22140A); box-shadow: inset 0 0 0 1px rgba(255, 216, 121, .5); }
.hlist__empty { margin: 4px 0 12px; text-align: center; font-size: 13px; color: var(--muted); }
.hlist__loading { display: flex; justify-content: center; padding: 18px 0; }
.refh-sum { display: flex; align-items: center; justify-content: space-between; padding: 12px; margin-bottom: 12px; border-radius: 14px; background: #1E120A; border: 1px dashed rgba(246, 196, 83, .45); font-size: 13px; color: var(--muted); }
.refh-sum b { font-size: 20px; font-weight: 900; color: var(--gold-hi); }
.refh-empty { display: flex; flex-direction: column; gap: 12px; text-align: center; color: var(--text-2); font-size: 14px; }
.refh-empty p { margin: 6px 0 0; }

/* ---------- Games tab */
.g-list { display: flex; flex-direction: column; gap: 20px; padding: 12px 24px 32px; }
.g-card { overflow: hidden; border-radius: 22px; border: 1.5px solid transparent; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #26180C, #120A05) padding-box, linear-gradient(180deg, rgba(255, 216, 121, .95) 0%, rgba(246, 196, 83, .35) 55%, rgba(246, 196, 83, 0) 100%) border-box;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.g-card--wheel { background: radial-gradient(ellipse 75% 60% at 50% 38%, rgba(255, 154, 60, .38) 0%, rgba(214, 110, 36, .2) 45%, rgba(120, 60, 20, .08) 75%, rgba(36, 21, 10, 0) 100%) padding-box, linear-gradient(#24150A, #24150A) padding-box, linear-gradient(180deg, rgba(255, 216, 121, .95) 0%, rgba(246, 196, 83, .35) 55%, rgba(246, 196, 83, 0) 100%) border-box;
  box-shadow: 0 0 30px rgba(246, 166, 60, .3); }
.g-wheel { display: flex; justify-content: center; padding: 12px 0 8px; }
.g-wheel img { width: 270px; height: 270px; object-fit: contain; filter: drop-shadow(0 0 20px rgba(245, 153, 51, .35)); }
.g-wheel__text { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 20px; }
.g-badge { height: 27px; border-radius: 999px; background: rgba(255, 154, 60, .14); box-shadow: inset 0 0 0 1px rgba(255, 154, 60, .5); display: flex; align-items: center; padding: 4px 10px; font-size: 11px; font-weight: 900; line-height: 1; white-space: nowrap; color: #FF9A3C; }
.g-wheel__title { margin: 0; align-self: stretch; font-size: 26px; font-weight: 900; line-height: 38px; text-align: center;
  background: linear-gradient(180deg, #FFF3C4 0%, #F2BE45 62%, #C98A22 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-wheel__lead { margin: 0; font-size: 14px; font-weight: 500; line-height: 24px; text-align: center; color: #EAD8B8; }
.g-cta { display: flex; padding: 16px 20px 20px; }
.g-cta > * { flex: 1; }
.g-cta--xbaz { padding: 14px 18px 18px; }
.g-btn { font-size: 15px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255, 241, 191, .7), 0 6px 18px rgba(255, 154, 60, .4); }
.g-btn--52 { height: 52px; } .g-btn--46 { height: 46px; } .g-btn--44 { height: 44px; width: 120px; flex: none; padding: 0 12px; }
.g-xbin { position: relative; height: 334px; overflow: hidden; }
.g-glow { position: absolute; left: calc(50% - 75px); top: 94px; width: 133px; height: 133px; border-radius: 50%; background: #FF9A3C; filter: blur(46px); opacity: .7; }
.g-xbin__img { position: absolute; left: calc(50% - 121px); top: 18px; width: 241px; height: 241px; object-fit: cover; max-width: none; }
.g-row { display: flex; align-items: center; gap: 12px; padding: 16px 18px 18px; min-height: 110px; }
.g-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.g-title { margin: 0; font-size: 22px; font-weight: 900; line-height: 34px; color: var(--gold); }
.g-lead { margin: 0; font-size: 12px; font-weight: 500; line-height: 20px; color: #C9B591; }
.g-xbaz { position: relative; height: 373px; padding: 18px; }
.g-glow--xbaz { left: auto; right: calc(50% - 50px); top: 99px; }
.g-xbaz__img { position: absolute; left: 18px; top: 18px; width: 265px; height: 265px; object-fit: cover; max-width: none; }
.g-xbaz__title { position: absolute; right: 18px; left: 18px; top: 264px; }
.g-xbaz__lead { position: absolute; right: 18px; left: 18px; top: 302px; }
.g-btn[aria-disabled="true"] { pointer-events: auto; }

/* ---------- Motion (design data-m, default set). Off under prefers-reduced-motion (and the core.css guard). */
@media (prefers-reduced-motion: no-preference) {
  [data-m="bob"] { animation: t-bob 2.6s ease-in-out infinite alternate; }
  .rw-card:nth-child(2) [data-m="bob"], .g-card:nth-child(2) [data-m="bob"] { animation-delay: .4s; }
  .rw-card:nth-child(3) [data-m="bob"], .g-card:nth-child(3) [data-m="bob"] { animation-delay: .8s; }
  [data-m="glow"] { animation: t-glow 2.2s ease-in-out infinite alternate; }
  [data-m="wheel"] { animation: t-wheel 1.8s ease-in-out infinite alternate; }
  .mt-tl__dot { animation: t-dot 1.4s ease-in-out infinite alternate; }
  .mt-tl__row + .mt-tl__row .mt-tl__dot { animation-delay: .7s; }
  .mt-rate__stars svg { animation: t-rstar 3s infinite; }
  .mt-rate__stars svg:nth-child(2) { animation-delay: .15s; } .mt-rate__stars svg:nth-child(3) { animation-delay: .3s; }
  .mt-rate__stars svg:nth-child(4) { animation-delay: .45s; } .mt-rate__stars svg:nth-child(5) { animation-delay: .6s; }
}
@keyframes t-bob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes t-glow { from { opacity: .55; transform: scale(1); } to { opacity: .85; transform: scale(1.12); } }
@keyframes t-wheel { from { filter: drop-shadow(0 0 14px rgba(245, 153, 51, .3)); transform: scale(1); } to { filter: drop-shadow(0 0 30px rgba(245, 153, 51, .6)); transform: scale(1.02); } }
@keyframes t-dot { from { box-shadow: 0 0 12px rgba(246, 166, 60, .5); } to { box-shadow: 0 0 22px rgba(246, 166, 60, .9); } }
@keyframes t-rstar { 0%, 20% { transform: scale(1); } 10% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) {
  .rw-more svg, .rw-bar__fill { animation: none; transition: none; }
}

@media (max-width: 359px) {
  .mt-stats-wrap, .rw-score-wrap, .mt-chips { padding-left: 16px; padding-right: 16px; }
  .mt-featured, .mt-notice, .mt-error { margin-left: 16px; margin-right: 16px; }
  .mt-section, .rw-list-wrap, .g-list { padding-left: 16px; padding-right: 16px; }
  .rw-card__head { padding-right: 112px; }
  .rw-card__img { width: 92px; }
}

/* No shine sweep in the three tabs or their dialogs: it belongs to the club page only. */
main[data-page="missions"] .btn::before, main[data-page="rewards"] .btn::before, main[data-page="games"] .btn::before,
main[data-page="missions"] .shine::before, main[data-page="rewards"] .shine::before, main[data-page="games"] .shine::before,
[data-dialog="reward"] .btn::before, [data-dialog="history"] .btn::before, [data-dialog="referrals"] .btn::before, [data-dialog="referral"] .btn::before {
  content: none; animation: none;
}
