@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root, .player, .splash, .snack, .iap, .scr-feed ~ .tabbar, .scr-onboarding ~ .tabbar {
  color-scheme: dark; color: var(--text);
  --bg: #170B15; --surface: #221420; --group: #21131F; --fill: #30202D; --fill-2: #3B2B39; --fill-3: #493846;
  --fg: 255,255,255; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.18);
  --text: #F6EDF3; --text-2: #AA9EA7; --text-3: #867C84; --tab: #958A92;
  --accent: #FF2D6F; --accent-press: #E9005E; --accent-text: #FF2D6F; --on-accent: #FFFFFF;
  --toast: #362633; --danger: #FF6B6B; --white-press: #DFD3DD; --seg-on: #493846; --seg-shadow: none; --under: #000;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #FFFFFF; --surface: #FFFFFF; --group: #F5F3F5; --fill: #F0EDF0; --fill-2: #E6E2E6; --fill-3: #D8D3D8;
    --fg: 23,11,21; --line: rgba(23,11,21,.09); --line-2: rgba(23,11,21,.16);
    --text: #170B15; --text-2: #6C6370; --text-3: #8F8794; --tab: #9A929E;
    --accent-text: #D70056; --danger: #D92D20; --white-press: #3A2B37; --seg-on: #FFFFFF; --seg-shadow: 0 1px 3px rgba(23,11,21,.14); --under: #D9D4DA;
  }
}
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --sb: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)); --hb: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)); --tb: calc(50px + var(--hb)); --g: 16px;
  --r-btn: 12px; --r-card: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overscroll-behavior: none; }
