@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #090a0f;
  --surface: #111219;
  --surface-2: #171820;
  --surface-3: #20212b;
  --line: rgba(255,255,255,.085);
  --text: #f7f7f4;
  --muted: #8e909c;
  --lime: #d6ff3f;
  --lime-ink: #111507;
  --violet: #8b5cf6;
  --violet-2: #5e2ebc;
  --danger: #ff607c;
  --success: #69e3a7;
  --radius: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Manrope, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }
html { width: 100%; max-width: 100vw; overflow-x: hidden; background: var(--bg); scroll-behavior: smooth; }
body { width: 100%; max-width: 100vw; margin: 0; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; background: var(--bg); }
button, input { font: inherit; }
button, a { -webkit-user-select: none; user-select: none; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.is-hidden { display: none !important; }
.tap { transition: transform .16s ease, opacity .16s ease, background-color .16s ease; }
.tap:active { transform: scale(.965); }

.ambient { position: fixed; pointer-events: none; filter: blur(70px); opacity: .2; z-index: 0; border-radius: 50%; }
.ambient-a { width: 270px; height: 270px; top: -120px; right: -100px; background: #8555ff; }
.ambient-b { width: 180px; height: 180px; bottom: 20%; left: -130px; background: #b9e926; opacity: .08; }

.boot { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; z-index: 100; background: #090a0f; }
.boot strong { font-family: Unbounded, sans-serif; font-size: 21px; letter-spacing: -.04em; }
.boot span { color: var(--muted); font-size: 13px; }
.brand-mark { position: relative; width: 28px; height: 28px; display: inline-flex; flex: none; transform: rotate(45deg); }
.brand-mark i { position: absolute; border: 3px solid var(--lime); border-radius: 7px; width: 17px; height: 17px; }
.brand-mark i:first-child { left: 0; top: 0; }
.brand-mark i:last-child { right: 0; bottom: 0; border-color: #fff; }
.brand-mark-xl { width: 58px; height: 58px; animation: brandPulse 1.4s ease-in-out infinite; }
.brand-mark-xl i { width: 36px; height: 36px; border-width: 5px; border-radius: 11px; }
@keyframes brandPulse { 50% { transform: rotate(225deg) scale(1.08); } }

.app { position: relative; z-index: 1; width: 100%; max-width: 720px; min-width: 0; min-height: 100dvh; overflow-x: hidden; margin: 0 auto; padding-bottom: calc(92px + var(--safe-bottom)); }
.topbar { position: sticky; top: 0; z-index: 50; min-height: calc(66px + var(--safe-top)); padding: calc(10px + var(--safe-top)) 14px 9px; display: flex; align-items: center; gap: 8px; background: rgba(9,10,15,.82); border-bottom: 1px solid transparent; backdrop-filter: blur(22px) saturate(130%); -webkit-backdrop-filter: blur(22px) saturate(130%); }
.topbar.scrolled { border-bottom-color: var(--line); }
.identity { width: 36%; max-width: 142px; border: 0; padding: 0; background: transparent; display: flex; align-items: center; min-width: 0; text-align: left; cursor: pointer; }
.avatar, .profile-avatar { display: grid; place-items: center; flex: none; border: 1px solid rgba(214,255,63,.4); color: var(--lime); background: linear-gradient(145deg,#34384b,#11131b); font-weight: 800; text-transform: uppercase; }
.avatar { width: 35px; height: 35px; border-radius: 12px; margin-right: 9px; font-size: 13px; }
.avatar.has-photo { background-size: cover; background-position: center; color: transparent; }
.identity-copy { min-width: 0; display: flex; flex-direction: column; }
.identity-copy small { color: var(--muted); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.identity-copy b { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.wordmark { position: absolute; left: 50%; display: flex; align-items: center; gap: 8px; transform: translateX(-50%); font-family: Unbounded, sans-serif; font-size: 15px; letter-spacing: -.05em; }
.balance-pill { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 34%; overflow: hidden; margin-left: auto; border: 1px solid rgba(214,255,63,.2); border-radius: 13px; padding: 6px 7px 6px 9px; background: rgba(214,255,63,.08); cursor: pointer; font-size: 12px; font-weight: 800; }
.balance-pill > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.currency-dot { display: inline-grid; place-items: center; color: var(--lime); font-size: 10px; }
.currency-dot.large { font-size: 22px; }
.balance-plus { display: grid; place-items: center; width: 20px; height: 20px; margin-left: 2px; border-radius: 7px; background: var(--lime); color: var(--lime-ink); font-size: 15px; line-height: 1; }

main { width: 100%; min-width: 0; padding: 0 14px; }
.screen { display: none; width: 100%; min-width: 0; padding: 10px 0 32px; animation: screenIn .24s ease both; }
.screen > section { min-width: 0; }
.screen.active { display: block; }
@keyframes screenIn { from { opacity: 0; transform: translateY(7px); } }

.notice { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 10px; border: 1px solid rgba(214,255,63,.17); border-radius: 12px; background: rgba(214,255,63,.055); color: #c5c7ce; font-size: 10px; }
.notice span { padding: 2px 6px; border-radius: 5px; background: var(--lime); color: var(--lime-ink); font-weight: 900; letter-spacing: .08em; }

.hero { position: relative; min-height: 230px; margin: 0 0 25px; padding: 24px 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 26px; background: radial-gradient(circle at 84% 32%,rgba(214,255,63,.19),transparent 25%),linear-gradient(132deg,#20123b 0%,#5026a5 49%,#17151f 100%); box-shadow: inset 0 1px rgba(255,255,255,.12),0 28px 70px rgba(0,0,0,.28); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size: 23px 23px; mask-image: linear-gradient(90deg,#000,transparent); }
.hero-copy { position: relative; z-index: 3; width: 67%; }
.eyebrow { display: block; color: #888b98; font-size: 9px; line-height: 1.2; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.lime { color: var(--lime); }
.hero .eyebrow { color: var(--lime); }
.hero h1 { max-width: 330px; margin: 9px 0 9px; font-family: Unbounded, sans-serif; font-size: clamp(20px,6vw,30px); line-height: 1.05; letter-spacing: -.055em; }
.hero p { margin: 0 0 17px; color: rgba(255,255,255,.6); font-size: 10px; line-height: 1.5; }
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; z-index: 1; }
.orbit-one { width: 220px; height: 220px; right: -55px; top: 4px; }
.orbit-two { width: 150px; height: 150px; right: -20px; top: 39px; border-color: rgba(214,255,63,.23); }
.hero-gem { position: absolute; right: 8%; top: 50%; width: 105px; height: 105px; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; }
.gem-core { position: relative; z-index: 2; display: grid; place-items: center; width: 68px; height: 68px; color: #181c08; font-size: 29px; background: linear-gradient(145deg,#f2ff9a,#c3f526 48%,#719509); clip-path: polygon(50% 0,92% 25%,100% 70%,50% 100%,0 70%,8% 25%); filter: drop-shadow(0 10px 18px rgba(171,225,32,.32)); animation: gemFloat 3s ease-in-out infinite; }
.gem-halo { position: absolute; inset: 0; border: 1px solid rgba(214,255,63,.35); border-radius: 50%; box-shadow: 0 0 45px rgba(214,255,63,.22); animation: halo 2.2s ease-in-out infinite; }
@keyframes gemFloat { 50% { transform: translateY(-8px) rotate(7deg); } }
@keyframes halo { 50% { transform: scale(1.12); opacity: .4; } }

.btn { border: 0; border-radius: 13px; padding: 11px 15px; cursor: pointer; font-size: 11px; font-weight: 800; }
.btn:disabled { cursor: default; opacity: .42; }
.btn-primary { background: var(--lime); color: var(--lime-ink); box-shadow: 0 7px 22px rgba(214,255,63,.13); }
.btn-secondary { background: #fff; color: #13141a; }
.btn-ghost { border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); }
.btn-full { width: 100%; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 25px 2px 12px; }
.section-head > div { min-width: 0; }
.section-head h2 { margin: 4px 0 0; font-family: Unbounded, sans-serif; font-size: 17px; letter-spacing: -.045em; }
.compact-head { margin-top: 0; }
.icon-button { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; font-size: 18px; }
.text-button { border: 0; background: transparent; color: var(--lime); cursor: pointer; padding: 5px 0; font-size: 10px; font-weight: 800; }
.subtle { color: var(--muted); font-size: 11px; }
.live { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.live i { width: 6px; height: 6px; background: var(--success); border-radius: 50%; box-shadow: 0 0 9px var(--success); }

.search-wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; max-height: 0; opacity: 0; overflow: hidden; padding: 0 13px; border: 1px solid transparent; border-radius: 14px; background: var(--surface); transition: max-height .24s ease,opacity .2s ease,padding .24s ease,margin .24s ease,border .2s; }
.search-wrap.open { max-height: 50px; opacity: 1; padding-top: 10px; padding-bottom: 10px; margin-bottom: 10px; border-color: var(--line); }
.search-wrap span { color: var(--muted); font-size: 18px; }
.search-wrap input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }
.search-wrap input::placeholder { color: #656873; }
.search-wrap button { border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }

.chips { display: flex; width: 100%; max-width: 100%; min-width: 0; gap: 7px; margin: 0; padding: 0 0 4px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-padding-inline: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar,.featured-row::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: #111219; color: #9a9ca7; cursor: pointer; font-size: 9px; font-weight: 800; }
.chip.active { border-color: var(--lime); background: var(--lime); color: var(--lime-ink); }

.featured-row { display: grid; width: 100%; max-width: 100%; min-width: 0; grid-auto-flow: column; grid-auto-columns: calc((100% - 10px) / 2); gap: 10px; margin: 0; padding: 0 0 6px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-padding-inline: 0; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.featured-card { position: relative; min-width: 0; max-width: 100%; aspect-ratio: 1.28/1; overflow: hidden; border-radius: 18px; scroll-snap-align: start; scroll-snap-stop: always; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.featured-card img,.game-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease,filter .3s ease; }
.featured-card::after,.game-card .cover::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,rgba(3,4,7,.9)); pointer-events: none; }
.featured-card .card-copy { position: absolute; z-index: 2; left: 11px; right: 11px; bottom: 9px; }
.card-copy b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.card-copy small { color: rgba(255,255,255,.58); font-size: 8px; }
.badge { position: absolute; z-index: 4; left: 8px; top: 8px; padding: 3px 6px; border-radius: 6px; background: var(--lime); color: var(--lime-ink); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.play-dot { position: absolute; z-index: 4; right: 8px; bottom: 9px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: rgba(255,255,255,.94); color: #111; font-size: 12px; }

.game-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px 8px; }
.game-card { position: relative; min-width: 0; cursor: pointer; }
.game-card .cover { position: relative; aspect-ratio: 1.22/1; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.game-card .cover::after { inset: 55% 0 0; }
.game-card .game-title { display: block; margin: 7px 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 700; }
.favorite { position: absolute; z-index: 5; top: 5px; right: 5px; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 9px; color: #fff; background: rgba(8,8,12,.55); backdrop-filter: blur(8px); cursor: pointer; font-size: 14px; }
.favorite.on { color: var(--lime); }
.empty { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--muted); text-align: center; }
.empty span { font-size: 32px; }
.empty b { color: var(--text); font-size: 13px; }
.empty small { font-size: 10px; }

.page-title { padding: 18px 4px 8px; }
.page-title h1 { max-width: 430px; margin: 8px 0 10px; font-family: Unbounded, sans-serif; font-size: clamp(25px,7vw,39px); line-height: 1.04; letter-spacing: -.06em; }
.page-title p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018)); box-shadow: inset 0 1px rgba(255,255,255,.05); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-head > div { min-width: 0; }
.panel-head h2 { margin: 5px 0 0; font-family: Unbounded, sans-serif; font-size: 17px; letter-spacing: -.045em; }
.daily-card { margin-top: 15px; padding: 18px; background: radial-gradient(circle at 100% 0,rgba(139,92,246,.22),transparent 42%),var(--surface); }
.flame { display: flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 12px; }
.flame .i8 { color: #ffb528; font-size: 14px; }
.week { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; margin: 18px 0; }
.day { position: relative; min-width: 0; padding: 8px 2px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.18); text-align: center; }
.day small { display: block; color: #71747e; font-size: 7px; }
.day b { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 4px; font-size: 9px; }
.day b .i8 { font-size: 10px; }
.day.done { border-color: rgba(214,255,63,.2); color: var(--lime); }
.day.today { border-color: var(--lime); background: rgba(214,255,63,.09); }

.task-list { display: grid; gap: 8px; }
.task { display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.task-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: #20212a; color: var(--lime); font-size: 18px; }
.task-copy { min-width: 0; }
.task-copy b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.task-progress { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 3px; background: #2b2c35; }
.task-progress i { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
.task-reward { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 55px; border: 1px solid rgba(214,255,63,.2); border-radius: 10px; padding: 7px; color: var(--lime); background: rgba(214,255,63,.055); cursor: pointer; font-size: 9px; font-weight: 800; }
.task-reward .i8 { font-size: 11px; }
.task-reward:disabled { color: #777985; border-color: var(--line); background: transparent; }
.promo-card { display: grid; grid-template-columns: 48px 1fr; gap: 13px; margin-top: 28px; padding: 18px; }
.promo-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--lime); color: var(--lime-ink); font-size: 21px; }
.promo-copy { min-width: 0; }
.promo-copy h2 { margin: 5px 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Unbounded,sans-serif; font-size: 15px; letter-spacing: -.045em; }
.promo-copy p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.promo-form { grid-column: 1/-1; display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 6px; }
.promo-form input,.field input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 13px; outline: none; padding: 11px 12px; color: var(--text); background: rgba(0,0,0,.22); font-size: 11px; text-transform: uppercase; }
.promo-form input:focus,.field input:focus { border-color: rgba(214,255,63,.6); }

.wallet-title { padding-bottom: 13px; }
.wallet-card { position: relative; overflow: hidden; padding: 20px; border: 1px solid rgba(255,255,255,.13); border-radius: 24px; background: radial-gradient(circle at 105% -10%,rgba(214,255,63,.32),transparent 38%),linear-gradient(145deg,#191b24,#0e0f15); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.wallet-card::before { content: "N"; position: absolute; right: -6px; top: -38px; font-family: Unbounded,sans-serif; font-size: 175px; font-weight: 700; color: rgba(255,255,255,.025); transform: rotate(7deg); }
.wallet-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; color: #898c98; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.wallet-topline span:last-child { color: var(--lime); }
.wallet-amount { position: relative; z-index: 1; display: flex; min-width: 0; align-items: baseline; gap: 8px; margin: 18px 0 20px; }
.wallet-amount strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Unbounded,sans-serif; font-size: clamp(31px,10vw,47px); letter-spacing: -.07em; }
.wallet-amount small { color: #878a95; font-size: 10px; font-weight: 800; }
.wallet-split { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.wallet-split div { padding: 10px; border-radius: 13px; background: rgba(255,255,255,.045); }
.wallet-split small { display: block; color: #747782; font-size: 8px; }
.wallet-split b { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.wallet-actions { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 8px; margin-top: 15px; }
.payment-methods { display: grid; gap: 8px; }
.payment-method { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 11px; background: var(--surface); text-align: left; cursor: pointer; }
.payment-method > span:nth-child(2) { min-width: 0; }
.payment-logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; }
.payment-logo .brand-icon { width: 31px; height: 31px; }
.ton-logo { background: rgba(30,174,251,.13); }
.stars-logo { background: rgba(255,201,38,.1); }
.payment-method b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.payment-method small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 8px; }
.payment-method em { color: var(--danger); font-size: 8px; font-style: normal; font-weight: 800; }
.payment-method em.ready { color: var(--success); }
.compliance-note { margin: 10px 4px 0; overflow-wrap: anywhere; color: #71747f; font-size: 8px; line-height: 1.55; }
.transaction-list { display: grid; gap: 2px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.transaction { display: grid; width: 100%; min-width: 0; grid-template-columns: 37px minmax(0,1fr) minmax(0,auto); align-items: center; gap: 10px; min-height: 57px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.transaction:last-child { border-bottom: 0; }
.transaction-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; background: #20212a; color: var(--lime); font-size: 16px; }
.transaction-icon .brand-icon { width: 24px; height: 24px; }
.transaction > :nth-child(2) { min-width: 0; }
.transaction b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.transaction small { color: var(--muted); font-size: 8px; }
.transaction-amount { min-width: 0; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-size: 10px; font-weight: 800; }
.transaction-amount.positive { color: var(--success); }

.profile-hero { display: flex; min-width: 0; align-items: center; gap: 14px; padding: 19px 4px; }
.profile-hero > div:last-child { min-width: 0; }
.profile-avatar { width: 66px; height: 66px; border-radius: 22px; font-size: 23px; }
.profile-avatar.has-photo { background-size: cover; background-position: center; color: transparent; }
.profile-hero h1 { margin: 6px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Unbounded,sans-serif; font-size: 23px; letter-spacing: -.05em; }
.profile-hero p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.vip-card { padding: 18px; background: radial-gradient(circle at 100% 0,rgba(139,92,246,.25),transparent 42%),var(--surface); }
.vip-badge { padding: 7px 9px; border: 1px solid rgba(214,255,63,.27); border-radius: 9px; color: var(--lime); background: rgba(214,255,63,.06); font-family: Unbounded,sans-serif; font-size: 9px; }
.progress { height: 7px; margin-top: 17px; overflow: hidden; border-radius: 6px; background: #292a34; }
.progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--lime),#83ff9b); transition: width .6s ease; }
.progress-copy { display: flex; justify-content: space-between; margin-top: 7px; color: #777a86; font-size: 8px; }
.achievement-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.achievement { min-width: 0; padding: 11px 5px 9px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; }
.achievement.locked { opacity: .3; filter: grayscale(1); }
.achievement .achievement-icon { display: grid; place-items: center; width: 37px; height: 37px; margin: 0 auto 7px; border-radius: 13px; background: #20212a; color: var(--lime); font-size: 18px; }
.achievement b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 7px; }
.achievement small { display: block; margin-top: 3px; font-size: 6px; text-transform: uppercase; }
.achievement[data-rarity="common"] small { color: #a9abb5; }
.achievement[data-rarity="rare"] small { color: #5eb5ff; }
.achievement[data-rarity="epic"] small { color: #b58aff; }
.achievement[data-rarity="legendary"] small { color: var(--lime); }
.achievement-claim { width: calc(100% - 6px); min-height: 25px; margin: 8px 3px 0; padding: 5px 3px; border: 1px solid rgba(214,255,63,.28); border-radius: 8px; color: #11140a; background: var(--lime); font-size: 7px; font-weight: 900; cursor: pointer; }
.achievement-claim:disabled { color: #777985; border-color: var(--line); background: #1a1b22; cursor: default; }
.achievement:not(.locked):has(.achievement-claim:not(:disabled)) { border-color: rgba(214,255,63,.45); box-shadow: inset 0 0 22px rgba(214,255,63,.055); }
.season-card { margin-top: 25px; padding: 17px; background: radial-gradient(circle at 100% 0,rgba(214,255,63,.08),transparent 40%),var(--surface); }
.season-rank { padding: 7px 9px; border-radius: 9px; background: var(--lime); color: var(--lime-ink); font-family: Unbounded,sans-serif; font-size: 9px; }
.leaderboard { display: grid; gap: 4px; margin-top: 15px; }
.leader { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 7px; min-height: 29px; padding: 3px 7px; border-radius: 9px; color: #8b8e99; font-size: 9px; }
.leader.self { color: var(--text); background: rgba(214,255,63,.07); }
.leader i { color: var(--lime); font-style: normal; font-weight: 800; }
.leader b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader span { max-width: 35vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.season-card > p { margin: 13px 0 0; color: var(--muted); font-size: 8px; }
.season-card > p b { color: var(--lime); }
.referral-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding: 17px; }
.referral-card > div { min-width: 0; }
.referral-card h2 { margin: 5px 0 5px; font-family: Unbounded,sans-serif; font-size: 14px; letter-spacing: -.045em; }
.referral-card p { max-width: 380px; margin: 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.ref-code { flex: none; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px dashed rgba(214,255,63,.45); border-radius: 11px; padding: 10px; color: var(--lime); background: rgba(214,255,63,.05); cursor: pointer; font-size: 9px; font-weight: 800; }
.settings-list { margin-top: 11px; overflow: hidden; }
.settings-row { display: grid; grid-template-columns: 29px 1fr auto; align-items: center; width: 100%; min-height: 51px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.settings-row:last-child { border-bottom: 0; }
.settings-row > span { color: var(--lime); font-size: 16px; }
.settings-row b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.settings-row em { display: grid; place-items: center; color: #6c6e78; font-size: 13px; font-style: normal; }

.bottom-nav { position: fixed; z-index: 60; left: 50%; bottom: 0; width: min(100%,720px); min-height: calc(66px + var(--safe-bottom)); padding: 7px 12px calc(7px + var(--safe-bottom)); display: grid; grid-template-columns: repeat(4,1fr); transform: translateX(-50%); border-top: 1px solid var(--line); background: rgba(10,11,16,.9); backdrop-filter: blur(24px) saturate(145%); -webkit-backdrop-filter: blur(24px) saturate(145%); }
.nav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 13px; background: transparent; color: #6f727e; cursor: pointer; }
.nav-item > span { font-size: 19px; line-height: 1; }
.nav-item b { font-size: 8px; }
.nav-item.active { color: var(--lime); background: rgba(214,255,63,.04); }
.nav-item i { position: absolute; top: 5px; right: calc(50% - 14px); display: none; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 7px var(--danger); }
.nav-item i.on { display: block; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; padding: 20px 0 0; background: rgba(0,0,0,.7); opacity: 0; transition: opacity .24s,visibility .24s; backdrop-filter: blur(7px); }
.modal-backdrop.open { visibility: visible; opacity: 1; }
.sheet { position: relative; width: min(100%,720px); max-height: min(88dvh,730px); overflow-y: auto; padding: 18px 18px calc(24px + var(--safe-bottom)); border: 1px solid rgba(255,255,255,.12); border-bottom: 0; border-radius: 25px 25px 0 0; background: #12131a; transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -30px 90px rgba(0,0,0,.45); }
.modal-backdrop.open .sheet { transform: translateY(0); }
.sheet-handle { width: 38px; height: 4px; margin: -7px auto 18px; border-radius: 4px; background: #3f414b; }
.sheet-close { position: absolute; z-index: 2; top: 15px; right: 16px; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 10px; background: #1c1d25; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }
.sheet h2 { margin: 5px 42px 8px 0; overflow-wrap: anywhere; font-family: Unbounded,sans-serif; font-size: 22px; line-height: 1.08; letter-spacing: -.05em; }
.sheet-intro { margin: 0 30px 18px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.quick-amounts { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin: 10px 0; }
.quick-amounts button { border: 1px solid var(--line); border-radius: 11px; padding: 9px 3px; background: #1b1c24; cursor: pointer; font-size: 9px; font-weight: 800; }
.quick-amounts button.active { border-color: var(--lime); color: var(--lime); background: rgba(214,255,63,.06); }
.field { display: block; margin: 13px 0; }
.field span { display: block; margin: 0 0 6px 2px; color: #8a8d98; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.field input { text-transform: none; }
.provider-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 15px 0; }
.provider-choice button { display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px; background: #1b1c24; cursor: pointer; font-size: 9px; font-weight: 800; }
.provider-choice .brand-icon { width: 22px; height: 22px; }
.provider-choice button.active { border-color: var(--lime); color: var(--lime); background: rgba(214,255,63,.06); }
.sheet .compliance-note { padding: 10px; border-radius: 11px; background: rgba(255,255,255,.035); }
.sheet-actions { display: grid; gap: 7px; margin-top: 14px; }
.info-list { display: grid; gap: 8px; margin-top: 16px; }
.info-row { padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: #191a22; }
.info-row b { display: block; font-size: 10px; }
.info-row p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }

.toast { position: fixed; z-index: 200; left: 50%; bottom: calc(82px + var(--safe-bottom)); width: max-content; max-width: calc(100% - 30px); padding: 10px 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(28,29,37,.96); color: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.4); opacity: 0; transform: translate(-50%,14px); pointer-events: none; transition: opacity .2s,transform .2s; font-size: 10px; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.toast.error { border-color: rgba(255,96,124,.35); color: #ffafbd; }

@media (hover:hover) {
  .featured-card:hover img,.game-card:hover img { transform: scale(1.05); filter: brightness(1.08); }
  .btn:hover { filter: brightness(1.05); }
}

@media (min-width: 540px) {
  main { padding-left: 20px; padding-right: 20px; }
  .topbar { padding-left: 20px; padding-right: 20px; }
  .featured-row { grid-auto-columns: calc((100% - 20px) / 3); }
  .game-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px 11px; }
  .game-card .game-title { font-size: 10px; }
  .hero { min-height: 260px; padding: 32px 28px; }
  .hero-gem { right: 13%; transform: translateY(-50%) scale(1.22); }
}

@media (max-width: 350px) {
  .wordmark > span:last-child { display: none; }
  .identity-copy small { display: none; }
  .hero-copy { width: 72%; }
  .hero-gem { right: 2%; transform: translateY(-50%) scale(.8); }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .achievement-grid { grid-template-columns: repeat(2,1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
