/* ───────────────────────────── FrogCube donate ───────────────────────────── */

/* Monocraft — шрифт в стиле Minecraft, лицензия OFL 1.1 (public/fonts/OFL.txt) */
@font-face {
  font-family: 'Monocraft';
  src: url('/fonts/Monocraft.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg: #080b09;
  --bg-2: #0b100d;
  --card: #0f1511;
  --card-2: #151d18;
  --line: rgba(205, 255, 215, 0.075);
  --line-2: rgba(205, 255, 215, 0.13);
  --text: #e8f0ea;
  --muted: #8a998e;
  --dim: #56645a;
  --accent: #a6f04b;
  --accent-hi: #bff972;
  --accent-ink: #0b1405;
  --accent-soft: rgba(166, 240, 75, 0.1);
  --warn: #ffcf5c;
  --danger: #ff6161;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pixel: 'Monocraft', 'Golos Text', monospace;
  --gutter: 24px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; overscroll-behavior-x: none; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
  overflow-x: clip;
}

/* фон: еле заметная пиксельная сетка + зелёное свечение сверху */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(166, 240, 75, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 240, 75, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}
body::after {
  content: '';
  position: absolute;
  top: -20vh;
  left: 0;
  right: 0;
  height: 90vh;
  pointer-events: none;
  background: radial-gradient(ellipse min(700px, 80%) 50% at 50% 50%, rgba(98, 214, 64, 0.16), transparent);
  z-index: 0;
}

#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

main, .foot, .top { position: relative; z-index: 1; }

img, svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.px { width: 100%; height: auto; overflow: visible; image-rendering: pixelated; }
.px-shine { transform-box: view-box; animation: shine 5.5s var(--ease) infinite; }
@keyframes shine {
  0% { transform: translateX(0); }
  32%, 100% { transform: translateX(230%); }
}

[data-sprite] { display: block; }

/* ───────────────────────────── кнопки ───────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  font: 600 15.5px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--spring), background-color 0.2s, box-shadow 0.3s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}
.btn:hover::after { animation: btn-shine 0.7s var(--ease); }
@keyframes btn-shine {
  0% { left: -60%; opacity: 1; }
  100% { left: 130%; opacity: 1; }
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}
.btn-accent:hover {
  background: var(--accent-hi);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 12px 32px -12px rgba(166, 240, 75, 0.65);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[disabled]::after { display: none; }
.btn.is-loading { color: transparent; pointer-events: none; }
.btn.is-loading::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid var(--accent-ink);
  border-right-color: transparent;
  border-radius: 3px;
  animation: spin 0.7s steps(8) infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.2s, transform 0.25s var(--spring);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.09); transform: rotate(90deg); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ───────────────────────────── шапка ───────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.top.is-scrolled {
  background: rgba(8, 11, 9, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  height: 66px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  font: 700 22px/1 var(--pixel);
  letter-spacing: 0.01em;
}
.brand-frog { width: 34px; transition: transform 0.35s var(--spring); }
.brand:hover .brand-frog { transform: translateY(-4px) rotate(-6deg); }

.nav {
  position: relative;
  display: flex;
  gap: 2px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a.is-active { color: var(--text); }
.nav-ink {
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(166, 240, 75, 0.7);
  opacity: 0;
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.3s;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: var(--card);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--spring);
}
.cart-btn:hover { border-color: rgba(166, 240, 75, 0.45); background: var(--card-2); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.cart-sum { font-variant-numeric: tabular-nums; }
.cart-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 400 15px/1 var(--pixel);
}
.cart-btn.bump { animation: bump 0.5s var(--spring); }
@keyframes bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.14) rotate(-3deg); }
  100% { transform: scale(1); }
}

/* ───────────────────────────── первый экран ───────────────────────────── */

.hero { padding: 48px 0 40px; overflow: clip; }
.hero-in {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  min-height: min(600px, calc(100svh - 120px));
}

.hero-title {
  margin: 0;
  font: 700 clamp(50px, 7.6vw, 112px)/0.9 var(--pixel);
  letter-spacing: -0.01em;
  white-space: nowrap;
  filter: drop-shadow(0 6px 0 #173d12) drop-shadow(0 18px 40px rgba(98, 214, 64, 0.25));
  user-select: none;
}
.hero-title .ch {
  display: inline-block;
  background: linear-gradient(180deg, #e2ffb0 0%, #a6f04b 48%, #5cc94a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: drop-in 0.8s var(--spring) both;
  animation-delay: calc(var(--i) * 55ms + 150ms);
  transition: transform 0.35s var(--spring);
}
.hero-title .ch:hover { transform: translateY(-10px) rotate(-4deg); transition-duration: 0.15s; }
@keyframes drop-in {
  0% { opacity: 0; transform: translateY(-70px) scaleY(1.3); }
  60% { opacity: 1; transform: translateY(6px) scaleY(0.9); }
  100% { opacity: 1; transform: none; }
}

.hero-sub {
  max-width: 470px;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
  animation: fade-up 0.9s var(--ease) 0.55s both;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; animation: fade-up 0.9s var(--ease) 0.7s both; }
.hero-cta { margin-top: 30px; height: 54px; padding: 0 26px; font-size: 16.5px; animation: fade-up 0.9s var(--ease) 0.85s both; }
.hero-cta svg { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.ip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 8px 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 15px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.25s var(--spring);
}
.ip:hover { border-color: rgba(166, 240, 75, 0.45); }
.ip:active { transform: scale(0.98); }
.ip-k { color: var(--dim); font: 600 12px/1 var(--font); letter-spacing: 0.12em; }
.ip-v { font: 400 21px/1 var(--pixel); letter-spacing: 0.01em; }
.ip-act {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.ip.is-copied .ip-act { background: var(--accent); color: var(--accent-ink); }

.online { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.online b { color: var(--text); font: 400 21px/1 var(--pixel); }
.online-dot { position: relative; width: 9px; height: 9px; background: var(--dim); }
.online[data-state='up'] .online-dot { background: var(--accent); }
.online[data-state='up'] .online-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid var(--accent);
  animation: ping 1.8s var(--ease) infinite;
}
.online[data-state='down'] .online-dot { background: var(--danger); }
@keyframes ping {
  0% { opacity: 0.9; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.8); }
}

/* пруд с лягушкой */
.hero-pond {
  position: relative;
  aspect-ratio: 1 / 0.86;
  animation: fade-up 1s var(--ease) 0.3s both;
}
.hero-pond::before {
  content: '';
  position: absolute;
  inset: 8% 4% 0;
  background: radial-gradient(ellipse 50% 42% at 50% 62%, rgba(98, 214, 64, 0.22), transparent 70%);
  filter: blur(6px);
}
.pond-lily {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 14%;
  animation: bob 5s ease-in-out infinite;
}
.pond-ripples { position: absolute; left: 0; right: 0; bottom: 18%; height: 0; }
.pond-ripples i {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  aspect-ratio: 4.2 / 1;
  translate: 0 -50%;
  border: 2px solid rgba(166, 240, 75, 0.22);
  border-radius: 50%;
  opacity: 0;
  animation: ripple 6s linear infinite;
}
.pond-ripples i:nth-child(2) { animation-delay: 2s; }
.pond-ripples i:nth-child(3) { animation-delay: 4s; }
@keyframes ripple {
  0% { opacity: 0; transform: scale(0.4); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes bob { 50% { transform: translateY(5px); } }

.pond-frog {
  position: absolute;
  left: 27%;
  right: 27%;
  bottom: 25%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 100%;
  animation: bob 5s ease-in-out infinite, breathe 2.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.25));
}
@keyframes breathe { 50% { scale: 1.025 0.975; } }
.pond-frog.is-hopping { animation: hop 0.75s var(--ease); }
@keyframes hop {
  0% { transform: none; }
  18% { transform: scaleX(1.12) scaleY(0.82); }
  50% { transform: translateY(-34%) scaleX(0.92) scaleY(1.1); }
  80% { transform: scaleX(1.08) scaleY(0.9); }
  100% { transform: none; }
}
.frog-pupils { transition: transform 0.18s var(--ease); }
.frog-lids { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.is-blinking .frog-lids { animation: blink 0.2s linear; }
@keyframes blink { 50% { transform: scaleY(1); } }

.frog-say {
  position: absolute;
  left: 66%;
  bottom: 62%;
  padding: 8px 12px;
  border: 3px solid #0b2410;
  border-radius: 4px;
  background: #fff;
  color: #0b2410;
  font: 700 20px/1 var(--pixel);
  opacity: 0;
  transform: translateY(10px) scale(0.6);
  transform-origin: 0 100%;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.35s var(--spring);
}
.frog-say::after {
  content: '';
  position: absolute;
  left: 8px;
  bottom: -11px;
  width: 8px;
  height: 8px;
  background: #fff;
  border: 3px solid #0b2410;
  border-top: 0;
  border-left: 0;
}
.frog-say.is-on { opacity: 1; transform: none; }

/* ───────────────────────────── секции ───────────────────────────── */

.sec { padding: 72px 0; scroll-margin-top: 50px; }
#shop { padding-top: 24px; }

.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 18px;
  margin-bottom: 32px;
}
.sec-num {
  padding: 6px 9px 5px;
  border: 1px solid rgba(166, 240, 75, 0.3);
  border-radius: 8px;
  color: var(--accent);
  font: 400 17px/1 var(--pixel);
}
.sec-head h2 { margin: 0; font: 400 clamp(32px, 4.6vw, 50px)/1 var(--pixel); text-shadow: 0.07em 0.07em 0 rgba(0, 0, 0, 0.5); }
.sec-head p { grid-column: 2; margin: 12px 0 0; color: var(--muted); font-size: 17px; }

.reveal { opacity: 0; translate: 0 26px; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; translate: none; }

/* ───────────────────────────── привилегии ───────────────────────────── */

.shop {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: 18px;
  height: clamp(580px, calc(100vh - 180px), 680px);
}

/* список «Выберите привилегию» */
.picker {
  position: relative;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  overflow: hidden;
}
.picker-head {
  position: relative;
  flex-shrink: 0;
  padding: 22px 22px 30px;
  background:
    linear-gradient(115deg, transparent 0 55%, rgba(255, 255, 255, 0.28) 55% 60%, transparent 60% 66%, rgba(255, 255, 255, 0.18) 66% 69%, transparent 69%),
    linear-gradient(135deg, #c4ff6e, #8be03a 55%, #5cc94a);
  background-size: 260% 100%, 100% 100%;
  color: var(--accent-ink);
  font: 400 20px/1.1 var(--pixel);
  animation: head-shine 6s ease-in-out infinite;
}
@keyframes head-shine {
  0%, 55% { background-position: 110% 0, 0 0; }
  85%, 100% { background-position: -10% 0, 0 0; }
}
.picker-arrow {
  position: absolute;
  top: 54px;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: -19px;
  border-radius: 50%;
  background: #fff;
  color: #4e9a25;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  animation: arrow-bob 1.8s ease-in-out infinite;
}
.picker-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes arrow-bob { 50% { transform: translateY(3px); } }

.picker-list {
  position: relative;
  flex: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  margin-top: -10px;
  padding: 22px 10px 12px 12px;
  border-radius: 18px 18px 0 0;
  background: var(--card);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.picker-list::-webkit-scrollbar { width: 6px; }
.picker-list::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(255, 255, 255, 0.22); }

.pick {
  --c: #888;
  display: grid;
  grid-template-columns: 52px 1fr auto 16px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 8px 12px 8px 8px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.3s var(--spring);
}
.pick:hover { background: rgba(255, 255, 255, 0.075); transform: translateX(3px); }
.pick[aria-selected='true'] {
  border-color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 20%, transparent), rgba(255, 255, 255, 0.08) 70%);
  box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--c) 90%, transparent);
}
.pick-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.pick-ico .mc { width: 38px; }
.pick:hover .pick-ico .mc { animation: wiggle 0.5s var(--spring); }
@keyframes wiggle {
  30% { transform: rotate(-9deg) scale(1.08); }
  65% { transform: rotate(6deg) scale(1.04); }
}
.pick-name { font-weight: 700; font-size: 16.5px; }
.pick-price { font-weight: 700; font-size: 15.5px; white-space: nowrap; }
.pick-go { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--spring), stroke 0.2s; }
.pick:hover .pick-go, .pick[aria-selected='true'] .pick-go { stroke: var(--text); transform: translateX(2px); }

