/* ============ Gift Suika — Telegram NFT Edition · v2 neon ============ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-0: #070b16;
  --bg-1: #0b1122;
  --card: rgba(13, 20, 38, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eef3fa;
  --text-dim: #8b9bb4;
  --neon-c: #22d3ee;   /* cyan */
  --neon-v: #a78bfa;   /* violet */
  --neon-p: #f472b6;   /* pink */
  --gold: #fbbf24;
  --radius: 20px;
  --font-display: "Unbounded", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
}

html, body {
  height: 100%;
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1) 60%, #0a0f1f);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* ---------- живой фон ---------- */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 46vw; height: 46vw;
  min-width: 380px; min-height: 380px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  will-change: transform;
}
.b1 { background: radial-gradient(circle, #1d4ed8, transparent 65%); top: -18%; left: -10%; animation: drift1 26s ease-in-out infinite alternate; }
.b2 { background: radial-gradient(circle, #7c3aed, transparent 65%); bottom: -22%; right: -12%; animation: drift2 32s ease-in-out infinite alternate; }
.b3 { background: radial-gradient(circle, #0e7490, transparent 65%); top: 30%; left: 55%; width: 30vw; height: 30vw; animation: drift3 24s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(10vw, 8vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-8vw, -10vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-12vw, 12vh) scale(0.9); } }

.fg {
  position: absolute;
  bottom: -60px;
  font-size: 26px;
  opacity: 0;
  animation: floatUp linear infinite;
}
.fg img {
  width: 1.4em;
  height: 1.4em;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}
.fg:nth-child(4) { left: 8%;  animation-duration: 19s; animation-delay: 0s;  font-size: 22px; }
.fg:nth-child(5) { left: 22%; animation-duration: 26s; animation-delay: 6s;  font-size: 30px; }
.fg:nth-child(6) { left: 35%; animation-duration: 22s; animation-delay: 12s; }
.fg:nth-child(7) { left: 55%; animation-duration: 28s; animation-delay: 3s;  font-size: 20px; }
.fg:nth-child(8) { left: 68%; animation-duration: 21s; animation-delay: 9s;  font-size: 32px; }
.fg:nth-child(9) { left: 80%; animation-duration: 25s; animation-delay: 15s; }
.fg:nth-child(10){ left: 90%; animation-duration: 30s; animation-delay: 5s;  font-size: 24px; }
.fg:nth-child(11){ left: 45%; animation-duration: 24s; animation-delay: 18s; font-size: 22px; }
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.16; }
  85%  { opacity: 0.12; }
  100% { transform: translateY(-115vh) rotate(40deg); opacity: 0; }
}

#app {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 16px 22px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 4px 16px;
}

.logo { display: flex; align-items: center; gap: 13px; }

.logo-emoji {
  font-size: 36px;
  filter: drop-shadow(0 0 18px rgba(167, 139, 250, 0.65));
  animation: logoPulse 3.2s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1) rotate(-4deg); }
  50% { transform: scale(1.09) rotate(4deg); }
}

.logo-text h1 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--neon-c), var(--neon-v) 50%, var(--neon-p));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.35));
}
.logo-text .sub {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.topbar-right { display: flex; gap: 8px; align-items: center; }

.seg {
  display: flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}
.seg-btn {
  padding: 8px 13px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all .18s ease;
}
.seg-btn.on {
  color: #fff;
  background: linear-gradient(135deg, rgba(34,211,238,0.35), rgba(167,139,250,0.35));
  box-shadow: 0 0 12px rgba(34,211,238,0.25), inset 0 0 0 1px rgba(255,255,255,0.14);
}

.icon-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .2s ease;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); box-shadow: 0 0 14px rgba(167,139,250,0.25); }
.icon-btn:active { transform: scale(0.94); }

/* ---------- layout ---------- */
.layout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
}

.board-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

/* ---------- board: неоновая рамка ---------- */
.board-frame {
  position: relative;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(var(--a, 135deg), rgba(34,211,238,0.65), rgba(167,139,250,0.15) 30%, rgba(244,114,182,0.55) 60%, rgba(34,211,238,0.15));
  animation: borderSpin 7s linear infinite;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(99, 102, 241, 0.14);
}
@property --a { syntax: '<angle>'; initial-value: 135deg; inherits: false; }
@keyframes borderSpin { to { --a: 495deg; } }

