/* css/base.css */
/* AirDrop design system — tokens + shared components.
   Light theme is the default (corporate, Kline-like). Dark follows Telegram's colorScheme
   or the user's choice via <html data-theme="dark">. Screens use tokens only, never raw hex. */

@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(../fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(../fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Tahoma, 'Noto Sans Arabic', sans-serif;

  --bg:        #F3F5F9;
  --bg-2:      #EAEEF5;
  --surface:   #FFFFFF;
  --surface-2: #F7F9FC;
  --line:      rgba(15, 23, 42, .07);
  --line-2:    rgba(15, 23, 42, .12);

  --ink:   #0A0E27;
  --ink-2: #374151;
  --ink-3: #8A94A6;
  --ink-4: #B8C0CE;

  --brand:      #2F5BFF;
  --brand-ink:  #FFFFFF;
  --brand-soft: rgba(47, 91, 255, .09);
  --brand-grad: linear-gradient(135deg, #3D6BFF 0%, #2346E8 55%, #5B3DF5 100%);

  --violet:      #7C5CFF;  --violet-soft: rgba(124, 92, 255, .11);
  --mint:        #0E9F6E;  --mint-soft:   rgba(14, 159, 110, .10);
  --coral:       #E5484D;  --coral-soft:  rgba(229, 72, 77, .10);
  --amber:       #F59E0B;  --amber-soft:  rgba(245, 158, 11, .12);
  --sky:         #0EA5E9;  --sky-soft:    rgba(14, 165, 233, .11);

  --gold:       #F5B014;
  --gold-ink:   #B7791F;
  --gold-soft:  rgba(245, 176, 20, .14);
  --gold-grad:  linear-gradient(135deg, #FFD966 0%, #F5B014 55%, #E08A00 100%);

  --shadow-1: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 8px rgba(15, 23, 42, .04);
  --shadow-2: 0 4px 16px rgba(15, 23, 42, .07), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-3: 0 12px 36px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .06);
  --shadow-brand: 0 8px 22px rgba(47, 91, 255, .28);

  --glass: rgba(255, 255, 255, .78);
  --glass-line: rgba(255, 255, 255, .85);

  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 20px; --r-xl: 26px; --r-pill: 999px;

  --fs-11: 11px; --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-15: 15px;
  --fs-17: 17px; --fs-20: 20px; --fs-24: 24px; --fs-32: 32px; --fs-40: 40px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  /* in Telegram full-screen mode the status bar (tg-safe) AND Telegram's floating close/menu buttons (tg-content-safe)
     sit on top of the page: the content starts below both */
  --safe-top: max(env(safe-area-inset-top, 0px), calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)));
  --safe-bot: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --header-h: 60px;
  --nav-h: 86px;
  --gutter: 16px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg:        #0B0F1A;
  --bg-2:      #111727;
  --surface:   #141B2D;
  --surface-2: #1A2238;
  --line:      rgba(255, 255, 255, .07);
  --line-2:    rgba(255, 255, 255, .12);
  --ink:   #F1F4FB;
  --ink-2: #C5CCDB;
  --ink-3: #8790A6;
  --ink-4: #4D566B;
  --brand:      #5B7FFF;
  --brand-soft: rgba(91, 127, 255, .14);
  --violet-soft: rgba(124, 92, 255, .18);
  --mint:  #2CC28C; --mint-soft: rgba(44, 194, 140, .14);
  --coral: #FF6369; --coral-soft: rgba(255, 99, 105, .14);
  --amber-soft: rgba(245, 158, 11, .16);
  --sky-soft:   rgba(14, 165, 233, .16);
  --gold-ink: #F5C451;
  --gold-soft: rgba(245, 176, 20, .16);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 4px 16px rgba(0, 0, 0, .35);
  --shadow-3: 0 12px 36px rgba(0, 0, 0, .5);
  --glass: rgba(20, 27, 45, .78);
  --glass-line: rgba(255, 255, 255, .08);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--bg); color: var(--ink);
  font: 500 var(--fs-15)/1.45 var(--font); -webkit-font-smoothing: antialiased;
  overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
body { overflow: hidden; }
button { font: inherit; color: inherit; }
input, textarea { font: inherit; color: inherit; -webkit-user-select: text; user-select: text; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
[hidden] { display: none !important; }

/* ── Icons ── */
.ic:not([width]) { width: 20px; height: 20px; }
.ic { flex: 0 0 auto; display: inline-block; vertical-align: middle;
  stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill, .ic .fill { fill: currentColor; stroke: none; }
.ic-tile { width: 42px; height: 42px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.ic-tile.lg { width: 52px; height: 52px; border-radius: 15px; }
.ic-tile.sm { width: 34px; height: 34px; border-radius: 10px; }
.ic-tile.violet { background: var(--violet-soft); color: var(--violet); }
.ic-tile.mint   { background: var(--mint-soft);   color: var(--mint); }
.ic-tile.coral  { background: var(--coral-soft);  color: var(--coral); }
.ic-tile.amber  { background: var(--amber-soft);  color: var(--amber); }
.ic-tile.sky    { background: var(--sky-soft);    color: var(--sky); }
.ic-tile.gold   { background: var(--gold-soft);   color: var(--gold-ink); }
.ic-tile.solid  { background: var(--brand-grad);  color: #fff; box-shadow: var(--shadow-brand); }

/* ── Loader / splash ── */
.splash { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  overflow: hidden; color: #fff; transition: opacity .45s var(--ease), visibility .45s;
  background: radial-gradient(120% 80% at 50% 42%, #2B1A0A 0%, #160F12 48%, #0B0910 100%); }
.splash::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, rgba(255, 214, 110, .16) 1px, transparent 1.6px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 45% at 50% 42%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 60% 45% at 50% 42%, #000 10%, transparent 75%); }
.splash.out { opacity: 0; visibility: hidden; }
.splash-glow { position: absolute; left: 50%; top: 42%; width: 420px; height: 420px; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 176, 40, .28) 0%, rgba(255, 140, 20, .1) 40%, transparent 70%); animation: splashGlow 2.6s ease-in-out infinite; }
.splash-mark { position: relative; width: 124px; height: 124px; margin-bottom: 26px; animation: splashFloat 2.6s ease-in-out infinite; }
.splash-coin { position: relative; z-index: 2; display: block; width: 124px; height: 124px; border-radius: 50%;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .45)) drop-shadow(0 0 22px rgba(255, 176, 40, .35)); }
.splash-ring { position: absolute; inset: -14px; border-radius: 50%; z-index: 1;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(255, 214, 110, .9) 75%, transparent 92%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63.5%, #000 66%, transparent 67.5%); mask: radial-gradient(circle, transparent 62%, #000 63.5%, #000 66%, transparent 67.5%);
  animation: splashSpin 1.6s linear infinite; }
.splash-halo { position: absolute; inset: -6px; border-radius: 50%; z-index: 1; box-shadow: 0 0 0 2px rgba(255, 214, 110, .18); animation: splashHalo 2s ease-out infinite; }
.splash-shine { position: absolute; inset: 0; z-index: 3; border-radius: 50%; overflow: hidden; pointer-events: none; }
.splash-shine::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 34%; left: -60%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: splashShine 2.6s ease-in-out infinite .4s; }
.splash-brand { position: relative; font-size: 26px; font-weight: 800; letter-spacing: -.4px; }
.splash-brand b { background: linear-gradient(180deg, #FFF0B8, #FFC233 55%, #F29A00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.splash-tag { position: relative; margin-top: 6px; font-size: var(--fs-14, 14px); font-weight: 600; color: rgba(255, 255, 255, .66); text-align: center; padding: 0 32px; }
.splash-bar { position: relative; width: 150px; height: 4px; margin-top: 26px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, #FFE38A, #F5A60F);
  box-shadow: 0 0 10px rgba(255, 190, 60, .7); animation: splashBar 1.1s var(--ease) infinite; }
.splash-msg { position: relative; margin-top: 14px; color: rgba(255, 255, 255, .72); font-size: var(--fs-13); text-align: center; padding: 0 32px; }
.splash-msg:empty { display: none; }
.splash-bar.det i { animation: none; transform: none; width: 6%; transition: width .25s ease; }
@keyframes splashFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }
@keyframes splashSpin { to { transform: rotate(360deg) } }
@keyframes splashHalo { 0% { transform: scale(.92); opacity: .9 } 100% { transform: scale(1.35); opacity: 0 } }
@keyframes splashGlow { 0%,100% { opacity: .75; transform: translate(-50%, -50%) scale(.94) } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04) } }
@keyframes splashShine { 0% { left: -60% } 55%, 100% { left: 130% } }
@keyframes splashBar { 0% { transform: translateX(-100%) } 100% { transform: translateX(260%) } }

/* ── App shell ── */
.app { position: fixed; inset: 0; display: flex; flex-direction: column; padding-top: var(--safe-top); }
.header { height: var(--header-h); flex: 0 0 var(--header-h); display: flex; align-items: center; gap: 10px; padding: 0 var(--gutter); }
.h-user { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; background: none; border: 0; padding: 0; text-align: start; cursor: pointer; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  background: var(--brand-grad); color: #fff; font-weight: 800; font-size: var(--fs-15); overflow: hidden; position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar.sm { width: 32px; height: 32px; font-size: var(--fs-13); }
.avatar.lg { width: 72px; height: 72px; font-size: var(--fs-24); }
.h-who { min-width: 0; }
.h-name { font-weight: 700; font-size: var(--fs-15); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-league { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-12); font-weight: 700; color: var(--ink-3); }
.h-league .ic { width: 13px; height: 13px; }
.h-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow-1);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; position: relative; }
.h-btn:active { transform: scale(.94); }
.h-balance { border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 6px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--shadow-1); font-weight: 800; font-size: var(--fs-15); }
.h-balance .coin { width: 28px; height: 28px; }

.view { flex: 1 1 auto; position: relative; overflow: hidden; }
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  padding: 4px var(--gutter) calc(var(--nav-h) + var(--safe-bot) + 16px); }
.screen.enter { animation: screenIn .32s var(--ease) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

/* Pushed page (leaderboard, profile…) slides over the tabs */
.page { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; padding-top: var(--safe-top);
  animation: pageIn .36s var(--ease) both; }
.page.out { animation: pageOut .26s var(--ease) both; }
@keyframes pageIn { from { transform: translateX(100%) } to { transform: none } }
@keyframes pageOut { to { transform: translateX(100%) } }
[dir="rtl"] .page { animation-name: pageInRtl; }
[dir="rtl"] .page.out { animation-name: pageOutRtl; }
@keyframes pageInRtl { from { transform: translateX(-100%) } to { transform: none } }
@keyframes pageOutRtl { to { transform: translateX(-100%) } }
.page-head { height: var(--header-h); flex: 0 0 var(--header-h); display: flex; align-items: center; gap: 8px; padding: 0 var(--gutter); }
.page-head h1 { margin: 0; font-size: var(--fs-17); font-weight: 800; flex: 1; }
.page-body { flex: 1; overflow-y: auto; padding: 4px var(--gutter) calc(var(--safe-bot) + 24px); }
[dir="rtl"] .page-head .ic-back { transform: scaleX(-1); }

/* ── Floating glass nav ── */
.nav { position: fixed; left: 0; right: 0; z-index: 30; bottom: calc(var(--safe-bot) + 10px); padding: 0 14px; pointer-events: none; }
.nav-inner { pointer-events: auto; position: relative; max-width: 452px; margin: 0 auto; height: 64px; padding: 6px; border-radius: 32px;
  display: grid; grid-template-columns: repeat(5, 1fr); background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  box-shadow: var(--shadow-3), inset 0 0 0 1px var(--glass-line); }
.nav-ind { position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 26px; background: var(--surface);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .10); transition: transform .38s var(--ease), width .38s var(--ease); }
:root[data-theme="dark"] .nav-ind { background: var(--surface-2); }
.nav-tab { position: relative; z-index: 1; border: 0; background: none; border-radius: 26px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-3); transition: color .2s; }
.nav-tab .ic { width: 23px; height: 23px; transition: transform .18s; }
.nav-tab span { font-size: 10.5px; font-weight: 700; letter-spacing: .1px; }
.nav-tab.active { color: var(--brand); }
.nav-tab:active .ic { transform: scale(.88); }
.dot { position: absolute; top: 7px; inset-inline-end: calc(50% - 17px); min-width: 8px; height: 8px; border-radius: 8px; background: var(--coral);
  box-shadow: 0 0 0 2px var(--surface); }
.dot.count { min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; font-weight: 800; color: #fff; line-height: 16px; text-align: center; top: 3px; inset-inline-end: calc(50% - 22px); }

/* ── Typography helpers ── */
.title-xl { font-size: var(--fs-24); font-weight: 800; letter-spacing: -.4px; margin: 0; }
.title-lg { font-size: var(--fs-20); font-weight: 800; letter-spacing: -.3px; margin: 0; }
.title-md { font-size: var(--fs-17); font-weight: 800; letter-spacing: -.2px; margin: 0; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-13); }
.tiny { font-size: var(--fs-11); }
.gold-text { color: var(--gold-ink); }
.good-text { color: var(--mint); }
.bad-text { color: var(--coral); }

.section { margin-top: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 10px; }
.section-head h2 { margin: 0; font-size: var(--fs-17); font-weight: 800; letter-spacing: -.2px; }
.section-head .link { border: 0; background: none; color: var(--brand); font-weight: 700; font-size: var(--fs-13); display: inline-flex; align-items: center; gap: 2px; cursor: pointer; padding: 0; }
.section-head .link .ic { width: 16px; height: 16px; }
[dir="rtl"] .section-head .link .ic, [dir="rtl"] .row-chev { transform: scaleX(-1); }

