.ra-home-topbar-active {
  --ra-topbar-height: 2.625rem;
  --ra-topbar-gap: 0.375rem;
  --ra-header-top-offset: calc(
    var(--ra-header-base-top-offset) + var(--ra-topbar-height) + var(--ra-topbar-gap)
  );
}

.ra-home-topbar {
  position: fixed;
  left: var(--ra-header-side-gap);
  right: var(--ra-header-side-gap);
  top: var(--ra-header-base-top-offset);
  z-index: 1001;
  height: var(--ra-topbar-height);
  border-radius: 0.875rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 82% 100%, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.96) 0%, rgba(6, 6, 6, 0.96) 100%);
  box-shadow:
    0 0.625rem 1.6rem rgba(0, 0, 0, 0.26),
    inset 0 0.0625rem 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(0.875rem) saturate(118%);
  -webkit-backdrop-filter: blur(0.875rem) saturate(118%);
  overflow: hidden;
}

.ra-home-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(135, 255, 231, 0.06), rgba(135, 255, 231, 0));
}

.ra-home-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  padding: 0 1.125rem;
}

.ra-home-topbar__message {
  margin: 0;
  max-width: min(100%, 30rem);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.ra-home-topbar__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 0;
}

.ra-home-topbar__timer {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ra-home-topbar__time-segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.625rem;
  padding: 0 0.4rem;
  border-radius: 0.5625rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.08);
}

.ra-home-topbar__time-separator {
  color: rgba(255, 255, 255, 0.52);
  transform: translateY(-0.03em);
}

.ra-home-topbar .ra-home-topbar__cta,
.ra-home-topbar .ra-home-topbar__cta:visited {
  color: rgba(122, 255, 235, 1) !important;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(122, 255, 235, 0.92);
  white-space: nowrap;
  text-shadow:
    0 0 0.55rem rgba(122, 255, 235, 0.2),
    0 0 1rem rgba(122, 255, 235, 0.1);
  filter: drop-shadow(0 0 0.35rem rgba(122, 255, 235, 0.16));
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease,
    filter 0.2s ease,
    text-decoration-color 0.2s ease;
}

.ra-home-topbar .ra-home-topbar__cta:hover,
.ra-home-topbar .ra-home-topbar__cta:focus-visible,
.ra-home-topbar .ra-home-topbar__cta:visited:hover,
.ra-home-topbar .ra-home-topbar__cta:visited:focus-visible {
  color: rgba(132, 255, 235, 1) !important;
  text-decoration-color: rgba(132, 255, 235, 1);
  text-shadow:
    0 0 0.85rem rgba(132, 255, 235, 0.34),
    0 0 1.35rem rgba(132, 255, 235, 0.18);
  filter: drop-shadow(0 0 0.52rem rgba(132, 255, 235, 0.22));
}

.ra-home-topbar__cta:focus-visible {
  outline: 0.125rem solid rgba(135, 255, 231, 0.34);
  outline-offset: 0.18rem;
  border-radius: 0.25rem;
}

body.admin-bar .ra-home-topbar {
  top: calc(var(--ra-header-base-top-offset) + 2rem);
}

@supports not ((backdrop-filter: blur(0.125rem)) or (-webkit-backdrop-filter: blur(0.125rem))) {
  .ra-home-topbar {
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.98), rgba(6, 6, 6, 0.98));
  }
}

@media (max-width: 78rem) {
  .ra-home-topbar-active {
    --ra-topbar-height: 3rem;
  }

  .ra-home-topbar__inner {
    padding-inline: 0.875rem;
    gap: 0.75rem;
  }

  .ra-home-topbar__message {
    max-width: min(100%, 21rem);
    font-size: 0.75rem;
  }
}

@media (max-width: 56rem) {
  .ra-home-topbar-active {
    --ra-topbar-height: 3.875rem;
    --ra-topbar-gap: 0.5rem;
  }

  .ra-home-topbar__inner {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 0.375rem;
    padding: 0.5625rem 0.875rem;
  }

  .ra-home-topbar__message {
    max-width: none;
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-align: center;
  }

  .ra-home-topbar__meta {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .ra-home-topbar__timer {
    min-width: 0;
    justify-content: center;
    gap: 0.25rem;
  }

  .ra-home-topbar__time-segment {
    min-width: 1.6875rem;
    height: 1.4375rem;
    padding-inline: 0.3125rem;
  }

  .ra-home-topbar__cta {
    justify-self: center;
  }
}

@media (max-width: 30rem) {
  .ra-home-topbar-active {
    --ra-topbar-height: 4.125rem;
  }

  .ra-home-topbar__inner {
    padding-inline: 0.75rem;
  }

  .ra-home-topbar__message,
  .ra-home-topbar__timer,
  .ra-home-topbar__cta {
    font-size: 0.625rem;
  }

  .ra-home-topbar__time-segment {
    min-width: 1.5rem;
    height: 1.3125rem;
    padding-inline: 0.25rem;
  }

  .ra-home-topbar__time-separator {
    transform: none;
  }
}
