/* Подсветка поля темы после нажатия на главную кнопку первого экрана */
.erd-spot {
  position: relative;
  z-index: 3;
  border-radius: 14px;
  border-color: transparent !important;
  animation: erd-ring 1.9s cubic-bezier(.22,.8,.3,1) infinite;
  transition: box-shadow .3s ease;
}
@keyframes erd-ring {
  0%   { box-shadow: 0 0 0 0 rgba(37,99,235,.55), 0 0 0 2px #2563eb, 0 10px 30px -8px rgba(37,99,235,.35); }
  70%  { box-shadow: 0 0 0 14px rgba(37,99,235,0), 0 0 0 2px #2563eb, 0 10px 30px -8px rgba(37,99,235,.35); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0), 0 0 0 2px #2563eb, 0 10px 30px -8px rgba(37,99,235,.35); }
}

.erd-tip {
  position: absolute;
  z-index: 1000;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  box-shadow: 0 18px 40px -12px rgba(15,23,42,.45), 0 0 0 1px rgba(255,255,255,.08) inset;
  opacity: 0;
  transform: translateY(8px) scale(.94);
  transform-origin: var(--erd-ax, 50%) 100%;
  transition: opacity .25s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.erd-tip.is-in { opacity: 1; transform: none; }
.erd-tip.is-below { transform-origin: var(--erd-ax, 50%) 0; }
.erd-tip__icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 14px -4px rgba(37,99,235,.7);
}
.erd-tip__icon svg { animation: erd-nudge 1.4s ease-in-out infinite; }
@keyframes erd-nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
.erd-tip__title { display: block; font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; }
.erd-tip__sub { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: #94a3b8; }
.erd-tip::after {
  content: "";
  position: absolute;
  left: var(--erd-ax, 50%);
  bottom: -5px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: #0f172a;
  border-radius: 3px;
  transform: rotate(45deg);
}
.erd-tip.is-below::after { bottom: auto; top: -5px; }
.erd-tip.is-below .erd-tip__icon svg { transform: rotate(180deg); animation: none; }

@media (prefers-reduced-motion: reduce) {
  .erd-spot { animation: none; box-shadow: 0 0 0 3px rgba(37,99,235,.45); }
  .erd-tip, .erd-tip__icon svg { transition: opacity .2s; animation: none; transform: none; }
}
