/* Тёмная фирменная тема (вариант B). Цвета не зависят от темы Телеграма. */
:root {
  color-scheme: dark;
  --bg: #0e0f13;
  --text: #f2f3f7;
  --hint: #a3a8b5;
  --card: #17191f;
  --card-2: #1b1d24;
  --btn: #c8f65a;
  --btn-text: #0e0f13;
  --line: #2a2d36;
  --ok: #4ade80;
  --pre: #f59e0b;
  --out: #6b7280;
  --err: #ff6b8a;
  --rare: #b794ff;
  --radius: 20px;
  --head: 'Unbounded', 'Manrope', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.4 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
  min-height: 100vh;
}
body.lock {
  overflow: hidden;
}
html:not(.in-tg) body {
  padding-bottom: 88px; /* место под нижнюю кнопку вне Телеграма */
}

#app {
  max-width: 920px;
  margin: 0 auto;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
input,
textarea {
  font: inherit;
  color: var(--text);
}

/* ---------- шапка ---------- */
.sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
}
.top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 8px;
}
.top.row {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--card);
}
.search {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  padding: 10px 14px;
  outline: none;
}
.search::placeholder {
  color: var(--hint);
}
.back {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--card);
  font-size: 18px;
}
.in-tg .back {
  display: none;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 14px 12px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  white-space: nowrap;
}
.chip.on {
  background: var(--btn);
  color: var(--btn-text);
}

/* ---------- каталог ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 14px 20px;
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  padding: 8px;
  gap: 8px;
  cursor: pointer;
}
.card .info {
  flex: 1;
  padding: 0 4px;
}
.name {
  font-size: 14px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.price {
  margin-top: 4px;
  font-weight: 700;
}
.price s {
  margin-left: 6px;
  font-weight: 400;
  font-size: 13px;
  color: var(--hint);
}
.price.lg {
  font-size: 22px;
  margin: 6px 0 12px;
}

.ph {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, hsl(var(--h) 72% 58%), hsl(calc(var(--h) + 45) 70% 46%));
}
.ph.big {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}
.ph.big .ph-fallback {
  font-size: 56px;
}
.ph.sm {
  width: 64px;
  flex: none;
  border-radius: 12px;
}
.ph.sm .ph-fallback {
  font-size: 18px;
}

.badge {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.badge.inline {
  position: static;
  display: inline-block;
}
.badge.ok {
  background: var(--ok);
  color: #0e0f13;
}
.badge.pre {
  background: var(--pre);
}
.badge.out {
  background: var(--out);
}

.btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--btn);
  color: var(--btn-text);
  font-weight: 600;
  text-align: center;
}
.btn.ghost {
  background: var(--card);
  color: var(--hint);
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.card .btn {
  padding: 8px 10px;
  font-size: 14px;
}
.ctl.big .btn,
.ctl.big .step {
  padding-top: 13px;
  padding-bottom: 13px;
}

.step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.step button {
  width: 42px;
  height: 36px;
  font-size: 20px;
  line-height: 1;
}
.step span {
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

/* ---------- карточка товара ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.45);
}
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  max-width: 920px;
  margin: 0 auto;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 22px 22px 0 0;
  animation: up 0.2s ease-out;
}
@keyframes up {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
}
.sheet .x {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.sheet .body {
  padding: 16px 16px 20px;
}
html:not(.in-tg) .sheet .body {
  padding-bottom: 104px;
}
.sheet h2 {
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.25;
}
.lbl {
  margin: 4px 0 8px;
  font-size: 13px;
  color: var(--hint);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tags span {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
}
.desc {
  margin: 0 0 12px;
  white-space: pre-line;
}
.hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--hint);
}

/* ---------- корзина ---------- */
.list {
  padding: 6px 14px;
}
.line {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.line .mid {
  flex: 1;
  min-width: 0;
}
.line .name {
  -webkit-line-clamp: 2;
}
.line .sub {
  margin-top: 2px;
  font-size: 13px;
  color: var(--hint);
}
.line .step {
  width: 112px;
  flex: none;
}
.sum {
  padding: 14px;
}
.sum div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: var(--hint);
}
.sum .tot {
  color: var(--text);
  font-size: 19px;
}
.note {
  margin: 0;
  padding: 0 14px 16px;
  font-size: 13px;
  color: var(--hint);
}

