/* EL TOP JOHN — web pública. Misma paleta que el tema «papel» del juego:
   fondo crema, tinta negra, bordes de 3 px y sombra dura desplazada. */

:root {
  --ground: #FFF6E5;
  --ground-deep: #F5E7CE;
  --surface: #FFFFFF;
  --line: #141414;
  --shadow: #141414;
  --ink: #141414;
  --muted: #6B6357;
  --rule: #E3D6BF;

  --yellow: #FFD93D;
  --coral: #FF6B5A;
  --sky: #7CC7F0;
  --mint: #8BE3A8;
  --lilac: #B9A5F2;

  --yellow-ink: #8A5B00;
  --coral-ink: #C6301C;
  --sky-ink: #0E6B9E;
  --mint-ink: #1E7A46;

  --shadow-size: 5px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #14110B;
    --ground-deep: #0D0B07;
    --surface: #211D15;
    --line: #F2E8D6;
    --shadow: #57503D;
    --ink: #F5EEE0;
    --muted: #A79B85;
    --rule: #3A3428;

    --yellow-ink: #FFD93D;
    --coral-ink: #FF8E80;
    --sky-ink: #7CC7F0;
    --mint-ink: #8BE3A8;
  }
}

* { box-sizing: border-box; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  margin: 0;
  padding: 0 20px 80px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 900px; margin: 0 auto; }
.prose { max-width: 68ch; }

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Archivo", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.2rem, 6.4vw, 3.6rem); line-height: 0.98; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); line-height: 1.1; }
h3 { font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--sky-ink);
  outline-offset: 3px;
}

/* Idioma: cada página lleva las dos versiones y se enseña una. */
html[data-lang="es"] [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="es"] { display: none !important; }

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ---------- Barra de arriba ---------- */

.bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px 0 18px;
  border-bottom: 3px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Bricolage Grotesque", "Archivo", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand img {
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-radius: 9px;
  display: block;
}

.bar nav {
  margin-left: auto;
  display: flex;
  gap: 6px 14px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.bar nav a[aria-current="page"] { text-decoration-thickness: 3px; }

.langs { display: flex; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.langs button {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--yellow); color: #141414; }

/* ---------- Portada ---------- */

.hero { padding: 56px 0 8px; display: flex; flex-direction: column; gap: 20px; }
.hero .tagline {
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  line-height: 1.45;
  max-width: 52ch;
  margin: 0;
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-size) var(--shadow-size) 0 var(--shadow);
  background: var(--yellow);
  color: #141414;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 700;
}
.store small {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.72;
}
.store.soon { background: var(--ground-deep); color: var(--ink); box-shadow: none; border-style: dashed; }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shots img {
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-size) var(--shadow-size) 0 var(--shadow);
  background: var(--surface);
}

/* ---------- Secciones y cajas ---------- */

section { padding-top: 52px; display: flex; flex-direction: column; gap: 18px; }

.box {
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-size) var(--shadow-size) 0 var(--shadow);
  padding: 20px 22px;
}
.box > :first-child { margin-top: 0; }
.box.fill-yellow { background: var(--yellow); color: #141414; }
.box.fill-sky    { background: var(--sky);    color: #141414; }
.box.fill-mint   { background: var(--mint);   color: #141414; }
.box.fill-coral  { background: var(--coral);  color: #141414; }
.box.fill-deep   { background: var(--ground-deep); }
.box h2, .box h3 { margin-bottom: 10px; }

.cards2 { display: grid; gap: 16px; }
@media (min-width: 700px) { .cards2 { grid-template-columns: 1fr 1fr; } }

ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ul.plain > li { padding-left: 22px; position: relative; }
ul.plain > li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--yellow-ink);
  font-weight: 700;
}
ul.plain > li.no::before { content: "✕"; color: var(--coral-ink); }
ul.plain > li.si::before { content: "✓"; color: var(--mint-ink); }

/* ---------- Páginas legales ---------- */

.legal { padding-top: 44px; }
.legal h2 { margin-top: 38px; }
.legal h3 { margin-top: 24px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .updated {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--muted);
}
.legal dt { font-weight: 700; margin-top: 14px; }
.legal dd { margin: 4px 0 0; }

.mail {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  word-break: break-all;
}

.scroller { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.92rem;
  min-width: 480px;
}
th, td { text-align: left; padding: 10px 13px; border-bottom: 2px solid var(--rule); vertical-align: top; }
thead th {
  background: var(--ground-deep);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--line);
}
tbody tr:last-child td { border-bottom: none; }

details.faq {
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 18px;
}
details.faq + details.faq { margin-top: 12px; }
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq[open] summary { margin-bottom: 10px; }

footer.foot {
  margin-top: 64px;
  padding-top: 22px;
  border-top: 3px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.85rem;
  color: var(--muted);
}
footer.foot a { color: var(--ink); }
