:root {
  --bg: #140a2e; --bg2: #1d0f3d; --card: #22124a; --line: rgba(190, 160, 255, .2);
  --text: #fff7ff; --muted: #c9b8f0; --gold: #ffd23f; --orange: #ff9f1c; --coral: #ff4d6d; --mint: #2ef2a0; --violet: #9b5de5;
  --font: 'Fredoka', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: var(--font); color: var(--text); line-height: 1.5;
  background: radial-gradient(ellipse at 70% -10%, rgba(255, 110, 140, .28), transparent 55%), radial-gradient(ellipse at 10% 30%, rgba(155, 93, 229, .25), transparent 50%), linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%) fixed; }
a { color: inherit; }

.top { max-width: 1100px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.6rem; font-weight: 700; letter-spacing: .01em; }
.brand b { color: var(--gold); font-weight: 700; }
.logo { width: 42px; height: 42px; filter: drop-shadow(0 0 12px rgba(255, 159, 28, .45)); }
nav { display: flex; align-items: center; gap: 18px; }
nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
nav a:hover { color: #fff; }
.lang { font: 600 .9rem var(--font); color: var(--text); background: rgba(255,255,255,.08); border: 0; border-radius: 10px; padding: 6px 10px; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); }

main { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.hero { text-align: center; padding: 48px 0 40px; }
.hero h1 { margin: 0 auto; max-width: 760px; font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.05;
  background: linear-gradient(180deg, #fff 20%, #ffe680 60%, #ff9f1c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #5b1a6b); }
.hero p { margin: 16px auto 26px; max-width: 560px; color: var(--muted); font-size: 1.15rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 18px; font-weight: 700; font-size: 1.2rem; color: #2a1442; text-decoration: none;
  background: linear-gradient(180deg, #ffe680, var(--gold) 45%, var(--orange)); box-shadow: 0 5px 0 #b8640a, 0 12px 28px rgba(255, 160, 40, .35); transition: transform .08s; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #b8640a; }

.games h2 { font-size: 1.6rem; margin: 10px 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 2px var(--line), 0 18px 40px rgba(0,0,0,.35); text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--gold), 0 24px 50px rgba(0,0,0,.45); }
.card img { display: block; width: 100%; aspect-ratio: 40 / 21; object-fit: cover; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.5rem; }
.card p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px var(--line); }
.tags .new { background: var(--mint); color: #06281c; box-shadow: none; }
.play { margin-top: auto; align-self: flex-start; font-weight: 700; color: var(--gold); }
.play::after { content: ' →'; }
.soon { opacity: .75; }
.soon-art { aspect-ratio: 40 / 21; display: grid; place-items: center; grid-auto-flow: column; gap: 10px; background: linear-gradient(135deg, #2a1a5e, #1a0f38); }
.soon-art span { width: 22px; height: 22px; border-radius: 50%; background: var(--violet); animation: fizz 1.6s ease-in-out infinite; }
.soon-art span:nth-child(2) { background: var(--mint); animation-delay: .2s; }
.soon-art span:nth-child(3) { background: var(--gold); animation-delay: .4s; }
@keyframes fizz { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 44px 0; }
.why div { padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1.5px var(--line); display: flex; flex-direction: column; gap: 4px; }
.why b { color: var(--gold); font-size: 1.1rem; }
.why span { color: var(--muted); }

.foot { max-width: 1100px; margin: 0 auto; padding: 24px 20px 40px; display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }

/* Páginas de texto (privacidad, aviso legal). */
.doc { max-width: 760px; margin: 0 auto; padding: 10px 20px 40px; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 10px 0 6px; }
.doc h2 { color: var(--gold); font-size: 1.2rem; margin: 28px 0 6px; }
.doc p, .doc li { color: #eee4ff; }
.doc .updated { color: var(--muted); font-size: .9rem; }

@media (max-width: 560px) {
  .brand { font-size: 1.35rem; }
  .logo { width: 36px; height: 36px; }
  .hero { padding: 28px 0 30px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
