:root {
  color-scheme: dark;
  --bg: #0d0d13;
  --bg-top: #151621;
  --panel: #1a1b27;
  --panel-border: #2b2e44;
  --field: #0f1016;
  --field-border: #2b2d3f;
  --text: #f2f1f7;
  --muted: #8f8d9e;
  --label: #a2a0b0;
  --button-top: #6b61ff;
  --button-bottom: #5a55f2;
  --button-shadow: rgba(99, 92, 255, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 18%, var(--bg) 100%);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  padding: 42px 24px 72px;
}

.runner {
  width: min(100%, 700px);
  margin: 0 auto;
}

.hero {
  margin-bottom: 28px;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.hero-icon,
.field-icon,
.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.hero-icon {
  width: 13px;
  height: 23px;
}

.field-icon,
.button-icon {
  width: 16px;
  height: 16px;
}

.hero-icon svg,
.field-icon svg,
.button-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.hero-icon {
  color: #fafaff;
}

.runner-form {
  display: grid;
  gap: 20px;
}

.panel {
  padding: 24px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--label);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: 10px;
  background: var(--field);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #6e6d79;
}

input:focus,
textarea:focus {
  border-color: #454869;
  box-shadow: 0 0 0 2px rgba(92, 88, 242, 0.12);
}

input {
  height: 44px;
  padding: 0 14px;
  font-size: 1rem;
}

textarea {
  min-height: 179px;
  padding: 14px;
  resize: vertical;
  font-size: 0.98rem;
  line-height: 1.5;
}

.field-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.start-button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 27px;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--button-top) 0%, var(--button-bottom) 100%);
  color: #fbfbff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 28px -16px var(--button-shadow);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.start-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px -15px var(--button-shadow);
  filter: brightness(1.03);
}

.start-button:active {
  transform: translateY(0);
}

.start-button:focus-visible {
  outline: 2px solid rgba(123, 117, 255, 0.4);
  outline-offset: 3px;
}

.stats-panel {
  margin-top: 22px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  min-height: 66px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 10px;
  background: var(--field);
  border: 1px solid var(--field-border);
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.stat-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 30px 16px 48px;
  }

  .panel {
    padding: 18px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
