:root {
  color-scheme: light dark;
  --background: #fff;
  --foreground: #000;
  --muted: #666;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000;
    --foreground: #fff;
    --muted: #999;
  }
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  background: var(--background);
  color: var(--foreground);
}

body {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

main {
  position: relative;
  display: grid;
  place-items: center;
  height: 100svh;
  height: 100dvh;
  padding: 24px 24px 68px;
  overflow: hidden;
  touch-action: none;
}

.identity {
  width: min(820px, 82vw, calc(75svh * 2.3699));
  text-align: center;
}

.logo svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

footer {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  pointer-events: none;
}

.eyelid { transition: d 220ms ease-in-out; }
.pupil { transition: transform 100ms ease-out; }
.highlight { transition: transform 120ms ease-out; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  main {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .identity {
    width: 100%;
    max-width: calc(75svh * 2.3699);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eyelid,
  .pupil,
  .highlight {
    transition: none;
  }
}
