:root {
  color: #e9edf2;
  background: #101a20;
  font-family: system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 15%, #2b4b4d 0, transparent 38rem),
    linear-gradient(#111d25, #0d151c);
}

.game-shell {
  width: min(92vw, 850px);
  text-align: center;
}

h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  color: #f4d35e;
  letter-spacing: 0.04em;
}

.instructions {
  margin: 0 0 1rem;
  color: #b9c1ca;
}

#game {
  display: block;
  width: 100%;
  height: auto;
  background: #2f4e3a;
  border: 4px solid #d6c48f;
  outline: none;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

#game:focus-visible {
  outline: 3px solid #84c6ff;
  outline-offset: 4px;
}

.reset-progress {
  margin-top: 0.75rem;
  padding: 0.45rem 0.7rem;
  color: #c9cdd3;
  background: #1b2930;
  border: 1px solid #6d9a85;
  border-radius: 6px;
  cursor: pointer;
}

.reset-progress:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.reset-progress + .reset-progress {
  margin-left: 0.5rem;
}

/* Pantalla completa: el juego llena la pantalla manteniendo su proporción 8:5. */
body.is-fullscreen {
  background: #050a0e;
}

body.is-fullscreen .game-shell {
  width: 100vw;
}

body.is-fullscreen h1,
body.is-fullscreen .instructions,
body.is-fullscreen .reset-progress {
  display: none;
}

body.is-fullscreen #game {
  width: min(100vw, 160vh);
  height: auto;
  margin: 0 auto;
  border: 0;
  box-shadow: none;
  image-rendering: pixelated;
}
