* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Silkscreen";
  src: url("./fonts/Silkscreen-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Silkscreen";
  src: url("./fonts/Silkscreen-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  background: #000;
  font-family: Silkscreen;
  overflow: hidden;
}

#page {
  width: 100vw;
  height: 100vh;

  display: grid;
  grid-template-rows: minmax(0, 1fr) 22px;

  justify-items: center;
  align-items: center;

  overflow: hidden;
}

#game-area {
  width: 100%;
  height: 100%;
  min-height: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

#wrapper {
  position: relative;
  display: inline-block;
  transform-origin: center center;
}

#wrapper:fullscreen {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  display: block;
  width: 640px;
  height: 400px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;

  /*
  filter: blur(0.5px) contrast(1.15) brightness(1.1);
  */
}

#ui {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 400px;
  pointer-events: none;
}

#info {
  display: none;
}

#menu-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#legal-footer {
  width: 100%;
  height: 22px;

  font-family: Silkscreen;
  font-size: 16px;
  line-height: 16px;

  color: #eb0000;
  text-align: center;
  user-select: none;

  overflow: hidden;
}

#legal-footer .naranja{
    color:#f37900
}

#legal-footer .verdeoscuro{
    color:#458a45
}

#legal-footer a {
  color: #7979f3;
  text-decoration: none;
}

#legal-footer a:hover {
  color: #79f379;
}

#legal-footer span {
  color: #444;
  padding: 0 4px;
}

#legal-footer #footer-fullscreen-label {
  color: inherit;
  padding: 0;
}

body:has(#wrapper:fullscreen) #legal-footer {
  display: none;
}
/* Página legal / privacidad */

body.legal-page {
  min-height: 100vh;
  height: auto;
  overflow: auto;
  background: #000;
  color: #d8d8d8;
  font-family: Silkscreen, monospace;
}

.legal-document {
  width: min(920px, calc(100% - 24px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.legal-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #333;
}

.legal-kicker {
  margin-bottom: 10px;
  color: #7979f3;
  font-size: 14px;
  line-height: 1.4;
}

.legal-header h1 {
  color: #f37900;
  font-size: clamp(28px, 6vw, 54px);
  line-height: 1.05;
  letter-spacing: -1px;
}

.legal-updated {
  margin-top: 12px;
  color: #458a45;
  font-size: 14px;
  line-height: 1.5;
}

.legal-document section {
  margin-top: 26px;
}

.legal-document h2 {
  margin-bottom: 10px;
  color: #eb0000;
  font-size: clamp(18px, 3.5vw, 26px);
  line-height: 1.25;
}

.legal-document p {
  margin-top: 10px;
  font-family: silkscreen;
  font-size: clamp(16px, 2.6vw, 18px);
  line-height: 1.65;
  color: #d8d8d8;
}

.legal-document a {
  color: #7979f3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.legal-document a:hover {
  color: #79f379;
}

.josefeliciano {
  display: none !important;
}

.legal-document-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #333;
  font-size: 16px;
}

@media (max-width: 720px) {
  #page {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  #legal-footer {
    height: auto;
    min-height: 22px;
    padding: 3px 8px 6px;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
  }

  #legal-footer span,
  #legal-footer a {
    display: inline-block;
  }

  .legal-document {
    width: min(100% - 20px, 920px);
    padding: 22px 0 36px;
  }

  .legal-header {
    margin-bottom: 22px;
  }
}

@media (max-width: 420px) {
  .legal-document p {
    line-height: 1.55;
  }
}
