:root {
  color-scheme: dark;
  --bg: #050a14;
  --surface: #0d1424;
  --surface-2: #121c30;
  --surface-3: #1b273f;
  --line: rgba(186,230,253,.11);
  --text: #f4f9ff;
  --muted: #8fa3bd;
  --accent: #38bdf8;
  --accent-ink: #032032;
  --brand: #2563eb;
  --brand-2: #1e40af;
  --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: #2563eb; }
.ambient-b { width: 180px; height: 180px; bottom: 20%; left: -130px; background: #0ea5e9; opacity: .08; }

.boot { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; z-index: 100; background: #050a14; }
.boot strong { font-family: Unbounded, sans-serif; font-size: 21px; letter-spacing: -.04em; }
.boot span { color: var(--muted); font-size: 13px; }
.boot-retry { min-height: 42px; padding: 0 20px; border: 1px solid rgba(56,189,248,.35); border-radius: 10px; color: #032032; background: var(--accent); font-weight: 900; cursor: pointer; }
.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(--accent); 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); } }
.wordmark-logo { height: 19px; width: auto; display: block; }
.boot-logo { height: 40px; width: auto; display: block; margin-bottom: 4px; animation: bootLogoPulse 1.6s ease-in-out infinite; }
@keyframes bootLogoPulse { 50% { transform: scale(1.06); opacity: .85; } }

.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(5,10,20,.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(56,189,248,.4); color: var(--accent); background: linear-gradient(145deg,#22304c,#0d1424); 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(56,189,248,.2); border-radius: 13px; padding: 6px 7px 6px 9px; background: rgba(56,189,248,.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(--accent); 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(--accent); color: var(--accent-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(56,189,248,.17); border-radius: 12px; background: rgba(56,189,248,.055); color: #c5c7ce; font-size: 10px; }
.notice span { padding: 2px 6px; border-radius: 5px; background: var(--accent); color: var(--accent-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(56,189,248,.19),transparent 25%),linear-gradient(132deg,#0f1e3d 0%,#1e40af 49%,#101a2e 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.accent { color: var(--accent); }
.hero .eyebrow { color: var(--accent); }
.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(56,189,248,.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: #0a1b2b; font-size: 29px; background: linear-gradient(145deg,#bae6fd,#22b8f0 48%,#1f6f9c); clip-path: polygon(50% 0,92% 25%,100% 70%,50% 100%,0 70%,8% 25%); filter: drop-shadow(0 10px 18px rgba(14,165,233,.32)); animation: gemFloat 3s ease-in-out infinite; }
.gem-halo { position: absolute; inset: 0; border: 1px solid rgba(56,189,248,.35); border-radius: 50%; box-shadow: 0 0 45px rgba(56,189,248,.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(--accent); color: var(--accent-ink); box-shadow: 0 7px 22px rgba(56,189,248,.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(--accent); 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: #0d1424; color: #9a9ca7; cursor: pointer; font-size: 9px; font-weight: 800; }
.chip.active { border-color: var(--accent); background: var(--accent); color: var(--accent-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(--accent); color: var(--accent-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(--accent); }
.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(37,99,235,.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(56,189,248,.2); color: var(--accent); }
.day.today { border-color: var(--accent); background: rgba(56,189,248,.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: #1b273f; color: var(--accent); 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(--accent); }
.task-reward { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 55px; border: 1px solid rgba(56,189,248,.2); border-radius: 10px; padding: 7px; color: var(--accent); background: rgba(56,189,248,.055); cursor: pointer; font-size: 9px; font-weight: 800; }
.task-reward .i8 { font-size: 11px; }
.task-reward:disabled { color: #7e93ae; 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(--accent); color: var(--accent-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(56,189,248,.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(56,189,248,.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(--accent); }
.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; }
.stars-logo { background: linear-gradient(145deg,#ffcf5a,#f5a623); color: #fff; }
.stars-logo .i8 { width: 24px; height: 24px; }
.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: #1b273f; color: var(--accent); 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(37,99,235,.25),transparent 42%),var(--surface); }
.vip-badge { padding: 7px 9px; border: 1px solid rgba(56,189,248,.27); border-radius: 9px; color: var(--accent); background: rgba(56,189,248,.06); font-family: Unbounded,sans-serif; font-size: 9px; }
.progress { height: 7px; margin-top: 17px; overflow: hidden; border-radius: 6px; background: #1f2c46; }
.progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--brand),var(--accent)); transition: width .6s ease; }
.progress-copy { display: flex; justify-content: space-between; margin-top: 7px; color: #7e93ae; 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: #1b273f; color: var(--accent); 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: #bfdbfe; }
.achievement[data-rarity="legendary"] small { color: var(--accent); }
.achievement-claim { width: calc(100% - 6px); min-height: 25px; margin: 8px 3px 0; padding: 5px 3px; border: 1px solid rgba(56,189,248,.28); border-radius: 8px; color: #071523; background: var(--accent); font-size: 7px; font-weight: 900; cursor: pointer; }
.achievement-claim:disabled { color: #7e93ae; border-color: var(--line); background: #1a1b22; cursor: default; }
.achievement:not(.locked):has(.achievement-claim:not(:disabled)) { border-color: rgba(56,189,248,.45); box-shadow: inset 0 0 22px rgba(56,189,248,.055); }
.season-card { margin-top: 25px; padding: 17px; background: radial-gradient(circle at 100% 0,rgba(56,189,248,.08),transparent 40%),var(--surface); }
.season-rank { padding: 7px 9px; border-radius: 9px; background: var(--accent); color: var(--accent-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: #95a9c2; font-size: 9px; }
.leader.self { color: var(--text); background: rgba(56,189,248,.07); }
.leader i { color: var(--accent); 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(--accent); }
.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(56,189,248,.45); border-radius: 11px; padding: 10px; color: var(--accent); background: rgba(56,189,248,.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(--accent); 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(5,10,20,.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(--accent); background: rgba(56,189,248,.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: #0e1728; 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: #172238; 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: #162136; cursor: pointer; font-size: 9px; font-weight: 800; }
.quick-amounts button.active { border-color: var(--accent); color: var(--accent); background: rgba(56,189,248,.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; }
.card-logo { background: linear-gradient(145deg,var(--brand),var(--brand-2)); color: #fff; }
.card-logo .i8 { width: 24px; height: 24px; }
.crypto-logo { background: linear-gradient(145deg,var(--accent),var(--brand)); color: #fff; }
.crypto-logo .i8 { width: 24px; height: 24px; }

.card-review { display: grid; justify-items: center; gap: 12px; padding: 14px 0 4px; text-align: center; }
.card-review h3 { margin: 0; font-size: 17px; letter-spacing: -.03em; }
.card-review .sheet-intro { margin: 0; }
.card-review-spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(56,189,248,.2); border-top-color: var(--accent); animation: cardSpin .9s linear infinite; }
@keyframes cardSpin { to { transform: rotate(360deg); } }
.card-review-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; }
.card-review-badge .i8 { width: 26px; height: 26px; }
.card-review-badge.is-ok { color: var(--success); background: rgba(105,227,167,.14); border: 1px solid rgba(105,227,167,.4); }
.card-review-badge.is-bad { color: var(--danger); background: rgba(255,96,124,.13); border: 1px solid rgba(255,96,124,.38); }
.card-review-facts { display: grid; gap: 6px; width: 100%; margin: 4px 0 0; }
.card-review-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.card-review-facts dt { margin: 0; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card-review-facts dd { margin: 0; min-width: 0; font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }

.deposit-bonus-banner { display: flex; align-items: center; gap: 9px; margin: 12px 0 2px; padding: 11px 13px; border-radius: 13px; border: 1px solid rgba(56,189,248,.4); background: linear-gradient(145deg,rgba(56,189,248,.14),rgba(37,99,235,.1)); color: var(--text); font-size: 12px; font-weight: 700; }
.deposit-bonus-banner .i8 { width: 20px; height: 20px; color: var(--accent); flex: none; }
.deposit-bonus-banner b { color: var(--accent); }

.card-fields { display: grid; gap: 10px; margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* The grid gap owns the spacing, so drop the standalone .field margin here. */
.card-fields .field, .field-row .field { margin: 0; }

.provider-choice { display: grid; grid-template-columns: repeat(3,minmax(0,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: #162136; cursor: pointer; font-size: 9px; font-weight: 800; }
.provider-choice .brand-icon { width: 22px; height: 22px; }
.provider-choice button.active { border-color: var(--accent); color: var(--accent); background: rgba(56,189,248,.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; }

/* Native Telegram-first classic games. */
.classic-section { margin-top: 26px; }
.classic-live { display: inline-flex; align-items: center; gap: 5px; color: #95a9c2; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.classic-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px rgba(56,189,248,.7); }
.classic-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.classic-card { position: relative; min-width: 0; min-height: 104px; overflow: hidden; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: #14151c; text-align: left; cursor: pointer; isolation: isolate; }
.classic-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 100% 0,var(--classic-glow),transparent 55%); opacity: .7; }
.classic-card::after { content: ""; position: absolute; right: -15px; bottom: -28px; width: 76px; height: 76px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.classic-card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; color: var(--classic-color); background: color-mix(in srgb,var(--classic-color) 15%,#121c30); font-size: 21px; box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--classic-color) 25%,transparent); }
.classic-card > span:nth-child(2) { min-width: 0; }
.classic-card b { display: block; overflow: hidden; text-overflow: ellipsis; font-family: Unbounded,sans-serif; font-size: 11px; letter-spacing: -.04em; }
.classic-card small { display: block; margin-top: 4px; overflow: hidden; color: #8fa3bd; font-size: 7px; line-height: 1.35; }
.classic-card em { position: absolute; left: 13px; bottom: 8px; color: color-mix(in srgb,var(--classic-color) 80%,white); font-size: 6px; font-style: normal; font-weight: 900; letter-spacing: .07em; }
.classic-crash { --classic-color:#38bdf8; --classic-glow:rgba(56,189,248,.2); }
.classic-plinko { --classic-color:#3b82f6; --classic-glow:rgba(59,130,246,.23); }
.classic-blackjack { --classic-color:#34d399; --classic-glow:rgba(66,232,165,.2); }
.classic-dice { --classic-color:#ff6b8b; --classic-glow:rgba(255,95,134,.2); }

.classic-overlay { position: fixed; z-index: 110; inset: 0; width: min(100%,720px); margin: 0 auto; overflow: hidden; background: #050a14; color: #fff; }
.classic-header { position: relative; z-index: 3; min-height: calc(58px + var(--safe-top)); padding: calc(8px + var(--safe-top)) 12px 8px; display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); background: rgba(5,10,20,.88); backdrop-filter: blur(20px); }
.classic-back { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 12px; background: #121c30; color: #fff; font-size: 17px; cursor: pointer; }
.classic-header > div { min-width: 0; }
.classic-header small { display: block; color: var(--accent); font-size: 6px; font-weight: 900; letter-spacing: .16em; }
.classic-header > div b { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Unbounded,sans-serif; font-size: 13px; }
.classic-wallet { display: flex; align-items: center; gap: 5px; min-width: 0; max-width: 132px; padding: 7px 9px; border: 1px solid rgba(56,189,248,.2); border-radius: 11px; color: var(--accent); background: rgba(56,189,248,.05); }
.classic-wallet > span { flex: none; font-size: 14px; }
.classic-wallet b { overflow: hidden; text-overflow: ellipsis; font-size: 9px; }
.classic-content { height: calc(100dvh - 94px - var(--safe-top) - var(--safe-bottom)); overflow-y: auto; padding: 14px 14px 32px; overscroll-behavior: contain; }
.classic-footer { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 7px 10px calc(7px + var(--safe-bottom)); border-top: 1px solid var(--line); color: #666975; background: rgba(5,10,20,.94); font-size: 5px; font-weight: 800; letter-spacing: .04em; text-align: center; }
.classic-game { --game-accent:var(--accent); display: grid; gap: 11px; }
.classic-game[data-game="plinko"] { --game-accent:#60a5fa; }
.classic-game[data-game="blackjack"] { --game-accent:#34d399; }
.classic-game[data-game="dice"] { --game-accent:#ff6b91; }
.classic-game-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.classic-game-head h1 { margin: 0; font-family: Unbounded,sans-serif; font-size: 24px; letter-spacing: -.055em; }
.classic-game-head p { margin: 5px 0 0; max-width: 290px; color: #8fa3bd; font-size: 8px; line-height: 1.45; }
.rtp-pill { flex: none; padding: 7px 9px; border: 1px solid color-mix(in srgb,var(--game-accent) 30%,transparent); border-radius: 10px; color: var(--game-accent); background: color-mix(in srgb,var(--game-accent) 6%,transparent); font-size: 7px; font-weight: 900; }
.classic-stage { position: relative; min-height: 290px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(circle at 50% 10%,color-mix(in srgb,var(--game-accent) 15%,transparent),transparent 55%),#0d1424; box-shadow: inset 0 -50px 100px rgba(0,0,0,.25); }
.classic-controls { display: grid; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #13141b; }
.classic-control-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.classic-label { display: grid; gap: 5px; color: #8fa3bd; font-size: 7px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.classic-label input,.classic-label select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #162136; color: #fff; font-size: 12px; font-weight: 900; }
.classic-label input:focus,.classic-label select:focus { border-color: color-mix(in srgb,var(--game-accent) 55%,transparent); }
.classic-bets { display: grid; grid-template-columns: repeat(6,1fr); gap: 5px; }
.classic-bets button,.classic-segments button { min-height: 31px; border: 1px solid var(--line); border-radius: 9px; background: #162136; color: #9699a5; font-size: 7px; font-weight: 900; cursor: pointer; }
.classic-bets button.active,.classic-segments button.active { border-color: var(--game-accent); color: var(--game-accent); background: color-mix(in srgb,var(--game-accent) 7%,transparent); }
.classic-play { width: 100%; min-height: 47px; border: 0; border-radius: 14px; color: #0a0b0f; background: var(--game-accent); box-shadow: 0 10px 28px color-mix(in srgb,var(--game-accent) 18%,transparent); font-size: 10px; font-weight: 1000; cursor: pointer; }
.classic-play:disabled,.classic-action:disabled { opacity: .45; cursor: wait; }
.classic-result { min-height: 38px; display: grid; place-items: center; padding: 8px; border-radius: 12px; color: #8c8f9b; background: rgba(255,255,255,.025); font-size: 9px; font-weight: 900; text-align: center; }
.classic-result.win { color: #5eead4; background: rgba(66,232,165,.07); }
.classic-result.loss { color: #ff8ba7; background: rgba(255,95,134,.07); }

.crash-stage { min-height: 310px; }
.crash-grid { position: absolute; inset: 0; opacity: .17; background-image: linear-gradient(rgba(255,255,255,.13) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.13) 1px,transparent 1px); background-size: 42px 42px; transform: perspective(300px) rotateX(54deg) scale(1.5); transform-origin: bottom; }
.crash-curve { position: absolute; left: 8%; bottom: 16%; width: 72%; height: 58%; border-bottom: 3px solid var(--accent); border-radius: 0 0 70% 0; transform: skewY(-28deg); filter: drop-shadow(0 0 9px rgba(56,189,248,.65)); opacity: .4; }
.crash-rocket { position: absolute; left: 10%; bottom: 14%; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #0b0c10; background: var(--accent); box-shadow: 0 0 30px rgba(56,189,248,.45); font-size: 25px; will-change: transform; }
.crash-multiplier { position: absolute; inset: 28px 0 auto; text-align: center; font-family: Unbounded,sans-serif; font-size: 43px; letter-spacing: -.07em; text-shadow: 0 0 30px rgba(56,189,248,.2); }
.crash-caption { position: absolute; top: 80px; left: 0; right: 0; color: #7e93ae; font-size: 7px; font-weight: 900; letter-spacing: .12em; text-align: center; }
.crash-stage.crashed { animation: classic-shake .28s linear 2; }
.crash-stage.crashed .crash-rocket { color: #fff; background: #ff6b8b; box-shadow: 0 0 35px rgba(255,95,134,.65); }
@keyframes classic-shake { 25%{transform:translateX(-3px)} 75%{transform:translateX(3px)} }

.plinko-stage { min-height: 370px; padding: 8px; }
.plinko-canvas { display: block; width: 100%; height: 330px; }
.plinko-buckets { position: absolute; left: 8px; right: 8px; bottom: 8px; display: grid; grid-template-columns: repeat(13,1fr); gap: 2px; }
.plinko-buckets span { min-width: 0; padding: 5px 0; border-radius: 4px; color: #a7a8b1; background: #282631; font-size: 5px; font-weight: 900; text-align: center; }
.plinko-buckets span.hot { color: #fff; background: #3b82f6; box-shadow: 0 0 12px rgba(59,130,246,.6); }
.classic-segments { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }

.dice-stage { min-height: 290px; display: grid; place-items: center; }
.dice-orb { width: 154px; height: 154px; display: grid; place-items: center; border: 1px solid rgba(255,107,145,.3); border-radius: 50%; background: radial-gradient(circle,rgba(255,107,145,.22),rgba(255,107,145,.03) 58%,transparent 60%); box-shadow: 0 0 50px rgba(255,107,145,.12); font-family: Unbounded,sans-serif; font-size: 38px; letter-spacing: -.06em; }
.dice-track { position: absolute; left: 10%; right: 10%; bottom: 28px; height: 5px; border-radius: 5px; background: linear-gradient(90deg,var(--game-accent) var(--dice-chance,50%),#292a32 var(--dice-chance,50%)); }
.dice-track > i:not(.dice-threshold-marker):not(.dice-roll-marker) { position: absolute; top: 50%; left: var(--dice-chance,50%); width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: var(--game-accent); transform: translate(-50%,-50%); }

.blackjack-stage { min-height: 410px; padding: 16px 12px; background: radial-gradient(ellipse at 50% 42%,rgba(30,133,91,.44),rgba(7,54,39,.7) 55%,#0b1713 85%); }
.blackjack-zone { min-height: 155px; display: grid; align-content: center; justify-items: center; gap: 8px; }
.blackjack-zone > span { color: rgba(255,255,255,.65); font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.card-hand { min-height: 92px; display: flex; justify-content: center; padding-left: 26px; }
.playing-card { width: 63px; height: 88px; margin-left: -26px; display: grid; grid-template-rows: auto 1fr; padding: 7px; border-radius: 9px; color: #11131a; background: #eff6ff; box-shadow: 0 7px 18px rgba(0,0,0,.28); font-family: Unbounded,sans-serif; font-size: 15px; transform: rotate(var(--card-rotate,0)); }
.playing-card.red { color: #dc3159; }
.playing-card.hidden-card { place-items: center; color: var(--accent); background: repeating-linear-gradient(45deg,#121c30,#121c30 5px,#1f2c46 5px,#1f2c46 10px); }
.playing-card b:last-child { align-self: end; justify-self: end; font-size: 24px; }
.hand-value { min-width: 28px; padding: 4px 7px; border-radius: 10px; color: #0b2118; background: #78f1bc; font-size: 8px; font-weight: 1000; }
.blackjack-table-line { height: 1px; margin: 2px 9%; background: rgba(255,255,255,.18); box-shadow: 0 0 18px rgba(66,232,165,.35); }
.blackjack-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.classic-action { min-height: 43px; border: 1px solid color-mix(in srgb,var(--game-accent) 30%,var(--line)); border-radius: 12px; color: var(--game-accent); background: color-mix(in srgb,var(--game-accent) 6%,#121c30); font-size: 8px; font-weight: 1000; cursor: pointer; }
.blackjack-ready { min-height: 380px; display: grid; place-items: center; text-align: center; }
.blackjack-ready-mark { width: 94px; height: 94px; display: grid; place-items: center; margin: 0 auto 13px; border: 1px solid rgba(66,232,165,.25); border-radius: 28px; color: #34d399; background: rgba(66,232,165,.08); font-size: 44px; transform: rotate(-5deg); }

/* Classic games v2: compact provider-style game shell for Telegram WebView. */
.classic-overlay { width: 100%; max-width: none; background: #08090e; }
.classic-header { min-height: calc(54px + var(--safe-top)); padding: calc(7px + var(--safe-top)) 10px 7px; grid-template-columns: 38px 1fr auto; background: rgba(5,10,20,.96); }
.classic-back { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(180deg,#252731,#121c30); box-shadow: inset 0 1px rgba(255,255,255,.07); }
.classic-header small { font-size: 8px; }
.classic-header > div b { font-family: Inter,sans-serif; font-size: 16px; letter-spacing: 0; }
.classic-wallet { border-radius: 9px; background: linear-gradient(180deg,rgba(56,189,248,.09),rgba(56,189,248,.035)); }
.classic-content { height: calc(100dvh - 86px - var(--safe-top) - var(--safe-bottom)); padding: 9px 10px 28px; }
.classic-footer { padding-top: 5px; padding-bottom: calc(5px + var(--safe-bottom)); background: #0b0c11; }
.classic-game { gap: 8px; width: 100%; max-width: 1480px; margin: 0 auto; }
.classic-game-head { min-height: 27px; align-items: center; padding: 0 2px; }
.classic-game-head p { margin: 0; max-width: none; color: #8d909b; font-size: 11px; line-height: 1.35; }
.rtp-pill { padding: 6px 8px; border-radius: 6px; font-size: 9px; letter-spacing: .04em; }
.classic-stage { min-height: 250px; border-color: #30323d; border-radius: 13px; background: linear-gradient(180deg,#151721,#0d0e14); box-shadow: inset 0 1px rgba(255,255,255,.035),inset 0 -55px 90px rgba(0,0,0,.24),0 8px 22px rgba(0,0,0,.2); }
.classic-controls { gap: 7px; padding: 9px; border-color: #30323b; border-radius: 12px; background: linear-gradient(180deg,#181a22,#0e1728); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.classic-bet-row { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: end; gap: 6px; }
.classic-bet-row > button { height: 40px; border: 1px solid #393b46; border-radius: 8px; color: #d8dae0; background: linear-gradient(180deg,#22304c,#172238); font-size: 11px; font-weight: 900; box-shadow: inset 0 1px rgba(255,255,255,.04); }
.classic-label { gap: 4px; font-size: 9px; letter-spacing: .07em; }
.classic-label input,.classic-label select { min-height: 40px; padding: 8px 10px; border-color: #3a3c47; border-radius: 8px; background: #20222b; font-size: 12px; }
.classic-bets { grid-template-columns: repeat(5,1fr); gap: 5px; }
.classic-bets button,.classic-segments button { min-height: 34px; border-color: #373945; border-radius: 7px; background: linear-gradient(180deg,#24262f,#162136); font-size: 10px; box-shadow: inset 0 1px rgba(255,255,255,.03); }
.classic-bets button.active,.classic-segments button.active { box-shadow: inset 0 0 0 1px var(--game-accent),0 0 12px color-mix(in srgb,var(--game-accent) 10%,transparent); }
.classic-play { min-height: 49px; border-radius: 9px; background: linear-gradient(180deg,color-mix(in srgb,var(--game-accent) 88%,white),var(--game-accent)); box-shadow: inset 0 1px rgba(255,255,255,.4),0 8px 20px color-mix(in srgb,var(--game-accent) 16%,transparent); font-size: 12px; text-transform: uppercase; }
.classic-result { min-height: 38px; padding: 8px; border: 1px solid rgba(255,255,255,.035); border-radius: 8px; font-size: 10px; }
.classic-control-row { gap: 6px; }
.classic-segments { gap: 5px; }
.labeled-segments button { min-height: 45px; display: grid; place-content: center; gap: 2px; }
.labeled-segments b { font-size: 10px; }
.labeled-segments small { color: #737682; font-size: 8px; }
.labeled-segments button.active small { color: color-mix(in srgb,var(--game-accent) 72%,white); }

.classic-card { min-height: 94px; border-radius: 13px; background: linear-gradient(145deg,#1b1d25,#0d1424); box-shadow: inset 0 1px rgba(255,255,255,.035); }
.classic-card::before { background: linear-gradient(110deg,color-mix(in srgb,var(--classic-color) 13%,transparent),transparent 48%); opacity: 1; }
.classic-card::after { right: 0; bottom: 0; width: 4px; height: 100%; border: 0; border-radius: 0; background: var(--classic-color); opacity: .75; }
.classic-card-icon { border-radius: 10px; background: #20222a; box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--classic-color) 38%,transparent); }

.crash-history { display: flex; gap: 5px; min-height: 25px; overflow-x: auto; scrollbar-width: none; }
.crash-history::-webkit-scrollbar { display: none; }
.crash-history span { flex: none; min-width: 48px; padding: 6px 8px; border: 1px solid #32343e; border-radius: 6px; color: #8b8e98; background: #101a2c; font-size: 9px; font-weight: 900; text-align: center; }
.crash-history span.good { color: #38bdf8; border-color: rgba(56,189,248,.22); }
.crash-history span.mega { color: #ffc35a; border-color: rgba(255,195,90,.26); }
.crash-stage { min-height: 270px; background: linear-gradient(180deg,#111824,#0b0e15 67%,#08161f); }
.crash-sky { position: absolute; inset: 0; background: radial-gradient(circle at 75% 14%,rgba(76,116,173,.23),transparent 30%),linear-gradient(175deg,transparent 58%,rgba(56,189,248,.035) 59%); }
.crash-grid { inset: 33% -35% -40%; opacity: .2; background-size: 31px 31px; transform: perspective(260px) rotateX(61deg) scale(1.15); }
.crash-curve { display: none; }
.crash-chart { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.crash-chart-line { fill: none; stroke: #38bdf8; stroke-width: .42; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(56,189,248,.45)); }
.crash-chart-area { fill: url(#crash-area-gradient); }
.crash-round-status { position: absolute; top: 13px; left: 13px; padding: 5px 7px; border: 1px solid rgba(56,189,248,.23); border-radius: 5px; color: var(--accent); background: rgba(6,12,24,.72); font-size: 9px; font-weight: 1000; letter-spacing: .08em; }
.crash-multiplier { inset: 48px 0 auto; font-family: Inter,sans-serif; font-size: clamp(39px,12vw,62px); font-weight: 1000; letter-spacing: -.055em; }
.crash-caption { top: 124px; padding: 0 18px; color: #8a8d97; font-size: 10px; letter-spacing: .035em; text-transform: none; }
.crash-betting-progress { position: absolute; top: 149px; left: 25%; right: 25%; height: 3px; overflow: hidden; border-radius: 5px; background: #292b33; }
.crash-betting-progress i { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left; box-shadow: 0 0 8px rgba(56,189,248,.45); }
.crash-rocket { left: 9%; bottom: 16%; width: 42px; height: 27px; display: block; border-radius: 0; color: inherit; background: transparent; box-shadow: none; font-size: 0; will-change: transform; }
.crash-rocket i { position: absolute; top: 4px; left: 4px; width: 35px; height: 16px; background: linear-gradient(180deg,#e0f2fe,#38bdf8); clip-path: polygon(0 48%,65% 34%,81% 0,91% 0,87% 35%,100% 45%,100% 57%,86% 63%,70% 100%,61% 100%,66% 63%,0 62%); filter: drop-shadow(0 0 7px rgba(56,189,248,.6)); }
.crash-rocket::before { content:""; position: absolute; top: 11px; right: 35px; width: 26px; height: 4px; border-radius: 50%; background: linear-gradient(90deg,transparent,#38bdf8); filter: blur(2px); opacity: .8; }
.crash-stage.crashed .crash-rocket { background: transparent; box-shadow: none; }
.crash-stage.crashed .crash-rocket i { background: #ff5f78; filter: drop-shadow(0 0 9px rgba(255,95,120,.8)); }
.crash-stage-foot { position: absolute; left: 12px; right: 12px; bottom: 9px; display: flex; justify-content: space-between; color: #70737d; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.crash-stage-foot b { color: #b6c8de; }
.crash-option-row { display: grid; grid-template-columns: minmax(105px,.62fr) 1fr; gap: 6px; align-items: end; }
.crash-option-row .classic-result { min-height: 40px; }
.crash-feed { overflow: hidden; border: 1px solid #26364f; border-radius: 10px; background: #101117; }
.crash-feed-head { display: flex; justify-content: space-between; padding: 8px 9px; border-bottom: 1px solid #26364f; color: #b6c8de; font-size: 9px; }
.crash-feed-head span { color: #62eeb0; font-size: 8px; font-weight: 1000; letter-spacing: .1em; }
.crash-players { max-height: 116px; overflow-y: auto; }
.crash-players > div { min-height: 31px; display: grid; grid-template-columns: 1fr auto 52px; align-items: center; gap: 8px; padding: 5px 9px; border-bottom: 1px solid rgba(255,255,255,.035); font-size: 9px; }
.crash-players > div span { color: #8fa3bd; }
.crash-players > div b { color: #dddfe5; }
.crash-players > div em { color: #777a84; font-style: normal; text-align: right; }
.crash-players > div em.won { color: #5eead4; }
.crash-players p { margin: 0; padding: 13px; color: #6e717c; font-size: 7px; text-align: center; }

.plinko-stage { min-height: 340px; padding: 0 7px 7px; background: linear-gradient(180deg,#101a2e,#0e0e16); }
.plinko-topline { position: absolute; z-index: 2; top: 8px; left: 10px; right: 10px; display: flex; justify-content: space-between; color: #777987; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.plinko-topline b { color: #93c5fd; }
.plinko-canvas { height: 306px; margin-top: 20px; }
.plinko-buckets { left: 50%; right: auto; bottom: 7px; width: var(--plinko-board-width,calc(100% - 16px)); transform: translateX(-50%); gap: 2px; }
.plinko-buckets span { padding: 5px 0; border: 1px solid rgba(255,255,255,.035); border-radius: 3px; background: linear-gradient(180deg,#31303c,#24242d); font-size: 4.8px; }
.plinko-buckets span.hot { color: #111218; background: linear-gradient(180deg,#93d9fb,#0ea5e9); box-shadow: 0 0 16px rgba(56,189,248,.66); transform: translateY(-3px); }
.plinko-stage.settled .plinko-buckets span.hot { animation: bucket-hit .35s ease-out 2 alternate; }
@keyframes bucket-hit { to { transform: translateY(-5px) scale(1.08); filter: brightness(1.25); } }

.dice-stage { min-height: 235px; display: block; padding: 18px 16px; background: linear-gradient(180deg,#131d30,#100f16); }
.dice-readout { text-align: center; }
.dice-readout small { display: block; color: #8b7b83; font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.dice-readout strong { display: block; margin-top: 4px; font-family: Inter,sans-serif; font-size: 45px; line-height: 1; letter-spacing: -.055em; }
.dice-scale { position: absolute; left: 7%; right: 7%; bottom: 76px; display: flex; justify-content: space-between; color: #686b74; font-size: 8px; font-weight: 800; }
.dice-track { left: 7%; right: 7%; bottom: 50px; height: 9px; overflow: visible; border: 1px solid #40424c; border-radius: 7px; background: #282a32; }
.dice-win-zone { position: absolute; inset: 0 auto 0 0; width: var(--dice-threshold); border-radius: 6px; background: linear-gradient(90deg,#bd3157,#ff668e); box-shadow: 0 0 10px rgba(255,95,134,.22); }
.dice-stage.over .dice-win-zone { left: var(--dice-threshold); right: 0; width: auto; }
.dice-threshold-marker,.dice-roll-marker { position: absolute; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; }
.dice-threshold-marker { left: var(--dice-threshold); width: 15px; height: 15px; border: 3px solid #eef4fb; background: #8fa3bd; }
.dice-threshold-marker span { position: absolute; left: 50%; bottom: 17px; padding: 3px 4px; border-radius: 4px; color: #b5b7c0; background: #22304c; font-size: 5px; transform: translateX(-50%); }
.dice-roll-marker { left: var(--dice-roll,50%); width: 13px; height: 13px; border: 2px solid #fff; background: #38bdf8; box-shadow: 0 0 11px rgba(56,189,248,.7); opacity: 0; transition: none; }
.dice-roll-marker.visible { opacity: 1; }
.dice-roll-marker.lost { background: #ff6b8b; box-shadow: 0 0 12px rgba(255,95,134,.7); }
.dice-roll-marker span { position: absolute; left: 50%; top: 16px; padding: 3px 5px; border-radius: 4px; color: #0c0d10; background: #fff; font-size: 5px; font-weight: 1000; transform: translateX(-50%); }
.dice-zone-copy { position: absolute; left: 0; right: 0; bottom: 14px; color: #8c8f98; font-size: 9px; font-weight: 800; text-align: center; }
.dice-settings { align-items: end; }
.dice-settings input[type="range"] { padding: 0; accent-color: #ff6b8b; }
.dice-side { grid-template-columns: repeat(2,1fr); }

.blackjack-stage { min-height: 330px; padding: 10px; border-color: #294238; border-radius: 13px; background: radial-gradient(ellipse at 50% 42%,rgba(20,117,77,.5),rgba(6,51,36,.76) 57%,#091610 88%); }
.blackjack-zone { min-height: 128px; gap: 5px; }
.card-hand { min-height: 82px; }
.playing-card { width: 58px; height: 80px; padding: 6px; border-radius: 7px; font-size: 13px; }
.playing-card b:last-child { font-size: 21px; }
.blackjack-ready { min-height: 315px; }
.blackjack-ready-mark { width: 72px; height: 72px; border-radius: 18px; font-size: 34px; }
.blackjack-actions { position: sticky; bottom: 0; }
.classic-action { min-height: 48px; border-radius: 9px; font-size: 11px; background: linear-gradient(180deg,color-mix(in srgb,var(--game-accent) 10%,#24262e),#171920); }

@media (max-width: 600px) {
  .classic-content { padding: 6px 5px 27px; }
  .classic-game { width: 100%; max-width: none; gap: 7px; }
  .classic-game-head { padding: 0 3px; }
  .classic-stage { width: 100%; border-radius: 10px; }
  .crash-stage { height: clamp(300px,43dvh,390px); }
  .plinko-stage { height: clamp(370px,51dvh,455px); min-height: 0; }
  .plinko-canvas { height: calc(100% - 27px); }
  .dice-stage { height: clamp(305px,48dvh,420px); min-height: 0; }
  .blackjack-stage { height: clamp(400px,60dvh,520px); min-height: 0; display: grid; grid-template-rows: 1fr 1px 1fr; }
  .blackjack-zone { min-height: 0; }
  .blackjack-ready { height: clamp(400px,60dvh,520px); min-height: 0; }
}

@media (max-width: 600px) and (max-height: 650px) {
  .classic-header { min-height: calc(50px + var(--safe-top)); }
  .classic-content { height: calc(100dvh - 82px - var(--safe-top) - var(--safe-bottom)); }
  .crash-stage { height: 300px; }
  .plinko-stage { height: 370px; }
  .dice-stage { height: 285px; }
  .blackjack-stage,.blackjack-ready { height: 370px; }
}

@media (min-width: 601px) and (max-width: 759px) {
  .classic-content { padding-inline: 10px; }
  .crash-stage { height: 400px; }
  .plinko-stage { height: 460px; }
  .plinko-canvas { height: calc(100% - 27px); }
  .dice-stage { height: 360px; }
  .blackjack-stage,.blackjack-ready { height: 460px; }
}

@media (min-width: 760px) {
  .classic-content { padding: 10px 14px 28px; }
  .classic-game { max-width: none; min-height: calc(100dvh - 110px - var(--safe-top) - var(--safe-bottom)); grid-template-columns: minmax(0,1fr) clamp(310px,28vw,390px); gap: 10px 12px; align-items: stretch; }
  .classic-game > .classic-game-head { grid-column: 1 / -1; grid-row: 1; }

  .classic-game[data-game="crash"] { grid-template-rows: auto auto auto minmax(120px,1fr); }
  .classic-game[data-game="crash"] > .crash-history { grid-column: 1; grid-row: 2; }
  .classic-game[data-game="crash"] > .crash-stage { grid-column: 1; grid-row: 3 / 5; min-height: 0; height: auto; }
  .classic-game[data-game="crash"] > .crash-option-row { grid-column: 2; grid-row: 2; }
  .classic-game[data-game="crash"] > .classic-controls { grid-column: 2; grid-row: 3; }
  .classic-game[data-game="crash"] > .crash-feed { grid-column: 2; grid-row: 4; min-height: 0; }
  .classic-game[data-game="crash"] .crash-players { max-height: none; height: 100%; }

  .classic-game[data-game="plinko"],.classic-game[data-game="dice"],.classic-game[data-game="blackjack"] { grid-template-rows: auto auto auto auto minmax(0,1fr); }
  .classic-game[data-game="plinko"] > .plinko-stage,.classic-game[data-game="dice"] > .dice-stage,.classic-game[data-game="blackjack"] > .classic-stage { grid-column: 1; grid-row: 2 / 6; min-height: 0; height: auto; }
  .classic-game[data-game="plinko"] > .classic-segments,.classic-game[data-game="dice"] > .classic-control-row,.classic-game[data-game="blackjack"] > .classic-result { grid-column: 2; grid-row: 2; align-self: start; }
  .classic-game[data-game="plinko"] > .classic-result,.classic-game[data-game="dice"] > .classic-segments,.classic-game[data-game="blackjack"] > .classic-controls,.classic-game[data-game="blackjack"] > .blackjack-actions { grid-column: 2; grid-row: 3; align-self: start; }
  .classic-game[data-game="plinko"] > .classic-controls,.classic-game[data-game="dice"] > .classic-result { grid-column: 2; grid-row: 4; align-self: start; }
  .classic-game[data-game="dice"] > .classic-controls { grid-column: 2; grid-row: 5; align-self: start; }

  .plinko-canvas { height: calc(100% - 27px); }
  .plinko-buckets span { font-size: 6px; }
  .dice-readout { margin-top: clamp(24px,8dvh,74px); }
  .dice-scale { bottom: 30%; }
  .dice-track { bottom: 25%; }
  .dice-zone-copy { bottom: 16%; }
  .blackjack-zone { min-height: 0; }
  .blackjack-stage { display: grid; grid-template-rows: 1fr 1px 1fr; }
}

@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); }
  .classic-card { grid-template-columns: 34px 1fr; padding: 10px; }
  .classic-card-icon { width: 34px; height: 34px; }
  .classic-bets { grid-template-columns: repeat(3,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; }
}
