* {
  box-sizing: border-box;
}

:root {
  color: #f8fbff;
  background: #050507;
  --body-image-max-size: 420px;
  --body-image-viewport-limit: 54vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  margin: 0;
  overflow: hidden;
}

button {
  font: inherit;
}

.app-shell,
.space-feed {
  min-height: 100vh;
}

.app-loading {
  min-height: 100vh;
  background: #050507;
}

.space-feed {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  touch-action: none;
  background: #050507;
  animation: space-feed-fade-in 800ms ease-out both;
}

@keyframes space-feed-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.star-layer {
  position: absolute;
  inset: -512px 0;
  z-index: -2;
  background-repeat: repeat;
  background-size: 512px 512px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.feed-status {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: min(560px, calc(100vw - 28px));
  transform: translateX(-50%);
  color: rgba(248, 251, 255, 0.82);
  font-size: 0.78rem;
  pointer-events: none;
}

.feed-status span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(4, 8, 12, 0.44);
  backdrop-filter: blur(10px);
}

.card-stage {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: center;
  place-items: center;
  width: min(90vw, var(--body-image-max-size));
  will-change: transform;
}

.card-button {
  position: relative;
  display: grid;
  place-items: center;
  width: min(76vw, var(--body-image-max-size), var(--body-image-viewport-limit));
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: grab;
  user-select: none;
}

.card-button:active {
  cursor: grabbing;
}

.card-button:disabled {
  cursor: default;
}

.body-image {
  display: block;
  width: 100%;
  max-width: var(--body-image-max-size);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: contain;
  pointer-events: none;
}

.body-heading,
.body-blurb {
  display: grid;
  width: min(460px, 86vw);
  text-align: center;
}

.body-heading {
  gap: 8px;
}

.body-blurb {
  gap: 4px;
}

.body-heading strong {
  font-size: clamp(2.3rem, 10vw, 4.6rem);
  line-height: 0.92;
}

.body-heading small {
  color: rgba(248, 251, 255, 0.72);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.body-blurb em {
  color: rgba(248, 251, 255, 0.86);
  font-size: clamp(0.98rem, 3.8vw, 1.2rem);
  font-style: normal;
  line-height: 1.2;
}

.card-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.86);
  outline-offset: 4px;
}

@media (max-width: 540px) {
  .card-stage {
    gap: 12px;
    width: min(88vw, 360px);
  }

  .card-button {
    width: min(78vw, 340px, 50vh);
  }
}

@media (min-width: 768px) and (min-height: 720px) {
  :root {
    --body-image-max-size: 560px;
    --body-image-viewport-limit: 62vh;
  }
}

@media (min-width: 1180px) and (min-height: 820px) {
  :root {
    --body-image-max-size: 620px;
    --body-image-viewport-limit: 64vh;
  }
}
