/* Intermediate download page (/skachat/) */

.gate {
  padding: 48px 0 32px;
  max-width: 560px;
  margin: 0 auto;
}

.gate h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  text-align: center;
}

.gate__lead {
  margin: 0 0 28px;
  text-align: center;
  color: var(--ink-soft);
}

.gate__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.gate__timer {
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}

.gate__timer-label {
  margin: 0 0 20px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.gate__progress {
  width: 100%;
  height: 6px;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 24px;
}

.gate__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 200ms linear;
}

@media (prefers-reduced-motion: reduce) {
  .gate__progress-bar {
    transition: none;
  }
}

.gate__status {
  margin: 0 0 20px;
  min-height: 1.5em;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.gate__status.is-ready {
  color: var(--ok);
  font-weight: 500;
}

.gate__dl {
  width: 100%;
  max-width: 320px;
}

.gate__dl[hidden] {
  display: none !important;
}

.gate__meta {
  margin-top: 28px;
}

.gate__back {
  margin-top: 24px;
  text-align: center;
}

.gate__back a {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.gate__back a:hover {
  color: var(--accent);
}
