/* Web de The Nurse Guardian: los colores y las tipografías del juego (pixel art sobre crema). */

/* Los números de la fuente pixelada se confunden (el 1 parece un 7 y el 2, un 8): solo las cifras
   salen de Atkinson Hyperlegible, como en el juego; las letras siguen siendo pixeladas. */
@font-face {
  font-family: 'Pixel Digits';
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/atkinson-hyperlegible-700.woff2') format('woff2');
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: 'Pixelify Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/pixelify-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Pixelify Sans';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/pixelify-sans-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/atkinson-hyperlegible-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/atkinson-hyperlegible-700.woff2') format('woff2');
}

:root {
  --paper: #f6f1e7;
  --paper-deep: #ebe2d0;
  --card: #fffdf8;
  --cream: #fff4dc;
  --ink: #1f2a2e;
  --ink-soft: #4e5a57;
  --line: #d9cfbb;
  --teal: #1f6f66;
  --teal-strong: #17564f;
  --teal-soft: #d8ebe6;
  --coral: #c8473d;
  --yellow: #f2c14e;
  --outline: #2a2233;
  --night: #2a2233;
  --night-soft: #3d3350;
  --font: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-pixel: 'Pixel Digits', 'Pixelify Sans', var(--font);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
button {
  /* La tipografía pixel dibuja mal la unión «fi» (salía «NeutróAlo»): sin ligaduras, como en la app. */
  font-variant-ligatures: none;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Cursor en pixel art: la flecha y, sobre enlaces y botones, la mano (dibujos propios). */
  cursor: url('/assets/img/cursor.png?v=028c21f1') 0 0, auto;
}

a,
button,
summary,
label[for] {
  cursor: url('/assets/img/cursor-mano.png?v=b05dd13e') 10 0, pointer;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-strong);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--outline);
  z-index: 10;
}

.skip:focus {
  left: 16px;
}

/* Texto para lectores de pantalla y buscadores, que no se ve. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Cabecera ─────────────────────────────────────────────── */

.top {
  background: var(--night);
  color: var(--cream);
  border-bottom: 4px solid var(--outline);
}

.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 22px;
  color: var(--cream);
  text-decoration: none;
}

.brand:hover {
  color: var(--yellow);
}

.brand img {
  image-rendering: pixelated;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-pixel);
  font-size: 17px;
  color: var(--cream);
  text-decoration: none;
}

.nav a:hover {
  color: var(--yellow);
  text-decoration: underline;
}

/* ─── Portada ──────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, var(--night-soft), var(--night) 70%);
  color: var(--cream);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  align-items: center;
}

/* Escena 3D de la portada (scripts/render-hero.mjs) a todo lo ancho, con el título encima, en el cielo. */
.stage {
  position: relative;
  background: #2b1d4f;
}

.stage-scene {
  display: block;
  width: 100%;
  height: clamp(460px, 54vw, 86vh);
  object-fit: cover;
  object-position: 50% 62%;
}

.stage-head {
  position: absolute;
  inset: 0 0 auto;
  padding-top: clamp(12px, 2.2vw, 34px);
  text-align: center;
  text-shadow:
    0 2px 0 rgb(20 12 40 / 0.55),
    0 0 18px rgb(20 12 40 / 0.5);
}

.stage-head .kicker {
  color: #ffe9a8;
}

.hero .stage h1 {
  margin: 4px 0 0;
  font-size: 16px;
}

.stage-title {
  display: block;
  width: min(620px, 50vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 10px rgb(20 12 40 / 0.45));
}

.stage .h1-sub {
  margin-top: 0;
  color: #fff4dc;
  font-size: clamp(20px, 2.3vw, 30px);
}

.hero-body {
  position: relative;
  padding: 36px 0 48px;
}

@media (max-width: 699px) {
  .stage-scene {
    height: auto;
    aspect-ratio: 1080 / 1500;
  }

  .stage-title {
    width: min(92vw, 440px);
  }
}

/* Bacterias y virus del juego flotando detrás de la portada: se apartan del ratón (site.js). */
.germs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s;
}

.germs.ready {
  opacity: 1;
}

.germs img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  opacity: 0.6;
  image-rendering: pixelated;
  will-change: transform;
}

@media (max-width: 759px) {
  .germs .extra {
    display: none;
  }
}

.kicker {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--yellow);
}

.hero h1 {
  margin: 6px 0 4px;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(40px, 9vw, 72px);
  line-height: 1;
}

.h1-sub {
  display: block;
  margin-top: 10px;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--yellow);
}

.h1-sub::first-letter {
  text-transform: uppercase;
}

.tagline {
  margin: 0 0 16px;
  font-family: var(--font-pixel);
  font-size: 22px;
  color: #d9d2e6;
}

