hidden {
  display: none;
}

.background {
  background: rgb(52, 166, 251);
  table-layout: fixed;
  border-spacing: 0;
}

.background td {
  padding: 0;
}

.fireball {
  background: rgb(255, 100, 100);
}

.lava {
  background: rgb(255, 100, 100);
}

.elevator {
  background: rgb(229, 229, 229);
}

.wall {
  background: white;
}

.actor {
  position: absolute;
}

.coin {
  background: rgb(241, 229, 89);
}

.player {
  background: rgb(64, 64, 64);
}

.lost .player {
  background: rgb(160, 64, 64);
}

.won .player {
  box-shadow: -4px -7px 8px white, 4px -7px 8px white;
}

.game {
  overflow: hidden;
  max-width: 600px;
  max-height: 450px;
  position: relative;
}

.level-label {
  position: absolute;
  z-index: 3;
  top: .65rem;
  right: .75rem;
  padding: .25rem .4rem;
  color: #090a0f;
  background: #8cff38;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.game-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 72% 28%, rgba(91, 108, 255, .18), transparent 34%),
    radial-gradient(circle at 22% 78%, rgba(255, 79, 216, .12), transparent 32%),
    #090a0f;
}

.game-screen::before,
.game-screen::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.game-screen::before {
  inset: 12px;
  border: 1px solid rgba(244, 241, 232, .16);
}

.game-screen::after {
  width: 34vw;
  height: 34vw;
  max-width: 320px;
  max-height: 320px;
  border: 1px solid rgba(140, 255, 56, .3);
  border-radius: 50%;
  transform: translate(34%, -22%);
  box-shadow: 0 0 0 16px rgba(140, 255, 56, .035), 0 0 0 32px rgba(140, 255, 56, .025);
}

.game-screen__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 31rem);
  padding: clamp(2rem, 7vw, 4.5rem);
  border: 1px solid rgba(244, 241, 232, .35);
  background: rgba(9, 10, 15, .86);
  box-shadow: 12px 12px 0 rgba(255, 79, 216, .2), inset 0 0 0 1px rgba(91, 108, 255, .2);
}

.game-screen__eyebrow,
.game-screen__hint {
  margin: 0;
  color: #8cff38;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.game-screen__title {
  margin: 1.25rem 0 1.5rem;
  color: #f4f1e8;
  font-family: system-ui, sans-serif;
  font-size: clamp(2.4rem, 9vw, 5.4rem);
  line-height: .88;
  letter-spacing: -.08em;
  white-space: pre-line;
}

.game-screen__copy {
  margin: 0 0 2rem;
  color: rgba(244, 241, 232, .64);
  font-size: .78rem;
  line-height: 1.7;
  white-space: pre-line;
}

.game-screen__button {
  border: 1px solid #ff4fd8;
  padding: .9rem 1rem;
  color: #090a0f;
  background: #ff4fd8;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.game-screen__button:hover,
.game-screen__button:focus-visible {
  background: #f4f1e8;
  box-shadow: 5px 5px 0 #8cff38;
  transform: translate(-2px, -2px);
}

.game-screen__hint {
  margin-top: 1.75rem;
  color: rgba(244, 241, 232, .42);
  font-size: .58rem;
  letter-spacing: .08em;
}

.game-screen__hint span {
  color: #f4f1e8;
}

@media (max-width: 520px) {
  .game-screen__panel { padding: 2rem; }
  .game-screen__title { font-size: 3.3rem; }
}
