/* =====================================================
   semaking · hub — styles (minimalist black, kondrat-style tiles)
   ===================================================== */

/* Self-hosted fonts — TSPU в РФ режет fonts.gstatic.com, из-за чего страница
   раньше рендерилась serif-default'ом и жила без CSS по 5+ секунд. Инлайн
   CSS + woff2 с того же домена = моментальный fallback. Variable fonts:
   один файл закрывает все weights через `font-weight: 400 900`. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color tokens — flat black palette, no radial gradients */
  --bg: #0A0A0B;
  --bg-elev: #121214;
  --bg-tile: rgba(26, 26, 30, 0.5);
  --bg-tile-hover: rgba(36, 36, 42, 0.65);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #F5F5F7;
  --text-dim: rgba(245, 245, 247, 0.55);
  --text-mute: rgba(245, 245, 247, 0.38);

  --accent: #00D9FF;
  --accent-dim: rgba(0, 217, 255, 0.7);
  --live: #FF3B3B;
  --gold: #f4b400;

  --radius: 14px;
  --radius-lg: 20px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Атрибут [hidden] должен ВСЕГДА скрывать элемент, даже если ниже по каскаду
   что-то выставляет display:flex/inline-flex/grid. Без этого `element.hidden = true`
   из JS не работает на элементах со своим display. */
[hidden] { display: none !important; }

html { color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(0, 217, 255, 0.35); color: #fff; }

/* ============ LAYOUT SHELL ============ */

.shell {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ============ HERO ============ */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  margin-bottom: 56px;
}

.hero__avatar {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.hero__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* Симметричные паддинги: когда count пуст (оффлайн) — пилюля визуально
     центрирована. Когда count показан (в live) — :empty не срабатывает
     и gap до count даёт ровно 8px, визуально воспринимается как «· 1234». */
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-tile);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: border-color 160ms var(--ease-out), color 160ms;
}
.live-pill:hover { border-color: var(--border-strong); color: var(--text); }
.live-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-mute);
  flex-shrink: 0;
}
/* Пустой count-span не должен занимать flex-gap справа от label.
   Без этого правила Offline-пилюля уезжает влево относительно своего padding. */
.live-pill__count:empty { display: none; }
.live-pill[data-state="live"] { color: var(--text); border-color: rgba(255,59,59,0.35); }
.live-pill[data-state="live"] .live-pill__label { color: var(--live); font-weight: 700; letter-spacing: 0.04em; }
.live-pill[data-state="live"] .live-pill__dot {
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7);
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(255, 59, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}
.live-pill[data-state="error"] { opacity: 0.6; }

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-tile);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}
.stat-chip svg { color: var(--text-mute); }
.stat-chip__num { color: var(--text); font-weight: 600; }

/* ============ TILES GRID (kondrat-style: big, widescreen, 2-col) ============ */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 34px 36px;
  min-height: 148px;
  background: var(--bg-tile);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  transition:
    border-color 180ms var(--ease-out),
    background 180ms var(--ease-out),
    transform 180ms var(--ease-out);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}
.tile:hover {
  border-color: var(--border-strong);
  background: var(--bg-tile-hover);
  transform: translateY(-2px);
}
.tile:active { transform: translateY(0); }

/* primary-style tiles (internal detail-page links) get a subtle accent glow on hover */
.tile--primary:hover {
  border-color: rgba(0, 217, 255, 0.35);
}

.tile__icon {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: background 180ms var(--ease-out);
  overflow: hidden;
}
.tile:hover .tile__icon { background: rgba(255, 255, 255, 0.07); }