body { background: var(--bg); color: var(--text); font: 400 15px/20px var(--font); -webkit-font-smoothing: antialiased;
  overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, textarea { font: inherit; color: inherit; }
svg { display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }

.device { position: fixed; top: 0; bottom: 0; left: env(safe-area-inset-left, 0px); right: env(safe-area-inset-right, 0px); margin: 0 auto;
  max-width: max(100vh * 0.5625, min(520px, 100vh * 0.75)); max-width: max(100dvh * 0.5625, min(520px, 100dvh * 0.75)); }
.app { position: absolute; inset: 0; overflow: hidden; background: var(--bg); isolation: isolate; }
.screen { position: absolute; inset: 0; overflow: hidden; }

.wm { display: block; width: auto; height: 18px; }
.wm.md { height: 21px; }
.wm.lg { height: 26px; }
.app-icon { display: block; flex: none; box-shadow: 0 0 0 1px rgba(var(--fg),.08); }

.page { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding-top: var(--sb);
  padding-bottom: calc(var(--tb) + 20px); }
.page::-webkit-scrollbar { display: none; }
.no-tab .page { padding-bottom: calc(var(--hb) + 24px); }
.sb-fill { position: absolute; top: 0; left: 0; right: 0; height: var(--sb); background: var(--bg); z-index: 20; }
.topbar { position: sticky; top: 0; z-index: 15; height: 52px; display: flex; align-items: center; gap: 2px; padding: 0 8px 0 var(--g);
  background: var(--bg); }
.topbar.push { padding-left: 4px; }
.topbar .sp { flex: 1; }
.topbar .tb-title { position: absolute; left: 96px; right: 96px; text-align: center; font: 600 17px/22px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.tb-txt { height: 44px; padding: 0 8px 0 12px; font: 400 16px/1 var(--font); color: var(--text); flex: none; }
.lt-bar { display: flex; align-items: center; gap: 2px; min-height: 56px; padding: 4px 8px 4px var(--g); }
.lt-bar .large-title { flex: 1; min-width: 0; }
.large-title { font: 700 32px/38px var(--font); letter-spacing: -.02em; }
.ib { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; flex: none; }
.ib svg { width: 24px; height: 24px; }
.ib:active { background: var(--fill); }
.xb { width: 30px; height: 30px; border-radius: 50%; background: var(--fill-2); display: grid; place-items: center; flex: none; color: var(--text-2); position: relative; }
.xb::after { content: ""; position: absolute; inset: -7px; }
.xb svg { width: 16px; height: 16px; }
.xb svg path { stroke-width: 2.4; }
.bal { height: 32px; padding: 0 12px 0 8px; border-radius: 16px; background: var(--fill); display: inline-flex; align-items: center; gap: 6px;
  font: 600 14px/1 var(--font); font-variant-numeric: tabular-nums; flex: none; margin-right: 4px; }
.bal .coin { width: 18px; height: 18px; }
.coin { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; }

.sec-h { display: flex; align-items: baseline; justify-content: space-between; padding: 26px var(--g) 12px; }
.sec-h h2 { font: 700 20px/25px var(--font); letter-spacing: -.01em; }
.g-h { padding: 22px var(--g) 8px; font: 600 14px/19px var(--font); color: var(--text-2); }
.g-h-row { display: flex; justify-content: space-between; }
.g-h-row span:last-child { font-weight: 400; }
.g-sub { padding: 14px var(--g) 6px; font: 500 13px/18px var(--font); color: var(--text-3); }
.meta { font: 400 13px/18px var(--font); color: var(--text-2); }
.body-t { font: 400 15px/21px var(--font); color: var(--text); }
.lnk { font: 500 15px/20px var(--font); color: var(--text-2); }
.lnk:active { color: var(--text); }
.sh-pad .lnk, .meta .lnk { color: var(--text); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }
.t2 { color: var(--text-2); }
.danger { color: var(--danger); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px var(--g) 8px; }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--fill); font: 500 14px/32px var(--font);
  white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.chip::after { content: ""; position: absolute; inset: -6px 0; }
.chip.on { background: var(--text); color: var(--bg); }
.chip svg { width: 16px; height: 16px; }

.seg-wrap { padding: 20px var(--g) 8px; }
.seg { display: flex; height: 34px; padding: 2px; border-radius: 10px; background: var(--fill); gap: 2px; }
.seg > * { flex: 1 1 auto; min-width: 0; height: 30px; border-radius: 8px; font: 500 13px/30px var(--font); color: var(--text-2); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.seg > .on { background: var(--seg-on); box-shadow: var(--seg-shadow); color: var(--text); font-weight: 600; }

.btn { height: 44px; padding: 0 16px; border-radius: var(--r-btn); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font); white-space: nowrap; flex: none; }
.btn svg { width: 20px; height: 20px; }
.btn.white { background: var(--text); color: var(--bg); }
.btn.white:active { background: var(--white-press); }
.btn.tonal { background: var(--fill); color: var(--text); }
.btn.tonal:active { background: var(--fill-2); }
.btn.plain { background: none; color: var(--text); font-weight: 500; }
.btn.buy { background: var(--accent); color: var(--on-accent); white-space: normal; text-align: center; line-height: 20px; height: auto; min-height: 50px; padding: 13px 18px; }
.btn.buy:active { background: var(--accent-press); }
.btn.block { display: flex; width: 100%; height: 50px; }
.btn.buy.block { height: auto; }
.btn.small { height: 32px; padding: 0 12px; font-size: 14px; border-radius: 9px; gap: 6px; }
.btn.small svg { width: 16px; height: 16px; }
.btn[disabled] { opacity: .4; }

.th { position: relative; overflow: hidden; background: var(--fill-2) center/cover no-repeat; border-radius: 8px; flex: none; }
.th.p34 { aspect-ratio: 3 / 4; }
.th.p23 { aspect-ratio: 2 / 3; }
.th.w169 { aspect-ratio: 16 / 9; }
.prog { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.prog i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 2px; }
.lockmask { position: absolute; inset: 0; background: rgba(23,11,21,.5); display: grid; place-items: center; color: #fff; }
.lockmask svg { width: 18px; height: 18px; }
.blurimg { position: absolute; inset: -8px; background: center/cover no-repeat; filter: blur(6px); }

.av { border-radius: 50%; background: var(--fill-2) center/cover no-repeat; flex: none; display: inline-block; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { height: 22px; padding: 0 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 12px/22px var(--font); color: var(--text-2);
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.badge .coin { width: 13px; height: 13px; }
.badge svg:not(.coin) { width: 13px; height: 13px; }
.badge.price { color: var(--accent-text); box-shadow: inset 0 0 0 1px rgba(255,45,111,.5); }
.tag { display: inline-flex; align-items: center; gap: 4px; font: 500 13px/18px var(--font); color: var(--text-3); white-space: nowrap; flex: none; }
.tag svg { width: 14px; height: 14px; }
.tag.price { color: var(--accent-text); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.tag.price .coin { width: 15px; height: 15px; }
.tag.cur { color: var(--text); }

.group { margin: 0 var(--g); background: var(--group); border-radius: var(--r-card); overflow: hidden; }
.sheet .group { background: var(--fill); }
.rows { padding: 4px 0; }
.row { position: relative; display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 10px 12px 10px var(--g); width: 100%; text-align: left; }
.row:active { background: rgba(var(--fg),.05); }
.group > .row + .row::before, .group > .lrow + .lrow::before, .group > .ep-up + .ep-up::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: 1px; background: var(--line); }
.group > .row.noicon + .row::before, .group > .row + .row.noicon::before { left: var(--g); }
.row > svg, .row .ri { width: 22px; height: 22px; flex: none; color: var(--text-2); }
.row > .coin.ri { width: 20px; height: 20px; margin: 0 1px; }
.row .rl { flex: 1; min-width: 0; font: 400 16px/21px var(--font); }
.row .rl small { display: block; font: 400 13px/18px var(--font); color: var(--text-2); margin-top: 1px; }
.row .rv { font: 400 15px/20px var(--font); color: var(--text-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.row .rv.acc { color: var(--accent-text); font-weight: 600; }
.row .rv.wh { color: var(--text); font-weight: 500; }
.row .chv { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.row.off .rl { color: var(--text-2); }
.divider { height: 1px; background: var(--line); margin: 4px 0; }

.erow { display: flex; gap: 12px; align-items: center; padding: 6px var(--g); width: 100%; text-align: left; position: relative; }
.erow:active { background: rgba(var(--fg),.04); }
.erow .th { width: 48px; border-radius: 7px; }
.erow .et { flex: 1; min-width: 0; }
.erow .et b { display: block; font: 500 15px/20px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erow .et .no { display: inline-block; min-width: 26px; color: var(--text-3); font-variant-numeric: tabular-nums; font-weight: 500; }
.erow .et .meta { display: block; margin-top: 2px; padding-left: 26px; }
.erow.cur { background: var(--fill); border-radius: 12px; margin: 2px 8px; width: calc(100% - 16px); padding: 6px 8px; }
.erow .prog { left: 3px; right: 3px; bottom: 3px; }
.srow { display: flex; gap: 14px; align-items: center; padding: 8px 12px 8px var(--g); width: 100%; text-align: left; }
.srow:active { background: rgba(var(--fg),.04); }
.srow .th { width: 60px; }
.srow .st { flex: 1; min-width: 0; }
.srow .st b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 16px/21px var(--font); }
.srow .st .meta { display: block; margin-top: 3px; }
.srow .st-strip { display: block; margin-top: 10px; max-width: 210px; }
.srow .st-act { display: block; margin-top: 10px; }
.srow > .chv { width: 16px; height: 16px; color: var(--text-3); flex: none; }

.strip { display: flex; gap: 2px; height: 4px; width: 100%; }
.strip .sg { position: relative; flex: 1 1 0; min-width: 2px; border-radius: 1px; background: rgba(var(--fg),.42); overflow: hidden; }
.strip .sg.w { background: rgba(var(--fg),.92); }
.strip .sg.l { background: none; box-shadow: inset 0 0 0 1px rgba(var(--fg),.42); }
.strip .sg.s { background: rgba(var(--fg),.12); }
.strip .sg.b { margin-left: 5px; }
.strip .sg.c { flex: 0 0 28px; background: rgba(var(--fg),.3); }
.strip .sg.c.l { background: none; }
.strip .sg.c b { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.strip .sg.t { flex: 0 0 28px; background: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.strip .sg.just { animation: sgUnlock .9s var(--ease) both; }
@keyframes sgUnlock { 0% { background: none; box-shadow: inset 0 0 0 1.5px var(--accent); } 55% { background: var(--accent); box-shadow: none; } 100% { } }
.strip.sm { height: 3px; }
.strip.sm .sg.c { flex-basis: 16px; }
.strip.sm .sg.b { margin-left: 4px; }
.ps-l { display: flex; align-items: center; gap: 2px; font: 500 13px/18px var(--font); color: var(--text-2); margin-bottom: 8px; }
.ps-l .chv { width: 14px; height: 14px; opacity: .7; flex: none; }

.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--tb); z-index: 40; background: var(--bg);
  box-shadow: inset 0 1px 0 var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding: 2px 8px var(--hb); }
.tabbar.hidden { display: none; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 500 10px/12px var(--font); color: var(--tab); }
.tab svg { width: 26px; height: 26px; }
.tab.on { color: var(--text); }

.overlay { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
.overlay.on { pointer-events: auto; }
.scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .25s; }
.overlay.on .scrim { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - var(--sb) - 8px); background: var(--surface);
  border-radius: 16px 16px 0 0; transform: translateY(100%); transition: transform .28s var(--ease); display: flex; flex-direction: column;
  padding-bottom: var(--hb); }
.overlay.on .sheet { transform: none; }
.grab { width: 36px; height: 5px; border-radius: 3px; background: rgba(var(--fg),.22); margin: 6px auto 4px; flex: none; }
.sh-head { display: flex; align-items: flex-start; gap: 12px; padding: 8px var(--g) 10px; flex: none; }
.sh-head h3 { flex: 1; min-width: 0; font: 700 19px/24px var(--font); letter-spacing: -.01em; }
.sh-head h3 small { display: block; font: 400 13px/18px var(--font); color: var(--text-2); margin-top: 2px; letter-spacing: 0; }
.sh-body { overflow-y: auto; scrollbar-width: none; flex: 1; min-height: 0; }
.sh-body::-webkit-scrollbar { display: none; }
.sh-foot { display: flex; gap: 10px; padding: 12px var(--g) 4px; flex: none; }
.sh-foot .btn { flex: 1; height: auto; min-height: 48px; }
.sh-pad { padding: 0 var(--g); }
.sh-group { margin-bottom: 8px; }
.dialog-wrap { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 48px; }
.dialog { width: 100%; max-width: 290px; background: var(--fill); border-radius: 14px; padding: 20px 16px 0; text-align: center; transform: scale(1.04); opacity: 0;
  transition: transform .2s var(--ease), opacity .2s; overflow: hidden; }
.overlay.on .dialog { transform: none; opacity: 1; }
.dialog h3 { font: 600 17px/22px var(--font); margin-bottom: 6px; }
.dialog p { font: 400 13px/18px var(--font); color: var(--text-2); }
.dialog .dl-btns { display: flex; margin: 18px -16px 0; box-shadow: inset 0 1px 0 var(--line-2); }
.dialog .dl-btns button { flex: 1; height: 46px; font: 400 16px/1 var(--font); color: var(--text-2); }
.dialog .dl-btns button + button { box-shadow: inset 1px 0 0 var(--line-2); }
.dialog .dl-btns .strong { color: var(--text); font-weight: 600; }
.check-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font: 400 15px/21px var(--font); color: var(--text); }
.check-row .box { width: 22px; height: 22px; border: 2px solid var(--text-3); border-radius: 6px; flex: none; margin-top: 1px; display: grid; place-items: center; }
.check-row.on .box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.check-row .box svg { width: 15px; height: 15px; opacity: 0; }
.check-row .box svg path { stroke-width: 2.6; }
.check-row.on .box svg { opacity: 1; }

.snacks { position: absolute; left: 10px; right: 10px; bottom: calc(var(--tb) + 10px); z-index: 80; pointer-events: none; display: flex; flex-direction: column; gap: 8px; }
.no-tab-app .snacks { bottom: calc(var(--hb) + 10px); }
.snack { pointer-events: auto; min-height: 50px; border-radius: 14px; background: var(--toast); color: var(--text); display: flex; align-items: center;
  gap: 12px; padding: 6px 6px 6px 14px; font: 500 14px/19px var(--font); box-shadow: inset 0 0 0 1px var(--line); transform: translateY(12px); opacity: 0;
  transition: transform .2s var(--ease), opacity .2s; }
.snack.in { transform: none; opacity: 1; }
.snack span { flex: 1; padding: 8px 0; }
.snack .app-icon { box-shadow: none; }
.snack button { height: 38px; padding: 0 14px; font: 600 14px/1 var(--font); color: var(--bg); background: var(--text); border-radius: 10px; flex: none; }

.tgl { width: 51px; height: 31px; border-radius: 16px; background: var(--fill-3); position: relative; flex: none; transition: background .2s; }
.tgl::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.tgl.on { background: var(--accent); }
.tgl.on::after { transform: translateX(20px); }

.fade-in { animation: fi .25s var(--ease); }
@keyframes fi { from { opacity: 0; } to { opacity: 1; } }
.push-in { animation: pi .3s var(--ease); }
@keyframes pi { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.pop-in { animation: po .28s var(--ease); }
@keyframes po { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.swiping-back { background: var(--under); }
.swiping-back .screen { background: var(--bg); box-shadow: -10px 0 28px rgba(0,0,0,.45); }

.btn, .chip, .xb, .bal, .pack, .seg > *, .tab svg, .rail button svg, .pcard .th, .card .th { transition: transform .16s var(--ease); }
.btn:active, .chip:active, .xb:active, .bal:active, .pack:active { transform: scale(.97); }
.btn[disabled]:active { transform: none; }
.seg > *:active { transform: scale(.95); }
.tab:active svg, .rail button:active svg { transform: scale(.86); }
.pcard:active .th, .card:active .th { transform: scale(.96); }
.page, .sh-body { overscroll-behavior-y: contain; }
.chips, .shelf { overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding: 0 var(--g); }
.chips > *, .shelf > * { scroll-snap-align: start; }
.empty { padding: 48px 32px; text-align: center; color: var(--text-2); font: 400 15px/21px var(--font); }
.empty b { display: block; color: var(--text); font: 600 17px/22px var(--font); margin-bottom: 6px; }
.num { font-variant-numeric: tabular-nums; }
.sheet-up { animation: su .28s var(--ease); }
@keyframes su { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .push-in, .pop-in, .sheet-up, .fade-in, .strip .sg.just { animation: none; } .sheet, .dialog, .snack { transition: none; } }
