@font-face {
  font-family: "Ford F-1 Regular Custom";
  src: url("https://static.ucraft.net/fs/ucraft/userFiles/fordperformance/fonts/FordF-1-Regular.woff?v=1767011013")
    format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Ford F-1 Semibold Custom";
  src: url("https://static.ucraft.net/fs/ucraft/userFiles/fordperformance/fonts/FordF-1-Semibold.woff?v=1767011018")
    format("opentype");
  font-display: swap;
}

:root {
  --blue: #0072ce;
  --blue-600: #005ba5;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --border: #dce1e7;
  --text: #0f172a;
  --muted: #6b7280;
  --live-text: #15803d;
  --upcoming-text: #2563eb;
  --expired-text: #b45309;
  --planned-text: var(--blue);
  --radius: 18px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  background: var(--bg);
  color: var(--text);
  font-family: "Ford F-1 Regular Custom", sans-serif;
}

h1,
h2,
h3,
.btn,
.route-status,
.route-stage {
  font-family: "Ford F-1 Semibold Custom", sans-serif;
}

code {
  font-family: Consolas, monospace;
  font-size: 0.92em;
}

.page {
  width: min(720px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px 28px;
}

.language-switch {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-family: "Ford F-1 Semibold Custom", sans-serif;
  font-size: 0.8rem;
  line-height: 1;
}

.language-link.is-active {
  border-color: var(--blue);
  color: var(--blue);
}
.page-header {
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.page-header.is-empty {
  padding-bottom: 0;
  border-bottom: 0;
}

.brand-logo {
  display: block;
  width: 180px;
  max-width: 72%;
  height: auto;
  margin: 0 auto 28px;
}

.page-header h1 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: 0;
}

.page-header p {
  margin: 14px auto 0;
  max-width: 440px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.96rem;
}

.section-block {
  margin-top: 26px;
}

.section-title {
  margin: 0 0 14px 4px;
  font-size: 1.1rem;
  color: #374151;
}

.route-list {
}

.route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.route-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.route-logo-wrap {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.route-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.route-copy {
  min-width: 0;
}

.route-meta-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 0.77rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.route-status-live {
  color: var(--live-text);
}

.route-status-upcoming {
  color: var(--upcoming-text);
}

.route-status-expired {
  color: var(--expired-text);
}

.route-status-planned {
  color: var(--planned-text);
}

.route-stage,
.route-separator {
  color: var(--muted);
}

.route-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text);
}

.route-subtitle,
.route-window {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.91rem;
}

.route-action {
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 0.96rem;
  line-height: 1;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
}

.btn.muted {
  background: #e5e7eb;
  color: #6b7280;
  pointer-events: none;
}
.error-state {
  margin-top: 24px;
  padding-top: 18px;
  text-align: center;
}

.page-header + .error-state {
  margin-top: 18px;
  padding-top: 0;
}

.error-state h2 {
  margin: 0 0 10px;
  font-size: 1.04rem;
  color: #374151;
}

.error-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.page-footer {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 640px) {
  body {
    padding: 0;
  }

  .page {
    width: 100%;
    min-height: 100svh;
    padding: 28px 18px 24px;
    border: 0;
    border-radius: 0;
  }

  .brand-logo {
    width: 160px;
    margin-bottom: 24px;
  }

  .route-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .route-action,
  .route-action .btn {
    width: 100%;
  }
}

.route-note {
  margin-top: 8px;
  color: #64748b;
  font-size: 0.84rem;
}

.access-card {
  margin-top: 24px;
  padding-top: 22px;
  text-align: center;
}

.access-kicker {
  color: var(--blue);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.access-card h2 {
  margin: 10px 0 0;
  font-size: 1.12rem;
  color: var(--text);
}

.access-form {
  width: min(100%, 360px);
  margin: 18px auto 0;
}

.access-label {
  display: block;
  margin-bottom: 8px;
  text-align: left;
  font-family: "Ford F-1 Semibold Custom", sans-serif;
  font-size: 0.88rem;
  color: var(--text);
}

.access-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
}

.access-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.12);
}

.access-submit {
  width: 100%;
  margin-top: 12px;
}

.form-error {
  width: min(100%, 360px);
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.92rem;
  line-height: 1.45;
}

.page-footer a:not(.btn) {
  color: var(--blue);
  text-decoration: none;
}

@supports (min-height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}