/* нагрудник из Minecraft */
.mc { position: relative; display: block; width: 48px; }
.mc img, .mc svg { display: block; width: 100%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35)); }
.mc-glint {
  position: absolute;
  inset: 0;
  bottom: auto;
  aspect-ratio: 1;
  background: url('/img/mc/enchanted_glint_item.png') 0 0 / 400% 400% repeat;
  image-rendering: pixelated;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  mix-blend-mode: screen;
  opacity: 0.8;
  pointer-events: none;
  animation: glint 7s linear infinite;
}
@keyframes glint {
  from { background-position: 0 0; }
  to { background-position: 400% 400%; }
}
.mc-bar { display: block; width: 82%; height: 4px; margin: 3px auto 0; background: #000; }
.mc-bar b { display: block; height: 2px; }

/* панель выбранной привилегии */
.detail {
  --c: #888;
  position: relative;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.4s;
}
.detail::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 240px;
  pointer-events: none;
  background: radial-gradient(70% 100% at 15% 0%, color-mix(in srgb, var(--c) 24%, transparent), transparent 70%);
  transition: background 0.4s;
}
.dt { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; }
.dt-scroll { position: relative; flex: 1; min-height: 0; padding: 22px 26px 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }
.dt-scroll.from-r { animation: rm-in-r 0.35s var(--ease); }
.dt-scroll.from-l { animation: rm-in-l 0.35s var(--ease); }
@keyframes rm-in-r { from { opacity: 0; transform: translateX(28px); } }
@keyframes rm-in-l { from { opacity: 0; transform: translateX(-28px); } }

