:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8fafc;
  background: #0b0e12;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --color-background: #0b0e12;
  --color-surface: rgba(16, 20, 26, 0.94);
  --color-text: #f8fafc;
  --color-muted: #9ba5b1;
  --color-line: rgba(255, 255, 255, 0.12);
  --color-accent: #e82127;
  --color-accent-hover: #ff3038;
  --color-success: #22c55e;
  --color-error: #f87171;
  --radius-card: 14px;
  --radius-control: 8px;
  --shadow-card: 0 22px 70px rgba(0, 0, 0, 0.48);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--color-background);
}

body {
  display: grid;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 36px 20px;
  place-items: center;
  color: var(--color-text);
  background-color: var(--color-background);
  background-image:
    linear-gradient(180deg, rgba(5, 7, 10, 0.32), rgba(5, 7, 10, 0.88)),
    url("../images/map-vertical-road-red-pointer-shifted-left.png");
  background-position: center, 40% 42%;
  background-repeat: no-repeat;
  background-size: cover, cover;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #ff666b;
  outline-offset: 3px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 24px;
  color: var(--color-text);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.055em;
}

.brand-mark {
  display: block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}

button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 140ms ease, transform 140ms ease, opacity 140ms ease;
}

button:hover:not(:disabled) {
  background: var(--color-accent-hover);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

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

.text-button {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 17px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fca5a5;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.text-button:hover:not(:disabled) {
  background: transparent;
  color: #fecaca;
  text-decoration: underline;
}

.status {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.status[data-tone="error"] {
  color: var(--color-error);
}

.status[data-tone="success"] {
  color: var(--color-success);
}

[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  body {
    padding: 28px 16px;
    background-position: center, 20% -64vh;
    background-size: cover, auto 180vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
