/* kintze.com — el frontón como página.
 *
 * Los colores son los del juego (art/kintze-sprites/palette.json y las
 * capturas): el frontis verde, las rayas rojas, la chapa gris, la arena de la
 * cancha y la tinta de los carteles, con su sombra dura. Las tipografías,
 * también: Archivo Black para los carteles y Archivo para el texto. */

@font-face {
  font-family: "Archivo Black";
  src: url("/fonts/ArchivoBlack-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/Archivo-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --frontis: #116b57;
  --frontis-deep: #0b4f40;
  --frontis-light: #16806a;
  --red: #e5392b;
  --chapa: #5f6d86;
  --chapa-deep: #3d4759;
  --sand: #f0daa6;
  --sand-line: #d9bf86;
  --cream: #f6ebd2;
  --paper: #fffaf0;
  --ink: #1e2430;
  --muted: #4f5a6b;
  --green: #2f9a74;
  --blue: #2350c8;
  --cesta: #c98a4b;

  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 16px;
  --max: 1120px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-small: 3px 3px 0 var(--ink);
  --dots: radial-gradient(rgba(0, 0, 0, 0.13) 1px, transparent 1.4px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: 760px; }
@media (min-width: 700px) { :root { --gutter: 32px; } }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--paper); border: 3px solid var(--ink); padding: 8px 14px;
  font-family: var(--display); text-decoration: none;
}
.skip:focus { top: 8px; }

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

/* ------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  font-family: var(--display); font-size: 18px; line-height: 1.1;
  color: var(--paper); text-decoration: none; text-align: center;
  border: 3px solid var(--ink); box-shadow: var(--shadow);
  cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active, .btn.is-pressed { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn--red { background: var(--red); }
.btn--green { background: var(--green); }
.btn--blue { background: var(--blue); }
.btn--cream { background: var(--paper); color: var(--ink); }
.btn--small { min-height: 38px; padding: 6px 14px; font-size: 15px; box-shadow: var(--shadow-small); }
.btn--small:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* -------------------------------------------------------------- tiendas */
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 14px; }
.stores--center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 18px 8px 14px;
  background: var(--ink); color: var(--paper);
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  text-decoration: none; font-family: var(--display); font-size: 18px; line-height: 1.05;
}
a.store:hover { background: #2b3344; }
.store__icon { width: 26px; height: 26px; flex: none; }
.store__text small {
  display: block; font-family: var(--text); font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; opacity: 0.8; margin-bottom: 2px;
}
.store--soon { background: transparent; color: var(--paper); border-color: rgba(255, 250, 240, 0.7); box-shadow: none; }
.store--soon .store__text small { color: #f3c64a; opacity: 1; }
.store--web { background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }

/* ------------------------------------------------------------ cabecera */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  padding: 14px 0;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.brand__ball { width: 34px; height: 34px; }
.brand__word { font-family: var(--display); font-size: 22px; letter-spacing: 0.01em; }
.page-privacy .brand, .page-support .brand { color: var(--paper); }
.topbar__nav { display: flex; align-items: center; gap: 12px; }

.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer;
  min-height: 38px; min-width: 52px; padding: 6px 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 3px solid var(--paper); color: var(--paper);
  font-family: var(--display); font-size: 14px;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: ""; border: 5px solid transparent; border-top-color: currentColor; margin-top: 5px; }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  margin: 0; padding: 6px; list-style: none; min-width: 170px;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: var(--shadow);
}
.langs a { display: block; padding: 8px 12px; text-decoration: none; color: var(--ink); }
.langs a:hover { background: var(--cream); }
.langs a[aria-current] { font-family: var(--display); }
.langs a[aria-current]::before { content: "● "; color: var(--red); }

