.tl-freeze-meter {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  width: min(360px, calc(100vw - 48px));
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.tl-freeze-meter.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tl-freeze-meter__bar {
  width: 0%;
  height: 100%;
  background: #e8973e;
  box-shadow: 0 0 18px rgba(232, 151, 62, 0.65);
  transition: width 120ms ease;
}

.tl-time-slider {
  --tl-time-progress: 50%;
  width: min(680px, 100%);
  padding: 14px 16px 12px;
  border: 1px solid rgba(232, 151, 62, 0.34);
  background:
    linear-gradient(90deg, rgba(232, 151, 62, 0.10), rgba(94, 196, 212, 0.05)),
    #0c0c0c;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.tl-time-slider__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-family: var(--font-geist-mono), ui-monospace, monospace;
  text-transform: uppercase;
  color: #f5f5f3;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.tl-time-slider__header span {
  color: rgba(245, 245, 243, 0.42);
}

.tl-time-slider__header strong {
  color: #e8973e;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.tl-time-slider input[type="range"] {
  width: 100%;
  height: 20px;
  accent-color: #e8973e;
  background: transparent;
  cursor: pointer;
}

.tl-time-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8973e 0 var(--tl-time-progress), #222220 var(--tl-time-progress) 100%);
  box-shadow: 0 0 14px rgba(232, 151, 62, 0.18);
}

.tl-time-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border: 2px solid #0c0c0c;
  border-radius: 999px;
  background: #f5f5f3;
  box-shadow: 0 0 0 3px rgba(232, 151, 62, 0.24), 0 0 18px rgba(232, 151, 62, 0.68);
}

.tl-time-slider input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8973e 0 var(--tl-time-progress), #222220 var(--tl-time-progress) 100%);
}

.tl-time-slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #0c0c0c;
  border-radius: 999px;
  background: #f5f5f3;
  box-shadow: 0 0 0 3px rgba(232, 151, 62, 0.24), 0 0 18px rgba(232, 151, 62, 0.68);
}

.tl-time-slider__ticks {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin: 2px 8px -2px;
}

.tl-time-slider__ticks button {
  position: relative;
  min-width: 0;
  height: 8px;
  color: rgba(245, 245, 243, 0.42);
  cursor: pointer;
}

.tl-time-slider__ticks button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #222220;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tl-time-slider__ticks button.is-active::before {
  background: #e8973e;
  box-shadow: 0 0 0 3px rgba(232, 151, 62, 0.22), 0 0 18px rgba(232, 151, 62, 0.7);
}

.tl-time-slider__phases {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: rgba(245, 245, 243, 0.28);
  font-family: var(--font-geist-mono), ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tl-hidden-time-buttons {
  display: none !important;
}

.tl-risk-controls {
  padding: 18px 24px 20px;
  border-bottom: 1px solid #222220;
  background: #0c0c0c;
}

.tl-risk-controls__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  gap: 14px;
  align-items: stretch;
}

.tl-risk-controls__crew,
.tl-risk-controls__time {
  min-width: 0;
}

.tl-risk-crew-grid {
  height: 100%;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1px !important;
  background: #222220;
}

.tl-risk-crew-grid button {
  min-height: 74px;
  padding: 14px 16px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tl-risk-crew-grid .font-display {
  margin: 0 !important;
  font-size: clamp(22px, 2.4vw, 34px) !important;
  line-height: 1 !important;
}

.tl-risk-time-row {
  max-width: none !important;
  height: 100%;
  margin: 0 !important;
  display: block !important;
}

.tl-risk-time-row > span {
  display: none !important;
}

.tl-risk-controls .tl-time-slider {
  width: 100%;
  height: 100%;
  min-height: 74px;
  padding: 12px 14px 10px;
}

.tl-risk-controls + section {
  padding-top: 72px !important;
}

.tl-crew-tour {
  position: relative;
  min-height: 430vh;
  border-block: 1px solid #222220;
  background: #0c0c0c;
}

.tl-crew-tour__sticky {
  position: sticky;
  top: 73px;
  height: calc(100vh - 73px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.tl-crew-tour__intro {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto 28px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.tl-crew-tour__intro p {
  max-width: 360px;
  color: #888884;
  font-size: 13px;
  line-height: 1.6;
}

.tl-crew-tour__track {
  display: flex;
  gap: 24px;
  padding: 0 calc((100vw - min(100vw, 1100px)) / 2 + 24px);
  will-change: transform;
  transition: transform 160ms ease-out;
}

.tl-crew-card {
  flex: 0 0 min(820px, calc(100vw - 48px));
  min-height: min(560px, calc(100vh - 190px));
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 32px;
  border: 1px solid #222220;
  background: #101010;
}

.tl-crew-card__id {
  font-family: "Bricolage Grotesque Variable", system-ui, sans-serif;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.tl-crew-card__summary {
  margin-top: 24px;
  max-width: 300px;
  color: #888884;
  font-size: 14px;
  line-height: 1.7;
}

.tl-crew-card__facts {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.tl-crew-card__facts div {
  padding-top: 10px;
  border-top: 1px solid #222220;
}

.tl-crew-card__facts span,
.tl-crew-card__facts strong,
.tl-crew-card__recovery span {
  display: block;
  font-family: var(--font-geist-mono), ui-monospace, monospace;
  text-transform: uppercase;
}

.tl-crew-card__facts span {
  color: rgba(245, 245, 243, 0.28);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.tl-crew-card__facts strong {
  margin-top: 4px;
  color: #f5f5f3;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

.tl-crew-card__stats {
  display: grid;
  gap: 10px;
  align-content: center;
}

.tl-crew-stat {
  display: grid;
  grid-template-columns: 150px 1fr 54px;
  gap: 12px;
  align-items: center;
  font-family: var(--font-geist-mono), ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888884;
}

.tl-crew-stat__bar {
  height: 8px;
  overflow: hidden;
  background: #222220;
}

.tl-crew-stat__bar span {
  display: block;
  height: 100%;
}

.tl-crew-card__recovery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.tl-crew-card__recovery span {
  min-height: 56px;
  padding: 11px 10px;
  border: 1px solid #222220;
  color: rgba(245, 245, 243, 0.62);
  font-size: 9px;
  letter-spacing: 0.07em;
  line-height: 1.45;
}

.tl-next-step {
  padding: 110px 24px 130px;
  display: grid;
  place-items: center;
  border-top: 1px solid #222220;
  background: #0c0c0c;
}

.tl-next-step a,
.tl-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8973e;
  background: #e8973e;
  color: #0c0c0c;
  font-family: var(--font-geist-mono), ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease;
}

.tl-next-step a {
  min-width: min(520px, calc(100vw - 48px));
  padding: 28px 32px;
  font-size: 14px;
}

.tl-next-step a:hover,
.tl-back-link:hover {
  transform: translateY(-2px);
  background: #f5f5f3;
}

.tl-back-link {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 70;
  padding: 12px 16px;
  font-size: 11px;
}

@media (max-width: 720px) {
  .tl-risk-controls {
    padding: 14px;
  }

  .tl-risk-controls__inner {
    grid-template-columns: 1fr;
  }

  .tl-risk-crew-grid button {
    min-height: 58px;
    padding: 10px !important;
  }

  .tl-time-slider {
    padding: 14px;
  }

  .tl-time-slider__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tl-time-slider__header strong {
    text-align: left;
  }

  .tl-crew-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .tl-crew-stat {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .tl-crew-card__recovery {
    grid-template-columns: 1fr;
  }

  .tl-crew-tour__intro {
    display: block;
  }
}
