:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: #181b20;
  --panel-border: #2b3139;
  --text: #f4f6f8;
  --muted: #aeb7c2;
  --accent: #20d5c7;
  --accent-strong: #ff3b6f;
  --danger: #ff6b6b;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(32, 213, 199, 0.16), transparent 34rem),
    linear-gradient(145deg, #101114 0%, #16191f 45%, #0f1013 100%);
  color: var(--text);
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(720px, 100%);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(24, 27, 32, 0.94);
  box-shadow: 0 24px 70px var(--shadow);
  padding: clamp(22px, 5vw, 40px);
}

.heading {
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.download-form {
  display: grid;
  gap: 10px;
}

label {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  width: 100%;
  min-width: 0;
  height: 50px;
  border: 1px solid #3b424d;
  border-radius: 8px;
  background: #0f1115;
  color: var(--text);
  font: inherit;
  padding: 0 14px;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(32, 213, 199, 0.16);
}

button,
.download-link {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #061315;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0 20px;
  text-decoration: none;
  display: inline-grid;
  place-items: center;
}

button:hover,
.download-link:hover {
  filter: brightness(1.06);
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.status-area {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.message {
  min-height: 24px;
  color: var(--muted);
}

.message.error {
  color: var(--danger);
}

.progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #0d0f12;
  border: 1px solid #2a3038;
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 180ms ease;
}

.download-link {
  justify-self: start;
  background: var(--accent-strong);
  color: #fff;
}

.hidden {
  display: none;
}

.rules {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rules li {
  border: 1px solid #333a44;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 8px 11px;
}

@media (max-width: 620px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  button,
  .download-link {
    width: 100%;
  }
}
