/* ============================================================
   NGTV QUEST — Components
   Подключить после variables.css:
   <link rel="stylesheet" href="/static/components.css">
   ============================================================ */


/* ============================================================
   КНОПКИ
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--btn-height);
  padding: 0 var(--btn-padding-x);
  border-radius: var(--btn-radius);
  font-family: var(--font-base);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
  will-change: transform;
  white-space: nowrap;
}

/* Размеры */
.btn--sm {
  height: var(--btn-height-sm);
  padding: 0 var(--btn-padding-x-sm);
  font-size: var(--text-caption);
}

.btn--xs {
  height: var(--btn-height-xs);
  padding: 0 var(--space-3);
  font-size: var(--text-micro);
  border-radius: var(--radius-sm);
}

.btn--full {
  width: 100%;
}

/* Вариации */
.btn--primary {
  background: var(--color-accent);
  color: #04282a;
  border-color: transparent;
}
.btn--primary:active {
  background: var(--color-accent-dark);
  transform: scale(0.97);
}

.btn--secondary {
  background: transparent;
  color: var(--color-accent-light);
  border-color: var(--color-accent);
}
.btn--secondary:active {
  background: var(--color-accent-subtle);
  transform: scale(0.97);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-default);
}
.btn--ghost:active {
  background: rgba(255,255,255,0.05);
  transform: scale(0.97);
}

.btn--danger {
  background: transparent;
  color: var(--color-danger);
  border-color: var(--border-danger);
}
.btn--danger:active {
  background: var(--bg-danger);
  transform: scale(0.97);
}

.btn--surface {
  background: var(--surface-overlay);
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn--surface:active {
  transform: scale(0.97);
}

/* Состояния */
.btn:disabled,
.btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.btn--loading {
  pointer-events: none;
}

.btn--loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
  flex-shrink: 0;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Sticky CTA внизу экрана */
.btn--sticky {
  position: sticky;
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  width: calc(100% - var(--screen-x) * 2);
  margin: 0 var(--screen-x);
  z-index: var(--z-sticky);
  box-shadow: 0 -16px 24px var(--surface-base);
}


/* ============================================================
   КАРТОЧКИ
   ============================================================ */

.card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  border: 1px solid var(--card-border);
  overflow: hidden;
}

.card--padded {
  padding: var(--card-padding);
}

.card--accent {
  border-color: var(--border-accent);
}

/* Quest card — горизонтальная с цветной полоской слева */
.quest-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3) var(--space-3) 14px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.quest-card:active {
  background: var(--surface-overlay);
}

/* Цветная полоска статуса */
.quest-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--quest-status-color, var(--border-default));
  border-radius: 0;
}

.quest-card__body {
  flex: 1;
  min-width: 0;
  padding-left: var(--space-2);
}

.quest-card__title {
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quest-card__meta {
  font-size: var(--text-micro);
  color: var(--text-muted);
}

/* Статусы квеста */
.quest-card--active   { --quest-status-color: var(--color-accent); }
.quest-card--done     { --quest-status-color: var(--color-success); }
.quest-card--pending  { --quest-status-color: var(--color-warning); }
.quest-card--locked   { --quest-status-color: var(--_n-600); opacity: 0.45; }
.quest-card--expired  { --quest-status-color: var(--color-danger); opacity: 0.55; }

/* Season card — с прогрессом */
.season-card {
  padding: var(--space-3) var(--space-4);
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-accent);
}

/* Mix card — квадратная */
.mix-card {
  aspect-ratio: 1;
  padding: var(--space-3);
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* User card — лидерборд */
.user-card {
  display: grid;
  grid-template-columns: 24px var(--avatar-md) 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
}

/* Hero card — главный экран */
.hero-card {
  padding: var(--space-4);
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
}

/* Banner card — карусель */
.banner-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  position: relative;
  flex-shrink: 0;
  width: 100%;
}

.banner-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-3) var(--space-4);
}


/* ============================================================
   БЕЙДЖИ И СТАТУСЫ
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--badge-padding);
  border-radius: var(--badge-radius);
  font-family: var(--font-base);
  font-size: var(--badge-font-size);
  font-weight: var(--badge-font-weight);
  white-space: nowrap;
  line-height: 1;
}

.badge--accent  { background: var(--color-accent-subtle); color: var(--color-accent-light); }
.badge--success { background: var(--bg-success); color: var(--color-success); }
.badge--warning { background: var(--bg-warning); color: var(--color-warning); }
.badge--danger  { background: var(--bg-danger);  color: var(--color-danger); }
.badge--info    { background: var(--bg-info);    color: var(--color-info); }
.badge--muted   { background: rgba(255,255,255,0.05); color: var(--text-muted); }

/* Бейдж уровня на аватаре */
.level-badge {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: var(--weight-black);
  color: #04282a;
  border: 2px solid var(--surface-base);
}

