* {
  box-sizing: border-box;
  margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #050d1a;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Canvas фон ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Фоновый текст ── */
.bg-text {
  position: fixed;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 120px;
  font-weight: 900;
  color: rgba(0,120,200,0.05);
  letter-spacing: 8px;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  animation: bgTextPulse 6s ease-in-out infinite;
}
@keyframes bgTextPulse {
  0%,100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* ── Лейаут ── */
#app {
  position: relative;
  z-index: 1;
  padding: 20px 14px 40px;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Шапка ── */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  animation: fadeDown 0.6s ease both;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo {
  width: 68px; height: 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, #00aaff, #0055cc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  position: relative;
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { box-shadow: 0 0 20px rgba(0,150,255,0.5), 0 0 40px rgba(0,100,200,0.2); }
  50%      { box-shadow: 0 0 35px rgba(0,180,255,0.8), 0 0 70px rgba(0,130,255,0.35); }
}

/* Вращающееся кольцо вокруг лого */
.logo::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  border: 2px solid transparent;
  background: linear-gradient(#050d1a,#050d1a) padding-box,
              conic-gradient(from 0deg, #00aaff, #0055cc, transparent, #00aaff) border-box;
  animation: rotateBorder 3s linear infinite;
}
@keyframes rotateBorder {
  to { transform: rotate(360deg); }
}

.header-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(0,150,255,0.6);
  animation: titleGlow 3s ease-in-out infinite;
}
@keyframes titleGlow {
  0%,100% { text-shadow: 0 0 15px rgba(0,150,255,0.5); }
  50%      { text-shadow: 0 0 30px rgba(0,180,255,0.9), 0 0 60px rgba(0,120,255,0.3); }
}

/* ── Карточки ── */
.cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  display: flex;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  height: 80px;
  position: relative;
  background: rgba(10, 20, 35, 0.85);
  border: 1.5px solid var(--c, #333);
  cursor: pointer;
  /* Появление с задержкой */
  opacity: 0;
  transform: translateX(-30px);
  animation: slideIn 0.5s ease forwards;
  backdrop-filter: blur(6px);
}

/* Задержка для каждой карточки */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }

@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

/* Пульсирующее свечение границы */
.card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  border: 1.5px solid var(--c, #333);
  opacity: 0;
  animation: borderPulse 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes borderPulse {
  0%,100% { opacity: 0; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.01); }
}

/* Нажатие */
.card:active {
  transform: scale(0.96) !important;
  transition: transform 0.1s;
}
.card.tap-flash {
  animation: tapFlash 0.3s ease !important;
  opacity: 1 !important;
  transform: translateX(0) !important;
}
@keyframes tapFlash {
  0%   { filter: brightness(1); }
  30%  { filter: brightness(1.6); }
  100% { filter: brightness(1); }
}

/* ── Иконка ── */
.card-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 14px;
  margin: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  transition: transform 0.2s;
}
.card:active .card-icon { transform: scale(0.9); }
.card-icon svg { width: 28px; height: 28px; }
.icon-text {
  font-size: 13px; font-weight: 900;
  color: #fff; letter-spacing: 0.5px;
}

/* ── Текст ── */
.card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.card-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.5px;
}
.card-sub { font-weight: 900; font-size: 15px; }
.card-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  width: fit-content;
  animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes badgePop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.card:nth-child(1) .card-badge { animation-delay: 0.4s; }
.card:nth-child(2) .card-badge { animation-delay: 0.5s; }
.card:nth-child(3) .card-badge { animation-delay: 0.6s; }
.card:nth-child(4) .card-badge { animation-delay: 0.7s; }
.card:nth-child(5) .card-badge { animation-delay: 0.8s; }
.card:nth-child(6) .card-badge { animation-delay: 0.9s; }
.card:nth-child(7) .card-badge { animation-delay: 1.0s; }

/* ── Правая часть ── */
.card-right {
  position: relative;
  width: 120px; height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}
.card-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-bg-icon {
  font-size: 52px;
  opacity: 0.2;
  transform: rotate(-10deg) scale(1.2);
  filter: blur(1px);
  animation: floatIcon 4s ease-in-out infinite;
}
@keyframes floatIcon {
  0%,100% { transform: rotate(-10deg) scale(1.2) translateY(0); }
  50%      { transform: rotate(-8deg) scale(1.2) translateY(-5px); }
}
.card-arrow {
  position: relative; z-index: 1;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  margin-right: 12px;
  backdrop-filter: blur(4px);
  transition: transform 0.2s, background 0.2s;
}
.card:active .card-arrow {
  transform: translateX(4px);
  background: rgba(255,255,255,0.18);
}
