/* Kitebloom Labs — estilos de la web (mismos colores del juego). */
:root {
  --ink: #1d2b53;
  --ink-soft: #5a6a8f;
  --paper: #ffffff;
  --paper-shade: #edf2fa;
  --bg: #f6f8fd;
  --sun: #ffc531;
  --sun-deep: #e3a008;
  --coral: #ff5a5f;
  --blue: #3d9bff;
  --green: #2bc46b;
  --night: #1d2b53;
  --night-2: #2b3f8c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2ff;
    --ink-soft: #b5c0dd;
    --paper: #1c2547;
    --paper-shade: #26315a;
    --bg: #121a36;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--blue); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }

header.top {
  background: linear-gradient(135deg, var(--night-2), var(--night));
  color: #fff;
}
header.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 900; font-size: 1.2rem; }
.brand .tiles { display: inline-grid; grid-template-columns: repeat(2, 14px); gap: 3px; }
.brand .tiles i { width: 14px; height: 14px; border-radius: 4px; display: block; }
.lang { color: #fff; opacity: .85; font-weight: 800; text-decoration: none; font-size: .95rem; }

.hero { padding-block: 48px 56px; color: #fff; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 12px; font-weight: 900; text-wrap: balance; }
.hero p { font-size: 1.15rem; margin: 0; max-width: 60ch; color: #dfe6ff; }

main { padding-block: 32px 48px; }
.card {
  background: var(--paper);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.app { display: flex; gap: 16px; align-items: center; text-decoration: none; color: inherit; }
.app img { width: 84px; height: 84px; border-radius: 20px; flex: none; }
.app h3 { margin: 0; font-size: 1.2rem; }
.app p { margin: 4px 0 0; color: var(--ink-soft); }

.btn {
  display: inline-block;
  background: var(--sun);
  color: #1d2b53;
  font-weight: 900;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--sun-deep);
}
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--sun-deep); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.features .card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.features .card p { margin: 0; color: var(--ink-soft); }

.legal { max-width: 72ch; }
.legal h1 { font-size: 2rem; line-height: 1.2; margin-top: 0; text-wrap: balance; }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal .muted { color: var(--ink-soft); }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 8px; border-bottom: 1px solid var(--paper-shade); vertical-align: top; }
.table-scroll { overflow-x: auto; }

footer { padding-block: 24px 40px; color: var(--ink-soft); font-size: .9rem; }
footer a { color: var(--ink-soft); }
