:root {
    --azul-presidencial: #0a2342;
    --naval-lider: #163052;
    --rojo-corrupto: #be1e2d;
    --amarillo-pato: #ffcc00;
    --papel-viejo: #f4f1ea;
    --gris-capitalista: #1e1e1e;
    --negro-mercado: #000;
}

body > section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--azul-presidencial);
    background-image: radial-gradient(var(--naval-lider) 1px, transparent 1px); /* Textura chula */
    background-size: 20px 20px;
    color: var(--papel-viejo);
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portada {
    text-align: center;
    padding: 50px 20px;
    width: 100%;
    border-bottom: 8px solid var(--rojo-corrupto);
    background: linear-gradient(to bottom, var(--naval-lider), var(--azul-presidencial));
    margin-bottom: 15px;
}

h1 {
    font-family: 'Climate Crisis', cursive;
    font-size: 5rem;
    margin: 0;
    color: var(--amarillo-pato);
    text-shadow: 4px 4px 0px var(--rojo-corrupto);
    letter-spacing: 2px;
}

.cita-inicio {
    font-family: 'Margarine', cursive;
    font-size: 1.4rem;
    color: #fff;
    margin-top: 15px;
    font-style: italic;
    opacity: 0.9;
}

.contenedor-juego {
  background-color: var(--negro-mercado);
  margin-top: -5px;
  border: 10px solid white;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  line-height: 0;
}

.descripcion {
  width: 100%;
  max-width: 800px;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.texto {
  background: var(--papel-viejo);
  color: var(--gris-capitalista);
  padding: 40px;
  border-radius: 2px;
  margin-bottom: 40px;
  border: 1px solid #ddd;
  box-shadow: 10px 10px 0px rgba(0,0,0,0.2);
  transform: rotate(-1deg);
  text-align: left;
}

.texto h2 {
  font-family: 'Courier New', Courier, monospace;
  font-style: initial;
  font-size: 1.5rem;
  color: var(--azul-presidencial);
  border-bottom: 2px solid var(--rojo-corrupto);
  margin-top: 0;
  padding-bottom: 10px;
}

.texto p {
  font-size: 1.1rem;
  line-height: 1.5;
}

.boton-github {
  font-family: 'Margarine', cursive;
  background-color: var(--amarillo-pato);
  color: var(--azul-presidencial);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  border: 3px solid var(--azul-presidencial);
  padding: 15px 30px;
  transition: all 0.3s ease;
}

.boton-github:hover {
  background: white;
  transform: scale(1.1) rotate(2deg);
  box-shadow: 5px 5px 0px var(--rojo-corrupto);
}

.mecanicas {
  width: 100%;
  background-color: var(--rojo-corrupto);
  padding: 100px 0;
  display: flex;
  justify-content: center;
  border-top: 10px solid var(--amarillo-pato);
  border-bottom: 10px solid var(--amarillo-pato);
  position: relative; 
  overflow: hidden;
}


.mecanicas::before { /* Esta animación he buscado como se hacía */
    content: "TOP SECRET • CLASIFICADO • CONFIDENCIAL • DUCK LEAKS • ";
    position: absolute;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 20rem;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    top: -20%;
    left: 0;
    transform: translateY(-50%) rotate(-15deg);
    animation: scrollBackground 30s linear infinite;
    z-index: 0;
}

@keyframes scrollBackground {
    from { transform: translateY(-50%) rotate(-10deg) translateX(0); }
    to { transform: translateY(-50%) rotate(-10deg) translateX(-50%); }
}

.texto-mecanicas {
  max-width: 800px;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  color: var(--papel-viejo);
  z-index: 1;
}

.texto-mecanicas p {
  font-size: 1.2rem;
  line-height: 1.6;
}

.texto-mecanicas h2 {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 3rem;
  color: white;
  margin-bottom: 50px;
}

.cuadro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 0 20px;
  z-index: 1;
}

.item {
  background-color: rgba(0,0,0,0.2);
  padding: 25px;
  border-radius: 10px;
  border: 2px dashed var(--papel-viejo);
  z-index: 1;
}

.item h3 {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: var(--amarillo-pato);
  font-size: 1.5rem;
}

.final {
    width: 100%;
    background: linear-gradient(to bottom, var(--naval-lider), var(--azul-presidencial));
    padding: 50px 0;
    border-bottom: 10px solid var(--rojo-corrupto);
    display: flex;
    justify-content: center;
}