/* -------------------------------------------------------------- portada */
.hero { position: relative; color: var(--paper); }
.hero__wall {
  position: relative; overflow: hidden;
  background: var(--dots), linear-gradient(100deg, var(--frontis) 0 62%, #137560 62% 100%);
  background-size: 9px 9px, auto;
  padding: 104px 0 64px;
}
/* La raya roja de arriba del frontis. */
.hero__wall::before {
  content: ""; position: absolute; left: 0; right: 0; top: 70px; height: 6px; background: var(--red);
}
.hero__grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero__wall { padding: 128px 0 72px; }
  .hero__wall::before { top: 84px; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}

.kicker {
  display: inline-block; margin: 0 0 14px; padding: 4px 10px;
  font-family: var(--display); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #f3c64a; border: 2px solid currentColor;
}
.kicker--dark { color: var(--paper); }
.hero__title {
  margin: 0 0 18px;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, 17vw, 150px); line-height: 0.88; letter-spacing: 0.005em;
  color: var(--paper); text-shadow: 6px 6px 0 var(--ink);
}
.hero__title--small { font-size: clamp(44px, 10vw, 84px); }
.hero__lead { font-size: clamp(19px, 2.3vw, 23px); line-height: 1.45; max-width: 34ch; margin-bottom: 0.4em; }
.hero__note { font-size: 15px; opacity: 0.85; margin: 0; }

.hero__phone { display: flex; justify-content: center; }
.phone {
  width: min(62vw, 300px);
  border: 4px solid var(--ink); border-radius: 34px; overflow: hidden;
  background: var(--ink); padding: 8px; box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(2.5deg);
}
.phone img { border-radius: 26px; width: 100%; height: auto; }
@media (min-width: 900px) { .phone { width: 320px; } }

/* Una pelota que viene hacia el que mira, como un rebote del frontis. */
.hero__flight {
  position: absolute; width: 40px; height: 40px; left: 54%; top: 46%;
  animation: flight 5.5s cubic-bezier(.3, .1, .4, 1) infinite;
  filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, 0.3));
  pointer-events: none;
}
@keyframes flight {
  0%   { transform: translate(-30vw, -12vh) scale(0.35) rotate(0deg); opacity: 0; }
  8%   { opacity: 1; }
  42%  { transform: translate(-6vw, -24vh) scale(0.55) rotate(200deg); }
  72%  { transform: translate(16vw, 6vh) scale(1.3) rotate(420deg); opacity: 1; }
  86%  { transform: translate(26vw, 22vh) scale(1.8) rotate(520deg); opacity: 0; }
  100% { transform: translate(26vw, 22vh) scale(1.8); opacity: 0; }
}
@media (max-width: 899px) { .hero__flight { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__flight { display: none; } }

/* La chapa: la franja metálica de abajo del frontis, con sus remaches. */
.chapa {
  height: 28px;
  background:
    radial-gradient(circle, var(--chapa-deep) 2px, transparent 2.6px) 0 50% / 30px 100% repeat-x,
    var(--chapa);
  border-top: 5px solid var(--red);
  border-bottom: 3px solid var(--ink);
}
.chapa--thin { height: 16px; border-top-width: 4px; }

/* -------------------------------------------------------- las franjas */
.band { padding: 72px 0; position: relative; }
@media (min-width: 900px) { .band { padding: 104px 0; } }
.band--floor {
  background:
    repeating-linear-gradient(180deg, transparent 0 118px, var(--sand-line) 118px 120px),
    var(--sand);
}
.band--cream { background: var(--cream); }
.band--wall {
  background: var(--dots), var(--frontis-deep);
  background-size: 9px 9px, auto;
  color: var(--paper);
}

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--flip .split__text { order: 2; }
}

/* Los números de los cuadros de la cancha, pintados en la pared. */
.cuadro {
  margin: 0 0 6px; font-family: var(--display); font-size: 64px; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--ink); opacity: 0.5;
  transform: skewX(-10deg); display: inline-block;
}
.cuadro--light { -webkit-text-stroke-color: var(--paper); opacity: 0.55; }

.h2 {
  margin: 0 0 20px; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(32px, 5.4vw, 52px); line-height: 1; letter-spacing: 0.005em;
}
.split .h2 { font-size: clamp(30px, 4.2vw, 44px); }
.h2--light { color: var(--paper); text-shadow: 4px 4px 0 var(--ink); }
.h2--small { font-size: clamp(24px, 4vw, 32px); margin-top: 48px; }
.body { font-size: 18px; max-width: 58ch; }
.body--light { color: var(--paper); }
.body--big { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.45; }

