/* ==========================================================================
   Котострофа — базовые стили: палитра, кнопки-подушки, окна-лежанки, иконки
   ========================================================================== */
:root {
  --ink: #2b1240;
  --ink-soft: rgba(43, 18, 64, .55);
  --ginger: #ff8a1f; --ginger-l: #ffd08a; --ginger-d: #d95f00;
  --pink: #ff4f9a; --pink-l: #ffc2dc; --pink-d: #c81e6a;
  --teal: #13c4b0; --teal-l: #a6fff0; --teal-d: #078a7c;
  --yellow: #ffd23a; --yellow-l: #fff7b0; --yellow-d: #e09a00;
  --sky: #3fa8ff; --sky-l: #c6ecff; --sky-d: #1b6fd1;
  --lime: #8ee03a; --lime-l: #e2ffa8; --lime-d: #4f9e12;
  --violet: #9a63ff; --violet-l: #e2d2ff; --violet-d: #6a33d6;
  --red: #ff4a3d; --red-l: #ffc0b8; --red-d: #c71f15;
  --slate: #5b6fd6; --slate-l: #c8d2ff; --slate-d: #3445a8;
  --cream: #fff4dc;
  --fd: 'Rubik Bubbles', 'Arial Black', Impact, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ft: 'Balsamiq Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
body {
  background-color: #ff9f45;
  background-image: linear-gradient(180deg, rgba(255, 210, 90, .35), rgba(165, 74, 216, .45)), url(../img/bg_tile.png);
  background-size: 100% 100%, 256px 256px;
  color: var(--ink);
}
button { font-family: var(--ft); border: 0; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; }
svg { display: block; }
#icons { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
#gl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; z-index: 1; touch-action: none; }
#app.gl-off #gl { visibility: hidden; }

/* ---------------- палитры для кнопок ---------------- */
.c-ginger { --b1: #ffd08a; --b2: #ff8a1f; --b3: #d95f00; }
.c-pink   { --b1: #ffc2dc; --b2: #ff4f9a; --b3: #c81e6a; }
.c-teal   { --b1: #a6fff0; --b2: #13c4b0; --b3: #078a7c; }
.c-sky    { --b1: #c6ecff; --b2: #3fa8ff; --b3: #1b6fd1; }
.c-lime   { --b1: #e2ffa8; --b2: #8ee03a; --b3: #4f9e12; }
.c-violet { --b1: #e2d2ff; --b2: #9a63ff; --b3: #6a33d6; }
.c-red    { --b1: #ffc0b8; --b2: #ff4a3d; --b3: #c71f15; }
.c-yellow { --b1: #fff7b0; --b2: #ffd23a; --b3: #e09a00; }
.c-slate  { --b1: #c8d2ff; --b2: #5b6fd6; --b3: #3445a8; }
.c-ginger, .c-pink, .c-teal, .c-sky, .c-lime, .c-violet, .c-red, .c-yellow, .c-slate { --bt: #fff; }
.c-yellow { --bt: #fff; }

/* ---------------- кнопка-подушка ---------------- */
.btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 56px; padding: 0 22px;
  font: 400 21px/1 var(--fd); color: var(--bt, #fff); letter-spacing: .01em; white-space: nowrap;
  text-shadow: 0 2px 0 var(--ink), 1px 0 0 var(--ink), -1px 0 0 var(--ink), 0 -1px 0 var(--ink), 0 3px 2px rgba(0, 0, 0, .3);
  background: linear-gradient(180deg, var(--b1) 0%, var(--b2) 52%, var(--b3) 100%);
  border: 3px solid var(--ink); border-radius: 22px 18px 24px 16px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), inset 0 -5px 0 rgba(0, 0, 0, .18), 0 5px 0 var(--ink), 0 9px 16px rgba(43, 18, 64, .35);
  transition: transform .07s, box-shadow .07s, filter .15s;
}
.btn::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 4px; height: 40%;
  border-radius: 14px 14px 30px 30px / 12px 12px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn::after {
  content: ""; position: absolute; inset: 5px; border: 2px dashed rgba(255, 255, 255, .5);
  border-radius: 17px 13px 19px 11px; pointer-events: none;
}
.btn > span { position: relative; overflow: hidden; text-overflow: ellipsis; }
.btn svg { position: relative; width: 30px; height: 30px; flex-shrink: 0; filter: drop-shadow(0 2px 0 rgba(43, 18, 64, .35)); }
.btn:active, .btn.press {
  transform: translateY(5px);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 0 0 var(--ink), 0 3px 6px rgba(0, 0, 0, .3);
}
.btn.small { min-height: 48px; padding: 0 16px; font-size: 17px; }
.btn.small svg { width: 26px; height: 26px; }
.btn.locked { filter: saturate(.25) brightness(.9); }
.btn.disabled { filter: saturate(.2) brightness(.85); pointer-events: none; }
.btn.play { min-height: 70px; padding: 0 30px; font-size: 30px; overflow: hidden; border-radius: 28px 22px 30px 20px; animation: playPulse 1.6s ease-in-out infinite; }
.btn.play::after { border-radius: 23px 17px 25px 15px; }
.btn.play svg { width: 38px; height: 38px; }
.btn .shine {
  position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0));
  transform: skewX(-20deg); animation: btnShine 3.2s ease-in-out infinite;
}
@keyframes playPulse { 0%, 100% { scale: 1; } 50% { scale: 1.05; } }
@keyframes btnShine { 0%, 62% { left: -40%; } 100% { left: 130%; } }

/* круглая кнопка-монетка */
.coin {
  position: relative; width: 50px; height: 50px; flex: none; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(70% 60% at 35% 28%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, var(--b1), var(--b2) 55%, var(--b3));
  border: 3px solid var(--ink); border-radius: 50%;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 4px 0 var(--ink), 0 7px 12px rgba(43, 18, 64, .35);
  transition: transform .07s, box-shadow .07s;
}
.coin::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .45); pointer-events: none; }
.coin svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 0 rgba(43, 18, 64, .35)); }
.coin:active, .coin.press { transform: translateY(4px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2), 0 0 0 var(--ink), 0 2px 4px rgba(0, 0, 0, .3); }
.coin .badge {
  position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%;
  font: 400 14px/18px var(--fd); color: #fff; text-align: center; font-style: normal;
  background: linear-gradient(180deg, #ff8a7a, #ff2d2d 60%, #b80d0d); border: 2px solid var(--ink);
  animation: badgeBob 1s ease-in-out infinite; display: none;
}
.coin.has-badge .badge { display: block; }
@keyframes badgeBob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.12); } }

/* таблетка (пропустить, политика) */
.pill-btn {
  position: relative; display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px 0 10px;
  font: 700 14px/1 var(--ft); color: #fff; text-shadow: 0 2px 0 var(--ink);
  background: linear-gradient(180deg, var(--b1), var(--b2) 55%, var(--b3));
  border: 3px solid var(--ink); border-radius: 24px 20px 24px 18px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .18), 0 4px 0 var(--ink), 0 6px 10px rgba(0, 0, 0, .3);
  transition: transform .07s, box-shadow .07s;
}
.pill-btn svg { width: 26px; height: 26px; }
.pill-btn:active, .pill-btn.press { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 0 0 var(--ink), 0 2px 4px rgba(0, 0, 0, .3); }

/* боковые кнопки меню */
.side-btn {
  position: relative; width: 78px; height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font: 700 13px/1 var(--ft); color: #fff; text-shadow: 0 1.5px 0 var(--ink), 1px 0 0 var(--ink), -1px 0 0 var(--ink);
  background: linear-gradient(180deg, var(--b1) 0%, var(--b2) 55%, var(--b3) 100%);
  border: 3px solid var(--ink); border-radius: 22px 16px 24px 14px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), inset 0 -4px 0 rgba(0, 0, 0, .18), 0 5px 0 var(--ink), 0 8px 14px rgba(43, 18, 64, .35);
  transition: transform .07s, box-shadow .07s;
}
.side-btn::after { content: ""; position: absolute; inset: 4px; border: 2px dashed rgba(255, 255, 255, .45); border-radius: 17px 11px 19px 9px; pointer-events: none; }
.side-btn svg { width: 38px; height: 38px; filter: drop-shadow(0 2px 0 rgba(43, 18, 64, .35)); }
.side-btn:active, .side-btn.press { transform: translateY(5px) !important; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4), 0 0 0 var(--ink), 0 2px 5px rgba(0, 0, 0, .3); }

