/* ============ Plaivo — стили ============ */
@font-face { font-family: "Unbounded"; src: url("assets/fonts/Unbounded-variable.ttf") format("truetype"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/Manrope-variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
:root {
  --bg: #0b0918;
  --bg-2: #110e24;
  --surface: #17132e;
  --surface-2: #201b3d;
  --surface-3: #2a2450;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f4f2ff;
  --text-2: #b4aed6;
  --text-3: #7b749f;
  --accent: #8b5cff;
  --accent-2: #ff4fb8;
  --grad: linear-gradient(135deg, #8b5cff 0%, #c353ff 50%, #ff4fb8 100%);
  --cyan: #3ce0ff;
  --green: #3ce0a0;
  --gold: #ffc53d;
  --radius: 18px;
  --radius-sm: 12px;
  --tabbar-h: 68px;
  --top-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font-head: "Unbounded", system-ui, sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  min-height: 100vh;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
svg { display: block; }
img { display: block; max-width: 100%; }

.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(600px 380px at 85% -80px, rgba(255, 79, 184, 0.16), transparent 70%),
    radial-gradient(520px 420px at -10% 10%, rgba(139, 92, 255, 0.20), transparent 70%);
}

#app {
  position: relative; z-index: 1;
  max-width: 560px; margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
}

/* ---------- Верхняя панель ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--top-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  background: rgba(11, 9, 24, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.logo { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.logo-mark { width: 32px; height: 32px; filter: drop-shadow(0 4px 14px rgba(160, 80, 255, .45)); }
.logo-text {
  font-family: var(--font-head); font-weight: 800; font-size: 21px; letter-spacing: -0.5px;
  background: linear-gradient(90deg, #fff 30%, #e3c9ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topbar-actions { margin-left: auto; display: flex; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .15s, background .15s;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

/* ---------- Нижняя навигация ---------- */
.tabbar {
  position: fixed; z-index: 30;
  left: 50%; transform: translateX(-50%);
  bottom: calc(10px + var(--safe-b));
  width: calc(100% - 24px); max-width: 536px;
  height: var(--tabbar-h);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px;
  background: rgba(23, 19, 46, 0.82);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 18px; color: var(--text-3);
  font-size: 11px; font-weight: 700;
  transition: color .2s, background .2s;
}
.tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.tab.active { color: #fff; background: rgba(139, 92, 255, .18); }
.tab.active svg { stroke: #d6c2ff; transform: translateY(-1px); }
.tab:active svg { transform: scale(.88); }

/* ---------- Общие блоки ---------- */
#view { padding: 4px 0 0; }
.view-enter { animation: viewIn .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.section { margin-top: 26px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 16px; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -0.3px;
  display: flex; align-items: center; gap: 8px; margin: 0;
}
.section-title .emoji { font-size: 18px; }
.section-link { font-size: 13px; font-weight: 700; color: #b99bff; }
.page-title {
  font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: -0.6px;
  padding: 10px 16px 0; margin: 0;
}
.page-sub { color: var(--text-2); padding: 4px 16px 0; margin: 0; font-size: 14px; }

.hscroll {
  display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 4px;
  scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex-shrink: 0; }

/* ---------- Иконка игры ---------- */
.gicon {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  border-radius: 22%;
  background: var(--g, var(--grad));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 6px 18px rgba(0,0,0,.35);
}
.gicon::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.35), transparent 55%);
  pointer-events: none;
}
.gicon .emo { font-size: 50%; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.gicon img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Слайдер (герой) ---------- */
.hero { padding-top: 6px; }
.hero .hscroll { gap: 12px; }
.hero-card {
  position: relative; overflow: hidden;
  width: calc(100% - 32px); max-width: 500px;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  background: var(--g);
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
.hero-card::before { /* декоративный узор */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("assets/ui/hero-fallback.png") center / cover no-repeat;
  opacity: .58;
}
.hero-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 35%, rgba(8,6,20,.85) 100%);
}
.hero-art {
  position: absolute; right: 6%; top: 8%;
  font-size: 110px; line-height: 1;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.4));
  transform: rotate(-8deg);
  animation: float 5s ease-in-out infinite;
}
.hero-art img { width: 120px; height: 120px; border-radius: 28px; }
@keyframes float { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-8px); } }
.hero-body { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 99px;
  background: rgba(0,0,0,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
}
.hero-title { font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: -0.6px; margin: 8px 0 2px; line-height: 1.1; }
.hero-short { color: rgba(255,255,255,.82); font-size: 14px; margin: 0 0 12px; }
.hero-row { display: flex; align-items: center; gap: 8px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dot { width: 6px; height: 6px; border-radius: 99px; background: var(--surface-3); transition: all .3s; }
.dot.active { width: 20px; background: var(--grad); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 14px;
  font-weight: 800; font-size: 15px;
  transition: transform .15s, filter .15s, background .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(170, 80, 255, .4); }
.btn-white { background: #fff; color: #140f2e; }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--line-2); }
.btn-sm { height: 34px; padding: 0 14px; border-radius: 11px; font-size: 13px; }
.btn-block { width: 100%; height: 52px; font-size: 16px; border-radius: 16px; }
.btn-play svg { fill: currentColor; }
.btn-danger { background: rgba(255, 80, 110, .12); color: #ff8aa0; border: 1px solid rgba(255, 80, 110, .25); }

/* ---------- Жанры (чипсы) ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; font-size: 14px; color: var(--text-2);
  transition: all .18s;
}
.chip:active { transform: scale(.95); }
.chip.active { background: #fff; color: #140f2e; border-color: #fff; }
.chip.sm { height: 32px; font-size: 13px; padding: 0 12px; border-radius: 10px; }

/* ---------- Карточка игры (квадратная) ---------- */
.gcard { width: 128px; cursor: pointer; }
.gcard .gicon { width: 128px; height: 128px; border-radius: 28px; }
.gcard .gicon .emo { font-size: 58px; }
.gcard-title { font-weight: 800; font-size: 14px; margin: 9px 2px 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard-sub { font-size: 12px; color: var(--text-3); margin: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard:active .gicon { transform: scale(.95); }
.gicon { transition: transform .18s; }

.badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: 3px 7px; border-radius: 7px; color: #fff;
}
.badge.hot { background: linear-gradient(135deg, #ff6a3c, #ff2f6b); }
.badge.new { background: linear-gradient(135deg, #3ce0a0, #1aa8ff); color: #04201a; }
.badge.top { background: linear-gradient(135deg, #ffd84d, #ff9a1a); color: #2b1a00; }
.badge.mine { background: rgba(0,0,0,.45); backdrop-filter: blur(6px); }

/* ---------- Сетка ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; padding: 0 16px; }
.grid .gcard { width: auto; }
.grid .gcard .gicon { width: 100%; height: auto; aspect-ratio: 1; }
.grid .gcard .gicon .emo { font-size: clamp(38px, 11vw, 56px); }
@media (min-width: 480px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Топ (нумерованный список) ---------- */
.toplist { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; transition: background .15s, transform .15s;
}
.row:active { transform: scale(.985); background: var(--surface-2); }
.row .num {
  width: 22px; text-align: center; flex-shrink: 0;
  font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--text-3);
}
.row .num.n1 { color: #ffd84d; } .row .num.n2 { color: #d6dcf0; } .row .num.n3 { color: #ffa45c; }
.row .gicon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; }
.row .gicon .emo { font-size: 28px; }
.row-body { flex: 1; min-width: 0; }
.row-title { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.tag {
  font-size: 10.5px; font-weight: 800; letter-spacing: .2px;
  padding: 2px 7px; border-radius: 6px;
  color: var(--c, #fff);
  background: color-mix(in srgb, var(--c, #fff) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #fff) 28%, transparent);
}
.play-mini {
  flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 11px;
  background: rgba(139, 92, 255, .18); color: #d9c8ff; font-weight: 800; font-size: 13px;
  border: 1px solid rgba(139, 92, 255, .35);
}
.play-mini:active { transform: scale(.94); }

/* ---------- Широкая карточка (горизонтальная) ---------- */
.wcard {
  width: 260px; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
}
.wcard-top { position: relative; height: 112px; background: var(--g); overflow: hidden; }
.wcard-top::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(120deg, rgba(255,255,255,.07) 0 2px, transparent 2px 18px);
}
.wcard-top .big { position: absolute; right: 14px; bottom: -10px; font-size: 76px; transform: rotate(-10deg); filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); }
.wcard-top .big img { width: 84px; height: 84px; border-radius: 20px; }
.wcard-body { display: flex; align-items: center; gap: 10px; padding: 12px; }
.wcard-body .row-body { min-width: 0; }

/* ---------- Страница игры ---------- */
.detail-hero {
  position: relative; margin: 0 16px; border-radius: 26px; overflow: hidden;
  padding: 26px 18px 20px; text-align: center;
  background: var(--g); isolation: isolate;
}
.detail-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.3), transparent 50%),
    repeating-linear-gradient(120deg, rgba(255,255,255,.06) 0 2px, transparent 2px 22px);
}
.detail-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 30%, rgba(8,6,20,.7));
}
.detail-hero .gicon { width: 108px; height: 108px; border-radius: 28px; margin: 0 auto; box-shadow: 0 16px 40px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.2); }
.detail-hero .gicon .emo { font-size: 56px; }
.detail-title { font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: -0.6px; margin: 14px 0 4px; }
.detail-short { color: rgba(255,255,255,.85); margin: 0; font-size: 14px; }
.detail-hero .tags { justify-content: center; margin-top: 12px; }
.detail-hero .tag { background: rgba(0,0,0,.3); }

.detail-actions { display: flex; gap: 10px; padding: 16px 16px 0; }
.detail-actions .btn-primary { flex: 1; height: 54px; font-size: 17px; border-radius: 16px; }
.square-btn {
  width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-2);
  transition: transform .15s;
}
.square-btn:active { transform: scale(.92); }
.square-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.square-btn.fav-on svg { fill: #ff4fb8; stroke: #ff4fb8; }
.square-btn.pop { animation: pop .35s; }
@keyframes pop { 40% { transform: scale(1.18); } }

.card {
  margin: 14px 16px 0; padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.card h3 { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .8px; }
.card p { margin: 0; color: var(--text-2); }
.features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.features li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-weight: 600; }
.features li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; border-radius: 7px; margin-top: 1px;
  background: var(--grad) center / 12px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"), var(--grad);
  background-size: 12px, cover; background-position: center; background-repeat: no-repeat;
}
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.info-item .k { font-size: 11.5px; color: var(--text-3); font-weight: 700; }
.info-item .v { font-weight: 800; font-size: 14px; margin-top: 2px; word-break: break-word; }

/* ---------- Поиск ---------- */
.search-box {
  margin: 10px 16px 0; position: relative;
}
.search-box input {
  width: 100%; height: 50px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line-2);
  padding: 0 44px 0 46px; font-size: 16px; font-weight: 600; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { border-color: rgba(139, 92, 255, .6); box-shadow: 0 0 0 4px rgba(139, 92, 255, .15); }
.search-box input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.search-box input::placeholder { color: var(--text-3); }
.search-box .s-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; }
.search-box .s-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--text-3); font-size: 18px; }
.filter-label { font-size: 12px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .8px; padding: 0 16px; margin: 18px 0 8px; }
.result-count { padding: 0 16px; margin: 20px 0 10px; color: var(--text-2); font-size: 13px; font-weight: 700; }

/* ---------- Пустое состояние ---------- */
.empty { text-align: center; padding: 50px 30px 20px; }
.empty .e-ico { font-size: 58px; margin-bottom: 10px; }
.empty h3 { font-family: var(--font-head); font-size: 18px; margin: 0 0 6px; }
.empty p { color: var(--text-2); margin: 0 0 18px; font-size: 14px; }

/* ---------- Профиль ---------- */
.profile-head {
  margin: 10px 16px 0; padding: 20px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(139, 92, 255, .28), rgba(255, 79, 184, .16)), var(--surface);
  border: 1px solid rgba(190, 140, 255, .25);
  display: flex; align-items: center; gap: 14px;
}
.avatar {
  width: 64px; height: 64px; border-radius: 22px; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; background: var(--grad);
  font-family: var(--font-head); font-weight: 800; font-size: 26px;
  box-shadow: 0 8px 24px rgba(160, 80, 255, .4);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.p-name { font-family: var(--font-head); font-weight: 700; font-size: 19px; margin: 0; }
.p-user { color: var(--text-2); font-size: 13px; margin: 2px 0 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 16px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px; text-align: center; }
.stat .n { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.stat .l { font-size: 12px; color: var(--text-3); font-weight: 700; }
.menu { margin: 14px 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; font-weight: 700; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item:active { background: var(--surface-2); }
.menu-item .mi-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; background: var(--surface-2); flex-shrink: 0; }
.menu-item .mi-arrow { margin-left: auto; color: var(--text-3); }
.menu-item .mi-sub { display: block; font-size: 12px; color: var(--text-3); font-weight: 600; }

/* ---------- Форма добавления ---------- */
.form { padding: 0 16px; }
.field { margin-top: 18px; }
.field label { display: block; font-size: 13px; font-weight: 800; color: var(--text-2); margin-bottom: 7px; }
.field label .req { color: var(--accent-2); }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.field .err { font-size: 12px; color: #ff7a93; margin-top: 6px; font-weight: 700; display: none; }
.field.invalid .err { display: block; }
.field.invalid .input { border-color: rgba(255, 90, 120, .6); }
.input {
  width: 100%; min-height: 50px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2);
  padding: 13px 14px; font-size: 15px; font-weight: 600; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { resize: vertical; min-height: 92px; line-height: 1.45; }
.input:focus { border-color: rgba(139, 92, 255, .6); box-shadow: 0 0 0 4px rgba(139, 92, 255, .15); }
.input::placeholder { color: var(--text-3); font-weight: 500; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-picker { display: flex; gap: 10px; align-items: center; }
.icon-picker .gicon { width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0; }
.icon-picker .gicon .emo { font-size: 32px; }
.emoji-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.emoji-opt { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 20px; display: grid; place-items: center; }
.emoji-opt.active { border-color: var(--accent); background: rgba(139, 92, 255, .2); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 40px; height: 40px; border-radius: 12px; background: var(--g); border: 2px solid transparent; position: relative; }
.swatch.active { border-color: #fff; box-shadow: 0 0 0 3px rgba(139, 92, 255, .5); }
.upload-btn { position: relative; overflow: hidden; }
.field label.btn { display: inline-flex; color: var(--text); font-size: 13px; margin: 0; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.preview-box { margin: 22px 16px 0; padding: 16px; border-radius: 20px; background: var(--bg-2); border: 1px dashed var(--line-2); }
.preview-box h3 { margin: 0 0 12px; font-size: 12px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .8px; }
.preview-box .row { background: var(--surface); }
.form-actions { padding: 20px 16px 10px; }

/* ---------- Тост ---------- */
.toast {
  position: fixed; left: 50%; z-index: 100;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #fff; color: #140f2e; font-weight: 800; font-size: 14px;
  padding: 12px 18px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: all .25s cubic-bezier(.2, .8, .2, 1);
  max-width: calc(100% - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Скелетон / мелочи ---------- */
.divider { height: 1px; background: var(--line); margin: 26px 16px 0; }
.footer-note { text-align: center; color: var(--text-3); font-size: 12px; padding: 26px 16px 6px; }
.footer-note b { color: var(--text-2); }
.dev-footer { padding-top: 5px; }
.dev-entry { color: var(--text-2); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; padding: 8px 12px; }
.dev-entry:hover, .dev-entry:focus-visible { color: var(--cyan); }

/* ---------- Пустой каталог ---------- */
.catalog-empty { text-align: center; padding: 40px 24px 10px; }
.ce-art {
  width: 132px; height: 132px; margin: 0 auto 22px; border-radius: 38px;
  display: grid; place-items: center; font-size: 66px;
  background: var(--grad); box-shadow: 0 20px 50px rgba(170, 80, 255, .45), inset 0 0 0 1px rgba(255,255,255,.2);
  animation: float 5s ease-in-out infinite;
}
.ce-title { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: -0.5px; margin: 0 0 8px; }
.ce-text { color: var(--text-2); margin: 0 auto 22px; max-width: 320px; font-size: 14.5px; }
.ce-genres { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; opacity: .7; }
.ce-genres .chip { pointer-events: none; }

/* =====================================================================
   v0.2 — новые компоненты
   ===================================================================== */
.admin-only { display: none !important; }
body.is-admin .admin-only { display: grid !important; }
.center { text-align: center; }
.pre { white-space: pre-line; }
.chips-wrap { margin-top: 20px; }

/* иконки жанров в чипах */
.chip .gi { width: 20px; height: 20px; object-fit: contain; }
.chip .gi-emo { font-size: 15px; }

/* значок ▶ «играть тут» на иконке web-игры */
.gicon .ph {
  position: absolute; right: 6%; bottom: 6%; z-index: 2;
  width: 26%; height: 26%; min-width: 16px; min-height: 16px; max-width: 30px; max-height: 30px;
  border-radius: 50%; display: grid; place-items: center;
  background: #3ce0a0; box-shadow: 0 2px 8px rgba(0,0,0,.35), 0 0 0 2px rgba(11,9,24,.55);
}
.gicon .ph svg { width: 58%; height: 58%; fill: #06231a; margin-left: 8%; }
.gicon.sm { width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; }
.gicon.sm .emo { font-size: 22px; }
.gicon.sm .ph, .gicon.xs .ph { display: none; }
.gicon.xs { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; }
.gicon.xs .emo { font-size: 15px; }
.gcard-art { position: relative; }

.badge.promo { background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); }
.badge.draft { background: #ffc53d; color: #2b1a00; }
.mini-promo { font-size: 10px; font-weight: 800; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; vertical-align: middle; margin-left: 4px; }
.tags.inline { margin: 0; }
.tags.center { justify-content: center; margin-top: 12px; }

/* обложки */
.wcard-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-cover, .detail-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-card.has-cover .hero-art { display: none; }
.hero-card.has-cover::before { opacity: 0; }
.hero-art .gicon.hero-icon { width: 120px; height: 120px; border-radius: 30px; }
.hero-art .gicon.hero-icon .emo { font-size: 62px; }
.hero-art .gicon .ph { display: none; }
.detail-hero .gicon.detail-icon { width: 108px; height: 108px; border-radius: 28px; margin: 0 auto; }
.detail-hero .gicon.detail-icon .emo { font-size: 56px; }
.detail-promo { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 7px; background: rgba(0,0,0,.4); }

/* маскот / иллюстрации */
.art { width: 170px; height: 170px; margin: 0 auto 14px; display: grid; place-items: center; }
.art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 30px rgba(140, 80, 255, .35)); }
.art.art-fallback {
  width: 120px; height: 120px; border-radius: 36px; background: var(--grad);
  box-shadow: 0 20px 50px rgba(170, 80, 255, .45), inset 0 0 0 1px rgba(255,255,255,.2);
  font-size: 58px; animation: float 5s ease-in-out infinite;
}
.empty .art { margin-bottom: 18px; }
.ce-genres { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 20px 0; opacity: .65; }
.ce-genres .chip { pointer-events: none; }
/* ---------- Оверлеи (плеер, запуск, шторка) ---------- */
body.ov-open { overflow: hidden; }
body.ov-open .tabbar { opacity: 0; pointer-events: none; }
.ov { position: fixed; inset: 0; z-index: 60; opacity: 0; transition: opacity .25s, transform .25s; }
.ov.show { opacity: 1; }
.ov.player { background: #000; transform: translateY(24px); display: flex; flex-direction: column; }
.ov.player.show { transform: none; }
.pl-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  height: calc(48px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 8px 0;
  display: flex; align-items: center; gap: 8px;
  background: rgba(11, 9, 24, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); transition: transform .3s;
}
.pl-bar.hide { transform: translateY(-100%); }
.pl-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.pl-btn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-btn[data-pl="menu"] svg { fill: #fff; stroke: none; }
.pl-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-weight: 800; }
.pl-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-tab { position: absolute; top: env(safe-area-inset-top, 0px); left: 50%; transform: translateX(-50%); z-index: 4; width: 64px; height: 18px; }
.pl-tab::after { content: ""; position: absolute; left: 16px; right: 16px; top: 6px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); }
.pl-stage { flex: 1; display: grid; place-items: center; padding-top: calc(48px + env(safe-area-inset-top, 0px)); min-height: 0; }
.pl-wrap { max-width: 100%; max-height: 100%; height: 100%; background: #000; }
.pl-wrap.fill { width: 100%; height: 100%; }
.pl-frame { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.pl-loader {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: radial-gradient(circle at 50% 40%, #1c1640, #0b0918 70%); transition: opacity .3s;
}
.pl-loader.done { opacity: 0; }
.pl-loader-icon .gicon, .launch-icon .gicon { width: 110px; height: 110px; border-radius: 30px; animation: pulse 1.2s ease-in-out infinite; }
.pl-loader-icon .gicon .emo, .launch-icon .gicon .emo { font-size: 56px; }
.pl-loader-text { font-weight: 800; color: var(--text-2); }
@keyframes pulse { 50% { transform: scale(1.06); } }
.launch-bar { width: 180px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; }
.launch-bar i { display: block; height: 100%; width: 40%; border-radius: 5px; background: var(--grad); animation: bar 1.4s ease-in-out infinite; }
@keyframes bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
.pl-cover {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px; background: rgba(11, 9, 24, .96);
}
.pl-cover h3 { font-family: var(--font-head); margin: 6px 0; font-size: 19px; }
.pl-cover p { color: var(--text-2); margin: 0 0 18px; }
.rot-ico { font-size: 64px; animation: rot 1.8s ease-in-out infinite; }
@keyframes rot { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
.pl-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pl-menu {
  position: absolute; z-index: 6; right: 10px; top: calc(54px + env(safe-area-inset-top, 0px));
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); min-width: 220px;
}
.pl-menu button { display: block; width: 100%; text-align: left; padding: 13px 16px; font-weight: 700; border-bottom: 1px solid var(--line); }
.pl-menu button:last-child { border-bottom: 0; }
.pl-menu button:active { background: var(--surface-2); }

.ov.launch { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg); overflow: hidden; }
.launch-bg { position: absolute; inset: -20%; background: linear-gradient(rgba(11,9,24,.25), rgba(11,9,24,.58)), url("assets/ui/launch-bg.png") center / cover no-repeat; opacity: .8; animation: pulse-bg 4s ease-in-out infinite; }
@keyframes pulse-bg { 50% { transform: scale(1.06); opacity: .95; } }
@keyframes spin { to { transform: rotate(360deg); } }
.launch-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 20px; text-align: center; }
.launch-title { font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.launch-note { position: absolute; left: 24px; right: 24px; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 12px; color: var(--text-2); line-height: 1.5; }

.ov.sheet { z-index: 55; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.sheet-panel {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 30px); width: 100%; max-width: 560px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 26px 26px 0 0;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px)); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.ov.sheet.show .sheet-panel { transform: translate(-50%, 0); }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--surface-3); margin: 0 auto 14px; }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head .gicon { width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0; }
.sheet-head .gicon .emo { font-size: 26px; }
.sheet-q { flex: 1; font-weight: 800; font-size: 16px; }
.sheet-sub { font-size: 12px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .8px; margin: 18px 0 10px; }
.sheet-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.sheet-games .gcard { width: auto; }
.sheet-games .gcard .gicon { width: 100%; height: auto; aspect-ratio: 1; }
.sheet-games .gcard .gicon .emo { font-size: 40px; }
.sheet-panel > .pl-row { margin-top: 18px; }
.sheet-panel > .pl-row .btn { flex: 1; }

/* демо-реклама */
.ad-demo { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0,0,0,.85); opacity: 0; transition: opacity .25s; }
.ad-demo.show { opacity: 1; }
.ad-demo-box { position: relative; width: min(320px, 86vw); padding: 30px 20px 20px; border-radius: 22px; text-align: center; background: var(--surface); border: 1px dashed var(--line-2); }
.ad-demo-art { font-size: 60px; }
.ad-demo-box p { color: var(--text-2); font-weight: 700; }
.ad-label { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: #ffc53d; color: #2b1a00; }
.ad-demo-bar { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin: 14px 0; }
.ad-demo-bar i { display: block; height: 100%; width: 0; background: var(--grad); animation: adbar 3s linear forwards; }
@keyframes adbar { to { width: 100%; } }
.ad-skip:disabled { opacity: .6; }

/* ---------- Профиль v0.2 ---------- */
.p-main { flex: 1; min-width: 0; }
.xp { margin-top: 10px; }
.xp-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-bottom: 5px; }
.xp-top b { color: var(--text); }
.xp-bar { height: 7px; border-radius: 7px; background: rgba(255,255,255,.1); overflow: hidden; }
.xp-bar i { display: block; height: 100%; border-radius: 7px; background: var(--grad); box-shadow: 0 0 12px rgba(255, 79, 184, .6); }
.streak-card { margin: 12px 16px 0; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.streak-fire { font-size: 22px; }
.streak-text { font-weight: 800; flex: 1; }
.streak-dots { display: flex; gap: 5px; }
.streak-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.streak-dots i.on { background: linear-gradient(135deg, #ffc53d, #ff5c3c); box-shadow: 0 0 8px rgba(255, 120, 60, .7); }
.menu-item .mi-text { flex: 1; min-width: 0; }
.menu-item .mi-check { color: #b99bff; font-weight: 800; font-size: 18px; }
.menu-item:disabled { opacity: .55; }
.devs-hero { margin: 10px 16px 0; min-height: 180px; border-radius: 20px; background: url("assets/ui/promo-devs.png") center / cover no-repeat; display: grid; place-items: end center; }
.devs-hero .art { display: none; }

/* ---------- Онбординг и согласие ---------- */
.onb {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  background: radial-gradient(600px 400px at 50% 0%, rgba(139, 92, 255, .3), transparent 70%), var(--bg);
  padding: calc(20px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
  opacity: 0; transition: opacity .3s;
}
.onb.show { opacity: 1; }
.onb-skip { align-self: flex-end; color: var(--text-3); font-weight: 700; padding: 8px; }
.onb-slide { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; animation: viewIn .35s cubic-bezier(.2,.8,.2,1); max-width: 420px; margin: 0 auto; }
.onb-slide .art { width: 220px; height: 220px; margin-bottom: 26px; }
.onb-slide .art.art-fallback { width: 150px; height: 150px; font-size: 76px; border-radius: 44px; }
.onb-slide h2 { font-family: var(--font-head); font-weight: 800; font-size: 25px; letter-spacing: -0.5px; margin: 0 0 10px; }
.onb-slide p { color: var(--text-2); margin: 0; font-size: 15.5px; }
.onb-foot { max-width: 420px; width: 100%; margin: 0 auto; }
.onb-foot .dots { margin: 0 0 18px; }
.consent {
  position: fixed; z-index: 70; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 20px); transform: translate(-50%, 20px);
  width: calc(100% - 24px); max-width: 536px; padding: 14px; border-radius: 18px;
  background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 14px 40px rgba(0,0,0,.5);
  opacity: 0; transition: all .3s;
}
.consent.show { opacity: 1; transform: translate(-50%, 0); }
.consent p { margin: 0 0 10px; font-size: 13px; color: var(--text-2); }
.consent .pl-row { justify-content: flex-end; }

@media (prefers-reduced-motion: reduce) {
  .hero-art, .art.art-fallback, .launch-bg, .pl-loader-icon .gicon, .launch-icon .gicon { animation: none !important; }
}

/* ---------- Админка ---------- */
.adm-bar { margin: 14px 16px 0; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.adm-bar.warn { border-color: rgba(255, 197, 61, .45); background: rgba(255, 197, 61, .08); }
.adm-bar-text { flex: 1; min-width: 160px; font-size: 13.5px; color: var(--text-2); }
.adm-bar-text b { color: #ffc53d; }
.adm-bar-btns { display: flex; gap: 8px; }
.btn:disabled { opacity: .45; pointer-events: none; }
.adm-tabs { margin-top: 14px; }
.adm-tools { display: flex; gap: 10px; padding: 16px 16px 0; align-items: center; }
.adm-tools .btn { flex-shrink: 0; }
.adm-search { margin: 0; flex: 1; }
.adm-search input { height: 44px; padding: 0 14px; font-size: 14px; }
.adm-row .row-sub { white-space: normal; }
.adm-move { display: flex; flex-direction: column; gap: 4px; }
.adm-move button { width: 34px; height: 28px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 11px; }
.adm-section { margin: 28px 0 0; font-size: 12px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; border-top: 1px solid var(--line); padding-top: 18px; }
.lang-pill { display: inline-block; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 5px; background: var(--surface-3); color: var(--text-2); vertical-align: middle; }
details.tr { margin-top: 8px; }
details.tr summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: #b99bff; list-style: none; }
details.tr summary::-webkit-details-marker { display: none; }
.tr-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.tr-row .lang-pill { margin-top: 16px; flex-shrink: 0; width: 30px; text-align: center; }
.tr-row .input { flex: 1; }
.cover-prev { width: 112px; height: 63px; border-radius: 12px; overflow: hidden; background: var(--g); flex-shrink: 0; }
.cover-prev img { width: 100%; height: 100%; object-fit: cover; }
.color-in { width: 48px; height: 40px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); padding: 3px; cursor: pointer; }
.swatch-prev { width: 80px; height: 40px; border-radius: 12px; background: var(--g); }
.adm-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.adm-inline .check { grid-column: 1 / -1; }
.adm-inline label .input { margin-top: 7px; }
.adm-inline > * { min-width: 0; }
.adm-inline .input { width: 100%; min-width: 0; }
@media (max-width: 360px) { .adm-inline { grid-template-columns: 1fr; } }
.check { display: flex !important; align-items: center; gap: 10px; cursor: pointer; color: var(--text) !important; font-size: 14px !important; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.web-prev { position: relative; margin-top: 12px; width: 180px; height: 320px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #000; }
.web-prev iframe { width: 100%; height: 100%; border: 0; }
.web-prev span { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 5px; background: rgba(0,0,0,.6); }
.adm-prev-grid { display: flex; gap: 14px; align-items: center; pointer-events: none; }
.adm-prev-sq { width: 110px; flex-shrink: 0; }
.adm-prev-sq .gcard { width: 110px; }
.adm-prev-sq .gcard .gicon { width: 110px; height: 110px; border-radius: 26px; }
.adm-prev-row { flex: 1; min-width: 0; }
.adm-actions .pl-row .btn { flex: 1; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }
/* Админка: фиды и подборки */
.hint { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.feed-btns { justify-content: flex-start; flex-wrap: wrap; margin-top: 12px; }
.feed-items { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; }
.feed-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; min-width: 0; }
.feed-item input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--accent); }
.feed-item.off { opacity: .5; cursor: default; }
.feed-item .fi-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.fi-body { display: flex; flex-direction: column; min-width: 0; }
.fi-body b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-body small { font-size: 12px; color: var(--text-3); }
.col-emo { width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0; font-size: 56px; }
.col-row { cursor: default; }
.col-btns { flex-direction: row; }
.col-btns button { width: 30px; }
.col-row .gicon { width: 44px; height: 44px; flex-shrink: 0; }
.col-row { gap: 10px; padding: 8px; }
@media (max-width: 420px) { .adm-prev-grid { flex-direction: column; align-items: stretch; } .adm-prev-sq { align-self: center; } }
.hero-card:not(.has-cover) .hero-title, .hero-card:not(.has-cover) .hero-short { max-width: 62%; }
body.ov-open .toast { bottom: auto; top: calc(64px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -20px); }
body.ov-open .toast.show { transform: translate(-50%, 0); }