/* ---------- форма ---------- */
.form {
  display: grid;
  gap: 14px;
  padding: 14px 14px 24px;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--hint);
}
.form input:not([type='checkbox']),
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 11px 13px;
  outline: none;
  resize: vertical;
  font-size: 16px; /* не даёт iOS приближать страницу при фокусе */
}
.form input:focus,
.form textarea:focus {
  border-color: var(--btn);
}
.form small {
  line-height: 1.35;
}
.form .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  font-size: 14px;
}
.form .check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--btn);
}
.summary {
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
}
.err {
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(214, 51, 108, 0.12);
  color: var(--err);
  font-size: 14px;
}

/* ---------- заявка принята ---------- */
.done {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 24px;
}
.done .inner {
  width: 100%;
  max-width: 420px;
  text-align: center;
  display: grid;
  gap: 12px;
}
.tick {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--btn);
  color: var(--btn-text);
  font-size: 40px;
  line-height: 72px;
  animation: pop 0.35s ease-out;
}
@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}
.done h2 {
  margin: 6px 0 0;
  font-size: 22px;
}
.done p {
  margin: 0;
  color: var(--hint);
}
.msg {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--card);
  text-align: left;
  white-space: pre-wrap;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- прочее ---------- */
.empty {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 60px 24px;
  text-align: center;
  color: var(--hint);
}
.empty.wide {
  grid-column: 1 / -1;
  padding: 40px 0;
}
.empty .btn {
  width: auto;
  padding-left: 28px;
  padding-right: 28px;
}
.empty .big {
  font-size: 44px;
}
.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--btn);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Нижняя кнопка вне Телеграма (в Телеграме вместо неё родная MainButton). */
#bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
}
#bar[hidden] {
  display: none;
}
#barBtn {
  display: block;
  width: 100%;
  max-width: 892px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 14px;
  background: var(--btn);
  color: var(--btn-text);
  font-weight: 700;
  font-size: 16px;
}
#barBtn:disabled {
  opacity: 0.55;
}
.demo-flag {
  margin: 0 14px 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(217, 119, 6, 0.14);
  color: var(--pre);
  font-size: 12px;
}

/* ---------- фигурки внутри серии ---------- */
.vlist {
  margin: 0 0 14px;
  border-radius: 14px;
  background: var(--card);
  padding: 2px 12px;
}
.vrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.vrow:last-child {
  border-bottom: 0;
}
.vrow.off {
  opacity: 0.55;
}
.vinfo {
  flex: 1;
  min-width: 0;
}
.vname {
  font-weight: 600;
  word-break: break-word;
}
.vprice {
  margin-top: 1px;
  font-size: 13px;
  color: var(--hint);
}
.vctl {
  flex: none;
  width: 112px;
}
.vctl .btn {
  padding: 8px 10px;
  font-size: 14px;
}
.vout {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--hint);
}
.btn.soft {
  background: var(--bg);
  color: var(--btn);
  box-shadow: inset 0 0 0 1.5px var(--btn);
}
.line .pick {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- окно при входе ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
}
.modal-card {
  width: 100%;
  max-width: 400px;
  padding: 24px 20px 20px;
  border-radius: 22px;
  background: var(--bg);
  text-align: center;
  animation: pop 0.25s ease-out;
}
.modal-icon {
  font-size: 40px;
  line-height: 1;
}
.modal-card h2 {
  margin: 12px 0 8px;
  font-size: 20px;
}
.modal-card p {
  margin: 0 0 18px;
  color: var(--hint);
  line-height: 1.45;
}
.modal-card .btn {
  padding: 13px;
}