#game {
  display: block;
  border-radius: 22px;
  touch-action: none;
  cursor: crosshair;
  background: #0a101f;
}
.board-frame.targeting #game { cursor: cell; }

/* ---------- подсказка прицеливания / тост ---------- */
.target-hint {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 18px;
  border-radius: 14px;
  background: rgba(8, 12, 24, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.25);
  font-size: 14px; font-weight: 800;
  z-index: 6;
  pointer-events: none;
  animation: hintPulse 1.2s ease-in-out infinite;
}
.target-hint em { font-style: normal; font-size: 10px; color: var(--text-dim); font-weight: 600; }
@keyframes hintPulse { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.045); } }

.toast {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  padding: 9px 18px;
  border-radius: 12px;
  background: rgba(8, 12, 24, 0.9);
  border: 1px solid var(--card-border);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 6;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.toast.hidden { opacity: 0; transform: translateX(-50%) translateY(8px); }
.target-hint.hidden { display: none; }

/* ---------- панель плюшек ---------- */
.powerbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.power-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px 8px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform .13s ease, box-shadow .2s ease, border-color .2s ease;
}
.power-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 14px rgba(34,211,238,0.12); }
.power-btn:active { transform: scale(0.95); }
.power-btn.active {
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.35), inset 0 0 14px rgba(251, 191, 36, 0.08);
  animation: powerPulse 1.2s ease-in-out infinite;
}
@keyframes powerPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.power-btn.empty { opacity: 0.4; filter: grayscale(0.7); }
.power-btn .p-icon { font-size: 26px; line-height: 1; height: 30px; display: flex; align-items: center; justify-content: center; }
.power-btn .p-icon img { width: 30px; height: 30px; object-fit: contain; }
.power-btn .p-name { font-size: 9.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
.power-btn .p-count {
  position: absolute;
  top: -7px; right: -5px;
  min-width: 21px; height: 21px;
  padding: 0 5px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--neon-c), var(--neon-v));
  color: #fff;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.power-btn .p-count.bump { animation: countBump .5s ease; }
@keyframes countBump { 40% { transform: scale(1.5); } }

/* ---------- overlays ---------- */
.overlay {
  position: absolute;
  inset: 2px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(7, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  transition: opacity .35s ease;
}
.overlay.hidden { opacity: 0; pointer-events: none; }

.loader-gift { font-size: 58px; animation: bounce 1s ease-in-out infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.07); }
}
.loader-text { color: var(--text-dim); font-size: 14px; letter-spacing: 1px; }
.loader-bar { width: 190px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
#loaderFill { height: 100%; width: 0%; border-radius: 3px; background: linear-gradient(90deg, var(--neon-c), var(--neon-v)); transition: width .3s ease; }
.loader-count { font-size: 12px; color: var(--text-dim); }

.go-title { font-family: var(--font-display); font-size: 19px; font-weight: 900; text-align: center; padding: 0 14px; }
.go-emoji { font-size: 64px; animation: bounce 1.4s ease-in-out infinite; filter: drop-shadow(0 0 20px rgba(167,139,250,0.5)); }
.go-stats {
  width: min(280px, 82%);
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 18px;
}
.go-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-dim); }
.go-row b { color: var(--text); }

.go-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }

.ghost-btn {
  padding: 13px 24px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.ghost-btn:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.ghost-btn:active { transform: scale(0.96); }

.primary-btn {
  margin-top: 0;
  padding: 13px 34px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--neon-c), var(--neon-v));
  box-shadow: 0 8px 26px rgba(34, 211, 238, 0.35);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(34,211,238,0.5); }
.primary-btn:active { transform: scale(0.96); }

/* ---------- side panel ---------- */
.panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 256px;
  flex-shrink: 0;
}

.card {
  position: relative;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(160deg, rgba(34,211,238,0.4), rgba(167,139,250,0.12) 45%, rgba(244,114,182,0.35)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.35);
}