.lead {
  margin: 0 0 20px;
  font-size: 20px;
  max-width: 34em;
}

.badge {
  display: inline-block;
  padding: 10px 16px;
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--outline);
  box-shadow: 0 4px 0 #000;
}

/* Capturas del juego, dentro de un marco de móvil. */
.phone {
  justify-self: center;
  margin: 0;
  width: min(100%, 300px);
  padding: 10px;
  background: var(--outline);
  border-radius: 28px;
  box-shadow: 10px 10px 0 rgb(0 0 0 / 0.28);
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

/* ─── Bandas de la portada: cada una con su color, como las zonas de un juego ── */

.band {
  --band: var(--paper);
  --band-ink: var(--ink);
  position: relative;
  padding: 56px 0 64px;
  color: var(--band-ink);
  background: var(--band);
  overflow-x: clip;
}

/* Borde pixelado (tramado) con la banda de arriba. */
.band::before {
  content: '';
  position: absolute;
  top: -16px;
  right: 0;
  left: 0;
  height: 16px;
  background: repeating-conic-gradient(var(--band) 0 25%, transparent 0 50%) 0 0 / 16px 16px;
  pointer-events: none;
}

.band h2 {
  margin: 0 0 16px;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(28px, 5.5vw, 42px);
  line-height: 1.1;
}

.band p {
  max-width: 40em;
}

.band-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  font-family: var(--font-pixel);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--outline);
  box-shadow: 3px 3px 0 var(--outline);
}

/* Colores y tramas de cada banda (todo con CSS, sin imágenes). */
.band-paper {
  --band: var(--paper);
}

.band-stats {
  --band: #17564f;
  --band-ink: var(--cream);
  background-image: conic-gradient(from 270deg at 4px 4px, rgb(255 255 255 / 0.07) 90deg, transparent 0);
  background-size: 24px 24px;
}

.band-tissue {
  --band: #f0c9d4;
  background-image: conic-gradient(from 270deg at 6px 6px, rgb(176 74 110 / 0.14) 90deg, transparent 0);
  background-size: 30px 30px;
}

.band-grass {
  --band: #6cb86f;
  background-image: repeating-conic-gradient(rgb(0 0 0 / 0.06) 0 25%, transparent 0 50%);
  background-size: 64px 64px;
}

.band-teal {
  --band: var(--teal);
  --band-ink: var(--cream);
  background-image: repeating-linear-gradient(45deg, rgb(255 255 255 / 0.04) 0 10px, transparent 10px 20px);
}

.band-night {
  --band: var(--night);
  --band-ink: var(--cream);
  background-image: conic-gradient(from 270deg at 3px 3px, rgb(255 255 255 / 0.09) 90deg, transparent 0);
  background-size: 36px 36px;
}

.band-yellow {
  --band: var(--yellow);
  background-image: repeating-linear-gradient(-45deg, rgb(0 0 0 / 0.05) 0 12px, transparent 12px 24px);
}

.band-yellow .band-kicker {
  background: var(--cream);
}

.band-score {
  --band: var(--night-soft);
  --band-ink: var(--cream);
  /* Líneas de pantalla antigua, como un marcador de recreativa. */
  background-image: repeating-linear-gradient(0deg, rgb(0 0 0 / 0.14) 0 2px, transparent 2px 4px);
}

.band-purple {
  --band: #6a4c96;
  --band-ink: #fff;
  background-image: conic-gradient(from 270deg at 4px 4px, rgb(255 255 255 / 0.08) 90deg, transparent 0);
  background-size: 28px 28px;
}

.band-stats h2,
.band-teal h2,
.band-night h2,
.band-score h2,
.band-purple h2 {
  text-shadow: 3px 3px 0 rgb(0 0 0 / 0.35);
}

.band-stats a,
.band-teal a,
.band-night a,
.band-score a,
.band-purple a {
  color: var(--yellow);
}

.band-stats a:hover,
.band-teal a:hover,
.band-night a:hover,
.band-score a:hover,
.band-purple a:hover {
  color: var(--cream);
}

/* ─── El juego en cifras: marcadores de recreativa ────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 12px 14px;
  background: #0e3430;
  border: 3px solid var(--outline);
  box-shadow: inset 0 0 0 3px #2b8076, 5px 5px 0 var(--outline);
}

.stat-hot {
  box-shadow: inset 0 0 0 3px var(--yellow), 5px 5px 0 var(--outline);
}

.stat-icon {
  position: absolute;
  top: -16px;
  right: 8px;
  image-rendering: pixelated;
  filter: drop-shadow(2px 2px 0 rgb(0 0 0 / 0.45));
}

.stat-glyph {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 7px;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--outline);
  filter: none;
  box-shadow: 2px 2px 0 rgb(0 0 0 / 0.45);
}

.stat-num {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(38px, 10vw, 54px);
  line-height: 1;
  color: var(--yellow);
  text-shadow: 3px 3px 0 #000;
}

.stat-plus {
  margin-right: 2px;
  font-size: 0.7em;
}

.stat-label {
  font-family: var(--font-pixel);
  font-size: 18px;
  line-height: 1.2;
  color: var(--cream);
}

.stat-sub {
  font-size: 14px;
  line-height: 1.35;
  color: #bfe3dc;
}

/* ─── La historia, en cuadros de diálogo como los del juego ────── */

