:root {
  --bg: #0b1117;
  --panel: #131c24;
  --panel2: #1a2630;
  --line: #24323e;
  --text: #e8eef2;
  --muted: #8a9aa8;
  --teal: #2dd4bf;
  --amber: #f5b942;
  --red: #f87171;
  --radius: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 15px/1.4 -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif; overscroll-behavior: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
h2 { margin: 6px 0 4px; font-size: 22px; }
h3 { margin: 22px 0 10px; font-size: 16px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.grow { flex: 1; min-width: 0; }

#app { display: flex; flex-direction: column; height: 100%; max-width: 520px; margin: 0 auto; }
main { flex: 1; overflow-y: auto; padding: 0 16px 16px; }
.tab { display: none; }
.tab.active { display: block; animation: fade .2s; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* Шапка */
.top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.user { display: flex; gap: 10px; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), #0f766e); color: #04211d; font-weight: 700; }
.uname { font-weight: 600; }
.league-name { font-size: 12px; color: var(--amber); }
.top-right { display: flex; gap: 8px; align-items: center; }
.admin-link { width: 40px; height: 40px; display: grid; place-items: center; background: var(--panel); border-radius: 12px; color: var(--muted); }
.pph { text-align: right; background: var(--panel); padding: 6px 12px; border-radius: 12px; }
.pph span { display: block; font-size: 11px; color: var(--muted); }
.pph b { color: var(--teal); }

/* Охота */
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.chip { position: relative; background: var(--panel); border-radius: 14px; padding: 10px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; }
.dot { position: absolute; top: 8px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.balance { display: flex; justify-content: center; align-items: center; gap: 10px;
  font-size: 40px; font-weight: 800; margin: 18px 0 8px; letter-spacing: -.5px; }
.coin { display: inline-block; width: .8em; height: .8em; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #ffe3a1, var(--amber) 55%, #b7791f);
  box-shadow: inset 0 0 0 .07em #fff3, 0 0 .3em #f5b94255; }
.league-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.bar { height: 10px; background: var(--panel2); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar.small { height: 6px; }
.bar > div { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--amber));
  transition: width .2s; }
.tap-wrap { display: grid; place-items: center; margin: 22px 0 18px; }
.tap-target { width: min(76vw, 300px); aspect-ratio: 1; border-radius: 50%; touch-action: manipulation;
  transition: transform .08s; filter: drop-shadow(0 10px 40px #2dd4bf33); }
.tap-target svg { width: 100%; height: 100%; display: block; }
.radar { transform-origin: 100px 100px; animation: radar 4s linear infinite; }
@keyframes radar { to { transform: rotate(360deg); } }
.energy-row { display: flex; justify-content: space-between; font-size: 14px; }
.float { position: fixed; pointer-events: none; font-weight: 800; font-size: 26px; color: var(--amber);
  text-shadow: 0 2px 8px #000a; animation: float .9s ease-out forwards; z-index: 50; }
@keyframes float { to { transform: translateY(-90px); opacity: 0; } }

/* Карточки */
.mini-balance { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 26px; font-weight: 800; margin: 4px 0 12px; }
.cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.cats button { flex: none; padding: 8px 14px; border-radius: 12px; background: var(--panel); color: var(--muted); font-size: 13px; }
.cats button.active { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--teal); }
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { background: var(--panel); border-radius: var(--radius); padding: 12px; text-align: left;
  display: flex; flex-direction: column; gap: 6px; min-height: 140px; }
.card.locked { opacity: .55; }
.card .name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.card .profit { font-size: 12px; color: var(--muted); }
.card .profit b { color: var(--teal); }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 8px; font-size: 13px; }
.card .cost { display: flex; align-items: center; gap: 5px; font-weight: 700; }
.card .cost.no { color: var(--muted); }
.card .lock { font-size: 11px; color: var(--muted); }

/* Списки */
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; background: var(--panel); padding: 12px; border-radius: 14px; }
.item .grow { flex: 1; min-width: 0; }
.item .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .s { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.item.me { box-shadow: inset 0 0 0 1px var(--teal); }
.rank { width: 28px; text-align: center; font-weight: 700; color: var(--muted); }
.info-box { background: var(--panel); border-radius: 14px; padding: 12px; margin: 12px 0; font-size: 14px; }
.row-btns { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.btn { padding: 12px 16px; border-radius: 12px; background: var(--panel2); font-weight: 600; }
.btn.primary { background: var(--teal); color: #04211d; }
.btn.small { padding: 8px 12px; font-size: 13px; }
.btn:disabled { opacity: .45; }
.done { color: var(--teal); font-weight: 700; }

/* Нижняя навигация */
.bottom { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: var(--panel); border-top: 1px solid var(--line); }
.bottom button { display: flex; flex-direction: column; align-items: center; font-size: 10px; color: var(--muted); padding: 4px 0; border-radius: 10px; }
.bottom button.active { color: var(--text); background: var(--panel2); }

/* Шторка */
.backdrop { position: fixed; inset: 0; background: #000a; z-index: 60; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; z-index: 61;
  background: var(--panel); border-radius: 22px 22px 0 0; padding: 22px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .25s ease; max-height: 85vh; overflow-y: auto; }
.sheet.open { transform: none; }
.sheet-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--panel2); color: var(--muted); display: grid; place-items: center; }
.sheet-title { font-size: 20px; font-weight: 700; text-align: center; margin: 6px 0; }
.sheet-sub { text-align: center; color: var(--muted); margin-bottom: 16px; }
.sheet .btn { width: 100%; margin-top: 12px; }
.big-cost { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 24px; font-weight: 800; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.day { background: var(--panel2); border-radius: 12px; padding: 8px 2px; text-align: center; font-size: 11px; }
.day b { display: block; font-size: 12px; margin-top: 2px; }
.day.got { background: #0f3d38; color: var(--teal); }
.day.now { box-shadow: inset 0 0 0 2px var(--amber); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { background: var(--panel2); border-radius: 14px; min-height: 90px; display: grid; place-items: center;
  text-align: center; padding: 8px; font-size: 13px; }
.slot.q { font-size: 30px; color: var(--muted); }
.slot.ok { box-shadow: inset 0 0 0 2px var(--teal); }
.boost { display: flex; align-items: center; gap: 12px; background: var(--panel2); border-radius: 14px; padding: 12px; margin-bottom: 8px; width: 100%; text-align: left; }

.toast { position: fixed; left: 50%; top: 14px; transform: translate(-50%, -150%); background: var(--panel2);
  border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; z-index: 120; transition: transform .25s;
  max-width: 90vw; font-size: 14px; }
.toast.show { transform: translate(-50%, 0); }
.toast.err { border-color: var(--red); }


/* --- Профиль, медали, кланы --- */
.user { text-align: left; padding: 0; }
.boost-chip { color: var(--teal); font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border-radius: 12px; padding: 4px; margin: 10px 0 4px; }
.seg button { padding: 8px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; }
.seg button.active { background: var(--panel2); color: var(--text); }
.medal-img { width: 44px; height: 44px; flex: none; object-fit: contain; display: grid; place-items: center; font-size: 30px; }
.medal-img.sm { width: 26px; height: 26px; font-size: 18px; }
.medal-img.lg { width: 140px; height: 140px; font-size: 96px; margin: 0 auto; }
.medals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.medal { background: var(--panel2); border-radius: 14px; padding: 10px 4px; text-align: center; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.medal .medal-img { width: 52px; height: 52px; }
.medal b { color: var(--teal); }
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.stat { background: var(--panel2); border-radius: 12px; padding: 10px; font-size: 12px; color: var(--muted); }
.stat b { display: block; color: var(--text); font-size: 16px; }
.prog { height: 5px; background: var(--panel2); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.prog > div { height: 100%; background: var(--teal); }
.reward-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.item-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--panel2); border-radius: 8px; padding: 2px 6px 2px 2px; font-size: 11px; color: var(--text); }
.emblem { width: 44px; height: 44px; border-radius: 12px; background: var(--panel2); display: grid; place-items: center; font-size: 24px; flex: none; }
.emblem.lg { width: 72px; height: 72px; font-size: 40px; border-radius: 20px; margin: 0 auto; }
.clan-head { text-align: center; margin: 6px 0 12px; }
.clan-head h2 { margin: 10px 0 2px; }
.emblems { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 10px 0; }
.emblems button { aspect-ratio: 1; border-radius: 10px; background: var(--panel2); font-size: 20px; }
.emblems button.sel { box-shadow: inset 0 0 0 2px var(--teal); }
.field { width: 100%; background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 12px; font: inherit; margin-top: 8px; outline: none; }
.field:focus { border-color: var(--teal); }
.kick { width: 30px; height: 30px; border-radius: 8px; background: var(--panel); color: var(--red); flex: none; display: grid; place-items: center; }
.btn.danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1px #f8717155; width: 100%; margin-top: 16px; }

/* ================= Иконки ================= */
.ico { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; color: inherit; }
.ico svg { width: 100%; height: 100%; overflow: visible; }
.ico.sm { width: 18px; height: 18px; }
.ico.lg { width: 34px; height: 34px; }
.ico.xl { width: 44px; height: 44px; }
.ico .ac { stroke: var(--amber); }
.ico .ac-fill { fill: var(--amber); }
.ico.amber { color: var(--amber); }
.ico.teal { color: var(--teal); }
.ico * { transform-box: fill-box; }

/* Нижняя навигация: каждая иконка оживает по-своему, только когда вкладка активна */
.bottom button { gap: 3px; transition: color .2s, background .2s; }
.bottom button .ico { width: 24px; height: 24px; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.bottom button.active .ico { color: var(--teal); transform: translateY(-1px); }
.bottom button:active .ico { transform: scale(.86); }
.bottom button .sweep, .bottom button .blip { opacity: 0; }
.bottom button.active .sweep { opacity: .55; transform-origin: 0% 100%; animation: ic-spin 2.4s linear infinite; }
.bottom button.active .blip { animation: ic-blip 2.4s ease-in-out infinite; }
.bottom button.active .paper { animation: ic-paper 2.6s ease-in-out infinite; }
.bottom button.active .draw { stroke-dasharray: 1; animation: ic-draw 2.6s ease-in-out infinite; stroke: var(--amber); }
.bottom button.active .scan { animation: ic-scan 2.2s ease-in-out infinite; }
.bottom button.active .link { animation: ic-flow 1.2s linear infinite; stroke: var(--amber); }
.bottom button.active .stamp { stroke: var(--amber); transform-origin: left center; animation: ic-stamp 2.6s ease-in-out infinite; }
.bottom button.active .latch { stroke: var(--amber); transform-origin: center top; animation: ic-latch 2.4s ease-in-out infinite; }
.bottom button.active .handle { animation: ic-handle 2.4s ease-in-out infinite; }
@keyframes ic-latch { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(1.5px); } 80% { transform: none; } }
@keyframes ic-handle { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(-1px); } }
@keyframes ic-spin { to { transform: rotate(360deg); } }
@keyframes ic-blip { 0%, 30% { opacity: 0; } 40% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes ic-paper { 0%, 100% { transform: translateY(2.5px); } 45%, 60% { transform: translateY(-1.5px); } }
@keyframes ic-draw { 0% { stroke-dashoffset: 1; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes ic-scan { 0%, 100% { transform: translateY(-3.5px); opacity: .2; } 50% { transform: translateY(8px); opacity: 1; } }
@keyframes ic-flow { to { stroke-dashoffset: -8.4; } }
@keyframes ic-stamp { 0%, 20% { transform: scaleX(0); } 45%, 100% { transform: scaleX(1); } }

/* Чипы главного экрана */
.chip { gap: 4px; padding: 10px 4px 9px; transition: transform .15s; }
.chip:active { transform: scale(.95); }
.chip .ico { width: 30px; height: 30px; color: var(--teal); }
#btnDaily.live .lid { transform-origin: 50% 100%; animation: ic-lid 1.8s ease-in-out infinite; }
#btnDaily.live { box-shadow: inset 0 0 0 1px #f5b94255; }
@keyframes ic-lid { 0%, 55%, 100% { transform: translateY(0) rotate(0); } 65% { transform: translateY(-2.5px) rotate(-6deg); } 75% { transform: translateY(-2.5px) rotate(5deg); } 85% { transform: translateY(0) rotate(0); } }
#btnCombo:active .n1, #btnCombo:active .n2, #btnCombo:active .n3 { fill: var(--teal); }
#btnBoost:active .bolt { fill: var(--amber); stroke: var(--amber); }
.chip .n1, .chip .n2, .chip .n3 { animation: ic-node 3.6s ease-in-out infinite; }
.chip .n2 { animation-delay: .4s; } .chip .n3 { animation-delay: .8s; }
@keyframes ic-node { 0%, 20%, 100% { fill: transparent; } 8% { fill: var(--teal); } }
.chip .bolt { animation: ic-flicker 4s steps(1) infinite; }
@keyframes ic-flicker { 0%, 88%, 92%, 96%, 100% { fill: transparent; } 90%, 94% { fill: #f5b94288; } }

/* Бусты */
.boost .ico { width: 40px; height: 40px; padding: 7px; border-radius: 12px; background: var(--panel); color: var(--teal); }
.boost .fill { transform-origin: left center; animation: ic-charge 2s ease-in-out infinite; }
@keyframes ic-charge { 0% { transform: scaleX(.1); } 70%, 100% { transform: scaleX(1); } }
.boost .ring { transform-origin: center; animation: ic-ring 1.8s ease-out infinite; }
.boost .r2 { animation-delay: .5s; }
@keyframes ic-ring { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.1); opacity: 0; } }
.boost .liquid { animation: ic-wave 1.6s ease-in-out infinite alternate; }
@keyframes ic-wave { to { transform: translateY(-2.5px); } }

/* Заголовки шторок с иконкой */
.sheet-icon { display: grid; place-items: center; margin: 2px auto 0; width: 56px; height: 56px; border-radius: 18px; background: var(--panel2); color: var(--teal); }
.sheet-icon .ico { width: 32px; height: 32px; }

.energy-val { display: inline-flex; align-items: center; gap: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.card .lock { color: var(--muted); display: inline-flex; }
.inline-ico { display: inline-flex; align-items: center; gap: 3px; }
.done { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #0f3d38; color: var(--teal); }

/* Места в рейтинге */
.rank { display: grid; place-items: center; height: 28px; font-size: 13px; flex: none; }
.rank.p1, .rank.p2, .rank.p3 { border-radius: 50%; width: 28px; color: #0b1117; font-weight: 800; }
.rank.p1 { background: radial-gradient(circle at 35% 30%, #ffe9b0, #f5b942 60%, #a86b12); }
.rank.p2 { background: radial-gradient(circle at 35% 30%, #fff, #b9c4cc 60%, #67747e); }
.rank.p3 { background: radial-gradient(circle at 35% 30%, #f7c9a4, #c27a45 60%, #7a4321); }

.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--teal); font-size: 14px; padding: 6px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ================= Превью ================= */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(120% 80% at 50% 30%, #102632 0%, var(--bg) 60%); transition: opacity .45s ease, visibility .45s; }
.loader.out { opacity: 0; visibility: hidden; }
.splash { width: 100%; max-width: 360px; text-align: center; }
.sp-logo { width: min(62vw, 240px); height: auto; display: block; margin: 0 auto; overflow: visible; }
.sp-logo * { transform-box: fill-box; }
.sp-ring { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sp-draw .9s cubic-bezier(.6,0,.3,1) .1s forwards; }
.sp-ring2 { opacity: 0; animation: sp-in .6s ease .5s forwards; }
.sp-sweep { transform-box: view-box; transform-origin: 512px 512px; opacity: 0; animation: sp-in .3s ease .4s forwards, ic-spin 2.6s linear .4s infinite; }
.sp-blip { opacity: 0; animation: sp-blip 2.6s ease-out infinite; }
.sp-blip.b1 { animation-delay: .75s; } .sp-blip.b2 { animation-delay: 2.3s; } .sp-blip.b3 { animation-delay: 1.15s; }
.sp-foot { opacity: 0; animation: sp-step .45s ease forwards; }
.sp-foot.f1 { animation-delay: .55s; --o: .25; } .sp-foot.f2 { animation-delay: .8s; --o: .42; } .sp-foot.f3 { animation-delay: 1.05s; --o: .6; }
.sp-glass { transform-origin: 40% 40%; opacity: 0; transform: scale(.55) rotate(-25deg); animation: sp-glass .7s cubic-bezier(.3,1.5,.5,1) 1.2s forwards; }
.sp-glint { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sp-draw .5s ease 1.9s forwards, sp-glint 3.2s ease 2.6s infinite; }
.sp-print { opacity: 0; transform-origin: center; transform: scale(.6); animation: sp-print .5s cubic-bezier(.3,1.6,.5,1) 1.6s forwards; }
@keyframes sp-draw { to { stroke-dashoffset: 0; } }
@keyframes sp-in { to { opacity: 1; } }
@keyframes sp-blip { 0% { opacity: 0; } 6% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes sp-step { from { opacity: 0; transform: translateY(14px); } to { opacity: var(--o); transform: none; } }
@keyframes sp-glass { to { opacity: 1; transform: none; } }
@keyframes sp-print { to { opacity: 1; transform: none; } }
@keyframes sp-glint { 0%, 70% { stroke-opacity: .4; } 80% { stroke-opacity: .9; } 100% { stroke-opacity: .4; } }

.brand { position: relative; display: inline-block; margin: 18px 0 2px; font: 700 clamp(32px, 10vw, 42px)/1 "Chakra Petch", -apple-system, sans-serif;
  letter-spacing: .01em; color: var(--text); }
.brand span { display: inline-block; clip-path: inset(0 100% 0 0); animation: sp-reveal .9s cubic-bezier(.6,0,.3,1) 1.4s forwards;
  background: linear-gradient(180deg, #ffffff 30%, #a9eee4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand::after { content: ""; position: absolute; top: -4px; bottom: -4px; left: 0; width: 3px; border-radius: 2px; background: var(--teal);
  box-shadow: 0 0 14px 2px #2dd4bf99; opacity: 0; animation: sp-scanline .9s cubic-bezier(.6,0,.3,1) 1.4s forwards; }
@keyframes sp-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes sp-scanline { 0% { opacity: 1; left: 0; } 92% { opacity: 1; left: 100%; } 100% { opacity: 0; left: 100%; } }
.tagline { margin: 6px 0 0; color: var(--amber); font-size: 14px; letter-spacing: .02em; opacity: 0; animation: sp-in .5s ease 2.1s forwards; }
#splashState { margin-top: 26px; min-height: 52px; opacity: 0; animation: sp-in .4s ease 2.2s forwards; }
.splash-bar { width: 160px; height: 3px; margin: 0 auto; background: var(--panel2); border-radius: 99px; overflow: hidden; }
.splash-bar i { display: block; width: 40%; height: 100%; background: var(--teal); border-radius: 99px; animation: sp-load 1.1s ease-in-out infinite; }
@keyframes sp-load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.splash-status { margin-top: 10px; font-size: 13px; color: var(--muted); }
.splash-closed { text-align: center; color: var(--muted); font-size: 14px; }
.splash-closed b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }
.agent-id { margin: 14px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 280px;
  background: var(--panel); border-radius: 12px; padding: 8px 8px 8px 14px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: .04em; }
.agent-id button { width: 36px; height: 36px; border-radius: 10px; background: var(--panel2); color: var(--teal); display: grid; place-items: center; }

/* ================= Мой профиль ================= */
.dossier { position: relative; margin: 6px 0 12px; padding: 16px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, #15303c 0%, #111b23 55%); box-shadow: inset 0 0 0 1px #2dd4bf33; }
.dossier::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, transparent 0 22px, #2dd4bf0d 22px 23px); }
.dossier-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); position: relative; }
.dossier-head b { font: 600 13px "Chakra Petch", sans-serif; color: var(--teal); letter-spacing: .03em; }
.dossier-body { position: relative; display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.photo { width: 76px; height: 92px; border-radius: 12px; flex: none; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), #0f766e); color: #04211d; font: 700 34px "Chakra Petch", sans-serif;
  box-shadow: 0 0 0 2px #0b1117, 0 0 0 3px #2dd4bf66; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.dossier-name { font-size: 20px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.dossier-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.dossier-league { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; border-radius: 99px;
  background: #f5b9421f; color: var(--amber); font-size: 12px; font-weight: 600; }
.dossier-progress { position: relative; margin-top: 14px; font-size: 12px; color: var(--muted); }
.dossier-progress .bar { margin-top: 5px; height: 6px; }
.stamp-mark { position: absolute; right: 14px; bottom: 34px; transform: rotate(-12deg); padding: 3px 8px; border: 2px solid #f5b94299;
  border-radius: 6px; color: #f5b942cc; font: 700 12px "Chakra Petch", sans-serif; letter-spacing: .08em; }

.rank-card { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--panel); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.rank-card .ico { width: 42px; height: 42px; padding: 8px; border-radius: 12px; background: var(--panel2); color: var(--teal); }
.rank-card .big { font: 700 24px/1 "Chakra Petch", sans-serif; }
.rank-card .s { font-size: 12px; color: var(--muted); margin-top: 3px; }
.rank-card .chev { color: var(--muted); width: 18px; height: 18px; }

.wallet-card { background: var(--panel); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.wallet-row { display: flex; align-items: center; gap: 12px; }
.wallet-row > .ico { width: 42px; height: 42px; padding: 8px; border-radius: 12px; background: var(--panel2); color: var(--teal); }
.wallet-addr { font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.wallet-card .btn { width: 100%; margin-top: 12px; }
.wallet-card .btn.ghost { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.wallet-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 6px; }
.pstat { background: var(--panel); border-radius: 12px; padding: 10px; }
.pstat b { display: block; font-size: 16px; }
.pstat span { font-size: 11px; color: var(--muted); }
.medal.locked .medal-img { filter: grayscale(1) brightness(.5); opacity: .5; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.boost-chip { display: inline-flex; align-items: center; gap: 1px; vertical-align: -3px; }
.boost-chip .ico { width: 14px; height: 14px; }
.admin-link .ico { width: 22px; height: 22px; }
.admin-link:active .ico { transform: rotate(60deg); transition: transform .3s; }
.rank-card .ico.chev { width: 18px; height: 18px; padding: 0; background: none; border-radius: 0; color: var(--muted); }
.stamp-mark { bottom: 40px; }
