/* Estilos comunes de aprendeamanejarjugando.com — mismo lenguaje visual que los juegos. */
:root { --o: #f28c1b; --y: #ffd600; --g: #7ee07e; --r: #ff4d4d; --ink: #0b0d10; --panel: rgba(8,10,14,.88); --band: rgba(8,10,14,.93); --dirt: #6b4f33; color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #0b0d10; color: #fff; font-family: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 2px; }
#bg { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: -2; }
.veil { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(100deg, rgba(10,8,20,.94) 0%, rgba(10,8,20,.66) 48%, rgba(255,110,40,.12) 100%); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; z-index: 50; background: #fff; color: #000; padding: 6px 10px; }

/* ---- Barra superior ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(16px, 5vw, 64px); position: relative; z-index: 3; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 20px Anton, Impact, sans-serif; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; line-height: 1; }
.brand img { width: 30px; height: 30px; }
.brand em { color: var(--o); font-style: italic; }
.top nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.chipbtn { background: rgba(0,0,0,.55); border: 0; border-left: 4px solid var(--o); padding: 7px 14px 7px 12px; font: 16px Anton, Impact, sans-serif; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; color: #fff; transition: .15s; white-space: nowrap; }
.chipbtn:hover, .chipbtn:focus-visible { background: #fff; color: #000; outline: none; }
.chipbtn.off { border-left-color: #666; color: rgba(255,255,255,.7); }

/* ---- Logo y menú (igual que en los juegos) ---- */
.logo { transform: rotate(-4deg); transform-origin: left; margin: 0 0 8px; }
.logo span { display: block; font-family: Anton, Impact, sans-serif; font-weight: 400; line-height: .92; -webkit-text-stroke: 4px #000; paint-order: stroke; }
.logo .l1 { font-size: clamp(42px, 7vw, 88px); color: #fff; }
.logo .l2 { font-size: clamp(60px, 11vw, 136px); color: var(--o); font-style: italic; text-shadow: 6px 6px 0 #000; }
.tag { font-size: clamp(17px, 2vw, 24px); font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--y); margin: 8px 0 18px; }
.lead { font-size: clamp(19px, 2vw, 22px); font-weight: 600; max-width: 36ch; line-height: 1.25; margin: 0 0 22px; opacity: .92; text-shadow: 0 2px 3px #000; }
.mbtns { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mbtns a, .mbtns button { display: block; background: rgba(0,0,0,.55); border: 0; border-left: 5px solid var(--o); padding: 9px 22px 9px 16px; font: 26px Anton, Impact, sans-serif; letter-spacing: 1px; text-transform: uppercase; min-width: 320px; text-align: left; transition: .15s; text-decoration: none; color: #fff; }
.mbtns a:hover, .mbtns a:focus-visible, .mbtns button:hover, .mbtns button:focus-visible { background: #fff; color: #000; outline: none; padding-left: 24px; }
.mbtns small { font: 700 15px 'Barlow Condensed', sans-serif; letter-spacing: 2px; color: var(--y); margin-left: 8px; vertical-align: 3px; }
.mbtns a:hover small, .mbtns a:focus-visible small { color: #a35400; }
.note { margin-top: 18px; font-size: 15px; opacity: .65; max-width: 560px; line-height: 1.3; }

/* ---- Bandas de contenido ---- */
.band { background: var(--band); padding: clamp(40px, 6vw, 72px) clamp(16px, 5vw, 64px); }
.wrap { max-width: 1180px; margin: 0 auto; }
.h { font: clamp(40px, 7vw, 64px) Anton, Impact, sans-serif; font-weight: 400; font-style: italic; margin: 0 0 8px; -webkit-text-stroke: 2px #000; paint-order: stroke; line-height: 1; }
.h .o { color: var(--o); }
.sub { font-size: 20px; font-weight: 600; opacity: .8; margin: 0 0 26px; max-width: 60ch; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.steps li { background: rgba(255,255,255,.05); border-left: 5px solid var(--o); padding: 16px 18px 18px; }
.steps em { display: block; font: 54px Anton, Impact, sans-serif; color: var(--o); font-style: italic; line-height: 1; -webkit-text-stroke: 2px #000; paint-order: stroke; }
.steps b { display: block; font: 26px Anton, Impact, sans-serif; font-weight: 400; letter-spacing: .5px; text-transform: uppercase; margin: 6px 0 4px; }
.steps p { margin: 0; font-size: 19px; line-height: 1.25; opacity: .88; }
.foot { background: #07080a; padding: 28px clamp(16px, 5vw, 64px) 36px; font-size: 16px; line-height: 1.35; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; align-items: flex-end; }
.foot p { margin: 0; opacity: .65; max-width: 70ch; }
.foot .brand { font-size: 18px; }

/* ---- Tarjetas de juego (páginas de país) ---- */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.game { display: flex; flex-direction: column; background: var(--panel); border-top: 6px solid var(--o); box-shadow: 0 20px 60px rgba(0,0,0,.55); text-decoration: none; color: #fff; transition: transform .15s; }
.game:hover, .game:focus-visible { transform: translateY(-4px); outline: none; }
.shot { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.game:hover .shot img { transform: scale(1.04); }
.shot .lvl { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.75); border-left: 4px solid var(--o); padding: 3px 10px; font: 15px Anton, Impact, sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.gbody { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kind { font-size: 15px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--y); }
.game h3 { font: clamp(34px, 4vw, 42px) Anton, Impact, sans-serif; font-weight: 400; font-style: italic; margin: 0; line-height: 1; -webkit-text-stroke: 1.5px #000; paint-order: stroke; }
.game p { margin: 0; font-size: 19px; line-height: 1.25; opacity: .88; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: rgba(255,255,255,.08); padding: 3px 9px; font-size: 15px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.prog { font-size: 17px; font-weight: 600; min-height: 22px; }
.prog b { color: var(--g); }
.bar { height: 6px; background: rgba(255,255,255,.12); margin-top: 4px; } .bar i { display: block; height: 100%; background: var(--g); }
.play { margin-top: auto; align-self: flex-start; background: var(--o); color: #000; padding: 9px 24px; font: 22px Anton, Impact, sans-serif; letter-spacing: 1px; text-transform: uppercase; transition: .15s; }
.game:hover .play, .game:focus-visible .play { background: #fff; }
.game.soon { border-top-color: #444; }
.game.soon:hover { transform: none; }
.works { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(-45deg, #ffd600 0 22px, #111 22px 44px); }
.works span { background: #111; padding: 6px 16px; font: 26px Anton, Impact, sans-serif; letter-spacing: 2px; border: 3px solid #ffd600; }

@media (max-width: 640px) {
  .mbtns, .mbtns a, .mbtns button { width: 100%; min-width: 0; }
  .mbtns a, .mbtns button { font-size: 22px; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
.foot .flinks { opacity: 1; font-size: 17px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.foot .flinks a { color: var(--y); text-decoration: none; } .foot .flinks a:hover { color: #fff; text-decoration: underline; }
.play.wait { background: #3a3a3a; color: rgba(255,255,255,.75); }