/* ------------------------------------------------------- la demo */
.demo {
  margin: 0; justify-self: center; width: 100%; max-width: 420px;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  padding: 18px 18px 20px; text-align: center;
}
.demo__label {
  margin: 0 0 10px; font-family: var(--display); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red);
}
.demo__court { width: 100%; height: auto; border: 3px solid var(--ink); background: var(--cream); touch-action: none; }
.demo__caption {
  min-height: 2.6em; display: flex; align-items: center; justify-content: center;
  margin: 12px 0 10px; font-family: var(--display); font-size: 19px; line-height: 1.15;
}
.demo__btn { width: 100%; min-height: 60px; font-size: 22px; touch-action: none; -webkit-touch-callout: none; }
.demo__hint { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.4; }

/* ------------------------------------------------------- el txoko */
.corner { margin: 0; }
.corner svg { width: 100%; height: auto; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.corner text { font-family: var(--display); }
.tag text { font-size: 20px; fill: var(--ink); }
.tag--bad text { fill: var(--paper); font-size: 18px; }
.corner__label { font-size: 15px; fill: rgba(255, 250, 240, 0.72); letter-spacing: 0.1em; text-transform: uppercase; }
.corner__path { animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) { .corner__path { animation: none; } }

/* ------------------------------------------------- la pelota es el reloj */
.clock { margin-top: 34px; display: grid; gap: 18px; }
.clock__row { display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 14px; align-items: center; }
.clock__name { font-family: var(--display); text-transform: uppercase; font-size: 15px; letter-spacing: 0.06em; }
.clock__track {
  position: relative; height: 44px; border: 3px solid var(--ink); background: var(--paper);
  box-shadow: var(--shadow-small); overflow: hidden;
}
.clock__track::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 10px; background: var(--red); }
.clock__track svg { position: absolute; top: 5px; left: 6px; width: 28px; height: 28px; }
.clock__track--slow svg { animation: roll 4.8s linear infinite; }
.clock__track--fast svg { animation: roll 0.9s cubic-bezier(.6, 0, 1, 1) infinite; }
@keyframes roll {
  0% { left: 6px; transform: rotate(0); }
  85% { left: calc(100% - 46px); transform: rotate(540deg); }
  100% { left: calc(100% - 46px); transform: rotate(540deg); }
}
@media (prefers-reduced-motion: reduce) { .clock__track svg { animation: none; } }

