/* DS4Games — vidrio oscuro con brillos de color.
   Tipografía del sistema (San Francisco en Apple): cero descargas de fuentes. */
:root {
  --bg: #05060b;
  --bg-2: #0b0d16;
  --ink: #f5f7fb;
  --ink-2: rgba(245, 247, 251, .74);
  --ink-3: rgba(245, 247, 251, .52);
  --stroke: rgba(255, 255, 255, .14);
  --stroke-2: rgba(255, 255, 255, .24);
  --glass-top: rgba(255, 255, 255, .11);
  --glass-bot: rgba(255, 255, 255, .035);
  --c-orange: #ff6a3d;
  --c-pink: #ff2d87;
  --c-violet: #7b5cff;
  --c-cyan: #19c3e6;
  --c-yellow: #ffc93c;
  --c-green: #31d68b;
  --oly: #f2c14e;
  --eif: #e0a66a;
  --arg: #7db8ea;
  --accent: var(--c-violet);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}
body.g-olympikos { --accent: var(--oly); }
body.g-tour-eiffel { --accent: var(--eif); }
body.g-1812 { --accent: var(--arg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: #fff; color: #000; }
.skip:focus { top: 12px; }

/* Fondo: auroras de los colores del logo */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(120% 80% at 50% -10%, #12142a 0%, var(--bg) 60%); }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .42; will-change: transform; animation: drift 28s var(--ease) infinite alternate; }
.aurora i:nth-child(1) { background: radial-gradient(circle, var(--c-violet), transparent 65%); top: -25vmax; left: -15vmax; }
.aurora i:nth-child(2) { background: radial-gradient(circle, var(--c-pink), transparent 65%); top: -10vmax; right: -25vmax; animation-delay: -8s; opacity: .32; }
.aurora i:nth-child(3) { background: radial-gradient(circle, var(--accent), transparent 65%); bottom: -35vmax; left: 15vmax; animation-delay: -16s; opacity: .26; }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }

/* Vidrio */
.glass {
  position: relative; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bot));
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 30px 60px -30px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(22, 24, 36, .92); } }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: clamp(72px, 11vw, 140px); }
.section.tight { padding-block: clamp(48px, 7vw, 88px); }

