:root {
  color-scheme: dark;
  font: 400 1rem/1.5 system-ui, sans-serif;
  color: #fafafa;
  background: #000;
  --comic: "Comic Sans MS", "Comic Sans", "Comic Neue", cursive;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }

.screen {
  min-block-size: 100vh;
  min-block-size: 100dvh;
}

.wall {
  --tile: clamp(8.4rem, 13.1vw, 16.5rem);
  --row: calc(var(--tile) * .275);
  position: fixed;
  inset: 0;
  display: block;
  overflow: hidden;
  font: 400 calc(var(--tile) * .228)/var(--row) var(--comic);
  text-decoration: none;
  touch-action: manipulation;
}

.wall:focus-visible { outline-offset: -6px; }
.wall-fallback { display: grid; height: 100%; place-items: center; }
.wall-row {
  display: flex;
  inline-size: max-content;
  block-size: var(--row);
  margin-inline-start: calc(var(--tile) * -.24);
  animation: wall-drift 8s linear infinite;
}

.wall-row:nth-child(even) {
  animation-direction: reverse;
  animation-duration: 11s;
  animation-delay: -3s;
}

.wall-row span {
  flex: 0 0 var(--tile);
  white-space: nowrap;
}

@keyframes wall-drift {
  to { transform: translateX(calc(-1 * var(--tile))); }
}

#bounce { display: flex; flex-direction: column; }
.bounce-stage {
  position: relative;
  flex: 1;
  min-block-size: 9rem;
  overflow: hidden;
}

.bounce-name {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  color: #73e9f5;
  white-space: nowrap;
  font: 700 clamp(2.35rem, 7vw, 5.5rem)/1.25 var(--comic);
}

.bounce-nav {
  display: grid;
  place-items: center;
  min-block-size: calc(4.5rem + env(safe-area-inset-bottom));
  padding-block-end: env(safe-area-inset-bottom);
}

.bounce-nav a, .centered a {
  display: inline-grid;
  place-items: center;
  min-block-size: 44px;
  min-inline-size: 44px;
  font-size: 1.25rem;
}

.centered {
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
}

.about-copy {
  display: grid;
  justify-items: center;
  gap: .25rem;
  font-size: 1.25rem;
}

.about-copy h1, .about-copy p { margin: 0; font: inherit; }
.about-copy p { margin-block-end: .3rem; }

.bye-content {
  display: grid;
  justify-items: center;
  gap: 1rem;
  width: min(100%, 34rem);
}

.media {
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #101010;
  border: 1px solid #252525;
}

.media video, .media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

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

.media:has(video) {
  aspect-ratio: auto;
  min-height: 0;
  background: transparent;
  border: 0;
}

.media video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 300px;
  margin-inline: auto;
  border: 1px solid #252525;
}