/* ---------- мои заказы и отслеживание ---------- */
.icon-btn {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--card);
  font-size: 19px;
}
a.btn {
  text-decoration: none;
}
.tracker {
  margin: 12px 14px 4px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card);
}
.tracker .lbl {
  margin-top: 0;
}
.tracker small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--hint);
}
.track-row {
  display: flex;
  gap: 8px;
}
.track-row .search {
  background: var(--bg);
  font-size: 16px;
  text-transform: uppercase;
}
.track-row .btn {
  width: auto;
  flex: none;
}
.order {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}
.order .sub {
  margin-top: 2px;
  font-size: 13px;
  color: var(--hint);
}
.order-items {
  margin: 8px 0;
  padding-left: 18px;
  font-size: 14px;
}
.ostatus {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--card);
  color: var(--hint);
}
.ostatus.in_work {
  background: rgba(217, 119, 6, 0.14);
  color: var(--pre);
}
.ostatus.shipped {
  background: rgba(31, 157, 85, 0.14);
  color: var(--ok);
}
.track {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
}
.track .lbl {
  margin: 0 0 2px;
}
.track code {
  font: 600 16px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.5px;
}
.track-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.track-btns .btn.ghost {
  background: var(--bg);
  color: var(--text);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 80;
  max-width: 90vw;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(20, 20, 24, 0.92);
  color: #fff;
  font-size: 14px;
  text-align: center;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.track-row .search::placeholder {
  text-transform: none;
}

.vpn-note {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(217, 119, 6, 0.14);
  color: var(--pre);
  font-size: 13px;
  line-height: 1.35;
}
.vpn-small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--hint);
}

/* ---------- галерея, фото фигурок, просмотр фото ---------- */
.gal {
  position: relative;
}
.gal-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gal-track::-webkit-scrollbar {
  display: none;
}
.gal-track .ph.big {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.gal-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.gal-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}
.gal-dots i.on {
  background: #fff;
}
.ph.big {
  background: #fff;
}
.ph.big img {
  object-fit: contain;
}
[data-zoom] {
  cursor: zoom-in;
}
.vthumb {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.vthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zoom {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
}
.zoom img {
  max-width: 100vw;
  max-height: 86vh;
  object-fit: contain;
}
.zoom-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(18px + env(safe-area-inset-bottom));
  color: #fff;
  text-align: center;
  font-weight: 600;
}
.zoom .x {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}
.desc.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.more {
  margin: -6px 0 12px;
  color: var(--btn);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- избранное ---------- */
.icon-btn {
  position: relative;
  font-size: 18px;
}
.icon-btn .dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--err);
  color: #fff;
  font: 700 11px/18px -apple-system, sans-serif;
  font-style: normal;
}
.fav {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(14, 15, 19, 0.72);
  color: #fff;
  font-size: 18px;
  line-height: 32px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.fav.on {
  color: var(--err);
}
.fav.big {
  position: static;
  width: 38px;
  height: 38px;
  line-height: 38px;
  font-size: 22px;
  background: var(--card);
  box-shadow: none;
}
.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn.share {
  width: auto;
  margin: 12px 14px 4px;
  width: calc(100% - 28px);
}
.note.center {
  text-align: center;
  padding-top: 8px;
}

/* ---------- оригинал ---------- */
.orig {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 8px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 157, 85, 0.12);
  color: var(--ok);
  font-size: 13px;
  font-weight: 700;
}
.orig span {
  font-weight: 500;
  text-decoration: underline;
}
.modal-card.guide {
  text-align: left;
  max-height: 88vh;
  overflow-y: auto;
}
.modal-card.guide h2,
.modal-card.guide .modal-icon {
  text-align: center;
}
.modal-card.guide ol {
  margin: 0 0 14px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
}
.modal-card.guide code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--card);
  font-size: 13px;
}
.modal-card.guide .small {
  font-size: 13px;
}

/* ---------- коллекция ---------- */
.have {
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--hint);
  font-size: 12px;
  font-weight: 600;
}
.have.on {
  border-color: transparent;
  background: rgba(31, 157, 85, 0.14);
  color: var(--ok);
}
.coll {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card);
  display: grid;
  gap: 8px;
}
.coll-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.coll small {
  font-size: 12px;
  color: var(--hint);
}
.coll-done {
  font-weight: 700;
  color: var(--ok);
}
.bar {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--btn), var(--ok));
}
.coll .btn.soft {
  padding: 10px;
  background: var(--bg);
}
.coll-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.coll-row .mid {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 5px;
}
.coll-row .name {
  -webkit-line-clamp: 2;
}
.coll-row .sub {
  font-size: 13px;
  color: var(--hint);
}
.lbl.pad {
  margin: 14px 14px 0;
}

