@import url("/static/root.css");

main {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0;
}

body.page-glow::after {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(56, 215, 255, 0.16),
      transparent 34rem
    ),
    radial-gradient(
      circle at 50% 78%,
      rgba(56, 215, 255, 0.12),
      transparent 28rem
    );
  animation: pageGlow 650ms ease-out both;
}

body.has-onboarding {
  overflow: hidden;
}

.onboarding {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 5, 10, 0.5);
  backdrop-filter: blur(2px);
}

.onboarding[hidden] {
  display: none;
}

.onboarding-panel {
  display: grid;
  gap: 18px;
  width: min(560px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.98);
  box-shadow:
    0 24px 90px rgba(0, 0, 0, 0.68),
    0 0 80px rgba(56, 215, 255, 0.12);
}

.onboarding-slide {
  display: grid;
  gap: 14px;
  align-content: center;
}

.onboarding-slide h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(34px, 8vw, 58px);
}

.onboarding-slide p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
  /* margin-bottom: 12px; */
}

.onboarding-legal {
  padding: 12px;
  border: 1px solid rgba(146, 165, 183, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px !important;
}

.onboarding-legal a {
  color: var(--cyan);
  font-weight: 800;
}

.onboarding-actions {
  display: grid;
}

.onboarding-actions .primary-button {
  min-height: 50px;
}

.onboarding-start {
  width: 100%;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 24px;
  grid-template-columns: 1fr;
}

.brand,
.nav {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
}

.brand {
  gap: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 60px;
  height: 20px;
  border: 2px solid var(--cyan);
  border-radius: 5px;
  box-shadow: 0 0 24px rgba(56, 215, 255, 0.6);
}

.nav {
  gap: 8px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 14, 22, 0.72);
  backdrop-filter: blur(14px);
  margin-top: 24px;
  justify-content: space-between;
}

.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  flex: 1;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.nav a:hover {
  background: rgba(56, 215, 255, 0.1);
  color: var(--text);
}

.nav a.active {
  background: rgba(56, 215, 255, 0.1);
  color: var(--text);
}