/* Тег вкуса (Миксолог) */
.flavor-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  background: rgba(34, 197, 94, 0.10);
  color: var(--color-success);
  border: 1px solid rgba(34, 197, 94, 0.20);
}


/* ============================================================
   ПРОГРЕСС БАРЫ
   ============================================================ */

.progress {
  height: var(--progress-height);
  background: var(--progress-bg);
  border-radius: var(--progress-radius);
  overflow: hidden;
}

.progress--sm {
  height: var(--progress-height-sm);
}

.progress__fill {
  height: 100%;
  border-radius: var(--progress-radius);
  background: var(--color-accent);
  transition: width var(--duration-slow) var(--ease-out);
}

.progress__fill--success { background: var(--color-success); }
.progress__fill--warning { background: var(--color-warning); }
.progress__fill--danger  { background: var(--color-danger); }

/* Стрик — шиммер эффект */
.progress__fill--streak {
  background: linear-gradient(
    90deg,
    var(--_amber) 0%,
    #ffd66b 50%,
    var(--_amber) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Шаговый прогресс (квест) */
.progress-steps {
  display: flex;
  gap: var(--space-1);
  align-items: center;
}

.progress-step {
  flex: 1;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--progress-bg);
}

.progress-step--done    { background: var(--color-success); }
.progress-step--active  { background: var(--color-accent); }
.progress-step--pending { background: var(--progress-bg); }


/* ============================================================
   ИНПУТЫ
   ============================================================ */

.input {
  width: 100%;
  height: var(--input-height);
  padding: 0 var(--space-4);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  font-family: var(--font-base);
  font-size: var(--input-font);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
  -webkit-appearance: none;
}

.input::placeholder {
  color: var(--text-muted);
}

.input:focus {
  border-color: var(--color-accent);
}

/* Поиск */
.input--search {
  padding-left: 40px;
}

.input-search-wrap {
  position: relative;
}

.input-search-wrap .input-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Зона загрузки файла */
.upload-zone {
  border: 1.5px dashed var(--border-accent);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.upload-zone:active {
  background: var(--color-accent-subtle);
}

.upload-zone--done {
  border-color: rgba(34, 197, 94, 0.40);
  background: var(--bg-success);
}

.upload-zone__icon {
  margin: 0 auto var(--space-2);
  color: var(--color-accent-light);
}

.upload-zone__label {
  font-size: var(--text-caption);
  color: var(--color-accent-light);
}

.upload-zone__hint {
  font-size: var(--text-micro);
  color: var(--text-muted);
  margin-top: var(--space-1);
}


/* ============================================================
   АВАТАР
   ============================================================ */

.avatar {
  width: var(--avatar-md);
  height: var(--avatar-md);
  border-radius: var(--radius-full);
  background: var(--avatar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  color: var(--color-accent-light);
  flex-shrink: 0;
  overflow: hidden;
}

.avatar--sm { width: var(--avatar-sm); height: var(--avatar-sm); font-size: var(--text-micro); }
.avatar--lg { width: var(--avatar-lg); height: var(--avatar-lg); font-size: var(--text-subhead); }

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-wrap {
  position: relative;
  display: inline-block;
}

.avatar-wrap .level-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
}


/* ============================================================
   НАВИГАЦИОННЫЙ БАР
   ============================================================ */

.navbar {
  display: flex;
  align-items: stretch;
  height: var(--navbar-height);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-default);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
}

.navbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-base);
}

.navbar__item:active {
  transform: scale(0.92);
}

.navbar__icon {
  width: var(--navbar-icon-size);
  height: var(--navbar-icon-size);
  flex-shrink: 0;
}

.navbar__label {
  font-size: var(--navbar-label-size);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  line-height: 1;
}

.navbar__item--active {
  color: var(--color-accent-light);
}

/* Паддинг страницы под navbar */
.page-with-navbar {
  padding-bottom: calc(var(--navbar-height) + env(safe-area-inset-bottom, 0px) + var(--space-4));
}


/* ============================================================
   BOTTOM SHEET
   ============================================================ */

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--sheet-duration) var(--sheet-ease);
}

.sheet-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-overlay);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-top: 1px solid var(--border-default);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: var(--z-sheet);
  transform: translateY(100%);
  transition: transform var(--sheet-duration) var(--sheet-ease);
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sheet--open {
  transform: translateY(0);
}

.sheet__handle {
  width: 36px;
  height: 4px;
  background: var(--_n-600);
  border-radius: var(--radius-full);
  margin: var(--space-2) auto var(--space-4);
}

.sheet__header {
  padding: 0 var(--screen-x) var(--space-4);
  font-size: var(--text-subhead);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.sheet__body {
  padding: 0 var(--screen-x) var(--space-6);
}


/* ============================================================
   TOAST / SNACKBAR
   ============================================================ */

.toast-container {
  position: fixed;
  top: var(--space-4);
  left: var(--screen-x);
  right: var(--screen-x);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-overlay);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  font-size: var(--text-caption);
  color: var(--text-primary);
  pointer-events: auto;
  animation: toast-in var(--duration-normal) var(--ease-out) forwards;
}