.dt-head { display: flex; align-items: center; gap: 22px; padding-right: 44px; }
.dt-art { position: relative; display: grid; place-items: center; flex-shrink: 0; min-width: 76px; }
.dt-art .mc { width: 76px; animation: plate-in 0.7s var(--spring) both, float 4s ease-in-out 0.7s infinite; }
.dt-art .mc img, .dt-art .mc svg { filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.4)) drop-shadow(0 14px 30px color-mix(in srgb, var(--c) 50%, transparent)); }
.dt-tier { color: var(--dim); font-size: 13px; }
.dt-name {
  margin: 4px 0 0;
  color: color-mix(in srgb, var(--c) 65%, white);
  font: 400 36px/1 var(--pixel);
  text-shadow: 0.07em 0.07em 0 rgba(0, 0, 0, 0.5), 0 0 30px color-mix(in srgb, var(--c) 40%, transparent);
}
.rm-inherit { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.rm-inherit i { width: 10px; height: 10px; }

/* сроки: 30 дней · 90 дней · навсегда */
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.term {
  position: relative;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 12px 6px;
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--spring);
}
.term span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.term b { font: 400 21px/1 var(--pixel); }
.term:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.25); }
.term[aria-checked='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(166, 240, 75, 0.08);
}
.term[aria-checked='true'] span { color: var(--text); }
.term[aria-checked='true'] b { color: var(--accent); }

.rm-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 18px 0 14px; }
.rm-stat {
  position: relative;
  padding: 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}
.rm-stat b { display: block; font: 400 22px/1 var(--pixel); }
.rm-stat b small { margin-left: 2px; color: var(--muted); font-size: 0.55em; }
.rm-stat em { position: absolute; top: 6px; right: 7px; color: var(--accent); font-size: 11.5px; font-style: normal; font-weight: 600; }
.rm-stat span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.25; }

.rm-label { margin: 18px 0 2px; color: var(--dim); font: 600 12px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; }

.cmds, .perks { margin: 0; padding: 0; list-style: none; }
.cmds li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.cmds li:last-child { border-bottom: 0; }
.cmds code {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: color-mix(in srgb, var(--c) 60%, white);
  font: 400 14px/1.1 var(--pixel);
  text-align: right;
}
.cmds .note { flex-shrink: 0; color: var(--muted); font-size: 13px; text-align: right; }
.perks { display: flex; flex-wrap: wrap; gap: 8px; }
.perks li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  font-size: 14px;
}
.perks li::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--accent);
  clip-path: polygon(0 50%, 17% 50%, 17% 67%, 33% 67%, 33% 83%, 50% 83%, 50% 67%, 67% 67%, 67% 50%, 83% 50%, 83% 33%, 100% 33%, 100% 17%, 83% 17%, 83% 0, 67% 0, 67% 17%, 50% 17%, 50% 33%, 33% 33%, 33% 50%, 17% 50%, 17% 33%, 0 33%);
}

.rm-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.rm-nav button {
  padding: 8px 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 400 15px/1 var(--pixel);
  cursor: pointer;
  transition: color 0.2s, transform 0.25s var(--spring);
}
.rm-nav button:hover { color: var(--text); }
.rm-nav button[data-step='1'] { margin-left: auto; }