.account-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.account-bar a,
.account-bar button {
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.scene-glow {
  position: fixed;
  bottom: -12rem;
  z-index: -2;
  width: 34rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.62;
}

.scene-glow-left {
  left: -8rem;
  background: radial-gradient(
    circle,
    rgba(255, 207, 98, 0.48),
    transparent 68%
  );
}

.scene-glow-right {
  right: -8rem;
  background: radial-gradient(
    circle,
    rgba(56, 215, 255, 0.36),
    transparent 68%
  );
}

.road-lines {
  position: fixed;
  right: 10%;
  bottom: -10%;
  z-index: -1;
  width: 32%;
  height: 70%;
  transform: perspective(360px) rotateX(64deg) skewX(-8deg);
  background: repeating-linear-gradient(
    90deg,
    transparent 0 42px,
    rgba(255, 207, 98, 0.18) 42px 49px,
    transparent 49px 92px
  );
  opacity: 0.28;
}

.hero-grid,
.content-grid {
  gap: 22px;
}

.dashboard-panel,
.section-block,
.profile-hero,
.locked-panel,
.stats-hero,
.reward {
  border: 1px solid var(--line);
  border-radius: 8px;
  /* background: rgba(255, 255, 255, 0.035); */
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.ride-form .numbers-row {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 10px;
}

.ride-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.guest-notice {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 207, 98, 0.34);
  border-radius: 8px;
  background: rgba(255, 207, 98, 0.08);
  color: #ffe7a8;
}

.guest-notice strong {
  font-size: 15px;
}

.guest-notice span {
  color: rgba(255, 231, 168, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.guest-notice a {
  color: var(--cyan);
  font-weight: 900;
}

.success-notice {
  border-color: rgba(97, 242, 173, 0.38);
  background: rgba(97, 242, 173, 0.08);
  color: #caffdf;
}

.success-notice span {
  color: rgba(202, 255, 223, 0.82);
}

.recent-entry-block {
  margin-top: 48px;
}

.recent-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.recent-entry-head h2 {
  font-size: 18px;
}

.recent-entry-head a {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.recent-entry-list {
  display: grid;
  gap: 8px;
}

.recent-entry-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(146, 165, 183, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.recent-entry-item div {
  min-width: 0;
  flex: 1;
}

.recent-entry-item strong,
.recent-entry-item p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-entry-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(146, 165, 183, 0.24);
  border-radius: 8px;
  outline: none;
  background: rgba(2, 5, 10, 0.72);
  color: var(--text);
  font:
    800 24px/1 Inter,
    sans-serif;
  letter-spacing: 0;
  padding: 0 18px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.35;
  padding: 16px 18px;
}

input:focus,
textarea:focus {
  border-color: rgba(56, 215, 255, 0.74);
  box-shadow:
    0 0 0 4px rgba(56, 215, 255, 0.12),
    0 0 34px rgba(56, 215, 255, 0.16);
  transform: translateY(-1px);
}

.primary-button {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 62px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--cyan);
  color: #061018;
  cursor: pointer;
  font:
    900 16px/1 Inter,
    sans-serif;
  letter-spacing: 0;
  transition:
    background-color 280ms ease,
    border-color 280ms ease,
    box-shadow 280ms ease,
    color 280ms ease;
}

.primary-button:disabled {
  cursor: wait;
}

.primary-button::before {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-105%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
  transition: transform 520ms ease;
}

.primary-button:hover::before {
  transform: translateX(105%);
}

.primary-button span {
  grid-area: 1 / 1;
  transition:
    opacity 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.button-record {
  color: var(--cyan);
  font-size: 20px;
  text-shadow: 0 0 22px rgba(56, 215, 255, 0.78);
  opacity: 0;
  transform: translateX(-42px);
}

.primary-button.is-confirmed {
  border-color: rgba(56, 215, 255, 0.88);
  background: #02050a;
  color: var(--cyan);
  box-shadow:
    inset 0 0 0 1px rgba(56, 215, 255, 0.24),
    0 0 26px rgba(56, 215, 255, 0.42),
    0 0 70px rgba(56, 215, 255, 0.14);
}

.primary-button.is-confirmed::before,
.primary-button.is-returning::before {
  transform: translateX(105%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 215, 255, 0.38),
    transparent
  );
}

.primary-button.is-confirmed .button-label {
  opacity: 0;
  transform: translateX(42px);
}

.primary-button.is-confirmed .button-record {
  opacity: 1;
  transform: translateX(0);
}

.primary-button.is-returning .button-label {
  opacity: 1;
  transform: translateX(0);
}

.primary-button.is-returning .button-record {
  opacity: 0;
  transform: translateX(-42px);
}

.form-error {
  margin: 0;
  color: var(--red);
  font-weight: 700;
}

.form-error[hidden] {
  display: none;
}

.dashboard-panel {
  display: grid;
  align-content: end;
  min-height: 430px;
  padding: 24px;
}

.bus-silhouette {
  position: relative;
  align-self: start;
  height: 170px;
  margin-bottom: 24px;
  border: 2px solid rgba(56, 215, 255, 0.4);
  border-radius: 8px 8px 18px 18px;
  background: linear-gradient(
    180deg,
    rgba(56, 215, 255, 0.12),
    rgba(255, 207, 98, 0.08)
  );
  box-shadow:
    inset 0 0 40px rgba(56, 215, 255, 0.1),
    0 0 60px rgba(56, 215, 255, 0.13);
}

.window-strip {
  position: absolute;
  top: 26px;
  left: 22px;
  right: 22px;
  height: 54px;
  border-radius: 6px;
  background: repeating-linear-gradient(
    90deg,
    rgba(214, 249, 255, 0.22) 0 38px,
    rgba(7, 11, 18, 0.85) 38px 44px
  );
}

.headlight {
  position: absolute;
  bottom: 26px;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 30px rgba(255, 207, 98, 0.85);
}

.headlight-left {
  left: 32px;
}

.headlight-right {
  right: 32px;
}

.stat-row,
.leader-line,
.ride-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stat-row {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.stat-row span,
.ride-item p,
.empty-state,
.locked-panel p,
.metric-strip span {
  color: var(--muted);
}

.stat-row strong {
  font-size: 34px;
}

.reward {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 22px 0;
  min-height: 170px;
  text-align: center;
  animation: rewardIn 700ms cubic-bezier(0.2, 1.2, 0.2, 1) both;
}

.reward p,
.reward span {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.reward strong {
  color: var(--amber);
  font-size: clamp(48px, 9vw, 100px);
  line-height: 1;
  text-shadow: 0 0 34px rgba(255, 207, 98, 0.58);
}

.reward-round {
  border-color: rgba(255, 207, 98, 0.58);
}

.reward-milestone {
  border-color: rgba(97, 242, 173, 0.72);
  animation:
    rewardIn 700ms cubic-bezier(0.2, 1.2, 0.2, 1) both,
    milestonePulse 1.4s ease-in-out 3;
}

.scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(56, 215, 255, 0.13),
    transparent
  );
  animation: scan 1.7s ease-in-out infinite;
}

.spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0;
  animation: spark 900ms ease-out var(--delay) forwards;
}

.content-grid {
  margin-top: 22px;
}

.section-block,
.stats-hero,
.locked-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head a {
  color: var(--cyan);
  font-weight: 800;
}

.ride-list {
  display: grid;
  gap: 12px;
}

.ride-item {
  padding: 14px;
  border: 1px solid rgba(146, 165, 183, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.editable-ride {
  align-items: flex-start;
}

.ride-main {
  min-width: 0;
  flex: 1;
}

.route-chip {
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 32px;
  border-radius: 8px;
  background: var(--cyan);
  color: #000;
  font-weight: 900;
}

.ride-id {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 800;
}

.ride-note {
  margin: 6px 0 0;
  color: rgba(238, 247, 255, 0.72);
  font-size: 13px;
}

.edit-ride-button,
.modal-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(56, 215, 255, 0.24);
  border-radius: 8px;
  background: rgba(56, 215, 255, 0.08);
  color: var(--cyan);
  cursor: pointer;
  font:
    800 18px/1 Inter,
    sans-serif;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.edit-ride-button:hover,
.modal-close:hover {
  border-color: rgba(56, 215, 255, 0.52);
  background: rgba(56, 215, 255, 0.14);
  transform: translateY(-1px);
}

.leader-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.leader-line {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.leader-line strong {
  color: var(--green);
}

.stats-hero,
.profile-hero {
  margin-bottom: 22px;
}

.stats-hero h1,
.profile-hero h1 {
  margin-bottom: 24px;
}

.profile-hero {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 24px;
}

.profile-hero::after {
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 20rem;
  height: 16rem;
  content: "";
  background: radial-gradient(circle, rgba(56, 215, 255, 0.2), transparent 68%);
}

.profile-hero > * {
  position: relative;
  z-index: 1;
}

.profile-badge {
  display: grid;
  place-items: center;
  min-width: 126px;
  min-height: 96px;
  border: 1px solid rgba(56, 215, 255, 0.36);
  border-radius: 8px;
  background: rgba(2, 5, 10, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(56, 215, 255, 0.12),
    0 0 34px rgba(56, 215, 255, 0.14);
}

.profile-badge span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.profile-badge strong {
  color: var(--cyan);
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 0 24px rgba(56, 215, 255, 0.46);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 22px;
}

.metric-strip div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  /* background: rgba(255, 255, 255, 0.035); */
  text-align: center;
}

.metric-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 38px;
}

.metric-strip span {
  font-size: 12px;
}

.stats-grid,
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  width: 100%;
  min-width: 0;
}

.rating-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rating-item {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  color: var(--text);
  font-weight: 800;
}

.rating-place {
  width: 30px;
  flex: 0 0 auto;
  color: var(--muted);
}

.rating-value {
  min-width: 0;
  padding: 4px 6px;
  border-radius: 5px;
  background: var(--cyan);
  color: #000;
  text-shadow: 0 0 18px rgba(56, 215, 255, 0.22);
}

.rating-count {
  min-width: 0;
  margin-left: 8px;
  color: var(--muted);
}

.bus-rating .rating-value {
  background: #d1d1d1;
}

.wide-block {
  width: 100%;
  max-width: 100%;
  margin-top: 22px;
}

.collapse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 18px;
}

.collapse-head strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
}

.collapse-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  min-height: 28px;
  margin: 12px auto -18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.collapse-toggle:hover,
.collapse-toggle[aria-expanded="true"] {
  color: rgba(238, 247, 255, 0.72);
}

.ride-log-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.rating-list.full-list,
.rating-list.preview-list {
  margin-top: 18px;
}

.rating-list.full-list,
.timeline.full-list,
.ride-log-list.full-list {
  margin-top: 10px;
}

.preview-list[hidden],
.full-list[hidden] {
  display: none;
}

.full-list.is-animating {
  overflow: hidden;
  transition:
    height 280ms ease,
    opacity 220ms ease;
}

.logout-button,
.login-cta {
  display: grid;
  place-items: center;
  min-height: 54px;
  margin-top: 22px;
  border: 1px solid rgba(255, 85, 116, 0.34);
  border-radius: 8px;
  background: rgba(255, 85, 116, 0.08);
  color: #ffd7df;
  cursor: pointer;
  font-weight: 900;
  width: 100%;
  box-shadow: 0 0 28px rgba(255, 85, 116, 0.08);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.logout-button:hover {
  border-color: rgba(255, 85, 116, 0.58);
  background: rgba(255, 85, 116, 0.14);
  transform: translateY(-1px);
}

.login-cta {
  border-color: rgba(56, 215, 255, 0.34);
  background: rgba(56, 215, 255, 0.08);
  color: var(--cyan);
}

.login-cta:hover {
  border-color: rgba(56, 215, 255, 0.58);
  background: rgba(56, 215, 255, 0.14);
}

.rides-page {
  margin-top: 0;
}

.ride-modal {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 18px);
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(56, 215, 255, 0.28);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.98);
  color: var(--text);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.64),
    0 0 70px rgba(56, 215, 255, 0.12);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.ride-modal.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ride-modal::backdrop {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(10px);
  transition: background-color 220ms ease;
}

