/* jayfre.com — mismo mundo visual que La Copa Vikinga: taberna oscura, oro y burdeos. */
@font-face { font-family: 'Pirata One'; font-weight: 400; font-display: swap; src: url(/fonts/PirataOne.woff2) format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 400 900; font-display: swap; src: url(/fonts/Cinzel.woff2) format('woff2'); }

:root {
  --bg: #0f0a09; --wood: #2a1712; --wood-2: #3b2118;
  --burgundy: #6e0f1f; --burgundy-2: #9b1b30;
  --gold: #d9a441; --gold-2: #f3d27a; --gold-3: #8a6420;
  --ink: #f5ead6; --muted: #b9a88f;
  --display: 'Pirata One', 'Cinzel', Georgia, serif;
  --head: 'Cinzel', Georgia, serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--body); color: var(--ink); font-size: 17px; line-height: 1.5;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(217, 164, 65, .18), transparent 55%),
    radial-gradient(ellipse at 50% 120%, rgba(110, 15, 31, .55), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 90px),
    linear-gradient(180deg, #170d0b, #0b0706);
  background-attachment: fixed;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.hero, main, footer { width: min(960px, 100% - 32px); margin-inline: auto; }

/* ---------- Cabecera ---------- */
.hero { position: relative; text-align: center; padding: 56px 0 8px; }
.langs { position: absolute; top: 14px; right: 0; display: flex; gap: 4px; }
.langs button {
  font: 700 13px var(--head); letter-spacing: .08em; color: var(--muted); background: transparent;
  border: 1px solid rgba(217, 164, 65, .3); border-radius: 999px; padding: 5px 10px; cursor: pointer;
}
.langs button[aria-pressed='true'] { color: #1a0f0c; background: var(--gold-2); border-color: var(--gold-2); }
.langs button:focus-visible, .btn:focus-visible, .game:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.logo { margin: 0 auto; width: min(520px, 100%); }
.logo svg { display: block; width: 100%; height: auto; }
.about { max-width: 34em; margin: 6px auto 0; font-size: 19px; color: var(--ink); text-wrap: balance; }

/* ---------- Secciones ---------- */
main { padding: 24px 0 8px; display: grid; gap: 44px; }
h2 {
  font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; margin: 0 0 18px; letter-spacing: .02em;
  background: linear-gradient(180deg, #fff3c4 0%, var(--gold-2) 35%, var(--gold) 70%, var(--gold-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h3 { font-family: var(--head); font-weight: 700; font-size: 22px; margin: 0 0 6px; color: var(--ink); }
p { margin: 0 0 16px; }

/* ---------- Juegos ---------- */
.games { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.game {
  display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none;
  background: linear-gradient(180deg, rgba(59, 33, 24, .75), rgba(26, 15, 12, .9));
  border: 2px solid rgba(217, 164, 65, .45); border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
  transition: transform .2s ease, border-color .2s ease;
}
a.game:hover { transform: translateY(-3px); border-color: var(--gold-2); }
.game img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.game-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.game-body p { color: var(--muted); }
.game-body .btn { align-self: flex-start; margin-top: auto; }
.badge {
  display: inline-block; vertical-align: middle; font: 700 12px var(--body); letter-spacing: .04em;
  color: #fff; background: var(--burgundy-2); border-radius: 6px; padding: 2px 6px; margin-left: 4px;
}
.soon { border-style: dashed; border-color: rgba(217, 164, 65, .3); background: rgba(26, 15, 12, .55); box-shadow: none; }
.soon-art {
  aspect-ratio: 1200 / 630; display: grid; place-items: center;
  font: 400 120px var(--display); color: rgba(217, 164, 65, .35);
  background: radial-gradient(circle at 50% 45%, rgba(217, 164, 65, .08), transparent 65%);
  border-bottom: 1px dashed rgba(217, 164, 65, .25);
}

/* ---------- Noticias ---------- */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.news li {
  padding: 16px 20px; border-left: 3px solid var(--gold); background: rgba(26, 15, 12, .6); border-radius: 0 12px 12px 0;
}
.news time { display: block; font: 700 13px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.news h3 { font-size: 19px; }
.news p { margin: 0; color: var(--muted); }

/* ---------- Apoyo y bugs ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel {
  padding: 22px 22px 24px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(110, 15, 31, .35), rgba(26, 15, 12, .85));
  border: 2px solid rgba(217, 164, 65, .35);
}
.panel h2 { font-size: 36px; margin-bottom: 10px; }
.panel p { color: var(--muted); }

/* ---------- Botones (como los del juego) ---------- */
.btn {
  display: inline-block; font: 700 17px var(--head); letter-spacing: .03em; text-decoration: none; text-align: center;
  border-radius: 12px; padding: 12px 22px; cursor: pointer;
}
.btn-gold {
  color: #2a1606; background: linear-gradient(180deg, #fff3c4 0%, var(--gold-2) 30%, var(--gold) 75%, #b9862e 100%);
  border: 2px solid #6d4a12; box-shadow: 0 4px 0 #6d4a12, 0 8px 18px rgba(0, 0, 0, .45);
}
a.btn-gold:hover, a.game:hover .btn-gold { filter: brightness(1.08); }
.btn-ghost { color: var(--muted); border: 2px dashed rgba(217, 164, 65, .35); cursor: default; }

footer { padding: 40px 0 32px; text-align: center; color: var(--muted); font-size: 14px; }

@media (max-width: 720px) {
  .hero { padding-top: 52px; }
  .games, .pair { grid-template-columns: 1fr; }
  /* «Próximamente» en una fila baja: en móvil no merece una tarjeta tan alta como la del juego. */
  .soon { flex-direction: row; align-items: center; }
  .soon-art { aspect-ratio: 1; width: 92px; flex: none; font-size: 60px; border-bottom: 0; border-right: 1px dashed rgba(217, 164, 65, .25); }
  .soon .game-body { padding: 14px 18px; }
  .soon .game-body p { margin: 0; }
  h2 { font-size: 38px; }
  .about { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .game { transition: none; } a.game:hover { transform: none; } }