.dt-foot { position: relative; display: grid; gap: 10px; padding: 14px 26px 16px; border-top: 1px solid var(--line); background: var(--bg-2); }
.dt-row { display: flex; gap: 10px; }
.dt-row .nick { flex: 1; min-width: 0; }
.dt-row .btn { height: auto; min-height: 56px; padding: 0 24px; }
.dt-cart {
  justify-self: center;
  padding: 2px 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.dt-cart:hover { color: var(--text); }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8%; }
}
@keyframes plate-in {
  0% { opacity: 0; transform: translateY(-40px) scale(0.55) rotate(-14deg); }
  100% { opacity: 1; transform: none; }
}
.burst { position: absolute; inset: 0; pointer-events: none; }
.burst i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--c);
  animation: burst 0.7s var(--ease) forwards;
}
@keyframes burst {
  from { opacity: 1; transform: translate(-50%, -50%); }
  to { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.3); }
}


/* ───────────────────────────── разделы магазина ───────────────────────────── */

/* вкладки разделов — см. «как в iOS» (.segc-cats) */
.cat-ico { display: grid; place-items: center; width: 28px; height: 28px; }
.cat-ico img, .cat-ico .px { width: 26px; height: auto; image-rendering: pixelated; transition: transform 0.35s var(--spring); }

/* смена раздела: строки списка въезжают по очереди */
.picker-list.is-swap .pick { animation: pick-in 0.4s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes pick-in { from { opacity: 0; transform: translateX(-16px); } }
.pick-extra { margin-left: 4px; color: var(--accent); font-size: 13px; font-style: normal; }

/* иконки разных товаров в списке и в панели */
.pick-ico .px { width: 36px; }
.pick-ico .gem-pile { width: auto; height: 30px; max-width: 44px; }
.dt-art .px { width: 80px; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35)) drop-shadow(0 14px 30px color-mix(in srgb, var(--c) 45%, transparent)); animation: plate-in 0.7s var(--spring) both; }
.dt-art .gem-pile { width: auto; height: 62px; max-width: 120px; }
.dt-sub { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* изумруды подпрыгивают, искорки мигают */
.gem-i { transform-box: fill-box; }
.pick:hover .gem-i, .dt-art:hover .gem-i { animation: gem-hop 0.55s var(--spring) both; animation-delay: var(--d); }
@keyframes gem-hop { 40% { transform: translateY(-3px); } }
.spark { opacity: 0; transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes twinkle {
  0%, 62%, 100% { opacity: 0; transform: scale(0.3); }
  76% { opacity: 1; transform: scale(1.2); }
}

/* кейс приоткрывается */
.chest-lid { transform-box: fill-box; transform-origin: 6% 100%; transition: transform 0.5s var(--spring); }
.chest-glow { opacity: 0; transition: opacity 0.3s; }
.chest-lock { transform-box: fill-box; transform-origin: center; transition: transform 0.4s var(--spring); }
.pick:hover .chest-lid, .dt-art:hover .chest-lid, .detail[data-kind='cases'] .dt-art .chest-lid { transform: translateY(-2px) rotate(-16deg); }
.pick:hover .chest-glow, .dt-art:hover .chest-glow, .detail[data-kind='cases'] .dt-art .chest-glow { opacity: 1; }
.dt-art:hover .chest-lock { transform: translateY(1px) scale(1.15); }

/* знак бана ломается, чат оживает */
.barrier-ring { transition: filter 0.4s; }
.barrier-slash { transform-box: fill-box; transform-origin: center; transition: transform 0.5s var(--spring), opacity 0.35s; }
.pick:hover .barrier-slash, .dt-art:hover .barrier-slash { transform: translate(5px, -5px) rotate(25deg) scale(0.4); opacity: 0; }
.pick:hover .barrier-ring, .dt-art:hover .barrier-ring { filter: hue-rotate(115deg) saturate(1.2); }
.bubble-cross { transform-box: fill-box; transform-origin: center; transition: transform 0.4s var(--spring), opacity 0.3s; }
.bubble-dots { opacity: 0; transition: opacity 0.3s; }
.pick:hover .bubble-cross, .dt-art:hover .bubble-cross { transform: scale(0) rotate(90deg); opacity: 0; }
.pick:hover .bubble-dots, .dt-art:hover .bubble-dots { opacity: 1; }
.dt-art:hover .dot { animation: dot 0.9s ease-in-out infinite; animation-delay: calc(var(--i) * 0.15s); }
@keyframes dot { 30% { transform: translateY(-1px); } }

/* короткие факты о товаре */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 18px; }
.facts div { padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, 0.02); }
.facts b { display: block; font: 400 21px/1.1 var(--pixel); }
.facts span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