/* ── Cards ── */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 16px; position: relative; overflow: hidden; }
.card + .card { margin-top: 12px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.hero { color: #fff; background: var(--brand-grad); box-shadow: var(--shadow-brand); }
.card.hero .muted { color: rgba(255, 255, 255, .72); }
.card.dots::before { content: ''; position: absolute; top: 0; right: 0; width: 180px; height: 110px; pointer-events: none;
  background-image: radial-gradient(circle, rgba(15, 23, 42, .07) 1px, transparent 1.3px); background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(ellipse 130% 110% at 100% 0%, #000 30%, transparent 72%); mask-image: radial-gradient(ellipse 130% 110% at 100% 0%, #000 30%, transparent 72%); }
.card.hero.dots::before { background-image: radial-gradient(circle, rgba(255, 255, 255, .18) 1px, transparent 1.3px); }
:root[data-theme="dark"] .card.dots:not(.hero)::before { background-image: radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1.3px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* ── List rows ── */
.list { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; min-height: 64px; position: relative; width: 100%; border: 0; background: none; text-align: start; }
.row + .row::before { content: ''; position: absolute; top: 0; inset-inline-start: 68px; inset-inline-end: 0; height: 1px; background: var(--line); }
button.row { cursor: pointer; }
button.row:active { background: var(--surface-2); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 700; font-size: var(--fs-15); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: var(--fs-12); color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-end { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.row-chev { color: var(--ink-4); width: 18px; height: 18px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: var(--r-md);
  border: 0; cursor: pointer; font-weight: 800; font-size: var(--fs-15); background: var(--surface-2); color: var(--ink);
  transition: transform .12s var(--ease), opacity .2s, box-shadow .2s; white-space: nowrap; }
.btn .ic { width: 19px; height: 19px; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-brand); }
.btn.gold { background: var(--gold-grad); color: #3D2600; box-shadow: 0 8px 22px rgba(245, 176, 20, .32); }
.btn.soft { background: var(--brand-soft); color: var(--brand); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.white { background: #fff; color: var(--brand); }
.btn.danger { background: var(--coral-soft); color: var(--coral); }
.btn.sm { height: 36px; padding: 0 14px; font-size: var(--fs-13); border-radius: var(--r-sm); }
.btn.xs { height: 30px; padding: 0 12px; font-size: var(--fs-12); border-radius: 10px; }
.btn.lg { height: 56px; font-size: var(--fs-17); border-radius: var(--r-lg); }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.btn.loading { pointer-events: none; color: transparent !important; position: relative; }
.btn.loading::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor;
  border-color: rgba(255, 255, 255, .9) rgba(255, 255, 255, .9) transparent transparent; animation: spin .7s linear infinite; }
.btn.soft.loading::after, .btn.ghost.loading::after, .btn:not(.primary):not(.gold).loading::after { border-color: var(--brand) var(--brand) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ── Chips / pills / segmented ── */
.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: var(--fs-12); font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill .ic { width: 13px; height: 13px; }
.pill.brand { background: var(--brand-soft); color: var(--brand); }
.pill.gold  { background: var(--gold-soft);  color: var(--gold-ink); }
.pill.mint  { background: var(--mint-soft);  color: var(--mint); }
.pill.coral { background: var(--coral-soft); color: var(--coral); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.violet{ background: var(--violet-soft);color: var(--violet); }
.pill.sky   { background: var(--sky-soft);   color: var(--sky); }
.pill.on-hero { background: rgba(255, 255, 255, .18); color: #fff; }

.seg { display: flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--bg-2); position: relative; }
.seg button { flex: 1; height: 36px; border: 0; border-radius: 10px; background: none; font-weight: 700; font-size: var(--fs-13); color: var(--ink-3);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .2s, color .2s, box-shadow .2s; }
.seg button .ic { width: 16px; height: 16px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.seg button .cnt { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: #fff; font-size: 10px; line-height: 18px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 14px; border-radius: var(--r-pill); border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
  font-weight: 700; font-size: var(--fs-13); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.chip:active { transform: scale(.96); }

/* ── Inputs ── */
.field { display: block; margin-bottom: 14px; }
.field-label { display: flex; justify-content: space-between; font-size: var(--fs-13); font-weight: 700; color: var(--ink-2); margin: 0 2px 6px; }
.input { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: var(--r-md); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s; }
.input:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.input.error { box-shadow: inset 0 0 0 2px var(--coral); }
.input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-weight: 700; font-size: var(--fs-15); }
.input input::placeholder { color: var(--ink-4); font-weight: 600; }
.input .ic { color: var(--ink-3); }
.input-suffix { font-weight: 700; color: var(--ink-3); font-size: var(--fs-13); }
.field-hint { font-size: var(--fs-12); color: var(--ink-3); margin: 6px 2px 0; }
.field-hint.bad { color: var(--coral); }

/* ── Progress ── */
.progress { height: 8px; border-radius: 8px; background: var(--bg-2); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 8px; background: var(--brand-grad); transition: width .5s var(--ease); }
.progress.gold > i { background: var(--gold-grad); }
.progress.mint > i { background: linear-gradient(90deg, #10B981, #34D399); }
.progress.on-hero { background: rgba(255, 255, 255, .22); }
.progress.on-hero > i { background: #fff; }

/* ── Notes ── */
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft);
  font-size: var(--fs-13); color: var(--ink-2); line-height: 1.5; }
.note .ic { color: var(--brand); width: 18px; height: 18px; margin-top: 1px; }
.note.amber { background: var(--amber-soft); } .note.amber .ic { color: var(--amber); }

/* ── Empty state ── */
.empty { text-align: center; padding: 36px 24px; }
.empty .ic-tile { margin: 0 auto 12px; }
.empty-title { font-weight: 800; font-size: var(--fs-15); }
.empty-sub { color: var(--ink-3); font-size: var(--fs-13); margin-top: 4px; }

/* ── Skeleton ── */
.sk { background: linear-gradient(90deg, var(--bg-2) 0%, var(--surface-2) 50%, var(--bg-2) 100%); background-size: 200% 100%;
  animation: sk 1.2s ease-in-out infinite; border-radius: 10px; }
.sk-row { height: 64px; border-radius: var(--r-md); margin-bottom: 8px; }
@keyframes sk { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }

/* ── Toast ── */
.toast { position: fixed; left: 50%; top: calc(var(--safe-top) + 10px); z-index: 200; transform: translate(-50%, -16px);
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 10px 16px 10px 12px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: var(--fs-14); box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .2s, visibility 0s .3s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: transform .3s var(--ease), opacity .2s; }
.toast .ic { width: 20px; height: 20px; }
.toast.good .ic { color: #34D399; }
.toast.bad .ic { color: #FF7A7F; }
.toast.gold .ic { color: var(--gold); }

/* ── Bottom sheet ── */
.sheet-back { position: fixed; inset: 0; z-index: 100; background: rgba(10, 14, 39, .42); opacity: 0; transition: opacity .25s; }
.sheet-back.show { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 101; max-height: 88vh; overflow-y: auto; background: var(--surface);
  border-radius: 26px 26px 0 0; padding: 8px var(--gutter) calc(var(--safe-bot) + 20px); transform: translateY(100%); transition: transform .38s var(--ease); }
.sheet.show { transform: none; }
.sheet-grip { width: 38px; height: 5px; border-radius: 5px; background: var(--line-2); margin: 0 auto 12px; }
.sheet-title { font-size: var(--fs-20); font-weight: 800; text-align: center; margin: 4px 0 6px; }
.sheet-sub { text-align: center; color: var(--ink-3); font-size: var(--fs-14); margin-bottom: 18px; }

/* ── Reward modal (big celebratory result) ── */
.reward { text-align: center; padding: 8px 0 4px; }
.reward-coin { width: 96px; height: 96px; margin: 6px auto 10px; animation: rewardPop .6s var(--ease) both; }
.reward-amt { font-size: var(--fs-40); font-weight: 800; letter-spacing: -1px; }
@keyframes rewardPop { 0% { transform: scale(.3) rotate(-30deg); opacity: 0 } 60% { transform: scale(1.12) rotate(6deg); opacity: 1 } 100% { transform: none } }

/* ── Confetti / floating numbers ── */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; }
.float-num { position: absolute; pointer-events: none; font-weight: 800; font-size: 26px; color: var(--gold-ink);
  text-shadow: 0 2px 8px rgba(245, 176, 20, .35); animation: floatNum .9s var(--ease) forwards; transform: translate(-50%, -50%); }
:root[data-theme="dark"] .float-num { color: var(--gold); }
@keyframes floatNum { to { transform: translate(-50%, calc(-50% - 90px)); opacity: 0 } }

.coin { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
/* coin artwork is an <img>: never draggable / long-press-savable, taps go to the parent button */
img.coin { object-fit: contain; -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; pointer-events: none; border-radius: 50%; }
.amt { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; }
.amt .coin { width: 18px; height: 18px; }

/* ── Connection problem banner ── */
.net-banner { position: fixed; left: 12px; right: 12px; top: calc(var(--safe-top) + 8px); z-index: 150; display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--coral); color: #fff; font-weight: 700; font-size: var(--fs-13);
  box-shadow: var(--shadow-3); transform: translateY(-140%); transition: transform .35s var(--ease); }
.net-banner.show { transform: none; }
.net-banner span { flex: 1; }
.net-banner .btn.white { color: var(--coral); }

/* Game round in progress: other tabs and header actions are visibly locked */
.nav.locked .nav-tab:not(.active) { opacity: .38; }
.header.locked .h-user, .header.locked .h-btn, .header.locked .h-balance { opacity: .55; }

/* phone-only screen (desktop Telegram / web) */
.phone-only { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  background: radial-gradient(120% 90% at 50% 0%, #2C1D5E 0%, #120C24 70%); color: #fff; text-align: center; overflow-y: auto; }
.po-card { width: 100%; max-width: 380px; }
.po-art { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 26px; display: flex; align-items: center; justify-content: center;
  color: #3D2600; background: var(--gold-grad); box-shadow: 0 16px 36px rgba(245, 176, 20, .35); }
.phone-only h1 { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.phone-only p { margin: 0 auto 20px; max-width: 320px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.po-qr { width: 196px; height: 196px; margin: 0 auto 12px; padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.po-qr img { display: block; width: 100%; height: 100%; }
.po-hint { font-size: 13px; color: rgba(255, 255, 255, .7); }
.po-link { margin-top: 6px; font-size: 16px; font-weight: 800; color: #FFD24D; }

/* css/screens/home.css */
/* Home (tap) screen — prefix hm- */
.hm { padding-top: 6px; }

.hm-league { display: block; width: 100%; border: 0; text-align: start; cursor: pointer; padding: 14px 16px 12px; color: inherit; font: inherit; }
.hm-league:active { transform: scale(.985); }
.hm-league { transition: transform .15s var(--ease); }
.hm-league-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.hm-league-badge { width: 46px; height: 46px; flex: 0 0 auto; filter: drop-shadow(0 4px 8px rgba(15, 23, 42, .14)); }
.hm-league-main { flex: 1; min-width: 0; }
.hm-league-name { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: var(--fs-17); letter-spacing: -.2px; }
.hm-league-name .pill { height: 22px; font-size: var(--fs-11); }
.hm-league-bar { margin-top: 12px; height: 7px; position: relative; z-index: 1; }
.hm-league-steps { display: flex; gap: 4px; margin-top: 8px; position: relative; z-index: 1; }
.hm-league-steps i { flex: 1; height: 3px; border-radius: 3px; background: var(--bg-2); }
.hm-league-steps i.on { background: var(--brand); opacity: .55; }
[dir="rtl"] .hm-league .row-chev { transform: scaleX(-1); }

.hm-balance { text-align: center; margin-top: 20px; }
.hm-balance-lbl { font-weight: 700; letter-spacing: .2px; }
.hm-balance-amt { display: inline-flex; align-items: center; gap: 10px; margin-top: 2px; font-size: 40px; font-weight: 800; letter-spacing: -1.4px; line-height: 1.1; }
.hm-balance-amt .coin { filter: drop-shadow(0 3px 6px rgba(227, 154, 0, .35)); }
.hm-balance-usd { color: var(--ink-3); font-weight: 700; font-size: var(--fs-14); margin-top: 2px; }

/* Tap stage */
.hm-stage { position: relative; height: 300px; margin: 6px auto 0; display: flex; align-items: center; justify-content: center; }
.hm-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); }
.hm-ring.r1 { width: 296px; height: 296px; background: radial-gradient(circle, rgba(245, 176, 20, .18) 0%, rgba(245, 176, 20, 0) 68%); animation: hmBreath 3.2s ease-in-out infinite; }
.hm-ring.r2 { width: 262px; height: 262px; border: 1.5px dashed rgba(245, 176, 20, .28); animation: hmSpin 40s linear infinite; }
.hm-ring.r3 { width: 228px; height: 228px; background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .hm-ring.r3 { background: var(--surface-2); }
.hm-coin-wrap { position: relative; width: 232px; height: 232px; animation: hmFloat 3.6s ease-in-out infinite; z-index: 2; }
.hm-coin { width: 100%; height: 100%; cursor: pointer; touch-action: none; transition: transform .14s var(--ease); will-change: transform;
  border-radius: 50%; box-shadow: 0 14px 22px rgba(196, 120, 0, .32); -webkit-touch-callout: none; }
.hm-coin .coin { width: 100%; height: 100%; display: block; }
.hm-fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: visible; }
.hm-fx .float-num { font-size: 28px; }
.hm-ripple { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 2px solid rgba(245, 176, 20, .7);
  animation: hmRipple .55s var(--ease) forwards; }
.hm-stage.empty .hm-coin { filter: grayscale(.75) drop-shadow(0 10px 18px rgba(15, 23, 42, .18)); opacity: .7; }
.hm-stage.empty .hm-ring.r1 { animation: none; opacity: .3; }
.hm-stage.shake .hm-coin-wrap { animation: hmShake .38s ease; }
@keyframes hmFloat { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@keyframes hmBreath { 0%, 100% { transform: translate(-50%, -50%) scale(.96); opacity: .8 } 50% { transform: translate(-50%, -50%) scale(1.04); opacity: 1 } }
@keyframes hmSpin { to { transform: translate(-50%, -50%) rotate(360deg) } }
@keyframes hmRipple { from { transform: scale(.4); opacity: 1 } to { transform: scale(3.4); opacity: 0 } }
@keyframes hmShake { 0%, 100% { transform: translateX(0) } 20% { transform: translateX(-8px) } 40% { transform: translateX(7px) } 60% { transform: translateX(-5px) } 80% { transform: translateX(3px) } }

.hm-hint { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; margin: -4px 0 14px; transition: opacity .4s; }
.hm-hint.gone { opacity: 0; }

/* Energy */
.hm-energy { padding: 14px 16px; }
.hm-energy-top { display: flex; align-items: center; gap: 12px; }
.hm-energy-main { flex: 1; min-width: 0; }
.hm-energy-lbl { font-size: var(--fs-12); font-weight: 700; color: var(--ink-3); }
.hm-energy-val { font-size: var(--fs-17); font-weight: 800; }
.hm-energy-val .muted { font-weight: 700; font-size: var(--fs-14); }
.hm-energy-bar { margin-top: 12px; }

/* Stat strip */
.hm-stats { margin-top: 12px; }
.hm-stat { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-1); padding: 12px 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.hm-stat .ic-tile { margin-bottom: 6px; }
.hm-stat b { font-size: var(--fs-15); font-weight: 800; }
.hm-stat .tiny { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Promo */
.hm-promo { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 12px 14px; border: 0; border-radius: var(--r-lg); cursor: pointer;
  background: linear-gradient(135deg, var(--gold-soft), rgba(245, 176, 20, .04)), var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(245, 176, 20, .25);
  text-align: start; font: inherit; color: inherit; position: relative; }
.hm-promo:active { transform: scale(.985); }
.hm-promo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hm-promo-main b { font-weight: 800; font-size: var(--fs-15); }
.hm-promo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); animation: hmPulse 1.6s ease-in-out infinite; }
@keyframes hmPulse { 50% { box-shadow: 0 0 0 7px rgba(229, 72, 77, 0) } }
[dir="rtl"] .hm-promo .row-chev { transform: scaleX(-1); }

/* Boosters */
.hm .section-head .muted { font-weight: 600; }
.hm-upg .row-title { display: block; }
.hm-upg .row-sub { display: block; }
.hm-price { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: var(--r-sm); background: var(--gold-soft);
  color: var(--gold-ink); font-weight: 800; font-size: var(--fs-13); }
.hm-price.off { background: var(--bg-2); color: var(--ink-3); }
.hm-price.off .coin { filter: grayscale(1); opacity: .6; }

/* Booster sheet */
.hm-sheet { text-align: center; padding-top: 4px; }
.hm-sheet-ic { margin: 4px auto 12px; }
.hm-sheet-desc { margin: 6px 12px 18px; line-height: 1.5; }
.hm-compare { display: flex; align-items: stretch; gap: 10px; margin-bottom: 16px; }
.hm-compare > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.hm-compare > div.next { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px rgba(47, 91, 255, .35); }
.hm-compare > div.dim { opacity: .55; }
.hm-compare b { font-size: var(--fs-24); font-weight: 800; letter-spacing: -.5px; }
.hm-compare-arrow { align-self: center; color: var(--ink-3); display: inline-flex; }
[dir="rtl"] .hm-compare-arrow { transform: scaleX(-1); }
.hm-sheet-bal { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 12px; font-weight: 700; }
.hm-sheet-need { text-align: center; margin-top: 10px; font-weight: 700; }

@media (max-height: 700px) {
  .hm-stage { height: 250px; }
  .hm-ring.r1 { width: 250px; height: 250px; }
  .hm-ring.r2 { width: 222px; height: 222px; }
  .hm-ring.r3 { width: 194px; height: 194px; }
  .hm-coin-wrap { width: 196px; height: 196px; }
}

.hm .num, .hm-sheet .num, .hm-fx .float-num { direction: ltr; unicode-bidi: isolate; }

/* Daily full-energy booster */
.hm-boost { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 14px 14px 12px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(14, 159, 110, .10), rgba(14, 165, 233, .08)), var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(14, 159, 110, .14);
  position: relative; overflow: hidden; }
.hm-boost::after { content: ''; position: absolute; inset-inline-end: -30px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, .22), transparent 70%); pointer-events: none; }
.hm-boost-ic { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #10B981 0%, #0EA5E9 100%); box-shadow: 0 8px 20px rgba(16, 185, 129, .32); position: relative; }
.hm-boost-ic::before { content: ''; position: absolute; inset: -4px; border-radius: 18px; border: 1.5px solid rgba(16, 185, 129, .35); animation: hmPulse 2.2s ease-out infinite; }
.hm-boost-ic.off { background: var(--bg-2); color: var(--ink-3); box-shadow: none; }
.hm-boost-ic.off::before { display: none; }
.hm-boost-main { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hm-boost-title { font-weight: 800; font-size: var(--fs-15); }
.hm-boost-pips { display: flex; gap: 4px; margin-top: 6px; }
.hm-boost-pips i { width: 18px; height: 5px; border-radius: 5px; background: var(--bg-2); transition: background .3s; }
.hm-boost-pips i.on { background: linear-gradient(90deg, #10B981, #34D399); }
.hm-boost-pips.lg { justify-content: center; margin: 16px 0 6px; }
.hm-boost-pips.lg i { width: 34px; height: 7px; }
.hm-boost-btn { position: relative; z-index: 1; gap: 5px; }
.hm-boost-btn .ic { width: 16px; height: 16px; }
.hm-boost-clock { position: relative; z-index: 1; height: 30px; padding: 0 11px; font-weight: 800; }
@keyframes hmPulse { 0% { transform: scale(.92); opacity: 1 } 100% { transform: scale(1.18); opacity: 0 } }

.hm-energy-bar > i.hm-surge { transition: width .9s var(--ease); background: linear-gradient(90deg, #10B981, #34D399, #A7F3D0, #34D399); background-size: 200% 100%;
  animation: hmSurge 1s linear 2; }
@keyframes hmSurge { from { background-position: 200% 0 } to { background-position: 0 0 } }

.hm-boost-hero { display: flex; justify-content: center; margin: 4px 0 14px; }
.hm-boost-hero-ic { width: 92px; height: 92px; border-radius: 28px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #10B981 0%, #0EA5E9 100%); box-shadow: 0 16px 36px rgba(16, 185, 129, .35); animation: rewardPop .6s var(--ease) both; }
.hm-boost-sheet .btn .ic { width: 20px; height: 20px; }

/* Upgrade level track */
.hm-lvtrack { display: flex; gap: 4px; margin: 16px 4px 6px; }
.hm-lvtrack i { flex: 1; height: 6px; border-radius: 6px; background: var(--bg-2); }
.hm-lvtrack i.on { background: var(--brand-grad); }
.hm-lvtrack-lbl { text-align: center; font-weight: 700; margin-bottom: 4px; }

/* League level-up celebration */
.hm-lvup { text-align: center; padding: 4px 0 2px; }
.hm-lvup-art { position: relative; width: 200px; height: 190px; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; }
.hm-lvup-rays { position: absolute; inset: -10px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(245, 176, 20, .22) 0deg 10deg, transparent 10deg 24deg);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 70%); mask-image: radial-gradient(circle, #000 25%, transparent 70%);
  animation: hmRays 14s linear infinite; }
.hm-lvup-badge { position: relative; filter: drop-shadow(0 16px 28px rgba(15, 23, 42, .25)); animation: hmLvPop .8s var(--ease) both; }
.hm-lvup-title { margin: 10px 8px 4px; }
.hm-lvup .btn { margin-top: 20px; }
@keyframes hmRays { to { transform: rotate(360deg) } }
@keyframes hmLvPop { 0% { transform: scale(.2) rotate(-25deg); opacity: 0 } 55% { transform: scale(1.12) rotate(6deg); opacity: 1 } 100% { transform: none } }
.hm-boost-ic .ic { width: 26px; height: 26px; }
.hm-boost-hero-ic .ic { width: 46px; height: 46px; stroke-width: 1.6; }

/* ---- Oto-Hamo (paid offline miner) ---- */
.hm-auto { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 14px 14px 12px;
  border-radius: var(--r-lg); cursor: pointer; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #5B3FB0 0%, #2C1D5E 55%, #1A1236 100%);
  box-shadow: 0 12px 28px -12px rgba(60, 30, 140, .55), inset 0 0 0 1px rgba(255, 214, 110, .22); transition: transform .15s var(--ease); }
.hm-auto:active { transform: scale(.985); }
.hm-auto::after { content: ''; position: absolute; inset-inline-end: -40px; top: -50px; width: 150px; height: 150px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 196, 60, .3), transparent 70%); }
.hm-auto-ic { position: relative; width: 50px; height: 50px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 15px;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.hm-auto-ic img.coin { filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .4)); }
.hm-auto-ic.on::before { content: ''; position: absolute; inset: -4px; border-radius: 18px; border: 1.5px solid rgba(255, 200, 80, .45); animation: hmPulse 2.2s ease-out infinite; }
.hm-auto-badge { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #FFDF6E, #F5A60F); color: #3A2200; box-shadow: 0 0 0 2px #2C1D5E; }
.hm-auto-badge.spin .ic { animation: hmAutoSpin 2.4s linear infinite; }
@keyframes hmAutoSpin { to { transform: rotate(360deg) } }
.hm-auto-main { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hm-auto-title { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: var(--fs-15); }
.hm-auto-pro, .hm-auto-lv { font-size: 10px; font-weight: 800; letter-spacing: .4px; padding: 2px 6px; border-radius: 6px; background: linear-gradient(180deg, #FFDF6E, #F5A60F); color: #3A2200; }
.hm-auto-lv { letter-spacing: 0; }
.hm-auto-sub { margin-top: 2px; font-size: var(--fs-12); font-weight: 600; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-auto-bar { height: 6px; margin-top: 8px; border-radius: 6px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.hm-auto-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #FFE38A, #F5A60F); box-shadow: 0 0 10px rgba(255, 190, 60, .6); transition: width .9s linear; }
.hm-auto.full .hm-auto-bar i { animation: hmAutoFull 1.2s ease-in-out infinite; }
.hm-auto.full .hm-auto-sub { color: #FFD24D; }
@keyframes hmAutoFull { 50% { filter: brightness(1.35); } }
.hm-auto-claim { position: relative; z-index: 1; flex: 0 0 auto; gap: 5px; min-width: 76px; }
.hm-auto-price { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 12px; font-weight: 800; font-size: var(--fs-14, 14px);
  background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 214, 110, .35); }
.hm-star { display: inline-block; flex: 0 0 auto; }
/* sheet */
.hm-auto-hero { position: relative; width: 92px; height: 92px; margin: 4px auto 14px; }
.hm-auto-hero img.coin { position: relative; z-index: 1; filter: drop-shadow(0 10px 20px rgba(245, 166, 15, .35)); }
.hm-auto-hero-ring { position: absolute; inset: -10px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(245, 166, 15, .85) 78%, transparent 94%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%, #000 67%, transparent 69%); mask: radial-gradient(circle, transparent 62%, #000 64%, #000 67%, transparent 69%); }
.hm-auto-hero-ring.spin { animation: hmAutoSpin 1.8s linear infinite; }
.hm-auto-sheet { text-align: center; }
.hm-auto-compare b { font-size: var(--fs-18, 18px); }
.hm-auto-buy { justify-content: space-between; padding-inline: 20px; }
.hm-auto-buyprice { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 10px; background: rgba(58, 34, 0, .14); }
.hm-auto-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; }
.hm-auto-big { font-size: 34px; font-weight: 800; margin: 6px 0 18px; background: linear-gradient(180deg, #FFD24D, #E08A00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-auto-big small { font-size: 16px; }

/* css/screens/hype.css */
/* Hype engine visuals (js/hype.js). Stage tiers: .hy-t1 warmed up · .hy-t2 going crazy · .hy-t3 rocket mode.
   Everything animates transform/opacity only. */

/* ---- meter above the coin ---- */
.hy-meter { position: absolute; top: -4px; left: 50%; z-index: 4; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-2); transform: translate(-50%, -6px) scale(.9); opacity: 0;
  transition: opacity .25s, transform .3s var(--ease); pointer-events: none; white-space: nowrap; }
.hy-meter.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.hy-meter.pop { animation: hyPop .45s var(--ease); }
@keyframes hyPop { 0% { scale: 1 } 40% { scale: 1.18 } 100% { scale: 1 } }
.hy-tag { font-weight: 800; font-size: 12px; letter-spacing: .3px; color: var(--ink-2); }
.hy-tag:empty { display: none; }
.hy-bar { width: 74px; height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.hy-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #FFC233, #FF7A1F, #E5484D); transition: width .12s linear; }
.hy-t1 .hy-tag { color: #D97706; }
.hy-t2 .hy-tag { color: #EA580C; }
.hy-t3 .hy-tag { color: #fff; }
.hy-t3 .hy-meter { background: linear-gradient(90deg, #FF7A1F, #E5484D); box-shadow: 0 8px 22px rgba(229, 72, 77, .45); }
.hy-t3 .hy-bar { background: rgba(255, 255, 255, .3); }
.hy-t3 .hy-bar i { background: #fff; }

/* ---- background layer behind the coin (z-index below coin-wrap) ---- */
.hy-back { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hy-lines, .hy-aura { will-change: transform, opacity; backface-visibility: hidden; position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity .35s; }
.hy-lines { width: 340px; height: 340px;
  background: repeating-conic-gradient(from 0deg, rgba(245, 176, 20, .30) 0deg 3deg, transparent 3deg 15deg);
  -webkit-mask-image: radial-gradient(circle, transparent 42%, #000 46%, transparent 72%); mask-image: radial-gradient(circle, transparent 42%, #000 46%, transparent 72%); }
.hy-t1 .hy-lines, .hy-t2 .hy-lines { opacity: .9; animation: hySpin 2.4s linear infinite; }
.hy-t3 .hy-lines { opacity: 1; animation: hySpin .9s linear infinite;
  background: repeating-conic-gradient(from 0deg, rgba(255, 90, 31, .45) 0deg 4deg, transparent 4deg 12deg); }
@keyframes hySpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hy-aura { width: 300px; height: 300px; background: radial-gradient(circle, rgba(255, 140, 40, .45) 0%, rgba(255, 90, 31, .18) 45%, transparent 70%); }
.hy-t2 .hy-aura { opacity: .8; animation: hyPulse 1s ease-in-out infinite; }
.hy-t3 .hy-aura { opacity: 1; animation: hyPulse .45s ease-in-out infinite;
  background: radial-gradient(circle, rgba(255, 70, 30, .6) 0%, rgba(229, 72, 77, .25) 45%, transparent 72%); }
@keyframes hyPulse { 0%, 100% { scale: 1 } 50% { scale: 1.08 } }

/* ---- character artwork behind the coin (assets/hamo/t1..t3.webp, transparent background) ---- */
.hy-char { position: absolute; left: 50%; bottom: 4%; height: 286px; width: auto; max-width: 360px; object-fit: contain;
  transform: translate(-50%, 22%) scale(.75); opacity: 0; transform-origin: 50% 100%; pointer-events: none; z-index: 0; will-change: transform, opacity;
  transition: opacity .35s var(--ease), transform .55s cubic-bezier(.2, 1.4, .4, 1); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.hy-t1 .hy-char.c1, .hy-t2 .hy-char.c2, .hy-t3 .hy-char.c3 { opacity: 1; transform: translate(-50%, 0) scale(1); }
.hy-t2 .hy-char.c2 { animation: hyCharShake .35s ease-in-out infinite; }
.hy-t3 .hy-char.c3 { animation: hyCharShake .18s ease-in-out infinite; }
@keyframes hyCharShake { 0%, 100% { rotate: 0deg } 25% { rotate: -1.5deg } 75% { rotate: 1.5deg } }

/* ---- rockets (behind the coin) ---- */
.hy-rocket { position: absolute; left: 50%; top: 88%; width: 26px; height: 44px; margin: -22px 0 0 -13px; z-index: 3;
  animation: hyLaunch 1.1s cubic-bezier(.35, .1, .7, .4) forwards; will-change: transform, opacity; }
.hy-rocket svg { position: relative; z-index: 1; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.hy-rocket .r-flame { transform-box: fill-box; transform-origin: 50% 0%; animation: hyFlame .08s ease-in-out infinite alternate; }
.hy-trail { position: absolute; left: 50%; top: 40px; width: 10px; height: 90px; margin-left: -5px; border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 194, 51, .9), rgba(255, 122, 31, .5) 30%, rgba(160, 160, 170, .35) 60%, transparent);
  transform-origin: 50% 0%; animation: hyTrail 1.1s ease-out forwards; }
@keyframes hyLaunch {
  0% { transform: translate(var(--x0), 0) rotate(0deg) scale(.6); opacity: 0 }
  10% { opacity: 1 }
  80% { opacity: 1 }
  100% { transform: translate(var(--dx), -420px) rotate(var(--rot)) scale(1.1); opacity: 0 } }
@keyframes hyTrail { 0% { scale: 1 .1; opacity: .3 } 30% { scale: 1 1; opacity: 1 } 100% { scale: 1.6 1.4; opacity: 0 } }

/* ---- sparks (front layer) ---- */
.hy-spark { will-change: transform, opacity; position: absolute; width: 7px; height: 7px; margin: -3px 0 0 -3px; border-radius: 50%; background: #FFC233; pointer-events: none;
  box-shadow: 0 0 8px rgba(255, 170, 40, .9); animation: hySpark .7s ease-out forwards; }
.hy-spark.hot { background: #FF6A1F; box-shadow: 0 0 10px rgba(255, 80, 30, .95); width: 6px; height: 6px; }
@keyframes hySpark { 0% { translate: 0 0; scale: 1; opacity: 1 } 100% { translate: var(--tx) var(--ty); scale: .2; opacity: 0 } }

@media (prefers-reduced-motion: reduce) {
  .hy-lines, .hy-aura, .hamo * { animation: none !important; }
}

/* ---- scene video behind the coin (assets/hamo/hamo.mp4) ----
   The coin keeps its normal position (it must be visible without scrolling on small phones); the scene extends
   upward behind the balance block, which stays above it. */
.hm-stage.has-scene { z-index: 0; }
/* The edges fade into the page with gradient overlays painted ON TOP of the video (::after) instead of a CSS mask:
   a mask over a playing video forces iOS to re-composite the whole scene offscreen every frame (dropped frames). */
.hy-scene { position: absolute; top: -175px; bottom: -10px; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); z-index: 0; overflow: hidden; pointer-events: none;
  contain: strict; transform: translateZ(0); }
.hy-scene::after { content: ''; position: absolute; inset: -1px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 80%, var(--bg) 100%),
              radial-gradient(ellipse 70% 80% at 50% 55%, transparent 50%, var(--bg) 100%); }
.hy-layer { position: absolute; inset: 0; opacity: 0; transition: opacity var(--fade, 280ms) ease; }
.hy-layer.on { opacity: 1; }
/* twin players of one mood: the hand-over between them is instant (no transition) */
.hy-layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transform: translateZ(0); backface-visibility: hidden; }
.hy-layer video.front { opacity: 1; }
.has-scene .hy-lines, .has-scene .hy-aura { display: none; }
.has-scene .hm-ring.r1 { opacity: .35; }
.hm-balance { position: relative; z-index: 1; }
.has-scene-page .hm-balance-amt, .has-scene-page .hm-balance-usd, .has-scene-page .hm-balance-lbl { text-shadow: 0 2px 10px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .35); }

/* with a scene, the hype meter moves under the coin so it never hides Hamo's face */
.has-scene .hy-meter { top: auto; bottom: -14px; }
/* Light theme: a dark video dissolving into a white page looks like a smudge, so the scene becomes a framed dark
   "stage card" (same width as the cards around it) that holds the balance and the coin. Its colour matches the
   clips' own background, so the video edges disappear inside it. */
:root:not([data-theme="dark"]) .hy-scene { top: -112px; bottom: 20px; left: 0; right: 0; border-radius: 28px;
  -webkit-mask-image: none; mask-image: none;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #2A2E31 0%, #1A1D20 70%, #131518 100%);
  box-shadow: 0 22px 44px -18px rgba(12, 16, 32, .55), 0 2px 6px rgba(12, 16, 32, .12), inset 0 0 0 1px rgba(255, 255, 255, .06); }
:root:not([data-theme="dark"]) .hy-scene::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse 78% 70% at 50% 52%, rgba(19, 21, 24, 0) 55%, rgba(19, 21, 24, .8) 100%),
              linear-gradient(180deg, rgba(19, 21, 24, .55) 0%, rgba(19, 21, 24, 0) 26%); }
:root:not([data-theme="dark"]) .has-scene-page .hm-balance-amt { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
:root:not([data-theme="dark"]) .has-scene-page .hm-balance-usd,
:root:not([data-theme="dark"]) .has-scene-page .hm-balance-lbl { color: rgba(255, 255, 255, .72); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

/* while Hamo dances / goes crazy / rockets, the coin turns see-through so the show behind it stays visible
   (it stays fully tappable; taps still flash it back for a moment via the press scale) */
.has-scene .hm-coin .coin { transition: opacity .45s var(--ease, ease); }
.has-scene.hy-t1 .hm-coin .coin { opacity: .74; }
.has-scene.hy-t2 .hm-coin .coin { opacity: .62; }
.has-scene.hy-t3 .hm-coin .coin { opacity: .52; }
.has-scene.hy-t1 .hm-ring, .has-scene.hy-t2 .hm-ring, .has-scene.hy-t3 .hm-ring { opacity: .2; }

/* the scene (and its edge-fade overlay) reaches up behind the league card and down to the hint: keep both above it */
.has-scene-page .hm-league, .has-scene-page .hm-hint { position: relative; z-index: 2; }

/* css/screens/tasks.css */
/* Tasks screen (js/screens/tasks.js) */
.tk-head { margin: 6px 2px 14px; }
.tk-head p { margin: 2px 0 0; }

.tk-summary { padding: 18px; }
.tk-sum-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tk-sum-label { font-size: var(--fs-13); font-weight: 700; color: rgba(255, 255, 255, .78); }
.tk-sum-amt { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: var(--fs-32); font-weight: 800; letter-spacing: -.8px; }
.tk-sum-ic { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.tk-sum-foot { margin-top: 16px; }
.tk-sum-row { display: flex; justify-content: space-between; font-size: var(--fs-12); font-weight: 700; color: rgba(255, 255, 255, .82); margin-bottom: 7px; }

.tk-invite { padding: 16px; }
.tk-inv-top { display: flex; align-items: center; gap: 14px; }
.tk-inv-art { position: relative; flex: 0 0 auto; }
.tk-inv-ring { position: absolute; inset: -6px; border-radius: 19px; border: 2px dashed var(--brand-soft); animation: tkRing 14s linear infinite; }
@keyframes tkRing { to { transform: rotate(360deg); } }
.tk-inv-copy { min-width: 0; }
.tk-inv-copy .small { margin-top: 2px; line-height: 1.4; }
.tk-inv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 12px; }
.tk-inv-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px 12px; border-radius: var(--r-md);
  background: var(--surface-2); border: 0; text-align: start; }
button.tk-inv-stat { cursor: pointer; }
button.tk-inv-stat:active { transform: scale(.98); }
.tk-inv-k { font-size: var(--fs-12); font-weight: 700; color: var(--ink-3); }
.tk-inv-v { display: flex; align-items: center; gap: 2px; font-size: var(--fs-17); font-weight: 800; }
.tk-inv-v .row-chev { width: 16px; height: 16px; }
[dir="rtl"] .tk-inv-v .row-chev { transform: scaleX(-1); }
.tk-inv-btns { display: grid; grid-template-columns: 1fr 48px; gap: 10px; }
.tk-copy { padding: 0; }

.seg .tk-cnt:empty { display: none; }
.seg .tk-cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--bg-2); color: var(--ink-3);
  font-size: 11px; line-height: 20px; font-weight: 800; }
.seg button.on .tk-cnt { background: var(--brand-soft); color: var(--brand); }
.tk-list { margin-top: 12px; }

.tk-row { align-items: flex-start; padding: 14px; }
.tk-row .ic-tile { margin-top: 2px; }
.tk-row .row-end { align-self: center; }
.tk-row .row-title { white-space: normal; line-height: 1.3; }
.tk-reward { margin-top: 6px; font-size: var(--fs-13); }
.tk-reward .amt { gap: 4px; }
.tk-row.is-done .ic-tile { filter: grayscale(1); opacity: .55; }
.tk-row.is-done .row-title { color: var(--ink-3); }
.tk-row.is-done .tk-reward { opacity: .6; }
.tk-done-ic { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--mint-soft); color: var(--mint); }
.tk-inv-prog { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.tk-inv-prog .progress { flex: 1; height: 6px; }
.tk-inv-prog span { font-size: var(--fs-11); font-weight: 800; color: var(--ink-3); white-space: nowrap; }

.tk-friends .row-end .amt { font-size: var(--fs-14); }
.tk-inv-prog span, .tk-sum-amt { direction: ltr; unicode-bidi: isolate; }

.tk-inv-act { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 8px; padding: 0 7px; height: 22px; border-radius: 11px;
  background: var(--mint-soft); color: var(--mint); font-size: var(--fs-12); font-weight: 800; }
.tk-inv-act .ic { width: 13px; height: 13px; }
.tk-wait { gap: 6px; min-width: 74px; color: var(--brand); opacity: 1 !important; box-shadow: none; }
.tk-wait[disabled] { opacity: 1; pointer-events: none; }
.tk-ring { transform: rotate(-90deg); flex: 0 0 auto; }
.tk-ring-bg { fill: none; stroke: var(--brand-soft); stroke-width: 3; }
.tk-ring-fg { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.tk-fr-note { margin-bottom: 12px; }
.tk-friend .row-end .pill { height: 26px; }
.tk-fr-prog { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tk-fr-prog .progress { flex: 1; height: 5px; min-width: 40px; }
.tk-fr-prog span { font-size: var(--fs-11); font-weight: 800; color: var(--ink-3); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.tk-pend { width: 30px; height: 30px !important; padding: 0; justify-content: center; border-radius: 50%; }
.tk-pend .ic { width: 15px; height: 15px; }
.tk-friend .row-main { min-width: 0; }

/* css/screens/earn.css */
/* Rewards screen (js/screens/earn.js): daily check-in + fortune wheel */
.er-head { margin: 6px 2px 14px; }
.er-head p { margin: 2px 0 0; }

/* ── Daily ── */
.er-daily-top { display: flex; align-items: center; gap: 12px; }
.er-daily-copy { flex: 1; min-width: 0; }
.er-streak { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 11px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-3); font-weight: 800; font-size: var(--fs-15); }
.er-streak.on { background: var(--amber-soft); color: var(--amber); }
.er-streak.on .ic { animation: erFlicker 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes erFlicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.08) rotate(-4deg); } 60% { transform: scale(.96) rotate(3deg); } }

.er-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 14px; }
.er-day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 9px;
  border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.er-day.special { grid-column: span 2; background: var(--gold-soft); box-shadow: inset 0 0 0 1px rgba(245, 176, 20, .3); color: var(--gold-ink); }
.er-day.special .er-day-n { color: var(--gold-ink); }
.er-day-sp { display: flex; align-items: center; gap: 8px; height: 100%; }
.er-day.special .er-day-amt { font-size: var(--fs-20); }
.er-day-n { font-size: var(--fs-11); font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .3px; }
.er-day-ic { height: 26px; display: flex; align-items: center; }
.er-day-amt { font-size: var(--fs-13); font-weight: 800; }
.er-x2 { position: absolute; top: 6px; inset-inline-end: 8px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--gold-grad);
  color: #3D2600; font-size: 10px; font-weight: 800; line-height: 18px; }
.er-day-mark { position: absolute; top: -5px; inset-inline-end: -5px; width: 20px; height: 20px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: var(--surface); color: var(--ink-4); box-shadow: var(--shadow-1); }
.er-day-mark.done { background: var(--mint); color: #fff; }
.er-day.special .er-day-mark { top: -5px; }
.er-day.done { background: var(--mint-soft); box-shadow: inset 0 0 0 1px rgba(14, 159, 110, .22); }
.er-day.done .er-day-n { color: var(--mint); }
.er-day.done .er-day-ic { opacity: .75; }
.er-day.locked .er-day-ic { opacity: .5; filter: grayscale(.4); }
.er-day.locked .er-day-amt { color: var(--ink-3); }
.er-day.special.locked .er-day-ic { opacity: .85; filter: none; }
.er-day.special.locked .er-day-amt { color: var(--gold-ink); }
.er-day.today { background: var(--brand-grad); box-shadow: var(--shadow-brand); color: #fff; animation: erPulse 1.8s ease-in-out infinite; }
.er-day.today .er-day-n { color: rgba(255, 255, 255, .85); }
.er-day.today::after { content: ''; position: absolute; inset: -4px; border-radius: 17px; border: 2px solid var(--brand); opacity: 0;
  animation: erRing 1.8s ease-out infinite; }
@keyframes erPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes erRing { 0% { opacity: .55; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.12); } }
.er-claim .er-claim-amt { padding: 0 10px; height: 28px; line-height: 28px; border-radius: 14px; background: rgba(255, 255, 255, .45); font-size: var(--fs-14); }
.er-claim.ghost { opacity: 1 !important; color: var(--ink-2); }
.er-claim.ghost b { color: var(--ink); font-weight: 800; }
.er-daily-hint { text-align: center; margin-top: 10px; }

/* ── Wheel ── */
.er-wheel-card { padding: 20px 16px 16px; }
.er-stage { position: relative; display: flex; justify-content: center; padding: 14px 0 6px; }
.er-glow { position: absolute; top: 50%; left: 50%; width: 300px; height: 300px; transform: translate(-50%, -48%); border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, .22) 0%, rgba(47, 91, 255, .10) 45%, transparent 70%); pointer-events: none; }
.er-wheel-wrap { position: relative; width: min(300px, 78vw); aspect-ratio: 1; }
.er-wheel-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 14px 28px rgba(35, 70, 232, .28)); overflow: visible; }
.er-rim { fill: #1B2A6B; }
:root[data-theme="dark"] .er-rim { fill: #0E1530; stroke: rgba(124, 92, 255, .35); stroke-width: 2px; }
.er-wheel { transform-origin: 150px 150px; transform-box: view-box; will-change: transform; }
.er-wl { fill: #fff; font: 800 15px var(--font); letter-spacing: -.2px; paint-order: stroke; stroke: rgba(0, 0, 0, .14); stroke-width: 2px; }
.er-wl.big { font-size: 17px; }
.er-bulb { fill: #FFE7A3; }
.er-bulb.b { fill: #fff; opacity: .55; }
.er-wheel-wrap.spinning .er-bulb.a { animation: erBlink .32s steps(1) infinite; }
.er-wheel-wrap.spinning .er-bulb.b { animation: erBlink .32s steps(1) infinite .16s; }
.er-wheel-wrap.won .er-bulb { animation: erBlink .2s steps(1) infinite; }
@keyframes erBlink { 0% { opacity: 1; fill: #FFD24D; } 50% { opacity: .25; fill: #fff; } }
.er-hub { position: absolute; top: 50%; left: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--surface); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(10, 14, 39, .3), inset 0 0 0 3px rgba(255, 255, 255, .6); }
.er-hub img { display: block; }
.er-pointer { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); filter: drop-shadow(0 4px 6px rgba(10, 14, 39, .3)); }
.er-wheel-wrap.won .er-pointer { animation: erNudge .5s var(--ease); }
@keyframes erNudge { 30% { transform: translateX(-50%) rotate(-10deg); } 60% { transform: translateX(-50%) rotate(6deg); } }

.er-actions { display: grid; gap: 10px; margin-top: 18px; }
.er-actions .btn[disabled] { opacity: .55; }
.er-actions .btn b { font-weight: 800; }
.er-cost { display: inline-flex; padding: 0 10px; height: 28px; align-items: center; border-radius: 14px; background: var(--surface); }
.er-cost .amt { font-size: var(--fs-14); color: var(--ink); }
.er-note { margin-top: 12px; }

.er-confirm { background: var(--surface-2); border-radius: var(--r-md); padding: 4px 14px; }
.er-confirm-row { display: flex; justify-content: space-between; align-items: center; height: 46px; font-size: var(--fs-14); }
.er-confirm-row + .er-confirm-row { border-top: 1px solid var(--line); }
.er-confirm-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 16px; }

.er-x2, .er-claim-amt, .er-cost { direction: ltr; unicode-bidi: isolate; }

.er-paid-left { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px;
  font-size: var(--fs-12); font-weight: 700; color: var(--ink-3); }
.er-pips { display: inline-flex; gap: 4px; }
.er-pips i { width: 14px; height: 6px; border-radius: 3px; background: var(--bg-2); }
.er-pips i.on { background: var(--violet); }

/* css/screens/games.css */
/* Games tab (js/screens/games.js) */
.gm-head { margin: 6px 2px 14px; }
.gm-head .title-xl { margin-bottom: 2px; }

.gm-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; transition: opacity .2s; }
.gm-picker.locked { opacity: .55; pointer-events: none; }
.gm-card { position: relative; overflow: hidden; border: 0; cursor: pointer; text-align: start; border-radius: var(--r-lg);
  padding: 10px 9px 10px; min-height: 100px; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px;
  color: #fff; box-shadow: var(--shadow-1); transition: transform .2s var(--ease), box-shadow .2s, opacity .2s; opacity: .7; }
.gm-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 85% 0%, rgba(255,255,255,.35), transparent 55%); }
.gm-card:active { transform: scale(.97); }
.gm-card.on { opacity: 1; transform: translateY(-2px); box-shadow: var(--shadow-2), 0 0 0 2px var(--surface), 0 0 0 4px currentColor; }
.gm-slot    { background: linear-gradient(140deg, #8B5CF6 0%, #6D3DF5 50%, #D946EF 120%); color: #fff; }
.gm-dice    { background: linear-gradient(140deg, #3D6BFF 0%, #2346E8 60%, #0EA5E9 130%); }
.gm-predict { background: linear-gradient(140deg, #F59E0B 0%, #EA580C 60%, #E5484D 130%); }
.gm-card.on.gm-slot { box-shadow: var(--shadow-2), 0 0 0 2px var(--surface), 0 0 0 4px #7C5CFF; }
.gm-card.on.gm-dice { box-shadow: var(--shadow-2), 0 0 0 2px var(--surface), 0 0 0 4px #2F5BFF; }
.gm-card.on.gm-predict { box-shadow: var(--shadow-2), 0 0 0 2px var(--surface), 0 0 0 4px #F59E0B; }
.gm-card-ic { position: absolute; top: 10px; inset-inline-start: 9px; width: 34px; height: 34px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.2); }
.gm-card-name { font-weight: 800; font-size: var(--fs-14, 14px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1; }
.gm-card-hint { font-size: var(--fs-11); font-weight: 700; opacity: .85; white-space: nowrap; position: relative; z-index: 1; }

/* Stage */
.gm-stage { padding: 16px; }
.gm-stage-slot { background: linear-gradient(180deg, #1B1446 0%, #120E30 100%); }
.gm-machine { position: relative; overflow: hidden; padding: 14px 12px 12px; border-radius: 18px;
  background: linear-gradient(180deg, #2C2266 0%, #1A1442 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.35); }
.gm-machine::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.09), transparent); transform: skewX(-18deg);
  animation: gmShine 4.5s ease-in-out infinite; }
@keyframes gmShine { 0%, 55% { transform: translateX(0) skewX(-18deg) } 100% { transform: translateX(420%) skewX(-18deg) } }
.gm-lights { display: flex; justify-content: space-between; padding: 0 6px 10px; }
.gm-lights i { width: 7px; height: 7px; border-radius: 50%; background: #FFD966; box-shadow: 0 0 8px #FFB800; animation: gmBlink 1.6s infinite; }
.gm-lights i:nth-child(even) { animation-delay: .8s; background: #FF7AB6; box-shadow: 0 0 8px #FF3D94; }
@keyframes gmBlink { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
.gm-reels { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; direction: ltr; }
.gm-reel { position: relative; height: calc(var(--rows, 1) * 76px); overflow: hidden; border-radius: 14px;
  background: linear-gradient(180deg, #E8ECF5 0%, #FFFFFF 22%, #FFFFFF 78%, #E2E7F1 100%);
  box-shadow: inset 0 3px 8px rgba(0,0,0,.18), inset 0 -3px 8px rgba(0,0,0,.12); transition: box-shadow .3s; }
.gm-reel::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,14,39,.22) 0%, transparent 28%, transparent 72%, rgba(10,14,39,.22) 100%); }
.gm-reel.blur .gm-strip { filter: blur(1.6px); }
.gm-reel.spinning::after { background: linear-gradient(180deg, rgba(10,14,39,.4) 0%, transparent 34%, transparent 66%, rgba(10,14,39,.4) 100%); }
.gm-reel.win { box-shadow: inset 0 0 0 3px #F5B014, 0 0 22px rgba(245,176,20,.65); animation: gmWin .9s var(--ease) 2; }
@keyframes gmWin { 50% { transform: scale(1.05) } }
.gm-strip { will-change: transform; }
.gm-sym { height: 76px; display: flex; align-items: center; justify-content: center; }
.gm-payline { position: absolute; left: -6px; right: -6px; top: 50%; height: 2px; margin-top: -1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,77,77,.75) 8%, rgba(255,77,77,.75) 92%, transparent); }
.gm-paytoggle { margin: 12px auto 0; display: flex; align-items: center; gap: 6px; border: 0; background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85); font-weight: 700; font-size: var(--fs-13); height: 34px; padding: 0 14px; border-radius: var(--r-pill); cursor: pointer; }
.gm-paytoggle .gm-chev { transition: transform .25s var(--ease); }
.gm-paytoggle.open .gm-chev { transform: rotate(180deg); }
.gm-paytable { margin-top: 10px; display: grid; gap: 6px; animation: screenIn .3s var(--ease) both; }
.gm-pay-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; border-radius: 12px; background: rgba(255,255,255,.06); color: #fff; }
.gm-pay-row .muted { color: rgba(255,255,255,.65); }
.gm-pay-row b { color: #FFD966; font-size: var(--fs-14); }
.gm-pay-syms { display: inline-flex; gap: 4px; }

/* Dice — 3D cube; position/rotation driven from JS (rAF), this file only styles it */
.gm-stage-dice { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }
.gm-dice-stage { position: relative; height: 226px; margin: -4px -4px 12px; border-radius: 18px; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 36px; perspective: 900px; perspective-origin: 50% 30%;
  background: radial-gradient(ellipse 70% 55% at 50% 100%, var(--brand-soft), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.gm-dice-glow { position: absolute; left: 50%; top: 18px; width: 220px; height: 220px; margin-left: -110px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(47,91,255,.10), transparent 65%); }
.gm-dice-floor { position: absolute; left: 0; right: 0; bottom: 30px; height: 20px; display: flex; justify-content: center; }
.gm-dice-shadow { display: block; width: 104px; height: 20px; border-radius: 50%; will-change: transform, opacity;
  background: radial-gradient(ellipse at center, rgba(15,23,42,.34) 0%, rgba(15,23,42,.12) 45%, transparent 70%); }
:root[data-theme="dark"] .gm-dice-shadow { background: radial-gradient(ellipse at center, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 45%, transparent 70%); }
.gm-die-float { transform-style: preserve-3d; animation: gmDieIdle 3.2s ease-in-out infinite; }
.gm-die-float.rolling { animation: none; }
@keyframes gmDieIdle { 0%, 100% { transform: translate3d(0,-4px,0) } 50% { transform: translate3d(0,-10px,0) } }
.gm-die-pos { transform-style: preserve-3d; transform-origin: 50% 100%; will-change: transform; }
.gm-tilt { transform-style: preserve-3d; transform: rotateX(-36deg) rotateY(-28deg); }
.gm-cube { position: relative; width: 88px; height: 88px; transform-style: preserve-3d; will-change: transform; }
.gm-face, .gm-core { position: absolute; inset: 0; backface-visibility: hidden; }
.gm-core { inset: 0; border-radius: 13px; background: #E3E8F2; }
/* Solid body: three planes through the centre fill whatever shows through the rounded edges and corners. */
.gm-in { position: absolute; inset: 1px; border-radius: 12px; background: #DFE5F0; }
.gm-in-x { transform: rotateY(90deg); }
.gm-in-y { transform: rotateX(90deg); }
.gm-in-z { transform: none; }
.gm-face { border-radius: 16px; padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); place-items: center;
  background: radial-gradient(circle at 30% 22%, #FFFFFF 0%, #F6F8FD 45%, #E4E9F3 100%);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.05), inset 0 -6px 12px rgba(15,23,42,.08), inset 0 4px 8px rgba(255,255,255,.9); }
.gm-face i { width: 15px; height: 15px; border-radius: 50%; }
.gm-face i.on { background: radial-gradient(circle at 38% 32%, #3E4A72 0%, #141A33 70%); box-shadow: inset 0 2px 3px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.8); }
.gm-face.gm-front i.on { width: 24px; height: 24px; background: radial-gradient(circle at 38% 32%, #FF6B78 0%, #C81E3A 75%); }
.gm-face.gm-front  { transform: translateZ(44px); }
.gm-face.gm-back   { transform: rotateY(180deg) translateZ(44px); }
.gm-face.gm-right  { transform: rotateY(90deg) translateZ(44px); }
.gm-face.gm-left   { transform: rotateY(-90deg) translateZ(44px); }
.gm-face.gm-top    { transform: rotateX(90deg) translateZ(44px); }
.gm-face.gm-bottom { transform: rotateX(-90deg) translateZ(44px); }
.gm-core.gm-front  { transform: translateZ(43.5px); }
.gm-core.gm-back   { transform: rotateY(180deg) translateZ(43.5px); }
.gm-core.gm-right  { transform: rotateY(90deg) translateZ(43.5px); }
.gm-core.gm-left   { transform: rotateY(-90deg) translateZ(43.5px); }
.gm-core.gm-top    { transform: rotateX(90deg) translateZ(43.5px); }
.gm-core.gm-bottom { transform: rotateX(-90deg) translateZ(43.5px); }
.gm-dice-val { position: absolute; top: 12px; inset-inline-end: 12px; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-size: var(--fs-20); font-weight: 800; color: #fff;
  background: var(--brand-grad); box-shadow: var(--shadow-brand); }
.gm-dice-val.pop { animation: rewardPop .5s var(--ease) both; }

.gm-dpick { gap: 8px; padding: 11px 12px 12px; }
.gm-dpick-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink) !important; font-size: inherit !important; }
.gm-pick.gm-dpick em { position: static; }
.gm-minis { display: flex; gap: 6px; }
.gm-mini { width: 24px; height: 24px; border-radius: 7px; padding: 3px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .3s var(--ease), background .3s; }
.gm-mini b { width: 4px; height: 4px; border-radius: 50%; }
.gm-mini b.on { background: var(--ink-2); }
.gm-pick.on .gm-mini { background: var(--surface); }
.gm-mini.hit { background: var(--brand) !important; box-shadow: 0 4px 10px rgba(47,91,255,.35); transform: translateY(-2px) scale(1.12); }
.gm-mini.hit b.on { background: #fff; }
.gm-dpick.won { background: var(--mint-soft) !important; box-shadow: inset 0 0 0 2px var(--mint) !important; }
.gm-dpick.won em { color: var(--mint); background: rgba(14,159,110,.14); }
.gm-dpick.lost { background: var(--coral-soft) !important; box-shadow: inset 0 0 0 2px var(--coral) !important; }
.gm-dpick.lost em { color: var(--coral); background: rgba(229,72,77,.12); }

/* Picks */
.gm-picks { display: grid; gap: 8px; }
.gm-picks-4 { grid-template-columns: repeat(2, 1fr); }
.gm-picks-3 { grid-template-columns: repeat(3, 1fr); }
.gm-pick { position: relative; border: 0; cursor: pointer; text-align: start; padding: 11px 12px; border-radius: 14px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; gap: 1px; transition: box-shadow .2s, background .2s, transform .15s; }
.gm-pick:active { transform: scale(.97); }
.gm-pick b { font-size: var(--fs-15); font-weight: 800; }
.gm-pick span { font-size: var(--fs-12); color: var(--ink-3); font-weight: 600; }
.gm-pick em { position: absolute; top: 10px; inset-inline-end: 10px; font-style: normal; font-weight: 800; font-size: var(--fs-12); color: var(--brand);
  background: var(--brand-soft); padding: 2px 7px; border-radius: 8px; }
.gm-pick.on { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.gm-picks-3 .gm-pick { align-items: center; text-align: center; padding: 12px 6px 10px; }
.gm-picks-3 .gm-pick em { position: static; margin-top: 6px; }
.gm-swatch { width: 26px; height: 26px; border-radius: 9px; margin-bottom: 6px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.gm-c-red .gm-swatch, .gm-tile.gm-c-red { background: linear-gradient(145deg, #FF6B6B, #E5304A); }
.gm-c-green .gm-swatch, .gm-tile.gm-c-green { background: linear-gradient(145deg, #34D399, #0E9F6E); }
.gm-c-hamo .gm-swatch, .gm-tile.gm-c-hamo { background: linear-gradient(145deg, #FFE07A, #F5A300); }
.gm-pick.gm-c-red.on { background: var(--coral-soft); box-shadow: inset 0 0 0 2px var(--coral); }
.gm-pick.gm-c-red.on em { color: var(--coral); background: var(--coral-soft); }
.gm-pick.gm-c-green.on { background: var(--mint-soft); box-shadow: inset 0 0 0 2px var(--mint); }
.gm-pick.gm-c-green.on em { color: var(--mint); background: var(--mint-soft); }
.gm-pick.gm-c-hamo.on { background: var(--gold-soft); box-shadow: inset 0 0 0 2px var(--gold); }
.gm-pick.gm-c-hamo em { color: var(--gold-ink); background: var(--gold-soft); }
.gm-pick[disabled] { pointer-events: none; }

/* Predict — case-opening strip; position driven from JS (rAF) */
.gm-stage-predict { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }
.gm-roul { position: relative; height: 116px; overflow: hidden; border-radius: 18px; margin: -4px -4px 10px; direction: ltr;
  background: radial-gradient(ellipse 50% 90% at 50% 50%, #1E2752 0%, #121830 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 8px 24px rgba(0,0,0,.35); }
.gm-roul::before, .gm-roul::after { content: ''; position: absolute; top: 0; bottom: 0; width: 72px; z-index: 2; pointer-events: none; }
.gm-roul::before { left: 0; background: linear-gradient(90deg, #121830 10%, rgba(18,24,48,0)); }
.gm-roul::after { right: 0; background: linear-gradient(270deg, #121830 10%, rgba(18,24,48,0)); }
.gm-roul-strip { position: absolute; top: 20px; left: 0; display: flex; gap: 8px; will-change: transform; }
.gm-tile { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35); transition: opacity .4s, filter .4s, transform .4s var(--ease); }
.gm-tile .ic { filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); stroke-width: 2.1; }
.gm-c-red .gm-swatch, .gm-tile.gm-c-red { background: linear-gradient(150deg, #FF7A7A 0%, #E5304A 70%, #B81A33 100%); }
.gm-c-green .gm-swatch, .gm-tile.gm-c-green { background: linear-gradient(150deg, #4BE3A6 0%, #10B07A 70%, #0A8259 100%); }
.gm-c-hamo .gm-swatch, .gm-tile.gm-c-hamo { background: linear-gradient(150deg, #FFEAA0 0%, #FFC933 45%, #E59400 100%); color: #6E4300; }
.gm-tile.gm-c-hamo { box-shadow: inset 0 -5px 0 rgba(120,70,0,.25), inset 0 1px 0 rgba(255,255,255,.6), 0 0 18px rgba(255,201,51,.35); }
.gm-roul-strip.done .gm-tile:not(.hit) { opacity: .32; filter: saturate(.5); }
.gm-tile.hit { transform: scale(1.1); }
.gm-roul-strip.done .gm-tile.hit { animation: gmTileWin 1.1s ease-in-out infinite; }
@keyframes gmTileWin { 0%, 100% { box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), 0 0 0 3px #fff, 0 0 18px rgba(255,255,255,.35) }
  50% { box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), 0 0 0 3px #fff, 0 0 34px rgba(255,255,255,.7) } }
.gm-roul-ptr { position: absolute; z-index: 3; left: 50%; top: 6px; bottom: 6px; width: 3px; margin-left: -1.5px; border-radius: 3px;
  background: linear-gradient(180deg, #FFE38A, #F5B014); box-shadow: 0 0 10px rgba(255,201,51,.85), 0 0 22px rgba(255,201,51,.45); }
.gm-roul-ptr::before, .gm-roul-ptr::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); border: 8px solid transparent; }
.gm-roul-ptr::before { top: -6px; border-top-color: #FFD24D; }
.gm-roul-ptr::after { bottom: -6px; border-bottom-color: #F5B014; }
.gm-last { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 12px; }
.gm-last-dots { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; direction: ltr; }
.gm-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); animation: screenIn .3s var(--ease) both; }
.gm-dot.gm-c-red { background: #E5304A; }
.gm-dot.gm-c-green { background: #10B07A; }
.gm-dot.gm-c-hamo { background: #FFC933; }
.gm-dot.gm-dot-empty { background: var(--line-2); box-shadow: none; }
.gm-swatch { display: flex; align-items: center; justify-content: center; color: #fff; }
.gm-c-hamo .gm-swatch { color: #6E4300; }

/* Bet panel */
.gm-betbox { margin-top: 12px; }
.gm-bet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gm-bal { color: var(--ink); }
.gm-stepper { display: flex; gap: 8px; align-items: center; }
.gm-step { width: 52px; height: 52px; flex: 0 0 52px; border: 0; border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.gm-step:active { transform: scale(.94); }
.gm-bet-input { flex: 1; min-width: 0; height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: var(--r-md);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.gm-bet-input:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.gm-bet-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-weight: 800; font-size: var(--fs-20); text-align: center; }
.gm-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0 14px; }
.gm-chips .chip { justify-content: center; padding: 0 4px; }
.gm-play { gap: 10px; }
.gm-play-amt { margin-inline-start: 4px; padding: 3px 9px; border-radius: 9px; background: rgba(255,255,255,.2); font-size: var(--fs-13); }
.gm-play.gm-running { opacity: .7; }

/* Loss banner */
.gm-result { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.gm-result.show { animation: gmShake .45s var(--ease); }
@keyframes gmShake { 0% { transform: translateY(8px); opacity: 0 } 40% { transform: translateX(-4px); opacity: 1 } 70% { transform: translateX(3px) } 100% { transform: none } }

/* History */
.gm-hist { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-hist-empty { display: flex; align-items: center; gap: 8px; padding: 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1); width: 100%; }
.gm-hchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px 0 5px; border-radius: var(--r-pill); font-weight: 800; font-size: var(--fs-13);
  animation: screenIn .3s var(--ease) both; }
.gm-hchip-ic { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); }
.gm-hchip.win { background: var(--mint-soft); color: var(--mint); }
.gm-hchip.loss { background: var(--coral-soft); color: var(--coral); }

.gm-note { display: flex; gap: 8px; align-items: flex-start; margin: 18px 4px 0; color: var(--ink-3); font-size: var(--fs-12); line-height: 1.5; }
.gm-note .ic { flex: 0 0 auto; margin-top: 1px; }

.gm-pick em, .gm-pay-row b, .gm-play-amt, .gm-hchip .num { direction: ltr; unicode-bidi: isolate; }

/* Daily winnings meter */
.gm-limit { padding: 12px 14px; margin-bottom: 12px; }
.gm-limit-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.gm-limit-top .row-title { font-size: var(--fs-14); }
.gm-limit-val { font-size: var(--fs-14); white-space: nowrap; }
.gm-limit-val .muted { font-weight: 700; }
.gm-limit .progress { height: 6px; }
.gm-limit.full { box-shadow: var(--shadow-1), inset 0 0 0 1.5px var(--coral-soft); }
.gm-limit.full .progress > i { background: linear-gradient(90deg, #FF7A7F, var(--coral)); }
.gm-bet-range { text-align: center; margin: -2px 0 12px; }

/* Locked (below unlock league) */
.gm-locked { text-align: center; padding: 22px 18px 18px; }
.gm-locked-art { position: relative; height: 150px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; }
.gm-locked-cards { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.gm-locked-mini { width: 74px; height: 96px; border-radius: 18px; display: flex; align-items: flex-start; justify-content: flex-start; padding: 10px;
  color: #fff; opacity: .5; filter: saturate(.75); box-shadow: var(--shadow-1); }
.gm-locked-mini:nth-child(1) { transform: rotate(-10deg) translateY(8px); }
.gm-locked-mini:nth-child(3) { transform: rotate(10deg) translateY(8px); }
.gm-locked-mini:nth-child(2) { transform: translateY(-6px); }
.gm-locked-badge { position: relative; z-index: 1; width: 92px; height: 92px; border-radius: 50%; background: var(--surface);
  box-shadow: var(--shadow-2); display: flex; align-items: center; justify-content: center; animation: splashFloat 3s ease-in-out infinite; }
.gm-locked-lock { position: absolute; bottom: 0; inset-inline-end: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink);
  color: var(--bg); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--surface); }
.gm-locked-sub { margin: 6px auto 16px; max-width: 300px; line-height: 1.5; }
.gm-locked-prog { text-align: start; margin-bottom: 16px; }
.gm-locked-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 10px; }
.gm-locked-row b { color: var(--brand); }

/* Canvas die (solid rounded body; replaces the CSS 3D cube) */
.gm-die-cv { display: block; width: 176px; height: 176px; margin: -44px; pointer-events: none; }
:root[data-theme="dark"] .gm-die-cv { filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
:root:not([data-theme="dark"]) .gm-die-cv { filter: drop-shadow(0 10px 16px rgba(15,23,42,.14)); }

/* Focus mode while a round plays */
.gm-stage { position: relative; transform-origin: 50% 50%; transition: transform .5s cubic-bezier(.2, .9, .25, 1.06), box-shadow .5s var(--ease); }
.gm-stage.gm-focused { z-index: 50; box-shadow: 0 30px 80px rgba(3, 6, 18, .5), 0 0 0 1px rgba(255, 255, 255, .06); }
.gm-focus-back { position: absolute; inset: 0; z-index: 40; background: radial-gradient(ellipse at 50% 46%, rgba(20, 26, 60, .55), rgba(4, 6, 16, .82) 70%);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .42s var(--ease); }
.gm-focus-back.show { opacity: 1; }
.screen.gm-noscroll { overflow: hidden; }
.nav { transition: opacity .35s var(--ease), transform .4s var(--ease); }
body.gm-focus .nav { opacity: 0; transform: translateY(28px); pointer-events: none; }

/* ---- Hamo (was gold) in Predict: the brand coin on a deep violet tile ---- */
.gm-c-hamo .gm-swatch, .gm-tile.gm-c-hamo { background: radial-gradient(circle at 50% 40%, #4B3784 0%, #2A1D52 70%, #1A1236 100%); color: #FFD24D; }
.gm-tile.gm-c-hamo { box-shadow: inset 0 -5px 0 rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.18), 0 0 18px rgba(255,201,51,.35); }
.gm-tile.gm-c-hamo img.coin { filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.gm-dot.gm-c-hamo { background: radial-gradient(circle at 40% 35%, #FFE07A, #D99400); }

/* ---- Roulette ---- */
.gm-roulette { background: linear-gradient(140deg, #10B07A 0%, #0A7F57 55%, #1B1F2E 135%); }
.gm-card.on.gm-roulette { box-shadow: var(--shadow-2), 0 0 0 2px var(--surface), 0 0 0 4px #10B07A; }
.gm-locked-mini.gm-roulette { background: linear-gradient(140deg, #10B07A, #0A7F57); }
.gm-stage-roulette { background: radial-gradient(ellipse 90% 70% at 50% 45%, #134B36 0%, #0C2E22 60%, #08201A 100%); }
.gm-rw { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 2px auto 14px; direction: ltr; }
.gm-rw-wheel { position: absolute; inset: 0; will-change: transform; filter: drop-shadow(0 14px 26px rgba(0,0,0,.45)); }
.gm-rw-wheel svg, .gm-rw-ballsvg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gm-rw-ballsvg { pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.gm-rw-num { fill: #fff; font: 800 11px Manrope, Arial, sans-serif; }
.gm-rw-hub { position: absolute; left: 50%; top: 50%; width: 27%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0,0,0,.5), 0 0 0 3px rgba(255,231,160,.65); }
.gm-rw-hub img.coin { width: 100%; height: 100%; display: block; }
.gm-rw-ptr { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); width: 0; height: 0; border: 9px solid transparent; border-top: 14px solid #FFD24D;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.gm-rw-res { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 999px;
  color: #fff; font-size: 20px; box-shadow: 0 8px 20px rgba(0,0,0,.4), 0 0 0 2px rgba(255,255,255,.85); animation: gmRwPop .45s var(--ease) both; }
@keyframes gmRwPop { from { transform: translateX(-50%) scale(.4); opacity: 0 } to { transform: translateX(-50%) scale(1); opacity: 1 } }
.gm-stage-roulette .gm-last .muted { color: rgba(255,255,255,.65); }
.gm-rn-red, .gm-pick.gm-rn-red, .gm-pick.gm-rn-red.on { background: linear-gradient(150deg, #F0475E, #C81E36); color: #fff; }
.gm-rn-black, .gm-pick.gm-rn-black, .gm-pick.gm-rn-black.on { background: linear-gradient(150deg, #343A52, #151826); color: #fff; }
.gm-rn-green, .gm-pick.gm-rn-green, .gm-pick.gm-rn-green.on { background: linear-gradient(150deg, #22C788, #0B8A57); color: #fff; }
.gm-rdot { min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 11px; font-weight: 800; box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); animation: screenIn .3s var(--ease) both; }

.gm-extra { margin-top: 12px; padding: 14px; }
.gm-rb-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 8px; font-weight: 700; }
.gm-rb-head em { font-style: normal; font-weight: 800; color: var(--brand); background: var(--brand-soft); padding: 2px 7px; border-radius: 8px; font-size: var(--fs-12); }
.gm-rb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 14px; }
.gm-rb { align-items: center; text-align: center; padding: 10px 4px 9px; gap: 5px; }
.gm-rb b { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-14, 14px); }
.gm-rb em { position: static; }
.gm-rb-sw { width: 13px; height: 13px; border-radius: 50%; display: inline-block; box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }
.gm-rb-red .gm-rb-sw { background: #E5304A; }
.gm-rb-black .gm-rb-sw { background: #1B1F2E; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.gm-rn { padding: 0; align-items: center; justify-content: center; box-shadow: none; }
.gm-rn-0 { width: 100%; height: 40px; flex-direction: row; gap: 8px; margin-bottom: 6px; border-radius: 12px; }
.gm-rn-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; direction: ltr; }
.gm-rn-grid .gm-rn { height: 36px; border-radius: 10px; }
.gm-rn b { font-size: 14px; color: #fff; }
.gm-rn.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #FFC933; transform: scale(1.06); z-index: 1; }
.gm-rn.hit { animation: gmRnHit 1s ease-in-out 3; }
@keyframes gmRnHit { 50% { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #fff, 0 0 18px rgba(255,255,255,.8); transform: scale(1.12); } }
.gm-rbets .gm-pick.won { background: var(--mint-soft); box-shadow: inset 0 0 0 2px var(--mint); }
.gm-rbets .gm-pick.lost { background: var(--coral-soft); box-shadow: inset 0 0 0 2px var(--coral); }
.gm-rbets .gm-rn.won { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--mint); }
.gm-rbets .gm-rn.lost { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--coral); }
.gm-pick.gm-rn-black { box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }

/* ---- slot modes: 3 / 6 / 9 (rows of symbols, paylines drawn over the reels) ---- */
.gm-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 12px; }
.gm-mode { display: flex; align-items: center; gap: 8px; padding: 9px 9px; border: 0; cursor: pointer; border-radius: 13px; color: #fff; font: inherit;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: background .2s, box-shadow .2s, transform .15s; }
.gm-mode:active { transform: scale(.96); }
.gm-mode.on { background: rgba(245,176,20,.16); box-shadow: inset 0 0 0 2px #F5B014; }
.gm-mode[disabled] { opacity: .55; pointer-events: none; }
.gm-mode-grid { display: grid; grid-template-columns: repeat(3, 6px); grid-auto-rows: 6px; gap: 2px; flex: 0 0 auto; }
.gm-mode-grid i { border-radius: 2px; background: rgba(255,255,255,.35); }
.gm-mode.on .gm-mode-grid i { background: #FFD24D; }
.gm-mode-main { display: flex; flex-direction: column; min-width: 0; text-align: start; }
.gm-mode-main b { font-size: var(--fs-14, 14px); font-weight: 800; line-height: 1.1; }
.gm-mode-main span { font-size: var(--fs-11); font-weight: 600; color: rgba(255,255,255,.62); }
.gm-reels.multi .gm-payline { display: none; }
.gm-sym.win { position: relative; }
.gm-sym.win::before { content: ''; position: absolute; inset: 5px; border-radius: 12px; pointer-events: none;
  box-shadow: inset 0 0 0 2px #F5B014, 0 0 16px rgba(245,176,20,.6); animation: gmWin .9s var(--ease) 2; }
.gm-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.gm-lines polyline { fill: none; stroke: #FFD24D; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .9;
  filter: drop-shadow(0 0 6px rgba(255,190,40,.9)); stroke-dasharray: 600; stroke-dashoffset: 600; animation: gmLineDraw .6s var(--ease) forwards; }
@keyframes gmLineDraw { to { stroke-dashoffset: 0; } }
.gm-mode-note { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: rgba(255,255,255,.62); }
.gm-result.partial .gm-partial-net { color: var(--gold-ink, #B7791F); }
.gm-hchip.partial { background: var(--gold-soft); color: var(--gold-ink); }

/* css/screens/wallet.css */
/* Wallet tab (js/screens/wallet.js) */
.wl-hero { padding: 20px 18px 18px; margin-top: 4px; }
.wl-hero-top { display: flex; align-items: center; justify-content: space-between; }
.wl-hero-lbl { font-weight: 700; }
.wl-usd { font-size: var(--fs-40); font-weight: 800; letter-spacing: -1.2px; margin-top: 6px; line-height: 1.1; }
.wl-coins { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: var(--fs-15); margin-top: 6px; color: rgba(255,255,255,.92); }
.wl-rate { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.14); color: rgba(255,255,255,.85); font-weight: 600; }
.wl-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.wl-ghost { background: rgba(255,255,255,.16); color: #fff; }

.wl-mincard { margin-top: 12px; }
.wl-min-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wl-min-top b { font-size: var(--fs-15); color: var(--gold-ink); }
.wl-ready { margin-top: 12px; background: var(--mint-soft); }
.wl-ready .ic { color: var(--mint); }

.wl-nets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wl-net { border: 0; cursor: pointer; background: var(--surface); box-shadow: var(--shadow-1); border-radius: var(--r-lg); padding: 14px 8px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform .15s var(--ease); }
.wl-net:active { transform: scale(.96); }
.wl-net-logo { margin-bottom: 6px; display: flex; filter: drop-shadow(0 4px 10px rgba(15,23,42,.12)); }
.wl-net-name { font-weight: 800; font-size: var(--fs-13); white-space: nowrap; }
.wl-net-chain { font-size: var(--fs-11); color: var(--ink-3); font-weight: 600; }

.wl-row-logo { display: flex; flex: 0 0 auto; }
.wl-row-net { font-weight: 600; font-size: var(--fs-13); }
.wl-wrap { white-space: normal; line-height: 1.45; }
.list.flat { box-shadow: none; border: 1px solid var(--line); }

/* Sheet: steps */
.wl-steps { display: flex; justify-content: center; gap: 6px; margin: -2px 0 12px; }
.wl-steps i { width: 18px; height: 4px; border-radius: 4px; background: var(--line-2); transition: background .3s, width .3s var(--ease); }
.wl-steps i.on { background: var(--brand); width: 28px; }
.wl-flow.in { animation: wlIn .32s var(--ease) both; }
@keyframes wlIn { from { opacity: 0; transform: translateX(14px) } to { opacity: 1; transform: none } }
[dir="rtl"] .wl-flow.in { animation-name: wlInRtl; }
@keyframes wlInRtl { from { opacity: 0; transform: translateX(-14px) } to { opacity: 1; transform: none } }
.wl-flow-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.wl-flow-head .h-btn { box-shadow: none; background: var(--surface-2); }
[dir="rtl"] .wl-flow-head .ic-back { transform: scaleX(-1); }
.wl-in-logo { display: flex; }
.wl-amt-chips { margin: -4px 0 14px; }
.wl-amt-chips .chip { flex: 1; justify-content: center; }
.wl-receive { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--brand-soft); margin-bottom: 16px; font-weight: 700; }
.wl-receive b { font-size: var(--fs-20); color: var(--brand); }

.wl-review-amt { text-align: center; margin-bottom: 16px; }
.wl-detail { text-align: center; padding-top: 6px; }
.wl-detail-logo { display: flex; justify-content: center; margin-bottom: 8px; }
.wl-detail-logo svg { width: 52px; height: 52px; }
.wl-detail-amt { font-size: var(--fs-32); font-weight: 800; letter-spacing: -.8px; }
.wl-detail .pill { margin: 6px 0 16px; }
.wl-detail .note { margin-top: 12px; text-align: start; }
.wl-kv { text-align: start; border-radius: var(--r-md); }
.wl-kv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: var(--fs-14); font-weight: 700; }
.wl-kv-row + .wl-kv-row { border-top: 1px solid var(--line); }
.wl-kv-col { flex-direction: column; align-items: stretch; gap: 6px; }
.wl-kv-net { display: inline-flex; align-items: center; gap: 6px; }
.wl-copy { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; cursor: pointer; text-align: start; padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); color: var(--ink); font-size: var(--fs-13); font-weight: 600; }
.wl-copy span { flex: 1; min-width: 0; word-break: break-all; direction: ltr; text-align: start; }
.wl-copy .ic { color: var(--brand); }

.wl-done { text-align: center; padding-top: 8px; }
.wl-check { width: 84px; height: 84px; margin: 4px auto 10px; border-radius: 50%; background: var(--mint-soft); display: flex; align-items: center; justify-content: center;
  animation: rewardPop .55s var(--ease) both; }
.wl-check svg { width: 56px; height: 56px; fill: none; stroke: var(--mint); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.wl-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: wlDraw .6s .15s var(--ease) forwards; stroke-width: 2.5; opacity: .5; }
.wl-check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: wlDraw .4s .55s var(--ease) forwards; }
@keyframes wlDraw { to { stroke-dashoffset: 0 } }

/* Locked withdraw button on the hero */
.wl-btn-locked { background: rgba(255,255,255,.92); color: var(--ink-2); }
.wl-btn-locked .ic { color: var(--ink-3); }
.wl-state { margin-top: 12px; }
.wl-state b { white-space: nowrap; }

/* Withdrawal unlock checklist */
.wl-unlock { margin-top: 12px; padding: 16px; }
.wl-unlock.wl-pulse { animation: wlPulse .9s var(--ease); }
@keyframes wlPulse { 0%, 100% { box-shadow: var(--shadow-1) } 40% { box-shadow: var(--shadow-1), 0 0 0 3px var(--brand) } }
.wl-unlock-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.wl-ring-wrap { position: relative; width: 64px; height: 64px; flex: 0 0 auto; }
.wl-ring { width: 64px; height: 64px; transform: rotate(-90deg); }
.wl-ring circle { fill: none; stroke-width: 6; }
.wl-ring-bg { stroke: var(--bg-2); }
.wl-ring-fg { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.wl-ring-txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--fs-15); }
.wl-reqs { display: flex; flex-direction: column; gap: 8px; }
.wl-req { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md); background: var(--surface-2); }
.wl-req.ok { background: var(--mint-soft); }
.wl-req-main { flex: 1; min-width: 0; }
.wl-req-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.wl-req-title { font-weight: 800; font-size: var(--fs-14); margin-bottom: 7px; line-height: 1.3; }
.wl-req-bot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; }
.wl-req-prog { font-weight: 800; font-size: var(--fs-12); color: var(--ink-2); white-space: nowrap; }
.wl-req .progress { height: 6px; }
.wl-req-sub { font-size: var(--fs-12); color: var(--ink-3); line-height: 1.35; }
.wl-req.ok .wl-req-sub { color: var(--mint); font-weight: 700; }
.wl-req-cta { flex: 0 0 auto; }
.wl-req-ok { width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: #fff; display: flex; align-items: center; justify-content: center; }
.wl-unlock-foot { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; line-height: 1.45; }
.wl-unlock-foot .ic { flex: 0 0 auto; margin-top: 1px; }
.wl-unlocked { margin-top: 12px; display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, var(--mint-soft), transparent 70%), var(--surface); }
.wl-unlocked-ic { width: 48px; height: 48px; border-radius: 15px; background: var(--mint); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(14,159,110,.3); flex: 0 0 auto; animation: rewardPop .6s var(--ease) both; }

/* Fee breakdown */
.wl-fee { border-radius: var(--r-md); background: var(--brand-soft); padding: 10px 14px; margin-bottom: 16px; }
.wl-fee-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: var(--fs-13); font-weight: 700; }
.wl-fee-row.total { border-top: 1px dashed var(--line-2); margin-top: 4px; padding-top: 8px; font-size: var(--fs-15); }
.wl-fee-row.total b { font-size: var(--fs-20); color: var(--brand); }

/* payout proof (recent paid withdrawals) */
.wl-proof { padding: 4px 14px; }
.wl-proof-row { padding: 10px 0; }
.wl-proof-row + .wl-proof-row { border-top: 1px solid var(--line-2); }
.wl-proof-end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.wl-proof-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: var(--fs-11); font-weight: 700; color: var(--brand); }
.wl-proof-empty { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.wl-proof-foot { display: flex; justify-content: center; padding: 4px 0 12px; }
.wl-proof-ch { gap: 6px; }

/* optional fast approval */
.wl-fast { margin: 4px 0 14px; padding: 14px; border-radius: var(--r-md); text-align: start;
  background: linear-gradient(135deg, rgba(245, 176, 20, .12), rgba(245, 158, 11, .06)); border: 1px solid rgba(245, 176, 20, .3); }
.wl-fast-top { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.wl-fast-top b { font-size: 14px; }
.wl-fast-ic { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: #3D2600; background: var(--gold-grad); }
.wl-fast-note { margin-top: 8px; line-height: 1.4; }
.wl-fast-on { color: var(--gold-ink); }
.wl-fast-chip { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #3D2600; background: var(--gold-grad); margin-inline-end: 6px; }
.wl-fast-hero { width: 72px; height: 72px; margin: 4px auto 12px; border-radius: 22px; display: flex; align-items: center; justify-content: center;
  color: #3D2600; background: var(--gold-grad); box-shadow: 0 12px 28px rgba(245, 176, 20, .35); }

/* css/screens/leaderboard.css */
/* Leaderboard page (js/screens/leaderboard.js) */
.lb-hero { padding: 16px 14px 0; border-radius: var(--r-xl); }
.lb-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 1; }
.lb-total { color: rgba(255, 255, 255, .78); font-weight: 700; }

.lb-podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.lb-pod { display: flex; flex-direction: column; align-items: center; min-width: 0; animation: lbRise .55s var(--ease) both; }
.lb-pod-2 { animation-delay: .08s; } .lb-pod-3 { animation-delay: .14s; }
@keyframes lbRise { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
.lb-pod-av { position: relative; margin-bottom: 8px; }
.lb-ring { padding: 3px; border-radius: 50%; background: linear-gradient(135deg, #E9EEF5, #93A1B5); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.lb-pod-1 .lb-ring { background: linear-gradient(135deg, #FFE07A, #E09A00); padding: 3.5px; }
.lb-pod-3 .lb-ring { background: linear-gradient(135deg, #E6A877, #A0592E); }
.lb-ring .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.lb-av-md { width: 54px; height: 54px; font-size: var(--fs-20); }
.lb-av-lg { width: 68px; height: 68px; font-size: var(--fs-24); }
.lb-crown { position: absolute; top: -19px; left: 50%; transform: translateX(-50%); color: #FFD966; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.lb-crown .ic { stroke-width: 2; fill: rgba(255, 217, 102, .35); }
.lb-pod-rank { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: #fff; color: var(--brand); font-size: var(--fs-12); font-weight: 800; line-height: 22px; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.lb-pod-name { font-weight: 800; font-size: var(--fs-13); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.lb-pod-coins { margin: 2px 0 8px; }
.lb-pod-coins .amt { font-size: var(--fs-13); color: #fff; }
.lb-pod-base { width: 100%; border-radius: 14px 14px 0 0; background: rgba(255, 255, 255, .16); display: flex; align-items: flex-start; justify-content: center; padding-top: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.lb-pod-1 .lb-pod-base { height: 78px; background: rgba(255, 255, 255, .24); }
.lb-pod-2 .lb-pod-base { height: 56px; }
.lb-pod-3 .lb-pod-base { height: 42px; }
.lb-pod-num { font-weight: 800; color: rgba(255, 255, 255, .6); }
.lb-pod-empty .lb-pod-base { opacity: .5; }
.lb-sk-av { width: 54px; height: 54px; border-radius: 50%; margin-bottom: 40px; opacity: .35; }
.lb-sk-av.lg { width: 68px; height: 68px; }
.lb-me .lb-pod-name::after { content: ''; }

/* leagues strip */
.lb-leagues { display: flex; gap: 10px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-snap-type: x proximity; scrollbar-width: none; scroll-behavior: smooth; }
.lb-leagues::-webkit-scrollbar { display: none; }
.lb-lg { flex: 0 0 auto; width: 86px; padding: 12px 6px 10px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; align-items: center; gap: 4px; scroll-snap-align: center; transition: transform .25s var(--ease); }
.lb-lg.on { box-shadow: inset 0 0 0 2px var(--brand), var(--shadow-2); transform: translateY(-2px); }
.lb-lg-badge { position: relative; height: 44px; }
.lb-lg.locked .lb-lg-badge svg.league { opacity: .38; filter: grayscale(.85); }
.lb-lg-lock { position: absolute; bottom: -2px; inset-inline-end: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface);
  color: var(--ink-3); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-1); }
.lb-lg-name { font-weight: 800; font-size: var(--fs-12); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lb-lg.locked .lb-lg-name { color: var(--ink-3); }
.lb-lg-th { font-size: var(--fs-11); font-weight: 700; color: var(--ink-3); }
.lb-lg.on .lb-lg-th { color: var(--brand); }

/* list */
.lb-row { min-height: 60px; padding: 10px 14px; }
.lb-row + .lb-row::before { inset-inline-start: 92px; }
.lb-rank { width: 26px; flex: 0 0 26px; text-align: center; font-weight: 800; font-size: var(--fs-14); color: var(--ink-3); }
.lb-league-sub { display: flex; align-items: center; gap: 4px; }
.lb-league-sub svg { flex: 0 0 auto; }
.lb-row .row-end .amt { font-size: var(--fs-14); }
.lb-row-me { background: var(--brand-soft); }
.lb-row-me .lb-rank { color: var(--brand); }
.lb-you { height: 20px; font-size: var(--fs-11); vertical-align: 1px; margin-inline-start: 4px; }
.lb-only-top { text-align: center; padding: 20px; }
.lb-flash { animation: lbFlash 1.2s var(--ease); }
@keyframes lbFlash { 0%, 100% { background: var(--brand-soft) } 30% { background: rgba(47, 91, 255, .22) } }

/* sticky me-bar */
.lb-spacer { height: 84px; }
.lb-mebar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-bot) + 12px); z-index: 5; display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 16px 0 12px; border: 0; border-radius: 22px; background: var(--ink); color: var(--bg); text-align: start;
  box-shadow: var(--shadow-3); animation: lbBar .45s var(--ease) both .2s; cursor: default; }
.lb-mebar-tap { cursor: pointer; }
.lb-mebar-tap:active { transform: scale(.98); }
@keyframes lbBar { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
.lb-mebar-main { flex: 1; min-width: 0; }
.lb-mebar-label { font-size: var(--fs-12); font-weight: 700; opacity: .65; }
.lb-mebar-rank { font-size: var(--fs-17); font-weight: 800; }
.lb-mebar-coins .amt { font-size: var(--fs-15); }
.lb-mebar .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }

/* league perks */
.lb-lg { width: 96px; }
.lb-lg-perks { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: 4px; }
.lb-lg-perk { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; padding: 2px 6px; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand); font-size: 10px; font-weight: 800; line-height: 1.3; text-align: center; }
.lb-lg-perk .ic { flex: 0 0 auto; width: 11px; height: 11px; stroke-width: 2.2; }
.lb-lg.locked .lb-lg-perk { background: var(--surface-2); color: var(--ink-3); }

/* css/screens/autohamo.css */
/* Oto-Hamo detail page (js/screens/autohamo.js). Card / buy-button pieces it shares with home live in home.css. */
.ah-body { padding-bottom: 150px; }

.ah-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 22px 18px 18px; text-align: center; color: #fff;
  background: radial-gradient(120% 90% at 50% 0%, #5B3FB0 0%, #2C1D5E 55%, #170F31 100%);
  box-shadow: 0 18px 40px -18px rgba(60, 30, 140, .6), inset 0 0 0 1px rgba(255, 214, 110, .22); }
.ah-hero::before { content: ''; position: absolute; left: 50%; top: -60px; width: 300px; height: 260px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(255, 196, 60, .3), transparent 65%); }
.ah-hero-art { position: relative; width: 84px; height: 84px; margin: 2px auto 12px; }
.ah-hero-art img.coin { position: relative; z-index: 1; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .45)); }
.ah-ring { position: absolute; inset: -10px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(255, 210, 90, .9) 78%, transparent 94%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%, #000 67%, transparent 69%); mask: radial-gradient(circle, transparent 62%, #000 64%, #000 67%, transparent 69%); }
.ah-ring.spin { animation: hmAutoSpin 1.8s linear infinite; }
.ah-hero-title { position: relative; font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.ah-hero-sub { position: relative; margin: 6px auto 0; max-width: 300px; font-size: var(--fs-13); line-height: 1.45; color: rgba(255, 255, 255, .74); }
.ah-hero-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 7px 14px; border-radius: 999px;
  font-weight: 800; font-size: var(--fs-13); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 214, 110, .35); }
.ah-hero-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 12px; }
.ah-hero-stats > div { padding: 10px 4px; border-radius: 14px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ah-hero-stats b { display: block; font-size: var(--fs-16, 16px); font-weight: 800; color: #FFD24D; }
.ah-hero-stats span { display: block; margin-top: 2px; font-size: var(--fs-11); font-weight: 600; color: rgba(255, 255, 255, .65); }
.ah-store { position: relative; margin-bottom: 14px; text-align: start; }
.ah-store-top { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-13); font-weight: 700; color: rgba(255, 255, 255, .8); }
.ah-store-top b { color: #fff; font-size: var(--fs-15); }
.ah-bar { height: 8px; margin: 8px 0 6px; border-radius: 8px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.ah-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #FFE38A, #F5A60F); box-shadow: 0 0 10px rgba(255, 190, 60, .6); transition: width .9s linear; }
.ah-store-sub { font-size: var(--fs-12); color: rgba(255, 255, 255, .6); }

.ah-steps { padding: 6px 14px; }
.ah-step { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.ah-step + .ah-step { border-top: 1px solid var(--line-2); }
.ah-step-n { position: absolute; inset-inline-start: 26px; top: 8px; z-index: 1; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #fff; background: var(--brand); box-shadow: 0 0 0 2px var(--surface); }

.ah-levels { display: grid; gap: 8px; }
.ah-lv { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-2); }
.ah-lv-badge { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
  color: var(--ink-2); background: var(--bg-2); }
.ah-lv-main { flex: 1; min-width: 0; }
.ah-lv-top { display: flex; align-items: center; gap: 8px; }
.ah-lv-top b { font-size: var(--fs-16, 16px); font-weight: 800; }
.ah-lv-top small { font-size: var(--fs-12); font-weight: 700; color: var(--ink-3); margin-inline-start: 1px; }
.ah-lv-sub { margin-top: 2px; }
.ah-lv-price { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 10px; font-weight: 800; font-size: var(--fs-13);
  background: var(--gold-soft); color: var(--gold-ink); }
.ah-lv-check { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--mint); }
.ah-lv.owned .ah-lv-badge { color: #3A2200; background: linear-gradient(180deg, #FFDF6E, #F5A60F); }
.ah-lv.cur { box-shadow: var(--shadow-1), inset 0 0 0 2px var(--brand); }
.ah-lv.next { box-shadow: var(--shadow-1), inset 0 0 0 2px #F5A60F; background: linear-gradient(180deg, var(--surface), var(--gold-soft)); }

.ah-example { display: flex; align-items: center; gap: 12px; }
.ah-faq { padding: 4px 14px; }
.ah-q + .ah-q { border-top: 1px solid var(--line-2); }
.ah-q summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; cursor: pointer;
  font-weight: 700; font-size: var(--fs-14, 14px); }
.ah-q summary::-webkit-details-marker { display: none; }
.ah-q .ah-chev { flex: 0 0 auto; color: var(--ink-3); transition: transform .2s var(--ease); }
.ah-q[open] .ah-chev { transform: rotate(180deg); }
.ah-q p { margin: -4px 0 14px; font-size: var(--fs-13); line-height: 1.5; color: var(--ink-2); }

/* sticky buy bar at the bottom of the page */
.ah-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 12px var(--gutter) calc(12px + var(--safe-bot));
  background: linear-gradient(180deg, transparent, var(--bg) 26%); text-align: center; }
.ah-cta .hm-auto-note { margin-top: 8px; }
.ah-max { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; font-size: var(--fs-14, 14px); }
.ah-steps .row-sub, .ah-example .row-sub, .ah-steps .row-title { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; }

/* payment method chooser + waiting sheet */
.ah-pay { text-align: center; }
.ah-pms { display: grid; gap: 8px; margin: 14px 0 12px; text-align: start; }
.ah-pm { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; cursor: pointer; border-radius: 16px; color: var(--ink);
  background: var(--surface-2, var(--bg-2)); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s, background .2s; font: inherit; }
.ah-pm.on { background: var(--gold-soft); box-shadow: inset 0 0 0 2px #F5A60F; }
.ah-pm-ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--surface); box-shadow: var(--shadow-1); }
.ah-pm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ah-pm-main b { font-size: var(--fs-15); font-weight: 800; }
.ah-pm-price { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: var(--fs-14, 14px); }
.ah-pm-radio { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); }
.ah-pm.on .ah-pm-radio { box-shadow: inset 0 0 0 6px #F5A60F; }
.ah-pm-targets { margin: 0 0 14px; text-align: start; }
.ah-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ah-wait { text-align: center; }
.ah-wait-spin { position: relative; width: 56px; height: 56px; margin: 6px auto 14px; }
.ah-wait-spin img.coin { position: relative; z-index: 1; }
.ah-copy { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; text-align: start;
  background: var(--surface-2, var(--bg-2)); box-shadow: inset 0 0 0 1px var(--line-2); }
.ah-copy span { flex: 0 0 auto; min-width: 74px; }
.ah-copy b { flex: 1; min-width: 0; font-size: var(--fs-13); word-break: break-all; }
.ah-memo-warn { margin: 2px 0 12px; }
.ah-wait-id { margin-top: 12px; }
.ah-pm-main { text-align: start; align-items: flex-start; }

/* in-app crypto invoice (no external payment page) */
.ah-inv { text-align: start; }
.ah-inv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ah-inv-coin svg { display: block; filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.ah-inv-title .title-lg { margin: 0; }
.ah-inv-amount { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 14px 12px 12px; border: 0; cursor: pointer;
  border-radius: 18px; font: inherit; color: var(--ink); background: linear-gradient(180deg, var(--gold-soft), var(--surface-2, var(--bg-2)));
  box-shadow: inset 0 0 0 1.5px rgba(245,166,15,.45); }
.ah-inv-amount b { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.ah-inv-amount b small { font-size: 16px; font-weight: 800; color: var(--gold-ink); }
.ah-inv-net { margin-top: 4px; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-11); font-weight: 800; letter-spacing: .3px;
  color: #fff; background: #EB0029; }
.ah-inv-amount .ah-copy-ic { position: absolute; top: 12px; inset-inline-end: 12px; color: var(--ink-3); }
.ah-inv-qr { width: 196px; height: 196px; margin: 14px auto 12px; padding: 10px; border-radius: 18px; background: #fff;
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-2); }
.ah-inv-qr svg { display: block; width: 100%; height: 100%; }
.ah-inv-qr svg path { fill: #0B0F1A; }
.ah-inv .ah-copy { width: 100%; border: 0; cursor: pointer; font: inherit; color: var(--ink); }
.ah-copy-ic { flex: 0 0 auto; color: var(--brand); }
.ah-copy.copied, .ah-inv-amount.copied { animation: ahCopied .5s var(--ease); }
@keyframes ahCopied { 50% { transform: scale(.97); box-shadow: inset 0 0 0 2px var(--mint); } }
.ah-inv-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 8px; padding: 10px; border-radius: 14px;
  font-weight: 800; font-size: var(--fs-14, 14px); background: var(--brand-soft); color: var(--brand); }
.ah-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: ahPulse 1.2s ease-in-out infinite; }
@keyframes ahPulse { 50% { opacity: .25; transform: scale(.7); } }
.ah-inv-status.paid { background: var(--mint-soft); color: var(--mint); }
.ah-inv-status.partial { background: var(--gold-soft); color: var(--gold-ink); }
.ah-inv-status.expired { background: var(--coral-soft); color: var(--coral); }
.ah-inv-status.paid .ah-dot, .ah-inv-status.expired .ah-dot { animation: none; }
.ah-inv-timer { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ah-inv-bar { flex: 1; height: 5px; border-radius: 5px; background: var(--bg-2); overflow: hidden; }
.ah-inv-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #FFE38A, #F5A60F); transition: width 1s linear; }
.ah-inv-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; font-size: var(--fs-12); line-height: 1.45;
  background: var(--coral-soft); color: var(--ink-2); }
.ah-inv-warn .ic { flex: 0 0 auto; color: var(--coral); margin-top: 1px; }
.ah-inv-net.ton { background: #0098EA; }

/* css/screens/premium.css */
/* Premium Pass page, Power Hour, Hamo Pass page and their home cards (js/screens/premium.js, hamopass.js, home.js). */
:root { --pm-gold: #F5B014; --pm-deep: #1B1030; }

/* ---- Premium hero ---- */
.pm-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 24px 18px 20px; text-align: center; color: #fff;
  background: radial-gradient(120% 95% at 50% 0%, #6A4A12 0%, #33220E 48%, #160F0A 100%);
  box-shadow: 0 18px 40px -18px rgba(120, 80, 10, .6), inset 0 0 0 1px rgba(255, 214, 110, .28); }
.pm-hero::before { content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 30%, rgba(255, 214, 110, .12) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 60%); mask-image: radial-gradient(circle at 50% 30%, #000, transparent 60%); }
.pm-hero-art { position: relative; width: 92px; height: 92px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #3D2600; background: var(--gold-grad);
  box-shadow: 0 0 0 6px rgba(255, 214, 110, .18), 0 14px 30px rgba(0, 0, 0, .45), inset 0 2px 0 rgba(255, 255, 255, .6); }
.pm-hero-art .ic { width: 54px; height: 54px; position: relative; z-index: 1; }
.pm-hero-glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 70, .45), transparent 65%);
  animation: pmGlow 2.6s ease-in-out infinite; }
@keyframes pmGlow { 50% { transform: scale(1.12); opacity: .6; } }
.pm-hero-title { position: relative; font-size: 26px; font-weight: 800; letter-spacing: -.3px;
  background: linear-gradient(180deg, #FFF3C4, #FFC23A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pm-hero-sub { position: relative; margin: 6px auto 0; max-width: 300px; font-size: var(--fs-13); line-height: 1.45; color: rgba(255, 255, 255, .76); }
.pm-hero-price { position: relative; display: inline-flex; align-items: baseline; gap: 6px; margin-top: 14px; padding: 8px 16px; border-radius: 999px;
  font-size: 22px; font-weight: 800; color: #FFD24D; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 214, 110, .35); }
.pm-hero-price small { font-size: var(--fs-13); font-weight: 700; color: rgba(255, 255, 255, .7); }
.pm-hero-status { position: relative; display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 8px 16px; border-radius: 999px;
  font-size: var(--fs-14); font-weight: 700; background: rgba(44, 194, 140, .16); box-shadow: inset 0 0 0 1px rgba(44, 194, 140, .45); }
.pm-hero-status b { color: #5BE3AE; }
.pm-hero-until { position: relative; margin-top: 8px; color: rgba(255, 255, 255, .6) !important; }
.pm-dot { width: 8px; height: 8px; border-radius: 50%; background: #2CC28C; box-shadow: 0 0 0 4px rgba(44, 194, 140, .25); }

/* ---- Power Hour ---- */
.pm-power-wrap { padding: 14px; }
.pm-power { display: flex; align-items: center; gap: 12px; }
.pm-power-ic { position: relative; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  color: var(--violet); background: var(--violet-soft); }
.pm-power-x { position: absolute; right: -6px; bottom: -6px; padding: 1px 5px; border-radius: 8px; font-size: 10px; font-weight: 800;
  color: #3D2600; background: var(--gold-grad); box-shadow: 0 0 0 2px var(--surface); }
.pm-power.on .pm-power-ic { color: #3D2600; background: var(--gold-grad); animation: pmPulse 1.4s ease-in-out infinite; }
@keyframes pmPulse { 50% { box-shadow: 0 0 0 7px rgba(245, 176, 20, .18); } }
.pm-power.locked .pm-power-ic { color: var(--ink-3); background: var(--bg-2); }
.pm-power-main { flex: 1; min-width: 0; }
.pm-power-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: var(--fs-15); }
.pm-power-sub { margin-top: 2px; line-height: 1.35; }
.pm-power-sub b { color: var(--ink); font-weight: 800; }
.pm-power-bar { height: 6px; margin-top: 8px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.pm-power-bar i { display: block; height: 100%; border-radius: 6px; background: var(--gold-grad); transition: width 1s linear; }
.pm-pips { display: inline-flex; gap: 3px; }
.pm-pips i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.pm-pips i.on { background: var(--pm-gold); box-shadow: 0 0 6px rgba(245, 176, 20, .6); }
.pm-lock { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.pm-refill { flex: 0 0 auto; }
.pm-power-sheet { text-align: center; }
.pm-power-hero { position: relative; width: 88px; height: 88px; margin: 4px auto 14px; border-radius: 26px; display: flex; align-items: center; justify-content: center;
  color: #3D2600; background: var(--gold-grad); box-shadow: 0 14px 30px rgba(245, 176, 20, .35); }
.pm-power-hero span { position: absolute; right: -10px; bottom: -8px; padding: 3px 8px; border-radius: 10px; font-weight: 800; font-size: 14px;
  color: #fff; background: var(--violet); box-shadow: 0 0 0 3px var(--surface); }

/* ---- perks / compare ---- */
.pm-perks { padding: 4px 14px; }
.pm-perk { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.pm-perk + .pm-perk { border-top: 1px solid var(--line-2); }
.pm-perks .row-sub, .pm-perks .row-title, .pm-passcard .row-sub { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; }
.pm-cmp { padding: 6px 14px; }
.pm-cmp-row { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; align-items: center; gap: 8px; padding: 11px 0; font-size: var(--fs-13); font-weight: 700; }
.pm-cmp-row + .pm-cmp-row { border-top: 1px solid var(--line-2); }
.pm-cmp-row > span:nth-child(2), .pm-cmp-row > span:nth-child(3) { text-align: center; }
.pm-cmp-row.head { font-size: var(--fs-12); color: var(--ink-3); padding-top: 8px; }
.pm-cmp-p { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex-direction: column; color: var(--gold-ink); font-weight: 800; }
.pm-cmp-row.head .pm-cmp-p { flex-direction: row; }
.pm-cmp-p small { font-size: var(--fs-11); font-weight: 700; color: var(--ink-3); }
.pm-no { display: inline-flex; color: var(--ink-4); }
.pm-gold { color: var(--gold-ink); }

.pm-passcard { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; border: 0; cursor: pointer; font: inherit; color: var(--ink); }
.pm-passcard-bar { height: 6px; margin: 7px 0 5px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.pm-passcard-bar i { display: block; height: 100%; border-radius: 6px; background: var(--brand-grad); }

.pm-buy .pm-buy-price, .ah-cta .pm-buy-price { margin-inline-start: auto; padding: 4px 10px; border-radius: 10px; font-size: var(--fs-14); background: rgba(255, 255, 255, .35); }
.pm-buy { justify-content: flex-start; padding: 0 12px 0 18px; }
#hpAll { justify-content: flex-start; padding: 0 12px 0 18px; }
.pm-badge { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 6px; padding: 2px 7px; border-radius: 999px; vertical-align: middle;
  font-size: 10px; font-weight: 800; letter-spacing: .3px; color: #3D2600; background: var(--gold-grad); box-shadow: 0 2px 6px rgba(245, 176, 20, .35); }
.pm-badge .ic { width: 11px; height: 11px; }
.pm-crown { display: inline-flex; color: var(--pm-gold); filter: drop-shadow(0 1px 2px rgba(180, 110, 0, .35)); }

/* ---- buy sheet ---- */
.pm-pay-crown { width: 58px; height: 58px; margin: 2px auto 10px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  color: #3D2600; background: var(--gold-grad); box-shadow: 0 10px 24px rgba(245, 176, 20, .35); }
.pm-pay-price { margin: 10px 0 2px; font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.pm-pay-price small { display: block; font-size: var(--fs-13); font-weight: 700; color: var(--ink-3); min-height: 16px; }
.pm-dur { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pm-dur-b { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 0; cursor: pointer; border-radius: 14px; font: inherit;
  color: var(--ink); background: var(--surface-2, var(--bg-2)); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s, background .2s, opacity .2s; }
.pm-dur-b b { font-size: var(--fs-14); font-weight: 800; }
.pm-dur-b.on { background: var(--gold-soft); box-shadow: inset 0 0 0 2px #F5A60F; }
.pm-dur-b:disabled { opacity: .4; cursor: default; }
.pm-pay-min { margin: -4px 0 12px; text-align: start; }
.pm-yay-crown { position: relative; z-index: 1; width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #3D2600; background: var(--gold-grad); box-shadow: 0 18px 40px rgba(245, 176, 20, .45), inset 0 3px 0 rgba(255, 255, 255, .6); }

/* ---- Hamo Pass page ---- */
.hp-body.has-cta { padding-bottom: 120px; }
.hp-head { position: relative; overflow: hidden; border-radius: 24px; padding: 18px; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, #5B3DF5 0%, #2346E8 45%, #12205E 100%); box-shadow: var(--shadow-brand); }
.hp-head::after { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.hp-head-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.hp-head-main { flex: 1; min-width: 0; }
.hp-head-title { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.hp-head-sub { margin-top: 3px; font-size: var(--fs-13); color: rgba(255, 255, 255, .75); }
.hp-tier-badge { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.hp-tier-badge .muted { color: rgba(255, 255, 255, .7) !important; font-size: 10px; font-weight: 700; }
.hp-tier-badge b { font-size: 26px; font-weight: 800; line-height: 1; }
.hp-xp-bar { position: relative; z-index: 1; height: 10px; margin: 16px 0 7px; border-radius: 10px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.hp-xp-bar i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, #FFE38A, #F5A60F); box-shadow: 0 0 12px rgba(255, 200, 60, .6); }
.hp-xp-row { position: relative; z-index: 1; display: flex; justify-content: space-between; font-size: var(--fs-12); font-weight: 700; color: rgba(255, 255, 255, .85); }

.hp-upsell { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px; border: 0; cursor: pointer; font: inherit; text-align: start;
  border-radius: var(--r-lg); color: var(--ink); background: linear-gradient(135deg, var(--gold-soft), var(--surface)); box-shadow: var(--shadow-1), inset 0 0 0 1.5px rgba(245, 166, 15, .5); }
.hp-upsell-ic { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #3D2600; background: var(--gold-grad); }
.hp-upsell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hp-upsell-main b { font-size: var(--fs-15); font-weight: 800; }
.hp-upsell-main span { font-size: var(--fs-12); color: var(--ink-2); line-height: 1.4; }

.hp-cols { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 8px; margin-bottom: 6px; font-size: var(--fs-12); font-weight: 800; color: var(--ink-3); text-align: center; }
.hp-cols .pm-gold { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.hp-track { display: grid; gap: 0; }
.hp-row { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 8px; align-items: stretch; }
.hp-node { position: relative; display: flex; align-items: center; justify-content: center; }
.hp-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--line-2); overflow: hidden; }
.hp-line > i { position: absolute; left: 0; top: 0; width: 100%; background: var(--brand); }
.hp-row:first-child .hp-line { top: 50%; }
.hp-row:last-child .hp-line { bottom: 50%; }
.hp-num { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-12); font-weight: 800; color: var(--ink-3); background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-2); }
.hp-row.reached .hp-num { color: #fff; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hp-row.next .hp-num { color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.hp-row.big .hp-num { width: 36px; height: 36px; font-size: var(--fs-13); }
.hp-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; margin: 5px 0; padding: 10px 6px; border: 0;
  cursor: pointer; font: inherit; border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-2);
  transition: transform .15s, box-shadow .2s, opacity .2s; }
.hp-cell:active { transform: scale(.97); }
.hp-cell b { font-size: var(--fs-14); font-weight: 800; }
.hp-row.big .hp-cell { padding: 14px 6px; }
.hp-row.big .hp-cell b { font-size: var(--fs-15); }
.hp-cell.premium { background: linear-gradient(180deg, rgba(255, 214, 110, .16), var(--surface)); box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(245, 166, 15, .35); }
.hp-cell.future { opacity: .55; }
.hp-cell.locked img.coin { filter: grayscale(.5); }
.hp-cell.claimed { opacity: .6; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--bg-2); }
.hp-cell.ready { box-shadow: 0 6px 18px rgba(47, 91, 255, .22), inset 0 0 0 2px var(--brand); animation: hpReady 1.8s ease-in-out infinite; }
.hp-cell.premium.ready { box-shadow: 0 6px 18px rgba(245, 166, 15, .3), inset 0 0 0 2px #F5A60F; }
@keyframes hpReady { 50% { transform: translateY(-2px); } }
.hp-cell.busy { pointer-events: none; opacity: .6; }
.hp-cell-cta { margin-top: 2px; padding: 2px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; color: #fff; background: var(--brand); }
.hp-cell.premium .hp-cell-cta { color: #3D2600; background: var(--gold-grad); }
.hp-mark { position: absolute; top: 6px; inset-inline-end: 6px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hp-mark.ok { color: #fff; background: var(--mint); }
.hp-mark.lock { color: var(--gold-ink); background: var(--gold-soft); }

.hp-how { padding: 4px 14px; }
.hp-how-sub { margin: -6px 0 10px; }
.hp-row.big .hp-cell img.coin { transform: scale(1.18); filter: drop-shadow(0 4px 8px rgba(245, 166, 15, .45)); }
.hp-row.big .hp-cell.premium { background: linear-gradient(180deg, rgba(255, 214, 110, .3), var(--surface)); }
.pm-power-title { flex-wrap: wrap; }
.hp-how-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.hp-how-row + .hp-how-row { border-top: 1px solid var(--line-2); }
.hp-how-cap { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.hp-how-bar { flex: 1; max-width: 110px; height: 5px; border-radius: 5px; background: var(--bg-2); overflow: hidden; }
.hp-how-bar i { display: block; height: 100%; border-radius: 5px; background: var(--mint); }

/* ---- home: Power Hour banner + Premium / Hamo Pass cards ---- */
.hm-power { margin-bottom: 12px; }
.hm-power .pm-power { padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-2); }
.hm-power .pm-power.on { background: linear-gradient(135deg, rgba(255, 214, 110, .22), var(--surface) 70%); box-shadow: 0 8px 22px -10px rgba(245, 176, 20, .55), inset 0 0 0 1.5px rgba(245, 166, 15, .6); }
.hm-power .pm-power.ready { box-shadow: var(--shadow-1), inset 0 0 0 1.5px rgba(124, 92, 255, .45); }
.hm-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.hm-duo-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 13px; border: 0; cursor: pointer;
  font: inherit; text-align: start; border-radius: var(--r-lg); color: var(--ink); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-2); }
.hm-duo-card:active { transform: scale(.98); }
.hm-duo-card.prem { color: #fff; background: radial-gradient(120% 120% at 0% 0%, #6A4A12 0%, #33220E 60%, #1E140B 100%);
  box-shadow: 0 10px 24px -12px rgba(120, 80, 10, .7), inset 0 0 0 1px rgba(255, 214, 110, .3); }
.hm-duo-card.pass { color: #fff; background: radial-gradient(120% 120% at 100% 0%, #5B3DF5 0%, #2346E8 55%, #12205E 100%); box-shadow: var(--shadow-brand); }
.hm-duo-ic { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.hm-duo-card.prem .hm-duo-ic { color: #3D2600; background: var(--gold-grad); }
.hm-duo-card.pass .hm-duo-ic { color: #fff; background: rgba(255, 255, 255, .18); }
.hm-duo-title { font-size: var(--fs-14); font-weight: 800; }
.hm-duo-sub { font-size: var(--fs-11); font-weight: 600; line-height: 1.35; opacity: .78; }
.hm-duo-bar { width: 100%; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.hm-duo-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #FFE38A, #F5A60F); }
.hm-duo-dot { position: absolute; top: 10px; inset-inline-end: 10px; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 800;
  color: #3D2600; background: var(--gold-grad); box-shadow: 0 2px 8px rgba(245, 176, 20, .5); animation: hpReady 1.8s ease-in-out infinite; }
.float-num.x2 { color: #F5A60F; }

/* tasks: Hamo Pass strip */
.tk-pass { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 12px; padding: 12px 14px; border: 0; cursor: pointer; font: inherit; text-align: start;
  border-radius: var(--r-lg); color: #fff; background: radial-gradient(120% 120% at 100% 0%, #5B3DF5 0%, #2346E8 55%, #12205E 100%); box-shadow: var(--shadow-brand); }
.tk-pass-ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .18); }
.tk-pass-main { flex: 1; min-width: 0; }
.tk-pass-main b { display: block; font-size: var(--fs-14); font-weight: 800; }
.tk-pass-main span { display: block; font-size: var(--fs-12); opacity: .8; }
.tk-pass-bar { height: 5px; margin-top: 6px; border-radius: 5px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.tk-pass-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #FFE38A, #F5A60F); }
.tk-pass .row-chev { color: rgba(255, 255, 255, .7); }

/* css/screens/loot.css */
/* Chests (market.js), the opening scene, the weekly tournament (tournament.js), the daily mission chain and the
 * Rewards-tab entry cards (earn.js), plus the mixed Hamo Pass reward cells. */

/* ---- chest art ---- */
.ch-art { display: block; overflow: visible; }
.ch-art .ch-lid { transform-box: fill-box; transform-origin: 0% 100%; transition: transform .5s cubic-bezier(.2, 1.6, .4, 1); }
.ch-art .ch-glow { opacity: .55; }
.ch-art.legendary .ch-glow, .ch-art.epic .ch-glow { opacity: .8; }
.ch-art .ch-spark { animation: chTwinkle 1.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes chTwinkle { 50% { opacity: .3; transform: scale(.7); } }
.ch-art.idle { animation: chBob 2.2s ease-in-out infinite; }
@keyframes chBob { 50% { transform: translateY(-6px); } }
.ch-art.shake { animation: chShake .22s linear infinite; }
@keyframes chShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg) translateX(-2px); } 75% { transform: rotate(4deg) translateX(2px); } }
.ch-art.opened .ch-lid { transform: translate(-6px, -26px) rotate(-28deg); }
.ch-art.opened .ch-lock { opacity: 0; transition: opacity .2s; }
.ch-art.opened .ch-glow { opacity: 1; animation: chGlow 1.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes chGlow { 50% { transform: scale(1.12); } }

.ch-rarity { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.ch-rarity.common { color: #8A4F1D; background: rgba(214, 140, 70, .16); }
.ch-rarity.rare { color: #2C6FC9; background: rgba(63, 140, 255, .14); }
.ch-rarity.epic { color: #7B3FC4; background: rgba(150, 90, 230, .15); }
.ch-rarity.legendary { color: #B7791F; background: linear-gradient(90deg, rgba(255, 214, 110, .3), rgba(245, 166, 15, .22)); }
[data-theme="dark"] .ch-rarity.common { color: #E7A867; }
[data-theme="dark"] .ch-rarity.rare { color: #7DB3FF; }
[data-theme="dark"] .ch-rarity.epic { color: #C49BFF; }
[data-theme="dark"] .ch-rarity.legendary { color: #FFD24D; }

/* ---- opening scene ---- */
.ch-scene { position: relative; text-align: center; padding: 6px 0 4px; }
.ch-rays { position: absolute; left: 50%; top: 110px; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 210, 90, .32) 0deg 8deg, transparent 8deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 65%); mask-image: radial-gradient(circle, #000 15%, transparent 65%);
  transition: opacity .4s; }
.ch-scene.rare .ch-rays { background: repeating-conic-gradient(from 0deg, rgba(120, 180, 255, .32) 0deg 8deg, transparent 8deg 20deg); }
.ch-scene.epic .ch-rays { background: repeating-conic-gradient(from 0deg, rgba(190, 120, 255, .35) 0deg 8deg, transparent 8deg 20deg); }
.ch-scene.burst .ch-rays { opacity: 1; animation: chSpin 9s linear infinite; }
.ch-scene.jackpot .ch-rays { animation-duration: 4s; }
@keyframes chSpin { to { transform: rotate(360deg); } }
.ch-stage { position: relative; display: flex; justify-content: center; min-height: 190px; cursor: pointer; }
.ch-name { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; font-size: var(--fs-17); font-weight: 800; }
.ch-hint { position: relative; margin-top: 8px; cursor: pointer; animation: chPulse 1.4s ease-in-out infinite; }
@keyframes chPulse { 50% { opacity: .45; } }
.ch-result { position: relative; margin-top: 10px; animation: chRise .5s var(--ease); }
@keyframes chRise { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.ch-amount { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 16px; font-size: 40px; font-weight: 800; letter-spacing: -.8px; color: var(--gold-ink); }
.ch-jackpot { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: var(--fs-13); font-weight: 800; letter-spacing: 1px; color: #3D2600;
  background: var(--gold-grad); box-shadow: 0 6px 18px rgba(245, 176, 20, .45); animation: chPulseBig 1s ease-in-out infinite; }
@keyframes chPulseBig { 50% { transform: scale(1.08); } }
.ch-btns { display: grid; gap: 8px; }

/* ---- market page ---- */
.ch-body { padding-bottom: 40px; }
.ch-inv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ch-inv-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 10px 4px 9px; border: 0; cursor: pointer; font: inherit;
  border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-2); }
.ch-inv-tile.empty { opacity: .45; cursor: default; }
.ch-inv-tile:not(.empty).legendary { box-shadow: 0 6px 18px rgba(245, 176, 20, .3), inset 0 0 0 1.5px rgba(245, 166, 15, .6); }
.ch-inv-n { position: absolute; top: 6px; inset-inline-end: 6px; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; background: var(--brand); }
.ch-inv-tile.empty .ch-inv-n { background: var(--ink-4); }
.ch-inv-name { font-size: var(--fs-11); font-weight: 700; color: var(--ink-2); }
.ch-inv-cta { margin-top: 2px; padding: 3px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; color: #3D2600; background: var(--gold-grad); }
.ch-market { display: grid; gap: 10px; }
.ch-left { margin: -6px 0 10px; }
.ch-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-2); }
.ch-item.legendary { background: linear-gradient(135deg, rgba(255, 214, 110, .2), var(--surface) 60%); box-shadow: var(--shadow-1), inset 0 0 0 1.5px rgba(245, 166, 15, .5); }
.ch-item.epic { background: linear-gradient(135deg, rgba(150, 90, 230, .1), var(--surface) 60%); }
.ch-item-art { flex: 0 0 auto; }
.ch-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.ch-item-name { font-size: var(--fs-15); font-weight: 800; }
.ch-item-range { font-size: var(--fs-12); font-weight: 700; color: var(--ink-2); }
.ch-item-odds { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: var(--fs-11); font-weight: 700; color: var(--brand); }
.ch-item-buy { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.ch-item-buy .btn { min-width: 84px; gap: 5px; padding: 0 10px; }
.ch-stars { color: #8A5A00; background: rgba(255, 194, 51, .18); box-shadow: inset 0 0 0 1px rgba(245, 166, 15, .45); }
.ch-buy, .ch-odds { text-align: center; }
.ch-buy-art { display: flex; justify-content: center; margin: 0 0 8px; }
.ch-buy .btn { gap: 6px; }
.ch-odds-list { display: grid; gap: 8px; margin-top: 14px; text-align: start; }
.ch-odds-row { display: grid; grid-template-columns: 110px 1fr 48px; align-items: center; gap: 10px; font-size: var(--fs-13); font-weight: 700; }
.ch-odds-row > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.ch-odds-row b { text-align: end; }
.ch-odds-bar { height: 8px; border-radius: 8px; background: var(--bg-2); overflow: hidden; }
.ch-odds-bar i { display: block; height: 100%; border-radius: 8px; background: var(--brand); }
.ch-odds-row.hi .ch-odds-bar i { background: var(--gold-grad); }
.ch-recent { padding: 4px 14px; }
.ch-recent-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.ch-recent-row + .ch-recent-row { border-top: 1px solid var(--line-2); }

/* ---- Rewards tab: mission chain + entry cards ---- */
.ms-card { padding: 16px; }
.ms-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ms-h-title { font-size: var(--fs-17); font-weight: 800; }
.ms-reset { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.ms-chain { position: relative; display: grid; gap: 4px; }
.ms-chain::before { content: ''; position: absolute; top: 22px; bottom: 30px; inset-inline-start: 19px; width: 3px; border-radius: 3px; background: var(--line-2); }
.ms-step { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.ms-node { position: relative; z-index: 1; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-2); }
.ms-step.active .ms-node { color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.ms-step.ready .ms-node { color: #3D2600; background: var(--gold-grad); box-shadow: 0 0 0 4px rgba(245, 176, 20, .2); animation: pmPulse 1.4s ease-in-out infinite; }
.ms-step.done .ms-node { color: #fff; background: var(--mint); box-shadow: none; }
.ms-node.ms-chest { background: none; box-shadow: none; width: 40px; }
.ms-step.chest.locked .ms-chest { filter: grayscale(.6); opacity: .6; }
.ms-main { flex: 1; min-width: 0; }
.ms-title { font-size: var(--fs-14); font-weight: 700; }
.ms-step.locked .ms-title { color: var(--ink-3); }
.ms-bar { height: 6px; margin: 6px 0 3px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.ms-bar i { display: block; height: 100%; border-radius: 6px; background: var(--brand-grad); transition: width .4s; }
.ms-step.ready .ms-bar i { background: var(--gold-grad); }
.ms-reward { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; font-size: var(--fs-13); font-weight: 800; color: var(--gold-ink); }
.ms-check { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--mint); background: var(--mint-soft); }

.er-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.er-duo-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 12px 13px 13px; border: 0; cursor: pointer;
  font: inherit; text-align: start; border-radius: var(--r-lg); color: #fff; overflow: hidden; }
.er-duo-card:active { transform: scale(.98); }
.er-duo-card.tour { background: radial-gradient(120% 120% at 0% 0%, #0EA5E9 0%, #2346E8 55%, #15206A 100%); box-shadow: var(--shadow-brand); }
.er-duo-card.shop { background: radial-gradient(120% 120% at 100% 0%, #8044BE 0%, #4C2770 55%, #241038 100%); box-shadow: 0 10px 24px -12px rgba(100, 40, 160, .7); }
.er-duo-art { height: 50px; display: flex; align-items: flex-end; }
.er-duo-title { font-size: var(--fs-14); font-weight: 800; }
.er-duo-sub { font-size: var(--fs-11); font-weight: 600; opacity: .8; line-height: 1.35; }
.er-duo-dot { position: absolute; top: 10px; inset-inline-end: 10px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #3D2600; background: var(--gold-grad); }

/* ---- tournament page ---- */
.tr-body { padding-bottom: 40px; }
.tr-hero { padding: 18px; }
.tr-hero-top { position: relative; display: flex; align-items: center; gap: 14px; }
.tr-badge { flex: 0 0 auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .3)); }
.tr-hero-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.tr-title { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.tr-league { font-size: var(--fs-13); font-weight: 700; opacity: .85; }
.tr-ends { margin-top: 4px; display: inline-flex; align-items: center; gap: 5px; }
.tr-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.tr-stats > div { padding: 10px 6px; border-radius: 14px; text-align: center; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.tr-stats span { display: block; font-size: var(--fs-11); font-weight: 700; opacity: .75; }
.tr-stats b { display: block; margin-top: 2px; font-size: var(--fs-17); font-weight: 800; }
.tr-status { position: relative; display: flex; align-items: center; gap: 7px; margin-top: 12px; padding: 9px 12px; border-radius: 12px; font-size: var(--fs-13); font-weight: 700;
  background: rgba(255, 255, 255, .12); }
.tr-status.good { color: #3D2600; background: var(--gold-grad); }
.tr-prizes { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; }
.tr-prize { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-2); }
.tr-prize.first { padding-top: 16px; background: linear-gradient(180deg, rgba(255, 214, 110, .25), var(--surface)); box-shadow: 0 10px 24px -12px rgba(245, 176, 20, .6), inset 0 0 0 1.5px rgba(245, 166, 15, .55); }
.tr-prize-rank { font-size: var(--fs-15); font-weight: 800; color: var(--ink-3); }
.tr-prize.first .tr-prize-rank { color: var(--gold-ink); font-size: var(--fs-17); }
.tr-prize b { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-14); font-weight: 800; }
.tr-prize-chest { font-size: var(--fs-11); font-weight: 700; color: var(--ink-3); }
.tr-rest { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 14px; }
.tr-rest-rank { font-weight: 800; color: var(--ink-3); min-width: 44px; }
.tr-rest b { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--gold-ink); }
.tr-row { gap: 10px; }
.tr-rank { width: 26px; flex: 0 0 auto; text-align: center; font-weight: 800; color: var(--ink-3); }
.tr-row.top1 .tr-rank { color: #E0A100; } .tr-row.top2 .tr-rank { color: #8C9BB0; } .tr-row.top3 .tr-rank { color: #C27A3A; }
.tr-row.me { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.tr-row-prize { flex: 0 0 auto; }
.tr-rules { display: flex; gap: 12px; align-items: flex-start; }
.tr-rules .row-sub { white-space: normal; line-height: 1.5; }
.tr-last-art { position: relative; z-index: 1; }

/* ---- Hamo Pass: mixed reward cells ---- */
.hp-rw-art { display: flex; justify-content: center; height: 40px; align-items: center; }
.hp-rw-label { font-size: var(--fs-12) !important; font-weight: 800; }
.hp-rw-sub { font-size: 10px; font-weight: 700; color: var(--ink-3); margin-top: -2px; }
.hp-rw-boost { position: relative; width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.hp-rw-boost.power { color: #3D2600; background: var(--gold-grad); }
.hp-rw-boost.energy { color: #fff; background: linear-gradient(135deg, #2CC28C, #0E9F6E); }
.hp-rw-boost i { position: absolute; right: -7px; bottom: -6px; padding: 0 4px; border-radius: 6px; font-style: normal; font-size: 9px; font-weight: 800; color: #fff; background: var(--violet); box-shadow: 0 0 0 2px var(--surface); }
.hp-skip { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: var(--fs-11) !important; font-weight: 800; color: var(--gold-ink) !important; }
.pm-yay-skip { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 16px; padding: 7px 14px; border-radius: 999px; font-size: var(--fs-13); font-weight: 800;
  color: var(--brand); background: var(--brand-soft); }
.hm-boosted { color: #fff !important; background: linear-gradient(135deg, #2CC28C, #0E9F6E) !important; }

/* css/screens/live.css */
/* Live features: event banners, inbox page, newcomer pack, streak save (js/screens/live.js) */

/* header bell */
#hInbox { position: relative; }
#hInbox .dot { top: 2px; inset-inline-end: -2px; }

/* ── event banners ── */
.lv-banners { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 2px; }
.lv-banners[hidden] { display: none; }
.lv-banner { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: var(--r-lg);
  text-align: start; color: #fff; background: linear-gradient(120deg, #5B3DF5 0%, #2F5BFF 60%, #0EA5E9 120%); box-shadow: 0 10px 26px rgba(91, 61, 245, .28);
  overflow: hidden; cursor: pointer; font: inherit; }
.lv-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-100%); animation: lv-shine 3.6s var(--ease) infinite; pointer-events: none; }
.lv-banner:not(.live) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.lv-banner:not(.live)::after { display: none; }
.lv-banner.taps.live { background: linear-gradient(120deg, #F59E0B 0%, #E08A00 55%, #E5484D 130%); box-shadow: 0 10px 26px rgba(224, 138, 0, .3); }
.lv-banner.chest_sale.live { background: linear-gradient(120deg, #0E9F6E 0%, #0EA5E9 120%); box-shadow: 0 10px 26px rgba(14, 159, 110, .28); }
.lv-banner:active { transform: scale(.985); }
.lv-banner-ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .2); }
.lv-banner:not(.live) .lv-banner-ic { background: var(--violet-soft); color: var(--violet); }
.lv-banner-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lv-banner-main b { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.lv-banner-main span { font-size: 12px; opacity: .88; line-height: 1.35; }
.lv-banner-time { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12px; font-weight: 700; }
.lv-banner-time i { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .6px; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .22); }
.lv-banner:not(.live) .lv-banner-time i { background: var(--violet-soft); color: var(--violet); }
@keyframes lv-shine { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.lv-chip { display: inline-flex; align-items: center; gap: 5px; margin: 10px 0 0; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800;
  color: var(--violet); background: var(--violet-soft); }

/* ── inbox ── */
.lv-in-list { display: flex; flex-direction: column; gap: 8px; }
.lv-in { display: flex; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); cursor: pointer; }
.lv-in.new { box-shadow: inset 3px 0 0 var(--brand), var(--shadow-1); }
[dir="rtl"] .lv-in.new { box-shadow: inset -3px 0 0 var(--brand), var(--shadow-1); }
.lv-in .ic-tile { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; }
.lv-in-main { flex: 1; min-width: 0; }
.lv-in-top { display: flex; align-items: center; gap: 6px; }
.lv-in-top b { font-size: 14px; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-in-new { font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: var(--brand); padding: 1px 6px; border-radius: 99px; flex: 0 0 auto; }
.lv-in-ago { margin-inline-start: auto; flex: 0 0 auto; }
.lv-in-body { margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.lv-in-body.cast { white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.lv-in-photo { display: block; width: 100%; max-height: 220px; object-fit: cover; margin-top: 10px; border-radius: 12px; background: var(--bg-2); }
.lv-in-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lv-in-foot { margin-top: 8px; }
.lv-in-empty { padding: 30px 16px; }

/* ── newcomer pack ── */
.lv-nb { padding: 16px; margin-top: 12px; border: 1.5px solid rgba(245, 176, 20, .35);
  background: linear-gradient(180deg, rgba(245, 176, 20, .10), transparent 120px), var(--surface); }
.lv-nb-head { display: flex; align-items: center; gap: 12px; }
.lv-nb-badge { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: #3D2600; background: var(--gold-grad); box-shadow: 0 8px 18px rgba(245, 176, 20, .35); }
.lv-nb-h { flex: 1; min-width: 0; }
.lv-nb-htitle { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.lv-nb-head .pill { flex: 0 0 auto; }
.lv-nb-prog { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; }
.lv-nb-prog .progress { flex: 1; }
.lv-nb-steps { display: flex; flex-direction: column; }
.lv-nb-step, .lv-nb-final { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.lv-nb-ic { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--brand); background: var(--brand-soft); }
.lv-nb-step.ready .lv-nb-ic { color: var(--gold-ink); background: var(--gold-soft); }
.lv-nb-step.done .lv-nb-ic { color: var(--mint); background: var(--mint-soft); }
.lv-nb-step.done .lv-nb-title { color: var(--ink-3); text-decoration: line-through; }
.lv-nb-main { flex: 1; min-width: 0; }
.lv-nb-title { font-size: 14px; font-weight: 700; }
.lv-nb-rw { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; margin-top: 2px; font-size: 12px; font-weight: 800; color: var(--gold-ink); }
[dir="rtl"] .lv-nb-rw { justify-content: flex-end; }
.lv-nb-chest { display: inline-flex; vertical-align: middle; }
.lv-nb-final { margin-top: 2px; }
.lv-nb-fart { width: 46px; height: 46px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.lv-nb-final:not(.ready) .lv-nb-fart { filter: grayscale(.6); opacity: .7; }
.lv-nb-lock { color: var(--ink-4); padding: 0 8px; }
.lv-nb .btn.sm { flex: 0 0 auto; }

/* ── streak save ── */
.lv-sv { margin-top: 14px; padding: 14px; border-radius: var(--r-md); background: linear-gradient(135deg, rgba(229, 72, 77, .10), rgba(245, 158, 11, .12));
  border: 1px solid rgba(229, 72, 77, .18); }
.lv-sv-top { display: flex; gap: 12px; align-items: center; }
.lv-sv-ic { position: relative; width: 50px; height: 50px; flex: 0 0 auto; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, #F59E0B, #E5484D); box-shadow: 0 8px 18px rgba(229, 72, 77, .3); }
.lv-sv-ic b { position: absolute; bottom: -6px; inset-inline-end: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; font-size: 12px;
  line-height: 22px; text-align: center; background: var(--surface); color: var(--coral); box-shadow: var(--shadow-2); }
.lv-sv-title { font-size: 15px; font-weight: 800; }
.lv-sv-btns { display: flex; gap: 8px; margin-top: 12px; }
.lv-sv-btns .btn { flex: 1; }
.lv-sv-btns .btn.ch-stars { flex: 0 0 auto; padding-inline: 16px; }
.lv-sv-note { margin-top: 8px; line-height: 1.4; }

/* ── chest sale ── */
.lv-sale { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 5px 11px; border-radius: 99px; font-size: 12px;
  color: #fff; background: linear-gradient(120deg, #0E9F6E, #0EA5E9); }
.ch-was { display: block; font-size: 11px; color: var(--ink-3); text-align: center; margin-bottom: 2px; }

/* header with the bell: tighter so name + league never wrap */
.header { gap: 8px; }
.h-btn { width: 36px; height: 36px; }
.h-league { display: flex; max-width: 100%; white-space: nowrap; }
.h-league span { overflow: hidden; text-overflow: ellipsis; }
.h-balance { height: 38px; padding: 0 12px 0 5px; }
@media (max-width: 374px) { #hBoard { display: none; } }

/* compact banners: one line of description */
.lv-banner { padding: 10px 12px; }
.lv-banner-ic { width: 36px; height: 36px; border-radius: 12px; }
.lv-banner-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-banner-time span { white-space: nowrap; }

/* css/screens/profile.css */
/* Profile page (js/screens/profile.js) */
.pf-id { padding: 18px 16px 16px; border-radius: var(--r-xl); }
.pf-glow { position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); }
.pf-id-top { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.pf-av-wrap { position: relative; flex: 0 0 auto; }
.pf-av-wrap .avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 10px 24px rgba(10, 14, 39, .28); }
.pf-av-badge { position: absolute; bottom: -6px; inset-inline-end: -8px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.pf-id-main { min-width: 0; flex: 1; }
.pf-name { font-size: var(--fs-20); font-weight: 800; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.pf-handle { margin-top: 1px; color: rgba(255, 255, 255, .75) !important; }
.pf-uid { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 0; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: #fff; font-size: var(--fs-12); font-weight: 700; cursor: pointer; }
.pf-uid:active { transform: scale(.96); }
.pf-uid .ic { color: rgba(255, 255, 255, .8); }
.pf-league { margin-top: 16px; position: relative; z-index: 1; padding: 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.pf-league-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.pf-league-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: var(--fs-14); white-space: nowrap; color: #fff; }
.pf-lv { color: rgba(255, 255, 255, .7); font-weight: 700; }
.pf-league-next { text-align: end; color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-league-next b { color: #fff; font-weight: 800; }

.pf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-stat { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 12px; min-height: 70px; display: flex; align-items: center; gap: 11px;
  min-width: 0; animation: pfIn .4s var(--ease) both; }
.pf-stat:nth-child(2) { animation-delay: .03s } .pf-stat:nth-child(3) { animation-delay: .06s } .pf-stat:nth-child(4) { animation-delay: .09s }
.pf-stat:nth-child(5) { animation-delay: .12s } .pf-stat:nth-child(6) { animation-delay: .15s } .pf-stat:nth-child(7) { animation-delay: .18s }
@keyframes pfIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
.pf-stat .ic-tile { width: 42px; height: 42px; border-radius: 13px; }
.pf-stat-main { min-width: 0; flex: 1; }
.pf-stat-val { font-size: var(--fs-17); font-weight: 800; letter-spacing: -.3px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-stat-val .amt { font-size: var(--fs-17); }
.pf-stat-val .amt .coin { width: 16px; height: 16px; }
.pf-of { font-size: var(--fs-13); color: var(--ink-3); font-weight: 700; }
.pf-stat-lbl { font-size: var(--fs-12); font-weight: 700; color: var(--ink-3); line-height: 1.3; margin-top: 2px; }
.pf-stat-sub { color: var(--mint); font-weight: 800; }
.pf-stat-wide { grid-column: 1 / -1; }
.pf-wide-main { flex: 1; min-width: 0; }
.pf-sk { height: 70px; border-radius: var(--r-lg); }

.pf-gap { margin-top: 22px; }
.pf-row-val { font-weight: 700; }
.pf-theme-row .seg { flex: 0 0 auto; padding: 3px; gap: 2px; border-radius: 12px; }
.pf-seg button { width: 40px; height: 32px; flex: 0 0 auto; border-radius: 9px; }

.pf-switch-row { cursor: pointer; }
.pf-switch { position: relative; flex: 0 0 auto; width: 50px; height: 30px; }
.pf-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.pf-switch i { position: absolute; inset: 0; border-radius: 15px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .25s var(--ease), box-shadow .25s; }
.pf-switch i::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .22); transition: transform .3s var(--ease); }
.pf-switch input:checked + i { background: var(--mint); box-shadow: none; }
.pf-switch input:checked + i::after { transform: translateX(20px); }
[dir="rtl"] .pf-switch input:checked + i::after { transform: translateX(-20px); }
.pf-switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--brand-soft); }

.pf-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 0 8px; }
.pf-foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: var(--fs-15); }
.pf-foot-brand svg { border-radius: 9px; }

.pf-langs { box-shadow: none; border: 1px solid var(--line); }
.pf-lang-code { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: var(--fs-12); letter-spacing: .3px; }
.pf-check { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; }
.pf-check .ic { stroke-width: 2.6; }
.pf-busy { opacity: .5; pointer-events: none; }

.pf-terms { padding-top: 4px; }
.pf-term { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; }
.pf-term + .pf-term { border-top: 1px solid var(--line); }
.pf-term-n { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: var(--fs-12);
  display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.pf-term p { margin: 0; font-size: var(--fs-14); color: var(--ink-2); line-height: 1.55; }

/* withdrawal status pill */
.pf-wd-sk { display: inline-block; width: 64px; height: 22px; border-radius: 11px; vertical-align: middle; }
.pf-wd-pill { max-width: 150px; }
.pf-wd-pill span { overflow: hidden; text-overflow: ellipsis; }

/* rows on the profile may wrap their subtitle instead of truncating */
.page[data-page="profile"] .row-sub { white-space: normal; overflow: visible; line-height: 1.35; }
.page[data-page="profile"] .row { min-height: 60px; }

/* css/screens/onboarding.css */
/* Onboarding — prefix ob- */
.ob-page { animation: obFade .35s var(--ease) both; }
.ob-page.out { animation: obFadeOut .3s var(--ease) both; }
@keyframes obFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes obFadeOut { to { opacity: 0; transform: scale(1.02) } }
.ob-page .page-body { overflow: hidden; display: flex; }

.ob { flex: 1; display: flex; flex-direction: column; min-height: 100%; overflow: hidden;
  background: radial-gradient(120% 60% at 50% 0%, var(--brand-soft) 0%, transparent 60%), var(--bg); }
.ob-top { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter) 0; }
.ob-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: var(--fs-17); letter-spacing: -.3px; }
.ob-skip { border: 0; background: var(--surface); box-shadow: var(--shadow-1); height: 34px; padding: 0 14px; border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--fs-13); color: var(--ink-2); cursor: pointer; }

.ob-track { flex: 1; display: flex; transition: transform .5s var(--ease); will-change: transform; }
.ob-slide { flex: 0 0 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 28px; }
.ob-text { text-align: center; max-width: 340px; margin-top: 8px; opacity: 0; transform: translateY(14px); transition: opacity .5s .1s var(--ease), transform .5s .1s var(--ease); }
.ob-slide.on .ob-text { opacity: 1; transform: none; }
.ob-step { margin-bottom: 12px; }
.ob-text h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.6px; line-height: 1.2; }
.ob-text p { margin: 10px 0 0; color: var(--ink-3); font-size: var(--fs-15); line-height: 1.55; font-weight: 600; }

.ob-foot { padding: 16px var(--gutter) calc(var(--safe-bot) + 18px); }
.ob-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.ob-dots i { width: 7px; height: 7px; border-radius: 7px; background: var(--ink-4); opacity: .5; cursor: pointer; transition: width .35s var(--ease), background .35s, opacity .35s; }
.ob-dots i.on { width: 24px; background: var(--brand); opacity: 1; }
[dir="rtl"] .ob-arrow { transform: scaleX(-1); }
.ob-legal { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-weight: 600; }

/* Art stages */
.ob-art { position: relative; width: 300px; height: 300px; flex: 0 0 auto; }
.ob-glow { position: absolute; inset: 20px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 176, 20, .30), transparent 65%); filter: blur(6px); }
.ob-glow.violet { background: radial-gradient(circle, rgba(124, 92, 255, .26), transparent 65%); }
.ob-glow.mint { background: radial-gradient(circle, rgba(14, 159, 110, .24), transparent 65%); }
.ob-slide .ob-art > *:not(.ob-glow) { opacity: 0; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.ob-slide.on .ob-art > * { opacity: 1; }

/* 1: tap */
.ob-orbit { position: absolute; inset: 40px; border-radius: 50%; border: 1.5px dashed rgba(245, 176, 20, .4); animation: obSpin 30s linear infinite; }
.ob-coin { position: absolute; left: 65px; top: 65px; width: 170px; height: 170px; filter: drop-shadow(0 16px 24px rgba(196, 120, 0, .35)); animation: obBob 2.4s ease-in-out infinite; }
.ob-chip { position: absolute; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow-2); font-weight: 800; color: var(--gold-ink); font-size: var(--fs-15); direction: ltr; unicode-bidi: isolate; }
.ob-chip.c1 { top: 38px; left: 26px; animation: obChip 2.4s ease-in-out infinite; }
.ob-chip.c2 { top: 70px; right: 14px; animation: obChip 2.4s .8s ease-in-out infinite; }
.ob-chip.c3 { bottom: 52px; left: 18px; animation: obChip 2.4s 1.6s ease-in-out infinite; }
.ob-finger { position: absolute; right: 52px; bottom: 44px; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-brand); animation: obPress 1.2s ease-in-out infinite; }
@keyframes obSpin { to { transform: rotate(360deg) } }
@keyframes obBob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@keyframes obChip { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes obPress { 0%, 100% { transform: scale(1) } 45% { transform: scale(.86) translate(-4px, -4px) } }

/* 2: earn */
.ob-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow-3); font-size: var(--fs-14); white-space: nowrap; }
.ob-card b { font-weight: 800; }
.ob-amt { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 6px; font-weight: 800; font-size: var(--fs-13); color: var(--gold-ink); }
.ob-card-a { top: 36px; left: 4px; transform: rotate(-3deg); }
.ob-card-b { top: 112px; right: 0; transform: rotate(2deg); }
.ob-card-c { top: 188px; left: 18px; transform: rotate(-1.5deg); }
.ob-slide:not(.on) .ob-card-a { transform: translateX(-30px) rotate(-3deg); }
.ob-slide:not(.on) .ob-card-b { transform: translateX(30px) rotate(2deg); }
.ob-slide:not(.on) .ob-card-c { transform: translateX(-30px) rotate(-1.5deg); }
.ob-badges { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.ob-badges .league { filter: drop-shadow(0 6px 10px rgba(15, 23, 42, .18)); }
.ob-badges .league:nth-child(2) { transform: translateY(-8px) scale(1.15); }

/* 3: payout */
.ob-req { position: absolute; left: 34px; right: 34px; top: 48px; padding: 12px 14px 8px; border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  transition: transform .5s var(--ease); }
.ob-req-head { display: flex; align-items: center; gap: 6px; font-size: var(--fs-13); margin-bottom: 4px; color: var(--ink); }
.ob-req-head b { flex: 1; }
.ob-req-head .ic { color: var(--brand); }
.ob-req-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: var(--fs-12); font-weight: 700; color: var(--ink-2); }
.ob-req-row + .ob-req-row { border-top: 1px solid var(--line); }
.ob-req-ic { width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-2); color: var(--ink-3); }
.ob-req-row.ok .ob-req-ic { background: var(--mint-soft); color: var(--mint); }
.ob-req-lbl { flex: 1; min-width: 0; text-align: start; }
.ob-req-st { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.ob-req-row.ok .ob-req-st { background: var(--mint); color: #fff; box-shadow: none; }
.ob-net { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; font-size: var(--fs-12); color: var(--ink-2); }
.ob-art-pay .ob-net { flex-direction: row; gap: 8px; }
.ob-net svg { border-radius: 50%; box-shadow: var(--shadow-3), 0 0 0 4px var(--surface); }
.ob-net.n1 { left: 38px; top: -10px; animation: obBob 3s ease-in-out infinite; }
.ob-net.n2 { right: 38px; top: -10px; animation: obBob 3s 1s ease-in-out infinite; }
.ob-slide:not(.on) .ob-req { transform: translateY(20px) scale(.95); }

@media (max-height: 700px) {
  .ob-art { transform: scale(.82); margin: -27px 0; }
  .ob-text h2 { font-size: 22px; }
}

/* css/screens/support.css */
/* Live support chat (sp-) and minimized pill (sw-) */
.page.sp-page { background: var(--bg); }
.page-body.sp-body { display: flex; flex-direction: column; padding: 0; overflow: hidden; }

.sp-head { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px var(--gutter) 10px; background: var(--surface);
  box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(15, 23, 42, .04); position: relative; z-index: 2; }
.sp-agent { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.sp-agent-av { position: relative; width: 40px; height: 40px; flex: 0 0 auto; }
.sp-agent-av svg { border-radius: 12px; display: block; }
.sp-dot, .sw-dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-4);
  box-shadow: 0 0 0 2.5px var(--surface); transition: background .3s; }
.sp-dot.on, .sw-dot.on { background: #22C55E; }
.sp-dot.on::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #22C55E; animation: spPing 1.8s ease-out infinite; }
@keyframes spPing { 0% { transform: scale(1); opacity: .7 } 100% { transform: scale(2.4); opacity: 0 } }
.sp-agent-name { font-weight: 800; font-size: var(--fs-15); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-agent-st { font-size: var(--fs-12); color: var(--ink-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sp-scroll { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px var(--gutter) 12px; overscroll-behavior: contain; }

.sp-intro { text-align: center; padding: 8px 4px 6px; }
.sp-intro-art { display: inline-flex; margin-bottom: 8px; filter: drop-shadow(0 8px 18px rgba(47, 91, 255, .25)); }
.sp-intro-art svg { border-radius: 16px; }
.sp-intro .muted { margin-top: 2px; }
.sp-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 12px; }
.sp-topics .chip .ic { color: var(--brand); }
.sp-faq { text-align: start; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); margin-bottom: 14px; overflow: hidden; }
.sp-faq summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 13px 14px; font-weight: 800; font-size: var(--fs-14); cursor: pointer; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary .ic { color: var(--brand); }
.sp-faq summary span { flex: 1; }
.sp-faq .sp-faq-chev { color: var(--ink-3); transition: transform .25s var(--ease); }
.sp-faq[open] .sp-faq-chev { transform: rotate(180deg); }
.sp-faq-i { padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.sp-faq-i b { display: block; font-size: var(--fs-13); font-weight: 800; }
.sp-faq-i p { margin: 4px 0 0; font-size: var(--fs-13); color: var(--ink-2); line-height: 1.5; }

.sp-day { display: flex; justify-content: center; margin: 14px 0 8px; }
.sp-day span { font-size: var(--fs-11); font-weight: 800; color: var(--ink-3); background: var(--bg-2); padding: 4px 10px; border-radius: var(--r-pill); text-transform: uppercase; letter-spacing: .4px; }

.sp-msg { display: flex; align-items: flex-end; gap: 8px; margin-top: 3px; animation: spIn .28s var(--ease) both; }
.sp-msg.first { margin-top: 10px; }
.sp-msg.me { justify-content: flex-end; }
@keyframes spIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.sp-av { width: 30px; flex: 0 0 30px; align-self: flex-end; }
.sp-av svg { border-radius: 10px; display: block; }
.sp-bub { max-width: 78%; padding: 9px 12px 6px; border-radius: 18px; font-size: var(--fs-14); line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere;
  -webkit-user-select: text; user-select: text; }
.sp-msg.them .sp-bub { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); border-end-start-radius: 6px; }
.sp-msg.me .sp-bub { background: var(--brand-grad); color: #fff; border-end-end-radius: 6px; box-shadow: 0 6px 16px rgba(47, 91, 255, .22); }
.sp-who { font-size: var(--fs-12); font-weight: 800; color: var(--brand); margin-bottom: 2px; }
.sp-txt a { color: inherit; text-decoration: underline; }
.sp-meta { display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-size: 10.5px; font-weight: 700; margin-top: 2px; opacity: .6; }
.sp-msg.me .sp-meta { opacity: .8; }
.sp-msg.pending .sp-bub { opacity: .75; }
.sp-msg.failed .sp-bub { background: var(--coral); box-shadow: none; }

.sp-composer { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 8px; padding: 10px var(--gutter) calc(var(--safe-bot) + 10px);
  background: var(--surface); box-shadow: 0 -1px 0 var(--line); }
.sp-composer textarea { flex: 1; min-height: 44px; max-height: 128px; resize: none; border: 0; outline: 0; border-radius: 22px; padding: 11px 16px;
  background: var(--bg-2); font-weight: 600; font-size: var(--fs-15); line-height: 1.4; }
.sp-composer textarea:focus { box-shadow: inset 0 0 0 2px var(--brand); }
.sp-send { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 50%; background: var(--brand-grad); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; box-shadow: var(--shadow-brand); cursor: pointer; transition: transform .12s, opacity .2s; }
.sp-send:active { transform: scale(.92); }
.sp-send[disabled] { opacity: .5; }
[dir="rtl"] .sp-send .ic { transform: scaleX(-1); }

/* Minimized pill — draggable, sits between header and floating nav */
.sw { position: fixed; left: 0; top: 0; z-index: 90; width: 204px; height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 8px;
  background: var(--surface); border-radius: 18px; box-shadow: 0 12px 32px rgba(15, 23, 42, .22), inset 0 0 0 1px var(--line);
  touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; animation: swIn .32s var(--ease) both; will-change: transform; }
.sw.dragging { cursor: grabbing; box-shadow: 0 18px 40px rgba(15, 23, 42, .3), inset 0 0 0 1px var(--line); }
@keyframes swIn { from { opacity: 0; scale: .8 } to { opacity: 1; scale: 1 } }
.sw-logo { position: relative; width: 32px; height: 32px; flex: 0 0 auto; pointer-events: none; }
.sw-logo svg, .sw-logo img { border-radius: 10px; display: block; }
.sw-logo img { border-radius: 50%; }
.sw-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; pointer-events: none; }
.sw-txt b { font-size: var(--fs-13); font-weight: 800; line-height: 1.2; }
.sw-sub { font-size: 11px; font-weight: 700; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-sub.hot { color: var(--coral); }
.sw-badge { position: absolute; top: -6px; inset-inline-start: 26px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral);
  color: #fff; font-size: 10px; font-weight: 800; line-height: 18px; text-align: center; font-style: normal; box-shadow: 0 0 0 2px var(--surface);
  animation: swPop .4s var(--ease) both; }
@keyframes swPop { 0% { scale: .3 } 70% { scale: 1.15 } 100% { scale: 1 } }
.sw-btn { width: 30px; height: 30px; flex: 0 0 auto; border: 0; border-radius: 10px; background: none; color: var(--ink-2); display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer; }
.sw-btn:active { background: var(--bg-2); }

/* Header support button + unread dot */
.h-btn .dot { top: 2px; inset-inline-end: 2px; }

/* css/screens/advertise.css */
/* Advertise page (ad-) */
.ad-hero { padding: 22px 18px; text-align: start; }
.ad-hero-ic { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); margin-bottom: 12px; position: relative; z-index: 1; }
.ad-hero h2 { color: #fff; position: relative; z-index: 1; }
.ad-hero p { margin: 6px 0 0; color: rgba(255, 255, 255, .8); font-size: var(--fs-14); line-height: 1.5; position: relative; z-index: 1; }

.ad-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ad-stat { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 12px; min-width: 0; }
.ad-stat div { min-width: 0; display: flex; flex-direction: column; }
.ad-stat b { font-size: var(--fs-17); font-weight: 800; }
.ad-stat span:not(.ic-tile) { font-size: var(--fs-12); color: var(--ink-3); font-weight: 700; line-height: 1.25; }
.ad-langs { margin-top: 10px; padding: 14px; }
.ad-langs-h { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: var(--fs-13); margin-bottom: 8px; }
.ad-langs-h .ic { color: var(--brand); }
.ad-lang { display: grid; grid-template-columns: 70px 1fr 40px; align-items: center; gap: 10px; padding: 5px 0; font-size: var(--fs-13); font-weight: 700; }
.ad-lang b { text-align: end; }

.ad-pkgs { display: flex; flex-direction: column; gap: 10px; }
.ad-pkg { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: start; border: 0; padding: 14px; border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--shadow-1), inset 0 0 0 1.5px transparent; cursor: pointer; transition: box-shadow .2s, transform .12s; }
.ad-pkg:active { transform: scale(.985); }
.ad-pkg.on { box-shadow: 0 8px 22px rgba(47, 91, 255, .14), inset 0 0 0 2px var(--brand); }
.ad-pkg-main { flex: 1; min-width: 0; }
.ad-pkg-t { font-weight: 800; font-size: var(--fs-15); }
.ad-pkg-d { font-size: var(--fs-13); color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
.ad-pkg-p { margin-top: 8px; font-size: var(--fs-13); color: var(--ink-3); font-weight: 700; }
.ad-pkg-p b { color: var(--ink); font-size: var(--fs-17); font-weight: 800; }
.ad-radio { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); margin-top: 2px; position: relative; transition: box-shadow .2s; }
.ad-pkg.on .ad-radio { box-shadow: inset 0 0 0 7px var(--brand); }

.ad-steps { padding: 6px 14px; }
.ad-step { display: flex; gap: 12px; padding: 12px 0; }
.ad-step + .ad-step { border-top: 1px solid var(--line); }
.ad-step > span { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: flex;
  align-items: center; justify-content: center; font-size: var(--fs-13); }
.ad-step b { font-size: var(--fs-14); font-weight: 800; }
.ad-step p { margin: 2px 0 0; font-size: var(--fs-13); color: var(--ink-3); line-height: 1.45; }

.ad-form { padding: 16px; }
.ad-ta { width: 100%; resize: vertical; min-height: 96px; border: 0; outline: 0; border-radius: var(--r-md); padding: 12px 14px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; font-size: var(--fs-15); line-height: 1.45; }
.ad-ta:focus { box-shadow: inset 0 0 0 2px var(--brand); }
.ad-sel { display: flex; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--ink-2); margin: 2px 2px 14px; }
.ad-sel .ic { color: var(--mint); }
.ad-privacy { text-align: center; margin: 10px 0 0; }
.ad-direct { margin-top: 10px; }
.ad-done { text-align: center; padding: 26px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ad-done p { margin: 0 0 6px; }

/* Tasks screen: small advertiser entry card */
.ad-cta { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; text-align: start; cursor: pointer; margin-top: 18px; padding: 14px;
  border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.ad-cta b { display: block; font-weight: 800; font-size: var(--fs-14); }
.ad-cta span.muted { font-size: var(--fs-12); }
.ad-cta > div { flex: 1; min-width: 0; }