.story {
  max-width: 860px;
}

.dialog {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 34px 0 0;
}

/* Retrato de Charo en 3D (scripts/render-hero.mjs). */
.dialog-face {
  flex: none;
  width: 112px;
  height: auto;
}

/* En el móvil, más pequeño: que el texto del diálogo tenga sitio. */
@media (max-width: 559px) {
  .dialog-face {
    width: 76px;
  }
}

.dialog-box {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 24px 18px 18px;
  background: var(--cream);
  border: 4px solid var(--outline);
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px #fff, 6px 6px 0 rgb(0 0 0 / 0.18);
}

.dialog-box p {
  margin: 0;
  font-size: 19px;
}

.band .dialog-name {
  position: absolute;
  top: -19px;
  left: 14px;
  margin: 0;
  padding: 3px 10px;
  font-family: var(--font-pixel);
  font-size: 16px;
  color: #fff;
  background: var(--teal);
  border: 3px solid var(--outline);
}

.dialog-dark .dialog-box {
  color: var(--cream);
  background: var(--night);
  box-shadow: inset 0 0 0 3px var(--night-soft), 6px 6px 0 rgb(0 0 0 / 0.18);
}

.dialog-dark .dialog-name {
  color: var(--ink);
  background: var(--yellow);
}

.dialog-next {
  position: absolute;
  right: 14px;
  bottom: 6px;
  font-size: 14px;
  color: var(--yellow);
  animation: blink 1s steps(2, jump-none) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.story-note {
  margin: 28px 0 0;
  font-size: 19px;
}

/* ─── Escaparates: texto a un lado y el móvil (inclinado) al otro ── */

.showcase {
  display: grid;
  gap: 36px;
  align-items: center;
}

.showcase-text > p:not(.band-kicker) {
  font-size: 18px;
}

.showcase .phone {
  width: min(80%, 280px);
}

.panel {
  padding: 20px;
  background: var(--cream);
  border: 4px solid var(--outline);
  box-shadow: 6px 6px 0 rgb(0 0 0 / 0.2);
}

.panel p:last-child {
  margin-bottom: 0;
}

.versus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 4px;
  padding: 12px;
  background: rgb(255 255 255 / 0.5);
  border: 3px solid var(--outline);
  box-shadow: 4px 4px 0 rgb(0 0 0 / 0.15);
}

.versus img,
.inventory img,
.slots img,
.perk-bar img,
.vs-mark {
  padding: 0 4px;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 26px;
  color: #b04a42;
  text-shadow: 2px 2px 0 #fff;
}

/* Inventario: casillas con objetos del juego. */
.inventory {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.inventory li {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  background: #154a45;
  border: 3px solid var(--outline);
  box-shadow: inset 0 0 0 3px #2f8a7f, 3px 3px 0 var(--outline);
}

/* Colección: casillas del Vademécum y del Patogenario. */
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, 64px);
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.slots li {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: var(--night-soft);
  border: 3px solid #120e17;
  box-shadow: inset 0 0 0 2px #5a4b75;
}

.slots-germs li {
  background: #4a2f3f;
  box-shadow: inset 0 0 0 2px #7a4a5e;
}

/* ─── Destacados: ventanas de colores ──────────────────────────── */

.perks {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.perk {
  background: var(--cream);
  border: 3px solid var(--outline);
  box-shadow: 5px 5px 0 var(--outline);
}

.perk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px 12px;
  color: var(--perk-ink);
  background: var(--perk);
  border-bottom: 3px solid var(--outline);
}

.perk-bar img {
  flex: none;
  filter: drop-shadow(2px 2px 0 rgb(0 0 0 / 0.3));
}

.perk-bar h3 {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
}

.perk p {
  margin: 0;
  padding: 12px 14px 14px;
  font-size: 16px;
}

.perk-teal {
  --perk: var(--teal);
  --perk-ink: #fff;
}

.perk-coral {
  --perk: #b8413a;
  --perk-ink: #fff;
}

.perk-purple {
  --perk: #6a4c96;
  --perk-ink: #fff;
}

.perk-yellow {
  --perk: var(--yellow);
  --perk-ink: var(--ink);
}