/* -------------------------------------------------------------- modos */
.modes {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; gap: 28px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .modes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .modes { grid-template-columns: repeat(3, 1fr); } }
.mode {
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  display: flex; flex-direction: column;
}
.mode__shot {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-bottom: 3px solid var(--ink); background: var(--cream);
}
/* Las capturas son altas y empiezan con el marcador: se enseña la cancha. */
.mode__shot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 32%;
}
.mode__text { padding: 18px 20px 20px; }
.mode__name { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.1; }
.mode__text p { margin: 0; font-size: 16px; line-height: 1.5; color: #333a47; }
/* El frontón del día y el circuito, más anchos: son los dos de jugar en
 * serio, y así siete tarjetas llenan tres filas. */
@media (min-width: 1000px) {
  .mode--daily, .mode--circuit { grid-column: span 2; flex-direction: row; }
  .mode--daily .mode__shot, .mode--circuit .mode__shot {
    flex: 0 0 50%; aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: 3px solid var(--ink);
  }
  .mode--daily .mode__text, .mode--circuit .mode__text { align-self: center; padding: 28px; }
  .mode--daily .mode__name, .mode--circuit .mode__name { font-size: 30px; }
}

/* ------------------------------------------------------- compartir */
.share { margin: 0; justify-self: center; width: 100%; max-width: 380px; }
.share__bubble {
  position: relative; background: var(--paper); border: 3px solid var(--ink);
  border-radius: 22px 22px 22px 4px; box-shadow: 8px 8px 0 var(--ink);
  padding: 22px 24px 18px; font-size: 18px; line-height: 1.4;
}
.share__bubble p { margin: 0 0 6px; }
.share__emoji { font-size: 26px; letter-spacing: 0.04em; margin: 10px 0 !important; }
.share__link { color: var(--blue); text-decoration: underline; }
.share__btn { margin-top: 26px; width: 100%; pointer-events: none; }

/* ------------------------------------------------------- por qué */
.why { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; }
.why li {
  position: relative; padding: 16px 18px 16px 58px; font-size: 17px;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: var(--shadow-small);
}
.why li::before {
  content: ""; position: absolute; left: 16px; top: 17px; width: 26px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='17' fill='%23fffaf0' stroke='%231e2430' stroke-width='3'/%3E%3Cpath d='M8 13C14 23 26 23 32 13M8 27C14 17 26 17 32 27' fill='none' stroke='%23e5392b' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.why strong { font-family: var(--display); font-weight: 400; }

/* ------------------------------------------------------- al frontón */
.get { color: var(--paper); text-align: center; }
.get__wall {
  background: var(--dots), var(--frontis);
  background-size: 9px 9px, auto;
  padding: 80px 0 64px; position: relative;
}
.get__wall::before { content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 6px; background: var(--red); }
.get__inner { display: flex; flex-direction: column; align-items: center; }
.get__ball { width: 64px; height: 64px; margin-bottom: 18px; filter: drop-shadow(4px 4px 0 var(--ink)); }
.get__title {
  margin: 0 0 12px; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 8vw, 76px); line-height: 0.95; text-shadow: 5px 5px 0 var(--ink);
}
.get__body { font-size: 19px; max-width: 40ch; }

/* ------------------------------------------------------------- pie */
.footer { background: var(--ink); color: var(--cream); padding: 48px 0 40px; font-size: 15px; }
.footer__inner { display: grid; gap: 24px; }
@media (min-width: 800px) { .footer__inner { grid-template-columns: 1.2fr 1fr 1.4fr; align-items: start; } }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand p { margin: 0; }
.footer__brand strong { font-family: var(--display); font-weight: 400; font-size: 20px; }
.footer__ball { width: 40px; height: 40px; flex: none; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__links { flex-direction: column; }
.footer a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(246, 235, 210, 0.35); }
.footer a:hover { border-bottom-color: currentColor; }
.footer__langs a[aria-current] { color: #f3c64a; border-bottom-color: #f3c64a; }
.footer__copy { margin: 0; opacity: 0.6; font-size: 13px; grid-column: 1 / -1; }

/* ---------------------------------------------- privacidad y soporte */
.doc-head {
  background: var(--dots), var(--frontis);
  background-size: 9px 9px, auto;
  color: var(--paper); padding: 108px 0 36px; position: relative;
}
.doc-head::before { content: ""; position: absolute; left: 0; right: 0; top: 70px; height: 5px; background: var(--red); }
.doc-title {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(38px, 7vw, 64px); line-height: 1; text-shadow: 4px 4px 0 var(--ink);
}
.doc { background: var(--cream); padding: 48px 0 88px; }
.prose { font-size: 17px; }
.prose h2, .prose h3 {
  font-family: var(--display); font-weight: 400; line-height: 1.15;
  margin: 2em 0 0.6em; font-size: 24px;
}
.prose h3 { font-size: 20px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.3em 0; }
.prose a { color: var(--frontis); word-break: break-word; }
.prose strong { color: #10151f; }

.contact {
  background: var(--paper); border: 3px solid var(--ink); box-shadow: var(--shadow);
  padding: 24px; margin-bottom: 8px;
}
.contact .btn { margin: 4px 0 12px; }
.contact__mail { margin: 0 0 18px; font-family: var(--display); }
.contact__mail a { color: var(--frontis); overflow-wrap: anywhere; }
.contact__note { margin: 0; color: var(--muted); font-size: 15px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 3px solid var(--ink); }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; position: relative;
  font-family: var(--display); font-size: 17px; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--red);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 18px; }
.doc-more { margin-top: 32px; }
.doc-more a { font-family: var(--display); color: var(--frontis); }

/* --------------------------------------------------------------- 404 */
.hero--small .hero__wall { padding: 140px 0 90px; }
.lost { text-align: center; display: flex; flex-direction: column; align-items: center; }
.lost__ball { width: 72px; height: 72px; margin-bottom: 18px; transform: rotate(-20deg); filter: drop-shadow(4px 4px 0 var(--ink)); }
.lost .btn { margin-top: 14px; }
