* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 217, 113, 0.22), transparent 26rem),
    linear-gradient(145deg, #062c54 0%, #0796c7 44%, #07364f 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.game-shell {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 10px;
}

#game-root {
  width: min(100vw, 520px);
  height: min(100vh, 880px);
  display: grid;
  place-items: center;
  touch-action: none;
}

#game-root canvas {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(1, 17, 36, 0.34);
}

@media (max-width: 520px) {
  .game-shell {
    padding: 0;
    place-items: start center;
  }

  #game-root {
    width: 100vw;
    height: 100vh;
    place-items: start center;
  }

  #game-root canvas {
    border-radius: 0;
  }
}
