/* Кота-карты. Язык Portals: стеклянные плашки с бликом, цветные
   градиентные плитки, крупные скругления, плавающее меню. При этом на
   экране одно главное действие — баннер сверху. */
:root {
  color-scheme: dark;
  --bg: #121212;
  --surface: #19191c;
  --surface-2: #232327;
  --line: rgba(255, 255, 255, .06);
  --text: #f5f5f7;
  --muted: #8b8b93;
  --muted-2: #5c5c63;
  --gold: #f5b82e;
  --gold-soft: #2c2412;
  --r-xl: 28px;
  --r-lg: 22px;
  --font: "Geologica", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --paws: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='%23fff'%3E%3Cellipse cx='14' cy='18' rx='5' ry='4.2'/%3E%3Ccircle cx='8.5' cy='11.5' r='2'/%3E%3Ccircle cx='12' cy='8.5' r='2'/%3E%3Ccircle cx='16.5' cy='8.5' r='2'/%3E%3Ccircle cx='20' cy='11.5' r='2'/%3E%3Cellipse cx='42' cy='46' rx='5' ry='4.2'/%3E%3Ccircle cx='36.5' cy='39.5' r='2'/%3E%3Ccircle cx='40' cy='36.5' r='2'/%3E%3Ccircle cx='44.5' cy='36.5' r='2'/%3E%3Ccircle cx='48' cy='39.5' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 600 15px/1.4 var(--font);
  min-height: 100vh;
  padding-bottom: calc(100px + var(--safe-b));
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
img { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

main { padding: 8px 16px 16px; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.loading, .empty { text-align: center; color: var(--muted); padding: 60px 16px; font-weight: 700; }
.empty-cat { width: 84px; margin: 0 auto 14px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ── стекло и плашки (как в Portals) ─────────── */
.glass-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px;
  font-weight: 800; font-size: 18px; background: rgba(44, 44, 48, .6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.glass-pill .ico { font-size: 19px; }
.pill-gold { background: linear-gradient(180deg, #4a3810, #2c210a); box-shadow: inset 0 1px 0 rgba(255, 210, 120, .22); }
.pill-blue { background: linear-gradient(180deg, #1c3858, #10233a); box-shadow: inset 0 1px 0 rgba(140, 190, 255, .22); }
.topbar { display: flex; justify-content: space-between; align-items: center; padding-top: 4px; }
.page-title { font-size: 32px; font-weight: 800; letter-spacing: -.4px; margin: 6px 2px 0; }

.glass-card {
  border-radius: 32px; padding: 18px; background: linear-gradient(180deg, rgba(42, 42, 46, .9), rgba(28, 28, 31, .9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 10px 30px rgba(0, 0, 0, .3);
}
.glass-card.center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 20px 22px; }
.hero-sub { color: var(--muted); font-weight: 700; max-width: 32ch; text-wrap: balance; }
.hero-meta { color: var(--muted); font-weight: 700; font-size: 14px; margin-top: 4px; }

/* ── кнопки и поля ───────────────────────────── */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 800; font-size: 17px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); text-align: center; transition: transform .12s ease; }
.btn:active { transform: scale(.97); }
.btn.primary, .btn.blue { background: #1f8bff; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 24px rgba(31, 139, 255, .3); }
.btn.white { background: #fff; color: #111; }
.btn.small { height: 36px; font-size: 14px; padding: 0 14px; }
.btn:disabled { opacity: .4; }
.field { width: 100%; height: 52px; padding: 0 18px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .06); color: var(--text); font: 800 17px var(--font); outline: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.field:focus { box-shadow: inset 0 0 0 2px #1f8bff; }
.link { color: var(--muted); font-weight: 800; font-size: 14px; }
.progress { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 10px 0; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f0a01e, #ffd27a); }

/* ── баннер (как «Осенний турнир» и «REDO») ──── */
.banner {
  position: relative; overflow: hidden; display: flex; align-items: center; width: 100%; min-height: 168px;
  border-radius: 34px; padding: 22px; text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 230, 180, .16), 0 14px 36px rgba(0, 0, 0, .35);
}
.banner.gold { background: linear-gradient(110deg, #7a5420 0%, #4f3714 50%, #2a1e0c 100%); }
.banner.blue { background: linear-gradient(110deg, #1f5fb0 0%, #163f72 50%, #0d1f38 100%); box-shadow: inset 0 1px 0 rgba(160, 205, 255, .18), 0 14px 36px rgba(0, 0, 0, .35); }
.banner::before { content: ""; position: absolute; inset: 0; background: var(--paws) 0 0 / 56px; opacity: .06; }
.b-text { position: relative; z-index: 2; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.b-title { font-size: 28px; font-weight: 800; line-height: 1.05; text-wrap: balance; }
.b-sub { color: rgba(255, 255, 255, .72); font-weight: 800; }
.b-bar { height: 8px; border-radius: 999px; background: rgba(0, 0, 0, .25); overflow: hidden; max-width: 170px; }
.b-bar i { display: block; height: 100%; background: #8fd0ff; border-radius: 999px; }
.b-pill { align-self: flex-start; margin-top: 6px; padding: 6px 16px; border-radius: 999px; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; color: #3a2606; background: linear-gradient(180deg, #ffd88a, #f2a93a); box-shadow: 0 0 0 2px rgba(0, 0, 0, .15); }
.banner.blue .b-pill { color: #08264a; background: linear-gradient(180deg, #8fd0ff, #3fa0ff); }
.banner .stack { position: relative; z-index: 1; flex: none; width: 104px; height: 130px; margin-right: 6px; }
.stack-card { position: absolute; inset: 0; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, #b9bcc4, #f1f2f5 40%, #a3a7b0 68%, #dfe1e6); box-shadow: 0 12px 26px rgba(0, 0, 0, .45); }
.stack-card span { font-size: 42px; font-weight: 800; color: rgba(40, 40, 50, .5); }
.stack-card:nth-child(1) { z-index: 3; animation: bob 2.4s ease-in-out infinite; }
.stack-card:nth-child(2) { transform: rotate(-10deg) translateX(-16px); opacity: .75; z-index: 2; }
.stack-card:nth-child(3) { transform: rotate(10deg) translateX(16px); opacity: .55; z-index: 1; }
.b-cat { position: relative; z-index: 1; width: 120px; flex: none; transform: rotate(-8deg); }

/* ── цветные плитки (как «Стейкинг») ─────────── */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative; overflow: hidden; border-radius: 34px; padding: 18px 14px; min-height: 140px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); transition: transform .15s ease;
}
button.tile:active { transform: scale(.97); }
.tile::before { content: ""; position: absolute; inset: 0; background: var(--paws) 0 0 / 56px; opacity: .05; pointer-events: none; }
.tile > * { position: relative; }
.t-big { font-size: 34px; font-weight: 800; line-height: 1; }
.t-big small { font-size: 20px; color: rgba(255, 255, 255, .5); }
.t-title { font-size: 20px; font-weight: 800; line-height: 1.1; }
.t-sub { color: rgba(255, 255, 255, .55); font-weight: 800; font-size: 15px; }
.g-green { background: radial-gradient(120% 90% at 50% 0%, #1f7a3d 0%, #173a24 55%, #16201a 100%); }
.g-blue { background: radial-gradient(120% 90% at 50% 0%, #1b4a7a 0%, #172a40 55%, #151c26 100%); }
.c-green { color: #4ade80; } .c-blue { color: #5aaaff; }

/* ── списки ──────────────────────────────────── */
.block-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.block-head .muted { font-size: 15px; }
.row-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; text-align: left; }
.row-item + .row-item { border-top: 1px solid var(--line); }
.row-ico { width: 44px; height: 44px; flex: none; border-radius: 15px; display: grid; place-items: center; padding: 6px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc, #888) 22%, #2a2a2e), #2a2a2e 75%); }
.row-ico.emoji { font-size: 20px; background: rgba(255, 255, 255, .06); }
.row-ico .cat-sil, .row-ico .skin-img { width: 100%; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-main b { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main small { color: var(--muted); font-weight: 700; font-size: 13px; }
.chev { color: var(--muted-2); font-size: 22px; }
.balance { font-size: 58px; font-weight: 800; line-height: 1; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.balance span { font-size: 40px; }
.wd-row { display: flex; gap: 10px; width: 100%; margin-top: 12px; }
.wd-row .btn { flex: none; }

/* ── карты (как «Мои подарки») ───────────────── */
.seg { display: flex; padding: 5px; border-radius: 999px; background: rgba(44, 44, 48, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.seg button { flex: 1; height: 46px; border-radius: 999px; font-weight: 800; font-size: 16px; color: var(--muted-2); text-align: center; }
.seg button.on { background: #fff; color: #111; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.item { display: flex; flex-direction: column; gap: 2px; padding: 8px 8px 14px; border-radius: 30px; text-align: left;
  background: linear-gradient(180deg, rgba(42, 42, 46, .9), rgba(28, 28, 31, .9)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); transition: transform .12s ease; }
.item:active { transform: scale(.97); }
.tile-pic { position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden; display: grid; place-items: center; margin-bottom: 8px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc, #888) 18%, #2c2c30), #2c2c30 72%); }
.tile-pic::before { content: ""; position: absolute; inset: 0; background: var(--paws) 0 0 / 44px; opacity: .05; }
.tile-pic .cat-sil, .tile-pic .skin-img { width: 62%; position: relative; }
.tile-pic.foil { background: linear-gradient(135deg, #b9bcc4, #f1f2f5 40%, #a3a7b0 68%, #dfe1e6); }
.tile-pic.foil::before { filter: invert(1); opacity: .1; }
.tile-pic.foil span { position: relative; font-size: 44px; font-weight: 800; color: rgba(40, 40, 50, .5); }
.item b { font-weight: 800; font-size: 17px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item small { color: var(--muted); font-weight: 700; font-size: 13px; padding: 0 6px; }

/* ── скины ───────────────────────────────────── */
.set { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.set-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.set-name { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; }
.set-name i { width: 10px; height: 10px; border-radius: 50%; }
.skins { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.skin-cell { aspect-ratio: 1; border-radius: 20px; display: grid; place-items: center; padding: 10px;
  background: rgba(36, 36, 40, .9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.skin-cell.on { background: linear-gradient(180deg, rgba(58, 58, 64, .95), rgba(36, 36, 40, .95)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.skin-img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.skin-img.locked { filter: brightness(0) invert(.25); opacity: .6; }
.skin-cell .cat-sil { width: 100%; }
@media (max-width: 360px) { .skins { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── рейтинг и люди ──────────────────────────── */
.avatar { width: 40px; height: 40px; flex: none; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 16px; background-size: cover; background-position: center; }
.rank { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.rank + .rank { border-top: 1px solid var(--line); }
.rank .pl { width: 22px; text-align: center; color: var(--muted); font-weight: 800; }
.rank .nm, .member .nm { flex: 1; min-width: 0; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank small, .member small { color: var(--muted); font-weight: 700; }
.rank .val { color: var(--muted); font-weight: 700; font-size: 14px; }
.rank .val b { color: var(--text); font-size: 17px; }
.rank.me { margin: 0 -10px; padding: 10px; border-radius: 18px; background: rgba(255, 184, 31, .08); }
.rank.me .pl { color: var(--gold); }
.member { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.wd { display: flex; justify-content: space-between; padding: 10px 0; font-weight: 800; }
.wd + .wd { border-top: 1px solid var(--line); }

/* ── нижнее меню (как в Portals) ─────────────── */
.dock { position: fixed; left: 0; right: 0; bottom: calc(12px + var(--safe-b)); z-index: 5; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; pointer-events: none; max-width: 520px; margin: 0 auto; }
.dock > * { pointer-events: auto; }
.dock svg { width: 26px; height: 26px; fill: currentColor; }
.dock-round, .dock-group { background: rgba(38, 38, 42, .72); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 12px 34px rgba(0, 0, 0, .55); }
.dock-round { width: 66px; height: 66px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 12px; font-weight: 800; flex: none; }
.dock-group { display: flex; flex: 1; min-width: 0; height: 66px; border-radius: 999px; padding: 0 5px; }
.dock-group button { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 12px; font-weight: 800; border-radius: 999px; text-align: center; }
.dock button.on, .dock-round.on { color: #1f8bff; }
.dock-group button.on { background: rgba(255, 255, 255, .07); margin: 6px 0; }
.dock-avatar { padding: 5px; }
.dock-avatar .avatar { width: 56px; height: 56px; border-radius: 50%; font-size: 22px; }
.dock-avatar.on .avatar { box-shadow: 0 0 0 3px #1f8bff; }
.dock-badge { position: absolute; top: 4px; right: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ff7a1a; color: #fff; font: 800 12px/20px var(--font); font-style: normal; box-shadow: 0 0 0 2px #26262a; }
@media (max-width: 360px) {
  .dock-round { width: 58px; height: 58px; font-size: 11px; }
  .dock-group { height: 58px; }
  .dock-group button { font-size: 11px; }
  .dock-avatar .avatar { width: 48px; height: 48px; }
}

/* ── котик-иконка ────────────────────────────── */
.cat-sil { display: block; width: 100%; height: auto; overflow: visible; }

/* ── карта (лицо) ────────────────────────────── */
.kcard {
  --rc: #d4d4d8;
  position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 38px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 10%, #3a3a3d 0%, #222224 60%, #19191b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 20px 60px rgba(0, 0, 0, .55);
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.kcard[data-r="home"] { --rc: #4ade80; background: radial-gradient(120% 80% at 50% 10%, #237f43 0%, #173a24 60%, #121c15 100%); }
.kcard[data-r="pedigree"] { --rc: #5aaaff; background: radial-gradient(120% 80% at 50% 10%, #1f5590 0%, #162a45 60%, #10161f 100%); }
.kcard[data-r="royal"] { --rc: #be93ff; background: radial-gradient(120% 80% at 50% 10%, #6431ab 0%, #2e1a4d 60%, #150f20 100%); }
.kcard[data-r="legend"] { --rc: #ffc24a; background: radial-gradient(120% 80% at 50% 10%, #a3741c 0%, #4d3610 60%, #1d150a 100%); }
.kcard[data-r="cheshire"] { --rc: #ff7ad9; background: radial-gradient(120% 80% at 50% 10%, #b03aa0 0%, #4b1a5c 60%, #1a0d22 100%); }
.kcard::before { content: ""; position: absolute; inset: 0; background: var(--paws) 0 0 / 64px; opacity: .06; }

/* ── экран стирания ──────────────────────────── */
.scratch-screen { position: fixed; inset: 0; z-index: 10; background: #0b0b0d; overflow-y: auto; overscroll-behavior: contain; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; } }
.scratch-top { position: sticky; top: 0; display: flex; justify-content: space-between; padding: 14px 16px; z-index: 3; }
.scratch-top .glass-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); font-weight: 800; font-size: 15px; }
.scratch-wrap { width: min(88vw, 380px); margin: 0 auto; padding: 4px 0 40px; }
.kcard.big { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.85) rotate(-4deg); opacity: 0; } }
#foil { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; transition: opacity .22s ease; touch-action: none; }
#foil.gone { opacity: 0; pointer-events: none; }
.scratch-hint { text-align: center; color: var(--muted); margin-top: 16px; font-weight: 800; }
.scratch-events { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.scratch-events div { background: var(--gold-soft); color: #ffd88a; border-radius: 22px; padding: 12px 16px; font-weight: 800; text-align: center; animation: fadein .4s ease; }
.scratch-actions { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.kcard.revealed { animation: glow 1.2s ease; }
@keyframes glow { 40% { transform: scale(1.025); } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 4; width: 100%; height: 100%; }

/* ── карта в карте ───────────────────────────── */
.nest-card {
  aspect-ratio: 3 / 4; border-radius: 22px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #b9bcc4, #f1f2f5 38%, #9ca0aa 62%, #e3e5ea);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 70%, transparent), 0 18px 40px rgba(0, 0, 0, .5);
  animation: nest-wiggle 1.4s ease-in-out infinite;
}
.nest-card::before { content: ""; position: absolute; inset: 0; background: var(--paws) 0 0 / 44px; opacity: .14; filter: invert(1); }
.nest-card span { position: relative; font-size: 64px; font-weight: 800; color: rgba(40, 40, 50, .55); }
@keyframes nest-wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-4px); } }



/* всплывашка */
.toast { position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translateX(-50%); background: #fff; color: #111; padding: 12px 20px; border-radius: 22px; z-index: 20; font-weight: 800; font-size: 15px; max-width: 90vw; text-align: center; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); animation: fadein .2s ease; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Текст баннера не заезжает на стопку карт и котика справа. */
.b-text { max-width: calc(100% - 140px); }
.b-title { font-size: 26px; overflow-wrap: anywhere; }
.banner .stack { margin-left: 16px; }

/* Кнопки в ряд (под стёртой картой: «В чат» и «Готово»). */
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }


/* ─────────────── строже и взрослее ───────────────
   Без узора из лапок, без «таблеток» на карте; редкость и подписи —
   мелкими заглавными, приз — крупной цифрой, рамка цвета редкости. */
.tile::before, .banner::before, .kcard::before, .tile-pic::before, .nest-card::before { display: none; }
body { letter-spacing: -.1px; }
.page-title, .b-title, .t-big, .kc-name, .balance { letter-spacing: -.8px; }
.b-title { font-size: 25px; font-weight: 800; }
.b-sub { font-weight: 600; color: rgba(255, 255, 255, .62); }
.b-pill, .banner.blue .b-pill { color: #fff; font-weight: 700; font-size: 15px; padding: 7px 16px;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); backdrop-filter: blur(10px); }
.banner.gold { background: linear-gradient(115deg, #4b3720 0%, #2c2116 55%, #18130e 100%); box-shadow: inset 0 0 0 1px rgba(255, 210, 140, .12), 0 14px 36px rgba(0, 0, 0, .35); }
.banner.blue { background: linear-gradient(115deg, #1c4a85 0%, #13305a 55%, #0b1830 100%); box-shadow: inset 0 0 0 1px rgba(150, 200, 255, .12), 0 14px 36px rgba(0, 0, 0, .35); }
.g-blue { background: linear-gradient(160deg, #183a63 0%, #142338 60%, #111722 100%); box-shadow: inset 0 0 0 1px rgba(140, 190, 255, .1); }
.g-green { background: linear-gradient(160deg, #19502f 0%, #142a1e 60%, #101814 100%); box-shadow: inset 0 0 0 1px rgba(120, 230, 160, .1); }
.tile { align-items: flex-start; text-align: left; justify-content: flex-end; padding: 18px; min-height: 132px; }
.t-label { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: auto; }
.t-big { font-size: 36px; font-weight: 800; }
.t-big small { font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, .5); letter-spacing: 0; }
.t-sub { font-size: 13px; font-weight: 600; }
.glass-pill { font-weight: 700; font-size: 17px; }
.block-head { font-weight: 700; }
.row-main b, .item b { font-weight: 700; }

/* карта — как коллекционная */
.kcard[data-r] {
  border-radius: 26px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 16%, #151518) 0%, #111114 60%, #0c0c0f 100%);
  box-shadow: none;
}
.scratch-events div { background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .75); font-weight: 600; font-size: 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.scratch-hint { font-weight: 600; font-size: 14px; }
.btn { font-weight: 700; }


/* ─────────────── кот фоном карты, звезда-иконка ─────────────── */
.star-ico { display: inline-block; width: .92em; height: .92em; vertical-align: -.1em; margin-left: .06em; }
.glass-pill .star-ico.ico { width: 20px; height: 20px; margin: 0; }
.balance .star-ico { width: 44px; height: 44px; }
.row-ico .cat-sil, .tile-pic .cat-sil { width: 86%; }
/* приз — наверху, под редкостью; кот — внизу, не под цифрами */

/* Полноэкранный режим Telegram: шапку и кнопку «Закрыть» опускаем ниже
   системной строки и кнопок Telegram (их размеры Telegram отдаёт сам). */
main { padding-top: calc(8px + var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)); }
.scratch-top { padding-top: calc(14px + var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)); }
.dock { bottom: calc(12px + max(var(--safe-b), var(--tg-safe-area-inset-bottom, 0px))); }


/* ─────────────── анимации ─────────────── */
/* Плавно, без пружин и «выезда» снизу: короткий сдвиг и проявление,
   кривая как в iOS (быстро в начале, долгое мягкое торможение). */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.rise { animation: rise .7s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes in-right { from { opacity: 0; transform: translateX(22px); } }
@keyframes in-left { from { opacity: 0; transform: translateX(-22px); } }
main.in-right { animation: in-right .38s cubic-bezier(.22, 1, .36, 1) both; }
main.in-left { animation: in-left .38s cubic-bezier(.22, 1, .36, 1) both; }
@media (prefers-reduced-motion: reduce) { .rise, main.in-right, main.in-left { animation: none; } }

/* меню: активная иконка слегка «вдавливается» и возвращается, без пружины */
@keyframes tabpop { from { transform: scale(.86); } }
.dock button { transition: color .25s ease, background-color .25s ease, margin .25s ease; }
.dock button.on svg { animation: tabpop .35s cubic-bezier(.22, 1, .36, 1); }
@keyframes bump { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.dock-badge.bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }

/* карта: блик после стирания, «съезжающаяся» редкость, наклон пальцем */
.kcard.revealed { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.kcard::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .22) 48%, rgba(255, 255, 255, .06) 54%, transparent 66%);
  transform: translateX(-130%); }
.kcard.revealed::after { animation: sweep 1.1s .15s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes sweep { to { transform: translateX(130%); } }
.kcard[data-r="legend"].revealed::after, .kcard[data-r="cheshire"].revealed::after { animation: sweep 1.6s .15s ease-in-out infinite; animation-delay: .15s; }
@keyframes namein { from { opacity: 0; transform: translateY(10px) scale(.92); } }

/* баннер: стопка карт мягко покачивается, блик по золотому баннеру */
.banner.gold::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 230, 180, .12) 50%, transparent 60%);
  transform: translateX(-120%); animation: sweep 4.5s 1s ease-in-out infinite; }
.btn, .item, .tile, .row-item, .glass-pill, .banner { transition: transform .15s ease, opacity .15s ease; }
.row-item:active, .banner:active { transform: scale(.98); }
/* счётчик новых карт — в углу иконки, не поверх неё */
.dock-badge { left: calc(50% + 9px); right: auto; top: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; line-height: 18px; }


/* ─────────────── NiN cards: проще и чище ───────────────
   Без капса и разрядки — обычный текст. Скругления «как на айфоне»
   (суперэллипс) там, где браузер это умеет. */
.t-label, .kc-tag, .kc-rarity, .label { text-transform: none !important; letter-spacing: 0 !important; }
.t-label { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .62); }
.t-big { font-size: 38px; }
.t-big small { font-size: 17px; }
.tile { min-height: 120px; }
.topbar { position: relative; }
.brand { position: absolute; left: 50%; transform: translateX(-50%); font-size: 15px; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; pointer-events: none; }

/* синий баннер: «Карта дня» и счёт; котик правее и тише */
.b-count { font-size: 36px; font-weight: 800; letter-spacing: -1px; color: rgba(255, 255, 255, .92); }
.banner.blue { min-height: 150px; }
.banner.blue .b-text { max-width: 60%; }
.b-cat { position: absolute; right: -34px; top: 50%; transform: translateY(-50%) rotate(-12deg); width: 156px; opacity: .26; z-index: 0; }

/* суперэллипс — плавное «айфоновское» скругление */
@supports (corner-shape: squircle) {
  .banner, .tile, .glass-card, .item, .tile-pic, .kcard, .skin-cell, .row-ico,
  .stack-card, .nest-card, .scratch-events div { corner-shape: squircle; }
  .banner, .tile, .glass-card { border-radius: 52px; }
  .item { border-radius: 48px; }
  .tile-pic { border-radius: 40px; }
  .kcard[data-r] { border-radius: 46px; }
  .skin-cell, .row-ico { border-radius: 30px; }
}


/* ─────────────── лицо карты ───────────────
   Как у коллекционной карты: сверху бренд и редкость, по центру — одна
   крупная картинка приза со свечением, внизу — приз крупно и подпись.
   Ничего не лежит под текстом. */
.kcard-inner { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 22px 22px 26px; }
.kc-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.kc-brand { font-weight: 800; letter-spacing: -.2px; }
.kc-brand span { font-weight: 500; color: rgba(255, 255, 255, .5); }
.kc-rarity { font-weight: 600; color: var(--rc); }
.kc-art { flex: 1; min-height: 0; display: grid; place-items: center; position: relative; }
.kc-art::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 30%, transparent), transparent); }
.kc-ico { position: relative; width: 44%; height: auto; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .45)); }
.kc-ico.dim { opacity: .5; }
.kc-art .skin-img, .kc-art .cat-sil { position: relative; width: 58%; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .5)); }
.kc-art .kc-nest { width: 44%; margin: 0; }
.kc-foot { text-align: center; }
.kc-name { font-size: 46px; font-weight: 800; line-height: 1.05; letter-spacing: -1.2px; }
.kc-name .star-ico { width: .8em; height: .8em; vertical-align: -.04em; }
.kc-prize { margin-top: 6px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .6); }
.kc-meta { margin-top: 14px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .32); }
.kcard.revealed .kc-art > * { animation: namein .7s .05s cubic-bezier(.2, 1.3, .4, 1) both; }
.kcard.revealed .kc-name { animation: namein .6s .12s cubic-bezier(.2, 1.3, .4, 1) both; }
.kcard.revealed .kc-prize, .kcard.revealed .kc-meta { animation: namein .6s .22s ease both; }
.kcard.nest-out .kc-nest { transition: transform .5s cubic-bezier(.5, 0, .3, 1); transform: scale(2) translateY(-4%); z-index: 3; }
.kcard.nest-out .kc-head, .kcard.nest-out .kc-foot, .kcard.nest-out .kc-art::before { transition: opacity .3s ease; opacity: 0; }

.kcard.covered .kcard-inner { visibility: hidden; }
/* плашки сверху: звёзды слева, карты справа — одинаковые, иконка снаружи */
.topbar .glass-pill { min-width: 92px; justify-content: center; gap: 8px; }
.card-ico { display: block; width: 22px; height: 22px; flex: none; }
.scratch-top .card-ico { width: 18px; height: 18px; }

html, body { overflow-x: clip; }

/* Полный экран: своя шапка с названием на уровне кнопок Телеграма.
   Высота берётся из отступов, которые отдаёт сам Телеграм. */
.appbar { display: none; }
.tg-full .appbar { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 8; align-items: flex-end; justify-content: center;
  height: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  background: linear-gradient(180deg, #0b0b0d 55%, rgba(11, 11, 13, 0)); pointer-events: none; }
.tg-full .appbar .brand { position: static; gap: .28em; transform: none; height: var(--tg-content-safe-area-inset-top, 44px); line-height: var(--tg-content-safe-area-inset-top, 44px); display: block; font-size: 17px; }
.tg-full .topbar .brand { display: none; }
.tg-full .topbar { justify-content: space-between; }
.tg-full main { padding-top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) + 8px); }
.brand, .kc-brand { gap: .28em; }
.brand { display: block; }

.kc-ico { width: 58%; }
.kc-ico.dim { width: 44%; }
.box-ico { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; color: var(--rc); }

.test-row { display: flex; gap: 8px; margin-top: 10px; }
.test-row > * { flex: 1; min-width: 0; }
select.field { appearance: none; -webkit-appearance: none; padding-right: 12px; }
select.field { font-size: 16px; font-weight: 600; padding: 0 14px; text-overflow: ellipsis; }

/* легче для телефона: тени под иконками поменьше */
.kc-ico, .kc-art .skin-img, .kc-art .cat-sil { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .4)); }

/* звёздочка вместо точки над «i» в названии */
.ni { align-self: baseline; position: relative; display: inline-block; width: .17em; height: .54em; margin: 0 .06em; border-radius: .08em; background: currentColor; flex: none; }
.ni svg { position: absolute; left: 50%; bottom: calc(100% + .1em); width: .5em; height: .5em; transform: translateX(-50%); fill: currentColor; }
.brand, .kc-brand { gap: 0; }
.brand > span:last-child, .kc-brand > span:last-child { margin-left: .28em; }
.brand .ni, .kc-brand .ni { font-weight: inherit; color: inherit; margin-left: 0; }

.brand, .kc-brand { display: inline-block; }
.ni { align-self: auto; }

.brand, .kc-brand { letter-spacing: 0; }
.brand .ni, .kc-brand .ni { margin: 0 .095em; }

/* плитки «Серия» и «Скины» пониже и поуже */
.tile { min-height: 88px; padding: 14px 16px; }
.t-label { font-size: 14px; }
.t-big { font-size: 30px; line-height: 1.05; }
.t-big small { font-size: 15px; }

/* Фон карты: мягкие лучи веером снизу вверх, цвет редкости, без резких краёв */
.kcard[data-r]::before { content: ""; display: block !important; position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from -70deg at 50% 108%, transparent 0, color-mix(in srgb, var(--rc) 55%, #fff) 4.6deg, transparent 9.4deg 14deg);
  opacity: .13; -webkit-mask-image: radial-gradient(circle at 50% 108%, #000 0, transparent 96%); mask-image: radial-gradient(circle at 50% 108%, #000 0, transparent 96%); }
.kcard .kcard-inner { z-index: 1; }


/* контур отверстия — такой же, как контур карты, чтобы оно ощущалось настоящим */
.kcard .kcard-inner::after { content: ""; position: absolute; left: 50%; top: 3.375%; width: 14.67%; height: 2.75%; transform: translateX(-50%);
  border-radius: 999px; pointer-events: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--rc) 32%, transparent), inset 0 1px 2px rgba(0, 0, 0, .5); }

/* Форма карты: сильно скруглённые «айфоновские» углы (суперэллипс) и
   прорезь сверху, как у карточек на товарной полке. Рисуем маской, потому
   что corner-shape есть не во всех телефонах; контур — тем же рисунком. */
.kcard[data-r]:not(#x) { border-radius: 0; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20300%20400%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M230.00%200.00%20L249.61%200.11%20L257.69%200.43%20L263.82%200.97%20L268.91%201.73%20L273.30%202.72%20L277.17%203.92%20L280.60%205.36%20L283.67%207.04%20L286.41%208.96%20L288.86%2011.14%20L291.04%2013.59%20L292.96%2016.33%20L294.64%2019.40%20L296.08%2022.83%20L297.28%2026.70%20L298.27%2031.09%20L299.03%2036.18%20L299.57%2042.31%20L299.89%2050.39%20L300.00%2070.00%20L300.00%20330.00%20L299.89%20349.61%20L299.57%20357.69%20L299.03%20363.82%20L298.27%20368.91%20L297.28%20373.30%20L296.08%20377.17%20L294.64%20380.60%20L292.96%20383.67%20L291.04%20386.41%20L288.86%20388.86%20L286.41%20391.04%20L283.67%20392.96%20L280.60%20394.64%20L277.17%20396.08%20L273.30%20397.28%20L268.91%20398.27%20L263.82%20399.03%20L257.69%20399.57%20L249.61%20399.89%20L230.00%20400.00%20L70.00%20400.00%20L50.39%20399.89%20L42.31%20399.57%20L36.18%20399.03%20L31.09%20398.27%20L26.70%20397.28%20L22.83%20396.08%20L19.40%20394.64%20L16.33%20392.96%20L13.59%20391.04%20L11.14%20388.86%20L8.96%20386.41%20L7.04%20383.67%20L5.36%20380.60%20L3.92%20377.17%20L2.72%20373.30%20L1.73%20368.91%20L0.97%20363.82%20L0.43%20357.69%20L0.11%20349.61%20L0.00%20330.00%20L0.00%2070.00%20L0.11%2050.39%20L0.43%2042.31%20L0.97%2036.18%20L1.73%2031.09%20L2.72%2026.70%20L3.92%2022.83%20L5.36%2019.40%20L7.04%2016.33%20L8.96%2013.59%20L11.14%2011.14%20L13.59%208.96%20L16.33%207.04%20L19.40%205.36%20L22.83%203.92%20L26.70%202.72%20L31.09%201.73%20L36.18%200.97%20L42.31%200.43%20L50.39%200.11%20L70.00%200.00Z%20M133.5%2013.5H166.5A5.5%205.5%200%200%201%20166.5%2024.5H133.5A5.5%205.5%200%200%201%20133.5%2013.5Z%22/%3E%3C/svg%3E") 0 0/100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20300%20400%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M230.00%200.00%20L249.61%200.11%20L257.69%200.43%20L263.82%200.97%20L268.91%201.73%20L273.30%202.72%20L277.17%203.92%20L280.60%205.36%20L283.67%207.04%20L286.41%208.96%20L288.86%2011.14%20L291.04%2013.59%20L292.96%2016.33%20L294.64%2019.40%20L296.08%2022.83%20L297.28%2026.70%20L298.27%2031.09%20L299.03%2036.18%20L299.57%2042.31%20L299.89%2050.39%20L300.00%2070.00%20L300.00%20330.00%20L299.89%20349.61%20L299.57%20357.69%20L299.03%20363.82%20L298.27%20368.91%20L297.28%20373.30%20L296.08%20377.17%20L294.64%20380.60%20L292.96%20383.67%20L291.04%20386.41%20L288.86%20388.86%20L286.41%20391.04%20L283.67%20392.96%20L280.60%20394.64%20L277.17%20396.08%20L273.30%20397.28%20L268.91%20398.27%20L263.82%20399.03%20L257.69%20399.57%20L249.61%20399.89%20L230.00%20400.00%20L70.00%20400.00%20L50.39%20399.89%20L42.31%20399.57%20L36.18%20399.03%20L31.09%20398.27%20L26.70%20397.28%20L22.83%20396.08%20L19.40%20394.64%20L16.33%20392.96%20L13.59%20391.04%20L11.14%20388.86%20L8.96%20386.41%20L7.04%20383.67%20L5.36%20380.60%20L3.92%20377.17%20L2.72%20373.30%20L1.73%20368.91%20L0.97%20363.82%20L0.43%20357.69%20L0.11%20349.61%20L0.00%20330.00%20L0.00%2070.00%20L0.11%2050.39%20L0.43%2042.31%20L0.97%2036.18%20L1.73%2031.09%20L2.72%2026.70%20L3.92%2022.83%20L5.36%2019.40%20L7.04%2016.33%20L8.96%2013.59%20L11.14%2011.14%20L13.59%208.96%20L16.33%207.04%20L19.40%205.36%20L22.83%203.92%20L26.70%202.72%20L31.09%201.73%20L36.18%200.97%20L42.31%200.43%20L50.39%200.11%20L70.00%200.00Z%20M133.5%2013.5H166.5A5.5%205.5%200%200%201%20166.5%2024.5H133.5A5.5%205.5%200%200%201%20133.5%2013.5Z%22/%3E%3C/svg%3E") 0 0/100% 100% no-repeat; }
.kcard-inner::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: color-mix(in srgb, var(--rc) 40%, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20300%20400%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20d%3D%22M230.00%200.00%20L249.61%200.11%20L257.69%200.43%20L263.82%200.97%20L268.91%201.73%20L273.30%202.72%20L277.17%203.92%20L280.60%205.36%20L283.67%207.04%20L286.41%208.96%20L288.86%2011.14%20L291.04%2013.59%20L292.96%2016.33%20L294.64%2019.40%20L296.08%2022.83%20L297.28%2026.70%20L298.27%2031.09%20L299.03%2036.18%20L299.57%2042.31%20L299.89%2050.39%20L300.00%2070.00%20L300.00%20330.00%20L299.89%20349.61%20L299.57%20357.69%20L299.03%20363.82%20L298.27%20368.91%20L297.28%20373.30%20L296.08%20377.17%20L294.64%20380.60%20L292.96%20383.67%20L291.04%20386.41%20L288.86%20388.86%20L286.41%20391.04%20L283.67%20392.96%20L280.60%20394.64%20L277.17%20396.08%20L273.30%20397.28%20L268.91%20398.27%20L263.82%20399.03%20L257.69%20399.57%20L249.61%20399.89%20L230.00%20400.00%20L70.00%20400.00%20L50.39%20399.89%20L42.31%20399.57%20L36.18%20399.03%20L31.09%20398.27%20L26.70%20397.28%20L22.83%20396.08%20L19.40%20394.64%20L16.33%20392.96%20L13.59%20391.04%20L11.14%20388.86%20L8.96%20386.41%20L7.04%20383.67%20L5.36%20380.60%20L3.92%20377.17%20L2.72%20373.30%20L1.73%20368.91%20L0.97%20363.82%20L0.43%20357.69%20L0.11%20349.61%20L0.00%20330.00%20L0.00%2070.00%20L0.11%2050.39%20L0.43%2042.31%20L0.97%2036.18%20L1.73%2031.09%20L2.72%2026.70%20L3.92%2022.83%20L5.36%2019.40%20L7.04%2016.33%20L8.96%2013.59%20L11.14%2011.14%20L13.59%208.96%20L16.33%207.04%20L19.40%205.36%20L22.83%203.92%20L26.70%202.72%20L31.09%201.73%20L36.18%200.97%20L42.31%200.43%20L50.39%200.11%20L70.00%200.00Z%22/%3E%3C/svg%3E") 0 0/100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20300%20400%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20d%3D%22M230.00%200.00%20L249.61%200.11%20L257.69%200.43%20L263.82%200.97%20L268.91%201.73%20L273.30%202.72%20L277.17%203.92%20L280.60%205.36%20L283.67%207.04%20L286.41%208.96%20L288.86%2011.14%20L291.04%2013.59%20L292.96%2016.33%20L294.64%2019.40%20L296.08%2022.83%20L297.28%2026.70%20L298.27%2031.09%20L299.03%2036.18%20L299.57%2042.31%20L299.89%2050.39%20L300.00%2070.00%20L300.00%20330.00%20L299.89%20349.61%20L299.57%20357.69%20L299.03%20363.82%20L298.27%20368.91%20L297.28%20373.30%20L296.08%20377.17%20L294.64%20380.60%20L292.96%20383.67%20L291.04%20386.41%20L288.86%20388.86%20L286.41%20391.04%20L283.67%20392.96%20L280.60%20394.64%20L277.17%20396.08%20L273.30%20397.28%20L268.91%20398.27%20L263.82%20399.03%20L257.69%20399.57%20L249.61%20399.89%20L230.00%20400.00%20L70.00%20400.00%20L50.39%20399.89%20L42.31%20399.57%20L36.18%20399.03%20L31.09%20398.27%20L26.70%20397.28%20L22.83%20396.08%20L19.40%20394.64%20L16.33%20392.96%20L13.59%20391.04%20L11.14%20388.86%20L8.96%20386.41%20L7.04%20383.67%20L5.36%20380.60%20L3.92%20377.17%20L2.72%20373.30%20L1.73%20368.91%20L0.97%20363.82%20L0.43%20357.69%20L0.11%20349.61%20L0.00%20330.00%20L0.00%2070.00%20L0.11%2050.39%20L0.43%2042.31%20L0.97%2036.18%20L1.73%2031.09%20L2.72%2026.70%20L3.92%2022.83%20L5.36%2019.40%20L7.04%2016.33%20L8.96%2013.59%20L11.14%2011.14%20L13.59%208.96%20L16.33%207.04%20L19.40%205.36%20L22.83%203.92%20L26.70%202.72%20L31.09%201.73%20L36.18%200.97%20L42.31%200.43%20L50.39%200.11%20L70.00%200.00Z%22/%3E%3C/svg%3E") 0 0/100% 100% no-repeat; }

/* значки */
.kc-emoji { font-size: 108px; line-height: 1; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .4)); }
.bdg { margin-left: 6px; font-size: .95em; }
.bgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.bcell { aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center; font-size: 30px; background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.bcell.none { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .55); }
.bcell.off { font-size: 22px; font-weight: 700; color: rgba(255, 255, 255, .28); }
.bcell.on { background: rgba(31, 139, 255, .18); box-shadow: inset 0 0 0 2px #1f8bff; }

/* карта дня: прогресс и полученный приз */
.b-count small { font-size: 20px; font-weight: 600; color: rgba(255, 255, 255, .5); margin-left: 2px; }
.prog { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; margin: 2px 0 2px; max-width: 220px; }
.prog i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, #8fd0ff, #3fa0ff);
  box-shadow: 0 0 12px rgba(80, 170, 255, .55); animation: progfill .9s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes progfill { from { width: 0; } }
.banner.prize { text-align: left; width: 100%; }
.banner.prize .b-text { max-width: 62%; gap: 2px; }
.b-prize { font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.05; }
.b-prize .star-ico { width: .8em; height: .8em; vertical-align: -.04em; }
.b-next { margin-top: 8px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .45); }
.b-art { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 132px; z-index: 1; display: grid; place-items: center; }
.b-art::before { content: ""; position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 38%, transparent), transparent); }
.b-art > * { position: relative; }
.b-art .kc-ico, .b-art .skin-img, .b-art .cat-sil { width: 100%; }
.b-art .kc-emoji { font-size: 84px; }
.b-art .kc-nest { width: 70%; }

/* баннер полученной карты дня — в цвете её редкости, как сама карта */
.banner.blue.prize { background: linear-gradient(115deg, color-mix(in srgb, var(--rc) 42%, #0d0d12) 0%, color-mix(in srgb, var(--rc) 20%, #0d0d12) 55%, #0b0b0f 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 38%, transparent), 0 14px 36px rgba(0, 0, 0, .35); }

/* значки — небольшой блок в самом низу профиля, без акцента */
.badges { padding: 14px 16px; }
.badges .block-head { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.badges .bgrid { grid-template-columns: repeat(7, 1fr); gap: 7px; margin-top: 10px; }
.badges .bcell { border-radius: 14px; font-size: 20px; }
.badges .bcell.none { font-size: 12px; }
.badges .bcell.off { font-size: 16px; }

/* карта в карте: растёт ровно до размера карты и не выходит за рамки */
.kcard.nest-prep .kc-art > * { animation: none !important; }
.kcard.nest-prep .nest-card { animation: none; transform: none; }
.kcard.nest-out .kc-nest { transition: transform .55s cubic-bezier(.5, 0, .2, 1); transform: translate(var(--nx, 0), var(--ny, 0)) scale(var(--nk, 1)); }
.kcard.nest-out .nest-card { border-radius: 26px; transition: border-radius .55s ease, box-shadow .55s ease; box-shadow: none; }


/* ─────────────── яркий игровой стиль: «Лобби» + карты «Взрыв» ───────────────
   Фон приложения — сочный градиент с лучами света и искрами, а не тёмная
   заливка; карточки на нём стеклянные. Крупные надписи — Unbounded. */
html, body { background-attachment: fixed; }
body { background:
  radial-gradient(circle at 12% 8%, #fff 0 2px, transparent 3px), radial-gradient(circle at 88% 14%, #fff 0 2.5px, transparent 3.5px), radial-gradient(circle at 70% 40%, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle at 20% 52%, #fff 0 2px, transparent 3px), radial-gradient(circle at 92% 66%, #fff 0 2px, transparent 3px), radial-gradient(circle at 8% 82%, #fff 0 2.5px, transparent 3.5px),
  repeating-conic-gradient(from 0deg at 50% -8%, rgba(255, 255, 255, .10) 0 6deg, transparent 6deg 16deg),
  radial-gradient(70% 40% at 50% 0%, rgba(255, 214, 255, .55), transparent 70%),
  linear-gradient(165deg, #2a1572 0%, #5a2bdc 38%, #2f6bff 72%, #18c8ff 100%); }
.page-title, .b-title, .b-prize, .t-big, .block-head, .brand, .balance { font-family: "Unbounded", var(--font); letter-spacing: -.5px; }
.glass-card { background: rgba(14, 10, 46, .46) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 10px 30px rgba(10, 0, 50, .25) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.row-item, .rank { background: transparent !important; }
.glass-pill { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 6px 18px rgba(0, 0, 0, .2) !important; }
.dock-group, .dock-round { background: rgba(14, 10, 46, .72) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2) !important; }
.muted, .b-sub { color: rgba(255, 255, 255, .78) !important; }
.tg-full .appbar { background: linear-gradient(180deg, rgba(42, 21, 114, .9) 55%, rgba(42, 21, 114, 0)); }

/* карты: яркий градиент редкости, лучи из-за приза, искры */
.kcard[data-r="common"] { --c1: #9fb4de; --c2: #4a5b86; --ac: #e3ecff; }
.kcard[data-r="home"] { --c1: #3be37f; --c2: #0b7d4c; --ac: #d4ff70; }
.kcard[data-r="pedigree"] { --c1: #35b8ff; --c2: #1b45d6; --ac: #a5f3ff; }
.kcard[data-r="royal"] { --c1: #c455ff; --c2: #5a1fd0; --ac: #ff8fe9; }
.kcard[data-r="legend"] { --c1: #ffc933; --c2: #ff5f00; --ac: #fff3ad; }
.kcard[data-r="cheshire"] { --c1: #ff5fd6; --c2: #5c3cff; --ac: #00e0ff; }
.kcard[data-r]:not(#x) { background:
  radial-gradient(circle at 16% 20%, #fff 0 2px, transparent 3px), radial-gradient(circle at 82% 14%, #fff 0 3px, transparent 4px), radial-gradient(circle at 90% 56%, #fff 0 2px, transparent 3px), radial-gradient(circle at 10% 62%, #fff 0 2.5px, transparent 3.5px), radial-gradient(circle at 70% 34%, #fff 0 1.5px, transparent 2.5px),
  radial-gradient(58% 40% at 50% 38%, color-mix(in srgb, var(--ac) 85%, transparent), transparent 72%),
  linear-gradient(172deg, var(--c1), var(--c2)); }
.kcard[data-r]::before { opacity: 1; inset: -20%;
  background: repeating-conic-gradient(from 0deg at 50% 38%, rgba(255, 255, 255, .30) 0 5deg, transparent 5deg 13deg);
  -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 0, transparent 70%); mask-image: radial-gradient(circle at 50% 38%, #000 0, transparent 70%); }
.kcard * { font-family: "Unbounded", var(--font); }
.kcard .kc-rarity { color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.kcard .kc-brand, .kcard .kc-brand span { color: #fff; }
.kcard .kc-prize { color: rgba(255, 255, 255, .92); }
.kcard .kc-meta { color: rgba(255, 255, 255, .75); }
.kcard .kc-name { text-shadow: 0 4px 0 rgba(0, 0, 0, .28); }
.kcard .kcard-inner::after { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.kcard .kcard-inner::before { background: rgba(255, 255, 255, .75); }
.kc-art::before { background: radial-gradient(closest-side, rgba(255, 255, 255, .42), rgba(255, 255, 255, .12) 62%, transparent); width: 92%; }
.kc-ico, .kc-art .skin-img { filter: drop-shadow(0 0 2px rgba(255, 255, 255, .95)) drop-shadow(0 0 7px rgba(255, 255, 255, .55)) drop-shadow(0 8px 12px rgba(0, 0, 0, .35)); }


/* потише: фон темнее и спокойнее, шрифт без «игрового» Unbounded */
body { background:
  radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .7) 0 1.5px, transparent 2.5px), radial-gradient(circle at 88% 16%, rgba(255, 255, 255, .6) 0 2px, transparent 3px), radial-gradient(circle at 20% 54%, rgba(255, 255, 255, .5) 0 1.5px, transparent 2.5px), radial-gradient(circle at 92% 68%, rgba(255, 255, 255, .5) 0 1.5px, transparent 2.5px),
  repeating-conic-gradient(from 0deg at 50% -8%, rgba(255, 255, 255, .045) 0 6deg, transparent 6deg 16deg),
  radial-gradient(70% 36% at 50% 0%, rgba(176, 140, 255, .32), transparent 70%),
  linear-gradient(165deg, #140c40 0%, #261a80 40%, #1b3aa6 76%, #14609e 100%); }
.page-title, .b-title, .b-prize, .t-big, .block-head, .brand, .balance { font-family: var(--font); letter-spacing: -.6px; }
.page-title, .b-title, .b-prize, .t-big { font-weight: 800; }
.kcard * { font-family: var(--font); }
.glass-card { background: rgba(10, 8, 34, .52) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 30px rgba(6, 0, 36, .3) !important; }
.tg-full .appbar { background: linear-gradient(180deg, rgba(20, 12, 64, .92) 55%, rgba(20, 12, 64, 0)); }
.kcard[data-r]:not(#x) { background:
  radial-gradient(circle at 16% 20%, rgba(255, 255, 255, .7) 0 1.5px, transparent 2.5px), radial-gradient(circle at 82% 14%, rgba(255, 255, 255, .7) 0 2px, transparent 3px), radial-gradient(circle at 10% 62%, rgba(255, 255, 255, .6) 0 1.5px, transparent 2.5px),
  radial-gradient(58% 38% at 50% 38%, color-mix(in srgb, var(--ac) 40%, transparent), transparent 72%),
  linear-gradient(172deg, color-mix(in srgb, var(--c1) 80%, #000), color-mix(in srgb, var(--c2) 78%, #000)); }
.kcard[data-r]::before { background: repeating-conic-gradient(from 0deg at 50% 38%, rgba(255, 255, 255, .14) 0 5deg, transparent 5deg 13deg); }


/* ─────────────── плашки и кнопки в тон фону: стекло, а не тёмные заливки ─────────────── */
.banner.gold { background: linear-gradient(115deg, rgba(255, 186, 84, .46), rgba(255, 112, 160, .30) 58%, rgba(124, 92, 255, .22)); box-shadow: inset 0 0 0 1px rgba(255, 224, 170, .38), 0 12px 30px rgba(8, 0, 48, .28); }
.banner.blue { background: linear-gradient(115deg, rgba(88, 168, 255, .50), rgba(120, 104, 255, .32) 55%, rgba(70, 50, 190, .24)); box-shadow: inset 0 0 0 1px rgba(176, 210, 255, .38), 0 12px 30px rgba(8, 0, 48, .28); }
.banner.blue.prize { background: linear-gradient(115deg, color-mix(in srgb, var(--rc) 58%, transparent), color-mix(in srgb, var(--rc) 24%, transparent) 62%, color-mix(in srgb, var(--rc) 12%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 55%, transparent), 0 12px 30px rgba(8, 0, 48, .28); }
.g-blue { background: linear-gradient(160deg, rgba(86, 156, 255, .42), rgba(80, 66, 210, .26)); box-shadow: inset 0 0 0 1px rgba(176, 210, 255, .30); }
.g-green { background: linear-gradient(160deg, rgba(52, 226, 160, .38), rgba(24, 130, 210, .24)); box-shadow: inset 0 0 0 1px rgba(170, 255, 214, .28); }
.pill-gold { background: linear-gradient(180deg, rgba(255, 206, 100, .50), rgba(255, 140, 70, .32)); box-shadow: inset 0 0 0 1px rgba(255, 228, 170, .42), 0 6px 16px rgba(8, 0, 48, .25) !important; }
.pill-blue { background: linear-gradient(180deg, rgba(100, 168, 255, .50), rgba(80, 96, 240, .34)); box-shadow: inset 0 0 0 1px rgba(190, 218, 255, .42), 0 6px 16px rgba(8, 0, 48, .25) !important; }
.dock-group, .dock-round { background: rgba(34, 22, 104, .62) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), 0 8px 24px rgba(8, 0, 48, .3) !important; }
.row-ico { background: rgba(255, 255, 255, .13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.seg { background: rgba(14, 10, 46, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.item, .skin-cell { background: rgba(255, 255, 255, .10); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.btn:not(.primary):not(.blue):not(.white) { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.b-pill { background: rgba(255, 255, 255, .22) !important; }
/* карты-«стопка» на золотом баннере и вложенная карта: переливающаяся фольга вместо бело-серой */
.stack-card, .nest-card { background: linear-gradient(135deg, #7f6bff 0%, #58c0ff 34%, #b07bff 62%, #ff9be0 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45), 0 10px 24px rgba(8, 0, 48, .35); }
.stack-card span, .nest-card span { color: rgba(255, 255, 255, .92); text-shadow: 0 2px 8px rgba(40, 20, 120, .5); }
.stack-card::after, .nest-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .42) 48%, transparent 62%); }
.tile-pic.foil { background: linear-gradient(135deg, #7f6bff 0%, #58c0ff 34%, #b07bff 62%, #ff9be0 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.tile-pic.foil span { color: rgba(255, 255, 255, .92); text-shadow: 0 2px 8px rgba(40, 20, 120, .5); }
.tile-pic.foil::before { display: none; }


/* ещё темнее фон; карты-«?» и фольга — серые, спокойный металл */
body { background:
  radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .55) 0 1.5px, transparent 2.5px), radial-gradient(circle at 88% 16%, rgba(255, 255, 255, .45) 0 2px, transparent 3px), radial-gradient(circle at 20% 54%, rgba(255, 255, 255, .4) 0 1.5px, transparent 2.5px),
  repeating-conic-gradient(from 0deg at 50% -8%, rgba(255, 255, 255, .03) 0 6deg, transparent 6deg 16deg),
  radial-gradient(70% 34% at 50% 0%, rgba(140, 110, 230, .22), transparent 70%),
  linear-gradient(165deg, #0c0728 0%, #170f52 42%, #11296e 78%, #0d3a62 100%); }
.tg-full .appbar { background: linear-gradient(180deg, rgba(12, 7, 40, .94) 55%, rgba(12, 7, 40, 0)); }
.stack-card, .nest-card, .tile-pic.foil { background: linear-gradient(135deg, #565a68 0%, #8d91a0 36%, #61656f 64%, #9a9eab 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28), 0 10px 24px rgba(4, 0, 30, .4); }
.stack-card span, .nest-card span, .tile-pic.foil span { color: rgba(255, 255, 255, .78); text-shadow: 0 2px 6px rgba(20, 20, 40, .5); }
.stack-card::after, .nest-card::after { background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 62%); }


/* ─────────────── космос ───────────────
   Тёмно-синее небо с туманностями и мерцающими звёздами; плашки —
   полупрозрачное стекло, кнопки — фиолетово-голубой неон. Цвета редкости
   карт не трогаем: они читаются на любом фоне. */
:root {
  --bg: #05061a;
  --surface: rgba(18, 20, 52, .72);
  --surface-2: rgba(30, 32, 78, .7);
  --line: rgba(160, 170, 255, .12);
  --text: #f2f3ff;
  --muted: #9ea3d4;
  --muted-2: #6c71a8;
  --accent: #7c6cff;
  --accent-2: #22d3ee;
  --glow: 0 8px 26px rgba(124, 108, 255, .38);
  --glass: linear-gradient(180deg, rgba(40, 44, 104, .62), rgba(16, 18, 50, .66));
  --glass-edge: inset 0 1px 0 rgba(190, 200, 255, .16), inset 0 0 0 1px rgba(150, 160, 255, .08);
}
html { background: var(--bg); }
body { background: transparent; }
/* небо: туманности + два слоя звёзд (дальние и ближние), фиксированы за контентом */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
  background:
    radial-gradient(60% 40% at 12% 8%, rgba(124, 58, 237, .34), transparent 70%),
    radial-gradient(55% 38% at 92% 28%, rgba(34, 211, 238, .2), transparent 70%),
    radial-gradient(70% 45% at 50% 105%, rgba(219, 39, 119, .22), transparent 70%),
    radial-gradient(40% 30% at 70% 70%, rgba(59, 80, 220, .18), transparent 70%),
    linear-gradient(180deg, #070822 0%, #05061a 55%, #040414 100%);
}
body::after {
  background-image:
    radial-gradient(1.4px 1.4px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 90px 80px, rgba(255, 255, 255, .85), transparent),
    radial-gradient(1.6px 1.6px at 160px 20px, #cfd6ff, transparent),
    radial-gradient(1px 1px at 210px 140px, rgba(255, 255, 255, .8), transparent),
    radial-gradient(1.2px 1.2px at 60px 170px, #ffe9c4, transparent),
    radial-gradient(1px 1px at 250px 60px, rgba(255, 255, 255, .7), transparent);
  background-size: 280px 200px;
  opacity: .85;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: .95; } }

/* стеклянные плашки */
.glass-pill { background: var(--glass); box-shadow: var(--glass-edge); }
.pill-gold { background: linear-gradient(180deg, rgba(120, 84, 20, .75), rgba(60, 40, 10, .75)); box-shadow: inset 0 1px 0 rgba(255, 210, 120, .25); }
.pill-blue { background: linear-gradient(180deg, rgba(40, 90, 170, .7), rgba(16, 40, 90, .75)); box-shadow: inset 0 1px 0 rgba(140, 200, 255, .25); }
.glass-card, .item { background: var(--glass); box-shadow: var(--glass-edge), 0 10px 30px rgba(0, 0, 8, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.skin-cell { background: rgba(26, 28, 70, .7); box-shadow: var(--glass-edge); }
.skin-cell.on { background: linear-gradient(180deg, rgba(70, 60, 160, .75), rgba(30, 30, 90, .75)); box-shadow: inset 0 1px 0 rgba(200, 190, 255, .25), 0 0 14px rgba(124, 108, 255, .25); }
.tile-pic, .row-ico { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc, #7c6cff) 26%, #1c1e4a), #14163a 75%); }
.row-ico.emoji { background: rgba(150, 160, 255, .1); }
.progress, .b-bar { background: rgba(150, 160, 255, .14); }
.progress > i { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.b-bar i { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* кнопки: неоновые, с лёгким свечением */
.btn { background: rgba(150, 160, 255, .14); box-shadow: var(--glass-edge); color: var(--text); }
.btn.primary, .btn.blue { background: linear-gradient(135deg, var(--accent), #4f7cff 55%, var(--accent-2)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), var(--glow); }
.btn.white { background: linear-gradient(180deg, #ffffff, #dfe2ff); color: #1a1c46; box-shadow: 0 6px 20px rgba(150, 160, 255, .25); }
.field { background: rgba(20, 22, 62, .7); box-shadow: var(--glass-edge); }
.field:focus { box-shadow: inset 0 0 0 2px var(--accent), 0 0 16px rgba(124, 108, 255, .35); }
.link { color: var(--accent-2); }
.seg { background: rgba(20, 22, 62, .7); box-shadow: var(--glass-edge); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.seg button { color: var(--muted); }
.seg button.on { background: linear-gradient(135deg, var(--accent), #4f7cff); color: #fff; box-shadow: var(--glow); }

/* баннеры и плитки — космические градиенты */
.banner.gold { background: linear-gradient(115deg, #6a3fb0 0%, #3a2478 50%, #14123a 100%); box-shadow: inset 0 0 0 1px rgba(200, 180, 255, .18), 0 14px 36px rgba(0, 0, 10, .5); }
.banner.blue { background: linear-gradient(115deg, #1b64c4 0%, #1b3a8a 50%, #0b1240 100%); box-shadow: inset 0 0 0 1px rgba(160, 210, 255, .18), 0 14px 36px rgba(0, 0, 10, .5); }
.b-pill, .banner.blue .b-pill { background: rgba(255, 255, 255, .16); }
.g-blue { background: linear-gradient(160deg, #1d3f8c 0%, #151e52 60%, #0d1033 100%); box-shadow: inset 0 0 0 1px rgba(160, 200, 255, .14); }
.g-green { background: linear-gradient(160deg, #0f6b6f 0%, #123a55 60%, #0c1636 100%); box-shadow: inset 0 0 0 1px rgba(120, 240, 230, .14); }
.c-green { color: #5eead4; } .c-blue { color: #8ab4ff; }

/* рейтинг, нижнее меню */
.rank.me { background: rgba(124, 108, 255, .16); }
.rank.me .pl { color: var(--accent-2); }
.dock-round, .dock-group { background: rgba(14, 16, 48, .72); box-shadow: inset 0 1px 0 rgba(190, 200, 255, .16), 0 12px 34px rgba(0, 0, 10, .6); }
.dock-group button.on { background: rgba(124, 108, 255, .22); }
.dock button.on, .dock-round.on { color: var(--accent-2); }
.dock-avatar.on .avatar { box-shadow: 0 0 0 3px var(--accent); }
.dock-badge { box-shadow: 0 0 0 2px #0e1030; }

/* экран стирания и всплывашка */
.scratch-screen { background: radial-gradient(80% 50% at 50% 0%, #1b1a5e 0%, #080925 55%, #04040f 100%); }
.scratch-top .glass-pill { background: var(--glass); }
.scratch-events div { background: rgba(150, 160, 255, .1); color: rgba(235, 238, 255, .85); box-shadow: inset 0 0 0 1px rgba(160, 170, 255, .14); }
.toast { background: linear-gradient(135deg, #fff, #dfe2ff); color: #1a1c46; }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

/* кнопка выбора чата в шапке, между картами и звёздами */
.topbar { gap: 8px; }
.chat-pill { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 700; font-size: 15px; background: var(--glass); box-shadow: var(--glass-edge); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.chat-pill span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-pill i { font-style: normal; color: var(--accent-2); font-size: 13px; }
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(2, 3, 14, .6); display: flex; align-items: flex-end; justify-content: center; animation: fadein .2s ease; }
.sheet-body { width: 100%; max-width: 520px; max-height: 80vh; overflow-y: auto; padding: 18px 16px calc(18px + var(--safe-b)); border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(34, 36, 92, .96), rgba(10, 12, 38, .98)); box-shadow: inset 0 1px 0 rgba(190, 200, 255, .2); display: flex; flex-direction: column; gap: 10px; }
.sheet-title { font-weight: 800; font-size: 20px; margin: 2px 4px 6px; }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 52px; padding: 0 18px; border-radius: 18px; font-weight: 700; background: rgba(150, 160, 255, .12); box-shadow: var(--glass-edge); }
.sheet-row.on { background: linear-gradient(135deg, rgba(124, 108, 255, .5), rgba(34, 211, 238, .3)); }
.sheet-row i { font-style: normal; color: var(--accent-2); }

/* скины: закрытые — чистые силуэты, выбранный — с рамкой */
.skin-img.locked { filter: brightness(0); opacity: .45; }
button.skin-cell { width: 100%; }
.skin-cell.sel { box-shadow: inset 0 0 0 2px var(--accent-2), 0 0 16px rgba(34, 211, 238, .4); }


/* ─────────────── компактнее и «стеклянно» (как в Portals) ───────────────
   Без обводок: стекло видно по блику сверху-слева и лёгкому свету снизу-справа.
   Плашки, кнопки и меню меньше — интерфейс не должен кричать. */
:root {
  --glass-edge: inset 1.5px 1.5px 1px -1px rgba(255, 255, 255, .34), inset -1.5px -1.5px 1px -1px rgba(255, 255, 255, .16);
  --glass: linear-gradient(145deg, rgba(120, 130, 235, .24), rgba(50, 56, 150, .14) 55%, rgba(120, 130, 235, .12));
}
.glass-pill, .chat-pill, .seg, .field, .btn, .sheet-row, .dock-round, .dock-group, .skin-cell, .glass-card, .item {
  border: 0;
}
.glass-pill { background: var(--glass); box-shadow: var(--glass-edge); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
.pill-gold { background: linear-gradient(145deg, rgba(255, 196, 80, .34), rgba(150, 100, 20, .2) 60%, rgba(255, 196, 80, .14)); }
.pill-blue { background: linear-gradient(145deg, rgba(90, 170, 255, .34), rgba(30, 80, 170, .2) 60%, rgba(90, 170, 255, .14)); }
.glass-card, .item { background: var(--glass); box-shadow: var(--glass-edge), 0 8px 24px rgba(0, 0, 10, .3); }
.seg, .field, .skin-cell, .chat-pill { background: var(--glass); box-shadow: var(--glass-edge); }
.btn { background: linear-gradient(145deg, rgba(150, 160, 255, .26), rgba(90, 100, 210, .14)); box-shadow: var(--glass-edge); }
.btn.primary, .btn.blue { box-shadow: var(--glass-edge), var(--glow); }
.dock-round, .dock-group { background: linear-gradient(145deg, rgba(110, 120, 230, .26), rgba(30, 34, 100, .5)); box-shadow: var(--glass-edge), 0 10px 28px rgba(0, 0, 10, .5); }
.banner.gold, .banner.blue, .g-blue, .g-green, .tile { box-shadow: var(--glass-edge), 0 10px 28px rgba(0, 0, 10, .4); }
.skin-cell.on { background: linear-gradient(145deg, rgba(150, 140, 255, .36), rgba(70, 70, 190, .2)); }
.sheet-row { background: var(--glass); box-shadow: var(--glass-edge); }
.sheet-body { box-shadow: inset 1.5px 1.5px 1px -1px rgba(255, 255, 255, .3); }

/* размеры: маленькие только плашки сверху (звёзды, чат, карты) */
.topbar { gap: 6px; padding-top: 0; }
.glass-pill { height: 34px; padding: 0 13px; font-size: 15px; gap: 6px; }
.glass-pill .ico, .glass-pill .star-ico.ico { width: 16px; height: 16px; font-size: 15px; }
.card-ico.ico { width: 16px; height: 16px; }
.chat-pill { height: 34px; padding: 0 12px; font-size: 13px; font-weight: 600; }

/* перебиваем старые «обводки» с !important: стекло — только блики по углам */
.glass-card { background: var(--glass) !important; box-shadow: var(--glass-edge), 0 8px 24px rgba(0, 0, 10, .3) !important; backdrop-filter: blur(16px) saturate(150%) !important; -webkit-backdrop-filter: blur(16px) saturate(150%) !important; }
.glass-pill { box-shadow: var(--glass-edge), 0 4px 14px rgba(0, 0, 10, .25) !important; }
.pill-gold { background: linear-gradient(145deg, rgba(255, 196, 80, .34), rgba(150, 100, 20, .2) 60%, rgba(255, 196, 80, .14)); }
.pill-blue { background: linear-gradient(145deg, rgba(90, 170, 255, .34), rgba(30, 80, 170, .2) 60%, rgba(90, 170, 255, .14)); }
.pill-gold, .pill-blue { box-shadow: var(--glass-edge), 0 4px 14px rgba(0, 0, 10, .25) !important; }
.dock-group, .dock-round { background: linear-gradient(145deg, rgba(110, 120, 230, .26), rgba(30, 34, 100, .55)) !important; box-shadow: var(--glass-edge), 0 10px 28px rgba(0, 0, 10, .5) !important; }
.topbar .glass-pill { min-width: 70px; gap: 6px; }

/* ─────────────── спокойнее: меньше цвета в кнопках ───────────────
   Вместо ярких фиолетово-голубых градиентов и свечения — матовое стекло
   с едва заметным оттенком; акцент остаётся только в мелочах. */
.btn.primary, .btn.blue {
  background: linear-gradient(145deg, rgba(190, 198, 255, .30), rgba(120, 130, 220, .16));
  color: #fff; box-shadow: var(--glass-edge), 0 4px 14px rgba(0, 0, 10, .25);
}
.btn.white { background: rgba(255, 255, 255, .92); color: #14163a; box-shadow: 0 4px 14px rgba(0, 0, 10, .25); }
.seg button.on { background: linear-gradient(145deg, rgba(200, 206, 255, .30), rgba(130, 140, 225, .16)); color: #fff; box-shadow: var(--glass-edge); }
.dock-group button.on { background: rgba(255, 255, 255, .10); }
.dock button.on, .dock-round.on { color: #fff; }
.dock-avatar.on .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.field:focus { box-shadow: var(--glass-edge), inset 0 0 0 1.5px rgba(200, 206, 255, .55); }
.link { color: #b9c0f0; }
.progress > i, .b-bar i { background: linear-gradient(90deg, #8f98e8, #c9cffa); }
.sheet-row.on { background: linear-gradient(145deg, rgba(200, 206, 255, .28), rgba(130, 140, 225, .14)); }
.sheet-row i, .chat-pill i { color: #c9cffa; }
.btn:disabled { opacity: .35; }

/* Эмодзи-картинки из Телеграма (tgemoji.js): размер как у текста, чуть крупнее. */
.tge { display: inline-block; width: 1.18em; height: 1.18em; vertical-align: -.24em; object-fit: contain;
  max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.kc-emoji .tge, .bcell .tge { width: 1em; height: 1em; vertical-align: middle; }