/* биржа внутри панели */
.exw { display: grid; gap: 16px; margin-top: 20px; }
.ex-fields { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.field {
  display: grid;
  gap: 4px;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 15px;
  background: var(--bg-2);
  cursor: text;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field:focus-within { border-color: rgba(166, 240, 75, 0.6); box-shadow: 0 0 0 4px rgba(166, 240, 75, 0.08); }
.field span { color: var(--muted); font-size: 13px; }
.field-row { display: flex; align-items: baseline; gap: 8px; }
.field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--text);
  font: 400 26px/1.1 var(--pixel);
  font-variant-numeric: tabular-nums;
}
.field em { color: var(--accent); font: 400 15px/1 var(--pixel); font-style: normal; white-space: nowrap; }
.ex-arrow { width: 28px; color: var(--dim); }
.ex-arrow svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.range { position: relative; padding-bottom: 28px; }
.range input {
  --p: 0%;
  width: 100%;
  height: 30px;
  margin: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.range input::-webkit-slider-runnable-track { height: 10px; background: linear-gradient(90deg, var(--accent) var(--p), rgba(255, 255, 255, 0.07) var(--p)); }
.range input::-moz-range-track { height: 10px; background: rgba(255, 255, 255, 0.07); }
.range input::-moz-range-progress { height: 10px; background: var(--accent); }
.range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -8px;
  border: 4px solid var(--accent);
  background: #fff;
  box-shadow: 0 0 0 6px rgba(166, 240, 75, 0.15), 0 4px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--spring);
}
.range input::-moz-range-thumb { width: 18px; height: 18px; border: 4px solid var(--accent); border-radius: 0; background: #fff; box-shadow: 0 0 0 6px rgba(166, 240, 75, 0.15); }
.range input:active::-webkit-slider-thumb { transform: scale(1.18); }
.range-marks { position: absolute; left: 13px; right: 13px; bottom: 0; height: 24px; pointer-events: none; }
.range-marks span {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  color: var(--dim);
  font: 400 13px/1 var(--pixel);
  white-space: nowrap;
  transition: color 0.25s;
}
.range-marks span::before { content: ''; position: absolute; top: -10px; left: 50%; width: 2px; height: 6px; background: currentColor; }
.range-marks span.is-on { color: var(--accent); }
.tiers { display: flex; flex-wrap: wrap; gap: 6px; }
.tier { padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; transition: all 0.3s; }
.tier b { color: var(--text); font: 400 15px/1 var(--pixel); }
.tier.is-on { border-color: rgba(166, 240, 75, 0.45); background: var(--accent-soft); color: var(--text); }
.tier.is-on b { color: var(--accent); }

/* ───────────────────────────── подвал ───────────────────────────── */

.foot { margin-top: 40px; padding: 70px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.social {
  --b: #fff;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.35s var(--spring);
}
.social:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--b) 55%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--b) 16%, transparent), transparent 65%), var(--card);
}
.social-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--b) 16%, transparent);
  color: var(--b);
  transition: background 0.3s, color 0.3s, transform 0.45s var(--spring);
}
.social-ico svg { width: 25px; height: 25px; fill: currentColor; }
.social:hover .social-ico { background: var(--b); color: #fff; transform: rotate(-10deg) scale(1.06); }
.social-t { display: grid; min-width: 0; }
.social-t b { font-size: 17px; }
.social-t span { overflow: hidden; color: var(--muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.social-go { width: 22px; height: 22px; margin-left: auto; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--spring), stroke 0.2s; }
.social:hover .social-go { transform: translate(3px, -3px); stroke: var(--text); }

.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand .brand-frog { width: 40px; }
.foot-brand b { display: block; font: 700 20px/1.1 var(--pixel); }
.foot-brand span { color: var(--muted); font-size: 14px; }
.foot-note { max-width: 520px; margin: 0; color: var(--dim); font-size: 13px; }
/* Значок reCAPTCHA перекрывал бы кнопку «Купить» — вместо него подпись в подвале (так Google разрешает) */
.grecaptcha-badge { visibility: hidden; }
#recaptcha-note { order: 1; flex-basis: 100%; max-width: none; font-size: 12px; }
#recaptcha-note a { color: var(--muted); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.foot-legal a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.foot-legal a:hover { color: var(--text); }
.consent { display: flex; gap: 8px; align-items: flex-start; margin: -4px 0 0; color: var(--dim); font-size: 12px; line-height: 1.4; cursor: pointer; }
.consent input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.consent a { color: var(--muted); text-underline-offset: 2px; }
.consent a:hover { color: var(--text); }
.consent.is-bad { color: #ff8f8f; animation: shake 0.4s; }
.consent.is-bad input { outline: 2px solid var(--danger); outline-offset: 1px; }

/* ───────────────────────────── корзина ───────────────────────────── */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 5, 4, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s;
}
.scrim.is-on { opacity: 1; }

.drawer-wrap { position: fixed; inset: 0; z-index: 100; overflow: hidden; pointer-events: none; }
.drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  border-left: 1px solid var(--line-2);
  background: var(--bg-2);
  transform: translateX(104%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0s 0.5s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform 0.5s var(--ease); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font: 700 26px/1 var(--pixel); }
.drawer-body { flex: 1; padding: 6px 20px; overflow-y: auto; overscroll-behavior: contain; }

.lines { margin: 0; padding: 0; list-style: none; }
.line {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  animation: fade-up 0.4s var(--ease) both;
}
.line.is-leaving { animation: line-out 0.3s var(--ease) forwards; }
@keyframes line-out { to { opacity: 0; transform: translateX(30px); } }
.line-art { --c: var(--accent); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: radial-gradient(circle, color-mix(in srgb, var(--c) 20%, transparent), transparent 75%), var(--card); }
.line-art .px { width: 34px; }
.line-art .gem-pile { width: auto; height: 30px; max-width: 46px; }
.line-t { min-width: 0; }
.line-t b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.line-t span { color: var(--muted); font-size: 13px; }
.line-r { display: grid; justify-items: end; gap: 7px; }
.line-price { font: 700 18px/1 var(--pixel); white-space: nowrap; }
.line-ctrl { display: flex; align-items: center; gap: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 9px; }
.qty button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.qty button:hover { color: var(--text); }
.qty span { min-width: 22px; text-align: center; font: 400 16px/1 var(--pixel); }
.line-del { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--dim); cursor: pointer; transition: color 0.2s, background 0.2s; }
.line-del:hover { background: rgba(255, 97, 97, 0.12); color: var(--danger); }
.line-del svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.cart-empty { display: grid; justify-items: center; gap: 14px; padding: 70px 0; color: var(--muted); text-align: center; }
.cart-empty [data-sprite] { width: 84px; opacity: 0.85; animation: float 3.5s ease-in-out infinite; }
.cart-empty p { margin: 0; font: 600 20px/1 var(--pixel); }

.drawer-foot { display: grid; gap: 12px; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); }
.nick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 15px;
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nick:focus-within { border-color: rgba(166, 240, 75, 0.6); box-shadow: 0 0 0 4px rgba(166, 240, 75, 0.08); }
.nick.is-bad { border-color: var(--danger); animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.nick-head { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; background: var(--card-2); overflow: hidden; }
.nick-head img { width: 100%; height: 100%; image-rendering: pixelated; }
.nick-head .px { width: 30px; }
.nick-field { flex: 1; min-width: 0; }
.nick input { width: 100%; height: 42px; padding: 0 4px; border: 0; outline: none; background: none; color: var(--text); font: 600 21px/1 var(--pixel); }
.nick input::placeholder { color: var(--dim); }
.hint { margin: -4px 2px 0; color: var(--dim); font-size: 12.5px; }
.hint-warn { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 207, 92, 0.08); color: var(--warn); font-size: 13.5px; }
.hint-err { background: rgba(255, 97, 97, 0.1); color: #ff8f8f; }
.total { display: flex; align-items: baseline; justify-content: space-between; }
.total span { color: var(--muted); }
.total b { font: 700 30px/1 var(--pixel); font-variant-numeric: tabular-nums; }

/* ───────────────────────────── модалка заказа ───────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(3, 5, 4, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade 0.3s both;
}
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 34px 26px 22px;
  border: 1px solid var(--line-2);
  border-radius: 26px;
  background: var(--bg-2);
  text-align: center;
  animation: pop 0.5s var(--spring) both;
}
@keyframes pop { from { opacity: 0; transform: scale(0.85) translateY(20px); } }
.modal-x { position: absolute; top: 14px; right: 14px; }
.order-art { position: relative; width: 96px; margin: 0 auto 14px; }
.order-art.is-done .px { animation: hop 0.75s var(--ease); }
.modal-card h2 { margin: 0 0 6px; font: 700 28px/1.1 var(--pixel); }
.modal-card > p { margin: 0 0 22px; color: var(--muted); }
.order-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 18px; padding: 0; list-style: none; counter-reset: s; }
.order-steps li { position: relative; padding-top: 26px; color: var(--dim); font-size: 13px; }
.order-steps li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border: 2px solid var(--line-2);
  background: var(--bg-2);
}
.order-steps li + li::after { content: ''; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--line-2); }
.order-steps li.is-done { color: var(--text); }
.order-steps li.is-done::before { border-color: var(--accent); background: var(--accent); }
.order-steps li.is-done::after { background: var(--accent); }
.order-steps li.is-now::before { border-color: var(--accent); animation: blinkdot 1s steps(2) infinite; }
.order-steps li.is-fail::before { border-color: var(--danger); background: var(--danger); }
@keyframes blinkdot { 50% { background: var(--accent); } }
.order-items { display: grid; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }

/* ───────────────────────────── тосты и полёт в корзину ───────────────────────────── */

.toasts { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 130; display: grid; justify-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: var(--card-2);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9);
  font-size: 14.5px;
  white-space: nowrap;
  animation: toast-in 0.45s var(--spring) both;
}
.toast i { width: 9px; height: 9px; flex-shrink: 0; background: var(--accent); }
.toast.is-err i { background: var(--danger); }
.toast.is-out { animation: toast-out 0.3s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

.flyer { position: fixed; z-index: 140; pointer-events: none; }

/* ───────────────────────────── как в iOS ───────────────────────────── */

:root {
  /* пружины: smooth — для слайдов, bounce — для ползунков и нажатий */
  --spring: linear(0, 0.0083, 0.0307, 0.0639, 0.1053, 0.1524, 0.2034, 0.2566, 0.3107, 0.3647, 0.4177, 0.4692, 0.5185, 0.5654, 0.6095, 0.6509, 0.6893, 0.7247, 0.7573, 0.7871, 0.8141, 0.8385, 0.8605, 0.8802, 0.8978, 0.9134, 0.9272, 0.9393, 0.9498, 0.959, 0.967, 0.9739, 0.9797, 0.9847, 0.9889, 0.9924, 0.9954, 0.9977, 0.9997, 1.0012, 1);
  --spring-bounce: linear(0, 0.0159, 0.0587, 0.1216, 0.1984, 0.2841, 0.374, 0.4647, 0.5532, 0.6371, 0.715, 0.7856, 0.8482, 0.9026, 0.9489, 0.9872, 1.018, 1.0419, 1.0597, 1.0719, 1.0795, 1.083, 1.0833, 1.081, 1.0766, 1.0708, 1.0641, 1.0567, 1.0492, 1.0416, 1.0344, 1.0276, 1.0213, 1.0157, 1.0107, 1.0065, 1.0029, 0.9999, 0.9976, 0.9958, 1);
}

/* нажатие — лёгкое «вдавливание» с пружинным возвратом */
.btn, .pick, .segc-opt, .icon-btn, .cart-btn, .ip, .social, .dt-cart, .compare button {
  transition-timing-function: var(--spring-bounce);
}
.pick:active, .segc-opt:active, .cart-btn:active, .ip:active, .icon-btn:active, .social:active { transform: scale(0.96); transition-duration: 0.12s; }
.btn:active { transform: scale(0.96); }

/* сегментированный переключатель с ползунком */
.segc {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(118, 128, 120, 0.16);
  isolation: isolate;
}
.segc-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  z-index: -1;
  width: 0;
  border-radius: 12px;
  background: #2b332d;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), 0 0 0 0.5px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.5s var(--spring-bounce), width 0.5s var(--spring-bounce);
}
.segc-opt {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 38px;
  padding: 6px 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s, transform 0.4s;
}
.segc-opt small { color: var(--dim); font-size: 12px; font-weight: 600; transition: color 0.25s; }
.segc-opt[aria-checked='true'] { color: var(--text); }
.segc-opt[aria-checked='true'] small { color: var(--accent); }
.segc[data-seg='tab'] .segc-opt { flex-direction: row; gap: 7px; }
.segc[data-seg='tab'] .segc-opt small { padding: 2px 7px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); }

