/* MisterChire Studio · estilos de toda la web (sin librerías, sin fuentes externas) */
:root {
  --bg: #0e1116;
  --bg-2: #151a22;
  --card: #1a212b;
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef2f7;
  --muted: #a9b3c1;
  --accent: #3ea6f5;
  --accent-2: #f2b134;
  --good: #4db82a;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max: 1080px;
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb;
    --bg-2: #ffffff;
    --card: #ffffff;
    --line: rgba(14, 17, 22, 0.12);
    --text: #10151c;
    --muted: #505c6b;
    --accent: #0f7fd6;
    --accent-2: #c98512;
    --shadow: 0 10px 30px rgba(20, 30, 50, 0.12);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}
img, picture, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }

/* ---------- cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.01em; }
.brand img { width: 38px; height: 38px; }
.brand span b { color: var(--accent); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.2rem; }
.nav a { color: var(--text); text-decoration: none; padding: 0.5rem 0.8rem; border-radius: 10px; font-weight: 600; font-size: 0.97rem; }
.nav a:hover, .nav a[aria-current='page'] { background: var(--bg-2); color: var(--accent); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 0.45rem 0.7rem; font: inherit; font-weight: 600; cursor: pointer; }
.lang { position: relative; margin-left: 0.4rem; }
.lang summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; padding: 0.4rem 0.7rem; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 0.4rem; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 150px; }
.lang li a { display: block; padding: 0.45rem 0.7rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; }
.lang li a:hover, .lang li a[aria-current='true'] { background: var(--bg-2); color: var(--accent); }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.6rem 1.25rem 1rem; }
  .nav.open { display: flex; }
  .lang { margin: 0.4rem 0 0; }
  .lang ul { position: static; box-shadow: none; margin-top: 0.4rem; }
}

/* ---------- portada ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 7vw, 4.5rem); }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2rem; align-items: center; }
.kicker { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 40em; }
.hero-art { justify-self: center; }
.hero-logo { width: min(280px, 60vw); height: auto; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35)); }
.cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.4rem; border-radius: 14px; border: 2px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform 0.15s, filter 0.15s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.gold { background: var(--accent-2); border-color: var(--accent-2); color: #1c1403; }
.btn[aria-disabled='true'] { opacity: 0.55; pointer-events: none; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; justify-self: start; } .hero-logo { width: 120px; } }

/* ---------- secciones ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.2rem) 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 1.8rem; }
.grid { display: grid; gap: 1.2rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.18s, border-color 0.18s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .art { aspect-ratio: 8 / 5; background: var(--bg-2); }
.card .art img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card h3 { margin: 0; }
.card p { color: var(--muted); margin: 0; }
.card .more { margin-top: auto; padding-top: 0.8rem; font-weight: 800; }
.card a.stretch { color: inherit; text-decoration: none; display: contents; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 800; padding: 0.2rem 0.65rem; border-radius: 999px; background: color-mix(in srgb, var(--accent-2) 22%, transparent); color: var(--accent-2); width: fit-content; }
.tag.blue { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.big-card { padding: 1.6rem; }
.hex { display: grid; place-items: center; width: 52px; height: 58px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--accent); color: #fff; font-weight: 900; font-size: 1.3rem; margin-bottom: 0.4rem; }
.hex.gold { background: var(--accent-2); color: #1c1403; }

/* ---------- páginas de juego ---------- */
.page-hero { padding: clamp(2.2rem, 6vw, 4rem) 0 1.5rem; }
.game-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.game-hero img.feature { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; }
.game-title { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.game-title img { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow); }
.game-title h1 { margin: 0; }
@media (max-width: 860px) { .game-hero { grid-template-columns: 1fr; } }
.list { padding: 0; margin: 0; list-style: none; display: grid; gap: 0.8rem; }
.list li { position: relative; padding-left: 2rem; }
.list li::before { content: ''; position: absolute; left: 0; top: 0.4em; width: 1.05rem; height: 1.2rem; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--accent); }
ol.steps { padding-left: 1.3rem; display: grid; gap: 0.6rem; }
.gallery { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; -webkit-overflow-scrolling: touch; }
.gallery img { height: min(520px, 70vh); width: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); scroll-snap-align: start; flex: none; }
.play-box { display: grid; gap: 1.2rem; justify-items: center; }
.phone { width: min(390px, 100%); aspect-ratio: 9 / 18.5; border-radius: 38px; border: 10px solid #1d242e; background: #000; box-shadow: var(--shadow); overflow: hidden; position: relative; display: grid; place-items: center; }
.phone iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.phone .placeholder { text-align: center; padding: 1.5rem; color: #fff; display: grid; gap: 1rem; justify-items: center; }
.phone .placeholder img { width: 84px; height: 84px; border-radius: 20px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1.2rem; margin-bottom: 0.7rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details[open] summary { color: var(--accent); margin-bottom: 0.5rem; }
.pill-links { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pill-links a { padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--text); }
.pill-links a:hover { border-color: var(--accent); color: var(--accent); }
.board-art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.board-art img { width: 100%; }
.note { color: var(--muted); font-size: 0.95rem; }
.mail { font-size: clamp(1.2rem, 3.6vw, 1.9rem); font-weight: 800; word-break: break-all; }

/* ---------- texto legal ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: 0.45rem; margin: 0 0 1em; }
.crumbs { font-size: 0.95rem; margin-bottom: 1rem; }

/* ---------- pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0 2.6rem; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; justify-content: space-between; align-items: center; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; color: var(--text); font-weight: 800; }
.footer-brand img { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