/* Tipografía */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
.display { font-size: clamp(2.9rem, 8vw, 6.4rem); line-height: .98; letter-spacing: -.045em; }
.display.long { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.02; }
.h2 { font-size: clamp(2.1rem, 4.8vw, 3.8rem); line-height: 1.04; letter-spacing: -.038em; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -.022em; }
.grad { background: linear-gradient(180deg, #fff 35%, rgba(255, 255, 255, .6)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rainbow { background: linear-gradient(100deg, var(--c-orange), var(--c-pink) 30%, var(--c-violet) 55%, var(--c-cyan) 80%, var(--c-green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.32rem); line-height: 1.45; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
p { margin: 0; text-wrap: pretty; }
.muted { color: var(--ink-3); }
.stack { display: grid; gap: 18px; }
.center { text-align: center; justify-items: center; margin-inline: auto; }

/* Botones */
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .btns { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: #fff; color: #05060b; }
.btn-primary:hover { background: #eef1f7; }
.btn-glass { background: rgba(255, 255, 255, .08); border-color: var(--stroke-2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.link { color: var(--accent); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.arrow::after { content: "›"; font-size: 1.25em; line-height: 0; }

/* Navegación */
.nav { position: fixed; z-index: 50; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 12px); padding-left: var(--gutter); padding-right: var(--gutter-r); pointer-events: none; }
.nav-bar { pointer-events: auto; max-width: 1100px; margin: 0 auto; height: 58px; display: flex; align-items: center; gap: 16px; padding: 0 10px 0 16px; border-radius: 999px; transition: background .3s, box-shadow .3s; }
.nav.scrolled .nav-bar { background: linear-gradient(180deg, rgba(30, 32, 46, .72), rgba(18, 20, 30, .62)); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; flex: none; }
.brand img { width: 40px; height: auto; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; list-style: none; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .08); }
.nav-end { display: flex; align-items: center; gap: 8px; flex: none; }
.langs { display: flex; gap: 2px; font-size: 13px; font-weight: 600; }
.langs a { padding: 6px 9px; border-radius: 999px; color: var(--ink-3); }
.langs a[aria-current="true"] { color: var(--ink); background: rgba(255, 255, 255, .1); }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--stroke); background: rgba(255, 255, 255, .06); cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 1.5px; margin: 4px auto; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.nav.open .menu-btn span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav.open .menu-btn span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.sheet { pointer-events: auto; display: none; max-width: 1100px; margin: 10px auto 0; padding: 14px; border-radius: var(--r-lg); }
.sheet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sheet a { display: block; padding: 14px 16px; border-radius: 14px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.sheet a:hover { background: rgba(255, 255, 255, .08); }
.sheet .langs { padding: 10px 8px 4px; font-size: 15px; }
@media (max-width: 900px) {
  .nav-links, .nav-end .langs, .nav-end .btn { display: none; }
  .menu-btn { display: block; }
  .nav-end { margin-left: auto; }
  .nav.open .sheet { display: block; }
  .nav.open .nav-bar { background: linear-gradient(180deg, rgba(30, 32, 46, .8), rgba(18, 20, 30, .7)); }
}

/* Héroe de la portada */
.hero { padding-top: calc(env(safe-area-inset-top, 0px) + 150px); padding-bottom: 40px; text-align: center; }
.hero .lead { margin: 22px auto 0; }
.hero .btns { justify-content: center; margin-top: 34px; }
.stage { position: relative; margin: clamp(48px, 7vw, 80px) auto 0; max-width: 980px; height: clamp(300px, 46vw, 500px); }
.stage::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; height: 38%; border-radius: 50%; background: radial-gradient(closest-side, rgba(123, 92, 255, .45), rgba(255, 45, 135, .18) 60%, transparent); filter: blur(30px); }
.stage::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 6%; height: 22%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .01)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.stage a { position: absolute; bottom: 12%; z-index: 1; transition: transform .6s var(--ease); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.stage a:hover { transform: translateY(-10px) scale(1.02); }
.stage .s-oly { left: 50%; width: 34%; translate: -50% 0; z-index: 2; }
.stage .s-arg { left: 8%; width: 28%; bottom: 14%; }
.stage .s-eif { right: 9%; width: 22%; bottom: 13%; }
.float { animation: float 7s ease-in-out infinite; }
.stage .s-arg .float { animation-delay: -2.3s; }
.stage .s-eif .float { animation-delay: -4.6s; }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }
@media (max-width: 640px) {
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 120px); }
  .stage .s-oly { width: 44%; } .stage .s-arg { left: 2%; width: 34%; } .stage .s-eif { right: 3%; width: 27%; }
}

/* Bloque de juego en la portada */
.tiles { display: grid; gap: 22px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-xl); min-height: 560px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; isolation: isolate; border: 1px solid var(--stroke); }
.tile > .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.tile:hover > .bg { transform: scale(1.08); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 6, 11, .92) 0%, rgba(5, 6, 11, .7) 45%, rgba(5, 6, 11, .15) 100%); }
.tile .copy { padding: clamp(28px, 5vw, 64px); display: grid; gap: 18px; align-content: center; }
.tile .copy .lead { font-size: 1.12rem; }
.tile .box { justify-self: center; width: min(78%, 380px); filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .6)); }
.tile.t-tour-eiffel .box { width: min(62%, 280px); }
.tile .price { font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) {
  .tile { grid-template-columns: 1fr; min-height: 0; }
  .tile::before { background: linear-gradient(180deg, rgba(5, 6, 11, .9) 0%, rgba(5, 6, 11, .72) 55%, rgba(5, 6, 11, .35) 100%); }
  .tile .box { width: min(62%, 300px); margin-bottom: 36px; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--stroke); color: var(--ink); font-variant-numeric: tabular-nums; }

/* Grillas de tarjetas */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { padding: 28px; display: grid; gap: 12px; align-content: start; }
.card .num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #05060b; background: var(--accent); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 55%, transparent); }
.card p { color: var(--ink-2); }
.head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.head.center { text-align: center; justify-items: center; }

/* Familias */
.duo { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.duo .card { padding: clamp(28px, 4vw, 44px); gap: 16px; }
.dots { display: flex; gap: 8px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); }

