.track-selection .app-shell {
  background: #080c12;
  height: 100dvh;
}

.track-grid {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 1.2vw, 20px);
  width: 100%;
  padding: clamp(12px, 2.6vw, 48px);
}

.track-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1vh, 12px);
  min-width: 0;
  min-height: 0;
  padding: clamp(6px, 1.1vw, 20px);
  border: 1px solid #252e3b;
  border-radius: 8px;
  background: #101721;
  transition: border-color 160ms, background-color 160ms;
}

.track-tile:hover {
  border-color: #8492a5;
  background: #18222f;
}

.track-tile[aria-pressed="true"] {
  border-color: #dce4ef;
  background: #202c3b;
}

.track-tile:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.track-tile img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
}

.track-name {
  flex: none;
  max-width: 100%;
  color: #e5eaf1;
  font-size: clamp(10px, 1.1vw, 18px);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

.track-error {
  position: fixed;
  z-index: 2;
  inset: 68px 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.track-selection .actionbar a[aria-disabled="true"] {
  opacity: .4;
  pointer-events: none;
}

.track-error button {
  padding: 8px 24px;
  border: 1px solid #8492a5;
  border-radius: 4px;
}
