:root {
  --bg: #0e0b1a;
  --bg2: #17122b;
  --card: #1d1735;
  --card2: #261e45;
  --line: #ffffff14;
  --text: #f4f1ff;
  --muted: #a39cc4;
  --accent: #8b5cff;
  --accent2: #ff5ca8;
  --spark: #ffd54a;
  --t-common: #a2abbf;
  --t-rare: #4da3ff;
  --t-epic: #b06bff;
  --t-legendary: #ffb02e;
  --t-mythic: #ff4d8d;
  --radius: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
body { min-height: 100vh; background: radial-gradient(120% 60% at 50% -10%, #2a1a5e 0%, var(--bg) 60%) fixed; overscroll-behavior: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
b, strong { font-weight: 650; }

/* ---------- верхняя панель ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: linear-gradient(var(--bg) 60%, transparent); }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -.3px; flex: 1; display: flex; align-items: center; gap: 8px; }
.brand .logo { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: grid; place-items: center; font-size: 17px; box-shadow: 0 4px 18px #8b5cff66; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 650; }
.pill.spark { color: var(--spark); }
.pill.spark.bump { animation: bump .5s; }
.icon-btn { width: 36px; height: 36px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; }
@keyframes bump { 30% { transform: scale(1.18); } }

main { padding: 0 14px calc(90px + var(--safe-b)); }
.tab { display: none; animation: fadeUp .35s ease; }
.tab.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
h2 { font-size: 24px; margin: 6px 2px 4px; letter-spacing: -.4px; }
.sub { color: var(--muted); margin: 0 2px 14px; font-size: 14px; }

.daily { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 16px; border-radius: var(--radius);
  background: linear-gradient(120deg, #3b2393, #8b2d84); box-shadow: 0 8px 30px #6b2ec855; position: relative; overflow: hidden; }
.daily::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #ffffff22 50%, transparent 70%); animation: sweep 3.5s infinite; }
.daily .ico { font-size: 28px; }
.daily .txt { flex: 1; } .daily .txt small { display: block; opacity: .8; }
.daily button { position: relative; z-index: 1; padding: 9px 14px; border-radius: 12px; background: #fff; color: #2a1458; font-weight: 700; }
.daily button:disabled { opacity: .55; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px 14px; padding: 0 14px; scrollbar-width: none; }
.chips button { flex: none; padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; }
.chips button.on { background: var(--text); color: var(--bg); }

/* ---------- сетка карточек ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; text-align: left; transition: transform .15s; position: relative; }
/* карточки вне экрана не отрисовываем — анимации подарков не тратят ресурсы */
.grid > .card { content-visibility: auto; contain-intrinsic-size: auto 230px; }
.card:active { transform: scale(.97); }
.card .meta { padding: 8px 4px 2px; }
.card .name { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .info { color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 6px; margin-top: 2px; }
.price { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 6px 10px; border-radius: 10px; background: #ffd54a1c; color: var(--spark); font-weight: 700; font-size: 13px; }
.price.sold { background: #ffffff10; color: var(--muted); }
.bar { height: 4px; border-radius: 4px; background: #ffffff12; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.badge { position: absolute; top: 14px; left: 14px; z-index: 3; padding: 3px 8px; border-radius: 8px; font-size: 11px; font-weight: 750; letter-spacing: .3px; background: #0008; backdrop-filter: blur(6px); }
.badge.r { right: 14px; left: auto; }
.tier-common { color: var(--t-common); } .tier-rare { color: var(--t-rare); } .tier-epic { color: var(--t-epic); }
.tier-legendary { color: var(--t-legendary); }
.tier-mythic { background-image: linear-gradient(90deg, #ff4d8d, #ffd54a, #5ee7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge.tier-mythic { background-image: linear-gradient(90deg, #ff4d8d, #ffd54a, #5ee7ff); -webkit-background-clip: border-box; background-clip: border-box; color: #1a0f2e; }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.empty .big { font-size: 54px; margin-bottom: 10px; }

/* ---------- арт подарка ---------- */
.art { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 50% 45%, var(--c1) 0%, var(--c2) 78%); }
.art.base { background: radial-gradient(circle at 50% 45%, var(--c1) 0%, var(--c2) 60%, #ffffff06 100%); }
.art .pattern { position: absolute; inset: 0; z-index: 0; }
.art .pattern i { position: absolute; display: block; color: var(--pc); line-height: 0; }
.art .pattern svg { width: 100%; height: auto; }
.art .model { position: absolute; inset: 16%; z-index: 2; display: grid; place-items: center; }
.art.base .model { inset: 12%; }
.art .model svg { width: 100%; height: 100%; overflow: visible; }

.bd-aurora::before { content: ""; position: absolute; inset: -30%; z-index: -1; mix-blend-mode: screen; opacity: .8;
  background: radial-gradient(40% 25% at 30% 30%, #3dffb0aa, transparent), radial-gradient(35% 22% at 70% 40%, #7c5cffaa, transparent), radial-gradient(30% 20% at 50% 70%, #00e5ffaa, transparent);
  animation: aurora 7s ease-in-out infinite alternate; }
@keyframes aurora { to { transform: translate(8%, -6%) rotate(12deg) scale(1.1); } }
.bd-platinum::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(115deg, transparent 35%, #ffffffb0 50%, transparent 65%); animation: sweep 3.2s ease-in-out infinite; }

/* эффекты материалов */
.model-svg.float { animation: float 4.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-4%) rotate(-1.5deg); } }
.model-svg .flame { transform-box: fill-box; transform-origin: 50% 0%; animation: flicker .18s ease-in-out infinite alternate; }
.model-svg .flame path { transform-box: fill-box; }
@keyframes flicker { to { transform: scaleY(1.12) scaleX(.92); } }
.model-svg .pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.model-svg .blink { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.model-svg .sparkle { animation: twinkle 2.4s ease-in-out infinite; transform: scale(0); }
@keyframes twinkle { 0%, 100% { transform: scale(0); opacity: 0; } 50% { transform: scale(1); opacity: 1; } }
.fx-neon .shape * { stroke: var(--glow); stroke-width: 2.5; stroke-opacity: 1; }
.fx-neon { filter: drop-shadow(0 0 4px var(--glow)) drop-shadow(0 0 12px var(--glow)); }
.fx-lava { animation: lava 2.6s ease-in-out infinite; }
.model-svg.float.fx-lava { animation: float 4.5s ease-in-out infinite, lava 2.6s ease-in-out infinite; }
@keyframes lava { 0%, 100% { filter: drop-shadow(0 0 6px #ff5a1a); } 50% { filter: drop-shadow(0 0 18px #ff8a1a) drop-shadow(0 0 4px #ffcf3a); } }
.fx-glass .shape { opacity: .8; }
.fx-glass { filter: drop-shadow(0 0 10px #c8f6ff); }
.fx-holo { animation: holo 4s linear infinite; }
.model-svg.float.fx-holo { animation: float 4.5s ease-in-out infinite, holo 4s linear infinite; }
@keyframes holo { from { filter: hue-rotate(0) drop-shadow(0 0 8px #ff9cf0aa); } to { filter: hue-rotate(360deg) drop-shadow(0 0 8px #ff9cf0aa); } }
.fx-gold { filter: drop-shadow(0 0 10px #ffd54a88); }
.fx-ghost { animation: ghost 3.6s ease-in-out infinite !important; filter: drop-shadow(0 0 14px #e5deff); }
.fx-ghost .shape { opacity: .88; }
@keyframes ghost { 0%, 100% { transform: translateY(0); opacity: .95; } 50% { transform: translateY(-7%); opacity: .7; } }
.fx-cosmos { filter: drop-shadow(0 0 10px #8a5cffaa); }
.fx-blackhole { filter: drop-shadow(0 0 14px #b06bff) drop-shadow(0 0 3px #ffd1ff); }
.fx-blackhole .orbit { animation: orbit 1.4s linear infinite; }
@keyframes orbit { to { stroke-dashoffset: -116; } }
.fx-blackhole .orbit:not([stroke-dasharray]) { stroke-dasharray: 60 30; }

/* ---------- нижние вкладки ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; padding: 8px 8px calc(8px + var(--safe-b));
  background: #120e22ee; backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabbar button { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
.tabbar button .i { font-size: 22px; filter: grayscale(1) opacity(.6); transition: .2s; }
.tabbar button.on { color: var(--text); }
.tabbar button.on .i { filter: none; transform: translateY(-2px) scale(1.1); }

/* ---------- шторка ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.sheet .scrim { position: absolute; inset: 0; background: #0009; opacity: 0; transition: opacity .25s; }
.sheet .body { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; padding: 10px 18px calc(18px + var(--safe-b));
  background: var(--bg2); border-radius: 26px 26px 0 0; border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .9, .25, 1); }
.sheet.open { pointer-events: auto; }
.sheet.open .scrim { opacity: 1; }
.sheet.open .body { transform: none; }
.sheet .grip { width: 40px; height: 5px; border-radius: 4px; background: #ffffff30; margin: 0 auto 12px; }
.sheet .hero { width: min(64vw, 250px); margin: 0 auto; }
.sheet .hero .art { border-radius: 24px; box-shadow: 0 20px 60px #0008; }
.sheet h3 { text-align: center; font-size: 22px; margin: 14px 0 2px; letter-spacing: -.3px; }
.sheet .center { text-align: center; color: var(--muted); }
.props { margin: 16px 0; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.props .row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.props .row:last-child { border-bottom: 0; }
.props .k { color: var(--muted); width: 92px; flex: none; }
.props .v { flex: 1; font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; }
.props .p { color: var(--muted); font-size: 12px; padding: 2px 7px; border-radius: 7px; background: #ffffff0d; }
.dot { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 2px solid #fff3; }
.mini-sym { width: 18px; height: 18px; flex: none; color: var(--text); }
.mini-model { width: 26px; height: 26px; flex: none; }
.actions { display: grid; gap: 10px; margin-top: 14px; }
.btn { padding: 14px; border-radius: 15px; font-weight: 700; font-size: 16px; background: var(--card2); border: 1px solid var(--line); text-align: center; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); border: 0; box-shadow: 0 8px 26px #8b5cff55; }
.btn.gold { background: linear-gradient(135deg, #ffcf3a, #ff8a1a); color: #2a1300; border: 0; box-shadow: 0 8px 26px #ffb02e55; position: relative; overflow: hidden; }
.btn.gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #fff8 50%, transparent 70%); animation: sweep 2.6s infinite; }
.btn:disabled { opacity: .5; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input { width: 100%; padding: 14px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 16px; }
.linkbox { padding: 12px; border-radius: 14px; background: var(--card); border: 1px dashed #ffffff30; font-size: 13px; word-break: break-all; color: var(--muted); }
.previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.previews .art { border-radius: 14px; transition: opacity .4s; }
.section-t { font-weight: 700; margin: 18px 2px 8px; display: flex; justify-content: space-between; align-items: center; }
.odds { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.odds .o { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; text-align: center; font-size: 12px; }
.odds .o .art { border-radius: 10px; margin-bottom: 6px; }
.odds .o .sw { aspect-ratio: 1; border-radius: 10px; margin-bottom: 6px; display: grid; place-items: center; }
.odds .o .sw svg { width: 46%; }
.odds .o small { display: block; color: var(--muted); }

/* ---------- оверлей анимаций ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: #070510e8; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.overlay.show { display: grid; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; } }
.stage { position: relative; width: min(86vw, 360px); display: grid; justify-items: center; gap: 18px; }
.stage .glow { position: absolute; top: 0; left: 50%; width: 100%; aspect-ratio: 1; transform: translateX(-50%) scale(.6); border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--gc, #b06bff) 30%, transparent 70%); opacity: 0; filter: blur(10px); pointer-events: none; }
.stage .rays { position: absolute; top: 50%; left: 50%; width: 260%; aspect-ratio: 1; translate: -50% -62%; border-radius: 50%; opacity: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, var(--rc, #ffffff) 0deg 7deg, transparent 7deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 8%, transparent 62%); mask: radial-gradient(circle, #000 8%, transparent 62%); }
.stage.revealed .rays { opacity: .35; animation: spin 14s linear infinite; transition: opacity .8s; }
@keyframes spin { to { rotate: 360deg; } }
.stage .ucard { position: relative; width: 100%; z-index: 2; }
.stage .ucard .art { border-radius: 28px; box-shadow: 0 30px 80px #000a; }
.stage .ucard.charging { animation: charge 1.7s cubic-bezier(.5, 0, 1, 1) forwards; }
.stage.charging .glow { animation: glowUp 1.7s ease-in forwards; }
@keyframes glowUp { to { opacity: 1; transform: translateX(-50%) scale(1.25); } }
@keyframes charge {
  0% { transform: none; filter: brightness(1); }
  10% { transform: translate(-1px, 1px) rotate(-1deg); } 20% { transform: translate(2px, -1px) rotate(1deg); }
  30% { transform: translate(-3px, 2px) rotate(-2deg) scale(1.01); } 40% { transform: translate(3px, -2px) rotate(2deg) scale(1.02); }
  50% { transform: translate(-4px, 3px) rotate(-3deg) scale(1.03); } 60% { transform: translate(5px, -3px) rotate(3deg) scale(1.04); }
  70% { transform: translate(-6px, 3px) rotate(-4deg) scale(1.05); } 80% { transform: translate(7px, -4px) rotate(4deg) scale(1.06); filter: brightness(1.5); }
  90% { transform: translate(-8px, 4px) rotate(-5deg) scale(1.08); filter: brightness(2.2); }
  100% { transform: scale(1.12); filter: brightness(4) saturate(0); }
}
.stage .ucard.spin .art { animation: wobble .12s ease-in-out infinite alternate; }
@keyframes wobble { from { transform: scale(.985); } to { transform: scale(1.015); } }
.stage .ucard.pop { animation: pop .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
.stage .ucard.final .art::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; box-shadow: inset 0 0 0 2px #ffffff40; background: linear-gradient(115deg, transparent 30%, #ffffff70 50%, transparent 70%); background-size: 250% 100%; animation: shine 1.4s .2s ease-out forwards; background-position: 150% 0; }
@keyframes shine { to { background-position: -100% 0; } }
.locks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; z-index: 2; }
.lock { padding: 9px 6px; border-radius: 14px; background: #ffffff10; border: 1px solid var(--line); text-align: center; font-size: 11px; color: var(--muted); transition: .3s; min-height: 58px; }
.lock b { display: block; font-size: 13px; color: var(--text); margin-top: 2px; }
.lock .q { display: inline-block; animation: qq .5s infinite alternate; }
@keyframes qq { to { opacity: .3; } }
.lock.on { background: #ffffff1c; border-color: #ffffff40; animation: lockIn .45s cubic-bezier(.2, 1.8, .4, 1); }
.lock small { display: block; font-size: 11px; color: var(--spark); }
@keyframes lockIn { 0% { transform: scale(.8) rotateX(90deg); } 100% { transform: none; } }
.reveal-title { text-align: center; z-index: 2; min-height: 64px; }
.reveal-title .t { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.reveal-title .tier { display: inline-block; margin-top: 6px; padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; background: #ffffff14; animation: tierIn .6s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes tierIn { from { transform: scale(0) rotate(-10deg); } }
.overlay .done { width: 100%; z-index: 2; opacity: 0; transform: translateY(10px); transition: .4s .2s; pointer-events: none; }
.overlay .done.on { opacity: 1; transform: none; pointer-events: auto; }
.flash { position: fixed; inset: 0; z-index: 90; background: #fff; pointer-events: none; opacity: 0; }
.flash.go { animation: flash .6s ease-out; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }
.overlay.shake { animation: shakeAll .5s; }
@keyframes shakeAll { 20% { transform: translate(-8px, 4px); } 40% { transform: translate(8px, -6px); } 60% { transform: translate(-6px, 6px); } 80% { transform: translate(5px, -3px); } }
.banner { position: fixed; top: 16%; left: 0; right: 0; z-index: 95; text-align: center; font-size: 40px; font-weight: 900; letter-spacing: 2px; pointer-events: none;
  text-transform: uppercase; animation: banner 1.9s cubic-bezier(.2, 1.2, .4, 1) forwards; text-shadow: 0 0 30px currentColor; }
@keyframes banner { 0% { transform: scale(3); opacity: 0; } 20% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { transform: scale(.9) translateY(-20px); opacity: 0; } }

/* распаковка подарка */
.box { position: relative; width: 70%; aspect-ratio: 1; z-index: 2; }
.box .lid, .box .base-b { position: absolute; left: 6%; right: 6%; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.box .base-b { top: 38%; bottom: 4%; }
.box .lid { top: 22%; height: 20%; left: 0; right: 0; background: linear-gradient(135deg, #a77bff, #ff7cbd); box-shadow: 0 6px 20px #0005; }
.box .rib-v { position: absolute; left: 45%; width: 10%; top: 22%; bottom: 4%; background: #ffd54a; z-index: 1; }
.box .bow { position: absolute; left: 50%; top: 8%; translate: -50% 0; font-size: 56px; z-index: 2; line-height: 1; }
.box.shake { animation: boxShake .9s ease-in-out; }
@keyframes boxShake { 15%, 45%, 75% { transform: rotate(-6deg); } 30%, 60%, 90% { transform: rotate(6deg); } }
.box.open .lid, .box.open .bow { transition: transform .6s cubic-bezier(.3, 1.6, .5, 1), opacity .6s; transform: translateY(-140%) rotate(-25deg); opacity: 0; }
.box.open .base-b, .box.open .rib-v { transition: opacity .4s .2s; opacity: 0; }
.box .inside { position: absolute; inset: 0; opacity: 0; transform: scale(.3) translateY(30%); z-index: 3; }
.box.open .inside { transition: transform .8s .15s cubic-bezier(.2, 1.5, .4, 1), opacity .3s .15s; opacity: 1; transform: none; }

#fx { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 85; pointer-events: none; }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); z-index: 100; translate: -50% 20px; opacity: 0; transition: .3s; padding: 11px 16px; border-radius: 14px;
  background: #2b2350; border: 1px solid #ffffff22; box-shadow: 0 10px 30px #0007; max-width: 88vw; text-align: center; font-weight: 600; pointer-events: none; }
.toast.show { opacity: 1; translate: -50% 0; }
.toast.err { background: #4a1630; }
.loader { display: grid; place-items: center; min-height: 60vh; color: var(--muted); }
.loader .spin { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #ffffff22; border-top-color: var(--accent); animation: spin 1s linear infinite; margin-bottom: 12px; }
.dev { font-size: 11px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .model-svg.float, .bd-aurora::before, .bd-platinum::after, .art .model, .aura b, .aura b::before { animation: none !important; } }


/* ================= анимации уникальных подарков (атрибут «Анимация») ================= */
.art .model[class*="mo-"] { will-change: transform; }
.mo-float   { animation: float 4.5s ease-in-out infinite; }
.mo-sway    { transform-origin: 50% 92%; animation: sway 1.8s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.mo-bounce  { transform-origin: 50% 100%; animation: bounce 1.3s cubic-bezier(.3, 0, .5, 1) infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0) scale(1.07, .93); } 15% { transform: scale(.95, 1.05); } 45% { transform: translateY(-15%) scale(1); } 78% { transform: translateY(0) scale(1); } }
.mo-breathe { animation: breathe 2.6s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(.96); filter: brightness(1); } to { transform: scale(1.08); filter: brightness(1.15); } }
.mo-swing   { transform-origin: 50% -10%; animation: swing 2.2s ease-in-out infinite alternate; }
@keyframes swing { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.mo-jelly   { animation: jelly 1.7s ease-in-out infinite; }
@keyframes jelly { 0%, 100% { transform: scale(1, 1); } 25% { transform: scale(1.13, .87); } 50% { transform: scale(.9, 1.1); } 75% { transform: scale(1.05, .95); } }
.mo-flip    { animation: flip 3.4s ease-in-out infinite; }
@keyframes flip { 0%, 55% { transform: none; } 68% { transform: translateY(-14%) rotate(0); } 86% { transform: translateY(-14%) rotate(360deg); } 100% { transform: translateY(0) rotate(360deg); } }
.mo-spin3d  { animation: spin3d 4s linear infinite; }
@keyframes spin3d { from { transform: perspective(500px) rotateY(0); } to { transform: perspective(500px) rotateY(360deg); } }
.mo-orbit   { animation: orbitMove 5s linear infinite; }
@keyframes orbitMove { from { transform: rotate(0) translateX(7%) rotate(0); } to { transform: rotate(360deg) translateX(7%) rotate(-360deg); } }
.mo-glitch  { animation: glitch 2.8s steps(1) infinite; }
@keyframes glitch {
  0%, 84%, 100% { transform: none; filter: none; }
  86% { transform: translate(-4%, 1%) skewX(8deg); filter: drop-shadow(4px 0 #ff00e1) drop-shadow(-4px 0 #00fff0); }
  89% { transform: translate(3%, -1%); filter: drop-shadow(-5px 0 #ff00e1) drop-shadow(5px 0 #00fff0) hue-rotate(90deg); }
  92% { transform: translate(-2%, 0) skewX(-6deg); filter: drop-shadow(3px 0 #ff00e1); }
  95% { transform: translate(1%, 2%); filter: hue-rotate(-90deg); }
}
.mo-phase   { animation: phase 4.2s ease-in-out infinite; }
@keyframes phase {
  0%, 58% { opacity: 1; transform: none; }
  64% { opacity: 0; transform: scale(.3) rotate(25deg); filter: brightness(3); }
  68% { opacity: 0; transform: translate(16%, -10%) scale(.3); }
  74%, 82% { opacity: 1; transform: translate(16%, -10%) scale(.8); filter: none; }
  88% { opacity: 0; transform: translate(16%, -10%) scale(.2); filter: brightness(3); }
  92% { opacity: 0; transform: scale(.3); }
  100% { opacity: 1; transform: none; }
}
.mo-quantum { animation: float 4.5s ease-in-out infinite; }
.mo-quantum > .echo { position: absolute; inset: 0; opacity: .38; mix-blend-mode: screen; }
.mo-quantum > .echo svg { width: 100%; height: 100%; }
.mo-quantum > .e1 { animation: echo1 2.4s ease-in-out infinite alternate; filter: hue-rotate(120deg); }
.mo-quantum > .e2 { animation: echo2 2.4s ease-in-out infinite alternate; filter: hue-rotate(240deg); }
@keyframes echo1 { from { transform: translateX(-12%) scale(.92); } to { transform: translateX(3%); opacity: .15; } }
@keyframes echo2 { from { transform: translateX(12%) scale(.92); } to { transform: translateX(-3%); opacity: .15; } }

/* гирлянды и огоньки новогодних моделей */
.model-svg .lights > * { animation: lamp 1.1s ease-in-out infinite alternate; }
.model-svg .lights > *:nth-child(2n) { animation-delay: -.55s; }
.model-svg .lights > *:nth-child(3n) { animation-duration: 1.6s; }
@keyframes lamp { from { opacity: .35; } to { opacity: 1; } }

/* ================= эффекты (атрибут «Эффект») ================= */
.aura { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; border-radius: inherit; }
.aura b { position: absolute; inset: 0; animation: var(--t) linear var(--d) infinite; }
.aura b::before { content: ""; position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; }

.au-sparkles b::before { background: #fff; transform: scale(0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0Q12 12 24 12Q12 12 12 24Q12 12 0 12Q12 12 12 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0Q12 12 24 12Q12 12 12 24Q12 12 0 12Q12 12 12 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: twinkle var(--t) ease-in-out var(--d) infinite; filter: drop-shadow(0 0 3px #fff); }

.au-bubbles b { animation-name: rise; }
.au-bubbles b::before { top: 102%; border-radius: 50%; border: 1.5px solid #ffffffb0; background: radial-gradient(circle at 32% 30%, #ffffffc0 0 12%, #ffffff18 30%, transparent 70%); }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(calc(var(--dx) * .3), -55%); } 100% { transform: translate(var(--dx), -112%); opacity: 0; } }

.au-snow b { animation-name: fall; }
.au-snow b::before { top: -6%; border-radius: 50%; background: #fff; box-shadow: 0 0 4px #fff; }
.au-snow.soft { z-index: 1; opacity: .55; }
@keyframes fall { from { transform: translate(0, 0); } to { transform: translate(var(--dx), 112%); } }

.au-fireflies b { animation: wander var(--t) ease-in-out var(--d) infinite alternate; }
.au-fireflies b::before { border-radius: 50%; background: #f4ff9a; box-shadow: 0 0 6px 2px #d8ff4a, 0 0 14px 4px #b8ff2a66; animation: blinkGlow 1.6s ease-in-out var(--d) infinite alternate; }
@keyframes wander { to { transform: translate(var(--dx), var(--dy)); } }
@keyframes blinkGlow { from { opacity: .25; } to { opacity: 1; } }

.au-hearts b { animation-name: rise; animation-timing-function: ease-out; }
.au-hearts b::before { top: 100%; background: #ff5c9a; filter: drop-shadow(0 0 4px #ff5c9a);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C.9 8.2 3 4.5 6.6 4.5c2.1 0 3.6 1.2 4.4 2.6.8-1.4 2.3-2.6 4.4-2.6 3.6 0 5.7 3.7 4.2 7.2C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C.9 8.2 3 4.5 6.6 4.5c2.1 0 3.6 1.2 4.4 2.6.8-1.4 2.3-2.6 4.4-2.6 3.6 0 5.7 3.7 4.2 7.2C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat; }

.au-embers b { animation-name: rise; animation-timing-function: ease-in; }
.au-embers b::before { top: 100%; border-radius: 50%; background: #ffcf3a; box-shadow: 0 0 5px 2px #ff6a00, 0 0 12px 3px #ff3d0066; animation: blinkGlow .25s linear var(--d) infinite alternate; }

.au-confetti b { animation-name: fall; }
.au-confetti b::before { top: -6%; aspect-ratio: 1 / 1.8; background: var(--c); border-radius: 1px; animation: confSpin 1.1s linear var(--d) infinite; }
@keyframes confSpin { from { transform: rotate(var(--r)) rotateX(0); } to { transform: rotate(calc(var(--r) + 360deg)) rotateX(360deg); } }

.au-starfall b { animation: shoot var(--t) ease-in var(--d) infinite; }
.au-starfall b::before { top: calc(var(--y) * .5); left: calc(var(--x) + 20%); aspect-ratio: auto; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #fff, #fff0); transform: rotate(-35deg); transform-origin: 0 50%; box-shadow: 0 0 6px #fff; }
@keyframes shoot { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: 1; } 40% { transform: translate(-60%, 42%); opacity: 0; } 100% { transform: translate(-60%, 42%); opacity: 0; } }

.au-lightning::after { content: ""; position: absolute; inset: 0; background: #d6e4ff; opacity: 0; animation: strobe 3.1s steps(1) infinite; mix-blend-mode: screen; }
.au-lightning b { animation: strobe var(--t) steps(1) var(--d) infinite; opacity: 0; }
.au-lightning b::before { aspect-ratio: 1 / 2; top: calc(var(--y) * .6); background: #fff; filter: drop-shadow(0 0 4px #9cc4ff) drop-shadow(0 0 10px #6aa0ff);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 24'%3E%3Cpath d='M7 0L1 13h4l-2 11 8-14H7l3-10z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 24'%3E%3Cpath d='M7 0L1 13h4l-2 11 8-14H7l3-10z'/%3E%3C/svg%3E") center/contain no-repeat; }
@keyframes strobe { 0%, 86%, 100% { opacity: 0; } 88% { opacity: .9; } 90% { opacity: .1; } 92% { opacity: 1; } 95% { opacity: 0; } }
.au-lightning::after { animation-name: strobeBg; }
@keyframes strobeBg { 0%, 87%, 100% { opacity: 0; } 88% { opacity: .35; } 92% { opacity: .2; } 94% { opacity: 0; } }

.au-halo b { animation: haloBob 3s ease-in-out infinite alternate; }
.au-halo b::before { left: 27%; top: 6%; width: 46%; aspect-ratio: 3.4; border-radius: 50%; border: 3px solid #ffe27a;
  box-shadow: 0 0 10px 2px #ffd54a, inset 0 0 8px #ffd54a; animation: haloGlow 1.8s ease-in-out infinite alternate; }
@keyframes haloBob { to { transform: translateY(4%); } }
@keyframes haloGlow { to { box-shadow: 0 0 20px 6px #ffd54a, inset 0 0 12px #fff3b0; border-color: #fff8d6; } }

.au-rainbow { z-index: 1; }
.au-rainbow b { animation: spin 8s linear infinite; }
.au-rainbow b::before { left: 8%; top: 8%; width: 84%; border-radius: 50%; opacity: .75;
  background: conic-gradient(#ff4d4d, #ffb84d, #fff04d, #4dff88, #4dd8ff, #8a6bff, #ff4dd8, #ff4d4d);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%, #000 69%, transparent 70%);
          mask: radial-gradient(circle, transparent 60%, #000 61%, #000 69%, transparent 70%); filter: blur(1px) drop-shadow(0 0 6px #fff8); }

/* ================= скрафченный подарок — живая рамка ================= */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.art .frame { position: absolute; inset: 0; z-index: 4; border-radius: inherit; padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--ang), #ffd54a, #ff4d8d, #5ee7ff, #b06bff, #ffd54a);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: frameSpin 3s linear infinite; filter: drop-shadow(0 0 4px #ffd54a); }
@keyframes frameSpin { to { --ang: 360deg; } }

/* ================= красивые номера, подписи ================= */
.num-special { background: linear-gradient(90deg, #ffd54a, #fff3b0, #ffb02e, #ffd54a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: numShine 2.4s linear infinite; }
@keyframes numShine { to { background-position: -200% 0; } }
.chip-special { display: inline-block; margin: 6px 4px 0; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #ffd54a22; color: var(--spark); }
.chip-crafted { background: linear-gradient(90deg, #ff4d8d33, #5ee7ff33); color: #fff; }
.note { margin: 14px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); position: relative; }
.note p { margin: 0 0 6px; font-style: italic; }
.note small { color: var(--muted); }
textarea.input { resize: none; min-height: 84px; }

/* ================= надетый подарок ================= */
.brand .logo.worn { background: none; box-shadow: none; overflow: hidden; padding: 0; width: 34px; height: 34px; }
.brand .logo.worn .art { width: 100%; border-radius: 10px; }
.brand .logo.worn .pattern, .brand .logo.worn .aura { display: none; }
.brand .logo.worn .art .model { inset: 8%; }
body.wearing { background: radial-gradient(120% 60% at 50% -10%, var(--wear, #2a1a5e) 0%, var(--bg) 62%) fixed; }
.badge.wear { left: auto; right: 14px; color: #fff; }

/* ================= новогодний раздел ================= */
.season { position: relative; overflow: hidden; border-radius: var(--radius); padding: 16px; margin: 4px 0 14px;
  background: radial-gradient(120% 140% at 0% 0%, #1c6b4a 0%, #0d2f3f 55%, #10183a 100%); border: 1px solid #ffffff1c; }
.season h2 { margin: 0; position: relative; z-index: 2; }
.season .sub { margin: 4px 0 0; position: relative; z-index: 2; color: #d9f5ff; }
.season .countdown { position: relative; z-index: 2; display: inline-flex; gap: 6px; margin-top: 10px; }
.season .countdown span { padding: 6px 9px; border-radius: 10px; background: #ffffff18; font-weight: 750; font-variant-numeric: tabular-nums; }
.season .countdown small { display: block; font-size: 10px; font-weight: 600; opacity: .7; text-align: center; }
.season .aura { z-index: 1; border-radius: 0; }
.season .garland { position: absolute; left: -10px; right: -10px; top: -6px; height: 26px; z-index: 2; display: flex; justify-content: space-between; }
.season .garland i { width: 10px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; margin-top: 10px; animation: lamp 1s ease-in-out infinite alternate; box-shadow: 0 0 10px currentColor; background: currentColor; }
.season .garland i:nth-child(4n+1) { color: #ff4d6d; } .season .garland i:nth-child(4n+2) { color: #ffd54a; animation-delay: -.5s; }
.season .garland i:nth-child(4n+3) { color: #5ee7ff; animation-delay: -.25s; } .season .garland i:nth-child(4n) { color: #7cff8a; animation-delay: -.75s; }
.card .ny { position: absolute; top: 14px; right: 14px; z-index: 5; font-size: 16px; }
h2.section { margin-top: 18px; }

/* ================= задания ================= */
.tasks { display: grid; gap: 10px; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.task .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; background: linear-gradient(135deg, #2f7cff, #8b5cff); }
.task .tx { flex: 1; min-width: 0; }
.task .tx b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task .tx small { color: var(--spark); font-weight: 700; }
.task .go { padding: 9px 13px; border-radius: 12px; font-weight: 700; background: var(--text); color: var(--bg); flex: none; }
.task .go.check { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.task.done { opacity: .55; }
.task.done .go { background: #ffffff14; color: var(--muted); }
.tasks-hero { padding: 16px; border-radius: var(--radius); margin-bottom: 14px; background: linear-gradient(120deg, #1f4fd1, #8b2d84); }
.tasks-hero b { font-size: 26px; }
.tabbar .cnt { position: absolute; margin: -4px 0 0 18px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent2); color: #fff; font-size: 11px; line-height: 18px; font-weight: 800; }
.tabbar button { position: relative; }

/* ================= крафт ================= */
.craft-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border-radius: 18px; background: linear-gradient(120deg, #3b1d6e, #1d3b6e); border: 1px solid #ffffff1c; }
.craft-bar .tx { flex: 1; } .craft-bar small { display: block; color: #cfd6ff; }
.craft-bar button { padding: 9px 14px; border-radius: 12px; background: #fff; color: #2a1458; font-weight: 800; }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.pick { position: relative; border-radius: 14px; padding: 4px; border: 2px solid transparent; background: var(--card); }
.pick.on { border-color: var(--spark); box-shadow: 0 0 18px #ffd54a55; }
.pick .art { border-radius: 10px; }
.pick small { display: block; text-align: center; font-size: 11px; padding: 4px 0 2px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .tick { position: absolute; top: 8px; right: 8px; z-index: 6; width: 22px; height: 22px; border-radius: 50%; background: var(--spark); color: #2a1300; display: none; place-items: center; font-weight: 900; font-size: 13px; }
.pick.on .tick { display: grid; }
.craft-stage { position: relative; width: 100%; aspect-ratio: 1; }
.craft-stage .cc { position: absolute; width: 42%; transition: transform 1.1s cubic-bezier(.6, -0.3, .7, 1), opacity .4s 1s; }
.craft-stage .cc .art { border-radius: 18px; box-shadow: 0 10px 40px #000a; }
.craft-stage .c0 { left: 29%; top: 0; } .craft-stage .c1 { left: 2%; top: 50%; } .craft-stage .c2 { left: 56%; top: 50%; }
.craft-stage.merge .c0 { transform: translate(0, 60%) scale(.4) rotate(200deg); opacity: 0; }
.craft-stage.merge .c1 { transform: translate(64%, -10%) scale(.4) rotate(-200deg); opacity: 0; }
.craft-stage.merge .c2 { transform: translate(-64%, -10%) scale(.4) rotate(200deg); opacity: 0; }
.craft-stage .cc.wiggle .art { animation: wobble .1s ease-in-out infinite alternate; }


/* ================= сюжетные образы уникальных подарков (public/stories.js) ================= */
/* сон */
.st-breathe { animation: stBreathe 3.4s ease-in-out infinite; }
@keyframes stBreathe { 50% { transform: scale(1.03, .97); } }
.st-zzz { animation: stZzz 3.6s ease-out infinite; opacity: 0; }
@keyframes stZzz { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(26px, -46px) scale(1.2); } }
/* любовь, пар, дым */
.st-beat { animation: stBeat .9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes stBeat { 30% { scale: 1.25; } }
.st-rise { animation: stRise 3s ease-out infinite; opacity: 0; }
@keyframes stRise { 0% { opacity: 0; transform: translateY(0) scale(.5); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-50px) scale(1.1); } }
.st-steam { animation: stSteam 1.6s ease-out infinite; opacity: 0; }
@keyframes stSteam { 0% { opacity: 0; transform: translateY(0) scale(.4); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-34px) scale(1.4); } }
/* праздник */
.st-confetti { animation: stConf 3s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes stConf { from { transform: translateY(-20px) rotate(0); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(170px) rotate(540deg); opacity: 0; } }
/* очки опускаются */
.st-shades { animation: stShades 5s cubic-bezier(.3, 1.4, .5, 1) infinite; }
@keyframes stShades { 0%, 8% { transform: translateY(-70px); opacity: 0; } 22%, 88% { transform: none; opacity: 1; } 100% { transform: translateY(-70px); opacity: 0; } }
/* глазастый */
.st-goo { animation: stGoo .7s ease-in-out infinite alternate; }
.st-goo + * { }
@keyframes stGoo { from { rotate: -35deg; } to { rotate: 40deg; } }
.st-wiggle { animation: stWiggle 1.4s ease-in-out infinite; }
@keyframes stWiggle { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
/* холод, злость */
.st-shiver { animation: stShiver .12s linear infinite alternate; }
@keyframes stShiver { from { transform: translateX(-1px); } to { transform: translateX(1px); } }
.st-twinkle, .st-gold-spark { animation: twinkle 2.4s ease-in-out infinite; transform: scale(0); }
.st-redden { animation: stRedden 2s ease-in-out infinite; opacity: 0; }
@keyframes stRedden { 50% { opacity: .45; } }
.st-rage { animation: stRage 2s ease-in-out infinite; }
@keyframes stRage { 45%, 55% { transform: translateX(-2px); } 50% { transform: translateX(2px) scale(1.03); } }
/* порча: 9 с — свежий → гниёт → держится → снова свежий */
.st-rot-tint { animation: stRot 9s ease-in-out infinite; opacity: 0; }
@keyframes stRot { 0%, 8% { opacity: 0; } 72%, 90% { opacity: .66; } 100% { opacity: 0; } }
.st-spot { transform: scale(0); }
.st-spot-a { animation: stSpotA 9s ease-in-out infinite; } .st-spot-b { animation: stSpotB 9s ease-in-out infinite; } .st-spot-c { animation: stSpotC 9s ease-in-out infinite; }
@keyframes stSpotA { 0%, 20% { transform: scale(0); } 45%, 90% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes stSpotB { 0%, 35% { transform: scale(0); } 62%, 90% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes stSpotC { 0%, 50% { transform: scale(0); } 75%, 90% { transform: scale(1.1); } 100% { transform: scale(0); } }
.st-shrivel { animation: stShrivel 9s ease-in-out infinite; }
@keyframes stShrivel { 0%, 10% { transform: none; } 75%, 90% { transform: scale(.93, .88) skewX(-3deg); } 100% { transform: none; } }
.st-fly { animation: stFly 2.2s linear infinite, stFlyShow 9s ease-in-out infinite; opacity: 0; }
.st-fly-1 { animation-direction: reverse, normal; animation-duration: 1.7s, 9s; }
@keyframes stFly { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes stFlyShow { 0%, 40% { opacity: 0; } 55%, 90% { opacity: 1; } 100% { opacity: 0; } }
.st-wing { animation: stWing .08s linear infinite alternate; transform-box: fill-box; transform-origin: center bottom; }
@keyframes stWing { to { transform: scaleY(.3); } }
/* джентльмен */
.st-tip { animation: stTip 4s ease-in-out infinite; transform-box: fill-box; transform-origin: 30% 100%; }
@keyframes stTip { 0%, 70%, 100% { transform: none; } 78%, 88% { transform: translateY(-10px) rotate(-14deg); } }
.st-stache { animation: stStache 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes stStache { 50% { transform: scaleX(1.08) translateY(-1px); } }
/* таяние */
.st-sag { animation: stSag 6s ease-in-out infinite; }
@keyframes stSag { 0%, 10% { transform: none; } 70%, 88% { transform: scale(1.06, .86); } 100% { transform: none; } }
.st-drip { animation: stDrip 6s ease-in infinite; transform: scaleY(0); }
@keyframes stDrip { 0%, 15% { transform: scaleY(0); } 70%, 88% { transform: scaleY(1.4); } 100% { transform: scaleY(0); } }
.st-puddle { animation: stPuddle 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes stPuddle { 0%, 20% { transform: scaleX(.2); opacity: 0; } 75%, 88% { transform: scaleX(1.2); opacity: .75; } 100% { transform: scaleX(.2); opacity: 0; } }
/* NPC, сигма, бриллиант */
.st-gray { filter: grayscale(.85) brightness(1.05); }
.st-mono { filter: grayscale(1) contrast(1.35) drop-shadow(0 0 6px #fff8); }
.st-prism { animation: stPrism 4s linear infinite; }
@keyframes stPrism { 0%, 100% { filter: drop-shadow(0 0 8px #bff4ff) saturate(1.2); } 50% { filter: drop-shadow(0 0 14px #ffd1ff) saturate(1.5) hue-rotate(25deg); } }
.st-npc { animation: stNpc 4s steps(1) infinite; }
@keyframes stNpc { 0% { transform: translateX(-6px); } 25% { transform: translateX(-2px); } 50% { transform: translateX(6px) scaleX(-1); transform-origin: 100px 100px; } 75% { transform: translateX(2px) scaleX(-1); } }
.st-dots { animation: stDots 1.2s ease-in-out infinite; }
@keyframes stDots { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
/* 6-7 */
.st-six { animation: stSix .8s ease-in-out infinite alternate; }
.st-seven { animation: stSix .8s ease-in-out infinite alternate-reverse; }
@keyframes stSix { from { transform: translateY(14px); } to { transform: translateY(-14px); } }
/* пиксели */
.st-pixel { animation: stPixel 3s steps(1) infinite; opacity: 0; }
.st-pixel-src { animation: stPixelSrc 3s steps(1) infinite; }
@keyframes stPixel { 0%, 55% { opacity: 0; } 60%, 92% { opacity: 1; } 96% { opacity: 0; } }
@keyframes stPixelSrc { 0%, 55% { opacity: 1; } 60%, 92% { opacity: 0; } 96% { opacity: 1; } }
/* аура */
.st-aura { animation: stAura 2.2s ease-in-out infinite; }
@keyframes stAura { 50% { transform: scale(1.08); opacity: .75; } }
.st-plus { animation: stPlus 2.6s ease-out infinite; opacity: 0; }
@keyframes stPlus { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 20% { opacity: 1; transform: translateY(0) scale(1.1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
/* ризз — подмигивание */
.st-wink-shut { animation: stWinkShut 3.2s steps(1) infinite; opacity: 0; }
.st-wink-open { animation: stWinkOpen 3.2s steps(1) infinite; }
@keyframes stWinkShut { 0%, 70% { opacity: 0; } 72%, 86% { opacity: 1; } 88% { opacity: 0; } }
@keyframes stWinkOpen { 0%, 70% { opacity: 1; } 72%, 86% { opacity: 0; } 88% { opacity: 1; } }
/* капибара */
.st-capy { animation: stCapy 3s ease-in-out infinite; }
@keyframes stCapy { 50% { transform: translateY(-4px) rotate(-3deg); } }
/* вампир */
.st-bat { animation: stFly 3.2s linear infinite; }
.st-bat-1 { animation-direction: reverse; animation-duration: 2.6s; }
/* зомби */
.st-stagger { animation: stStagger 2.6s ease-in-out infinite; }
@keyframes stStagger { 25% { transform: rotate(-6deg) translateX(-3px); } 60% { transform: rotate(5deg) translateX(3px); } }
/* ниндзя */
.st-tail { animation: stTail .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0 50%; }
.st-tail-2 { animation-delay: -.25s; }
@keyframes stTail { to { transform: rotate(-14deg) scaleX(1.1); } }
/* робот */
.st-scan { animation: stScan 1.6s ease-in-out infinite alternate; }
@keyframes stScan { to { transform: translateX(var(--w)); } }
.st-led { animation: stLed .8s steps(1) infinite; }
@keyframes stLed { 50% { fill: #5a1020; } }
/* хакер */
.st-code { animation: stCode 4.2s linear infinite; opacity: .8; }
@keyframes stCode { from { transform: translateY(-60px); } to { transform: translateY(230px); } }
/* трещины */
.st-crack path { stroke-dasharray: 220; stroke-dashoffset: 220; animation: stCrack 6s ease-in-out infinite; }
@keyframes stCrack { 0%, 8% { stroke-dashoffset: 220; } 55%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 220; } }
.st-crack-glow { filter: drop-shadow(0 0 3px #fff6b0); }
/* огонь */
.st-char { animation: stChar 2s ease-in-out infinite; }
@keyframes stChar { 50% { opacity: .7; } }
/* надувной */
.st-inflate { animation: stInflate 5s ease-in infinite; transform-origin: 100px 110px; }
@keyframes stInflate { 0% { transform: scale(.85); } 78% { transform: scale(1.2, 1.16); } 80% { transform: scale(1.14, 1.22); } 82% { transform: scale(1.26); opacity: 1; } 83%, 92% { transform: scale(0); opacity: 0; } 100% { transform: scale(.85); opacity: 1; } }
.st-pop { animation: stPop 5s ease-out infinite; opacity: 0; }
@keyframes stPop { 0%, 82% { opacity: 0; transform: scale(.4); } 84% { opacity: 1; transform: scale(1); } 92% { opacity: 0; transform: scale(1.3); } 100% { opacity: 0; } }
/* диско */
.st-spotlight { animation: stSpot 3.9s ease-in-out infinite; }
@keyframes stSpot { 0% { transform: translate(-60px, -50px); } 33% { transform: translate(60px, -10px); } 66% { transform: translate(-30px, 60px); } 100% { transform: translate(-60px, -50px); } }
.st-ball { animation: spin 3s linear infinite; }
/* король, богач */
.st-crown { animation: stCrown 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
@keyframes stCrown { 50% { transform: translateY(-3px) rotate(-4deg); } }
.st-bill { animation: stBill 3.5s linear infinite; opacity: 0; }
@keyframes stBill { 0% { opacity: 0; transform: translateY(0) rotate(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translateY(220px) rotate(200deg); } }
.st-facets { animation: stFacets 3s ease-in-out infinite alternate; }
@keyframes stFacets { to { opacity: .55; transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .model-svg [class*="st-"] { animation: none !important; } }

.props .about { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; }
.lock b { overflow-wrap: anywhere; }

/* анимация и эффект модели */
.odds .o .art { position: relative; overflow: hidden; }
.odds .o small.fxn { font-size: 10px; margin: 2px 0 1px; line-height: 1.3; }
.props .about.fxn { color: var(--muted); }
.fx-r { color: #ffd54a; }

/* задание «Пригласить друга» */
.task.invite { background: linear-gradient(135deg, #ffd54a1f, #ff8a3d14); border-color: #ffd54a55; }
.task.invite .ico { background: linear-gradient(135deg, #ffb13d, #ff6a3d); }
.task .inv-stat { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* «Не хватает звёзд» */
.short-hero { width: 84px; height: 84px; margin: 6px auto 0; border-radius: 26px; display: grid; place-items: center; font-size: 44px;
  background: radial-gradient(circle at 35% 30%, #ffe58a, #ffb13d 60%, #e07a00); box-shadow: 0 10px 30px #ffb13d55; }
.ways { display: grid; gap: 8px; margin-top: 14px; }
.way { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.way i { font-style: normal; font-size: 20px; }
.way span { flex: 1; }
.way b { color: var(--spark); white-space: nowrap; }

/* прогрессивный ежедневный бонус */
.daily { flex-wrap: wrap; row-gap: 10px; }
.dsteps { flex-basis: 100%; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; position: relative; z-index: 1; }
.dsteps i { font-style: normal; text-align: center; font-size: 13px; font-weight: 800; padding: 5px 0 6px; border-radius: 10px;
  background: #ffffff14; color: #ffffffb0; line-height: 1.15; }
.dsteps i small { display: block; font-size: 10px; font-weight: 600; opacity: .7; }
.dsteps i.got { background: #ffffff30; color: #fff; }
.dsteps i.got small::after { content: " ✓"; }
.dsteps i.now { background: #fff; color: #2a1458; box-shadow: 0 0 14px #ffd54a99; animation: dpulse 1.4s ease-in-out infinite; }
.dsteps i.next { outline: 1.5px dashed #ffffff80; outline-offset: -1.5px; color: #fff; }
@keyframes dpulse { 50% { transform: scale(1.07); } }

/* ===== костюмы собственных образов (public/looks.js) ===== */
.body.st-beat-b, .st-beat.body { animation: lkBeat 1.1s ease-in-out infinite; transform-origin: 100px 110px; }
.st-hop { animation: lkHop 1.4s ease-in-out infinite; transform-origin: 100px 185px; }
.st-shake { animation: lkShake 1.8s ease-in-out infinite; transform-origin: 100px 185px; }
.st-topple { animation: lkTopple 4.5s ease-in-out infinite; transform-origin: 150px 185px; }
.st-roll { animation: lkRoll 3s ease-in-out infinite; transform-origin: 100px 115px; }
.st-squeeze { animation: lkSqueeze 2.2s ease-in-out infinite; transform-origin: 100px 185px; }
.st-dance { animation: lkDance 1s ease-in-out infinite; transform-origin: 100px 185px; }
@keyframes lkBeat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.09); } 28% { transform: scale(1.03); } }
@keyframes lkHop { 0%, 100% { transform: translateY(0) scaleY(1); } 12% { transform: translateY(0) scaleY(.9); } 40% { transform: translateY(-14px) scaleY(1.04); } 70% { transform: translateY(0); } }
@keyframes lkShake { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(-6deg); } 72% { transform: rotate(6deg); } 79% { transform: rotate(-4deg); } 86% { transform: rotate(3deg); } }
@keyframes lkTopple { 0%, 30% { transform: rotate(0); } 42% { transform: rotate(78deg); } 46% { transform: rotate(70deg); } 50%, 70% { transform: rotate(74deg); } 82% { transform: rotate(-6deg); } 88%, 100% { transform: rotate(0); } }
@keyframes lkRoll { 0%, 100% { transform: translateX(-10px) rotate(-30deg); } 50% { transform: translateX(10px) rotate(30deg); } }
@keyframes lkSqueeze { 0%, 100% { transform: scale(1, 1); } 45% { transform: scale(1.12, .84); } 60% { transform: scale(.96, 1.04); } }
@keyframes lkDance { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-6px); } }

.model-svg.st-hue .shape { animation: lkHue 6s linear infinite; }
@keyframes lkHue { to { filter: hue-rotate(360deg); } }
.model-svg.st-retro { filter: sepia(.45) saturate(1.4) contrast(1.05) hue-rotate(-12deg); }
.model-svg.st-sepia .body { filter: sepia(.55) saturate(1.2); }
.model-svg.st-invisible .body { animation: lkInvisible 5s ease-in-out infinite; }
@keyframes lkInvisible { 0%, 35%, 100% { opacity: 1; } 50%, 80% { opacity: .12; } }
.model-svg.st-gloss .shape { filter: saturate(1.5) brightness(1.06) drop-shadow(0 0 6px #fff8); }
.model-svg.st-wisp .shape { filter: drop-shadow(0 0 10px #3affd0) drop-shadow(0 0 18px #3affd099); }
.model-svg.st-cheshire .body { animation: lkFade 6s ease-in-out infinite; }
.model-svg.st-cheshire .st-grin { animation: none; }
@keyframes lkFade { 0%, 30%, 100% { opacity: 1; } 50%, 75% { opacity: 0; } }

.st-tear { animation: lkTear 2.4s ease-in infinite; }
@keyframes lkTear { 0%, 30% { transform: translateY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
.st-glow-eye { animation: lkGlow 1.8s ease-in-out infinite; }
@keyframes lkGlow { 50% { opacity: .55; } }
.st-spin-eye { animation: lkSpin 1.6s linear infinite; }
@keyframes lkSpin { to { transform: rotate(360deg); } }
.st-bell { animation: lkGlow .9s ease-in-out infinite; }
.st-flaps { animation: lkFlap 2s ease-in-out infinite; transform-origin: 0 0; transform-box: fill-box; }
@keyframes lkFlap { 50% { transform: rotate(8deg); } }
.st-pompom { animation: lkPom 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lkPom { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px) scale(1.08); } }
.st-beam { animation: lkGlow 2.4s ease-in-out infinite; }
.st-scarf { animation: lkFlap 1.6s ease-in-out infinite; }
.st-wing-l { animation: lkWingL 1s ease-in-out infinite; }
.st-wing-r { animation: lkWingR 1s ease-in-out infinite; }
@keyframes lkWingL { 50% { transform: rotate(10deg); } }
@keyframes lkWingR { 50% { transform: rotate(-10deg); } }
.st-mane { animation: lkMane 6s linear infinite; }
@keyframes lkMane { to { transform: rotate(360deg); } }
.st-hold { animation: lkHold 2.6s ease-in-out infinite; transform-origin: 0 10px; }
@keyframes lkHold { 50% { transform: rotate(-8deg); } }
.st-wave { animation: lkWave 1s ease-in-out infinite; }
@keyframes lkWave { 50% { transform: rotate(-22deg); } }
.st-steam-s { animation: lkGlow 1.4s ease-in-out infinite; }
.st-rec { animation: stLed .8s steps(1) infinite; }
.st-swim { animation: lkSwim 2.4s ease-in-out infinite; }
@keyframes lkSwim { 50% { transform: translateX(-8px) rotate(-6deg); } }
.st-buzz { animation: lkBuzz 1.8s ease-in-out infinite; }
@keyframes lkBuzz { 25% { transform: translate(-8px, -10px); } 50% { transform: translate(4px, -16px); } 75% { transform: translate(8px, -6px); } }
.st-hopper { animation: lkHop 1.6s ease-in-out infinite; }
.st-fly-g { animation: lkBuzz 3s ease-in-out infinite; }
.st-pet { animation: lkPet 3s ease-in-out infinite; }
@keyframes lkPet { 50% { transform: translateY(-2px) scaleY(1.03); } }
.st-bubble { animation: lkBubble 4s ease-in-out infinite; transform-box: fill-box; transform-origin: 20% 100%; }
@keyframes lkBubble { 0%, 8% { transform: scale(0); opacity: 0; } 14%, 80% { transform: scale(1); opacity: 1; } 90%, 100% { transform: scale(.9); opacity: 0; } }
.st-float-s { animation: lkFloatS 2.6s ease-in-out infinite; }
@keyframes lkFloatS { 50% { transform: translateY(-6px); } }
.st-orbit-s { animation: lkSpin 5s linear infinite; }
.st-beep { animation: stLed 1s steps(1) infinite; }
.st-tail-c { animation: lkFlap 1.4s ease-in-out infinite; }
.st-bucket { animation: lkBucket 3s ease-in-out infinite; }
@keyframes lkBucket { 0%, 40%, 100% { transform: rotate(0); } 55%, 70% { transform: rotate(-120deg) translateY(-6px); } }
.st-splash { animation: lkSplash 3s ease-in infinite; opacity: 0; }
@keyframes lkSplash { 0%, 55% { opacity: 0; transform: translateY(-10px); } 60% { opacity: 1; } 85% { opacity: 1; transform: translateY(40px); } 100% { opacity: 0; transform: translateY(50px); } }
.st-drop { animation: lkDrop 1.6s ease-in infinite; }
@keyframes lkDrop { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(60px); opacity: 0; } }
.st-fall { animation: lkFall 3s ease-in infinite; }
@keyframes lkFall { 0% { transform: translateY(-40px); opacity: 0; } 10% { opacity: 1; } 45% { transform: translateY(14px); } 55% { transform: translateY(0); } 70%, 100% { transform: translateY(14px); opacity: 0; } }
.st-bonk { animation: lkBonk 3s ease-out infinite; opacity: 0; }
@keyframes lkBonk { 0%, 44% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.2); } 70%, 100% { opacity: 0; } }
.st-jack { animation: lkJack 2.6s cubic-bezier(.3, 1.6, .5, 1) infinite; }
@keyframes lkJack { 0%, 30% { transform: scaleY(.15); } 45%, 85% { transform: scaleY(1); } 100% { transform: scaleY(.15); } }
.st-peek { animation: lkPeek 3s ease-in-out infinite; }
@keyframes lkPeek { 0%, 100% { transform: translateY(14px); opacity: 0; } 30%, 70% { transform: translateY(0); opacity: 1; } }
.st-sweep { animation: lkSweep 4s ease-in-out infinite; }
@keyframes lkSweep { 0%, 100% { transform: rotate(-30deg); } 50% { transform: rotate(210deg); } }
.st-ecg { stroke-dasharray: 260; animation: lkEcg 2s linear infinite; }
@keyframes lkEcg { from { stroke-dashoffset: 260; } to { stroke-dashoffset: -260; } }
.st-rays { animation: lkSpin 20s linear infinite; }
.st-puff { animation: lkPuff 2s ease-out infinite; opacity: 0; transform-box: fill-box; transform-origin: center; }
@keyframes lkPuff { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6) translateY(-10px); } }
.st-burst { animation: lkBurst 2.2s ease-out infinite; opacity: 0; }
@keyframes lkBurst { 0% { opacity: 1; transform: scale(.2); } 60% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }
.st-wave-b { animation: lkSwim 3s ease-in-out infinite; }
.st-zap { animation: stLed .6s steps(1) infinite; }
.st-hand { animation: lkSpin 4s linear infinite; }
.st-fog { animation: lkFog 6s linear infinite; }
@keyframes lkFog { 50% { transform: translateX(30px); } }
.st-rain { animation: lkDrop .9s linear infinite; }
.st-spot-b { animation: lkSpot 3s ease-in-out infinite; }
@keyframes lkSpot { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(18deg); } }
.st-aurora { animation: lkFog 7s ease-in-out infinite; }
.st-vortex { animation: lkSpin 3s linear infinite; }
.st-beam-u { animation: lkGlow 1.6s ease-in-out infinite; }
.st-half { animation: lkHalf 3s ease-in-out infinite; }
@keyframes lkHalf { 50% { opacity: .1; } }
.st-fall-s { animation: lkDrop 3s linear infinite; }
.st-run { animation: lkSpin 2.2s linear infinite; }
.st-answer { animation: lkAns 4s steps(1) infinite; }
.st-answer-2 { animation-delay: -2s; }
@keyframes lkAns { 0% { opacity: 1; } 50% { opacity: 0; } }
.st-look { animation: lkLook 3s ease-in-out infinite; }
@keyframes lkLook { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-12px); } 60% { transform: translateX(12px); } }
.st-tassel { animation: lkFlap 1.8s ease-in-out infinite; }
.st-genie { animation: lkFloatS 3s ease-in-out infinite; }
