/* Yoyoo Games — mismo aire que las capturas de Play: madera oscura, crema y naranja. */
:root {
  --bg: #17130d;
  --bg-2: #211b12;
  --card: #2a2217;
  --line: #4a3c28;
  --text: #f4e4c1;
  --muted: #c9b48f;
  --orange: #f08a24;
  --orange-2: #ffb15c;
  --green: #6cc04a;
  --radius: 18px;
  --wrap: 1040px;
  --read: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse at 50% -10%, #2f3a1c 0%, transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--orange-2); }
a:hover { color: var(--orange); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.read { max-width: var(--read); }

/* Barra superior */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Anton", Impact, sans-serif;
  font-size: 24px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--orange); font-weight: 400; }
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 6px 14px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--orange); color: #1d1408; }

/* Portada */
.hero { padding: 40px 0 28px; }
.kicker {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 13px;
}
h1, h2 {
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.05;
}
.hero h1 { font-size: clamp(42px, 8vw, 76px); margin: 10px 0 14px; }
.hero h1 span { color: var(--orange); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0; }

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  padding: 18px 0 40px;
}
.game {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.game img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.game h2 { font-size: 28px; margin: 4px 0 2px; }
.game .alt { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.game p { margin: 0 0 10px; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--green);
  color: var(--green);
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding-bottom: 48px;
}
.links a {
  display: block;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}
.links a small { display: block; color: var(--muted); font-weight: 400; }
.links a:hover { border-color: var(--orange); }

/* Páginas de texto */
.doc { padding: 24px 0 56px; }
.doc h1 { font-size: clamp(34px, 6vw, 52px); margin: 8px 0 6px; }
.doc h2 { font-size: 26px; margin: 40px 0 8px; color: var(--orange-2); }
.doc h3 { font-size: 18px; margin: 22px 0 4px; }
.doc .date { color: var(--muted); margin: 0 0 24px; }
.doc li { margin: 4px 0; }
.back { display: inline-block; margin-top: 8px; font-weight: 800; text-decoration: none; }

.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0;
}
.box p:first-child { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  background: var(--orange);
  color: #1d1408;
  font-weight: 900;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: 0 4px 0 #9c5512;
}
.btn:hover { background: var(--orange-2); color: #1d1408; }

code {
  background: #0f0c08;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .92em;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 22px 0 36px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; }
footer a { color: var(--muted); }

/* Idiomas: sin JavaScript se ven los dos; con JavaScript, solo el elegido. */
.js [data-lang]:not(.on) { display: none; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .game { grid-template-columns: 110px 1fr; gap: 14px; }
  .game h2 { font-size: 24px; }
}