.tile__icon--kick { color: #53fc18; background: #0f2d04; border-color: rgba(83,252,24,0.22); }
.tile__icon--tg { color: #2ea2d9; background: #0d2230; border-color: rgba(46,162,217,0.25); }
.tile__icon--bypass { color: var(--accent); background: rgba(0,217,255,0.08); border-color: rgba(0,217,255,0.22); }
.tile__icon--speed { color: #a855f7; background: rgba(168,85,247,0.08); border-color: rgba(168,85,247,0.25); }
.tile__icon--dragon {
  background:
    radial-gradient(circle at 50% 35%, rgba(255,215,100,0.35) 0%, rgba(180,120,0,0) 70%),
    #0f0a02;
  border-color: rgba(255,199,80,0.4);
  padding: 4px;
}
.tile__icon--dragon img {
  width: 100%;
  height: 100%;
  /* contain вместо cover — чтобы дракон НЕ обрезался по краям (крылья/хвост
     уходили за рамку). Теперь весь маскот видно целиком. */
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
  filter: drop-shadow(0 4px 12px rgba(255, 190, 70, 0.25));
}
.tile__icon--contact { color: #ffbd59; background: rgba(255,189,89,0.08); border-color: rgba(255,189,89,0.25); }

.tile__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tile__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  font-weight: 600;
  margin-bottom: 4px;
}
.tile__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.1;
}
.tile__sub {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 400;
  margin-top: 4px;
  line-height: 1.35;
}
.tile__arrow {
  flex-shrink: 0;
  font-size: 26px;
  color: var(--text-mute);
  transition: transform 180ms var(--ease-out), color 180ms;
  font-weight: 300;
}
.tile:hover .tile__arrow {
  color: var(--text);
  transform: translateX(4px);
}

/* ============ FOOTER ============ */

.foot {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
}
.foot__copy {
  font-size: 13px;
  color: var(--text-mute);
}

/* ============ DETAIL PAGE (kick-bypass, speedhack) ============ */

.detail-nav {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-tile);
  transition: color 160ms, border-color 160ms;
}
.back-link:hover { color: var(--text); border-color: var(--border-strong); }

.detail-head {
  margin-bottom: 40px;
}
.detail-head__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.detail-head__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.detail-head__lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 640px;
}

.detail-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-tile);
  color: var(--text);
  cursor: pointer;
  transition:
    background 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}
.btn:hover { background: var(--bg-tile-hover); border-color: var(--border-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--accent);
  color: #001420;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: #33e2ff;
  border-color: #33e2ff;
  box-shadow: 0 8px 24px -8px rgba(0, 217, 255, 0.5);
}
.btn__meta {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 500;
}

.detail-section {
  margin: 48px 0;
}
.detail-section__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.steps {
  display: grid;
  gap: 14px;
  counter-reset: steps;
  list-style: none;
}
.steps li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--bg-tile);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.steps li::before {
  content: counter(steps);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.22);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.steps li strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.steps li p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
}
.steps li code {
  display: inline-block;
  padding: 1px 7px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
}

/* Inline-скриншот ВНУТРИ шага гайда (между <p> и следующим <li>).
   Компактный, кликается в lightbox (см. detail.js). Максимальная ширина
   ограничена, чтобы не растягивал карточку шага на всю ширину макета. */
.step-shot {
  margin: 12px 0 0;
  max-width: 560px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elev);
}
.step-shot img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform 160ms var(--ease-out);
}
.step-shot:hover img { transform: scale(1.01); }
.step-shot--small { max-width: 360px; }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.shots figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-tile);
}
.shots img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  /* Для инструкций важно показать ВСЮ картинку без обрезания краёв
     (контент у скриншотов неравномерный — кнопки могут быть у самого края). */
  object-fit: contain;
  object-position: center;
  background: var(--bg-elev);
  padding: 8px;
}
.shots figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}
.shots figure.shot--placeholder img {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.025) 0 12px,
      transparent 12px 24px
    ),
    var(--bg-elev);
}
.shots figure.shot--placeholder figcaption::before {
  content: '📸 ';
  opacity: 0.5;
}
/* Клик по скриншоту открывает его в полноэкранном lightbox. */
.shots figure:not(.shot--placeholder) img {
  cursor: zoom-in;
  transition: transform 160ms var(--ease-out);
}
.shots figure:not(.shot--placeholder):hover img {
  transform: scale(1.02);
}