/* Test de juego */
.quiz { padding: clamp(24px, 4vw, 48px); display: grid; gap: 28px; }
.quiz fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.quiz legend { font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opts label { cursor: pointer; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts span { display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--stroke-2); background: rgba(255, 255, 255, .05); font-weight: 500; transition: background .2s, border-color .2s, color .2s; }
.opts input:checked + span { background: #fff; color: #05060b; border-color: #fff; }
.opts input:focus-visible + span { outline: 2px solid var(--c-cyan); outline-offset: 3px; }
.result { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; padding: 20px; border-radius: var(--r-md); background: rgba(255, 255, 255, .06); border: 1px solid var(--stroke); min-height: 120px; }
.result img { width: 120px; }
.result[data-empty] { grid-template-columns: 1fr; color: var(--ink-3); text-align: center; }
@media (max-width: 520px) { .result { grid-template-columns: 84px 1fr; } .result img { width: 84px; } }

/* Historia */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.story figure { margin: 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--stroke); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* Página de juego */
.ghero { position: relative; isolation: isolate; min-height: min(100svh, 920px); display: grid; align-items: end; padding-top: 130px; padding-bottom: clamp(40px, 6vw, 80px); overflow: hidden; }
.ghero > .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ghero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 6, 11, .35) 0%, rgba(5, 6, 11, .55) 45%, var(--bg) 100%), linear-gradient(90deg, rgba(5, 6, 11, .75), transparent 70%); }
.ghero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.ghero .panel { padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; }
.ghero .sub { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--ink-2); font-weight: 500; letter-spacing: -.02em; margin-top: -6px; }
.ghero .boxart { justify-self: center; width: min(88%, 420px); filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .65)); }
.g-tour-eiffel .ghero .boxart { width: min(78%, 330px); }
@media (max-width: 900px) { .ghero-grid { grid-template-columns: 1fr; } .ghero .boxart { grid-row: 1; width: min(60%, 300px); } }