.ride-modal.is-open::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.ride-edit-form {
  display: grid;
  gap: 16px;
  max-height: calc(100dvh - 18px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
}

.ride-edit-form input,
.ride-edit-form textarea {
  min-height: 50px;
  font-size: 18px;
}

.ride-edit-form textarea {
  min-height: 78px;
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head {
  position: sticky;
  top: -18px;
  z-index: 1;
  padding: 18px 0 12px;
  background: rgba(8, 12, 18, 0.98);
}

.modal-head h2 {
  font-size: 22px;
}

.modal-close {
  border-color: rgba(146, 165, 183, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.modal-actions {
  position: sticky;
  bottom: -18px;
  align-items: stretch;
  padding: 12px 0 18px;
  background: rgba(8, 12, 18, 0.98);
}

.modal-actions button {
  flex: 1;
}

.modal-save {
  min-height: 52px;
}

.danger-button {
  min-height: 52px;
  border: 1px solid rgba(255, 85, 116, 0.38);
  border-radius: 8px;
  background: rgba(255, 85, 116, 0.09);
  color: #ffd7df;
  cursor: pointer;
  font:
    900 14px/1 Inter,
    sans-serif;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.danger-button:hover {
  border-color: rgba(255, 85, 116, 0.62);
  background: rgba(255, 85, 116, 0.15);
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.timeline-day {
  flex: 1 1 calc(100% / 7 - 10px);
  margin: 5px;
  text-align: center;
  padding: 10px;
  background-color: var(--panel);
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.timeline-day strong {
  display: block;
  font-size: 1.2em;
  margin-top: 5px;
}

@keyframes pulseLight {
  50% {
    opacity: 0.45;
    transform: scale(1.08);
  }
}

@keyframes rewardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes milestonePulse {
  50% {
    box-shadow: 0 0 120px rgba(97, 242, 173, 0.34);
  }
}

@keyframes pageGlow {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes scan {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(100%);
  }
}

@keyframes spark {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)))
      scale(0.2);
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

textarea[name="note"] {
  font-size: 1rem;
  font-weight: 400;
}

.login-container {
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.login-container h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 6vw, 54px);
}

.login-container p {
  color: var(--muted);
  line-height: 1.5;
}

.login-container .error {
  color: var(--red);
  font-weight: 800;
}

.login-button {
  width: 100%;
  padding: 16px;
  min-height: unset;
}

.secondary-link {
  justify-self: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.login-consent-form {
  display: grid;
  gap: 12px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(146, 165, 183, 0.18);
  border-radius: 8px;
  background: rgba(2, 5, 10, 0.42);
}

.consent-check input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--cyan);
}

.consent-check span,
.legal-hint {
  color: rgba(238, 247, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.consent-check a,
.legal-hint a {
  color: var(--cyan);
  font-weight: 800;
}

.legal-hint {
  margin: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  max-width: 960px;
  margin: 28px auto 0;
  padding: 0 18px 22px;
}

.site-footer a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--cyan);
}

.legal-topbar {
  justify-content: center;
}

.legal-topbar .brand {
  width: auto;
}

.legal-main {
  margin-top: 24px;
  padding-bottom: 32px;
}

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  /* padding: 18px; */
  /* border: 1px solid var(--line); */
  border-radius: 8px;
  /* background: rgba(255, 255, 255, 0.035); */
  box-shadow: var(--shadow);
}

.legal-page h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
}

.legal-page h2 {
  margin-top: 26px;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 22px;
}

.legal-page p,
.legal-page li {
  color: rgba(238, 247, 255, 0.82);
  line-height: 1.6;
}

.legal-page a {
  color: var(--cyan);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.legal-page a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page ul {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding-left: 22px;
}

.profile {
  display: block;
  margin-bottom: 18px;
}

.profile img {
  display: block;
  width: 100px;
  border-radius: 50%;
  margin: auto;
  margin-bottom: 12px;
}

.profile h2 {
  width: 100%;
  text-align: center;
}

.onboarding-row {
  display: flex;
  gap: 4px;
}

.onboarding-chip {
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #000;
  padding: 6px;
  width: max-content;
  display: flex;
}

.onboarding-route-chip {
  background-color: var(--cyan);
}

.onboarding-bus-chip {
  background-color: #c5c5c5;
}