/* ─── ¿Para quién es? Como una pantalla de elegir personaje ─────── */

.players {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.player {
  padding: 18px 18px 20px;
  text-align: center;
  background: var(--cream);
  border: 3px solid var(--outline);
  box-shadow: 5px 5px 0 var(--outline);
}

/* Figuras en 3D (scripts/render-hero.mjs), con su sombra en el suelo. */
.player img {
  display: block;
  width: 132px;
  height: auto;
  margin: -8px auto 0;
}

.player h3 {
  margin: 8px 0 6px;
  font-family: var(--font-pixel);
  font-size: 21px;
  font-weight: 400;
}

.player p {
  margin: 0 auto;
  font-size: 16px;
}

/* ─── Ranking: marcador de recreativa ────────────────────────── */

.score {
  display: grid;
  gap: 36px;
  align-items: center;
}

.score .phone {
  width: min(80%, 260px);
}

.board-card {
  margin-top: 20px;
  padding: 16px;
  background: #1d1726;
  border: 3px solid #0b080f;
  box-shadow: inset 0 0 0 3px #5a4b75, 6px 6px 0 rgb(0 0 0 / 0.3);
}

.board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.board-tabs button {
  min-height: 44px;
  padding: 6px 14px;
  font-family: var(--font-pixel);
  font-size: 17px;
  color: var(--cream);
  background: var(--night-soft);
  border: 3px solid #0b080f;
  box-shadow: 3px 3px 0 #0b080f;
}

.board-tabs button:hover {
  background: #54466d;
}

.board-tabs button[aria-pressed='true'] {
  color: var(--ink);
  background: var(--yellow);
}

.board-intro {
  margin: 16px 0 10px;
  font-size: 16px;
  color: #cfc6de;
}

.board {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--night);
  border: 2px solid #4a3d5e;
}

.board-pos {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-family: var(--font-pixel);
  font-size: 19px;
  color: var(--yellow);
  background: var(--night-soft);
  border: 2px solid #0b080f;
}

.board-row:nth-child(1) .board-pos {
  color: var(--ink);
  background: var(--yellow);
}

.board-row:nth-child(2) .board-pos {
  color: var(--ink);
  background: #d9dde3;
}

.board-row:nth-child(3) .board-pos {
  color: var(--ink);
  background: #e8b98a;
}

