/* Тема Blood & Iron из mockups/stitch_funtime_event_tracker/blood_iron/DESIGN.md.
   Глубина здесь передаётся ступенями цвета и внутренним свечением рамок,
   а не обычными тенями — отсюда градиенты на карточках. */

:root {
  --bg: #08090b;
  --surface: #0d141c;
  --surface-low: #161c24;
  --surface: #1a2028;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #e3293f;
  --accent-hot: #ff304a;
  --metal: #b8bec9;
  --muted: #9ba6b8;
}

body {
  background: var(--bg);
  color: #dde3ee;
  font-family: Inter, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

.font-tech {
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: 0.05em;
  /* Цифры одной ширины: секундный таймер не должен дёргать соседний текст. */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.neon-text-red {
  text-shadow: 0 0 12px rgba(255, 48, 74, 0.65), 0 0 24px rgba(227, 41, 63, 0.35);
}

.card-standard {
  background: linear-gradient(180deg, #141922 0%, #0d1219 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.card-live-glow {
  background: linear-gradient(180deg, rgba(68, 14, 25, 0.6) 0%, rgba(18, 13, 20, 0.95) 100%);
  border: 1px solid rgba(227, 41, 63, 0.45);
  box-shadow: 0 10px 30px rgba(227, 41, 63, 0.16), 0 4px 16px rgba(0, 0, 0, 0.8);
}

.tactile-button {
  background: linear-gradient(180deg, #ff3b56 0%, #c4142d 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 18px rgba(227, 41, 63, 0.45);
  transition: transform 0.08s ease;
}
.tactile-button:active {
  transform: scale(0.98);
}

.glass-capsule {
  background: rgba(14, 18, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.pulsate {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 48, 74, 0.7), 0 0 8px rgba(255, 48, 74, 0.9); }
  50%      { box-shadow: 0 0 0 5px rgba(255, 48, 74, 0), 0 0 14px rgba(255, 48, 74, 0.3); }
}

.tech-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 24px 24px;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Чип фильтра: активный залит бордовым с алой рамкой (Outline-Fill из гайда). */
.chip {
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #12161d;
  color: var(--muted);
  transition: all 0.15s ease;
}
.chip[aria-selected="true"] {
  background: #4a0d18;
  border-color: var(--accent);
  color: #fff;
}

.tier-common    { color: var(--metal); }
.tier-mythic    { color: #7dd3fc; }
.tier-legendary { color: #fbbf24; }

.skeleton {
  background: linear-gradient(90deg, #12161d 25%, #1b2230 50%, #12161d 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 12px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Нижняя навигация не должна залезать под системную полосу на iPhone. */
.safe-bottom {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

@media (prefers-reduced-motion: reduce) {
  .pulsate, .skeleton { animation: none; }
}