/* ============ LIGHTBOX (fullscreen preview) ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 48px;
  cursor: zoom-out;
  animation: lightbox-in 180ms var(--ease-out);
}
@keyframes lightbox-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
  animation: lightbox-zoom 220ms var(--ease-out);
}
@keyframes lightbox-zoom {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.06);
}
.lightbox__caption {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--text-dim);
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: calc(100% - 40px);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .lightbox { padding: 20px; }
  .lightbox__close { top: 12px; right: 14px; width: 38px; height: 38px; font-size: 20px; }
  .lightbox__caption { font-size: 12px; padding: 6px 14px; bottom: 14px; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.facts li {
  padding: 18px 20px;
  background: var(--bg-tile);
  border: 1px solid var(--border);
  border-radius: 12px;
  list-style: none;
}
.facts li strong {
  display: block;
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}
.facts li span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 189, 89, 0.08);
  border: 1px solid rgba(255, 189, 89, 0.25);
  color: #ffbd59;
}
.pending-badge::before {
  content: '●';
  color: #ffbd59;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }

/* Версия расширения + дата обновления под CTA-кнопкой.
   Компактный серый chip; появляется только после успешного fetch meta.json. */
.version-chip {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  letter-spacing: 0.01em;
}
.version-chip__version {
  font-family: var(--font-display, 'Space Grotesk'), system-ui, sans-serif;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0;
}
.version-chip__dot {
  opacity: 0.45;
  user-select: none;
}
.version-chip__date { white-space: nowrap; }

/* ============ MOBILE ============ */

@media (max-width: 720px) {
  .shell { padding: 32px 18px 48px; }

  .hero {
    gap: 18px;
    margin-bottom: 36px;
  }
  .hero__avatar { width: 112px; height: 112px; }
  .hero__meta { gap: 12px; }

  .tiles {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 40px;
  }
  .tile {
    padding: 24px 22px;
    gap: 18px;
    min-height: 108px;
  }
  .tile__icon { width: 58px; height: 58px; border-radius: 14px; }
  .tile__title { font-size: 21px; }
  .tile__sub { font-size: 14px; }
  .tile__eyebrow { font-size: 10px; }
  .tile__arrow { font-size: 21px; }

  .detail-head { margin-bottom: 28px; }
  .detail-head__lead { font-size: 15px; }
  .detail-cta { gap: 10px; margin: 24px 0; }
  .btn { padding: 14px 22px; font-size: 15px; }
  .detail-section { margin: 32px 0; }
  .detail-section__title { font-size: 19px; margin-bottom: 14px; }

  .steps li { padding: 16px 18px; grid-template-columns: 36px 1fr; gap: 14px; }
  .steps li::before { width: 32px; height: 32px; font-size: 14px; }
  .steps li strong { font-size: 15px; }

  .shots { grid-template-columns: 1fr; gap: 12px; }
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ MIRROR BANNER (TSPU fallback) ============
   Показывается поверх основной сетки, когда /api/kick-status двукратно
   провалился — сигнализирует юзеру что CF-путь забит, предлагает переход
   на non-CF зеркало (mirror.semadrgn.me:8443). На самом зеркале баннер
   не рендерится (скрипт матчит location.host). */
#mirror-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.92);
  border: 1px solid rgba(255, 189, 89, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.4);
  animation: mirror-banner-slide 260ms var(--ease-out) both;
}
#mirror-banner:hover {
  border-color: rgba(255, 189, 89, 0.8);
  background: rgba(30, 30, 34, 0.95);
}
.mirror-banner__ico {
  font-size: 16px;
  color: #ffbd59;
  flex-shrink: 0;
}
.mirror-banner__body {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.mirror-banner__title {
  font-weight: 600;
  color: var(--text);
}
.mirror-banner__sub {
  font-size: 12px;
  color: var(--text-dim);
}
.mirror-banner__arrow {
  font-size: 18px;
  color: var(--text-mute);
  flex-shrink: 0;
  transition: transform 160ms var(--ease-out), color 160ms;
}
#mirror-banner:hover .mirror-banner__arrow {
  color: var(--text);
  transform: translateX(3px);
}
@keyframes mirror-banner-slide {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 520px) {
  #mirror-banner {
    left: 16px;
    right: 16px;
    transform: none;
    max-width: calc(100vw - 32px);
    justify-content: center;
  }
  @keyframes mirror-banner-slide {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
