:root {
  color-scheme: dark;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #000;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body { background: #000; }

.flash-container {
  position: relative;
  display: grid;
  width: 100vw;
  height: 100svh;
  place-items: center;
  overflow: hidden;
  background: #000;
  transition: none;
}

.flash-container.is-light { background: #fff; }
.flash-container.is-dark { background: #000; }

.flash-logo {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(64vmin, 760px);
  height: auto;
  transform: translate(-50%, -50%);
  user-select: none;
  pointer-events: none;
}

.logo-light { opacity: 1; }
.logo-dark { opacity: 0; }
.is-light .logo-light { opacity: 0; }
.is-light .logo-dark { opacity: 1; }

.motion-control {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 3;
  padding: 10px 12px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.is-light .motion-control { color: #000; }
.is-dark .motion-control { color: #fff; }

.arrival {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 3;
  transform: translateX(-50%);
  color: #fff;
  font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: .32em;
  opacity: 0;
  text-align: center;
  white-space: nowrap;
  transition: opacity 180ms linear;
}

.is-light .arrival { color: #000; }
.is-finished .arrival { opacity: .72; }

.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) {
  .flash-logo { width: 84vmin; }
  .motion-control { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-control { display: none; }
  .flash-container { background: #000 !important; }
  .logo-light { opacity: 1 !important; }
  .logo-dark { opacity: 0 !important; }
  .arrival { opacity: .72; }
}