.board-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.board-who strong {
  font-size: 17px;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.board-country {
  font-weight: 400;
  color: #cfc6de;
}

.board-value {
  font-size: 15px;
  color: #bfe3dc;
}

.board-status {
  margin: 10px 0 0;
  font-size: 15px;
  color: #cfc6de;
}

.board-status:empty {
  display: none;
}

.board-note {
  margin: 14px 0 0;
  padding-top: 12px;
  font-size: 15px;
  color: #e7e0f0;
  border-top: 2px solid #4a3d5e;
}

/* El emblema del juego (marca/, scripts/game-logo.py): pixel art, siempre nítido. */
.pixel-emblem {
  display: block;
  height: auto;
  image-rendering: pixelated;
}

.ranking-hero-grid {
  display: grid;
  gap: 8px 40px;
  align-items: center;
}

.ranking-emblem {
  /* En el móvil, arriba del todo; en el ordenador, a la derecha del título. */
  order: -1;
  justify-self: center;
  width: min(80%, 260px);
  filter: drop-shadow(6px 8px 0 rgb(0 0 0 / 0.35));
}

.bottom-emblem {
  width: 100px;
  margin: 0 0 12px;
}

.error-emblem {
  width: 200px;
  max-width: 60%;
  margin: 8px 0 16px;
}

@media (min-width: 900px) {
  .ranking-hero-grid {
    grid-template-columns: minmax(0, 1fr) 400px;
  }

  .ranking-emblem {
    order: 0;
    width: 400px;
  }
}

/* «En directo»: el puntito rojo que parpadea, en el menú (arriba, junto a «Ranking») y en la página. */
.live-dot {
  flex: none;
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #ff3b30;
  border: 2px solid #0b080f;
  border-radius: 50%;
  animation: live-blink 1.1s ease-in-out infinite;
}

.nav-live .live-dot {
  align-self: flex-start;
  margin: 8px 0 0 4px;
}

.live-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@keyframes live-blink {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgb(255 59 48 / 0.6);
  }
  50% {
    opacity: 0.25;
    box-shadow: 0 0 0 5px rgb(255 59 48 / 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot {
    animation: none;
  }
}

/* ─── Página de rankings ─────────────────────────────────────── */

.ranking-hero .board-status {
  color: #e7e0f0;
}

.league-grid,
.boards-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.league-grid .board-card,
.boards-grid .board-card {
  margin-top: 0;
}

.league-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.league-winner {
  padding: 16px;
  text-align: center;
  background: var(--cream);
  border: 3px solid var(--outline);
  box-shadow: 5px 5px 0 var(--outline);
}

.league-winner p {
  margin: 0;
}

.league-winner-title {
  font-family: var(--font-pixel);
  font-size: 18px;
}

.league-winner-name {
  margin-top: 6px !important;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.league-winner-value {
  margin-top: 4px !important;
  color: var(--ink-soft);
}

.league-rules {
  margin: 0;
  padding-left: 20px;
  font-size: 16px;
}

.league-rules li + li {
  margin-top: 6px;
}

.league-cta {
  margin: 0;
  font-weight: 700;
}

.board-title {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 22px;
  color: var(--yellow);
}

.boards-grid .board-intro {
  margin-top: 6px;
}

.ranking-note {
  border-top-color: rgb(255 255 255 / 0.25);
}

/* El podio de las clasificaciones: tres personajes del juego sobre sus cajones (oro, plata y bronce). */
.ranking-head {
  display: grid;
  gap: 12px 32px;
  align-items: end;
}

.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(100%, 420px);
  margin: 0 auto;
}

.podium-place {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.podium-place img {
  display: block;
  width: 100%;
  height: auto;
  /* Los pies, sobre el cajón: la imagen tiene un 8 % de margen por debajo (contando la sombra). */
  margin-bottom: -10%;
  position: relative;
  z-index: 1;
}

.podium-block {
  display: grid;
  place-items: start center;
  width: 100%;
  padding-top: 8px;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 34px;
  color: var(--ink);
  border: 3px solid var(--outline);
  box-shadow: inset 0 4px 0 rgb(255 255 255 / 0.45), inset 0 -6px 0 rgb(0 0 0 / 0.12);
}

.podium-place + .podium-place .podium-block {
  border-left-width: 0;
}

.podium-1 .podium-block {
  height: 104px;
  background: var(--yellow);
}

.podium-2 .podium-block {
  height: 78px;
  background: #d9dde3;
}

.podium-3 .podium-block {
  height: 58px;
  background: #e8b98a;
}

/* La Enfermera de la Semana: la protagonista con corona, en un marco dorado con su placa. */
.week-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.crown-frame {
  justify-self: center;
  width: min(100%, 300px);
  margin: 0;
}

.crown-frame-art {
  padding: 10px;
  background: #c08a22;
  border: 4px solid var(--outline);
  box-shadow:
    inset 0 0 0 4px #f2c14e,
    inset 0 0 0 8px #8a5e14,
    8px 8px 0 rgb(0 0 0 / 0.35);
}

.crown-frame-art img {
  display: block;
  width: 100%;
  height: auto;
  background: radial-gradient(circle at 50% 40%, #fff4dc, #f2c14e 70%, #d99a2b);
  border: 3px solid var(--outline);
}

.crown-plaque {
  position: relative;
  margin: -6px auto 0;
  width: 86%;
  padding: 8px 10px;
  text-align: center;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--outline);
  box-shadow: 4px 4px 0 rgb(0 0 0 / 0.35);
}

.crown-plaque span {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
}

.crown-plaque strong {
  display: block;
  font-family: var(--font-pixel);
  font-size: 22px;
  overflow-wrap: anywhere;
}

@media (min-width: 900px) {
  .ranking-head {
    grid-template-columns: minmax(0, 1fr) 380px;
  }

  .week-grid {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .crown-frame {
    margin-top: 56px;
  }

  .league-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
  }

  .boards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

/* ─── Preguntas frecuentes (desplegables) ────────────────── */

.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-top: 20px;
}

.faq details {
  background: var(--cream);
  border: 3px solid var(--outline);
  box-shadow: 4px 4px 0 var(--outline);
}

.faq details[open] {
  background: #fff9ea;
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 16px;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: '▶';
  flex: none;
  font-size: 13px;
  color: var(--teal);
  transition: transform 0.15s;
}

.faq details[open] summary::before {
  transform: rotate(90deg);
}

.faq summary h3 {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

.faq details p {
  margin: 0;
  padding: 0 16px 16px 41px;
}

/* ─── El equipo ──────────────────────────────────────────── */

.team {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

.member {
  padding: 16px 18px;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--outline);
  box-shadow: 5px 5px 0 var(--outline);
}

.member h3 {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 24px;
}

.member .role {
  margin: 2px 0 8px;
  font-size: 16px;
  color: var(--teal-strong);
  font-weight: 700;
}

.member p:last-child {
  margin-bottom: 0;
}

.together {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 26px;
  color: var(--yellow);
  text-shadow: 3px 3px 0 rgb(0 0 0 / 0.35);
}

/* ─── Kora Academic Games, aviso y contacto ─────────────────── */

.kora {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: var(--cream);
  border: 3px solid var(--outline);
  box-shadow: 6px 6px 0 var(--outline);
}

.kora img {
  width: min(100%, 360px);
}

.kora h2 {
  margin-bottom: 10px;
}

.kora p:last-child {
  margin-bottom: 0;
}

.kora a {
  overflow-wrap: anywhere;
}

/* El nombre de la empresa no se parte entre dos líneas (la dirección de correo sí puede). */
.kora .kora-owner {
  overflow-wrap: normal;
  white-space: nowrap;
}

.note {
  margin-top: 32px;
  padding: 16px 18px;
  background: var(--teal-soft);
  border-left: 6px solid var(--teal);
}

.note p {
  margin: 0;
}

.contact {
  margin: 20px 0 0;
}

.more a {
  display: inline-block;
  padding: 10px 0;
  font-weight: 700;
}

.more a::after {
  content: ' →';
  white-space: pre;
}

/* Botones de enlace (a las guías), con sombra de píxel que se hunde al pulsar. */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 18px;
  font-family: var(--font-pixel);
  font-size: 19px;
  color: #fff;
  text-decoration: none;
  background: var(--teal);
  border: 3px solid var(--outline);
  box-shadow: 4px 4px 0 var(--outline);
}

.button:hover {
  color: #fff;
  background: var(--teal-strong);
}

.button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--outline);
}

.button.alt {
  color: var(--ink);
  background: var(--cream);
}

.button.alt:hover {
  color: var(--ink);
  background: var(--yellow);
}

/* Los móviles, un poco inclinados. */
.phone.tilt-left {
  transform: rotate(-3deg);
}

.phone.tilt-right {
  transform: rotate(3deg);
}

@media (prefers-reduced-motion: reduce) {
  .dialog-next {
    animation: none;
  }
}

/* ─── Títulos de las páginas de texto ─────────────────────── */

.doc h1,
.doc h2 {
  font-family: var(--font-pixel);
  font-weight: 700;
  line-height: 1.15;
}

/* ─── Guías: cómo se juega y guía de combate ───────────────── */

.doc-kicker {
  margin: 0 0 4px;
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-strong);
}