/* Compra */
.buy { display: grid; gap: 12px; padding-top: 6px; border-top: 1px solid var(--stroke); }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding-top: 12px; }
.buy-price { font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.buy-price small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.buy-note { font-size: 14px; color: var(--ink-3); }
.region { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.region select { appearance: none; -webkit-appearance: none; padding: 7px 30px 7px 12px; border-radius: 999px; border: 1px solid var(--stroke-2); background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--ink); font-size: 14px; cursor: pointer; }
.region select option { color: #000; }
.ar-only[hidden], .noar-only[hidden] { display: none !important; }

/* Perfil del juego */
.profile-grid { display: grid; gap: 22px; grid-template-columns: 1.35fr 1fr; align-items: stretch; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }
.bars { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; }
.bar { display: grid; grid-template-columns: minmax(120px, 160px) 1fr 44px; gap: 16px; align-items: center; }
.bar-label { font-weight: 600; font-size: 15px; }
.bar-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bar-track i { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.bar-track i.on { background: var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent); }
.js .reveal .bar-track i.on { transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); transition-delay: calc(var(--i) * 35ms); }
.js .reveal.in .bar-track i.on { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal .bar-track i.on { transform: none; transition: none; } }
.bar-val { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.bar-val small { color: var(--ink-3); font-weight: 500; }
@media (max-width: 520px) { .bar { grid-template-columns: 1fr auto; gap: 8px 12px; } .bar-track { grid-column: 1 / -1; grid-row: 2; } }
.facts-panel { display: grid; gap: 22px; align-content: start; }
.facts-panel .subhead { margin: 0 0 10px; font-size: 12px; }
.cx { display: flex; align-items: center; gap: 14px; }
.dots5 { display: inline-flex; gap: 6px; }
.dots5 i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.dots5 i.on { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.big { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.big .muted { font-size: 1rem; font-weight: 500; }
.compare { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.compare .card { transition: transform .3s var(--ease); }
.compare .card:hover { transform: translateY(-3px); }
.compare .bar { grid-template-columns: minmax(110px, 140px) 1fr 40px; gap: 12px; }

/* Reglas destacadas */
.rules2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.rules2 .card { border-color: color-mix(in srgb, var(--accent) 40%, var(--stroke)); }
.rules2 .card h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; vertical-align: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* Tabla de niveles */
.levels { overflow-x: auto; border-radius: var(--r-md); }
.levels table { width: 100%; min-width: 460px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.levels th, .levels td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--stroke); }
.levels th { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.levels tr:last-child td { border-bottom: 0; }

/* Galería */
.gallery { --edge: max(var(--gutter), calc((100vw - 1200px) / 2 + 20px)); display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: 6px var(--edge) 22px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.gallery figure { margin: 0; flex: 0 0 min(78vw, 520px); scroll-snap-align: start; position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--stroke); aspect-ratio: 16 / 10; background: var(--bg-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure.tall { flex-basis: min(52vw, 300px); aspect-ratio: 2 / 3; }
.gallery figcaption { position: absolute; left: 14px; bottom: 14px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(10, 12, 20, .55); border: 1px solid var(--stroke); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* Contenido y descargas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list li { padding: 13px 0; border-bottom: 1px solid var(--stroke); display: flex; gap: 12px; align-items: baseline; }
.list li:last-child { border-bottom: 0; }
.list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.panel-pad { padding: clamp(22px, 3.5vw, 36px); }
.dl { display: grid; gap: 10px; }
.dl a { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke); transition: background .2s, transform .2s var(--ease); }
.dl a:hover { background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.dl .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; background: rgba(255, 255, 255, .1); }
.dl .ico.pdf { color: #ff8a7a; } .dl .ico.vid { color: #8ad8ff; }
.dl small { display: block; color: var(--ink-3); font-size: 13px; }
.dl .lang { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--ink-2); }

/* Otros juegos */
.others { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.other { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center; padding: 20px; transition: transform .3s var(--ease); }
.other:hover { transform: translateY(-3px); }
.other img { width: 110px; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .5)); }

/* Nosotros */
.team { display: grid; gap: 0; }
.team li { display: grid; grid-template-columns: 1fr auto; gap: 16px; }
.team li span:last-child { color: var(--ink-3); text-align: right; }
.photos { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.photos figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--stroke); }
@media (max-width: 640px) { .photos { grid-template-columns: 1fr; } .team li { grid-template-columns: 1fr; gap: 2px; } .team li span:last-child { text-align: left; } }

/* Contacto */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--stroke-2); background: rgba(255, 255, 255, .05); color: var(--ink); font-size: 16px; }
.field select option { color: #000; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.two { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } }
.faq { display: grid; gap: 12px; }
.faq details { padding: 18px 22px; border-radius: var(--r-md); background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-size: 1.3em; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* Pie */
.foot { margin-top: clamp(40px, 6vw, 80px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); }
.foot-in { padding: clamp(24px, 4vw, 40px); display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
.foot h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot .fine { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--stroke); font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }

/* Aparición al hacer scroll (solo con JS) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

[data-tilt] { transform-style: preserve-3d; transition: transform .5s var(--ease); }

/* Cartas de Lector por fila (Secret Stories) */
.tabs { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.js .tabs { display: flex; }
.tabs [role="tab"] { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--stroke-2); background: rgba(255, 255, 255, .05); font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tabs [role="tab"]:hover { background: rgba(255, 255, 255, .1); }
.tabs [role="tab"][aria-selected="true"] { background: #fff; color: #05060b; border-color: #fff; }
.tabs i, .deck-title i, .drow legend i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--row); box-shadow: 0 0 12px var(--row); }
.deck { display: grid; gap: 18px; }
.deck + .deck { margin-top: 44px; }
.js .deck + .deck { margin-top: 0; }
.js .deck[data-off] { display: none; }
.deck-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 1.15rem; letter-spacing: -.02em; }
.deck-title .muted { font-weight: 500; }
.deck-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px 14px; grid-template-columns: repeat(5, 1fr); }
.deck-grid figure { margin: 0; display: grid; gap: 9px; }
.deck-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; border: 1px solid var(--stroke); box-shadow: 0 20px 34px -20px rgba(0, 0, 0, .9); transition: transform .35s var(--ease); }
.deck-grid.tall img { aspect-ratio: 2 / 3; }
.deck-grid li:hover img { transform: translateY(-4px); }
.deck-grid figcaption { font-size: 14px; line-height: 1.3; color: var(--ink-2); }
@media (max-width: 900px) { .deck-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .deck-grid { grid-template-columns: repeat(2, 1fr); } }

/* Cartas de Autor */
.gallery.dreams figure.tall { flex-basis: min(42vw, 220px); }

/* Ronda de prueba */
.demo { padding: clamp(18px, 3.2vw, 34px); display: grid; gap: 6px; }
.demo [hidden] { display: none !important; }
.drow { min-width: 0; margin: 0; padding: 0 0 22px; border: 0; border-bottom: 1px solid var(--stroke); display: grid; gap: 14px; }
.drow + .drow { padding-top: 18px; }
.drow legend { float: left; width: 100%; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 1.05rem; }
.drow legend + * { clear: both; }
.drow legend .muted { font-size: 14px; font-weight: 500; }
.drow-in { display: grid; grid-template-columns: 1fr 132px; gap: 18px; align-items: center; }
.dopts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.dopts label { position: relative; display: block; cursor: pointer; }
.dopts input { position: absolute; opacity: 0; pointer-events: none; }
.dopts .opt { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 2px solid transparent; transition: transform .2s var(--ease), border-color .2s, opacity .25s, box-shadow .2s; }
.dopts img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.dopts.tall img { aspect-ratio: 2 / 3; }
.dopts .opt b { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-variant-numeric: tabular-nums; background: rgba(5, 6, 11, .78); border: 1px solid var(--stroke-2); }
.dopts label:hover .opt { transform: translateY(-2px); }
.dopts:has(input:checked) .opt { opacity: .5; }
.dopts input:checked + .opt { opacity: 1; border-color: var(--row); box-shadow: 0 0 0 3px color-mix(in srgb, var(--row) 35%, transparent), 0 12px 26px -12px var(--row); }
.dopts input:checked + .opt b { background: var(--row); border-color: var(--row); color: #05060b; }
.dopts input:focus-visible + .opt { outline: 2px solid #fff; outline-offset: 3px; }
.demo.done .dopts label { cursor: default; }
.demo.done .dopts label:hover .opt { transform: none; }
.demo.done .dopts .opt { opacity: .3; }
.demo.done .dopts label.ok .opt { opacity: 1; border-color: var(--c-green); box-shadow: 0 0 0 3px rgba(49, 214, 139, .35); }
.demo.done .dopts label.no .opt { opacity: .75; border-color: #ff6a6a; }
.ddream { margin: 0; display: grid; gap: 6px; justify-items: center; }
.ddream img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--stroke-2); box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .9); }
.ddream figcaption { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.dwhy { font-size: 15px; color: var(--ink-2); padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--row) 12%, transparent); border: 1px solid color-mix(in srgb, var(--row) 35%, transparent); }
.dbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 18px; }
.dstatus { flex: 1 1 260px; display: grid; gap: 2px; }
.dlog { flex-basis: 100%; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dlog:empty { display: none; }
.dlog li { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke); font-size: 14px; font-weight: 600; }
.dlog img { width: 64px; height: auto; }
.dcode { display: inline-flex; gap: 4px; vertical-align: middle; }
.dcode b { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 14px; font-variant-numeric: tabular-nums; background: var(--row); color: #05060b; }
.dnote { font-size: 14px; padding-top: 6px; }
@media (max-width: 760px) {
  .drow-in { grid-template-columns: 1fr; gap: 14px; }
  .ddream { grid-row: 1; grid-template-columns: 96px 1fr; justify-items: start; align-items: center; gap: 14px; }
  .ddream figcaption { text-align: left; }
  .dopts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 901px) { .deck-grid.six { grid-template-columns: repeat(6, 1fr); } }

/* Aciertos dichos por el Autor (sin sobres) */
.dhits { display: inline-flex; gap: 5px; }
.dhits i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--stroke-2); }
.dhits i.on { background: var(--c-green); border-color: var(--c-green); box-shadow: 0 0 10px rgba(49, 214, 139, .5); }

