:root {
  --bg: #0b0e24;
  --lilac: #c9b3f5;
  --lilac-dim: #3a2a6e;
  /* escala inteira de cada arte (1 pixel da arte = N px na tela) */
  --s-logo: 4;
  --s-game: 4;
  --s-title: 4;
  --s-btn: 3;
  --ground: 14vh;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--lilac);
  font-family: "Press Start 2P", monospace;
  overflow-x: hidden;
}
#sky {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  image-rendering: pixelated;
  z-index: 0;
}
main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 16px calc(var(--ground) + 24px);
  text-align: center;
}
.art { image-rendering: pixelated; display: block; height: auto; }
.logo { width: calc(32px * var(--s-logo)); margin-bottom: calc(4px * var(--s-logo)); }
.game { width: calc(31px * var(--s-game)); margin-bottom: calc(3px * var(--s-game)); }
h1 { margin: 0 0 calc(6px * var(--s-title)); line-height: 0; }
.title { width: calc(144px * var(--s-title)); max-width: 100%; }
.discord {
  display: block;
  width: calc(159px * var(--s-btn));
  max-width: 100%;
  aspect-ratio: 159 / 23;
  /* a versão apertada fica por baixo só para já vir carregada (os cantos das duas são transparentes) */
  background: url(/discord.png) no-repeat 0 0 / 100% 100%, url(/discord-press.png) no-repeat 0 0 / 100% 100%;
  image-rendering: pixelated;
  outline: none;
}
.discord:hover { filter: brightness(1.12); }
.discord:active { background-image: url(/discord-press.png); filter: none; }
.discord:focus-visible { outline: 3px solid var(--lilac); outline-offset: 4px; }
.link {
  margin-top: 20px;
  color: var(--lilac);
  font-size: 12px;
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--lilac-dim);
  word-break: break-all;
}
.link:hover, .link:focus-visible { color: #fff6fb; text-decoration: underline; text-underline-offset: 4px; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 640px) {
  :root { --s-logo: 3; --s-game: 3; --s-title: 3; --s-btn: 2; }
}
@media (max-width: 480px) {
  :root { --s-title: 2; --ground: 12vh; }
  .link { font-size: 10px; }
}
