:root {
  font-family: Georgia, 'Times New Roman', serif;
  color: #fff;
  background: #4779bd;
  font-synthesis: none;
}

* { box-sizing: border-box; }

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

body { cursor: default; }

.experience {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
  background: #4779bd;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.reveal-source {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.topbar,
.credits {
  position: absolute;
  z-index: 4;
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  color: rgba(255, 255, 255, .88);
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: .02em;
  text-shadow: 0 1px 8px rgba(8, 28, 64, .18);
  pointer-events: none;
}

.topbar { top: 22px; }
.credits { bottom: 20px; font-family: Arial, sans-serif; font-size: 9px; }
.topbar span:nth-child(2),
.credits span:nth-child(2) { text-align: center; }
.topbar span:last-child,
.credits span:last-child { text-align: right; }
.topbar b {
  display: inline-grid;
  width: 19px;
  height: 19px;
  margin-right: 2px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  font: 13px/1 Arial, sans-serif;
}

.pixel-trail {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mode-label {
  position: absolute;
  z-index: 5;
  top: 54px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .82);
  font: 8px/1 Arial, sans-serif;
  letter-spacing: .16em;
  text-shadow: 0 1px 8px rgba(8, 28, 64, .3);
  transition: opacity 240ms ease, transform 240ms ease;
  pointer-events: none;
}

.mode-label[data-flash='true'] {
  opacity: .35;
  transform: translateX(-50%) translateY(-3px);
}

.intro-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: #071425;
  animation: reveal 850ms cubic-bezier(.22, .74, .3, 1) forwards;
}

.hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  margin: 0;
  padding: 7px 10px;
  transform: translateX(-50%);
  border-radius: 100px;
  color: rgba(255, 255, 255, .72);
  background: rgba(21, 49, 86, .2);
  font: 9px/1.1 Arial, sans-serif;
  letter-spacing: .18em;
  opacity: 0;
  animation: hint 3.3s 1.3s both;
  pointer-events: none;
}

@keyframes reveal {
  0% { opacity: .88; }
  100% { opacity: 0; }
}

@keyframes hint {
  0%, 100% { opacity: 0; }
  18%, 76% { opacity: 1; }
}

@media (pointer: coarse) {
  .hint::before { content: 'TOUCH & DRAG'; }
  .hint { font-size: 0; }
  .hint::before { font-size: 9px; }
}

@media (max-width: 640px) {
  .topbar,
  .credits { left: 12px; right: 12px; }
  .topbar span:nth-child(2),
  .credits span:nth-child(2) { display: none; }
  .topbar,
  .credits { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-shade { display: none; }
  .hint { animation: none; opacity: .7; }
}
