:root {
  --bg: #0a0d16;
  --text: #f4f6fa;
  --muted: rgb(244 246 250 / 0.62);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.5 -apple-system,
    BlinkMacSystemFont,
    'SF Pro Text',
    'Helvetica Neue',
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Eine Ansicht, kein Scrollen */
  overflow: hidden;
}

/* Alles, was man anklicken kann, zeigt die Hand */
a,
button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Farben der Lagune im Hintergrund, weich verschwommen */
.backdrop {
  position: fixed;
  inset: -20%;
  z-index: -1;
  filter: blur(90px) saturate(130%);
}

.backdrop span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.75;
  animation: drift 26s ease-in-out infinite alternate;
}

.backdrop span:nth-child(1) {
  width: 46vmax;
  height: 46vmax;
  left: 8%;
  top: 4%;
  background: #5b3fd9;
}

.backdrop span:nth-child(2) {
  width: 38vmax;
  height: 38vmax;
  right: 6%;
  top: 0;
  background: #f0508a;
  animation-duration: 31s;
}

.backdrop span:nth-child(3) {
  width: 30vmax;
  height: 30vmax;
  left: 42%;
  top: 30%;
  background: #ff9f45;
  opacity: 0.5;
  animation-duration: 23s;
}

.backdrop span:nth-child(4) {
  width: 44vmax;
  height: 44vmax;
  left: 0;
  bottom: 0;
  background: #19d3c5;
  opacity: 0.6;
  animation-duration: 35s;
}

.backdrop span:nth-child(5) {
  width: 42vmax;
  height: 42vmax;
  right: 4%;
  bottom: 2%;
  background: #1a4fc2;
  animation-duration: 29s;
}

@keyframes drift {
  to {
    transform: translate(6vmax, -4vmax) scale(1.08);
  }
}

/* Aufbau: oben Marke, Mitte Browser, unten Download */
.page {
  height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(16px, 3vh, 32px);
  padding: clamp(16px, 3vh, 28px) clamp(16px, 4vw, 40px) clamp(20px, 4vh, 40px);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
}

.lang {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang:hover {
  color: var(--text);
}

.stage {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage img {
  display: block;
  max-width: min(1180px, 100%);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 70px rgb(0 0 0 / 0.5));
}

.bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--text);
  color: #0a0d16;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
  transition: transform 0.15s ease;
}

.download:hover {
  transform: translateY(-1px);
}

.download:active {
  transform: scale(0.98);
}

.download svg {
  width: 19px;
  height: 19px;
}

.note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

:focus-visible {
  outline: 2px solid #19d3c5;
  outline-offset: 3px;
}

/* 404 */
.lost {
  height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.lost h1 {
  margin: 0;
  font-size: 32px;
}

@media (prefers-reduced-motion: reduce) {
  .backdrop span {
    animation: none;
  }

  .download {
    transition: none;
  }
}
