body {
  background-color: #ffe6f0;
  font-family: 'Press Start 2P', monospace;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.container {
  position: relative;
  z-index: 50;

  width: 100%;
  max-width: 500px;
  padding: 0 16px;
  box-sizing: border-box;
  text-align: center;
}

.sprite {
  width: 80vw;
  max-width: 200px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

#cat {
  position: relative;
  z-index: 60;

  opacity: 0;
  transition: opacity 0.8s ease-in;
}

.dialogue {
  position: relative;
  z-index: 60;

  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #80225e;
  margin: 10px 0;
  line-height: 1.8;
  padding: 10px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

#dialogue {
  transition: opacity 0.5s ease;
}

.buttons {
  position: relative;
  z-index: 60;

  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.6s ease-in;
}

.btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  background: #fff;
  border: 2px solid #80225e;
  padding: 8px 16px;
  margin: 10px;
  color: #80225e;
  font-weight: bold;
  cursor: pointer;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  text-align: center;
}

.btn:hover {
  background-color: #ffe6f0;
}

.choice-container {
  position: relative;
  z-index: 60;
}

.choice-sprite {
  margin-top: 30px;
  width: min(85vw, 500px);
  height: auto;
  opacity: 0;
  transition: opacity .6s ease;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.25));
}

/* BACKGROUND SUSHI */
.screen-fill {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 220%;
  z-index: 1;
  pointer-events: none;

  display: grid;
  grid-template-columns: repeat(auto-fill, 95px);
  grid-auto-rows: 95px;
  justify-content: center;
  align-items: center;
  gap: 18px;

  animation: sushiScroll 16s linear infinite;
}

.choice-tile {
  width: var(--size);
  height: var(--size);
  object-fit: contain;
  opacity: 0;
  animation:
    sushiAppear 0.4s ease forwards,
    sushiPulse 1.8s ease-in-out infinite;
  animation-delay: var(--delay), var(--pulse-delay);
}

@keyframes sushiScroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

@keyframes sushiAppear {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes sushiPulse {
  0%,
  100% {
    scale: 1;
  }

  50% {
    scale: 1.18;
  }
}

.final-button-wrap {
  position: relative;
  z-index: 70;

  display: flex;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 40px;
}

@media (max-width: 600px) {
  .dialogue,
  .btn {
    font-size: 13px;
    line-height: 1.8;
  }

  .container {
    padding: 0 24px;
  }
}