/* Lo comparten la portada y la página de descarga (descarga/). */
:root {
  --bg: #12151a;
  --surface: #1b1f26;
  --ink: #f2f4f7;
  --ink-dim: #9aa3ad;
  --accent: #d4af6a;
  --accent-ink: #1a1505;
  --dark-square: #6e8b5e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 70% at 50% -10%, #1e2630 0%, transparent 60%),
    linear-gradient(180deg, #171b21 0%, var(--bg) 70%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 24px;
}

.contenedor {
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.pieza {
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
}

.logo {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-top: 4px;
}

.subtitulo {
  color: var(--ink-dim);
  margin-top: 8px;
  margin-bottom: 32px;
}

/* La acción de la página: jugar en la portada, el APK en descarga/. */
.boton-principal {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 17px;
  box-shadow: 0 12px 24px -8px rgba(212, 175, 106, .45);
  transition: transform 0.15s ease;
}

/* La alternativa, en segundo plano. */
.boton-secundario {
  display: inline-block;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 14px;
  font-size: 15px;
  transition: transform 0.15s ease;
}

.boton-principal:hover,
.boton-secundario:hover { transform: translateY(-2px); }

.nota {
  color: var(--ink-dim);
  font-size: 13px;
  margin-top: 12px;
  margin-bottom: 0;
}

.alternativa { margin: 24px 0 0; }

/* script.js pone la clase "ios" en iPhone y iPad, donde el APK no sirve. */
.solo-ios,
.ios .solo-otros { display: none; }
.ios .solo-ios { display: block; }

.detalles {
  text-align: left;
  margin-top: 36px;
  padding: 20px 24px;
  background: var(--surface);
  border-radius: 16px;
  list-style: none;
  border: 1px solid #2a3038;
}

.detalles li {
  color: var(--ink-dim);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.detalles li:last-child { border-bottom: none; }
.detalles li::before {
  content: "● ";
  color: var(--dark-square);
}

.enlaces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 28px 0 0;
}

.enlace-secundario {
  color: var(--ink-dim);
  font-size: 13px;
  text-decoration: underline;
}
