:root {
  color-scheme: light dark;
  font-family: system-ui, sans-serif;
}

body {
  display: grid;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  place-items: center;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0 0 auto;
  height: min(72vh, 52rem);
  background: url("tapsa.jpg") center 38% / cover no-repeat;
  content: "";
  filter: saturate(0.55) contrast(0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}

body.status-ready::before {
  opacity: 0.14;
}

[hidden] {
  display: none;
}

.status {
  margin: 1rem;
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
}

.daily-song {
  margin: clamp(2rem, 8vh, 5rem) 1rem 1rem;
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}

.network-block {
  position: fixed;
  z-index: 1;
  right: 50%;
  bottom: max(0.5rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  color: #777;
  font: 0.6875rem/1 ui-monospace, "SFMono-Regular", "Cascadia Code",
    "Roboto Mono", Consolas, monospace;
  letter-spacing: 0.1em;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translateX(50%);
  transition: opacity 0.3s ease;
}

body.status-ready .network-block {
  opacity: 0.72;
  pointer-events: auto;
}

.network-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.network-status::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #39ff88;
  box-shadow: 0 0 0.5rem rgb(57 255 136 / 65%);
  content: "";
  transform: translateY(-0.03em);
}

.network-links {
  display: flex;
  gap: 1rem;
}

.network-links a {
  color: #777;
  opacity: 0.58;
  text-decoration: none;
  transition: color 150ms ease, opacity 150ms ease;
}

.network-links a:hover,
.network-links a:focus-visible {
  color: inherit;
  opacity: 1;
}