/* табличка-счётчик */
.plate {
  display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px 0 6px;
  font: 400 19px/1 var(--fd); color: #fff; text-shadow: 0 2px 0 var(--ink), 1px 0 0 var(--ink), -1px 0 0 var(--ink);
  background: linear-gradient(180deg, #7a4aa8 0%, #4a2272 60%, #36185a 100%);
  border: 3px solid var(--ink); border-radius: 21px 16px 21px 14px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .25), 0 4px 0 var(--ink);
}
.plate svg { width: 34px; height: 34px; margin-top: -2px; }
.plate.bump { animation: plateBump .4s var(--spring); }
@keyframes plateBump { 0% { transform: scale(1); } 35% { transform: scale(1.22) rotate(-3deg); } 100% { transform: scale(1); } }

/* ---------------- оверлеи и окна-лежанки ---------------- */
.overlay {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center; z-index: 50;
  background: radial-gradient(circle at 50% 45%, rgba(70, 24, 110, .55) 0%, rgba(30, 8, 50, .82) 75%);
}
.overlay.show { display: flex; animation: ovIn .25s ease-out both; }
.overlay.hiding { animation: ovOut .2s ease-in both; }
@keyframes ovIn { from { opacity: 0; } }
@keyframes ovOut { to { opacity: 0; } }
.panel {
  position: relative; width: 344px; padding: 46px 18px 22px; color: var(--ink);
  background-color: #ffe9c2;
  background-image: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, var(--p1, #fff6e2) 0%, var(--p2, #ffdca0) 100%), url(../img/tex_fabric.png);
  background-blend-mode: normal, multiply, normal;
  background-size: 100% 100%, 100% 100%, 128px 128px;
  border: 4px solid var(--ink); border-radius: 30px 24px 32px 22px;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .65), inset 0 -9px 0 rgba(0, 0, 0, .12), 0 8px 0 var(--ink), 0 20px 36px rgba(0, 0, 0, .45);
  animation: panIn .46s var(--spring) both;
}
.panel::before {
  content: ""; position: absolute; inset: 11px; border: 2.5px dashed var(--stitch, rgba(200, 110, 30, .55));
  border-radius: 22px 16px 24px 14px; pointer-events: none;
}
.panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(circle at 20px 20px, var(--btn-c, #ff4f9a) 0 6px, var(--ink) 6px 8px, transparent 8.5px),
    radial-gradient(circle at calc(100% - 20px) 20px, var(--btn-c, #ff4f9a) 0 6px, var(--ink) 6px 8px, transparent 8.5px),
    radial-gradient(circle at 20px calc(100% - 20px), var(--btn-c, #ff4f9a) 0 6px, var(--ink) 6px 8px, transparent 8.5px),
    radial-gradient(circle at calc(100% - 20px) calc(100% - 20px), var(--btn-c, #ff4f9a) 0 6px, var(--ink) 6px 8px, transparent 8.5px);
}
.panel.p-wide { width: 360px; }
.panel.p-small { width: 310px; }
.p-violet { --p1: #f6eeff; --p2: #d9c2ff; --stitch: rgba(106, 51, 214, .45); --btn-c: #ffd23a; }
.p-teal   { --p1: #effffb; --p2: #b6f2e6; --stitch: rgba(7, 138, 124, .45); --btn-c: #ff4f9a; }
.p-pink   { --p1: #fff0f6; --p2: #ffc6de; --stitch: rgba(200, 30, 106, .45); --btn-c: #3fa8ff; }
.p-gold   { --p1: #fffbe6; --p2: #ffe48a; --stitch: rgba(224, 154, 0, .55); --btn-c: #9a63ff; }
.p-lime   { --p1: #f6ffe8; --p2: #d3f5a6; --stitch: rgba(79, 158, 18, .45); --btn-c: #ff8a1f; }
.p-red    { --p1: #fff2ef; --p2: #ffc9c0; --stitch: rgba(199, 31, 21, .45); --btn-c: #13c4b0; }
.p-result { --p1: #fffaf0; --p2: #ffe0a6; }
.p-final  { --p1: #fff4fb; --p2: #ffd0f0; --stitch: rgba(200, 30, 106, .45); --btn-c: #ffd23a; }
.panel > * { position: relative; z-index: 1; }
.panel .cascade { animation: cascadeIn .42s var(--spring) both; }
@keyframes panIn { 0% { opacity: 0; transform: translateY(40px) scale(.6); } 70% { opacity: 1; transform: translateY(-4px) scale(1.06); } 100% { transform: none; } }
@keyframes cascadeIn { from { opacity: 0; transform: translateY(14px) scale(.9); } }

/* заголовок окна — ошейник с колокольчиком */
.panel-title {
  position: absolute !important; left: 50%; top: -28px; transform: translateX(-50%) rotate(-1.5deg); z-index: 3 !important;
  display: flex; align-items: center; gap: 8px; padding: 10px 26px 12px 34px; white-space: nowrap;
  font: 400 23px/1 var(--fd); color: #fff;
  text-shadow: 0 2px 0 var(--ink), 1px 0 0 var(--ink), -1px 0 0 var(--ink), 0 -1px 0 var(--ink);
  background: linear-gradient(180deg, var(--b1) 0%, var(--b2) 50%, var(--b3) 100%);
  border: 3.5px solid var(--ink); border-radius: 16px 12px 18px 12px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 rgba(0, 0, 0, .18), 0 5px 0 var(--ink), 0 8px 14px rgba(0, 0, 0, .3);
}
.panel-title svg { width: 30px; height: 30px; }
.panel-title::before {
  content: ""; position: absolute; left: 8px; top: 50%; width: 16px; height: 22px; margin-top: -11px;
  background: linear-gradient(180deg, #fff7b0, #ffd23a 50%, #c88a00); border: 2.5px solid var(--ink); border-radius: 4px;
  box-shadow: inset 0 0 0 3px rgba(43, 18, 64, .0), inset -5px 0 0 -2px rgba(43, 18, 64, .5);
}
.panel-title::after {
  content: ""; position: absolute; left: 50%; bottom: -18px; width: 18px; height: 18px; margin-left: -9px;
  background: radial-gradient(circle at 35% 30%, #fffbe0 0 20%, #ffd23a 45%, #c88a00 100%); border: 2.5px solid var(--ink); border-radius: 50% 50% 46% 46%;
  transform-origin: 50% -8px; animation: bellSwing 2.4s ease-in-out infinite;
}
@keyframes bellSwing { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }

.x-close {
  position: absolute !important; right: -14px; top: -14px; z-index: 4 !important; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(70% 60% at 35% 28%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, #ffc0b8, #ff4a3d 55%, #c71f15);
  border: 3px solid var(--ink); border-radius: 50%;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 4px 0 var(--ink), 0 6px 10px rgba(0, 0, 0, .3);
  transition: transform .07s, box-shadow .07s;
}
.x-close svg { width: 28px; height: 28px; }
.x-close:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }

.row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.col { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }

/* рычажки-переключатели */
.lever {
  position: relative; display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 10px 0 8px;
  font: 700 16px/1 var(--ft); color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #f1e6ff 60%, #d9c6f5); border: 3px solid var(--ink); border-radius: 18px 14px 18px 12px;
  box-shadow: inset 0 3px 0 #fff, 0 4px 0 var(--ink);
  transition: transform .07s, box-shadow .07s;
}
.lever:active { transform: translateY(3px); box-shadow: inset 0 3px 0 #fff, 0 1px 0 var(--ink); }
.lever svg { width: 30px; height: 30px; }
.lever.wide { width: 100%; }
.lever.wide span { flex: 1; text-align: left; }
.lever-track {
  position: relative; width: 58px; height: 30px; flex: none; border-radius: 15px;
  background: linear-gradient(180deg, #9a8aa8, #c9bcd6); border: 3px solid var(--ink); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .25);
  transition: background .2s;
}
.lever-knob {
  position: absolute; left: 1px; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e6dcf2 60%, #b7a6cc); border: 2.5px solid var(--ink);
  transition: transform .2s var(--spring);
}
.lever.on .lever-track { background: linear-gradient(180deg, #5fd64a, #9ff07a); }
.lever.on .lever-knob { transform: translateX(28px); }

/* ---------------- тост, вспышка, переход ---------------- */
#toast {
  position: absolute; left: 50%; top: 14px; z-index: 95; max-width: 86%; padding: 11px 18px;
  font: 700 15px/1.2 var(--ft); color: #fff; text-align: center; text-shadow: 0 2px 0 var(--ink);
  background: linear-gradient(180deg, #b886ff, #8a4cf0 55%, #6a33d6); border: 3px solid var(--ink); border-radius: 18px 14px 18px 14px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 4px 0 var(--ink), 0 8px 14px rgba(0, 0, 0, .3);
  transform: translate(-50%, -140%); opacity: 0; pointer-events: none; transition: transform .35s var(--spring), opacity .25s;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#flash { position: absolute; inset: 0; z-index: 85; background: #fff; opacity: 0; pointer-events: none; }
#flash.go { animation: flashGo .45s ease-out both; }
@keyframes flashGo { 0% { opacity: .9; } 100% { opacity: 0; } }
#transition { position: absolute; inset: 0; z-index: 80; pointer-events: none; display: none; align-items: center; justify-content: center; overflow: hidden; }
#transition.on { display: flex; pointer-events: auto; }
#transition .tr-blob {
  position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #ff8a1f 0 30%, #ff4f9a 55%, #6a33d6 80%, #2b1240 100%);
  transform: scale(0); transition: transform .42s cubic-bezier(.6, 0, .4, 1);
}
#transition.cover .tr-blob { transform: scale(var(--cover, 8)); }
#transition .tr-paw { position: relative; width: 90px; height: 90px; opacity: 0; transform: scale(.3) rotate(-30deg); transition: opacity .2s, transform .35s var(--spring); }
#transition.cover .tr-paw { opacity: 1; transform: scale(1) rotate(0); animation: trPaw .5s ease-in-out infinite alternate .3s; }
@keyframes trPaw { to { transform: scale(1.12) rotate(8deg); } }

/* ---------------- плашка гостя и речевые пузыри ---------------- */
.guest-plate {
  display: none; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  font: 700 12.5px/1.15 var(--ft); color: var(--ink);
  background: linear-gradient(180deg, #fff9d6, #ffe38a); border: 3px solid var(--ink); border-radius: 14px 10px 14px 10px;
  box-shadow: inset 0 2px 0 #fff, 0 3px 0 var(--ink);
}
.guest-plate svg { width: 26px; height: 26px; flex: none; }
.guest-plate.show { display: flex; }
.say-bubble {
  position: absolute; z-index: 6; max-width: 210px; padding: 9px 13px; pointer-events: none;
  font: 700 15px/1.2 var(--ft); color: var(--ink); text-align: center;
  background: linear-gradient(180deg, #ffffff, #fff1d6); border: 3px solid var(--ink); border-radius: 18px 16px 20px 14px;
  box-shadow: 0 4px 0 var(--ink); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s var(--spring);
}
.say-bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -13px; width: 18px; height: 18px; margin-left: -9px;
  background: #fff1d6; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: skewX(-20deg) rotate(45deg); border-radius: 0 0 5px 0;
}
.say-bubble.show { opacity: 1; transform: scale(1); }
.say-bubble.small { font-size: 13px; padding: 6px 10px; max-width: 170px; }

/* лучи за наградой */
.rays {
  position: absolute; left: 50%; top: 45%; width: 760px; height: 760px; margin: -380px 0 0 -380px; pointer-events: none; display: none;
  background: repeating-conic-gradient(rgba(255, 228, 120, .3) 0deg 9deg, rgba(255, 228, 120, 0) 9deg 18deg);
  border-radius: 50%; animation: raysSpin 16s linear infinite;
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 68%); mask-image: radial-gradient(circle, #000 25%, transparent 68%);
}
.rays.on { display: block; }
@keyframes raysSpin { to { transform: rotate(360deg); } }

/* конфетти (DOM) */
.confetti { position: absolute; top: -20px; width: 10px; height: 14px; z-index: 60; pointer-events: none; border: 1.5px solid var(--ink); border-radius: 2px; animation: confFall linear both; }
@keyframes confFall { 0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translate3d(var(--dx, 40px), var(--dy, 760px), 0) rotate(var(--rot, 720deg)); opacity: 0; } }

/* летящие награды */
.fly-ico { position: absolute; z-index: 90; width: 34px; height: 34px; pointer-events: none; transition: transform .7s cubic-bezier(.5, -0.3, .7, 1), opacity .7s; }
.fly-ico svg { width: 100%; height: 100%; }
