@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: optional;
}
:root {
  color-scheme: light;
  --ink: #333333;
  --paper: #f0f0f0;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}
body {
  background: #078bdd;
  color: var(--paper);
  font-family: "Nunito Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.world {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  height: 100svh;
  min-height: 320px;
  overflow: hidden;
  touch-action: pan-y;
}
.poster,
canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.poster {
  transform: scale(1.12);
}
canvas {
  opacity: 0;
  transition: opacity 0.12s ease;
  pointer-events: none;
}
.ready canvas {
  opacity: 1;
}
.world::after {
  content: "";
  position: absolute;
  inset: 65% 0 0;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(15, 35, 19, 0.27));
  z-index: 1;
}
header {
  position: absolute;
  z-index: 2;
  top: max(28px, env(safe-area-inset-top));
  left: 0;
  padding: 13px 17px;
  padding-left: calc(max(32px, env(safe-area-inset-left)) + 17px);
  background: rgba(240, 240, 240, 0.88);
  border-radius: 0 3px 3px 0;
}
.logo {
  display: block;
  width: clamp(120px, 12vw, 176px);
  height: auto;
}
.message {
  position: absolute;
  z-index: 2;
  bottom: max(38px, env(safe-area-inset-bottom));
  left: max(42px, env(safe-area-inset-left));
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 30, 12, 0.3);
}
h1 {
  font-size: clamp(26px, 2.5vw, 42px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
}
.message p {
  margin: 12px 0 0;
  font-size: 14px;
  opacity: 0.85;
}
footer {
  position: absolute;
  z-index: 2;
  right: max(38px, env(safe-area-inset-right));
  bottom: max(40px, env(safe-area-inset-bottom));
  display: flex;
  gap: 22px;
  font-size: 13px;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
a:hover {
  opacity: 0.75;
}
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
@media (max-width: 600px) {
  header {
    top: max(20px, env(safe-area-inset-top));
    padding: 10px 12px;
    padding-left: 32px;
  }
  .logo {
    width: 120px;
  }
  .message {
    left: 25px;
    bottom: max(76px, env(safe-area-inset-bottom));
  }
  footer {
    left: 25px;
    right: auto;
    bottom: max(28px, env(safe-area-inset-bottom));
  }
}
@media (max-height: 450px) and (min-width: 601px) {
  .message {
    bottom: 22px;
  }
  h1 {
    font-size: 25px;
  }
  footer {
    bottom: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  canvas {
    transition: none;
  }
}
