/* Carcasa común de impredecible.com: barra fija, ruleta de entrada,
   versión en texto (SEO/GEO/accesibilidad) y estilos de foco. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { font-family: "Inter Tight", system-ui, sans-serif; background: #0d0d0d; color: #f3f1ea; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Foco siempre visible para quien navega con teclado */
:focus-visible { outline: 3px solid #d4ff3a; outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: #d4ff3a; color: #0d0d0d; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.shell { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px clamp(16px, 3vw, 32px); mix-blend-mode: difference; color: #fff; pointer-events: none; }
.shell > * { pointer-events: auto; }
.shell .logo { font-weight: 900; font-size: 20px; letter-spacing: -0.04em; text-decoration: none; color: #fff; }
.shell .logo span { font-size: 10px; font-weight: 500; letter-spacing: .05em; margin-left: 4px; text-transform: uppercase; vertical-align: super; }
.shell nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.shell nav button { background: none; border: 1.5px solid #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; min-height: 32px; }
.shell nav button:hover, .shell nav button[aria-pressed="true"] { background: #fff; color: #000; }
.shell nav .spin { background: #fff; color: #000; font-weight: 700; }
@media (max-width: 720px) { .shell nav .opt { display: none; } }

#stage { position: relative; min-height: 100vh; }

#roulette { position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center; transition: opacity .5s, visibility .5s; }
#roulette.gone { opacity: 0; visibility: hidden; }
#roulette .box { text-align: center; }
#roulette p { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-bottom: 18px; }
#roulette .reel { height: 1.1em; overflow: hidden; font-size: clamp(40px, 10vw, 120px); font-weight: 900; letter-spacing: -0.05em; }
#roulette .reel div { transition: transform 1.6s cubic-bezier(.15,.85,.2,1); }
#roulette .reel span { display: block; height: 1.1em; line-height: 1.1em; }
#roulette .reel span:nth-child(4n+1) { color: #d4ff3a; } #roulette .reel span:nth-child(4n+2) { color: #ff4f1a; }
#roulette .reel span:nth-child(4n+3) { color: #a99bff; } #roulette .reel span:nth-child(4n) { color: #fff; }
#roulette small { display: block; margin-top: 18px; font-size: 15px; opacity: .8; min-height: 1.4em; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Versión texto ----------
   Sin JavaScript (buscadores, motores de IA, lectores) se ve tal cual.
   Con JavaScript queda oculta visualmente hasta que se pulsa «Texto». */
#texto { max-width: 820px; margin: 0 auto; padding: 110px 20px 80px; line-height: 1.6; font-size: 18px; }
#texto h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1; letter-spacing: -0.04em; font-weight: 900; margin-bottom: 20px; }
#texto h2 { font-size: 30px; letter-spacing: -0.03em; font-weight: 900; margin: 56px 0 14px; }
#texto h3 { font-size: 21px; font-weight: 800; margin: 26px 0 6px; }
#texto p, #texto li { color: #d9d6cd; }
#texto ul { padding-left: 1.2em; }
#texto a { color: #d4ff3a; }
#texto dt { font-weight: 800; margin-top: 18px; color: #f3f1ea; }
#texto dd { color: #d9d6cd; }
#texto footer { margin-top: 64px; padding-top: 20px; border-top: 1px solid #333; font-size: 14px; color: #a8a59c; }
.js #texto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.js body.modo-texto #texto { position: static !important; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; }
.js body.modo-texto #stage, .js body.modo-texto #roulette { display: none; }
.js body.modo-texto .shell { mix-blend-mode: normal; background: #0d0d0d; }

@media (prefers-reduced-motion: reduce) { #roulette .reel div { transition: none; } .skip { transition: none; } }