/* ---------- профиль и уровни ---------- */
.level {
  margin: 12px 14px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(47, 111, 237, 0.12), rgba(31, 157, 85, 0.12));
}
.level-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.level-head .lbl {
  margin: 0;
}
.level-icon {
  font-size: 34px;
}
.level-name {
  font-size: 19px;
  font-weight: 800;
}
.level-steps {
  display: flex;
  gap: 4px;
  margin: 14px 0 10px;
}
.lv {
  flex: 1;
  padding: 7px 4px;
  border-radius: 10px;
  background: var(--bg);
  text-align: center;
  font-size: 11px;
  color: var(--hint);
  display: grid;
  gap: 1px;
}
.lv b {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lv.lv-on {
  color: var(--text);
}
.lv.lv-cur {
  background: var(--btn);
  color: var(--btn-text);
}
.level-next {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.4;
}
.level small {
  font-size: 12px;
  color: var(--hint);
}
.menu {
  margin: 4px 14px 20px;
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
}
.menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.menu button:last-child {
  border-bottom: 0;
}
.menu span {
  width: 24px;
  text-align: center;
  font-size: 18px;
}
.menu em {
  margin-left: auto;
  font-style: normal;
  color: var(--hint);
  font-size: 14px;
}
.menu i {
  font-style: normal;
  color: var(--hint);
  font-size: 20px;
}
.sum .disc {
  color: var(--ok);
}
.sdisc {
  font-weight: 500;
  font-size: 13px;
  color: var(--ok);
}
.lvl-note {
  padding-top: 0;
}

.odds {
  white-space: nowrap;
}
.odds.rare {
  color: var(--rare);
  font-weight: 700;
}
.odds-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border-left: 4px solid #a855f7;
  background: rgba(183, 148, 255, 0.12);
  color: #d7c4ff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.odds-note b {
  font-size: 16px;
  line-height: 1.1;
}


.pay-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 14px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border-left: 4px solid var(--btn);
  background: rgba(200, 246, 90, 0.1);
  color: #e4ffa0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.pay-note b {
  font-size: 17px;
  line-height: 1.2;
}

/* =================== вариант B: главный экран =================== */
h1, h2, .brand, .sheet h2, .done h2, .modal-card h2, .level-name, .hero-name, .hello-name, .page-title {
  font-family: var(--head);
}
.demo-flag {
  background: rgba(245, 158, 11, 0.14);
}
.hello {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
}
.avatar {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--btn);
  color: var(--btn-text);
  font: 800 18px/46px var(--head);
}
.hello-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.kicker {
  font: 800 11px var(--head);
  letter-spacing: 1px;
  color: var(--hint);
}
.hello-name {
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hello-btns {
  display: flex;
  gap: 8px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  display: grid;
  place-items: center;
}
.icon-btn .dot.lime {
  background: var(--btn);
  color: var(--btn-text);
}

.lvl-card {
  display: grid;
  gap: 10px;
  width: calc(100% - 32px);
  margin: 0 16px 12px;
  padding: 14px 16px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: left;
}
.lvl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.lvl-txt {
  display: grid;
  gap: 2px;
}
.lvl-txt .lbl {
  margin: 0;
  font-size: 12px;
}
.lvl-txt b {
  font: 800 18px var(--head);
}
.lvl-disc {
  flex: none;
  padding: 7px 12px;
  border-radius: 12px;
  background: var(--btn);
  color: var(--btn-text);
  font-size: 14px;
  font-weight: 800;
}
.lvl-next {
  font-size: 13px;
  color: #c9ccd6;
}
.bar {
  background: var(--line);
}
.bar i {
  background: var(--btn);
}

.hero {
  position: relative;
  margin: 0 16px;
  height: 400px;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px 18px;
  background: rgba(14, 15, 19, 0.88);
  display: grid;
  gap: 8px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.tag.lime {
  background: var(--btn);
  color: var(--btn-text);
}
.tag.rare {
  border: 1px solid var(--rare);
  color: #d7c4ff;
  font-weight: 700;
}
.hero-name {
  margin: 0;
  font-size: 21px;
  line-height: 1.18;
  font-weight: 800;
}
.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hero-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--btn);
  white-space: nowrap;
}
.btn.light {
  width: auto;
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
}
.btn.outline {
  background: transparent;
  color: var(--btn);
  box-shadow: inset 0 0 0 1.5px var(--btn);
  font-weight: 800;
  padding: 13px;
}

.perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px 0;
}
.perk {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px 10px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--btn);
}
.perk span {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

/* категории: текст ровно по центру плашки */
.chips {
  align-items: center;
  padding: 16px 16px 4px;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.chip.on {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.panel {
  margin: 18px 16px 0;
  padding: 14px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.panel-hint {
  margin: 0;
  font-size: 13px;
  color: var(--hint);
  line-height: 1.4;
}
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.sec-head.pad {
  padding: 24px 16px 12px;
}
.sec-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
.link {
  color: var(--btn);
  font-size: 14px;
  font-weight: 700;
}
.coll-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
}
.coll-mini .ph.sm {
  width: 72px;
  border-radius: 16px;
}
.coll-mini .mid {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}
.coll-mini b {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coll-mini span {
  font-size: 13px;
  color: #c9ccd6;
}

.rail {
  display: flex;
  gap: 10px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar {
  display: none;
}
.secret {
  flex: 0 0 156px;
  scroll-snap-align: start;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid #3b2f5c;
  background: #17141f;
  text-align: left;
}
.secret .ph {
  border-radius: 14px;
}
.s-series {
  font-size: 11px;
  color: var(--hint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}
.s-name {
  font-size: 14px;
  line-height: 1.25;
  height: 35px;
  overflow: hidden;
  padding: 0 2px;
}
.s-odds {
  justify-self: start;
  margin: 0 2px 2px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #2b2145;
  color: #d7c4ff;
  font-size: 12px;
  font-weight: 800;
}

/* карточки каталога */
.grid {
  gap: 10px;
  padding: 0 16px 20px;
}
.card {
  border: 1px solid #23262e;
  border-radius: 20px;
  gap: 8px;
}
.card .ph {
  border-radius: 14px;
  background: #fff;
}
.card > .name {
  padding: 0 4px;
  font-size: 13px;
  font-weight: 600;
  -webkit-line-clamp: 2;
  min-height: 34px;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 2px 2px 4px;
  margin-top: auto;
}
.card-foot .price {
  margin: 0;
  color: var(--btn);
  font-size: 15px;
  line-height: 1.15;
}
.card-foot .price s {
  display: block;
  margin: 2px 0 0;
  font-size: 12px;
}
.card .ctl {
  flex: none;
}
.plus {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  display: grid;
  place-items: center;
}
.pill {
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--btn);
  color: var(--btn-text);
  font-weight: 800;
  font-size: 13px;
}
.mini-step {
  display: flex;
  align-items: center;
  height: 38px;
  border-radius: 12px;
  background: var(--btn);
  color: var(--btn-text);
}
.mini-step button {
  width: 30px;
  height: 38px;
  color: var(--btn-text);
  font-size: 18px;
  font-weight: 800;
}
.mini-step span {
  min-width: 14px;
  text-align: center;
  font-weight: 800;
}
.out-txt {
  font-size: 12px;
  color: var(--hint);
}

/* каталог (вкладка) */
.page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}
.search-row {
  padding: 0 16px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--hint);
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  outline: none;
}

/* нижнее меню */
body.with-tabs {
  padding-bottom: 104px;
}
.tabs {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 30;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.75fr; /* четыре раздела + большая кнопка корзины */
  align-items: stretch;
  gap: 4px;
  padding: 7px;
  box-sizing: border-box;
  border-radius: 22px;
  background: var(--card-2);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.tab {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 7px 2px;
  border-radius: 15px;
  color: var(--hint);
  font-size: 11px;
  font-weight: 600;
}
.tab span {
  white-space: nowrap;
}
.tab.on {
  color: var(--text);
  font-weight: 800;
}
.tab.on .ic {
  color: var(--btn);
}
.sticky {
  background: var(--bg);
}
html:not(.in-tg) body.with-tabs #bar {
  display: none;
}

.toast {
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.level-icon {
  color: var(--btn);
  display: grid;
}
.menu span {
  color: var(--btn);
  display: grid;
  place-items: center;
}

/* ---------- доставка: постамат 5Post / пункт ВБ ---------- */
.form .field {
  display: grid;
  gap: 8px;
}
.form .field-label {
  font-size: 13px;
  color: var(--hint);
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.seg-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 6px;
  background: transparent;
  color: var(--hint);
  font: 600 14px/1.2 inherit;
  font-family: inherit;
  cursor: pointer;
}
.seg-btn.on {
  background: var(--btn);
  color: var(--btn-text);
}
.pvz-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed var(--btn);
  background: rgba(200, 246, 90, 0.08);
  color: var(--btn);
  font: 600 15px/1.2 inherit;
  font-family: inherit;
  cursor: pointer;
}
.point {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--btn);
}
.point-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(200, 246, 90, 0.14);
  color: var(--btn);
}
.point-txt {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 13px;
  color: var(--hint);
}
.point-txt b {
  color: var(--text);
  font-size: 14px;
}
.point-edit {
  flex: none;
  border: 0;
  background: none;
  color: var(--btn);
  font: 600 13px/1 inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 2px;
}
.pvz {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.pvz-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 52px;
  font-family: var(--head);
  font-size: 15px;
}
.pvz-head .x {
  position: absolute;
  right: 10px;
  top: 9px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.pvz-hint {
  padding: 0 16px 10px;
  text-align: center;
  font-size: 13px;
  color: var(--hint);
}
.pvz-map {
  flex: 1;
  min-height: 0;
  background: #fff;
}
.pvz-wait {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  background: var(--bg);
  color: var(--hint);
  font-size: 14px;
  line-height: 1.4;
}

.warn-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  border-left: 4px solid #f5b544;
  background: rgba(245, 181, 68, 0.12);
  color: #ffe0a3;
  font-size: 14px;
  line-height: 1.4;
}
.warn-note svg {
  flex: none;
  margin-top: 1px;
  color: #f5b544;
}
.warn-note b {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 15px;
}
.link-btn {
  justify-self: start;
  border: 0;
  background: none;
  padding: 2px 0;
  color: var(--btn);
  font: 600 14px/1.3 inherit;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.tg-auto {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 16px;
}
.tg-auto svg {
  color: #2aabee;
}
.tg-auto span {
  flex-basis: 100%;
  color: var(--hint);
  font-size: 12px;
}

.form .check.small {
  font-size: 14px;
  color: var(--hint);
}
.form input:disabled {
  opacity: 0.55;
}

.form .passport {
  gap: 10px;
}
.form .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form .passport small {
  color: var(--hint);
  font-size: 13px;
}

/* ---------- нижнее меню: значки и подсветка корзины ---------- */
.tab .ic {
  position: relative;
  display: grid;
  place-items: center;
  font-style: normal;
}
.tab .badge {
  position: absolute;
  top: -6px;
  left: calc(100% - 7px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 9px;
  background: var(--hint);
  color: var(--bg);
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  font-style: normal;
}
/* Корзина — отдельная кнопка: иконка слева, «Корзина» и сумма справа. */
.tab-cart {
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: 'ic t' 'ic s';
  align-content: center;
  justify-items: start;
  column-gap: 18px;
  row-gap: 1px;
  padding: 8px 14px 8px 16px;
  border-radius: 16px;
  background: var(--card);
  color: var(--hint);
  text-align: left;
}
.tab-cart .ic {
  grid-area: ic;
  align-self: center;
}
.tab-cart span {
  grid-area: t;
  align-self: end;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
}
.tab-cart .tab-sum {
  grid-area: s;
  align-self: start;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  opacity: 0.75;
}
.tab-cart:not(.has) span {
  align-self: center;
  grid-row: 1 / span 2;
}
.tab-cart.has {
  background: var(--btn);
  color: var(--btn-text);
}
.tab-cart.has .badge {
  background: var(--btn-text);
  color: var(--btn);
  box-shadow: 0 0 0 2px var(--btn);
}
.tab.bump .ic {
  animation: cart-bump 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.tab.bump .badge {
  animation: badge-pop 0.5s ease-out;
}
@keyframes cart-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.35) rotate(-8deg); }
  70% { transform: scale(0.95) rotate(3deg); }
  100% { transform: scale(1); }
}
@keyframes badge-pop {
  0% { box-shadow: 0 0 0 2px var(--btn), 0 0 0 0 rgba(14, 15, 19, 0.6); }
  100% { box-shadow: 0 0 0 2px var(--btn), 0 0 0 12px rgba(14, 15, 19, 0); }
}
.tab-cart.bump {
  animation: cart-glow 0.6s ease-out;
}
@keyframes cart-glow {
  0% { box-shadow: 0 0 0 0 rgba(200, 246, 90, 0.8); }
  100% { box-shadow: 0 0 0 14px rgba(200, 246, 90, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .tab.bump .ic, .tab.bump .badge, .tab-cart.bump { animation: none; }
}

/* ---------- срок доставки ---------- */
.ship-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 14px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border-left: 4px solid #7cc4ff;
  background: rgba(124, 196, 255, 0.1);
  color: #cfe8ff;
  font-size: 13px;
  line-height: 1.4;
}
.ship-note svg {
  flex: none;
  margin-top: 1px;
  color: #7cc4ff;
}
.ship-note b {
  display: block;
  margin-bottom: 1px;
  color: #fff;
  font-size: 15px;
}
.ship-note.in-form {
  margin: 0;
}

/* пять пунктов в меню — подписи чуть мельче */
.tabs .tab:not(.tab-cart) {
  padding-left: 0;
  padding-right: 0;
  font-size: 10.5px;
}

/* три кнопки в шапке: чуть компактнее, чтобы имя в приветствии помещалось */
.hello {
  gap: 10px;
}
.hello-name {
  font-size: clamp(15px, 4.6vw, 18px);
}
.hello-btns {
  gap: 6px;
}
.hello-btns .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

/* ---------- баннер главной: лёгкая анимация ---------- */
.banner {
  position: relative;
  margin: 4px 16px 14px;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 2 / 1;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}
.banner-img,
.banner-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.banner-img img {
  object-fit: cover;
  animation: banner-breathe 9s ease-in-out infinite alternate;
  transform-origin: 50% 60%;
}
@keyframes banner-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}
.banner-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 48%, transparent 60%);
  transform: translateX(-120%);
  animation: banner-shine 6s ease-in-out 1.5s infinite;
}
@keyframes banner-shine {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* детали конструктора: пластины, кирпичики, колесо, искры */
.bit {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  font-style: normal;
  animation: bit-float 4.5s ease-in-out infinite;
}
.bit.plate,
.bit.brick {
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22) 0 2.2px, transparent 2.6px) 0 0 / 8px 100% repeat-x,
    var(--bit, #16171c);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35), 0 4px 8px rgba(0, 0, 0, 0.25);
}
.bit.plate { height: 7px; }
.bit.brick { height: 13px; border-radius: 3px; }
.bit.p1 { width: 32px; left: 4%; top: 12%; --r: -18deg; animation-duration: 5s; }
.bit.p2 { width: 24px; right: 22%; top: 6%; --r: 14deg; animation-delay: -1.2s; }
.bit.p3 { width: 36px; left: 31%; top: 4%; --r: 6deg; animation-delay: -2.4s; animation-duration: 6s; }
.bit.b1 { width: 18px; right: 5%; top: 18%; --bit: #c8f65a; --r: -10deg; animation-delay: -0.6s; }
.bit.b2 { width: 18px; left: 16%; top: 4%; --bit: #e53935; --r: 22deg; animation-delay: -3s; animation-duration: 5.4s; }
.bit.wheel {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, #9aa0aa 0 3px, #16171c 3.5px 6px, #2a2c33 6.5px 8px, #16171c 8.5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.bit.w1 { right: 3%; bottom: 7%; animation-name: bit-spin; animation-duration: 6s; }
.bit.spark {
  color: #c8f65a;
  font-size: 14px;
  text-shadow: 0 0 6px rgba(200, 246, 90, 0.9), 0 0 1px #556b1f;
  animation-name: bit-twinkle;
  animation-duration: 2.6s;
}
.bit.s1 { left: 8%; bottom: 22%; }
.bit.s2 { right: 30%; top: 20%; animation-delay: -0.9s; font-size: 11px; }
.bit.s3 { left: 44%; top: 8%; animation-delay: -1.7s; font-size: 12px; }
@keyframes bit-float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-9px) rotate(calc(var(--r, 0deg) + 8deg)); }
}
@keyframes bit-spin {
  0% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}
@keyframes bit-twinkle {
  0%, 100% { transform: scale(0.4); opacity: 0; }
  50% { transform: scale(1.15); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .banner-img img, .banner-shine, .bit { animation: none; }
}