/* разделы магазина — тот же переключатель, только крупнее и с иконками */
.segc-cats { margin-bottom: 16px; padding: 6px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.segc-cats::-webkit-scrollbar { display: none; }
.segc-cats .segc-thumb { top: 6px; bottom: 6px; border-radius: 16px; background: linear-gradient(180deg, rgba(166, 240, 75, 0.2), rgba(166, 240, 75, 0.1)); box-shadow: inset 0 0 0 1.5px rgba(166, 240, 75, 0.55), 0 6px 18px -8px rgba(166, 240, 75, 0.5); }
.segc-cats .segc-opt { flex-direction: row; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: 16px; font-size: 15.5px; font-weight: 700; }
.segc-cats .segc-opt:hover { color: var(--text); }
.segc-cats .segc-opt:hover .cat-ico > *, .segc-cats .segc-opt[aria-checked='true'] .cat-ico > * { transform: scale(1.15) rotate(-6deg); }

/* выбранная строка: подсветка-«ползунок» */
.picker-list { position: relative; }
.pick-ink {
  --c: #888;
  position: absolute;
  top: 0;
  left: 12px;
  right: 10px;
  height: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), rgba(255, 255, 255, 0.07) 75%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5), 0 12px 28px -14px color-mix(in srgb, var(--c) 90%, transparent);
  pointer-events: none;
  transition: transform 0.55s var(--spring-bounce), height 0.55s var(--spring-bounce), background 0.4s, opacity 0.2s;
}
.pick { position: relative; }
.pick[aria-selected='true'] { border-color: transparent; background: none; box-shadow: none; }
.picker-list.is-swap .pick { animation: pick-slide 0.55s var(--spring) both; animation-delay: var(--d, 0ms); }
@keyframes pick-slide { from { opacity: 0; transform: translateX(var(--dx, 26px)); } }