.card-title {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-bottom: 10px;
  text-align: center;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.chain-progress {
  background: rgba(34,211,238,0.14);
  border: 1px solid rgba(34,211,238,0.3);
  color: var(--neon-c);
  padding: 1px 7px;
  border-radius: 8px;
  font-size: 10px;
  letter-spacing: 1px;
}

.score-card { text-align: center; }
.score-label { font-size: 10px; letter-spacing: 4px; color: var(--text-dim); font-weight: 800; }
.score-value {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.3;
  background: linear-gradient(180deg, #ffffff 20%, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(125, 211, 252, 0.3));
  transition: transform .15s ease;
}
.score-value.pop { animation: scorePop .35s ease; }
@keyframes scorePop { 40% { transform: scale(1.16); } }
.score-sub { font-size: 13px; color: var(--text-dim); }
.score-sub b { color: var(--gold); }

.portfolio {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--card-border);
  font-size: 13px;
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.portfolio b { color: var(--neon-c); }

.next-card { text-align: center; }
.next-preview {
  width: 76px; height: 76px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 22px rgba(167,139,250,0.25), inset 0 0 14px rgba(255,255,255,0.08);
  overflow: hidden;
  animation: nextFloat 2.6s ease-in-out infinite;
}
@keyframes nextFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.next-preview img, .next-preview canvas { width: 82%; height: 82%; object-fit: contain; }
.next-name { margin-top: 9px; font-size: 12px; font-weight: 700; color: var(--text-dim); }

/* ---------- evolution chain ---------- */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.chain-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform .15s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
.chain-item img { width: 78%; height: 78%; object-fit: contain; filter: grayscale(1) brightness(0.4); transition: filter .4s ease; }
.chain-item .ci-emoji { filter: grayscale(1) brightness(0.5); transition: filter .4s ease; }
.chain-item.unlocked { border-color: rgba(34,211,238,0.5); box-shadow: 0 0 14px rgba(34,211,238,0.2); }
.chain-item.unlocked img, .chain-item.unlocked .ci-emoji { filter: none; }
.chain-item.unlocked:hover { transform: scale(1.12); z-index: 2; }
.chain-item.flash { animation: unlockFlash .7s ease; }
@keyframes unlockFlash {
  0% { transform: scale(0.6); box-shadow: 0 0 0 rgba(251,191,36,0); }
  45% { transform: scale(1.25); box-shadow: 0 0 28px rgba(251,191,36,0.85); }
  100% { transform: scale(1); }
}
.chain-item .tip {
  position: absolute; inset: auto 0 0 0;
  font-size: 8px; text-align: center; padding: 2px 1px;
  color: var(--text-dim);
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chain-item:hover .tip { opacity: 1; }

/* ---------- footer ---------- */
.footer {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding-top: 18px;
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: center;
}
.footer a { color: var(--neon-c); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- mobile ---------- */
@media (max-width: 880px) {
  #app { padding: 10px 8px 14px; }
  .topbar { justify-content: center; }
  .layout { flex-direction: column; align-items: center; gap: 12px; }
  .board-col { width: 100%; max-width: 500px; align-items: center; }
  .board-frame { width: 100%; }
  .powerbar { width: 100%; }
  .panel {
    width: 100%; max-width: 500px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .chain-card { grid-column: 1 / -1; }
  .chain { grid-template-columns: repeat(6, 1fr); }
  .score-value { font-size: 28px; }
  .logo-text h1 { font-size: 17px; }
}

/* ---------- чип профиля Telegram ---------- */
.tg-user {
  display: flex; align-items: center; gap: 7px;
  max-width: 150px;
  padding: 5px 11px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  font-size: 12px; font-weight: 700;
  color: var(--text-dim);
}
.tg-user.hidden { display: none; }
.tg-user img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tg-user img.hidden { display: none; }
.tg-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* подсказка управления: клавиатурная на десктопе, пальцевая на тачах */
.hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .hint-desktop { display: none; }
  .hint-touch { display: block; }
}

/* ============ Telegram Mini App ============
   Класс tg-app ставит js/tg.js, когда игра открыта внутри Telegram. Здесь всё, что нужно
   вертикальному телефонному экрану: безопасные зоны, компактная шапка, HUD над полем
   и минус тяжёлые эффекты — на среднем Android каждый blur стоит кадров. */
body.tg-app #app {
  max-width: 560px;
  padding: calc(6px + var(--tg-top, 0px)) calc(8px + var(--tg-right, 0px))
           calc(8px + var(--tg-bottom, 0px)) calc(8px + var(--tg-left, 0px));
}
body.tg-app .fg { display: none; }                 /* парящие подарки — только на большом экране */
body.tg-app .b3 { display: none; }
body.tg-app .blob { filter: blur(60px); opacity: 0.26; }
body.tg-app .card { backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 6px 18px rgba(0,0,0,0.32); }

body.tg-app .topbar { padding: 0 2px 8px; gap: 6px; justify-content: space-between; }
body.tg-app .logo { gap: 8px; min-width: 0; }
body.tg-app .logo-emoji { font-size: 25px; }
body.tg-app .logo-text h1 { font-size: 15px; letter-spacing: 0.5px; }
body.tg-app .logo-text .sub { display: none; }
body.tg-app .topbar-right { gap: 6px; }
body.tg-app .icon-btn { width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
body.tg-app .seg-btn { padding: 6px 9px; font-size: 10.5px; }

/* поле по центру, HUD над ним, цепочка — тонкой лентой */
body.tg-app .layout { flex-direction: column; align-items: center; gap: 8px; }
body.tg-app .board-col { width: 100%; max-width: 520px; align-items: center; gap: 8px; }
body.tg-app .board-frame { width: auto; }
body.tg-app .panel {
  order: -1;
  width: 100%; max-width: 520px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
body.tg-app .card { padding: 9px 12px; border-radius: 14px; }
body.tg-app .score-card { text-align: left; display: flex; flex-direction: column; justify-content: center; }
body.tg-app .score-label { display: none; }
body.tg-app .score-value { font-size: 27px; line-height: 1.05; }
body.tg-app .score-sub { font-size: 11px; }
body.tg-app .portfolio { margin-top: 5px; padding-top: 5px; font-size: 11px; justify-content: flex-start; }
body.tg-app .next-card { display: flex; align-items: center; gap: 9px; }
body.tg-app .next-card .card-title { display: none; }
body.tg-app .next-preview { width: 42px; height: 42px; font-size: 22px; margin: 0; }
body.tg-app .next-name { margin-top: 0; font-size: 10px; max-width: 92px; text-align: left; }
body.tg-app .chain-card { grid-column: 1 / -1; padding: 7px 10px; }
body.tg-app .chain-card .card-title { margin-bottom: 6px; font-size: 9px; letter-spacing: 2px; }
body.tg-app .chain { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
body.tg-app .chain::-webkit-scrollbar { display: none; }
body.tg-app .chain-item { flex: 0 0 auto; width: 27px; height: 27px; border-radius: 9px; font-size: 15px; }
body.tg-app .chain-item .tip { display: none; }

body.tg-app .powerbar { gap: 6px; width: 100%; max-width: 520px; }
body.tg-app .power-btn { padding: 7px 3px 6px; border-radius: 13px; }
body.tg-app .power-btn .p-icon { font-size: 21px; height: 24px; }
body.tg-app .power-btn .p-icon img { width: 24px; height: 24px; }
body.tg-app .power-btn .p-name { font-size: 8px; letter-spacing: 0.4px; }
body.tg-app .power-btn .p-count { min-width: 18px; height: 18px; font-size: 10px; top: -6px; right: -4px; }

body.tg-app .footer { padding-top: 8px; font-size: 10px; gap: 2px; }
body.tg-app .hint-desktop { display: none; }
body.tg-app .hint-touch { display: block; }
body.tg-app .go-title { font-size: 17px; }
body.tg-app .go-emoji { font-size: 52px; }

/* совсем узкие экраны: от чипа профиля оставляем аватар */
@media (max-width: 420px) {
  body.tg-app #tgUserName { display: none; }
  body.tg-app .tg-user { padding: 5px; }
}