.toast--success { border-color: rgba(34, 197, 94, 0.30); }
.toast--error   { border-color: var(--border-danger); }

.toast__icon { flex-shrink: 0; }
.toast__text { flex: 1; }

.toast--out {
  animation: toast-out var(--duration-normal) var(--ease-in) forwards;
}

@keyframes toast-in {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes toast-out {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(-8px); opacity: 0; }
}


/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) var(--screen-x);
  gap: var(--space-3);
}

.empty-state__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.empty-state__title {
  font-size: var(--text-subhead);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.empty-state__desc {
  font-size: var(--text-caption);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  max-width: 260px;
}


/* ============================================================
   SKELETON LOADERS
   ============================================================ */

.skeleton {
  background: var(--surface-raised);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: skeleton-sweep 1.6s ease-in-out infinite;
}

@keyframes skeleton-sweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Шаблоны скелетонов */
.skeleton-quest-card {
  height: 64px;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 14px;
  border-radius: var(--radius-xs);
}

.skeleton-text--short { width: 60%; }
.skeleton-text--medium { width: 80%; }
.skeleton-text--full { width: 100%; }


/* ============================================================
   КАРУСЕЛЬ БАННЕРОВ
   ============================================================ */

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform var(--duration-slow) var(--ease-out);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 var(--screen-x);
}

/* Точки-индикаторы */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) 0 var(--space-3);
}

.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--_n-600);
  transition:
    width var(--duration-normal) var(--ease-out),
    background var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.carousel__dot--active {
  width: 18px;
  background: var(--color-accent);
}


/* ============================================================
   ШАПКА СТРАНИЦЫ / ЭКРАНА
   ============================================================ */

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--screen-x) var(--space-2);
  gap: var(--space-3);
}

.screen-header__back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
}

.screen-header__title {
  font-size: var(--text-subhead);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  flex: 1;
}

.screen-header__action {
  color: var(--color-accent-light);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  cursor: pointer;
}


/* ============================================================
   ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ
   ============================================================ */

/* Отступы */
.px-screen { padding-left: var(--screen-x); padding-right: var(--screen-x); }
.pt-2 { padding-top: var(--space-2); }
.pb-4 { padding-bottom: var(--space-4); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }

/* Типографика */
.text-micro   { font-size: var(--text-micro); }
.text-caption { font-size: var(--text-caption); }
.text-body    { font-size: var(--text-body); }
.text-subhead { font-size: var(--text-subhead); }
.text-title   { font-size: var(--text-title); font-weight: var(--weight-bold); }
.text-hero    { font-size: var(--text-hero); font-weight: var(--weight-black); }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-accent    { color: var(--color-accent-light); }
.text-success   { color: var(--color-success); }
.text-warning   { color: var(--color-warning); }
.text-danger    { color: var(--color-danger); }

.font-medium { font-weight: var(--weight-medium); }
.font-bold   { font-weight: var(--weight-bold); }

.label-caps {
  font-size: var(--text-micro);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Разделитель */
.divider {
  height: 1px;
  background: var(--border-default);
  margin: var(--space-4) 0;
}

/* Flex utils */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }

/* Сетка быстрых действий */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.quick-item {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  padding: var(--space-3) var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.quick-item:active {
  background: var(--surface-overlay);
  transform: scale(0.96);
}

.quick-item__icon {
  color: var(--text-secondary);
  width: 22px;
  height: 22px;
}

.quick-item--active .quick-item__icon {
  color: var(--color-accent-light);
}

.quick-item__label {
  font-size: 9px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
}

.quick-item--active .quick-item__label {
  color: var(--color-accent-light);
}


/* ============================================================
   МИКРОАНИМАЦИИ — классы для JS
   ============================================================ */

/* Celebration появление очков (+150 pts) */
@keyframes pts-flyout {
  0%   { transform: translateY(0)   scale(1);    opacity: 1; }
  60%  { transform: translateY(-24px) scale(1.15); opacity: 1; }
  100% { transform: translateY(-40px) scale(1);    opacity: 0; }
}

.pts-flyout {
  position: absolute;
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  color: var(--color-accent-light);
  pointer-events: none;
  animation: pts-flyout 900ms var(--ease-out) forwards;
}

/* Пульс для "на проверке" */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35); }
  70%  { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.pulse-warning {
  animation: pulse-ring 2s ease-out infinite;
}

/* Slide-up вход экрана */
@keyframes screen-enter {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.screen-enter {
  animation: screen-enter var(--duration-normal) var(--ease-out) both;
}

/* Shake — ошибка */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}

.shake {
  animation: shake 300ms var(--ease-out);
}

/* Scale-bounce — успех */
@keyframes scale-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  70%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.scale-bounce {
  animation: scale-bounce 400ms var(--ease-spring);
}