/* слайды в панели */
.dt-scroll { overflow-x: hidden; }
.dt-wrap { position: relative; }
.ghost { position: absolute; pointer-events: none; z-index: 1; }
.pages { position: relative; margin-top: 14px; overflow-x: clip; touch-action: pan-y; }
.dt-head + .segc { margin-top: 20px; }

/* обзор: шкалы возможностей */
.meters { display: grid; gap: 10px; }
.meter { display: grid; grid-template-columns: 132px 1fr 84px; align-items: center; gap: 14px; font-size: 14px; }
.meter-k { color: var(--muted); }
.meter-bar { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.meter-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, #000), var(--c)); animation: meter-in 0.9s var(--spring) both; }
@keyframes meter-in { from { width: 0; } }
.meter-v { font: 400 17px/1 var(--pixel); text-align: right; white-space: nowrap; }
.meter-v em { margin-left: 6px; color: var(--accent); font: 600 12px/1 var(--font); font-style: normal; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips code { padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, transparent); color: color-mix(in srgb, var(--c) 55%, white); font: 400 14px/1 var(--pixel); }
.dt-tip { margin: 16px 0 4px; color: var(--dim); font-size: 13px; }

/* все команды по группам */
.cgroup + .cgroup { margin-top: 16px; }
.cgroup h5 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.cgroup h5 svg { width: 26px; height: 26px; padding: 5px; border-radius: 8px; background: color-mix(in srgb, var(--c) 18%, transparent); fill: none; stroke: color-mix(in srgb, var(--c) 60%, white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cgroup h5 span { margin-left: auto; color: var(--dim); font-weight: 600; font-size: 13px; }
.cmds li.is-own > span:first-child { color: var(--text); }
.cmds li:not(.is-own) > span:first-child { color: #c3cdc5; }
.cmds em.new { margin-left: 6px; color: var(--accent); font-size: 11.5px; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* сравнение с соседними привилегиями */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.compare th, .compare td { padding: 10px 8px; text-align: center; white-space: nowrap; }
.compare td:first-child { color: var(--muted); text-align: left; }
.compare tbody tr + tr td { border-top: 1px dashed var(--line); }
.compare td:not(:first-child) { font: 400 16px/1 var(--pixel); }
.compare th { vertical-align: bottom; font-weight: 700; }
.compare th .mc { width: 40px; margin: 0 auto 6px; }
.compare th > span, .compare th button span { display: block; }
.compare th button { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, 0.03); color: var(--muted); font-weight: 700; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.4s; }
.compare th button:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.compare .is-cur { background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--text); }
.compare thead .is-cur { border-radius: 14px 14px 0 0; }
.compare tbody tr:last-child .is-cur { border-radius: 0 0 14px 14px; }

/* блок покупки */
.dt-foot [data-choices] .segc-opt { min-height: 46px; }
.dt-cart-btn { flex-shrink: 0; width: 56px; height: auto; min-height: 56px; border-radius: 16px; }
.dt-cart-btn:hover { transform: none; background: rgba(166, 240, 75, 0.12); color: var(--accent); }
.dt-cart-btn svg { width: 22px; height: 22px; }
.dt-note { margin: -2px 2px 0; color: var(--muted); font-size: 13px; }
.pay { gap: 8px; }
.roll { display: inline-flex; font-variant-numeric: tabular-nums; }
.rd { display: inline-block; height: 1.25em; overflow: hidden; }
.rd-col { display: flex; flex-direction: column; transition: transform 0.7s var(--spring-bounce); }
.rd-col span, .rc { display: block; height: 1.25em; line-height: 1.25em; }

/* уведомление «островом» */
.toasts { top: calc(10px + env(safe-area-inset-top)); bottom: auto; }
.toast {
  interpolate-size: allow-keywords;
  width: auto;
  height: 44px;
  padding: 0 18px 0 7px;
  border: 0;
  border-radius: 22px;
  background: #000;
  color: #fff;
  font-weight: 600;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.07);
  animation: none;
  transition: width 0.6s var(--spring-bounce), height 0.6s var(--spring-bounce), opacity 0.35s;
}
@starting-style {
  .toast { width: 118px; height: 34px; }
}
.toast > * { animation: island-in 0.35s 0.15s both; }
@keyframes island-in { from { opacity: 0; transform: scale(0.8); } }
.toast i { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--accent); }
.toast i svg { width: 18px; height: 18px; fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.toast.is-err i { background: var(--danger); }
.toast.is-err i svg { stroke: #fff; }
.toast.is-out { width: 118px; height: 34px; opacity: 0; transition-duration: 0.45s; }
.toast.is-out > * { opacity: 0; transition: opacity 0.15s; }

/* корзина и окна выезжают на пружине */
.drawer { transition: transform 0.6s var(--spring), visibility 0s 0.6s; }
.drawer.is-open { transition: transform 0.6s var(--spring); }
.modal-card { animation: sheet-pop 0.6s var(--spring-bounce) both; }
@keyframes sheet-pop { from { opacity: 0; transform: scale(0.9) translateY(24px); } }

/* суперэллипс вместо обычных скруглений (там, где браузер умеет) */
@supports (corner-shape: squircle) {
  .btn, .cart-btn, .ip, .icon-btn, .nick, .field, .tier, .perks li, .facts div, .rm-stat, .compare th button, .chips code, .qty, .line-art, .hint-warn, .sec-num, .ip-act { corner-shape: squircle; }
  .btn { border-radius: 22px; }
  .cart-btn, .icon-btn { border-radius: 20px; }
  .ip, .nick, .field { border-radius: 24px; }
  .ip-act, .tier, .perks li, .chips code, .qty, .sec-num { border-radius: 14px; }
  .facts div, .rm-stat, .compare th button, .hint-warn { border-radius: 20px; }
  .line-art { border-radius: 20px; }
  .picker, .detail, .segc-cats, .social, .modal-card, .drawer { corner-shape: squircle; }
  .picker, .detail { border-radius: 40px; }
  .segc-cats { border-radius: 30px; }
  .social { border-radius: 32px; }
  .modal-card { border-radius: 40px; }
  .pick, .pick-ink, .pick-ico, .segc, .segc-thumb, .segc-opt, .social-ico, .nick-head, .cgroup h5 svg { corner-shape: squircle; }
  .pick, .pick-ink { border-radius: 24px; }
  .pick-ico { border-radius: 18px; }
  .segc { border-radius: 22px; }
  .segc-thumb, .segc-opt { border-radius: 17px; }
  .segc-cats .segc-thumb, .segc-cats .segc-opt { border-radius: 22px; }
  .social-ico { border-radius: 20px; }
  .nick-head { border-radius: 16px; }
  .cgroup h5 svg { border-radius: 12px; }
  .picker-head { border-radius: 40px 40px 0 0; }
}

/* ───────────────────────────── адаптив ───────────────────────────── */

@media (max-width: 1100px) {
}

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hero-pond { order: -1; width: min(420px, 90%); margin: 0 auto; }
  .hero-text { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .shop { grid-template-columns: 1fr; height: auto; }
  .picker-list { max-height: 360px; }
  .detail { overflow: clip; }
  .detail .dt-scroll { overflow: visible; }
  .detail .dt-foot { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -18px 30px -12px rgba(0, 0, 0, 0.6); }
  .foot-socials { grid-template-columns: 1fr; }
  .consent { font-size: 11px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .top-in { gap: 10px; height: 60px; }
  .nav { margin: 0; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 18px), transparent); }
  .nav a { padding: 8px 10px; font-size: 14px; }
  .brand-name, .cart-sum { display: none; }
  .cart-btn { padding: 0 11px; }
  .sec { padding: 56px 0; }
  .sec-head { grid-template-columns: 1fr; row-gap: 12px; margin-bottom: 24px; }
  .sec-num { justify-self: start; }
  .sec-head p { grid-column: 1; margin-top: 0; font-size: 16px; }
  .hero { padding-top: 16px; }
  .hero-sub { font-size: 17px; }
  .ip-v { font-size: 17px; }


  /* окно привилегии — снизу, как шторка */
  .dt-scroll { padding: 22px 18px 12px; }
  .dt-head { gap: 16px; }
  .dt-art, .dt-art .mc { width: 76px; }
  .dt-name { font-size: 32px; }
  .term b { font-size: 18px; }
  .rm-stats { grid-template-columns: repeat(3, 1fr); }
  .dt-foot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }
  .dt-row { flex-direction: column; }
  .dt-row .btn { min-height: 50px; }
  .pick { grid-template-columns: 48px 1fr auto 14px; gap: 12px; }
  .pick-ico { width: 48px; height: 48px; }
  .pick-ico .mc { width: 34px; }
  .cmds li { flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }

  .ex-fields { grid-template-columns: 1fr; }
  .ex-arrow { justify-self: center; transform: rotate(90deg); width: 24px; }
  .segc-cats { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-radius: 0 !important; border-left: 0; border-right: 0; }
  .segc-cats .segc-opt { flex: 0 0 auto; min-height: 46px; padding: 0 14px; font-size: 14.5px; }
  .meter { grid-template-columns: 1fr 76px; row-gap: 6px; }
  .meter-bar { grid-column: 1 / -1; grid-row: 2; }
  .dt-row { flex-direction: row; flex-wrap: wrap; }
  .dt-row .nick { flex: 1 1 100%; }
  .dt-row .pay { flex: 1; }
  .dt-row .btn { min-height: 54px; padding: 0 16px; }
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: min(86dvh, 720px); border-left: 0; border-top: 1px solid var(--line-2); border-radius: 30px 30px 0 0; transform: translateY(104%); }
  .drawer-head { position: relative; padding-top: 24px; touch-action: none; cursor: grab; }
  .drawer-head::before { content: ''; position: absolute; top: 9px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); }
}
@keyframes sheet { from { transform: translateY(100%); } }

@media (max-width: 380px) {
  .pick-name { font-size: 15px; }
  .pick-price { font-size: 14px; }
}

@media (hover: none) {
  .card { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; translate: none; }
}
