:root {
  color-scheme: dark;
  background: #000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

main {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  justify-items: center;
  gap: clamp(26px, 5svh, 52px);
  padding: clamp(40px, 10svh, 106px) 24px clamp(16px, 3svh, 30px);
}

.logo {
  display: block;
  width: clamp(152px, 18vw, 240px);
  height: auto;
  filter: invert(1);
  opacity: 0.94;
}

.bottle-stage {
  min-height: 0;
  display: grid;
  place-items: center;
  width: 100%;
}

.bottle {
  display: block;
  height: 100%;
  max-height: min(58svh, 605px);
  max-width: 100%;
  width: auto;
}

@media (max-height: 480px) and (min-aspect-ratio: 4/3) {
  main {
    gap: 12px;
    padding-block: 16px;
  }

  .logo {
    width: 144px;
  }

  .bottle {
    max-height: min(65svh, 270px);
  }
}

footer {
  padding: 0 20px max(18px, env(safe-area-inset-bottom));
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: #898d91;
}

footer p {
  margin: 0;
}

@media (max-height: 480px) {
  footer { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
