/* GiftGrab — theme + new screens (loaded after style.css) */
:root { --bg: #000; --card: #121316; --card2: #1a1c20; --card3: #23262c; }
body, #app, html { background: #000; }
#app { background: #000; }
.page { background: #000; }

/* top bar like the reference */
.topbar { margin-bottom: 14px; }
.online { background: #121316; color: #fff; padding: 0 13px 0 12px; gap: 8px; font-size: 15px; }
.online .dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 0 rgba(52, 199, 89, .6); animation: pulse 1.8s infinite; }
.online span { animation: none; }
.bal { background: #121316; }
.bal .plus { background: #1a7cff; }
.bal span { min-width: 34px; text-align: right; }

/* live strip */
.lvbar { height: 56px; gap: 9px; margin: 0 -15px 6px 0; }
.lv { width: 52px; height: 52px; border-radius: 15px; background: #121316; flex-direction: column; gap: 4px; }
.lv i { position: static; margin: 0; width: 7px; height: 7px; background: #ff3b30; animation: pulseR 1.6s infinite; }
.lv span { writing-mode: horizontal-tb; transform: none; color: #ff3b30; font-size: 12.5px; font-weight: 500; }
@keyframes pulseR { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .6); } 70% { box-shadow: 0 0 0 7px rgba(255, 59, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }
.lt { height: 56px; gap: 9px; }
.li { width: 52px; height: 52px; border-radius: 15px; background: #121316; margin-top: 2px; }
.li img { width: 38px; height: 38px; }
.li.new::after { background: #1a7cff; border-radius: 15px; }
@keyframes liIn { from { width: 0; margin-right: -9px; opacity: 0; } to { width: 52px; margin-right: 0; opacity: 1; } }
.tabs2 { margin: 10px 0 14px; font-size: 18px; }

/* cases — black cards like the reference */
.cgrid { gap: 12px; }
.case { background: #121316 !important; border-radius: 20px; aspect-ratio: 1 / 1.08; box-shadow: none; border: 1px solid rgba(255, 255, 255, .03); }
.case .glow { bottom: -55%; opacity: .32; }
.case::after { display: none; }
.case > img.art { left: 6%; top: 19%; width: 88%; height: 80%; }
.case.free > img.art { top: 19%; }
.chip { background: #1c1e23; font-size: 13.5px; }
.chip svg { width: 18px; height: 18px; }
.case .spk { width: 2.5px; height: 2.5px; }

/* nav */
#nav { background: rgba(28, 30, 34, .62); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); }
.nav-hl { background: rgba(26, 124, 255, .16); }
#nav .it.on { color: #2f86ff; }

/* sheets darker */
.sheet { background: #141518; }
.sheet.nob { bottom: calc(14px + var(--safe-b)); }
.hd .t, .set-hd .t { background: #1f2125; }
.seg { background: #1c1e22; }
.info, .got, .inp, .cell, .rt { background: #1e2024; }
.sbtn.gold { background: linear-gradient(90deg, #ffb21c, #ff8a1c); color: #2a1a00; }
.got .it { gap: 12px; }
.got .tx { flex: 1; min-width: 0; }
.got .pr { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 500; }
.got .ic { border-radius: 14px; }
.cell .cn { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 9.5px; color: #8b9099; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.cell img { top: 54%; }
.pay { display: flex; flex-direction: column; align-items: center; padding: 6px 0 12px; text-align: center; }
.pay .pst svg { width: 64px; height: 64px; }
.pay b { font-size: 26px; margin-top: 10px; }
.pay p { color: #c9ccd2; margin-top: 4px; font-size: 14px; }
.pay small { color: #6d727b; margin-top: 10px; font-size: 12px; line-height: 16px; max-width: 280px; }
.qrow { display: flex; gap: 8px; margin: -4px 0 12px; }
.qrow button { flex: 1; height: 34px; border-radius: 17px; background: #1e2024; font-size: 14px; }
.lbl a { color: #6d727b; font-size: 13px; }
.sbpn { display: flex; gap: 12px; align-items: center; background: #1e2024; border-radius: 18px; padding: 12px 14px; font-size: 12.5px; color: #c9ccd2; line-height: 17px; }
.sbpn svg { width: 30px; height: 30px; flex: none; }
.coins button { display: flex; align-items: center; justify-content: center; gap: 8px; }
.coins button svg { width: 20px; height: 20px; }
.ic.em { font-size: 26px; }
.tk { padding: 2px 0; }
.tk .ic.em { background: #26292e; font-size: 20px; }
.tk .ck { margin-left: auto; display: grid; place-items: center; color: transparent; }
.tk .ck svg { width: 14px; height: 14px; }
.tk.done .ck { background: #34c759; border-color: #34c759; color: #fff; }
.tk.busy .ck { border-color: #3b82f0; border-top-color: transparent; animation: spin .8s linear infinite; }
.tk.done > div { color: #8b9099; }

/* ====================== GAMES HUB ====================== */
#p-games { overflow: hidden; padding: 0; }
.ghub { position: absolute; inset: 0; overflow-y: auto; padding: 15px 15px calc(96px + var(--safe-b)); scrollbar-width: none; transition: transform .45s var(--ease), opacity .35s; }
.ghub::-webkit-scrollbar { display: none; }
#p-games.ingame .ghub { transform: translateX(-24%); opacity: 0; pointer-events: none; }
.gscreen { position: absolute; inset: 0; background: #000; transform: translateX(100%); transition: transform .45s var(--ease); display: flex; flex-direction: column; z-index: 2; }
#p-games.ingame .gscreen { transform: none; }
.ggrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gcard { position: relative; height: 172px; border-radius: 20px; background: #121316; overflow: hidden; animation: caseIn .55s var(--ease) backwards; border: 1px solid rgba(255, 255, 255, .03); }
.gcard::before { content: ''; position: absolute; left: -20%; right: -20%; bottom: -60%; height: 100%; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); opacity: .35; }
.gart { position: absolute; inset: 0 0 46px; }
.gtx { position: absolute; left: 13px; right: 10px; bottom: 11px; }
.gtx b { display: block; font-size: 16.5px; font-weight: 500; }
.gtx small { display: block; font-size: 11.5px; color: #8b9099; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glive { position: absolute; top: 10px; right: 10px; height: 20px; padding: 0 7px; border-radius: 10px; background: rgba(0, 0, 0, .45); font-style: normal; font-size: 11px; display: flex; align-items: center; gap: 5px; }
.glive em { width: 6px; height: 6px; border-radius: 50%; background: #34c759; }
.ga1 { position: absolute; width: 112px; left: 50%; top: 52%; transform: translate(-50%, -50%) rotate(-8deg); animation: gaFly 3.2s ease-in-out infinite; filter: drop-shadow(0 6px 16px rgba(80, 220, 255, .35)); }
@keyframes gaFly { 0%, 100% { transform: translate(-52%, -46%) rotate(-8deg); } 50% { transform: translate(-46%, -56%) rotate(-14deg); } }
.ga-wheel { position: absolute; width: 104px; height: 104px; left: 50%; top: 54%; margin: -52px 0 0 -52px; border-radius: 50%; background: conic-gradient(#ff3d6e 0 22%, #1a7cff 0 41%, #34c759 0 60%, #ffb21c 0 74%, #a65cff 0 88%, #2fd3c4 0); animation: spin 9s linear infinite; box-shadow: 0 0 0 4px #0b0c0f, 0 8px 22px rgba(0, 0, 0, .5); }
.ga-wheel::after { content: ''; position: absolute; inset: 30%; border-radius: 50%; background: #0b0c0f; }
.ga2 { position: absolute; width: 40px; left: 50%; top: 54%; transform: translate(-50%, -50%); }
.ga3 { position: absolute; width: 92px; left: 50%; top: 54%; transform: translate(-50%, -50%); animation: floaty 4s ease-in-out infinite; }
.ga-up { position: absolute; right: 22px; top: 22px; width: 34px; height: 34px; border-radius: 50%; background: #34c759; display: grid; place-items: center; color: #fff; box-shadow: 0 4px 14px rgba(52, 199, 89, .5); animation: upB 1.6s ease-in-out infinite; }
.ga-up svg { width: 20px; height: 20px; }
@keyframes upB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.ga-coin { position: absolute; width: 96px; height: 96px; left: 50%; top: 54%; margin: -48px 0 0 -48px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, #ffc93a 40%, #c98a10 75%, #8a5a00); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .25), 0 10px 24px rgba(255, 178, 28, .35); display: grid; place-items: center; animation: coinT 3.4s ease-in-out infinite; }
.ga-coin img { width: 64%; filter: sepia(1) saturate(2.6) hue-rotate(-8deg) brightness(1.05) contrast(1.1); mix-blend-mode: multiply; }
@keyframes coinT { 0%, 100% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(180deg) translateY(-6px); } }
.ga4 { position: absolute; width: 74px; left: 26%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg); }
.ga5 { position: absolute; width: 64px; left: 68%; top: 44%; transform: translate(-50%, -50%) rotate(10deg); animation: floaty 4s ease-in-out infinite; }
.ga6, .ga7 { position: absolute; width: 50px; top: 30%; animation: floaty 3.6s ease-in-out infinite; }
.ga6 { left: 12%; } .ga7 { right: 12%; animation-delay: -1.8s; }
.ga8 { position: absolute; width: 76px; left: 50%; top: 58%; transform: translate(-50%, -50%); filter: drop-shadow(0 0 16px rgba(166, 92, 255, .7)); }

/* game screen chrome */
.ghd { flex: none; display: flex; align-items: center; gap: 10px; padding: 15px 15px 10px; }
.gback { width: 36px; height: 36px; border-radius: 50%; background: #121316; display: grid; place-items: center; color: #fff; }
.gback svg { width: 20px; height: 20px; }
.ghd .gt { flex: 1; font-size: 19px; font-weight: 500; }
.gbody { flex: 1; overflow-y: auto; padding: 4px 15px calc(96px + var(--safe-b)); scrollbar-width: none; }
.gbody::-webkit-scrollbar { display: none; }
.note { color: #5d626b; font-size: 12px; line-height: 16px; margin: 14px 4px 0; }
.sect { color: #6d727b; }

/* shared controls */
.cpanel { background: #121316; border-radius: 20px; padding: 10px; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.crow { display: flex; gap: 10px; align-items: center; }
.amt { flex: 1; height: 44px; border-radius: 22px; background: #1e2024; display: flex; align-items: center; padding: 0 4px; }
.amt.sm { flex: .9; }
.amt button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #2a2d33; flex: none; }
.amt button svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 2.2; }
.amt label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; color: #8b9099; min-width: 0; }
.amt label svg { width: 18px; height: 18px; flex: none; }
.amt input { width: 64px; text-align: center; font-size: 16px; color: #fff; font-variant-numeric: tabular-nums; }
.qk { display: flex; gap: 6px; }
.qk button { height: 44px; min-width: 44px; padding: 0 10px; border-radius: 22px; background: #1e2024; font-size: 14px; }
.autos { flex: 1.1; height: 44px; border-radius: 22px; background: #1e2024; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 14px; font-size: 14.5px; }
.lbl2 { flex: none; font-size: 14px; color: #8b9099; padding-left: 6px; }
.bigbtn { height: 50px; border-radius: 25px; background: var(--blue); font-size: 16px; font-weight: 500; width: 100%; transition: background .3s, transform .32s var(--spring), filter .2s; }
.bigbtn b { font-variant-numeric: tabular-nums; }
.bigbtn.dim { background: #1b3a66; color: #a9c6f0; }
.bigbtn.cash, .bigbtn.green { background: #2fb350; }
.two2 { display: flex; gap: 10px; }
.two2 .bigbtn { flex: 1; font-size: 14.5px; }

/* ====================== CRASH ====================== */
.cstage { position: relative; height: 300px; border-radius: 22px; overflow: hidden; background: radial-gradient(120% 90% at 50% 100%, #0b1a33 0%, #05070c 55%, #000 100%); border: 1px solid rgba(255, 255, 255, .04); }
#ccv { position: absolute; inset: 0; width: 100%; height: 100%; }
.crk { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; will-change: transform; transition: opacity .25s; }
.crl { position: absolute; width: 150px; height: 150px; left: -75px; top: -75px; filter: drop-shadow(0 0 18px rgba(80, 230, 255, .35)); }
.crl img, .crl svg { width: 100% !important; height: 100% !important; }
.cmx { position: absolute; left: 0; right: 0; top: 18px; text-align: center; font-size: 46px; font-weight: 500; letter-spacing: -.5px; font-variant-numeric: tabular-nums; opacity: 0; transform: scale(.9); transition: opacity .3s, transform .4s var(--spring), color .3s; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); pointer-events: none; }
.cmx.on { opacity: 1; transform: none; }
.cmx.red { color: var(--red); }
.cwait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; opacity: 0; transition: opacity .35s; pointer-events: none; }
.cwait.on { opacity: 1; }
.cwait span { color: #8b9099; font-size: 14px; }
.cwait b { font-size: 54px; font-weight: 300; font-variant-numeric: tabular-nums; }
.cwait i { width: 150px; height: 4px; border-radius: 2px; background: #1e2024; overflow: hidden; margin-top: 6px; }
.cwait em { display: block; height: 100%; background: var(--blue); transform-origin: left; }
.cgift { position: absolute; left: 10px; bottom: 10px; height: 46px; padding: 0 14px 0 5px; border-radius: 23px; background: rgba(18, 19, 22, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .4s var(--ease); }
.cgift.on { opacity: 1; transform: none; }
.cgift .gi { width: 38px; height: 38px; }
.cgift .gi img { width: 100%; height: 100%; object-fit: contain; }
.cgift b { display: block; font-size: 15px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cgift small { display: block; font-size: 11px; color: #8b9099; white-space: nowrap; }
#p-games .pills-wrap { margin-top: 10px; }
.plhd { display: flex; justify-content: space-between; align-items: center; margin: 16px 4px 8px; font-size: 14px; color: #8b9099; }
.plhd span { display: flex; align-items: center; gap: 6px; }
.plhd b { color: #fff; font-weight: 500; }
.plhd svg { width: 16px; height: 16px; }
.plist2 { background: #121316; border-radius: 20px; padding: 4px 12px; min-height: 60px; }
.prow2 { display: flex; align-items: center; height: 60px; position: relative; border-radius: 14px; transition: background .4s, opacity .4s; animation: rowIn .45s var(--ease) backwards; }
.prow2 + .prow2::before { content: ''; position: absolute; left: 50px; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, .06); }
.prow2 .av { width: 38px; height: 38px; font-size: 15px; }
.prow2.me .pn { color: #5aa2ff; }
.prow2.lose { opacity: .75; }
.pinf { flex: 1; min-width: 0; margin-left: 12px; }
.pn { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.you { font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 8px; background: #1a7cff; color: #fff; margin-left: 4px; vertical-align: 1px; }
.pb { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: #8b9099; margin-top: 2px; }
.pb svg { width: 13px; height: 13px; }
.pst { text-align: right; font-variant-numeric: tabular-nums; }
.pst b { display: block; font-size: 14.5px; font-weight: 500; }
.pst small { display: block; font-size: 11.5px; color: #6d727b; margin-top: 1px; }
.cG { color: #34c759 !important; } .cR { color: #ff453a !important; } .cW { color: #6d727b; }

/* ====================== ARENA ====================== */
.arw { position: relative; width: 280px; height: 280px; margin: 6px auto 0; }
#arc { width: 280px; height: 280px; display: block; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.arptr { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 20px solid #fff; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); z-index: 2; }
.arc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.arc b { font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; }
.arc small { font-size: 11.5px; color: #8b9099; max-width: 100px; text-align: center; }
.arinfo, .upst, .cfinfo, .mnhd { display: flex; gap: 10px; margin-top: 14px; }
.arinfo > div, .upst > div, .cfinfo > div, .mnhd > div { flex: 1; background: #121316; border-radius: 16px; padding: 9px 12px; }
.arinfo small, .upst small, .cfinfo small, .mnhd small { display: block; font-size: 11.5px; color: #6d727b; }
.arinfo b, .upst b, .cfinfo b, .mnhd b { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 500; margin-top: 2px; font-variant-numeric: tabular-nums; }
.upst b svg, .cfinfo b svg { width: 16px; height: 16px; }
.arcol { width: 4px; height: 30px; border-radius: 2px; margin-right: 8px; flex: none; }

/* ====================== UPGRADE ====================== */
.upw { position: relative; width: 240px; height: 240px; margin: 4px auto 0; }
.upring { width: 100%; height: 100%; transform: rotate(-90deg); }
.upring .trk { fill: none; stroke: #1e2024; stroke-width: 14; }
.upring .arc { fill: none; stroke: #34c759; stroke-width: 14; stroke-linecap: round; transition: stroke-dasharray .5s var(--ease); filter: drop-shadow(0 0 8px rgba(52, 199, 89, .5)); }
.upptr { position: absolute; inset: 0; pointer-events: none; }
.upptr::before { content: ''; position: absolute; left: 50%; top: 4px; margin-left: -8px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 16px solid #fff; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.upc { position: absolute; inset: 40px; border-radius: 50%; background: radial-gradient(circle, #1a1c20, #0c0d10); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.upimg { width: 84px; height: 84px; }
.upimg img { width: 100%; height: 100%; object-fit: contain; }
.upc b { font-size: 22px; font-weight: 500; }
.upc small { font-size: 11.5px; color: #8b9099; max-width: 120px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upq { display: flex; gap: 8px; margin-top: 14px; }
.upq button { flex: 1; height: 40px; border-radius: 20px; background: #121316; border: 1px solid rgba(52, 199, 89, .35); color: #5fe07e; font-size: 15px; font-weight: 500; }
.ipick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.icell { position: relative; aspect-ratio: 1 / 1.12; border-radius: 14px; background: #121316; border: 1.5px solid transparent; transition: border-color .25s, background .25s; overflow: hidden; }
.icell img { position: absolute; left: 50%; top: 42%; width: 62%; height: 62%; object-fit: contain; transform: translate(-50%, -50%); }
.icell span { position: absolute; left: 0; right: 0; bottom: 5px; display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-variant-numeric: tabular-nums; }
.icell span svg { width: 12px; height: 12px; }
.icell em { position: absolute; top: 4px; right: 5px; font-style: normal; font-size: 10px; color: #5fe07e; font-weight: 500; }
.icell .ck { position: absolute; top: 5px; left: 5px; width: 16px; height: 16px; border-radius: 50%; background: #1a7cff; color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .3s var(--spring); }
.icell .ck svg { width: 10px; height: 10px; }
.icell.on { border-color: #1a7cff; background: #12223a; }
.icell.on .ck { transform: scale(1); }
.iempty { grid-column: 1 / -1; color: #5d626b; font-size: 13px; text-align: center; padding: 20px 0; }

/* ====================== COIN ====================== */
.cnw { position: relative; height: 230px; perspective: 900px; display: grid; place-items: center; }
.coin3d { position: relative; width: 150px; height: 150px; transform-style: preserve-3d; }
.cf { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; display: grid; place-items: center; }
.cf.a { background: radial-gradient(circle at 35% 28%, #ffffff, #d9dde4 35%, #9aa1ad 70%, #6b717c); box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .35), inset 0 0 0 9px rgba(0, 0, 0, .12), 0 0 30px rgba(200, 210, 230, .25); }
.cf.a span { font-size: 25px; font-weight: 900; letter-spacing: -.5px; background: linear-gradient(180deg, #8e95a1, #4f5560); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.cf.b { transform: rotateX(180deg); background: radial-gradient(circle at 35% 28%, #fff3b0, #ffc93a 38%, #d4920f 72%, #8a5a00); box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .3), inset 0 0 0 9px rgba(0, 0, 0, .14), 0 0 34px rgba(255, 178, 28, .35); }
.cf.b img { width: 70%; filter: sepia(1) saturate(2.4) hue-rotate(-6deg) brightness(.98) contrast(1.15); }
.cshadow { position: absolute; bottom: 14px; left: 50%; width: 120px; height: 16px; margin-left: -60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .8), transparent); opacity: .6; }
.ladder { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.ladder span { flex: 1; min-width: 44px; height: 30px; border-radius: 15px; background: #121316; display: grid; place-items: center; font-size: 12.5px; color: #6d727b; transition: all .3s; }
.ladder span.done { background: #173a22; color: #5fe07e; }
.ladder span.next { background: #1a7cff; color: #fff; transform: scale(1.06); }
.cnside { display: flex; gap: 10px; margin-top: 12px; }
.cnside button { flex: 1; height: 54px; border-radius: 18px; background: #121316; border: 1.5px solid transparent; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; transition: border-color .25s, background .25s; }
.cnside button.on { border-color: #1a7cff; background: #12223a; }
.mc { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 900; }
.mc.a { background: radial-gradient(circle at 35% 30%, #fff, #a8aeb8); color: #555b66; }
.mc.b { background: radial-gradient(circle at 35% 30%, #fff3b0, #d4920f); }
.mc.b img { width: 22px; filter: sepia(1) saturate(2.4) brightness(.95); }
.cnwin { text-align: center; font-size: 14px; color: #8b9099; }
.cnwin b { color: #5fe07e; font-size: 18px; font-weight: 500; }

/* ====================== MINES ====================== */
.mnhd { margin-top: 2px; }
.mgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 12px; }
.mc2 { position: relative; aspect-ratio: 1; border-radius: 13px; background: linear-gradient(160deg, #1d2026, #121316); border: 1px solid rgba(255, 255, 255, .05); overflow: hidden; display: grid; place-items: center; animation: caseIn .45s var(--ease) backwards; transition: transform .25s var(--spring), background .3s; }
.mc2 .cov { position: absolute; inset: 0; display: grid; place-items: center; background-image: radial-gradient(circle at 30% 25%, rgba(26, 124, 255, .18), transparent 60%); }
.mc2 .cov span { font-size: 13px; font-weight: 900; letter-spacing: -.3px; color: rgba(255, 255, 255, .09); }
.mc2.act { cursor: pointer; }
.mc2.act .cov::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .07) 50%, transparent 60%); background-size: 300% 100%; animation: glint 2.4s infinite; }
.mc2.open { animation: mcOpen .45s var(--spring); }
.mc2.safe { background: radial-gradient(circle, #173a22, #0f1a13); border-color: rgba(52, 199, 89, .35); }
.mc2.bomb { background: radial-gradient(circle, #4a1414, #1a0b0b); border-color: rgba(255, 69, 58, .45); }
.mc2.ghost { opacity: .45; }
.mc2 img { width: 74%; height: 74%; object-fit: contain; }
@keyframes mcOpen { 0% { transform: scale(.8) rotateY(90deg); } 100% { transform: none; } }
.mnseg { margin: 0; }

/* ====================== CRAFT ====================== */
.cfw { margin-top: 4px; }
.cforge { position: relative; width: 250px; height: 250px; margin: 0 auto; }
.cforge .r1, .cforge .r2 { position: absolute; inset: 20px; border-radius: 50%; border: 2px dashed rgba(166, 92, 255, .35); animation: spin 24s linear infinite; }
.cforge .r2 { inset: 52px; border: 2px solid rgba(166, 92, 255, .2); animation-direction: reverse; animation-duration: 14s; }
.cforge.go .r1 { animation-duration: 1.2s; border-color: #a65cff; }
.cforge.go .r2 { animation-duration: .8s; box-shadow: 0 0 40px rgba(166, 92, 255, .6); }
.cforge.ok .cfres { box-shadow: 0 0 0 3px #34c759, 0 0 40px rgba(52, 199, 89, .6); }
.cforge.fail .cfres { box-shadow: 0 0 0 3px #ff453a, 0 0 40px rgba(255, 69, 58, .5); animation: shake .4s; }
@keyframes shake { 25% { transform: translate(-50%, -50%) translateX(-6px); } 75% { transform: translate(-50%, -50%) translateX(6px); } }
.cfres { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #241a33, #0c0a10); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: box-shadow .4s; }
.cfres img { width: 70px; height: 70px; object-fit: contain; }
.cfres small { font-size: 10.5px; color: #b9a3e0; max-width: 100px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfslots { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.cfslots img { position: absolute; width: 46px; height: 46px; left: -23px; top: -23px; object-fit: contain; transition: transform .5s var(--spring); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
#p-games .seg { margin-top: 12px; }

/* ====================== LEADERBOARD ====================== */
.lbhero { border-radius: 24px; background: radial-gradient(120% 100% at 50% 0%, #2a2410 0%, #121316 60%); padding: 16px 12px 14px; border: 1px solid rgba(255, 200, 60, .08); }
.lbt b { display: block; font-size: 20px; font-weight: 500; text-align: center; }
.lbt small { display: block; text-align: center; color: #8b9099; font-size: 12.5px; margin-top: 3px; }
.lbt small span { color: #ffcf5c; }
.podium { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px; }
.pd { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; padding: 10px 4px 12px; border-radius: 18px; background: rgba(255, 255, 255, .03); }
.pd.p1 { padding-top: 4px; padding-bottom: 22px; background: rgba(255, 200, 60, .07); }
.pd > img { width: 64px; height: 64px; object-fit: contain; animation: floaty 4s ease-in-out infinite; }
.pd.p1 > img { width: 84px; height: 84px; }
.pdav .av { width: 34px; height: 34px; font-size: 14px; margin-top: 4px; box-shadow: 0 0 0 2px #121316; }
.pd b { font-size: 12.5px; font-weight: 500; margin-top: 5px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd small { display: flex; align-items: center; gap: 3px; font-size: 11.5px; color: #c9ccd2; }
.pd small svg { width: 12px; height: 12px; }
.pd > i { position: absolute; top: 8px; left: 9px; font-style: normal; font-size: 12px; font-weight: 700; color: #6d727b; }
.pd.p1 > i { color: #ffcf5c; } .pd.p2 > i { color: #c8d0dc; } .pd.p3 > i { color: #e39a5c; }
.lblist { margin-top: 14px; background: #121316; border-radius: 20px; padding: 4px 12px; }
.lbrow { display: flex; align-items: center; height: 62px; position: relative; }
.lbrow + .lbrow::before { content: ''; position: absolute; left: 50px; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, .06); }
.lbp { width: 44px; height: 44px; position: relative; flex: none; margin-right: 8px; }
.lbp img { width: 100%; height: 100%; object-fit: contain; }
.lbp i { position: absolute; left: -2px; bottom: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: #23262c; font-style: normal; font-size: 11px; display: grid; place-items: center; padding: 0 4px; font-weight: 500; }
.lbrow.top .lbp i { background: #ffb21c; color: #2a1a00; }
.lbrow .av { width: 34px; height: 34px; font-size: 14px; }
.lbd { display: flex; align-items: center; gap: 5px; font-size: 14px; font-variant-numeric: tabular-nums; }
.lbd svg { width: 15px; height: 15px; }
.lbd b { font-weight: 500; }
.lbrow.me { border-top: 1px dashed rgba(255, 255, 255, .08); }
.lbrow.me::before { display: none; }

/* ====================== PROFILE ====================== */
.pfh { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.pfh .pf-av { width: 72px; height: 72px; margin: 0; flex: none; }
.pfh > div:nth-child(2) { flex: 1; min-width: 0; }
.pfn { display: block; font-size: 21px; font-weight: 500; }
.pfh small { color: #6d727b; font-size: 14px; }
.pfh .circ { background: #121316; color: #fff; }
.pfh .circ svg { fill: none; stroke: #fff; }
.pfst { display: flex; gap: 10px; margin-top: 16px; }
.pfst > div { flex: 1; background: #121316; border-radius: 18px; padding: 10px 12px; position: relative; overflow: hidden; }
.pfst small { display: block; font-size: 11.5px; color: #6d727b; }
.pfst b { display: block; font-size: 19px; font-weight: 500; margin-top: 3px; }
.pfst .td img { position: absolute; right: 6px; bottom: 4px; width: 40px; height: 40px; object-fit: contain; }
.invh { display: flex; justify-content: space-between; align-items: center; margin: 20px 4px 10px; }
.invh b { font-size: 17px; font-weight: 500; }
.invh span { display: flex; align-items: center; gap: 4px; color: #8b9099; font-size: 13px; }
.invh span svg { width: 14px; height: 14px; }
.invg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.inv2 { aspect-ratio: 1 / 1.1; }
.inv2.wait img { opacity: .45; }
.inv2 .wd { left: 4px; right: 4px; top: 6px; text-align: center; color: #ffcf5c; font-size: 9.5px; }
.itbig { display: flex; flex-direction: column; align-items: center; padding: 4px 0 16px; }
.itbig .lot { width: 150px; height: 150px; }
.itbig .lot img, .itbig .lot svg { width: 100% !important; height: 100% !important; object-fit: contain; }
.itbig b { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 500; margin-top: 6px; }
.itbig b svg { width: 22px; height: 22px; }
.itbig small { color: #6d727b; font-size: 12px; margin-top: 2px; }
.wdinfo { display: flex; gap: 10px; align-items: center; background: #2a2410; border-radius: 16px; padding: 12px 14px; color: #ffdf8a; font-size: 13px; line-height: 17px; }
.wdinfo svg { width: 24px; height: 24px; flex: none; }
#p-profile .pat { opacity: .035; }
.pf-btns .b { background: #121316; border-color: #1d6fe6; }

/* loader v2: paper plane in TON colours */
#loader { display: grid; place-items: center; }
.ld2 { position: relative; width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; padding: 0 32px; }
.ld2-sky { position: absolute; inset: -40vh -20px; pointer-events: none; overflow: hidden; }
.ld2-sky i { position: absolute; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(120, 200, 255, 0), rgba(120, 200, 255, .55)); animation: ldWind 1.4s linear infinite; }
.ld2-sky i:nth-child(1) { top: 36%; width: 90px; animation-delay: 0s; }
.ld2-sky i:nth-child(2) { top: 44%; width: 60px; animation-delay: .5s; }
.ld2-sky i:nth-child(3) { top: 52%; width: 120px; animation-delay: .9s; }
.ld2-sky i:nth-child(4) { top: 40%; width: 40px; animation-delay: 1.15s; }
.ld2-sky i:nth-child(5) { top: 57%; width: 70px; animation-delay: .3s; }
@keyframes ldWind { from { transform: translateX(110vw); } to { transform: translateX(-140px); } }
.ld2-plane { position: relative; width: 132px; height: 110px; animation: ldFly 2.4s ease-in-out infinite; filter: drop-shadow(0 14px 22px rgba(0, 152, 234, .45)); }
.ld2-plane svg { position: relative; z-index: 1; width: 100%; height: 100%; }
@keyframes ldFly { 0%, 100% { transform: translate(-4px, 4px) rotate(-3deg); } 50% { transform: translate(6px, -10px) rotate(3deg); } }
.ld2-trail { position: absolute; left: -70px; top: 44px; width: 96px; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(127, 208, 255, .75) 0 10px, transparent 10px 18px); mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); animation: ldTrail .5s linear infinite; }
@keyframes ldTrail { to { background-position: 18px 0; } }
.ld2-name { margin-top: 26px; font: 800 26px/1 Unbounded, Roboto, sans-serif; color: #fff; letter-spacing: .5px; }
.ld2-name b { color: #2aa8ff; font-weight: 800; }
.ld2-bar { margin-top: 26px; width: 100%; height: 8px; border-radius: 8px; background: rgba(42, 168, 255, .14); overflow: hidden; }
.ld2-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #0098ea, #48c2ff); box-shadow: 0 0 14px rgba(72, 194, 255, .8); }
.ld2-txt { margin-top: 12px; font: 500 13px Roboto, sans-serif; color: #7fa9cc; letter-spacing: .3px; }
/* coin polish */
.cf.a span { background: linear-gradient(180deg, #6b717c, #2f343c); -webkit-background-clip: text; background-clip: text; font-size: 26px; }
.cf.a, .cf.b { border: 3px solid rgba(255, 255, 255, .18); }
.coin3d::before { content: ''; position: absolute; inset: 0; border-radius: 50%; transform: translateZ(-4px); background: #8a8f99; }
.ladder { gap: 5px; }
.ladder span { min-width: 0; font-size: 11.5px; }
.crl { filter: drop-shadow(0 0 10px rgba(80, 230, 255, .25)); }
/* QA fixes */
.sbtn.off { background: #1b3a66; color: #a9c6f0; pointer-events: none; }
.bigbtn.dim2 { filter: saturate(.7) brightness(.85); }
.bmi { width: 15px; height: 15px; vertical-align: -2px; margin-left: 4px; display: inline-block; }
.dprev { font-size: 12.5px; color: #8b9099; margin: -4px 6px 4px; min-height: 16px; }
.cfres .hint { color: #6d727b; font-size: 11px; line-height: 14px; white-space: normal; }
.lbrow.meh .pn { color: #5aa2ff; }
.cpanel > .lbl2 { padding: 2px 6px 0; }
.pfh .pf-av.av { display: grid; place-items: center; font-size: 30px; font-weight: 500; }
/* lighter top bar / live strip like the reference */
.lvbar { height: 48px; gap: 8px; }
.lv, .li { width: 44px; height: 44px; border-radius: 13px; }
.lt { height: 48px; gap: 8px; }
.li img { width: 31px; height: 31px; }
.lv span { font-size: 11.5px; }
@keyframes liIn { from { width: 0; margin-right: -8px; opacity: 0; } to { width: 44px; margin-right: 0; opacity: 1; } }
.online, .bal { font-size: 14px; }
/* narrow phones */
@media (max-width: 345px) {
  .qk button { min-width: 36px; padding: 0 7px; font-size: 13px; }
  .amt input { width: 46px; }
  .amt button { width: 32px; height: 32px; }
  .autos { padding-left: 10px; font-size: 13px; }
  .arinfo b, .upst b, .cfinfo b, .mnhd b { font-size: 13.5px; }
  .seg button { font-size: 13px; }
  .ipick { grid-template-columns: repeat(3, 1fr); }
}
/* payments */
.dtabs { flex: none; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -10px 12px; padding: 0 10px; }
.dtabs::-webkit-scrollbar { display: none; }
.dtabs button { flex: none; min-width: 78px; height: 52px; border-radius: 16px; background: #1e2024; border: 1.5px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0 10px; transition: border-color .25s, background .25s; }
.dtabs button b { font-size: 14px; font-weight: 500; }
.dtabs button small { font-size: 10.5px; color: #6d727b; }
.dtabs button.on { border-color: #1a7cff; background: #12223a; }
.dtabs button.na { opacity: .45; }
.waitpay { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 8px 18px; gap: 8px; }
.waitpay b { font-size: 16px; font-weight: 500; }
.waitpay small { color: #8b9099; font-size: 12.5px; line-height: 18px; word-break: break-all; }
.waitpay code { color: #cfe0ff; background: #1e2024; padding: 1px 6px; border-radius: 6px; }
.sp2 { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #1e2024; border-top-color: #1a7cff; animation: spin .9s linear infinite; }
.sbpn b { color: #fff; }
.tkh { display: block; font-size: 11.5px; color: #5aa2ff; margin-top: 2px; }
.mc2.pending { opacity: .6; }
#offline { position: absolute; left: 12px; right: 12px; top: 8px; z-index: 80; padding: 10px 14px; border-radius: 14px; background: rgba(120, 30, 30, .9); font-size: 13px; text-align: center; transform: translateY(-80px); transition: transform .4s var(--ease); pointer-events: none; }
#offline.on { transform: none; }
/* no long-press menus / copying inside the mini app (Android WebView, iOS) */
html, body, #app, #app * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
img, svg, canvas { pointer-events: none; -webkit-user-drag: none; user-drag: none; }
input, textarea { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
code { -webkit-user-select: all; user-select: all; }
.av.gav img { width: 78%; height: 78%; object-fit: contain; }

/* ====================== ARENA · ROLLS ====================== */
.rl-top { display: flex; gap: 10px; margin-top: 2px; }
.rl-top > div { flex: 1; background: #121316; border-radius: 18px; padding: 10px 14px; }
.rl-top small { display: block; font-size: 11.5px; color: #6d727b; }
.rl-top b { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 500; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-top b svg { width: 20px; height: 20px; }
.rl-t { text-align: right; } .rl-t b { justify-content: flex-end; }
.rl-strip { position: relative; height: 104px; margin: 12px -15px 0; overflow: hidden; background: linear-gradient(180deg, #0c0d10, #121316 50%, #0c0d10); border-top: 1px solid rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .04); }
.rl-track { position: absolute; left: 0; top: 12px; display: flex; gap: 8px; will-change: transform; }
.rl-tile { flex: none; width: 64px; height: 80px; border-radius: 16px; background: #1a1c21; border: 2px solid color-mix(in srgb, var(--pc) 70%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; transition: transform .35s var(--spring), box-shadow .35s; }
.rl-tile .av { width: 40px; height: 40px; font-size: 15px; }
.rl-tile span { font-size: 10.5px; color: #c9ccd2; max-width: 58px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-tile.w { transform: scale(1.12); box-shadow: 0 0 0 2px var(--pc), 0 0 28px color-mix(in srgb, var(--pc) 70%, transparent); background: color-mix(in srgb, var(--pc) 25%, #1a1c21); }
.rl-empty { width: 100vw; max-width: 480px; height: 80px; display: grid; place-items: center; color: #5d626b; font-size: 14px; }
.rl-ptr { position: absolute; left: 50%; width: 0; height: 0; transform: translateX(-50%); border-left: 9px solid transparent; border-right: 9px solid transparent; z-index: 3; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .5)); }
.rl-ptr.t { top: 0; border-top: 13px solid #fff; }
.rl-ptr.b { bottom: 0; border-bottom: 13px solid #fff; }
.rl-strip::after { content: ''; position: absolute; left: 50%; top: 12px; bottom: 12px; width: 2px; margin-left: -1px; background: linear-gradient(transparent, rgba(255, 255, 255, .55), transparent); z-index: 2; }
.rl-fade { position: absolute; top: 0; bottom: 0; width: 46px; z-index: 2; pointer-events: none; }
.rl-fade.l { left: 0; background: linear-gradient(90deg, #000, transparent); }
.rl-fade.r { right: 0; background: linear-gradient(-90deg, #000, transparent); }
.rl-bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; margin-top: 12px; background: #121316; }
.rl-bar i { min-width: 3px; transition: flex .5s var(--ease); }
.rl-gbtn { height: 44px; border-radius: 22px; background: #1e2024; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 14.5px; }
.rl-gbtn svg { width: 18px; height: 18px; fill: #8b9099; }
.rl-gbtn b { margin-left: auto; font-weight: 500; color: #5aa2ff; font-size: 13px; }
.rl-inv .ipick { max-height: 230px; overflow-y: auto; }
.rl-gifts { display: inline-flex; margin-left: 6px; }
.rl-gifts img { width: 16px; height: 16px; margin-left: -3px; filter: drop-shadow(0 0 1px #000); }

.av.anon { display: grid; place-items: center; }
.av.anon svg { width: 58%; height: 58%; fill: rgba(255, 255, 255, .92); }

/* ====================== ARENA · FIELD ====================== */
.ar-tabs { margin: 2px 0 12px; }
.ar-bank { display: flex; justify-content: space-between; align-items: flex-start; background: #121316; border-radius: 20px; padding: 14px 16px 16px; border: 1px solid rgba(255, 255, 255, .04); }
.ar-bank small { display: block; font-size: 12px; color: #8b9099; letter-spacing: .5px; }
.ar-bank b { display: flex; align-items: center; gap: 8px; font-size: 30px; font-weight: 500; margin-top: 10px; font-variant-numeric: tabular-nums; }
.ar-bank b svg { width: 26px; height: 26px; }
.ar-st { color: #5aa2ff; font-size: 14px; font-weight: 500; text-align: right; max-width: 55%; }
.ar-field { position: relative; margin-top: 12px; aspect-ratio: 1 / .92; border-radius: 22px; background: #1a1c21; border: 1px solid rgba(255, 255, 255, .05); overflow: hidden; }
.ar-field canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ar-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #6d727b; font-size: 15px; transition: opacity .3s; pointer-events: none; }
.ar-join { padding: 12px 0 0; }
.ar-join .bigbtn { height: 56px; border-radius: 28px; font-size: 16px; letter-spacing: 1px; background: linear-gradient(90deg, #3b6cf6, #4f8bff); box-shadow: 0 8px 30px rgba(59, 108, 246, .35); }
.ar-join .bigbtn.dim { background: #1b2a4a; box-shadow: none; }
.ar-hist { background: #121316; border-radius: 20px; padding: 4px 12px; }
.ar-h { display: flex; align-items: center; height: 62px; position: relative; }
.ar-h + .ar-h::before { content: ''; position: absolute; left: 50px; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, .06); }
.ar-h .av { width: 38px; height: 38px; }

/* ====================== ARENA v4 (reference: field of regions + ball) ====================== */
.ar-bank2 { display: flex; align-items: baseline; gap: 6px; margin: 2px 2px 0; }
.ar-bank2 b { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ar-bank2 span { color: #6d727b; font-size: 15px; font-weight: 500; }
.ar-bank2 .ar-st { margin-left: auto; font-style: normal; color: #9aa0aa; font-size: 12.5px; max-width: 55%; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-pot { display: flex; gap: 6px; min-height: 40px; margin: 8px 0 10px; overflow-x: auto; scrollbar-width: none; }
.ar-pot i { flex: none; width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--c) 55%, #1a1c21); display: grid; place-items: center; animation: giIn .45s var(--spring) both; }
.ar-pot img { width: 30px; height: 30px; object-fit: contain; }
.ar-field2 { position: relative; aspect-ratio: 1 / .56; border-radius: 14px; background: #1a1c21; overflow: hidden; }
.ar-field2 canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ar-btns { display: flex; gap: 8px; margin-top: 10px; }
.ar-bet { flex: 1; height: 54px; border-radius: 16px; background: #e4ff1a; color: #111; display: flex; align-items: center; gap: 10px; padding: 0 8px; font-size: 17px; font-weight: 700; }
.ar-bet i { width: 38px; height: 38px; border-radius: 50%; background: #1a7cff; display: grid; place-items: center; }
.ar-bet i svg { width: 38px; height: 38px; }
.ar-nft { flex: 1; height: 54px; border-radius: 16px; background: #1a1c21; border: 1px solid rgba(255, 255, 255, .06); font-size: 16px; font-weight: 600; }
.ar-fair { display: flex; align-items: center; gap: 8px; margin-top: 10px; height: 46px; border-radius: 14px; background: #121316; padding: 0 14px; color: #8b9099; font-size: 13.5px; }
.ar-fair svg { width: 16px; height: 16px; color: #22c55e; flex: none; }
.ar-fair small { margin-left: auto; font-size: 10.5px; color: #5d626b; text-align: right; }
.ar-lh { display: flex; justify-content: space-between; margin: 14px 4px 6px; font-size: 12.5px; color: #6d727b; }
.ar-lh b { color: #9aa0aa; font-weight: 500; }
.ar-list { display: flex; flex-direction: column; gap: 6px; }
.ar-row { display: flex; align-items: center; gap: 8px; height: 52px; border-radius: 14px; background: #121316; padding: 0 12px 0 10px; animation: rowIn .4s var(--ease) backwards; }
.ar-row.me { box-shadow: inset 0 0 0 1px rgba(26, 124, 255, .45); }
.ar-row.win { box-shadow: inset 0 0 0 1.5px #e4ff1a; }
.ar-rk { width: 14px; color: #5d626b; font-size: 12px; text-align: center; }
.ar-row .av { width: 30px; height: 30px; font-size: 12px; }
.ar-nm { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-gi { width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--c) 55%, #1a1c21); display: grid; place-items: center; flex: none; }
.ar-gi.e { background: none; }
.ar-gi img { width: 24px; height: 24px; object-fit: contain; }
.ar-pc { width: 38px; text-align: right; font-size: 11.5px; color: #6d727b; font-variant-numeric: tabular-nums; }
.ar-am { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 62px; justify-content: flex-end; }
.ar-am svg { width: 14px; height: 14px; }
.sbtn.yel { background: #e4ff1a; color: #111; font-weight: 700; }
/* winner overlay */
.ar-win { position: absolute; inset: 0; z-index: 65; display: grid; place-items: center; background: radial-gradient(60% 45% at 50% 42%, rgba(60, 70, 10, .97), rgba(4, 5, 6, .97) 70%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transition: opacity .35s; }
.ar-win.in { opacity: 1; }
.ar-wc { display: flex; flex-direction: column; align-items: center; text-align: center; transform: scale(.9); transition: transform .5s var(--spring); }
.ar-win.in .ar-wc { transform: none; }
.ar-wav .av { width: 92px; height: 92px; font-size: 34px; box-shadow: 0 0 0 3px #e4ff1a, 0 0 40px rgba(228, 255, 26, .45); }
.ar-wc > small { color: #8b9099; font-size: 13px; margin-top: 12px; }
.ar-wn { color: #e4ff1a; font-size: 19px; font-weight: 700; margin-top: 2px; }
.ar-wsum { font-size: 34px; font-weight: 800; margin-top: 8px; font-variant-numeric: tabular-nums; }
.ar-wsum span { font-size: 18px; color: #8b9099; font-weight: 600; }
.ar-wg { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: center; max-width: 300px; }
.ar-wg i { width: 50px; height: 50px; border-radius: 13px; background: #1e2024; display: grid; place-items: center; animation: giIn .5s var(--spring) both; }
.ar-wg img { width: 40px; height: 40px; object-fit: contain; }
.ar-cont { margin-top: 18px; height: 48px; padding: 0 56px; border-radius: 14px; background: #e4ff1a; color: #111; font-weight: 700; font-size: 16px; }

/* coin v2 (telegram-sticker faces) */
.coin2 { width: 190px; height: 190px; will-change: transform; filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .55)); }
.coin2 img { width: 100%; height: 100%; object-fit: contain; }
.cnw { height: 250px; }
.cshadow { bottom: 6px; width: 140px; margin-left: -70px; }
.mc2i { width: 30px; height: 30px; object-fit: contain; }

/* games hub v2: telegram stickers */
.gart .gx { position: absolute; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45)); }
.gx-c { width: 108px; left: 50%; top: 52%; transform: translate(-50%, -50%); animation: gaFly 3.2s ease-in-out infinite; filter: drop-shadow(0 6px 16px rgba(80, 220, 255, .35)) !important; }
.gx-s1 { width: 34px; right: 16px; top: 16px; }
.gx-u { width: 64px; right: 10px; top: 10px; }
.gx-u2 { width: 92px; left: 14px; top: 26px; animation: floaty 4s ease-in-out infinite; }
.gx-coin { width: 104px; left: 50%; top: 52%; margin: -52px 0 0 -52px; animation: coinSpin 3.2s ease-in-out infinite; }
@keyframes coinSpin { 0%, 100% { transform: scaleX(1) translateY(0); } 25% { transform: scaleX(.08) translateY(-6px); } 50% { transform: scaleX(1) translateY(-10px); } 75% { transform: scaleX(.08) translateY(-6px); } }
.gx-m { width: 92px; left: 12px; top: 22px; }
.gx-m2 { width: 58px; right: 14px; top: 34px; animation: floaty 3.6s ease-in-out infinite; }
.gx-k { width: 92px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.gx-k2 { width: 52px; right: 12px; top: 12px; }
.ga-field { position: absolute; left: 16px; right: 16px; top: 16px; bottom: 8px; border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; }
.ga-field i:first-child { grid-row: span 2; clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); }
.ga-field i { border-radius: 4px; }
.ga-ball { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 6px rgba(255, 255, 255, .6); left: 30%; top: 40%; animation: gaBall 2.6s ease-in-out infinite; }
@keyframes gaBall { 0% { left: 18%; top: 30%; } 25% { left: 78%; top: 18%; } 50% { left: 62%; top: 70%; } 75% { left: 26%; top: 62%; } 100% { left: 18%; top: 30%; } }
/* mines v2 */
.mc2 { background: linear-gradient(160deg, #23262d, #15171b); border: 1px solid rgba(255, 255, 255, .06); }
.mc2 .cov { background: none; }
.mc2 .cov img { width: 42%; height: 42%; object-fit: contain; opacity: .22; filter: grayscale(.4); }
.mc2.act:active .cov img { opacity: .5; }
.mc2.safe { background: radial-gradient(circle, #1f4d2e, #10231a); }
.mc2.bomb { background: radial-gradient(circle, #5a1a1a, #1f0c0c); }

/* upgrade / craft v2 */
.upring .arc { stroke: url(#upg); filter: drop-shadow(0 0 10px rgba(140, 255, 120, .45)); }
.upimg { position: relative; width: 96px; height: 96px; }
.upimg img, .upimg svg { width: 100% !important; height: 100% !important; object-fit: contain; }
@keyframes cfOrbit { to { transform: rotate(360deg); } }
@keyframes cfCounter { to { rotate: -360deg; } }
.cflot { position: relative; width: 78px; height: 78px; }
.cflot img, .cflot svg { width: 100% !important; height: 100% !important; object-fit: contain; }
.cfmagic { width: 56px; height: 56px; object-fit: contain; margin-bottom: 2px; }
.cfres { background: radial-gradient(circle, #2b1d40, #0c0a10); box-shadow: 0 0 40px rgba(168, 85, 247, .25); }

.cfslots img { animation: cfBob 3.4s ease-in-out infinite; }
@keyframes cfBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.cfslots img:nth-child(2n) { animation-delay: -1.7s; }

.coin2 { width: 230px; height: 230px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); }
.coin2 canvas { width: 100% !important; height: 100% !important; display: block; }
.cnw { height: 270px; }

/* crash typography */
.cmx { font-family: Unbounded, Roboto, sans-serif; font-weight: 800; font-size: 58px; letter-spacing: -1px; top: 14px; text-shadow: 0 4px 24px rgba(0, 0, 0, .7), 0 0 30px rgba(90, 170, 255, .25); }
.cmx.red { text-shadow: 0 4px 24px rgba(0, 0, 0, .7), 0 0 30px rgba(255, 60, 60, .4); }
.cwait b { font-family: Unbounded, Roboto, sans-serif; font-weight: 800; font-size: 60px; }
.cwait span { font-size: 15px; }
.cgift b { font-family: Unbounded, Roboto, sans-serif; font-weight: 600; font-size: 16px; }
#cpills .mp { font-family: Unbounded, Roboto, sans-serif; font-weight: 600; font-size: 11.5px; }

/* coin: calmer */
.coin2 { width: 168px; height: 168px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.cnw { height: 210px; }
.cshadow { width: 110px; margin-left: -55px; opacity: .35 !important; }

/* QA round 4 */
.upring .arc { stroke-linecap: butt; }
.crow .qk { gap: 4px; }
.crow .qk button { min-width: 40px; padding: 0 8px; }
.cpanel .amt input { width: 54px; }

/* case names */
.case .cnm { position: absolute; left: 12px; top: 11px; z-index: 2; font: 700 14px/1.1 Roboto, sans-serif; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case .chips { left: auto; right: 10px; }

/* gifts as a stake: same pill as the amount field */
.gsr.amt { flex: none; width: 100%; cursor: pointer; }
.gsr .gsr-ic { background: #2a2d33; }
.gsr .gsr-ic img { width: 24px; height: 24px; object-fit: contain; }
.gsr label { pointer-events: none; gap: 6px; }
.gsr-t { font-size: 15px; color: #8b9099; }
.gsr-list { display: flex; align-items: center; }
.gsr-list img { width: 26px; height: 26px; object-fit: contain; margin-left: -6px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.gsr-list img:first-child { margin-left: 0; }
.gsr-v { font-size: 16px; color: #fff; font-variant-numeric: tabular-nums; margin-left: 4px; }
.gsr .gsr-pl b { font-size: 14px; font-weight: 500; color: #fff; }
.gsr.has .gsr-pl { background: #1d6fe6; }
/* crash rows: gift that matches the current amount */
.prow2 .pgi { width: 40px; height: 40px; flex: none; display: grid; place-items: center; margin: 0 10px 0 4px; border-radius: 12px; background: radial-gradient(closest-side, rgba(90, 170, 255, .16), transparent); }
.prow2 .pgi img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); }
.prow2 .pgi.e { background: none; }
.prow2 .pgi.lost img { filter: grayscale(1) brightness(.6); opacity: .6; }
.prow2.win .pgi { background: radial-gradient(closest-side, rgba(52, 199, 89, .22), transparent); }
.pb .pgs { display: inline-flex; margin-left: 6px; vertical-align: -3px; }
.pb .pgs img { width: 15px; height: 15px; margin-left: -3px; object-fit: contain; }
/* craft v2 */
.cfpool { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 12px; }
.cfp { background: #15171b; border-radius: 14px; padding: 8px 4px 7px; text-align: center; border: 1px solid rgba(255, 255, 255, .03); }
.cfp img { width: 44px; height: 44px; object-fit: contain; display: block; margin: 0 auto 4px; }
.cfp b { display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 500; }
.cfp b svg { width: 11px; height: 11px; }
.cfp small { display: block; font-size: 11px; color: #7d828c; margin-top: 1px; }
.cfp.up { border-color: rgba(52, 199, 89, .28); background: linear-gradient(180deg, rgba(52, 199, 89, .09), #15171b 70%); }
.cfp.up small { color: #4cd07a; }
.cfpool .iempty { grid-column: 1 / -1; }
.cfslots img { transform: translate(var(--x), var(--y)); }
.cfmagic.spin { animation: cfSpin .7s linear infinite; }
@keyframes cfSpin { to { transform: rotate(360deg) scale(1.1); } }

/* gift icon inside 'Забрать' buttons (winnings are paid in gifts) */
.bti { display: inline-block; width: 26px; height: 26px; object-fit: contain; vertical-align: -7px; margin: 0 5px 0 6px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.bigbtn b { display: inline; }

/* ===== one design system: blue primary, dark pills, sentence-case section titles ===== */
.sect { font-size: 14px; color: #8b9099; margin: 18px 4px 9px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.upq button { background: #1e2024; border: 0; color: #fff; font-weight: 500; transition: background .2s, transform .3s var(--spring); }
.upq button:active { background: #2a2d33; }
.ar-btns { gap: 8px; }
.ar-btns .bigbtn { flex: 1; height: 50px; border-radius: 25px; font-size: 15.5px; font-weight: 500; padding: 0; display: block; letter-spacing: 0; color: #fff; }
.ar-btns .ar-bet { background: var(--blue); }
.ar-btns .ar-nft { background: #1e2024; border: 0; }
.ar-row.win { box-shadow: inset 0 0 0 1.5px #2fb350; }
.ar-wav .av { box-shadow: 0 0 0 3px #2fb350, 0 0 40px rgba(47, 179, 80, .45); }
.ar-wn { color: #fff; }
.ar-cont { background: var(--blue); color: #fff; font-weight: 500; border-radius: 25px; }
.sbtn.dim { background: #1b3a66; color: #a9c6f0; pointer-events: none; }
.gx-a { width: 92px; left: 14px; top: 14px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); animation: gxBob 3.2s ease-in-out infinite; }
.gx-a2 { width: 50px; right: 18px; top: 22px; animation: gxBob 3.2s -1.6s ease-in-out infinite; }
@keyframes gxBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.prow2 .pgi.lost img { filter: grayscale(1); opacity: .55; }
.ar-row.old { animation: none; }

/* loader: Stellar Rocket NFT (TON model) */
.ld2-plane { width: 260px; height: 260px; margin: -48px 0 -52px; filter: drop-shadow(0 16px 30px rgba(0, 152, 234, .4)); animation: ldFly 2.6s ease-in-out infinite; }
.ld2-plane img, .ld2-plane svg { width: 100% !important; height: 100% !important; object-fit: contain; }
.ld2-sky { transform: rotate(-38deg); }
@keyframes ldFly { 0%, 100% { transform: translate(-4px, 6px); } 50% { transform: translate(6px, -8px); } }

.ld2-plane img { opacity: 0; transform: scale(.85); transition: opacity .35s, transform .5s var(--spring); }
.ld2-plane img.on { opacity: 1; transform: none; }

/* hub icons v3: volumetric 3D emoji + a real spinning 3D coin */
.gx-a { width: 104px; left: 10px; top: 12px; }
.gx-a2 { width: 54px; right: 14px; top: 18px; }
.gx-k3 { width: 98px; left: 14px; top: 14px; position: absolute; animation: gxBob 3.4s ease-in-out infinite; }
.gx-k4 { width: 46px; right: 20px; top: 16px; position: absolute; animation: gxTw 2.4s ease-in-out infinite; }
@keyframes gxTw { 0%, 100% { transform: scale(.85) rotate(-8deg); opacity: .8; } 50% { transform: scale(1.08) rotate(8deg); opacity: 1; } }
.gx-coin3 { width: 108px; height: 108px; left: 50%; top: 50%; margin: -58px 0 0 -54px; perspective: 600px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .5)); }
.c3 { position: absolute; inset: 0; transform-style: preserve-3d; animation: c3Spin 4.2s cubic-bezier(.45, 0, .55, 1) infinite; }
.c3 img, .c3 i { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.c3 .c3f { transform: translateZ(5.2px); }
.c3 .c3b { transform: rotateY(180deg) translateZ(5.2px); }
.c3 i { transform: translateZ(var(--z)); backface-visibility: visible; -webkit-backface-visibility: visible; background: radial-gradient(circle, #8a6a1e 62%, #c79a2c 66%, #6e5216 70%); inset: 2%; width: 96%; height: 96%; }
@keyframes c3Spin { 0% { transform: rotateX(12deg) rotateY(0) translateY(0); } 25% { transform: rotateX(12deg) rotateY(180deg) translateY(-8px); } 45%, 50% { transform: rotateX(12deg) rotateY(180deg) translateY(0); } 75% { transform: rotateX(12deg) rotateY(360deg) translateY(-8px); } 95%, 100% { transform: rotateX(12deg) rotateY(360deg) translateY(0); } }
/* bolder money: balances, stakes, prices */
.balv, .bal b, .pb, .pst b, .chip, .icell span, .amt input, .ar-am, .cfp b, .vch, .lbd b, .cnwin b, .gsr-v, .upst b, .cfinfo b, .mnhd b, .arinfo b, .plhd b, #arPot, .ar-wsum, .bigbtn b { font-weight: 700 !important; }
.pb { color: #c9cdd4; }

/* arena: winner screen v2 (own design) */
.ar-win2 { position: absolute; inset: 0; z-index: 65; display: flex; align-items: flex-end; justify-content: center; padding: 0 12px calc(110px + var(--safe-b, 0px)); background: rgba(3, 6, 12, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; overflow: hidden; }
.ar-win2.in { opacity: 1; }
.aw-rays { position: absolute; left: 50%; top: 34%; width: 720px; height: 720px; margin: -360px 0 0 -360px; background: repeating-conic-gradient(from 0deg, rgba(42, 168, 255, .08) 0 9deg, transparent 9deg 22deg); mask-image: radial-gradient(circle, #000 20%, transparent 62%); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 62%); animation: awSpin 14s linear infinite; }
@keyframes awSpin { to { transform: rotate(360deg); } }
.aw-card { position: relative; width: 100%; max-width: 400px; background: linear-gradient(180deg, #16202e, #111318 55%); border: 1px solid rgba(90, 170, 255, .18); border-radius: 26px; padding: 54px 16px 16px; text-align: center; transform: translateY(40px) scale(.96); transition: transform .55s var(--spring); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.ar-win2.in .aw-card { transform: none; }
.aw-cup { position: absolute; left: 50%; top: -58px; width: 108px; margin-left: -54px; filter: drop-shadow(0 12px 24px rgba(255, 180, 40, .45)); animation: awCup 2.6s ease-in-out infinite; }
@keyframes awCup { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(4deg); } }
.aw-t { font: 800 20px/1.2 Unbounded, Roboto, sans-serif; color: #fff; }
.aw-who { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 12px; text-align: left; }
.aw-who .av { width: 40px; height: 40px; font-size: 16px; box-shadow: 0 0 0 2px #2aa8ff; }
.aw-who b { display: block; font-size: 15.5px; font-weight: 600; }
.aw-who small { display: block; font-size: 12px; color: #8b9099; margin-top: 1px; }
.aw-sum { margin-top: 14px; background: #0c0f14; border-radius: 18px; padding: 10px 12px 12px; }
.aw-sum small { display: block; font-size: 12px; color: #8b9099; }
.aw-sum b { display: block; font-size: 32px; font-weight: 800; color: #4cd07a; font-variant-numeric: tabular-nums; line-height: 1.2; }
.aw-sum b span { font-size: 17px; color: #8b9099; }
.aw-sum em { font-style: normal; font-size: 12px; color: #6d727b; }
.aw-g { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.aw-g i { width: 46px; height: 46px; border-radius: 14px; background: #1b1f27; display: grid; place-items: center; animation: giIn .5s var(--spring) both; }
.aw-g img { width: 36px; height: 36px; object-fit: contain; }
.aw-ok { margin-top: 14px; }

/* loader v3: rocket orbiting a planet among far stars */
#ldStars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ld2-sky { display: none; }
.ld3-scene { position: relative; width: 300px; height: 230px; margin-bottom: 6px; }
.ld3-scene .pl { position: absolute; border-radius: 50%; display: block; }
.pl1 { left: 50%; top: 50%; width: 112px; height: 112px; margin: -60px 0 0 -56px; z-index: 3; background: radial-gradient(circle at 34% 30%, #7fd4ff 0%, #2a8cf0 38%, #1a3f9e 70%, #0d1a4a 100%); box-shadow: inset -14px -10px 30px rgba(0, 0, 0, .55), 0 0 50px rgba(42, 140, 240, .45); overflow: hidden; }
.pl1 em { position: absolute; inset: 0; border-radius: 50%; background: repeating-linear-gradient(-18deg, rgba(255, 255, 255, .0) 0 12px, rgba(255, 255, 255, .09) 12px 20px); animation: plSpin 9s linear infinite; }
@keyframes plSpin { to { background-position: 120px 0; } }
.ring { position: absolute; left: 50%; top: 50%; width: 210px; height: 56px; margin: -34px 0 0 -105px; border-radius: 50%; border: 3px solid rgba(140, 200, 255, .55); transform: rotate(-12deg); pointer-events: none; display: block; }
.ring.rb { z-index: 2; clip-path: inset(0 0 50% 0); border-color: rgba(140, 200, 255, .35); }
.ring.rf { z-index: 4; clip-path: inset(50% 0 0 0); }
.pl2 { right: 6px; top: 6px; width: 34px; height: 34px; background: radial-gradient(circle at 35% 30%, #ffd08a, #f08a2a 55%, #7a3410); box-shadow: inset -5px -4px 10px rgba(0, 0, 0, .5), 0 0 18px rgba(240, 138, 42, .35); animation: plDrift 7s ease-in-out infinite; }
.pl3 { left: 10px; bottom: 18px; width: 20px; height: 20px; background: radial-gradient(circle at 35% 30%, #ffb3e1, #c2409a 60%, #4a0f3a); box-shadow: inset -3px -3px 6px rgba(0, 0, 0, .5); animation: plDrift 9s -3s ease-in-out infinite; }
@keyframes plDrift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-8px, 6px); } }
.ld3-scene .ld2-plane { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; margin: -70px 0 0 -70px; animation: none; will-change: transform; }

/* loader planets (canvas spheres) */
.ld3-scene .ring, .ld3-scene .pl { display: none !important; }
.plc { position: absolute; opacity: 0; transition: opacity .6s; pointer-events: none; }
.plc.on { opacity: 1; }
.plc.pm { left: 50%; top: 50%; transform: translate(-50%, -54%); z-index: 3; }
.plc.p2 { right: -4px; top: -6px; animation: plDrift 8s ease-in-out infinite; }
.plc.p3 { left: 0; bottom: 6px; animation: plDrift 10s -3s ease-in-out infinite; }


/* profile links */
.pf-links { display: flex; gap: 8px; margin-top: 8px; }
.pf-links button { flex: 1; height: 42px; border-radius: 21px; background: #121316; color: #c9cdd4; font-size: 14px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 7px; }
.pf-links svg { width: 16px; height: 16px; }
.pf-links b { width: 18px; height: 18px; border-radius: 50%; background: #2a2d33; color: #fff; font-size: 12px; display: grid; place-items: center; }
/* history */
.hlist { margin-top: 10px; }
.hrow { display: flex; align-items: center; gap: 10px; min-height: 58px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.hic { width: 40px; height: 40px; border-radius: 12px; background: #1b1d22; display: grid; place-items: center; flex: none; }
.hic img { width: 32px; height: 32px; object-fit: contain; }
.hic svg { width: 24px; height: 24px; }
.hrow .pinf { flex: 1; min-width: 0; }
.hrow .pn small { color: #8b9099; font-weight: 400; }
/* help */
.faq { display: flex; flex-direction: column; gap: 6px; }
.fq { background: #15171b; border-radius: 14px; overflow: hidden; }
.fq button { width: 100%; min-height: 48px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; font-size: 14.5px; font-weight: 500; color: #fff; }
.fq button i svg { width: 14px; height: 14px; stroke: #8b9099; transition: transform .3s; }
.fq.on button i svg { transform: rotate(45deg); }
.fq p { margin: 0; max-height: 0; overflow: hidden; padding: 0 14px; font-size: 13.5px; line-height: 1.45; color: #a3a8b0; transition: max-height .35s, padding .35s; }
.fq.on p { max-height: 220px; padding: 0 14px 14px; }
.help-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.bigbtn.ghost { background: #1e2024; }
/* onboarding */
.onb { position: absolute; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; padding: 0 12px calc(16px + var(--safe-b, 0px)); background: rgba(3, 6, 12, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.onb.in { opacity: 1; }
.onb-c { width: 100%; max-width: 400px; background: linear-gradient(180deg, #16202e, #111318 60%); border: 1px solid rgba(90, 170, 255, .16); border-radius: 26px; padding: 22px 18px 14px; text-align: center; }
.onb-img { height: 150px; display: grid; place-items: center; }
.onb-img img { max-width: 170px; max-height: 150px; object-fit: contain; filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .5)); }
.onb-t { display: block; font: 800 21px/1.25 Unbounded, Roboto, sans-serif; margin-top: 8px; }
.onb-p { margin: 8px 6px 0; font-size: 14.5px; line-height: 1.45; color: #a3a8b0; min-height: 42px; }
.onb-dots { display: flex; gap: 6px; justify-content: center; margin: 14px 0; }
.onb-dots i { width: 7px; height: 7px; border-radius: 4px; background: #2a2d33; transition: width .3s, background .3s; }
.onb-dots i.on { width: 22px; background: #2aa8ff; }
.onb-skip { margin-top: 6px; height: 36px; color: #8b9099; font-size: 14px; width: 100%; }

/* admin panel */
.adm-open { margin-top: 8px; background: #2b1f4a; color: #d9c9ff; height: 44px; font-size: 15px; }
.adm-note { margin: 0 2px 12px; font-size: 13px; line-height: 1.45; color: #8b9099; }
.adm-row { background: #15171b; border-radius: 16px; padding: 12px 14px 10px; margin-bottom: 8px; }
.adm-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.adm-h b { font-size: 14.5px; font-weight: 600; }
.adm-v { font-size: 16px; font-weight: 800; color: #5ab8ff; font-variant-numeric: tabular-nums; }
.adm-row input[type=range] { width: 100%; margin: 10px 0 6px; accent-color: #1a7cff; height: 28px; touch-action: pan-x; }
.adm-row small { display: block; font-size: 12px; color: #6d727b; line-height: 1.35; }
.adm-row .adm-x { color: #4cd07a; margin-top: 2px; }

/* no odds shown to players */
.ar-pc, .ar-fair { display: none !important; }

/* case demo: show effects */
.rrow.demo::after { content: 'ДЕМО'; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); z-index: 6; font: 800 10px/1 Unbounded, Roboto, sans-serif; letter-spacing: 1px; color: #ffd84a; background: rgba(0, 0, 0, .55); padding: 4px 7px; border-radius: 8px; }
.rrow.tease .ptr { filter: drop-shadow(0 0 10px #ffd84a) drop-shadow(0 0 18px #ffb300); }
.rrow.tease { box-shadow: inset 0 0 40px rgba(255, 200, 40, .18); transition: box-shadow .4s; }
.rt.win.big { animation: rtBig 1s cubic-bezier(.34, 1.56, .5, 1) both; box-shadow: 0 0 0 2px #ffd84a, 0 0 30px rgba(255, 216, 74, .55); }
@keyframes rtBig { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1.06); } }
.gx-k3 { width: 118px; left: 6px; top: 6px; } .gx-k4 { width: 58px; right: 16px; top: 14px; }

/* toasts: neutral info style, long texts wrap */
.toast { height: auto; min-height: 50px; padding-top: 8px; padding-bottom: 8px; line-height: 1.3; }
.toast span { min-width: 0; overflow-wrap: anywhere; }
.toast.inf { background: linear-gradient(90deg, rgba(30, 34, 42, .94), rgba(32, 62, 104, .86)); }
.toast.inf i { background: #5ab8ff; color: #fff; }
/* mines: closed cells look closed */
.mc2 .cov img { opacity: .22; filter: grayscale(1); transform: scale(.8); }

.upq.up2 { margin-top: 8px; }

/* loader v4: one big rocket + progress bar */
#loader { background: radial-gradient(90% 60% at 50% 40%, #0d2340 0%, #070d18 60%, #05080f 100%); }
.ld4-rk { width: min(72vw, 300px); aspect-ratio: 1; margin-bottom: 4px; filter: drop-shadow(0 20px 40px rgba(26, 124, 255, .35)); animation: ld4Fly 3s ease-in-out infinite; }
.ld4-rk img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(.9); transition: opacity .3s, transform .5s var(--spring); }
.ld4-rk img.on { opacity: 1; transform: none; }
@keyframes ld4Fly { 0%, 100% { transform: translateY(6px) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.ld2-name { margin-top: 6px; }
/* the rocket animation has wide empty margins: scale it up so it fills the loader */
.ld4-rk { width: min(80vw, 320px); }
.ld4-rk img { transform: scale(1.35); }
.ld4-rk img.on { transform: scale(1.6); }

/* original Stellar Rocket fills its frame: no upscaling, so it stays sharp */
.ld4-rk { width: min(78vw, 320px); position: relative; }
.ld4-rk img, .ld4-rk img.on { transform: none; }
.ld4-rk .lot-layer svg { width: 100% !important; height: 100% !important; }

/* admin: players */
.adm-btns { display: flex; gap: 8px; margin-top: 8px; }
.adm-btns .adm-open { flex: 1; margin-top: 0; }
.pl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.pl-stats div { background: #15171b; border-radius: 12px; padding: 8px 10px; min-width: 0; }
.pl-stats small { display: block; font-size: 11px; color: #8b9099; }
.pl-stats b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-q { width: 100%; height: 44px; border-radius: 22px; background: #1e2024; border: 0; color: #fff; padding: 0 16px; font: 400 15px Roboto, sans-serif; outline: none; }
.pl-sorts { display: flex; gap: 6px; overflow-x: auto; margin: 10px 0; scrollbar-width: none; }
.pl-sorts button { flex: none; height: 32px; padding: 0 12px; border-radius: 16px; background: #1e2024; color: #c9cdd4; font-size: 13px; }
.pl-sorts button.on { background: #1a7cff; color: #fff; }
.pl-row { display: flex; align-items: center; gap: 10px; min-height: 58px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.pl-row .av { width: 38px; height: 38px; flex: none; }
.pl-row .pinf { flex: 1; min-width: 0; }
.pl-row .pn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-row .pn small { color: #8b9099; font-weight: 400; }
.pl-on { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #34c759; margin-right: 6px; vertical-align: 1px; }
.pl-more { margin-top: 10px; }
.pl-card { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.pl-card .pl-av { width: 56px; height: 56px; font-size: 22px; flex: none; }
.pl-card b { display: block; font-size: 17px; }
.pl-card small { display: block; font-size: 12.5px; color: #8b9099; margin-top: 2px; }
.pl-copy { color: #5ab8ff; font-size: 12px; margin-left: 4px; }
.pl-mode { margin: 6px 0 10px; }
.pl-mode button.on { background: #1a7cff; color: #fff; }

.pl-boost { margin: 2px 0 12px; height: 44px; font-size: 15px; }

/* admin hub */
.adm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.adm-grid button { height: 64px; border-radius: 16px; background: #15171b; display: flex; align-items: center; gap: 10px; padding: 0 14px; color: #fff; font-size: 15px; font-weight: 500; text-align: left; }
.adm-grid i { font-style: normal; font-size: 22px; }
.fin-hero { background: #15171b; border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
.fin-hero small, .fin-hero span { display: block; font-size: 12px; color: #8b9099; }
.fin-hero b { display: block; font-size: 28px; font-weight: 800; margin: 2px 0; }
.fin-hero.up b { color: #4cd07a; } .fin-hero.dn b { color: #ff5a5a; }
.fin-tbl > div { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr .8fr; gap: 6px; padding: 9px 4px; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 13px; font-variant-numeric: tabular-nums; align-items: center; }
.fin-tbl .fh { color: #8b9099; font-size: 11.5px; }
.fin-tbl span small { display: block; color: #6d727b; font-size: 11px; }
.fin-chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; background: #15171b; border-radius: 14px; padding: 10px 8px 6px; }
.fin-chart > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.fin-chart i { width: 100%; border-radius: 4px 4px 0 0; } .fin-chart i.up { background: #2fb350; } .fin-chart i.dn { background: #e2434a; }
.fin-chart small { font-size: 10px; color: #6d727b; }
.pc-row { display: flex; gap: 8px; margin: 8px 0; }
.pc-row label { flex: 1; font-size: 12px; color: #8b9099; display: grid; gap: 4px; }
.pc-row input { height: 40px; border-radius: 12px; background: #1e2024; border: 0; color: #fff; padding: 0 12px; font-size: 15px; }
.pc-chk { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #c9cdd4; margin: 4px 0 10px; }
.pc-del { color: #ff5a5a; font-size: 13px; padding: 6px 8px; }
.pc-gifts { max-height: 240px; overflow-y: auto; }
.adm-row .pl-q, .adm-row .seg { margin: 8px 0; }
.ref-st { grid-template-columns: repeat(2, 1fr); }
.ref-link { display: flex; align-items: center; gap: 8px; background: #15171b; border-radius: 14px; padding: 10px 12px; }
.ref-link span { flex: 1; min-width: 0; font-size: 13px; color: #c9cdd4; overflow-wrap: anywhere; }
.ref-link button, .rf-save { color: #5ab8ff; font-size: 13px; font-weight: 500; flex: none; padding: 0 8px; }
.pr-in { text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.case-adm { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.case-adm.off { opacity: .55; }
.case-adm > img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.case-adm .pinf { flex: 1; min-width: 0; } .case-adm b { font-size: 15px; } .case-adm small { display: block; font-size: 12px; color: #8b9099; }
.case-adm .crow { margin: 6px 0; } .case-adm .amt { height: 38px; }
.case-tg { display: flex; gap: 6px; flex-wrap: wrap; }
.case-tg button { height: 30px; padding: 0 12px; border-radius: 15px; background: #1e2024; color: #c9cdd4; font-size: 12.5px; }
.case-tg button.on { background: #1a7cff; color: #fff; }
.lb-prz { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 8px; }
.lb-prz button { position: relative; aspect-ratio: 1; border-radius: 14px; background: #15171b; display: grid; place-items: center; }
.lb-prz button.on { box-shadow: inset 0 0 0 2px #1a7cff; }
.lb-prz img { width: 70%; height: 70%; object-fit: contain; }
.lb-prz i { position: absolute; left: 6px; top: 4px; font-style: normal; font-size: 11px; color: #8b9099; }
.mt-tx { height: 90px; padding: 12px 16px; resize: none; border-radius: 16px; }
.log-d { white-space: normal; font-size: 12px; }
.pl-acts { display: flex; gap: 8px; margin-bottom: 8px; }
.pl-acts button { flex: 1; height: 40px; border-radius: 20px; background: #1e2024; color: #fff; font-size: 14px; }
.pl-acts button.red { background: #4a1c22; color: #ff8a8a; }
/* blocked / maintenance screen */
.state-scr { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: #05080f; text-align: center; padding: 24px; }
.state-scr img { width: 110px; height: 110px; object-fit: contain; }
.state-scr b { display: block; font: 800 22px/1.2 Unbounded, Roboto, sans-serif; margin-top: 12px; }
.state-scr p { color: #a3a8b0; font-size: 15px; max-width: 300px; margin: 10px auto 0; }

/* admin: gifts */
.gf-img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.gf-pr { flex: none; height: 32px; padding: 0 10px; border-radius: 16px; background: #1e2024; color: #fff; font-size: 13px; font-weight: 600; }
.gf-ed { display: flex; gap: 4px; align-items: center; flex: none; }
.gf-ed input { width: 70px; height: 32px; border-radius: 10px; background: #1e2024; border: 0; color: #fff; padding: 0 8px; font-size: 14px; }
.gf-ed button { height: 32px; padding: 0 10px; border-radius: 10px; background: #1a7cff; color: #fff; font-size: 13px; }
.gf-go { color: #6d727b; font-size: 22px; padding: 0 6px; }
.gf-back { color: #5ab8ff; font-size: 14px; padding: 4px 0 10px; }
.gf-all { margin: 8px 0; }
.gf-grid { max-height: 360px; overflow-y: auto; margin: 8px 0 10px; }

/* upgrade: target pages */
.up-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 12px 0 4px; }
.up-nav:empty { display: none; }
.up-nav button { width: 44px; height: 36px; border-radius: 12px; background: #1e2024; color: #fff; font-size: 24px; line-height: 1; font-weight: 600; }
.up-nav button[disabled] { opacity: .3; }
.up-nav span { color: #8b9099; font-size: 14px; font-weight: 600; min-width: 54px; text-align: center; }
.up-none { grid-column: 1 / -1; color: #6d727b; font-size: 13px; text-align: center; padding: 14px 0; }
/* upgrade: a short last page keeps rows at their normal height (no stretched gaps) and the arrows stay above the tab bar */
#upTargets { align-content: start; }
.up-nav { margin-bottom: calc(96px + env(safe-area-inset-bottom)); }
.fin-reset { width: 100%; height: 44px; margin-top: 6px; border-radius: 14px; background: #2a1517; color: #ff6b6b; font-size: 14px; font-weight: 600; }
/* games hub: icons are static pictures on their own GPU layer — floating stays smooth on weak phones */
.gart .gx { will-change: transform; }
/* upgrade result */
.upc::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .3s; }
.upw.res-win .upring .arc { stroke: #34c759; stroke-dasharray: 600 600 !important; filter: none; }
.upw.res-win .upring { filter: drop-shadow(0 0 12px rgba(52, 199, 89, .7)); }
.upw.res-win .upring .trk { stroke: #1f5f33; }
.upw.res-win .upc { background: radial-gradient(circle, #1f7a3c, #0d2a17 75%); box-shadow: 0 0 40px rgba(52, 199, 89, .45); }
.upw.res-win .upc b { color: #5cff8d; }
.upw.res-lose .upring .arc { stroke: #ff3b30; stroke-dasharray: 600 600 !important; filter: none; }
.upw.res-lose .upring { filter: drop-shadow(0 0 10px rgba(255, 59, 48, .6)); }
.upw.res-lose .upring .trk { stroke: #4a1614; }
.upw.res-lose .upc { background: radial-gradient(circle, #3a1214, #120607 75%); }
.upw.res-lose .upc b { color: #ff5a4f; }
.upw.res-lose .upimg { opacity: .35; filter: grayscale(.6); transition: opacity .3s, filter .3s; }
.upw.res-lose .upc::after { opacity: 1; background: center 38% / 78px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5l14 14M19 5L5 19' stroke='%23ff3b30' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E"); animation: upX .35s cubic-bezier(.34,1.56,.5,1); }
@keyframes upX { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.nav-hl { transition: transform .5s var(--spring), width .4s var(--spring); }
/* arena bank row: TON part of a bet */
.ar-pot i.tn { width: auto; padding: 0 10px 0 7px; gap: 5px; display: flex; align-items: center; }
.ar-pot i.tn .ton { width: 20px; height: 20px; flex: none; }
.ar-pot i.tn b { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; }
/* deposit methods: a 3-column grid — every method is visible at once (no hidden sideways scroll on PC) */
.dtabs { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0 0 12px; padding: 0; }
.dtabs button { min-width: 0; width: 100%; }
.dtabs { grid-template-columns: repeat(2, 1fr); }
/* arena bank: TON bet tile in Telegram blue (like Trade): white TON mark + amount */
.ar-pot i.tn { width: auto; min-width: 40px; height: 40px; padding: 0 11px 0 9px; gap: 5px; border-radius: 11px; background: linear-gradient(180deg, #2a9bff, #1677f0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.ar-pot i.tn .tonw { width: 17px; height: 17px; flex: none; }
.ar-pot i.tn b { font-size: 15px; font-weight: 700; font-style: normal; color: #fff; letter-spacing: -.2px; }
/* crash rows: TON stake tile (Telegram blue) */
.pgi.tnb { width: auto; min-width: 44px; padding: 0 9px 0 7px; gap: 4px; display: flex; align-items: center; justify-content: center; border-radius: 11px; background: linear-gradient(180deg, #2a9bff, #1677f0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.pgi.tnb .tonw { width: 14px; height: 14px; flex: none; }
.pgi.tnb b { font-size: 13px; font-weight: 700; color: #fff; }
.pgi.tnb.lost { opacity: .45; filter: grayscale(.5); }
.pgi.tnb b { font-style: normal; }
.gi-ton { width: 40px !important; height: 40px; min-width: 0 !important; padding: 0 !important; }
.gi-ton .tonw { width: 20px !important; height: 20px !important; }
/* deposit by gifts: animated Telegram stickers instead of emoji */
.info .ic.ani { background: none; width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.info .ic.ani img { width: 44px; height: 44px; object-fit: contain; border-radius: 0; }
.info .ic.relay.ani img { transform: scale(1.35); }
.ref-code input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .5px; outline: none; }
/* bonuses */
.pf-bonus { width: 100%; margin-top: 10px; min-height: 60px; border-radius: 18px; padding: 8px 14px 8px 10px; display: flex; align-items: center; gap: 10px; text-align: left; background: linear-gradient(100deg, #1d3a1f, #142a2e 60%, #12223a); border: 1px solid rgba(92, 255, 141, .18); position: relative; }
.pf-bonus img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.pf-bonus span { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.pf-bonus b { font-size: 15px; font-weight: 700; color: #fff; }
.pf-bonus small { font-size: 12px; color: #9fd8b0; }
.pf-bonus i { display: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #34c759; color: #04210e; font-size: 12px; font-weight: 800; font-style: normal; place-items: center; }
.pf-bonus i.on { display: grid; }
.bon-list { display: flex; flex-direction: column; gap: 8px; }
.bon { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 16px; background: #17191d; }
.bon > img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.bon-i { flex: 1; min-width: 0; }
.bon-t { font-size: 14px; font-weight: 600; color: #fff; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.bon-t b { color: #5cff8d; font-size: 13px; font-weight: 700; }
.bon-i small { display: block; font-size: 12px; color: #8b9099; margin-top: 2px; line-height: 1.3; }
.bon-bar { height: 5px; border-radius: 3px; background: #262930; margin-top: 7px; overflow: hidden; }
.bon-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #34c759, #5cff8d); }
.bon-go { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; background: #34c759; color: #04210e; font-size: 13px; font-weight: 700; }
.bon-ok { flex: none; font-size: 12px; color: #5cff8d; font-weight: 600; }
.bon-wait { flex: none; font-size: 12px; color: #6d727b; white-space: nowrap; }
.bon.ready { background: linear-gradient(100deg, #17301c, #17191d); box-shadow: inset 0 0 0 1px rgba(92, 255, 141, .25); }
.bon.done { opacity: .6; }
.bon-chk { flex: none; height: 34px; padding: 0 13px; border-radius: 17px; background: #23262c; color: #e6e8eb; font-size: 13px; font-weight: 600; }
/* TON bet tiles: bigger, bolder TON mark */
.ar-pot i.tn .tonw { width: 22px !important; height: 22px !important; }
.pgi.tnb .tonw { width: 18px !important; height: 18px !important; }
.ar-pot i.tn b { font-size: 16px; font-weight: 800; }
.pgi.tnb b { font-size: 14px; font-weight: 800; }
/* crash: lost bets stay tinted red (like cashed ones are green) */
.prow2.lose { opacity: 1; }
.prow2.lose .pst b { color: #ff5a4f; }
.dp-b { color: #5cff8d; font-weight: 700; }
/* profile sky */
#p-profile { isolation: isolate; }
.pf-sky { position: absolute; left: 0; right: 0; top: 0; height: 760px; overflow: hidden; pointer-events: none; z-index: -1; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.pf-sky .st { position: absolute; inset: 0; background-repeat: repeat; will-change: opacity; }
.pf-sky .s1 { background-image: radial-gradient(1.4px 1.4px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 90px 120px, #cfe3ff, transparent), radial-gradient(1.2px 1.2px at 160px 60px, #fff, transparent), radial-gradient(1px 1px at 230px 170px, #9cc4ff, transparent); background-size: 260px 220px; opacity: .55; animation: pfTw 4s ease-in-out infinite; }
.pf-sky .s2 { background-image: radial-gradient(1px 1px at 50px 90px, #fff, transparent), radial-gradient(1.6px 1.6px at 140px 20px, #bcd6ff, transparent), radial-gradient(1px 1px at 200px 140px, #fff, transparent); background-size: 230px 180px; opacity: .35; animation: pfTw 6s ease-in-out -2s infinite; }
@keyframes pfTw { 50% { opacity: .15; } }
.pf-sky .fly { position: absolute; left: 0; width: 46px; height: 46px; object-fit: contain; opacity: .22; filter: blur(.3px) saturate(.8); will-change: transform; animation: pfFly var(--d) linear var(--dl) infinite; }
.pf-sky .fly.f1 { width: 34px; height: 34px; opacity: .16; }
.pf-sky .fly.f2 { width: 58px; height: 58px; opacity: .14; }
@keyframes pfFly { from { transform: translateX(-80px) rotate(0) scale(var(--s)); } to { transform: translateX(calc(100vw + 80px)) rotate(var(--r)) scale(var(--s)); } }
@media (prefers-reduced-motion: reduce) { .pf-sky .fly, .pf-sky .st { animation: none; } }
#p-profile > .pf-sky { position: absolute !important; margin: 0 !important; }
#cfPool[hidden] { display: none !important; }
/* profile sky v2: no filters/masks (they made it lag), bigger and clearer gifts, brighter stars; paused when the tab is hidden */
.pf-sky { -webkit-mask-image: none; mask-image: none; height: 820px; }
.pf-sky .fly, .pf-sky .fly.f1, .pf-sky .fly.f2 { filter: none; width: 64px; height: 64px; opacity: .55; transform: translate3d(-90px, 0, 0); animation-name: pfFly2; backface-visibility: hidden; }
.pf-sky .fly.f1 { width: 50px; height: 50px; opacity: .45; }
.pf-sky .fly.f2 { width: 78px; height: 78px; opacity: .4; }
@keyframes pfFly2 { from { transform: translate3d(-90px, 0, 0) rotate(0) scale(var(--s)); } to { transform: translate3d(calc(100vw + 90px), 0, 0) rotate(var(--r)) scale(var(--s)); } }
.pf-sky .s1 { opacity: 1; background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(1.6px 1.6px at 90px 120px, #dbe9ff, transparent), radial-gradient(2.2px 2.2px at 160px 60px, #fff, transparent), radial-gradient(1.5px 1.5px at 230px 170px, #b4d2ff, transparent); }
.pf-sky .s2 { opacity: .8; background-image: radial-gradient(1.6px 1.6px at 50px 90px, #fff, transparent), radial-gradient(2.2px 2.2px at 140px 20px, #cfe2ff, transparent), radial-gradient(1.5px 1.5px at 200px 140px, #fff, transparent); }
@keyframes pfTw { 50% { opacity: .45; } }
.page:not(.on) .pf-sky * { animation-play-state: paused; }
/* craft: crystal ball instead of the wand — bigger; while crafting it glows and pulses instead of spinning */
.cfmagic { width: 74px; height: 74px; filter: drop-shadow(0 0 14px rgba(191, 90, 242, .45)); }
.cfmagic.spin { animation: cfOrb .9s ease-in-out infinite; }
@keyframes cfOrb { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(191, 90, 242, .4)); } 50% { transform: scale(1.14); filter: drop-shadow(0 0 26px rgba(214, 140, 255, .9)); } }
/* crystal ball: no CSS filter on the animated picture (it drew a visible square on some phones); the glow is a soft circle behind it */
.cfmagic, .cfmagic.spin { filter: none !important; }
#cfRes { position: relative; }
#cfRes::before { content: ''; position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -70px 0 0 -55px; border-radius: 50%; background: radial-gradient(circle, rgba(191, 90, 242, .32), rgba(191, 90, 242, 0) 70%); pointer-events: none; z-index: -1; }
@keyframes cfOrb { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
#cfRes { isolation: isolate; }
#cgo.pend { filter: brightness(.85); transform: scale(.98); }
/* game hub: drawn icons (SVG) instead of stickers */
.gart .gx.gi-ic { width: 104px; height: 104px; left: 50%; top: 50%; margin: -56px 0 0 -52px; filter: none; animation: gxBob 3.4s ease-in-out infinite; }
/* game hub: NFT gift art (same 3D style as the crash rocket) */
.gart .gx.gi-nft { width: 118px; height: 118px; left: 50%; top: 50%; margin: -64px 0 0 -59px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); animation: gxBob 3.4s ease-in-out infinite; }
.gart .gx.gi-nft { width: 96px; height: 96px; margin: -54px 0 0 -48px; }
/* mini game previews on the hub cards */
.gart .gx.mini { left: 50%; top: 46%; transform: translate(-50%, -50%) perspective(420px) rotateX(24deg) rotateZ(-6deg); filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .5)); animation: none; }
.mini-mn .mn-g { display: grid; grid-template-columns: repeat(4, 26px); gap: 4px; }
.mini-mn i { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(#3a3f4a, #23262d); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.mini-mn i.g { background: linear-gradient(#1f5f3a, #164a2c); }
.mini-mn i.b { background: linear-gradient(#6b1f1f, #451313); }
.mini-mn img { width: 19px; height: 19px; object-fit: contain; }
.mini-up { width: 104px; height: 104px; display: grid; place-items: center; }
.mini-up svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-up .t { fill: #14161b; stroke: #262a31; stroke-width: 9; }
.mini-up .a { fill: none; stroke: #5cff8d; stroke-width: 9; stroke-linecap: round; }
.mini-up img { width: 46px; height: 46px; object-fit: contain; margin-top: -10px; position: relative; }
.mini-up b { position: absolute; bottom: 20px; font-size: 14px; font-weight: 800; color: #fff; }
.mini-up .pt { position: absolute; top: -6px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top: 9px solid #fff; }
.mini-ar { width: 132px; }
.mini-ar .ar-s { display: flex; height: 58px; border-radius: 12px; overflow: hidden; }
.mini-ar .ar-s i { display: grid; place-items: center; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 10px 10px; }
.mini-ar .ar-s img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; background: #fff; }
.mini-ar .ptr { position: absolute; left: 58%; top: -8px; width: 3px; height: 74px; background: #fff; border-radius: 2px; box-shadow: 0 0 8px rgba(255, 255, 255, .7); }
.mini-cf { width: 110px; height: 110px; }
.mini-cf .ring { position: absolute; inset: 6px; border-radius: 50%; border: 2px dashed rgba(191, 90, 242, .55); background: radial-gradient(circle, rgba(191, 90, 242, .22), transparent 65%); }
.mini-cf .ball { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.mini-cf .o { position: absolute; width: 30px; height: 30px; object-fit: contain; }
.mini-cf .o0 { left: 40px; top: -6px; } .mini-cf .o1 { left: -4px; top: 62px; } .mini-cf .o2 { right: -4px; top: 62px; }
.gart .gx.mini-cf .ring { position: absolute; inset: auto; left: 6px; top: 6px; width: 98px; height: 98px; border-radius: 50%; transform: none; animation: none; margin: 0; }
.gart .gx.mini-cf, .gart .gx.mini-up { position: absolute; }
.mini-mn .mn-g { grid-template-columns: repeat(4, 23px); gap: 4px; }
.mini-mn i { width: 23px; height: 23px; }
.mini-mn img { width: 16px; height: 16px; }
.gart .gx.mini-mn { top: 43%; }
.ar-btns .ar-one { width: 100%; flex: 1 1 100%; }
.mini-ar .ball { position: absolute; left: 56%; top: 17px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #e6e9ef 60%, #b9bfca); box-shadow: 0 4px 10px rgba(0, 0, 0, .45); }
.mini-mn i.g { background: linear-gradient(#2b3a2f, #1d2a21); }
/* the same space background on the Cases and Games tabs */
#p-games .ghub { isolation: isolate; }
#p-cases > .pf-sky, #p-games .ghub > .pf-sky { position: absolute !important; margin: 0 !important; }
#p-games.ingame .pf-sky { display: none; }
/* crash rows: right side (tile + amount) moved in from the edge */
.prow2 { padding-right: 12px; }
.prow2 .pst { min-width: 58px; margin-right: 2px; }
.prow2 .pgi { margin-right: 12px; }
.pgi.tnb.win { background: linear-gradient(180deg, #34c759, #1f9e45); }
/* hub minis v2 */
.mini-mn i img.gm { width: 13px; height: 13px; opacity: .22; filter: grayscale(1); }
.gart .gx.mini-ar2 { width: 112px; height: 112px; border-radius: 50%; left: 50%; top: 46%; transform: translate(-50%, -50%) perspective(420px) rotateX(22deg); box-shadow: 0 12px 20px rgba(0, 0, 0, .5); animation: none; }
.mini-ar2 .hole { position: absolute; inset: 22px; border-radius: 50%; background: #0f1013; box-shadow: inset 0 0 12px rgba(0, 0, 0, .6); }
.mini-ar2 span { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; overflow: hidden; }
.mini-ar2 span img { width: 22px; height: 22px; object-fit: contain; }
.mini-ar2 .ball { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #e6e9ef 60%, #b9bfca); box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.gart .gx.mini-cr { position: absolute; inset: 0; width: auto; height: auto; left: 0; top: 0; margin: 0; filter: none; animation: none; overflow: hidden; border-radius: inherit; }
.mini-cr .sky { position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 18px 22px, #fff, transparent), radial-gradient(1px 1px at 70px 60px, #cfe2ff, transparent), radial-gradient(1.8px 1.8px at 120px 30px, #fff, transparent), radial-gradient(1px 1px at 150px 90px, #fff, transparent), radial-gradient(1.4px 1.4px at 40px 100px, #b4d2ff, transparent); background-size: 170px 130px; opacity: .9; animation: pfTw 3s ease-in-out infinite; }
.mini-cr .trail { position: absolute; left: 8%; top: 64%; width: 48%; height: 10px; border-radius: 8px; background: linear-gradient(90deg, transparent, rgba(92, 200, 255, .55)); transform: rotate(-24deg); filter: blur(3px); }
.mini-cr img { position: absolute; left: 50%; top: 42%; width: 104px; height: 104px; margin: -52px 0 0 -52px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(80, 220, 255, .35)); animation: gaFly 3.2s ease-in-out infinite; }
.mini-cr .spk { position: absolute; left: calc(30% + var(--i) * 3%); top: calc(60% + var(--i) * 1.5%); width: 4px; height: 4px; border-radius: 50%; background: #ffd166; box-shadow: 0 0 6px #ffb020; opacity: 0; animation: crSpk 1.4s linear calc(var(--i) * -.2s) infinite; }
@keyframes crSpk { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(-36px, 22px) scale(.3); } }
.mn-rv { width: 62%; height: 62%; object-fit: contain; opacity: .55; }
.lim-note { text-align: center; color: #6d727b; font-size: 12px; margin: 14px 0 4px; }
/* arena card v3: rectangle with slanted zones */
.gart .gx.mini-ar3 { width: 140px; height: 70px; border-radius: 12px; overflow: visible; }
.mini-ar3 svg { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 12px; }
.mini-ar3 span { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; overflow: hidden; }
.mini-ar3 span img { width: 22px; height: 22px; object-fit: contain; }
.mini-ar3 .ball { position: absolute; left: 50%; top: -9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #e6e9ef 60%, #b9bfca); box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
/* crash card: multiplier like in the game */
.mini-cr .mx { position: absolute; left: 0; right: 0; top: 14%; text-align: center; font: 900 30px/1 Unbounded, Roboto, sans-serif; color: #fff; letter-spacing: -1px; text-shadow: 0 4px 18px rgba(80, 160, 255, .5); opacity: .95; }
.mini-cr img { top: 52%; width: 92px; height: 92px; margin: -46px 0 0 -46px; }
/* cashed TON win stays blue — only a green glow marks the win */
.pgi.tnb.win { background: linear-gradient(180deg, #2a9bff, #1677f0); box-shadow: 0 0 0 2px #34c759, 0 0 12px rgba(52, 199, 89, .55); }
.mini-cr img { margin: 0; top: 60%; width: 88px; height: 88px; animation: gaFly 3.2s ease-in-out infinite; }
.mini-cr .mx { top: 10%; font-size: 26px; }
/* deposit amount: currency mark on the right */
.inp { position: relative; }
.inp .inp-ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 18px; line-height: 1; pointer-events: none; }
.inp .inp-ic .ton { width: 22px; height: 22px; }
.inp input { padding-right: 46px; }
/* deposit method buttons with icons */
.dtabs button { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 0 14px; text-align: left; }
.dtabs button > span { display: flex; flex-direction: column; gap: 1px; }
.dtabs .dic { width: 30px; height: 30px; flex: none; object-fit: contain; display: grid; place-items: center; font-style: normal; }
.dtabs .dic .ton { width: 28px; height: 28px; }
.dtabs .dic.sbp svg { width: 28px; height: 28px; }
/* daily case: the long name and the «Бесплатно» chip no longer overlap — the chip goes under the name */
.case.free .cnm { max-width: calc(100% - 24px); }
.case.free .chips { left: 10px; right: auto; top: 32px; }
/* PC: the space outside the 480 px app is a starry sky with slowly drifting NFT gifts (only shown when the window is wider than the app) */
.desk-sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; display: none; background: radial-gradient(ellipse at 20% 30%, #0d1a33 0%, transparent 55%), radial-gradient(ellipse at 80% 70%, #1a0d33 0%, transparent 55%), #02040a; }
@media (min-width: 560px) { .desk-sky { display: block; } body { background: transparent !important; } html { background: #02040a !important; } }
.desk-sky .st { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(1.6px 1.6px at 90px 120px, #dbe9ff, transparent), radial-gradient(2.2px 2.2px at 160px 60px, #fff, transparent), radial-gradient(1.5px 1.5px at 230px 170px, #b4d2ff, transparent); background-size: 260px 220px; animation: pfTw 4s ease-in-out infinite; }
.desk-sky .st.s2 { background-image: radial-gradient(1.6px 1.6px at 50px 90px, #fff, transparent), radial-gradient(2.2px 2.2px at 140px 20px, #cfe2ff, transparent), radial-gradient(1.5px 1.5px at 200px 140px, #fff, transparent); background-size: 230px 180px; opacity: .8; animation-duration: 6s; animation-delay: -2s; }
.desk-sky img { position: absolute; left: 0; width: 72px; height: 72px; object-fit: contain; opacity: .5; will-change: transform; animation: pfFly2 var(--d) linear var(--dl) infinite; }
/* profile: stars continue down the whole page (no black area after the first screen) */
#p-profile { background: radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,.9), transparent), radial-gradient(1.6px 1.6px at 90px 120px, rgba(219,233,255,.8), transparent), radial-gradient(2px 2px at 160px 60px, rgba(255,255,255,.9), transparent), radial-gradient(1.4px 1.4px at 230px 170px, rgba(180,210,255,.7), transparent), #000; background-size: 260px 220px; background-attachment: local; }
/* PC sky extras: sparkling stars, shooting stars, a passing alien, a rocket from bottom-right to top-left */
.desk-sky .tw { position: absolute; width: 14px; height: 14px; margin: -7px; background: radial-gradient(circle, #fff 0 1.5px, transparent 2.5px), linear-gradient(transparent 45%, rgba(255,255,255,.85) 50%, transparent 55%), linear-gradient(90deg, transparent 45%, rgba(255,255,255,.85) 50%, transparent 55%); opacity: 0; animation: dsTw 6s ease-in-out infinite; }
@keyframes dsTw { 0%, 70%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 80% { opacity: 1; transform: scale(1) rotate(45deg); } 90% { opacity: 0; transform: scale(.4) rotate(90deg); } }
.desk-sky .shoot { position: absolute; top: 12%; left: 70%; width: 160px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #fff, transparent); opacity: 0; transform: rotate(-28deg); animation: dsShoot 9s ease-in 3s infinite; }
.desk-sky .shoot.s2 { top: 40%; left: 20%; animation-duration: 13s; animation-delay: 8s; }
@keyframes dsShoot { 0%, 88% { opacity: 0; translate: 0 0; } 90% { opacity: 1; } 100% { opacity: 0; translate: -420px 220px; } }
.desk-sky .rk { position: absolute; right: -120px; bottom: -120px; width: 110px; height: 110px; opacity: 0; transform: rotate(-45deg); animation: dsRk 30s ease-in-out 5s infinite; }
@keyframes dsRk { 0% { opacity: 0; translate: 0 0; } 2% { opacity: 1; } 14% { opacity: 1; translate: calc(-100vw - 120px) calc(-100vh - 120px); } 15%, 100% { opacity: 0; translate: calc(-100vw - 120px) calc(-100vh - 120px); } }
.desk-sky .rk { transform: scaleX(-1); }
/* PC sky rockets: one rises diagonally on the left, later another from the bottom-right corner up to the top-right */
.desk-sky .rk { animation: none; opacity: 0; width: 100px; height: 100px; transform: none; right: auto; bottom: auto; }
.desk-sky .rkL { left: 6%; top: 100%; transform: scaleX(-1); animation: dsRkL 34s ease-in-out 4s infinite; }
.desk-sky .rkR { left: calc(100% - 140px); top: 100%; animation: dsRkR 34s ease-in-out 21s infinite; }
@keyframes dsRkL { 0% { opacity: 0; translate: 0 0; } 2% { opacity: 1; } 16% { opacity: 1; translate: -6vw -115vh; } 17%, 100% { opacity: 0; translate: -6vw -115vh; } }
@keyframes dsRkR { 0% { opacity: 0; translate: -18vw 0; } 2% { opacity: 1; } 16% { opacity: 1; translate: 6vw -115vh; } 17%, 100% { opacity: 0; translate: 6vw -115vh; } }
/* PC sky: free-floating gifts on random paths */
.desk-sky img.drift { left: 0; top: 0; width: var(--sz); height: var(--sz); animation-name: dsDrift; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes dsDrift { from { transform: translate(var(--x0), var(--y0)) rotate(var(--r0)); } to { transform: translate(var(--x1), var(--y1)) rotate(var(--r1)); } }
.crl { filter: drop-shadow(0 0 14px rgba(255, 180, 80, .35)); }
/* Stellar Rocket's nose sits ~18° higher than the old paper plane: turn the art so it points along the flight path */
.crl > img, .crl > .lot-layer { transform: rotate(18deg); }
/* crash card: no trail line, rocket and multiplier a bit lower */
.mini-cr .trail { display: none; }
.mini-cr .mx { top: 17%; }
.gart .gx.mini-cr img { top: 66%; }
/* PC sky rockets fly nose-first along their path (art nose is ~52° up-right) */
.desk-sky .rkL { transform: rotate(33deg) scaleX(-1); }
.desk-sky .rkR { transform: rotate(-18deg); }
.mini-cr .rkl { position: absolute; left: 50%; top: 66%; width: 92px; height: 92px; margin: 0; animation: gaFly 3.2s ease-in-out infinite; filter: drop-shadow(0 6px 14px rgba(255, 170, 80, .3)); }
.gart .gx.mini-cr .rkl img { position: static; width: 100%; height: 100%; margin: 0; animation: none; filter: none; }
/* profile sky: slow free-floating gifts on random paths (was a fast even stream) */
.pf-sky .pdrift { position: absolute; left: 0; top: 0; width: var(--sz); height: var(--sz); object-fit: contain; opacity: .5; will-change: transform; animation-name: pfDrift; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes pfDrift { from { transform: translate(var(--x0), calc(var(--y0) * 8.2px)) rotate(var(--r0)); } to { transform: translate(var(--x1), calc(var(--y1) * 8.2px)) rotate(var(--r1)); } }
/* nothing but the rocket on the loading screen: the PC sky gifts appear only after loading */
.desk-sky img.drift { opacity: 0; transition: opacity 1.2s; }
body.ready .desk-sky img.drift { opacity: .5; }
/* crash card: no hard edge between the art and the title (the sky fades out, the flame is not cut) */
.gart .gx.mini-cr { inset: 0 0 -46px 0; overflow: visible; border-radius: 0; }
.mini-cr .sky { -webkit-mask-image: linear-gradient(#000 55%, transparent 90%); mask-image: linear-gradient(#000 55%, transparent 90%); }
.mini-cr .rkl { top: 46%; }
.mini-cr .mx { top: 12%; }
#ftType { flex-wrap: wrap; height: auto; gap: 4px; padding: 4px; }
#ftType button { flex: 1 1 30%; font-size: 12px; padding: 8px 4px; }
/* Telegram Stars icon (XTR() in core.js) */
.xtr { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.2em; flex: none; }
.dtabs .dic .xtr { width: 30px; height: 30px; vertical-align: 0; }
.inp .inp-ic .xtr { width: 22px; height: 22px; vertical-align: 0; display: block; }
.qrow button .xtr { width: 17px; height: 17px; vertical-align: -3px; margin-left: 2px; }
.sbpn svg.xtr, .dprev svg.xtr { width: 15px; height: 15px; vertical-align: -2px; display: inline-block; }
.inp .inp-ic > svg:not(.xtr) { width: 22px; height: 22px; display: block; }
/* leaderboard: season prizes (real players) + the player's place in the prize race */
.lbprz { margin: 14px 0 6px; padding: 14px; border-radius: 18px; background: #16181c; }
.lbprz-t { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.lbprz-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lbprz-i { position: relative; aspect-ratio: 1; border-radius: 14px; background: #1e2024; display: grid; place-items: center; }
.lbprz-i img { width: 74%; height: 74%; object-fit: contain; }
.lbprz-i i { position: absolute; left: 5px; top: 4px; font-style: normal; font-size: 11px; font-weight: 700; color: #9aa3ad; }
.lbprz-i.my { box-shadow: 0 0 0 2px #2aa8ff inset; background: #142334; }
.lbprz-me { margin-top: 12px; font-size: 13px; line-height: 18px; color: #c9ccd2; }
.lbprz-me b { color: #fff; }
/* living space background on all screens (phones too): same stars + drifting gifts as the profile, as one fixed layer behind every page */
.sky-bg { position: fixed; inset: 0; height: 100%; z-index: 0; overflow: hidden; pointer-events: none; -webkit-mask-image: none; mask-image: none;
  background: radial-gradient(ellipse at 22% 14%, #0e1b35 0%, transparent 55%), radial-gradient(ellipse at 82% 86%, #1a0d33 0%, transparent 55%), #05080f; }
.sky-bg .pdrift { opacity: .4; }
#pages, .page { background: transparent; }
#p-profile { background: transparent; } /* one shared sky for every screen, including the profile */
/* free the GPU on weak phones: stop the drifting gifts while a game runs, or when the system asks for less motion */
body.ingame .sky-bg .pdrift, body.ingame .sky-bg .st { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .sky-bg .pdrift, .sky-bg .st { animation: none; } }