/* Olympikos: ronda contra el reloj */
.race { padding: clamp(16px, 3vw, 30px); display: grid; gap: 24px; }
.race [hidden] { display: none !important; }
.onations { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.onations legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 600; }
.onations label { position: relative; cursor: pointer; }
.onations input { position: absolute; opacity: 0; pointer-events: none; }
.onat { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--stroke-2); background: rgba(255, 255, 255, .05); font-size: 14px; font-weight: 600; transition: background .2s, border-color .2s, opacity .2s; }
.onat img { width: 18px; height: auto; border-radius: 3px; }
.onations label:hover .onat { background: rgba(255, 255, 255, .1); }
.onations input:checked + .onat { background: #fff; color: #05060b; border-color: #fff; }
.onations input:focus-visible + .onat { outline: 2px solid var(--accent); outline-offset: 3px; }
.onations input:disabled + .onat { cursor: default; }
.onations input:disabled:not(:checked) + .onat { opacity: .4; }
.oround { display: grid; gap: 22px; }
.osports, .omedals { list-style: none; margin: 0; padding: 0; display: grid; }
.osports { grid-template-columns: repeat(5, 1fr); gap: 14px 12px; }
.osports li { display: grid; gap: 8px; justify-items: center; text-align: center; align-content: start; }
.oring, .obtn { border-radius: 50%; border: 5px solid var(--ring); background: #f6f6f4; color: #1a1919; font-weight: 800; font-variant-numeric: tabular-nums; display: grid; place-items: center; }
.oring { width: 36px; height: 36px; font-size: 13px; }
.osports img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--stroke); transition: box-shadow .3s, opacity .3s; }
.oname { font-size: 13px; line-height: 1.25; color: var(--ink-2); }
.done .osports li:not(.ok) img { opacity: .45; }
.osports li.ok img { box-shadow: 0 0 0 3px var(--ring), 0 14px 30px -14px var(--ring); }
.omedals { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.omedal { display: grid; gap: 12px; align-content: start; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--stroke); background: rgba(255, 255, 255, .03); }
.ohead { display: flex; align-items: center; gap: 10px; }
.ohead img { width: 52px; height: auto; flex: none; }
.ohead p { margin: 0; display: grid; line-height: 1.25; }
.ohead .muted { font-size: 13px; }
.oclue { margin: 0; display: grid; gap: 6px; }
.oclue figcaption { font-size: 12px; text-align: center; color: var(--ink-3); }
.ocard { position: relative; width: 100%; max-width: 168px; margin-inline: auto; aspect-ratio: 1; }
.ocard img { position: absolute; left: 50%; top: 50%; width: 71.6%; height: auto; border-radius: 9px; box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .9); transform: translate(-50%, -50%); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.oclue.side .ocard img { transform: translate(-50%, -50%) rotate(90deg); }
.ocard .ofront { opacity: 0; transform: translate(-50%, -50%) scale(.92); }
.oclue.side .ocard .ofront { transform: translate(-50%, -50%) rotate(90deg) scale(.92); }
.live .ocard .ofront, .done .ocard .ofront { opacity: 1; transform: translate(-50%, -50%); }
.live .oclue.side .ocard .ofront, .done .oclue.side .ocard .ofront { transform: translate(-50%, -50%) rotate(90deg); }
.live .ocard .oback, .done .ocard .oback { opacity: 0; }
.obtns { display: flex; justify-content: center; gap: 6px; }
.obtn { width: 40px; height: 40px; padding: 0; font-size: 14px; cursor: pointer; transition: transform .15s var(--ease), opacity .2s, box-shadow .2s; }
.obtn:hover:not(:disabled) { transform: scale(1.08); }
.obtn:disabled { cursor: default; opacity: .4; }
.obtn.on { opacity: 1; background: var(--ring); color: #fff; }
.obtn.ok { opacity: 1; box-shadow: 0 0 0 3px var(--c-green); }
.obtn.no { box-shadow: 0 0 0 3px #ff6a6a; }
.ostack { list-style: none; margin: 0; padding: 0; min-height: 44px; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 6px; }
.ostack li { display: grid; justify-items: center; gap: 3px; animation: odrop .3s var(--ease); }
.ostack img { width: 22px; height: auto; border-radius: 3px; border: 1px solid var(--stroke-2); }
.ostack li.me img { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.ostack i { display: none; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--ring); background: #f6f6f4; color: #1a1919; font-size: 9px; font-style: normal; font-weight: 800; place-items: center; }
.ostack li.me i, .done .ostack i { display: grid; }
.done .ostack li.no { opacity: .45; }
.done .ostack li.first img { box-shadow: 0 0 0 2px var(--c-green); }
.ores { margin: 0; min-height: 1.4em; font-size: 14px; font-weight: 700; text-align: center; }
.ores.win { color: var(--c-green); }
.ores.ok { color: var(--c-yellow); }
.ores.no { color: var(--ink-2); font-weight: 600; }
@keyframes odrop { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .ocard img, .ostack li { transition: none; animation: none; } }
@media (max-width: 760px) {
  .osports { grid-template-columns: repeat(3, 1fr); }
  .omedals { grid-template-columns: 1fr; }
  .omedal { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "clue head" "clue stack" "btns btns" "res res"; gap: 10px 12px; padding: 12px; }
  .ohead { grid-area: head; } .oclue { grid-area: clue; align-self: start; }
  .obtns { grid-area: btns; justify-content: space-between; gap: 4px; }
  .ostack { grid-area: stack; justify-content: flex-start; align-content: flex-start; min-height: 0; } .ores { grid-area: res; text-align: left; }
  .ohead img { width: 40px; }
  .obtn { width: 44px; height: 44px; }
}
