:root {
  --bg: #111418;
  --panel: #1b1f24;
  --text: #f3f3f3;
  --muted: #9aa4ad;
  --line: #5f6b76;
  --passed: #d64545;
  --current: #f0c419;
  --upcoming: #35b56a;
  --station-size: 18px;
}

@font-face {
  font-family: "DotGothic16";
  src: url("./DotGothic16-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 32px 20px;
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.top-banner {
  width: 100%;
  overflow: hidden;
  padding: 8px 0 10px;
  margin-bottom: 16px;
  border: 1px solid #6e5b00;
  border-radius: 12px;
  background: #050505;
  box-shadow: inset 0 0 14px rgba(255, 214, 10, 0.08);
}

.top-banner-track {
  display: inline-flex;
  align-items: center;
  gap: 180px;
  white-space: nowrap;
  min-width: max-content;
  font-family: "DotGothic16", Consolas, "Courier New", monospace;
  font-size: 34px;
  line-height: 1;
  color: #ffd60a;
  text-shadow: 0 0 8px rgba(255, 214, 10, 0.2);
  animation: banner-scroll 25s linear infinite;
}

.top-banner-text {
  padding-right: 200px;
}

@keyframes banner-scroll {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.title-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-family: "DotGothic16", Consolas, "Courier New", monospace;
  color: #ffd60a;
}

.title-label {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.title-select {
  border: 1px solid #3b4650;
  border-radius: 10px;
  background: #141a20;
  color: inherit;
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
}

.title-select:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.line-panel {
  background: var(--panel);
  border-radius: 16px;
  padding: 24px 20px 28px;
  margin-bottom: 24px;
  width: 100%;
  overflow-x: auto;
}

.line-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.line-label-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.line-badge-t {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00a9e0;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}

.line-badge-dark-blue {
  background: #0d47a1;
}

.line-badge-yellow {
  background: #f0c419;
  color: #000000;
}

.line-badge-medium-blue {
  background: #2b6cb0;
  color: #ffffff;
}

.line-badge-orange {
  background: #f28c28;
  color: #ffffff;
}

.line-layout {
  position: relative;
  padding-left: 28px;
}

.split-vertical {
  position: absolute;
  left: 8px;
  top: 48px;
  width: 3px;
  height: 76px;
  background: var(--line);
  border-radius: 999px;
}

.line-layout-triple .split-vertical {
  height: 144px;
}

.progress-group + .progress-group {
  margin-top: 14px;
}

.branch-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.progress-bar {
  position: relative;
  min-width: 800px;
  padding: 22px 0 0;
}

.progress-line {
  position: absolute;
  top: 9px;
  left: 0;
  right: 40px;
  height: 4px;
  background: var(--line);
  z-index: 0;
  border-radius: 999px;
}

.stations {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.station {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 80px;
  padding: 0;
}

.station:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 8px;
}

.station-dot {
  width: var(--station-size);
  height: var(--station-size);
  border-radius: 50%;
  border: 3px solid var(--line);
  background: var(--panel);
  transition: all 0.25s ease;
}

.station-label {
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  color: var(--muted);
  transition: color 0.25s ease;
  max-width: 90px;
  word-break: break-word;
}

.station.passed .station-dot {
  background: var(--passed);
  border-color: var(--passed);
}

.station.passed .station-label {
  color: #f0d0d0;
}

.station.current .station-dot {
  background: var(--current);
  border-color: var(--current);
  box-shadow: 0 0 0 6px rgba(240, 196, 25, 0.15);
  animation: current-dot-flash 4s steps(1, end) infinite;
}

.station.current .station-label {
  color: #fff6c2;
  font-weight: bold;
}

@keyframes current-dot-flash {
  0%,
  49.99% {
    background: var(--current);
    border-color: var(--current);
    box-shadow: 0 0 0 6px rgba(240, 196, 25, 0.15);
  }

  50%,
  100% {
    background: var(--line);
    border-color: var(--line);
    box-shadow: none;
  }
}

.station.upcoming .station-dot {
  background: var(--upcoming);
  border-color: var(--upcoming);
}

.station.upcoming .station-label {
  color: #c7f0d5;
}

.station.pending .station-dot {
  background: #8c96a0;
  border-color: #8c96a0;
  border-style: dashed;
}

.station.pending .station-label {
  color: #c4ccd4;
}

.mobile-station-dropdown {
  display: none;
}

.mobile-station-trigger,
.mobile-station-option {
  width: 100%;
}

.mobile-station-trigger.station,
.mobile-station-option.station {
  background: #050505;
  border: 1px solid #6e5b00;
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
}

.mobile-station-trigger .station-label,
.mobile-station-option .station-label {
  max-width: none;
  text-align: left;
}

.mobile-station-caret {
  margin-left: auto;
  color: #ffd60a;
}

.mobile-station-options {
  display: none;
  margin-top: 8px;
  gap: 8px;
}

.mobile-station-dropdown.open .mobile-station-options {
  display: grid;
}

.content-panel {
  background:
    linear-gradient(rgba(255, 214, 10, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 214, 10, 0.04) 1px, transparent 1px),
    #000000;
  background-size: 100% 4px, 10px 100%, auto;
  border: 1px solid #6e5b00;
  box-shadow: inset 0 0 24px rgba(255, 214, 10, 0.08);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  font-family: "DotGothic16", Consolas, "Courier New", monospace;
}

.content-panel h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 24px;
  color: #ffd60a;
  letter-spacing: 0.4px;
  text-shadow: 0 0 8px rgba(255, 214, 10, 0.25);
}

.content-panel p {
  margin: 0 0 10px;
  color: #e6c64f;
  line-height: 1.6;
}

.bottom-panels {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compact-panel {
  min-height: 230px;
  display: flex;
  flex-direction: column;
}

.panel-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.panel-time,
.panel-weather {
  font-size: 12px;
  letter-spacing: 0.5px;
  line-height: 1;
  color: #f6d765;
}

.panel-arrival-line {
  margin-top: auto;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6e5b00 0%, #ffd60a 50%, #6e5b00 100%);
  opacity: 0.9;
}

.panel-arrival-text {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  color: #f6d765;
  text-align: right;
}

.contact-link {
  color: #e6c64f;
  font-family: inherit;
  text-decoration-color: #ffd60a;
  text-underline-offset: 2px;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #ffd60a;
}

.site-copyright {
  margin: 16px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}

.nav-buttons {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.nav-buttons button {
  border: 1px solid #6e5b00;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  background: #050505;
  color: #ffd60a;
  font-size: 14px;
  font-family: "DotGothic16", Consolas, "Courier New", monospace;
}

.nav-buttons button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .top-banner-track {
    font-size: 22px;
  }

  .line-layout {
    padding-left: 18px;
  }

  .split-vertical {
    display: none;
  }

  .progress-bar {
    display: none;
  }

  .mobile-station-dropdown {
    display: block;
  }

  body {
    padding: 20px 12px;
  }

  .title-select {
    font-size: 20px;
  }

  .content-panel h2 {
    font-size: 20px;
  }

  .bottom-panels {
    grid-template-columns: 1fr;
  }
}
