*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #0f1419;
  color: #e7ecf3;
  line-height: 1.5;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

h1 {
  font-size: 1.35rem;
  font-weight: 650;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: #b8c4d6;
}

.hint {
  margin: 0 0 1.25rem;
  color: #9aa8bc;
  font-size: 0.9rem;
}

.panel {
  background: #1a2332;
  border: 1px solid #2a3548;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
}

.stat + .stat {
  border-top: 1px solid #2a3548;
}

.label {
  color: #9aa8bc;
  font-size: 0.9rem;
}

.stat strong {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.routes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.routes button {
  cursor: pointer;
  border: 1px solid #3d4f6a;
  background: #243047;
  color: #e7ecf3;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.routes button:hover {
  background: #2c3a56;
}

.routes button.active {
  border-color: #5b8cff;
  background: #1e3a6e;
}

.current {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  color: #9aa8bc;
}

.breakdown {
  margin: 0;
  padding: 0.75rem;
  background: #121824;
  border-radius: 8px;
  border: 1px solid #2a3548;
  font-size: 0.8rem;
  overflow-x: auto;
  color: #c8d4e6;
}

code {
  font-size: 0.9em;
  color: #8ec5ff;
}