.doc-lead {
  margin: 0 0 24px;
  font-size: 20px;
}

.toc {
  margin: 0 0 32px;
  padding: 10px 18px;
  background: var(--yellow);
  border: 3px solid var(--outline);
  box-shadow: 0 5px 0 var(--outline);
}

.toc ol {
  margin: 0;
  padding-left: 1.5em;
  columns: 2 250px;
  column-gap: 28px;
}

.doc .toc li {
  margin: 0;
  break-inside: avoid;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}

.guide-page,
.family {
  scroll-margin-top: 12px;
}

.guide-page {
  margin: 0 0 36px;
}

.doc .guide-page h2,
.doc .family h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.guide-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 20px;
  color: #fff;
  background: var(--teal);
  border: 3px solid var(--outline);
}

.guide-lead {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.guide-art {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 84px;
  margin: 0 0 14px;
  padding: 12px;
  background: var(--cream);
  border: 3px solid var(--outline);
}

.guide-art img {
  image-rendering: pixelated;
}

.guide-art.tissue {
  background: #f0c9d4;
}

.vs {
  font-family: var(--font-pixel);
  font-size: 22px;
  color: #b04a42;
}

.step {
  padding: 6px 10px;
  font-family: var(--font-pixel);
  font-size: 16px;
  background: var(--card);
  border: 3px solid var(--outline);
}

.step b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 4px;
  color: #fff;
  background: var(--teal);
}

.step.go {
  color: #fff;
  background: var(--teal);
}

.step.go b {
  background: var(--teal-strong);
}

.guide-art.monitor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #10201e;
}

.vital {
  padding: 6px;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 16px;
  background: #16302c;
  border: 2px solid var(--yellow);
}

.v0 {
  color: #6ee7a0;
}

.v1 {
  color: #fca5a5;
}

.v2 {
  color: #fde68a;
}

.v3 {
  color: #67e8f9;
}

.v4,
.v5 {
  color: #f1f5f9;
}

.guide-art.zones {
  gap: 4px;
  font-family: var(--font-pixel);
  font-size: 15px;
}

.zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 14px;
}

.zone .arrow {
  position: absolute;
  right: -2px;
  bottom: 0;
  color: var(--coral);
}

