.cookie-game {
  padding-top: 4px;
  padding-bottom: 96px;
}

.cookie-game-shell {
  width: min(100%, 500px);
  display: flex;
  justify-content: center;
}

.cookie-game-frame {
  position: relative;
  width: min(100%, 432px);
  padding: 8px;
  border: 3px solid rgba(244, 237, 224, 0.9);
  border-radius: 8px;
  background: rgba(42, 29, 24, 0.54);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.32);
}

.cookie-bird-name-entry {
  position: absolute;
  left: 50%;
  top: 78%;
  z-index: 4;
  display: flex;
  gap: 8px;
  width: min(76%, 300px);
  transform: translateX(-50%);
}

.cookie-bird-name-entry[hidden] {
  display: none;
}

.cookie-bird-name-entry input,
.cookie-bird-name-entry button {
  min-height: 40px;
  border: 3px solid #160d09;
  border-radius: 6px;
  font-family: 'Bowlby One', Impact, sans-serif;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28);
}

.cookie-bird-name-entry input {
  min-width: 0;
  flex: 1;
  padding: 0 10px;
  color: #160d09;
  text-align: center;
  text-transform: uppercase;
  background: #fff7e6;
}

.cookie-bird-name-entry button {
  padding: 0 12px;
  color: #fff7e6;
  background: #0057d6;
  cursor: pointer;
}

.cookie-game-frame canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 432 / 768;
  border-radius: 4px;
  background: #75d6f4;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: manipulation;
  cursor: pointer;
}

.cookie-game-frame canvas:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 5px;
}

@media (max-width: 520px) {
  .cookie-game {
    padding-bottom: 72px;
  }

  .cookie-game-frame {
    padding: 6px;
  }
}
