/* temarad.com · la portada: un díptico con los dos juegos.
   A la izquierda, la noche del bingo de Ringo (como la web de Sapingo); a la
   derecha, un lienzo pintado a puntos (como Sapop). Cada mitad con su letra. */

@font-face { font-family: "Porkys"; src: url("../sapingo/fonts/porkys.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Sapingo Texto"; src: url("../sapingo/fonts/texto.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sapingo Texto"; src: url("../sapingo/fonts/texto-negrita.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../sapop/fonts/Fraunces.woff") format("woff"); font-weight: 100 900; font-display: swap; }

:root {
  /* Sapingo */
  --noche: #221a3d;
  --noche-3: #171128;
  --tinta: #2b1f24;
  --oro: #e8b33a;
  --crema: #fbf3df;
  --papel: #f1e4c3;
  /* Sapop */
  --s-tinta: #2b2150;
  --s-tinta-2: #5a4a7a;
  --s-bermellon: #b8452e;
  --s-papel: #f6ecd2;
  /* estudio */
  --fondo: #1b1530;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--crema); font-family: "Sapingo Texto", system-ui, sans-serif; line-height: 1.55; }
img, video { display: block; max-width: 100%; height: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 4px solid var(--oro); outline-offset: 3px; }
.saltar { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--oro); color: var(--tinta); padding: 0.5rem 1rem; border-radius: 8px; font-weight: 700; }
.saltar:focus { top: 1rem; }

/* ------------------------------------------------------------ estudio */
.estudio {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 0.9rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 4px solid #0f0b1c;
}
.estudio-marca { margin: 0; font-weight: 700; letter-spacing: 0.04em; font-size: 1.05rem; color: var(--papel); }
.estudio-lema { margin: 0; font-family: "Sapingo Texto", system-ui, sans-serif; font-weight: 400; font-size: clamp(0.95rem, 1.6vw, 1.15rem); text-align: center; color: #d9cfee; }
.idioma {
  justify-self: end; font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer;
  background: #2e2452; color: var(--papel); border: 2px solid #0f0b1c; border-radius: 999px; padding: 0.3rem 0.7rem;
}
.idioma span { opacity: 0.55; }
html[lang="es"] .idioma-es, html[lang="en"] .idioma-en { opacity: 1; color: var(--oro); }

/* ------------------------------------------------------------ díptico */
.diptico { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 64px); }
.juego { position: relative; display: flex; justify-content: center; padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.juego-dentro { position: relative; width: min(100%, 620px); display: flex; flex-direction: column; align-items: flex-start; }
.juego-genero { margin: 0 0 1.5rem; font-size: 1.15rem; max-width: 34ch; }
.juego-como { margin: 1.8rem 0 0.6rem; font-size: 1.1rem; }
.juego ul { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.85rem; }
.juego li { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: center; max-width: 52ch; }
.clip { position: relative; width: 100%; }
.clip video { width: 100%; }
.clip-pausa {
  position: absolute; right: 0.8rem; bottom: 0.8rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(0, 0, 0, 0.6); background: rgba(255, 250, 235, 0.85); color: #2b1f24;
  display: grid; place-items: center; font-size: 0; opacity: 0.85;
}
.clip-pausa::before { content: ""; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.clip-pausa[aria-pressed="true"]::before { width: 0; height: 0; border: 0; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }

/* ------------------------------------------------------------ Sapingo: la noche del bingo */
.sapingo {
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 72% 9%, #fff7 50%, transparent 52%),
    radial-gradient(2px 2px at 88% 32%, #fff6 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 34% 6%, #fff6 50%, transparent 52%),
    radial-gradient(ellipse 80% 50% at 50% 115%, #6e1f35 0%, transparent 70%),
    linear-gradient(#2e2452, var(--noche) 55%, var(--noche-3));
  border-right: 6px solid #0f0b1c;
}
/* la hilera de bombillas del letrero de Ringo */
.sapingo-bombillas {
  position: absolute; inset: 0 0 auto; height: 22px;
  background: radial-gradient(circle at 50% 50%, #fff6c8 0 3px, var(--oro) 4px 6px, transparent 7px) 0 0 / 26px 22px repeat-x, #3a1222;
  border-bottom: 3px solid #0f0b1c;
}
@media (prefers-reduced-motion: no-preference) {
  .sapingo-bombillas { animation: bombillas 1.6s steps(2) infinite; }
  @keyframes bombillas { to { background-position: 13px 0, 0 0; } }
}
.sapingo-titulo {
  margin: 0 0 0.4rem; font-family: "Porkys", "Comic Sans MS", system-ui, sans-serif; font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.4rem); line-height: 1; color: var(--crema); letter-spacing: 0.01em;
  paint-order: stroke fill; -webkit-text-stroke: 0.14em var(--tinta); text-shadow: 0 0.08em 0 var(--tinta);
}
.sapingo .juego-genero { color: #e9e0ff; }
.sapingo .juego-como { font-family: "Porkys", system-ui, sans-serif; font-weight: 400; color: var(--oro); paint-order: stroke fill; -webkit-text-stroke: 0.12em var(--tinta); font-size: 1.4rem; }
.sapingo-clip { border: 6px solid var(--tinta); border-radius: 18px 24px 16px 26px / 24px 16px 26px 18px; overflow: hidden; box-shadow: 0 7px 0 rgba(10, 6, 18, 0.55); background: #000; }
.sapingo li img { width: 40px; height: 40px; filter: drop-shadow(0 2px 0 #0f0b1c); }
.sapingo-boton {
  display: inline-block; font-family: "Porkys", system-ui, sans-serif; font-size: 1.3rem; text-decoration: none;
  color: var(--tinta); background: var(--oro); padding: 0.75rem 1.5rem 0.65rem; border: 4px solid var(--tinta);
  border-radius: 18px 24px 16px 26px / 24px 16px 26px 18px; box-shadow: 0 6px 0 var(--tinta);
  transition: transform 0.12s, box-shadow 0.12s;
}
.sapingo-boton:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--tinta); }
.sapingo-boton:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--tinta); }

/* ------------------------------------------------------------ Sapop: el lienzo a puntos */
.sapop {
  color: var(--s-tinta);
  font-family: "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 100, "WONK" 1;
  background: url("../sapop/img/textura/lienzo.png") 0 0 / 200px 200px, #e6d8b6;
}
/* el cuadro de la charca asoma por abajo, desvanecido en el lienzo */
.sapop::before {
  content: ""; position: absolute; inset: auto 0 0; height: 46%;
  background: url("../img/sapop-charca-1280.webp") center 70% / cover no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 70%); mask-image: linear-gradient(transparent, #000 70%);
  opacity: 0.55;
}
.sapop-titulo, .sapop .juego-como {
  font-family: "Fraunces", Georgia, serif; font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--s-tinta);
  background: url("../sapop/img/textura/letra-tinta.png") 0 0 / 60px 60px;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sapop-titulo { margin: 0 0 0.4rem; font-size: clamp(3rem, 7vw, 5.4rem); line-height: 1; letter-spacing: 0.02em; }
.sapop .juego-como { font-size: 1.45rem; margin-top: 1.6rem; }
.sapop .juego-genero { font-size: 1.2rem; font-weight: 600; color: var(--s-tinta-2); }
.sapop li { font-size: 1.05rem; font-weight: 500; line-height: 1.5; }
.sapop li span { background: rgba(246, 236, 210, 0.82); border-radius: 6px; padding: 0.1rem 0.3rem; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.sapop li img { width: 48px; height: 48px; }
.sapop-clip video { filter: drop-shadow(0 8px 10px rgba(43, 33, 80, 0.35)); }
/* el botón es la placa de latón del marco del juego */
.sapop-boton {
  display: inline-grid; place-items: center; min-width: 300px; min-height: 66px; padding: 0 2.6rem;
  background: url("../sapop/img/placa.webp") center / 100% 100% no-repeat;
  color: #2e1e0e; text-decoration: none; font-weight: 800; font-size: 1.2rem;
  text-shadow: 0 1px 0 rgba(255, 238, 190, 0.6);
  filter: drop-shadow(0 4px 4px rgba(43, 33, 80, 0.35));
  transition: transform 0.15s, filter 0.15s;
}
.sapop-boton:hover { transform: translateY(-2px); filter: drop-shadow(0 7px 6px rgba(43, 33, 80, 0.4)) brightness(1.06); }

/* ------------------------------------------------------------ pie */
.pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding: 1.2rem clamp(1rem, 3vw, 2.5rem); border-top: 4px solid #0f0b1c; font-size: 0.9rem; color: #c9bfe2; }
.pie p { margin: 0; }

/* ------------------------------------------------------------ móvil */
@media (max-width: 900px) {
  .diptico { grid-template-columns: 1fr; }
  .sapingo { border-right: 0; border-bottom: 6px solid #0f0b1c; }
  .estudio { grid-template-columns: 1fr auto; }
  .estudio-lema { grid-column: 1 / -1; grid-row: 2; text-align: left; }
}
@media (max-width: 420px) {
  .sapop-boton { min-width: 0; width: 100%; }
}