.grade {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.grade-S {
  background: var(--teal-strong);
}

.grade-A {
  background: var(--teal);
}

.grade-B {
  background: #3d6fa3;
}

.grade-C {
  background: #b88a1c;
}

.grade-D {
  background: var(--coral);
}

.guide-items {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc .guide-items li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 10px 14px;
  background: var(--cream);
  border: 3px solid var(--outline);
  border-left: 8px solid var(--teal);
  box-shadow: 3px 3px 0 rgb(0 0 0 / 0.12);
}

.doc .guide-items li:nth-child(4n + 2) {
  border-left-color: var(--coral);
}

.doc .guide-items li:nth-child(4n + 3) {
  border-left-color: #6a4c96;
}

.doc .guide-items li:nth-child(4n + 4) {
  border-left-color: #b88a1c;
}

.guide-items strong {
  font-family: var(--font-pixel);
  font-size: 19px;
  font-weight: 400;
}

.guide-guardian {
  display: flex;
  gap: 12px;
  margin: 0 0 10px;
  padding: 12px;
  background: #f0c9d4;
  border: 3px solid var(--outline);
  box-shadow: 3px 3px 0 rgb(0 0 0 / 0.12);
}

.guide-guardian img,
.gcard-head img,
.minis img {
  flex: none;
  /* Arriba y a su tamaño: si no, la fila flexible los estira a lo alto de la tarjeta. */
  align-self: flex-start;
  image-rendering: pixelated;
  background: var(--cream);
  border: 2px solid var(--outline);
}

.minis img {
  background: #f0c9d4;
}

.guide-guardian-name {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 21px;
  line-height: 1.2;
}

.guide-role,
.gcard-role {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--teal-strong);
}

.guide-guardian ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.next-guide {
  margin-top: 36px;
}

/* Guía de combate: una ficha por Guardián. */
.toc-short ol {
  columns: auto;
}

.family {
  margin: 0 0 40px;
}

.doc .family > h2 {
  font-size: clamp(26px, 6vw, 34px);
  padding: 8px 14px;
  color: #fff;
  background: var(--teal);
  border: 3px solid var(--outline);
  box-shadow: 4px 4px 0 var(--outline);
  text-shadow: 2px 2px 0 rgb(0 0 0 / 0.3);
}

.doc #vacunas > h2 {
  background: #6a4c96;
}

.doc #anticuerpos > h2 {
  background: #b8413a;
}

.doc #claves > h2 {
  color: var(--ink);
  background: var(--yellow);
  text-shadow: none;
}

.doc #mas-vademecum > h2 {
  background: var(--night);
}

.doc .family > p {
  max-width: 40em;
}

.note-inline {
  padding: 10px 14px;
  background: var(--teal-soft);
  border-left: 6px solid var(--teal);
}

.gcards {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

.gcard {
  padding: 16px 18px;
  background: var(--cream);
  border: 3px solid var(--outline);
  box-shadow: 0 5px 0 var(--outline);
  scroll-margin-top: 12px;
}

.gcard-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -16px -18px 0;
  padding: 14px 18px;
  background: #f0c9d4;
  border-bottom: 3px solid var(--outline);
}

.gcard-head img {
  border-width: 3px;
}

.doc .gcard h3 {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 24px;
  line-height: 1.15;
}

.gcard-alias,
.gcard-kind {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.gcard h4 {
  margin: 16px 0 8px;
  font-family: var(--font-pixel);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.orders {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc .orders li {
  margin: 0;
  padding: 10px 12px;
  background: #fff9ea;
  border: 2px solid var(--line);
  border-left: 6px solid var(--teal);
}

.orders p {
  margin: 0;
}

.order-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.order-name strong {
  font-family: var(--font-pixel);
  font-size: 20px;
  font-weight: 400;
}

.chip {
  display: inline-block;
  padding: 0 8px;
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
  background: var(--cream);
  border: 2px solid var(--outline);
}

.chip.dmg {
  background: #fde2dd;
}

.chip.inf {
  background: #fff0c2;
}

.auto {
  margin: 0;
}

.facts {
  display: grid;
  gap: 6px;
  margin: 0;
}

.facts dt {
  display: inline;
  font-weight: 700;
}

.facts dt::after {
  content: ':';
}

.facts dd {
  display: inline;
  margin: 0;
}

.minis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.doc .minis li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  background: var(--cream);
  border: 3px solid var(--outline);
}

.minis strong {
  display: block;
  font-family: var(--font-pixel);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}

.minis li > span > span {
  font-size: 15px;
  color: var(--ink-soft);
}

/* ─── Páginas legales ──────────────────────────────────────── */

.doc {
  padding: 32px 0 56px;
}

.doc .wrap {
  max-width: 820px;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 6vw, 44px);
}

.doc h2 {
  margin: 36px 0 10px;
  font-size: 26px;
}

.doc h3 {
  margin: 24px 0 6px;
  font-size: 20px;
}

.doc .updated {
  margin: 0 0 24px;
  color: var(--ink-soft);
}

.doc li {
  margin: 4px 0;
}

.steps {
  padding-left: 1.4em;
}

.steps li {
  margin: 8px 0;
}

.data {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 16px;
  background: var(--card);
}

.data th,
.data td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border: 2px solid var(--line);
}

