/* CaseLab Mini App — dark industrial CS2-inspired theme. Self-hosted font, no external CSS. */
@font-face { font-family: "Rubik"; src: url("../fonts/rubik-var.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --accent: #ff9f1a; --accent2: #ffd23f; --accent-ink: #1d1203;
  --bg: #0d0f13; --bg2: #12151a; --card: #171b21; --card2: #1d222a; --card3: #242a33;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12);
  --text: #f3f5f8; --muted: #9aa3b0; --muted2: #6c7480;
  --ok: #38d27a; --bad: #ff5b5b; --warn: #ffc542;
  --r-consumer: #b0c3d9; --r-industrial: #5e98d9; --r-milspec: #4b69ff; --r-restricted: #8847ff;
  --r-classified: #d32ce6; --r-covert: #eb4b4b; --r-rare: #e4ae39;
  --radius: 14px; --radius-sm: 10px;
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --content-top: var(--tg-content-safe-area-inset-top, 0px);
  --nav-h: 68px;
  --vh: 1vh;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.35; }
body { min-height: 100vh; overscroll-behavior-y: none; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.upper { text-transform: uppercase; letter-spacing: .02em; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num { font-variant-numeric: tabular-nums; }
.ok { color: var(--ok); } .bad { color: var(--bad); } .accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- App shell ---------- */
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; padding-top: calc(var(--safe-top) + var(--content-top)); padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 14px); }
#view { position: relative; }
.page { padding: 0 14px; animation: pageIn .22s ease-out; }
.page.flush { padding: 0; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.reduce-motion .page { animation: none; }

/* bottom navigation */
.nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding-bottom: var(--safe-bottom); background: linear-gradient(180deg, rgba(20,23,28,.92), #101216); border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-inner { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--nav-h); }
.nav-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #aab1bc; font-size: 12.5px; font-weight: 500; }
.nav-btn svg { width: 27px; height: 27px; }
.nav-btn.active { color: var(--accent); }
.nav-btn.active::after { content: ""; position: absolute; bottom: 0; left: 18%; right: 18%; height: 4px; border-radius: 4px 4px 0 0; background: var(--accent); box-shadow: 0 0 12px rgba(255,159,26,.6); }
.nav-btn .dot { position: absolute; top: 9px; right: calc(50% - 20px); width: 9px; height: 9px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px #101216; }

/* top bar (reference: "КЕЙСЫ" + balance card) */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 0; position: relative; z-index: 5; }
.tabtitle { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px 8px 12px 6px; }
.tabtitle .ico { width: 46px; height: 40px; color: var(--accent); filter: drop-shadow(0 2px 6px rgba(255,159,26,.35)); }
.tabtitle h1 { margin: 0; font-size: 22px; font-weight: 800; color: var(--accent); letter-spacing: .03em; text-transform: uppercase; }
.tabtitle::after { content: ""; position: absolute; left: -14px; right: -40px; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(255,159,26,.15), var(--accent) 35%, rgba(255,159,26,0)); }
.balance { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 12px; background: linear-gradient(180deg, #1c2027, #14171c); border: 1px solid var(--line2); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 6px 18px rgba(0,0,0,.35); }
.balance .wallet { width: 36px; height: 32px; color: var(--accent); }
.balance .lbl { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.balance .val { font-size: 21px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.balance .plus { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: var(--accent-ink); background: linear-gradient(180deg, var(--accent2), var(--accent)); box-shadow: 0 4px 14px rgba(255,159,26,.45), inset 0 1px 0 rgba(255,255,255,.5); }
.balance .plus svg { width: 22px; height: 22px; }
.balance.bump .val { animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.12); color: var(--accent2); } }

/* page header for inner screens */
.phead { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.phead h2 { margin: 0; font-size: 19px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.phead .sub { color: var(--muted); font-size: 13px; }
.backbtn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); }
.backbtn svg { width: 20px; height: 20px; }
.tg .backbtn { display: none; }

/* ---------- Hero (Home) ---------- */
.hero { position: relative; margin-top: 6px; min-height: 420px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: #1a1c1f center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 45% at 50% 55%, rgba(255,190,80,.16), transparent 70%), linear-gradient(180deg, rgba(13,15,19,.92) 0%, rgba(13,15,19,.25) 22%, rgba(13,15,19,.1) 55%, rgba(13,15,19,.75) 86%, var(--bg) 100%); }
.hero-title { text-align: center; padding: 26px 16px 0; }
.hero-title h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.hero-title p { margin: 6px 0 0; font-size: 17px; color: #d5d9df; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.hero-case { position: relative; width: 72%; max-width: 330px; margin: 6px auto -6px; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.hero-case img { width: 100%; filter: drop-shadow(0 22px 22px rgba(0,0,0,.65)) drop-shadow(0 0 30px rgba(255,170,40,.18)); animation: floaty 5s ease-in-out infinite; }
.reduce-motion .hero-case img { animation: none; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.hero-cta { display: flex; justify-content: center; padding: 0 16px; position: relative; z-index: 3; }
.hero-meta { display: flex; justify-content: center; gap: 14px; margin-top: 10px; font-size: 12.5px; color: #c2c8d0; text-shadow: 0 1px 4px #000; }
.hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--accent); }

/* decorative item strip under the hero (reference) */
.strip-wrap { position: relative; margin-top: 18px; padding: 0 0 2px; overflow: hidden; }
.strip-row { display: flex; gap: 8px; padding: 0 12px; justify-content: center; }
.strip-row .sitem { flex: 0 0 calc((100% - 24px - 32px) / 5); }
.marker { position: absolute; z-index: 4; left: 50%; top: -14px; bottom: -14px; width: 3px; margin-left: -1.5px; background: linear-gradient(180deg, transparent, var(--accent) 12%, var(--accent2) 50%, var(--accent) 88%, transparent); box-shadow: 0 0 10px rgba(255,170,40,.85); border-radius: 2px; pointer-events: none; }
.marker::before, .marker::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 6px solid transparent; }
.marker::before { top: 4px; border-top-color: var(--accent2); }
.marker::after { bottom: 4px; border-bottom-color: var(--accent2); }

/* item tiles */
.sitem { --r: #4b69ff; --rg: rgba(75,105,255,.3); position: relative; aspect-ratio: 1 / .92; border-radius: 6px; overflow: hidden; background: radial-gradient(ellipse 80% 70% at 50% 100%, var(--rg), transparent 70%), linear-gradient(180deg, #3a4049 0%, #262a31 55%, #1d2026 100%); border: 1px solid rgba(255,255,255,.06); display: grid; place-items: center; }
.sitem img { width: 88%; height: 78%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
.sitem::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--r); box-shadow: 0 -2px 10px var(--rg); }
.sitem.rare { background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(255,214,102,.55), rgba(196,140,30,.3) 55%, transparent 75%), linear-gradient(180deg, #8a6416, #5b3f0b 60%, #3b2a08); border-color: rgba(255,214,102,.35); }
.sitem.rare .laurel { position: absolute; inset: 8%; color: rgba(255,226,150,.75); }
.sitem.rare img { position: relative; z-index: 1; }
.sitem .qmark { position: relative; z-index: 1; font-size: 34px; font-weight: 900; color: #ffe39a; text-shadow: 0 2px 8px rgba(0,0,0,.6); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; background: var(--card2); border: 1px solid var(--line2); color: var(--text); transition: transform .08s ease, filter .15s ease, opacity .15s; user-select: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 22px; height: 22px; }
.btn.primary { color: var(--accent-ink); border: 0; background: linear-gradient(180deg, #ffc04a 0%, var(--accent) 55%, #f08a0c 100%); box-shadow: 0 8px 24px rgba(255,150,20,.38), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.15); }
.btn.big { min-height: 62px; font-size: 20px; font-weight: 800; padding: 0 28px; border-radius: 14px; width: 100%; max-width: 380px; }
.btn.big svg { width: 30px; height: 30px; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn.ghost { background: transparent; border-color: var(--line2); }
.btn.outline-accent { background: rgba(255,159,26,.08); border: 1.5px solid rgba(255,159,26,.75); color: #ffd79a; }
.btn.danger { background: rgba(255,91,91,.12); border-color: rgba(255,91,91,.5); color: #ffb3b3; }
.btn[disabled], .btn.loading { opacity: .55; pointer-events: none; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn .price { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 7px; background: rgba(0,0,0,.18); font-size: 14px; }
.iconbtn { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn.on { color: var(--accent); border-color: rgba(255,159,26,.45); }

/* ---------- Cards ---------- */
.card { position: relative; border-radius: var(--radius); background: linear-gradient(180deg, #1b1f26, #15181d); border: 1px solid var(--line2); box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 8px 24px rgba(0,0,0,.25); padding: 14px; overflow: hidden; }
.card + .card, .section + .section { margin-top: 12px; }
.card h3, .section-title { margin: 0; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.section { margin-top: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; }
.section-head a, .link { color: #b7bec8; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; }
.section-head a svg, .link svg { width: 15px; height: 15px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* daily bonus card (reference) */
.daily-card { display: flex; align-items: center; gap: 14px; padding: 16px; min-height: 118px; background: linear-gradient(105deg, rgba(255,159,26,.16), rgba(255,159,26,.04) 45%, rgba(255,255,255,.02) 60%, rgba(255,159,26,.08)), repeating-linear-gradient(120deg, transparent 0 46px, rgba(255,170,60,.045) 46px 52px), #17191d; border-color: rgba(255,170,60,.25); }
.daily-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: radial-gradient(ellipse at 30% 60%, rgba(255,170,40,.28), transparent 70%); pointer-events: none; }
.daily-card .gift { width: 64px; height: 64px; flex: 0 0 64px; position: relative; filter: drop-shadow(0 6px 12px rgba(255,160,30,.35)); }
.daily-card h3 { color: #ffc65a; font-size: 16px; line-height: 1.15; }
.daily-card .grow { min-width: 0; }
.daily-card p { margin: 5px 0 0; color: #d3d7dd; font-size: 13.5px; line-height: 1.3; }
.pill-status { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid rgba(255,170,40,.75); background: rgba(255,159,26,.08); color: #ffcf7d; font-weight: 600; font-size: 12.5px; line-height: 1.15; white-space: nowrap; text-align: left; }
.pill-status svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 22px; }
.pill-status.done { border-color: rgba(56,210,122,.55); color: #a5f0c5; background: rgba(56,210,122,.08); }
.pill-status.done svg { color: var(--ok); }

/* collection & rating tiles (reference) */
.tile { min-height: 186px; display: flex; flex-direction: column; padding: 14px; }
.tile .tile-head { display: flex; align-items: center; gap: 10px; }
.tile .tile-head svg { width: 32px; height: 32px; color: var(--accent); flex: 0 0 32px; }
.tile .tile-head h3 { font-size: 15.5px; }
.tile p { margin: 12px 0 0; color: #b9c0ca; font-size: 13.5px; max-width: 62%; position: relative; z-index: 1; }
.tile .tile-foot { margin-top: auto; position: relative; z-index: 1; }
.tile .art { position: absolute; right: -8px; bottom: 18px; width: 58%; opacity: .95; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(0,0,0,.6)); }
.tile .art.medal { width: 44%; right: 8px; bottom: 28px; }
.tile .big-num { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tile .count { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.move { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 13px; }
.move.up { color: var(--ok); } .move.down { color: var(--bad); }
.move svg { width: 12px; height: 12px; }

.progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.09); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent2)); box-shadow: 0 0 10px rgba(255,170,40,.45); transition: width .6s ease; }
.progress.thin { height: 4px; }
.progress.green > i { background: linear-gradient(90deg, #22b866, #5ef0a0); box-shadow: none; }

/* leaderboard rows */
.lb { padding: 0; }
.lb .lb-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 10px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.025), transparent); }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.lb-row:last-child { border-bottom: 0; }
.lb-row.me { background: linear-gradient(90deg, rgba(255,159,26,.12), transparent); }
.rank { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; font-weight: 800; color: #c6ccd5; font-size: 14px; }
.rank.r1, .rank.r2, .rank.r3 { border-radius: 50%; color: #3b2600; box-shadow: inset 0 -2px 0 rgba(0,0,0,.2), 0 0 10px rgba(255,190,60,.3); }
.rank.r1 { background: radial-gradient(circle at 35% 30%, #ffe9a0, #f2b11b 60%, #c98a06); }
.rank.r2 { background: radial-gradient(circle at 35% 30%, #ffffff, #c5ccd6 60%, #8f98a5); box-shadow: none; }
.rank.r3 { background: radial-gradient(circle at 35% 30%, #ffd0a8, #d58a4c 60%, #9c5a26); box-shadow: none; }
.lb-sep { width: 2px; height: 22px; background: linear-gradient(180deg, transparent, var(--accent), transparent); border-radius: 2px; opacity: .8; }
.lb-score { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-score svg { width: 24px; height: 22px; color: var(--accent); }
.lb .prize { font-size: 12px; color: var(--accent2); }

/* avatar */
.avatar { --fc: transparent; position: relative; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: #2a2f37 center / cover; display: grid; place-items: center; font-weight: 800; color: #cfd5dd; box-shadow: 0 0 0 2px var(--fc); overflow: hidden; }
.avatar.lg { width: 84px; height: 84px; flex-basis: 84px; font-size: 30px; box-shadow: 0 0 0 3px var(--fc), 0 0 22px var(--fg, transparent); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Case cards (catalog) ---------- */
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case-card { position: relative; border-radius: var(--radius); padding: 10px 10px 12px; background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255,170,60,.12), transparent 70%), linear-gradient(180deg, #1e232a, #15181d); border: 1px solid var(--line2); text-align: center; overflow: hidden; }
.case-card img { width: 86%; aspect-ratio: 4/3; object-fit: contain; margin: 2px auto 6px; filter: drop-shadow(0 10px 10px rgba(0,0,0,.55)); }
.case-card .nm { font-weight: 700; font-size: 14px; line-height: 1.2; min-height: 34px; display: flex; align-items: center; justify-content: center; }
.case-card .meta { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.case-card .fav { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #aeb5bf; }
.case-card .fav.on { color: var(--accent2); }
.case-card .fav svg { width: 17px; height: 17px; }
.case-card .tag { position: absolute; top: 8px; left: 8px; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: rgba(255,159,26,.18); color: #ffc670; text-transform: uppercase; }
.coin { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.coin svg { width: 17px; height: 17px; color: var(--accent2); }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 14px 6px; margin: 0 -14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: 0 0 44%; }

/* filters */
.searchbar { display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 44px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); }
.searchbar svg { width: 19px; height: 19px; color: var(--muted); }
.searchbar input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 15px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 14px 4px; margin: 10px -14px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 10px; background: var(--card); border: 1px solid var(--line2); color: #c9cfd7; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.chip.on { color: var(--accent-ink); background: linear-gradient(180deg, var(--accent2), var(--accent)); border-color: transparent; font-weight: 700; }
.chip .dotc { width: 9px; height: 9px; border-radius: 50%; background: var(--c, #888); }
.chip svg { width: 15px; height: 15px; }
.select { height: 34px; padding: 0 30px 0 12px; border-radius: 10px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa3b0' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center; border: 1px solid var(--line2); appearance: none; -webkit-appearance: none; font-size: 13.5px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.seg button { height: 36px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: #b5bcc6; }
.seg button.on { background: var(--card3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2), 0 2px 8px rgba(0,0,0,.3); }
.seg button.on .accent-dot { background: var(--accent); }

/* ---------- Case detail ---------- */
.case-hero { position: relative; padding: 4px 14px 16px; text-align: center; overflow: hidden; }
.case-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(255,170,60,.18), transparent 70%); }
.case-hero img.case { width: 62%; max-width: 300px; margin: 0 auto; filter: drop-shadow(0 18px 18px rgba(0,0,0,.6)); }
.case-hero h2 { margin: 6px 0 2px; font-size: 23px; font-weight: 800; text-transform: uppercase; }
.open-panel { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 12px; }
.count-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: 100%; max-width: 380px; }
.count-pick button { height: 38px; border-radius: 10px; background: var(--card); border: 1px solid var(--line2); font-weight: 700; color: #c4cad3; }
.count-pick button.on { border-color: var(--accent); color: var(--accent2); background: rgba(255,159,26,.1); }
.tier-group { margin-top: 14px; }
.tier-group .tg-head { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; font-weight: 700; font-size: 13.5px; }
.tier-group .tg-head i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.tier-group .tg-head .pct { margin-left: auto; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.items-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.icard { --r: #4b69ff; --rg: rgba(75,105,255,.3); position: relative; border-radius: 10px; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 50% 100%, var(--rg), transparent 70%), linear-gradient(180deg, #2b3038, #1b1e24); border: 1px solid rgba(255,255,255,.06); padding: 6px 6px 9px; text-align: left; }
.icard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--r); }
.icard img { width: 100%; aspect-ratio: 4/3; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,0,0,.55)); }
.icard .w { font-size: 11px; color: var(--muted); margin-top: 3px; }
.icard .f { font-size: 12px; font-weight: 600; line-height: 1.2; }
.icard .badges { position: absolute; top: 5px; left: 5px; right: 5px; display: flex; justify-content: space-between; gap: 4px; }
.icard.rare { background: radial-gradient(ellipse 80% 70% at 50% 60%, rgba(255,210,100,.35), transparent 70%), linear-gradient(180deg, #3d3218, #1f1a10); }
.icard.unowned { opacity: .38; filter: grayscale(.7); }
.icard .chance { font-size: 10.5px; color: #c6ccd4; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; font-size: 10.5px; font-weight: 700; background: rgba(0,0,0,.5); color: #e7eaee; }
.badge.st { background: #cf6a32; color: #fff; }
.badge.new { background: var(--accent); color: var(--accent-ink); }
.badge.unconf { background: rgba(255,197,66,.16); color: var(--warn); border: 1px solid rgba(255,197,66,.4); }
.badge.ok { background: rgba(56,210,122,.16); color: #8ff0bd; }

/* ---------- Opening ---------- */
.opening { position: fixed; inset: 0; z-index: 60; background: radial-gradient(ellipse 80% 50% at 50% 40%, rgba(255,160,40,.12), transparent 70%), #08090c; display: flex; flex-direction: column; padding: calc(var(--safe-top) + var(--content-top) + 16px) 0 calc(var(--safe-bottom) + 18px); }
.opening .o-head { text-align: center; padding: 0 16px; }
.opening .o-head h3 { margin: 0; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; }
.opening .o-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 0; }
.opening .o-case { display: flex; justify-content: center; margin: -18px 0 -6px; position: relative; } /* Steam case art has transparent padding */
.opening .o-case::before { content: ""; position: absolute; left: 50%; top: 50%; width: 300px; height: 190px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255,160,40,.22), transparent); pointer-events: none; }
.opening .o-case img { position: relative; width: 240px; max-width: 62vw; filter: drop-shadow(0 14px 26px rgba(0,0,0,.55)); animation: caseUnlock 1s cubic-bezier(.2,.9,.3,1.15) both; }
@keyframes caseUnlock { 0% { transform: scale(.8) translateY(12px); opacity: 0; } 55% { transform: scale(1.05); opacity: 1; } 70% { transform: scale(1.03) rotate(-2deg); } 85% { transform: scale(1.02) rotate(1.5deg); } 100% { transform: none; } }
.opening .o-odds { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding: 10px 16px 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.opening .o-odds span { display: inline-flex; align-items: center; white-space: nowrap; }
.opening .o-odds i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); margin-right: 6px; }
.opening .o-stage.many .o-odds { padding-top: 4px; }
.reel { position: relative; height: 132px; overflow: hidden; background: linear-gradient(180deg, #0f1115, #16191f 50%, #0f1115); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.reel.compact { height: 86px; }
.reel::before, .reel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18%; z-index: 3; pointer-events: none; }
.reel::before { left: 0; background: linear-gradient(90deg, #0b0c0f, transparent); }
.reel::after { right: 0; background: linear-gradient(270deg, #0b0c0f, transparent); }
.reel .track { position: absolute; top: 10px; bottom: 10px; left: 50%; display: flex; gap: 6px; will-change: transform; }
.reel .track .sitem { flex: 0 0 auto; height: 100%; aspect-ratio: 1.08 / 1; border-radius: 6px; }
.reel .marker { top: 0; bottom: 0; }
.opening .o-foot { display: flex; justify-content: center; gap: 10px; padding: 0 16px; }

/* result */
.result { position: fixed; inset: 0; z-index: 61; overflow-y: auto; background: #08090c; padding: calc(var(--safe-top) + var(--content-top) + 12px) 16px calc(var(--safe-bottom) + 18px); animation: pageIn .25s ease-out; }
.drop { --r: #4b69ff; --rg: rgba(75,105,255,.35); position: relative; margin: 6px auto 0; max-width: 420px; border-radius: 18px; padding: 18px 16px 16px; text-align: center; background: radial-gradient(ellipse 75% 55% at 50% 42%, var(--rg), transparent 72%), linear-gradient(180deg, #1c2027, #121418); border: 1px solid color-mix(in srgb, var(--r) 45%, transparent); box-shadow: 0 0 40px var(--rg); overflow: hidden; }
.drop .rays { position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 8%, var(--rg) 10%, transparent 12% 25%, var(--rg) 27%, transparent 29% 42%, var(--rg) 44%, transparent 46% 58%, var(--rg) 60%, transparent 62% 75%, var(--rg) 77%, transparent 79% 92%, var(--rg) 94%, transparent 96%); opacity: .35; animation: spin 18s linear infinite; pointer-events: none; }
.reduce-motion .drop .rays { animation: none; }
.drop img { position: relative; width: 82%; margin: 6px auto 4px; aspect-ratio: 4/3; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0,0,0,.6)); animation: popIn .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }
.drop .tier { position: relative; display: inline-flex; padding: 4px 10px; border-radius: 8px; background: var(--r); color: #0c0e12; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.drop h2 { position: relative; margin: 10px 0 0; font-size: 22px; font-weight: 800; line-height: 1.15; }
.drop .fin { position: relative; font-size: 18px; color: var(--r); font-weight: 700; margin-top: 2px; filter: brightness(1.25); }
.floatbar { position: relative; height: 8px; border-radius: 4px; margin: 14px 4px 4px; background: linear-gradient(90deg, #3ad17a 0 7%, #8bd13a 7% 15%, #e0d23a 15% 38%, #ff9b3a 38% 45%, #ff5a5a 45% 100%); }
.floatbar .pin { position: absolute; top: -5px; width: 3px; height: 18px; margin-left: -1.5px; background: #fff; border-radius: 2px; box-shadow: 0 0 6px #fff; }
.floatbar .rng { position: absolute; top: 0; bottom: 0; border: 1px solid rgba(255,255,255,.6); border-radius: 4px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; text-align: left; }
.kv > div { padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.kv b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.kv span { font-size: 11.5px; color: var(--muted); }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; margin: 14px auto 0; }
.result-actions .btn.primary { grid-column: 1 / -1; }
.multi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; max-width: 520px; margin: 10px auto 0; }

/* ---------- Lists, misc ---------- */
.list { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); min-height: 54px; }
.li:last-child { border-bottom: 0; }
.li .ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,159,26,.1); color: var(--accent); }
.li .ic svg { width: 20px; height: 20px; }
.li .t { font-weight: 600; }
.li .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.li .chev { width: 16px; height: 16px; color: var(--muted2); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11.5px; color: var(--muted); }
.switch { position: relative; width: 46px; height: 28px; flex: 0 0 46px; border-radius: 14px; background: #343a44; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(18px); }
.input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line2); outline: 0; font-size: 15px; }
.input:focus { border-color: var(--accent); }
textarea.input { height: 90px; padding: 10px 14px; resize: none; }
.field-err { color: var(--bad); font-size: 12.5px; margin-top: 6px; }
.notice-box { padding: 12px 14px; border-radius: 12px; background: rgba(255,197,66,.08); border: 1px solid rgba(255,197,66,.28); color: #f3dca0; font-size: 13px; }
.notice-box.info { background: rgba(94,152,217,.08); border-color: rgba(94,152,217,.3); color: #c4daf3; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.table td.r, .table th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tier-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; background: var(--c); vertical-align: 1px; }

/* calendar (daily) */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .d { position: relative; padding: 8px 2px; border-radius: 10px; text-align: center; background: var(--card); border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.cal .d b { display: block; font-size: 13.5px; color: var(--text); margin-top: 3px; font-variant-numeric: tabular-nums; }
.cal .d.bonus { border-color: rgba(255,190,60,.45); background: linear-gradient(180deg, rgba(255,159,26,.12), var(--card)); }
.cal .d.claimed { opacity: .5; }
.cal .d.claimed::after { content: "✓"; position: absolute; top: 2px; right: 5px; color: var(--ok); font-weight: 900; }
.cal .d.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 14px rgba(255,159,26,.35); }

/* bottom sheet & dialogs */
.backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.6); animation: fadeIn .18s; }
@keyframes fadeIn { from { opacity: 0; } }
.sheet { position: fixed; z-index: 81; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 88vh; overflow-y: auto; border-radius: 20px 20px 0 0; background: linear-gradient(180deg, #1b1f26, #121418); border: 1px solid var(--line2); border-bottom: 0; padding: 8px 16px calc(var(--safe-bottom) + 18px); animation: sheetUp .25s cubic-bezier(.2,.9,.3,1); }
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet .grab { width: 42px; height: 5px; border-radius: 3px; background: #3a414b; margin: 0 auto 10px; }
.sheet h3 { margin: 4px 0 12px; font-size: 18px; font-weight: 800; text-transform: uppercase; }
.toasts { position: fixed; z-index: 100; left: 0; right: 0; top: calc(var(--safe-top) + var(--content-top) + 10px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast { max-width: 440px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: #242a33; border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 14px; animation: toastIn .25s ease-out; pointer-events: auto; }
.toast.ok { border-color: rgba(56,210,122,.45); } .toast.err { border-color: rgba(255,91,91,.5); } .toast.gold { border-color: rgba(255,190,60,.6); background: linear-gradient(90deg, rgba(255,159,26,.22), rgba(255,159,26,0) 75%), #242a33; }
.toast svg { width: 20px; height: 20px; flex: 0 0 20px; }
@keyframes toastIn { from { transform: translateY(-12px); opacity: 0; } }
.offline { position: fixed; z-index: 90; left: 0; right: 0; top: 0; padding: calc(var(--safe-top) + 6px) 12px 6px; text-align: center; font-size: 13px; font-weight: 600; background: #5a1e1e; color: #ffd6d6; }

/* states */
.skel { position: relative; overflow: hidden; background: #1a1e24; border-radius: 12px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 54px; height: 54px; color: #3d444f; margin: 0 auto 10px; }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.errstate { padding: 40px 20px; text-align: center; }
.errstate svg { width: 50px; height: 50px; color: var(--bad); margin: 0 auto 10px; }
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 200; }
.boot .logo { width: 84px; height: 84px; color: var(--accent); animation: floaty 1.6s ease-in-out infinite; }
.boot .msg { margin-top: 14px; color: var(--muted); text-align: center; max-width: 280px; }
.disclaimer { margin: 22px 4px 0; font-size: 11.5px; color: var(--muted2); text-align: center; line-height: 1.45; }

/* events / season / tasks */
.banner { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: linear-gradient(110deg, rgba(136,71,255,.25), rgba(211,44,230,.1) 60%, rgba(255,159,26,.12)), #17191f; border: 1px solid rgba(160,110,255,.3); overflow: hidden; }
.banner img { width: 78px; flex: 0 0 78px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.banner h4 { margin: 0; font-size: 15px; text-transform: uppercase; }
.banner p { margin: 3px 0 0; font-size: 12.5px; color: #cfd3da; }
.task { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task .ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,159,26,.1); color: var(--accent); }
.task .ic svg { width: 21px; height: 21px; }
.task.done .ic { background: rgba(56,210,122,.12); color: var(--ok); }
.task .rw { font-size: 12px; color: var(--accent2); margin-top: 3px; }
.bp { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.bp .lv { position: relative; padding: 9px 6px; border-radius: 12px; text-align: center; background: var(--card); border: 1px solid var(--line); font-size: 11.5px; min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; }
.bp .lv b { font-size: 13px; }
.bp .lv.unlocked { border-color: rgba(255,159,26,.5); }
.bp .lv.claimed { opacity: .5; }
.bp .lv .rw { color: var(--accent2); font-weight: 700; }
.ach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ach .a { padding: 10px 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-align: center; font-size: 11.5px; }
.ach .a svg { width: 30px; height: 30px; margin: 0 auto 4px; color: #4a515c; }
.ach .a.on svg { color: var(--accent2); filter: drop-shadow(0 0 8px rgba(255,200,60,.5)); }
.ach .a b { display: block; font-size: 12px; color: var(--text); margin-bottom: 2px; }
.contract-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.contract-slots .slot { aspect-ratio: 1; border-radius: 9px; border: 1.5px dashed #39404a; display: grid; place-items: center; color: #4c535e; overflow: hidden; }
.contract-slots .slot .sitem { width: 100%; height: 100%; aspect-ratio: auto; }
.selectable { outline: 2px solid transparent; transition: outline-color .15s, transform .1s; }
.selectable.sel { outline-color: var(--accent); box-shadow: 0 0 14px rgba(255,159,26,.45); }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; }
.vs .x { font-size: 22px; font-weight: 900; color: var(--accent); }
.feed-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-item .sitem { width: 64px; flex: 0 0 64px; }
.kbd-space { height: 8px; }

/* ---------- View helpers (added with the screens) ---------- */
.li-ic { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,159,26,.12); color: var(--accent); }
.li-ic svg { width: 22px; height: 22px; }
svg.chev { width: 16px; height: 16px; flex: 0 0 16px; color: var(--muted2); transition: transform .2s; }
svg.okic { width: 20px; height: 20px; flex: 0 0 20px; color: var(--ok); }
svg.lk { width: 14px; height: 14px; color: var(--muted2); }
.comp-card { display: flex; align-items: center; gap: 12px; }
.comp-card img { width: 84px; flex: 0 0 84px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.card.quick { display: flex; align-items: center; gap: 10px; padding: 12px; }
.r-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 420px; margin: 0 auto 6px; }
.r-head h3 { margin: 2px 0 0; font-size: 18px; text-transform: uppercase; }
.r-best { text-align: center; font-size: 14px; margin: 4px auto 0; max-width: 420px; }
.result-actions { display: flex; flex-direction: column; gap: 10px; }
.reel .track .sitem { transition: transform .25s ease, box-shadow .25s ease; }
.reel .track .sitem.win { transform: scale(1.06); box-shadow: 0 0 0 2px var(--r), 0 0 22px var(--rg); z-index: 2; }
.phero { display: flex; align-items: center; gap: 14px; }
.phero h2 { margin: 0; font-size: 20px; font-weight: 800; }
.iconbtn.sm { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px; }
.iconbtn.sm svg { width: 15px; height: 15px; }
.gift-big { width: 96px; height: 96px; margin: 0 auto; filter: drop-shadow(0 8px 16px rgba(255,160,30,.4)); }
.gift-big svg { width: 100%; height: 100%; }
.odds-tier { padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.odds-tier:last-child { border-bottom: 0; }
.odds-tier.open svg.chev { transform: rotate(90deg); }
.odds-items { margin-top: 8px; max-height: 340px; overflow-y: auto; }
.odds-items .table td { font-size: 12.5px; padding: 6px 4px; }
.bar-row { display: grid; grid-template-columns: 38% 1fr 34px; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; }
.bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-left: 6px; vertical-align: 1px; box-shadow: 0 0 6px var(--ok); }
.li.unread { background: rgba(255,159,26,.06); }
.li.locked { opacity: .55; }
.li[role="button"], .card[role="button"], .tile[role="button"] { cursor: pointer; }
.card[role="button"]:active, .li[role="button"]:active { filter: brightness(1.15); }
.li.coll .t { max-width: 100%; }
.comp { background: radial-gradient(ellipse 70% 80% at 0% 50%, rgba(255,159,26,.14), transparent 60%), linear-gradient(180deg, #1b1f26, #15181d); }
.ach .a > span svg { color: inherit; }
.ach .a:not(.on) > span svg { color: #4a515c; }
.multi-grid .icard { cursor: pointer; }
.result .drop { margin-top: 10px; }

.case-hero { isolation: isolate; }
.case-hero .hero-bg { z-index: -2; }
.btn .price svg { width: 18px; height: 18px; color: #ffe27a; }
.btn.primary .price { background: rgba(60,30,0,.22); color: var(--accent-ink); }
.tabtitle { min-width: 0; flex: 1 1 auto; }
.tabtitle h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.balance { flex: 0 0 auto; }
@media (max-width: 400px) {
  .tabtitle { gap: 9px; }
  .tabtitle .ico { width: 38px; height: 34px; }
  .tabtitle h1 { font-size: 20px; }
  .balance { gap: 8px; padding: 7px 7px 7px 10px; }
  .balance .wallet { width: 30px; height: 28px; }
  .balance .val { font-size: 19px; }
}
.empty .btn svg { width: 20px; height: 20px; margin: 0; color: inherit; }

.tabtitle.long h1 { font-size: 18px; letter-spacing: .01em; }
@media (max-width: 400px) { .tabtitle.long h1 { font-size: 17px; } .tabtitle.long { gap: 7px; } .tabtitle.long .ico { width: 32px; height: 30px; } }
.btn.icon-btn { width: 40px; padding: 0; display: inline-grid; place-items: center; }
.btn.icon-btn svg { width: 18px; height: 18px; margin: 0; }
img.img-fallback { object-fit: contain; opacity: .35; padding: 12%; }