.data th {
  background: var(--paper-deep);
}

.box {
  padding: 16px 18px;
  margin: 16px 0;
  background: var(--card);
  border: 3px solid var(--outline);
  box-shadow: 0 5px 0 var(--outline);
}

.box p:first-child {
  margin-top: 0;
}

.box p:last-child {
  margin-bottom: 0;
}

/* Tablas anchas en el móvil: se desplazan dentro de su caja. */
.table-scroll {
  overflow-x: auto;
}

/* ─── Para docentes (la cuenta Campus) ─────────────────────── */

.campus-hero {
  padding-top: 40px;
}

.campus-title {
  margin: 0 0 14px;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(32px, 7vw, 54px);
  line-height: 1.05;
  text-shadow: 3px 3px 0 rgb(0 0 0 / 0.35);
}

.campus-lead {
  margin: 0;
  font-size: 20px;
  max-width: 36em;
}

/* En la banda oscura, los enlaces van en amarillo: los botones, no. */
.campus-hero .button,
.campus-hero .button:hover {
  color: #fff;
}

.campus-hero .button.alt,
.campus-hero .button.alt:hover {
  color: var(--ink);
}

/* Capturas del panel, con el marco y la sombra de píxel del resto de la web. */
.campus-shot {
  margin: 28px 0 0;
}

.campus-shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 3px solid var(--outline);
  box-shadow: 6px 6px 0 var(--outline);
}

.campus-shot figcaption {
  margin-top: 12px;
  font-size: 15px;
  opacity: 0.85;
}

/* ─── Pie ──────────────────────────────────────────────────── */

.bottom {
  position: relative;
  padding: 28px 0 36px;
  color: #d9d2e6;
  background: var(--night);
  border-top: 4px solid var(--outline);
  font-size: 16px;
}

/* El mismo borde pixelado que las bandas de la portada. */
.bottom::before {
  content: '';
  position: absolute;
  top: -16px;
  right: 0;
  left: 0;
  height: 16px;
  background: repeating-conic-gradient(var(--night) 0 25%, transparent 0 50%) 0 0 / 16px 16px;
  pointer-events: none;
}

.bottom-brand {
  margin: 0 0 8px;
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--cream);
}

.bottom-brand a {
  color: var(--cream);
}

.bottom-brand a:hover {
  color: var(--yellow);
}

.bottom-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.bottom-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream);
}

.bottom-nav a:hover {
  color: var(--yellow);
}

.bottom-small {
  margin: 12px 0 0;
  font-size: 14px;
}

/* ─── Aviso de cookies (solo informa: la web no usa cookies) ── */

.cookie-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  font-size: 16px;
  color: var(--cream);
  background: var(--night);
  border-top: 4px solid var(--outline);
  box-shadow: 0 -4px 0 rgb(0 0 0 / 0.2);
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar p {
  margin: 0;
  max-width: 44em;
}

.cookie-bar a {
  color: var(--yellow);
  white-space: nowrap;
}

.cookie-bar button {
  min-width: 120px;
  min-height: 44px;
  padding: 6px 16px;
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--outline);
  box-shadow: 0 3px 0 #000;
}

.cookie-bar button:hover {
  background: var(--cream);
}

/* ─── Móviles estrechos: el menú y el antetítulo en una línea ── */

@media (max-width: 400px) {
  .nav {
    gap: 0 12px;
  }

  .nav a {
    font-size: 15px;
  }

  .kicker {
    letter-spacing: 0.14em;
  }
}

/* ─── Escritorio ───────────────────────────────────────────── */

@media (min-width: 760px) {
  .hero-body {
    padding: 64px 0;
  }

  .hero-grid {
    grid-template-columns: 1.3fr 1fr;
  }

  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 18px;
  }

  .showcase {
    grid-template-columns: 1fr 300px;
    gap: 56px;
  }

  .showcase-flip {
    grid-template-columns: 300px 1fr;
  }

  .showcase-flip .phone {
    order: -1;
  }

  .showcase .phone {
    width: 100%;
  }

  .perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .players {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .score {
    grid-template-columns: 1fr 260px;
    gap: 48px;
  }

  .score .phone {
    width: 100%;
  }

  .band {
    padding: 72px 0 80px;
  }

  .team {
    grid-template-columns: 1fr 1fr;
  }

  .kora {
    grid-template-columns: 360px 1fr;
    padding: 28px;
  }

  .gcards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .perks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
