/* Swinger Party — página «Cómo se juega» (estática, sin JavaScript). Mismos colores y tipografía que el juego.
 * Compatibilidad con Chromium ~60: sin min()/max()/clamp(), sin gap en flexbox (márgenes), sin aspect-ratio ni inset. Sin scroll horizontal. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #0e0a1c; }
body {
  margin: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; font-size: 18px; line-height: 1.55; color: #f3eefc;
  background-color: #0e0a1c;
  background-image: radial-gradient(ellipse at 20% 10%, rgba(168, 85, 247, 0.18) 0%, transparent 45%), radial-gradient(ellipse at 80% 90%, rgba(255, 107, 107, 0.15) 0%, transparent 40%);
  background-repeat: no-repeat; background-attachment: fixed; overflow-x: hidden;
}
a { color: #f0abfc; }
.g-head { max-width: 980px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; }
.g-brand { display: flex; align-items: center; text-decoration: none; color: #f0abfc; font-weight: 900; font-size: 1.35rem; letter-spacing: 0.03em; min-height: 44px; }
.g-brand img { display: block; height: 56px; width: auto; margin-right: 12px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5)); }
.g-main { max-width: 980px; margin: 0 auto; padding: 0 16px 24px; }
.g-warn { margin: 6px 0 18px; padding: 12px 16px; border-radius: 14px; background: rgba(250, 204, 21, 0.12); border: 2px solid #facc15; color: #fef9c3; font-size: 1.05rem; }
h1 { margin: 0 0 12px; font-size: 2.1rem; line-height: 1.15; font-weight: 900; letter-spacing: 0.02em; color: #f0abfc; }
h2 { margin: 28px 0 12px; font-size: 1.6rem; line-height: 1.2; color: #e9d5ff; }
h3 { margin: 0 0 6px; font-size: 1.15rem; color: #f0abfc; }
p { margin: 0 0 12px; }
.g-lead { font-size: 1.25rem; }
.g-note { color: #ddd6fe; }
.g-row { display: flex; align-items: center; margin: 22px 0; }
.g-row .g-text { flex: 1; min-width: 0; }
.g-row .g-pic { flex: none; margin: 0 24px; }
.g-flip { flex-direction: row; }
.g-pic img { display: block; height: auto; max-width: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55)); }
.g-hero .g-pic img { width: 200px; }
#pasos .g-pic img { width: 210px; }
#modos .g-pic img { width: 180px; }
#tele .g-pic img { width: 130px; }
.g-btn { display: inline-block; min-height: 48px; padding: 12px 28px; margin: 6px 0; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 1.15rem; color: #fff; background: linear-gradient(135deg, #ff6b9d 0%, #ee5a24 100%); box-shadow: 0 6px 18px rgba(255, 107, 107, 0.35); }
.g-btn:focus, .g-btn:hover { outline: 3px solid #facc15; filter: brightness(1.07); }
.g-btn-small { padding: 8px 18px; font-size: 1rem; margin: 0; }
.g-btn-big { padding: 16px 40px; font-size: 1.4rem; }
.g-steps { list-style: none; margin: 0 0 12px; padding: 0; }
.g-steps li { display: flex; align-items: center; margin: 8px 0; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); }
.g-ico { flex: none; width: 2.4rem; font-size: 1.7rem; text-align: center; margin-right: 12px; }
.g-cards { display: flex; flex-wrap: wrap; margin: 0 -6px; }
.g-card { flex: 1 1 280px; margin: 6px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(192, 132, 252, 0.35); }
.g-cards-2 .g-card { flex-basis: 300px; }
.g-chips { list-style: none; margin: 0; padding: 0; }
.g-chips li { margin: 8px 0; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); border-left: 5px solid #c084fc; }
.g-faq { margin: 8px 0; border-radius: 14px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); }
.g-faq summary { cursor: pointer; padding: 12px 16px; min-height: 48px; font-weight: 800; font-size: 1.1rem; }
.g-faq summary:focus { outline: 3px solid #facc15; }
.g-faq p { margin: 0; padding: 0 16px 14px; }
.g-pending { color: #fde68a; }
.g-end { text-align: center; margin-top: 30px; padding: 20px 10px; border-radius: 18px; background: rgba(168, 85, 247, 0.14); }
.g-foot { max-width: 980px; margin: 0 auto; padding: 14px 16px 30px; text-align: center; color: #c4b5fd; font-size: 0.95rem; }

@media (max-width: 700px) {
  body { font-size: 17px; }
  h1 { font-size: 1.7rem; }
  .g-brand { font-size: 1.15rem; }
  .g-brand img { height: 48px; }
  .g-row { flex-direction: column; }
  .g-row .g-pic { margin: 8px 0 0; order: 2; }
  .g-flip .g-pic { order: 0; margin: 0 0 8px; }
  .g-flip .g-text { order: 1; }
  .g-hero .g-pic img, #pasos .g-pic img, #modos .g-pic img, #tele .g-pic img { width: 150px; }
  #tele .g-pic img { width: 110px; }
}
/* Tele y pantallas grandes: texto grande y buen contraste para leer a 3 metros */
@media (min-width: 1200px) {
  body { font-size: 22px; }
  .g-head, .g-main, .g-foot { max-width: 1240px; }
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2rem; }
  .g-hero .g-pic img { width: 260px; }
  #pasos .g-pic img { width: 270px; }
  #modos .g-pic img { width: 230px; }
  #tele .g-pic img { width: 170px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- /instalar/ ---- */
.g-where li a { display: block; min-height: 44px; padding: 4px 0; font-weight: 800; text-decoration: none; }
.g-os { margin: 26px 0; padding: 4px 16px 14px; border-radius: 16px; border: 2px solid transparent; }
.g-os.g-pick { border-color: #c084fc; background: rgba(192, 132, 252, 0.08); }
.g-steps-big li { padding: 14px 16px; }
.g-num { flex: none; width: 2.6rem; height: 2.6rem; margin-right: 14px; border-radius: 50%; background: linear-gradient(135deg, #ff6b9d, #ee5a24); color: #fff; font-weight: 900; font-size: 1.6rem; line-height: 2.6rem; text-align: center; }
.g-tv .g-steps-big li { font-size: 1.25rem; }
.g-tv .g-num { width: 3.4rem; height: 3.4rem; line-height: 3.4rem; font-size: 2.2rem; }
.g-addr { display: inline-block; padding: 2px 10px; border-radius: 10px; background: rgba(250, 204, 21, 0.15); color: #fef9c3; word-break: break-all; }
.g-hash { display: block; word-break: break-all; font-size: 0.85rem; color: #ddd6fe; }
.g-facts li { word-break: break-word; }
.g-qr { display: flex; align-items: center; }
.g-qrbox { flex: none; width: 190px; height: 190px; margin-right: 16px; padding: 8px; border-radius: 12px; background: #fff; }
.g-qrbox svg { display: block; width: 100%; height: 100%; }
@media (max-width: 700px) { .g-qr { flex-direction: column; text-align: center; } .g-qrbox { margin: 0 0 10px; } }

/* Código de Downloader: legible a 3 metros */
.g-code-step { font-size: 30px; line-height: 1.35; margin: 16px 0 8px; font-weight: 700; }
.g-code { display: inline-block; padding: 2px 16px; border-radius: 12px; background: rgba(250, 204, 21, 0.2); color: #fef08a; font-size: 1.5em; letter-spacing: 0.08em; }
.g-code-alt { font-size: 20px; margin: 4px 0 16px; }

/* ---- Fase 18, D5: misma identidad que el juego (colores y tipografías de css/tokens.css; cada valor con reserva) ---- */
body { font-family: var(--sp-font-body, 'DM Sans', 'Segoe UI', system-ui, sans-serif); background: radial-gradient(ellipse at 50% 0%, #3A1260 0%, rgba(58, 18, 96, 0) 70%) no-repeat, #0F0A1C; background: radial-gradient(ellipse at 50% 0%, var(--sp-bg-glow, #3A1260) 0%, rgba(58, 18, 96, 0) 70%) no-repeat, var(--sp-bg, #0F0A1C); color: #F6F1FA; color: var(--sp-text, #F6F1FA); }
h1, h2, h3 { font-family: var(--sp-font-title, 'Bricolage Grotesque', system-ui, sans-serif); }
.g-brand span { font-family: var(--sp-font-logo, 'Pacifico', cursive); font-weight: 400; font-size: 1.5rem; color: #fff; text-shadow: 0 0 4px #ff3d8b, 0 0 12px rgba(255, 61, 139, 0.7); }
.g-btn, a.g-btn { background: linear-gradient(135deg, #FF3D8B 0%, #FF7A45 100%); background: var(--sp-btn-grad, linear-gradient(135deg, #FF3D8B 0%, #FF7A45 100%)); color: #fff; font-family: var(--sp-font-title, 'Bricolage Grotesque', system-ui, sans-serif); font-weight: 800; }
.g-btn:focus, .g-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.g-end { text-align: center; }

/* ---- Fase 22: menú de la web, packs de pegatinas, QR grande, ventana de contacto ---- */
.g-head { flex-wrap: wrap; }
.g-nav { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; margin: 6px 0 0; }
.g-nav a, .g-navbtn { display: inline-block; min-height: 44px; margin: 0 8px 4px 0; padding: 0 14px; line-height: 40px; border: 2px solid #8b5cff; border-radius: 22px; background: rgba(139, 92, 255, 0.12); color: #e3d9ff; font: 700 1rem/40px 'DM Sans', system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.g-nav a:focus, .g-navbtn:focus, .g-nav a:hover, .g-navbtn:hover { outline: 3px solid #fff; outline-offset: 2px; background: rgba(139, 92, 255, 0.3); }
.g-linkbtn { display: inline; margin: 0; padding: 0; border: 0; background: none; color: #f0abfc; font: inherit; text-decoration: underline; cursor: pointer; }
.g-linkbtn:focus { outline: 3px solid #fff; outline-offset: 3px; }
.g-pack { margin: 22px 0; padding: 4px 18px 14px; border-radius: 18px; border: 2px solid #8b5cff; background: rgba(139, 92, 255, 0.08); }
.g-pack-adult { border-color: #ff3d8b; background: rgba(255, 61, 139, 0.07); }
.g-tag { display: inline-block; margin-left: 8px; padding: 2px 12px; border: 2px solid #3de0c8; border-radius: 14px; color: #3de0c8; font: 800 0.9rem 'DM Sans', system-ui, sans-serif; vertical-align: middle; }
.g-tag-adult { border-color: #ff3d8b; color: #ff9ac3; }
.g-thumbs { display: flex; flex-wrap: wrap; list-style: none; margin: 8px 0; padding: 0; }
.g-thumbs li { margin: 0 8px 8px 0; }
.g-thumbs img { display: block; width: 96px; height: 96px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.g-actions .g-btn { margin: 6px 10px 6px 0; }
.g-btn.g-soon { background: none; border: 2px dashed #8b5cff; color: #cdbfe6; }
.g-btn2 { min-height: 44px; margin: 0 8px 6px 0; padding: 0 18px; border: 2px solid #8b5cff; border-radius: 22px; background: rgba(139, 92, 255, 0.12); color: #e3d9ff; font: 700 1rem 'DM Sans', system-ui, sans-serif; cursor: pointer; }
.g-btn2:focus { outline: 3px solid #fff; outline-offset: 2px; }
.g-credits li { font-size: 1.15rem; }
.g-qrbig { margin: 8px 0; }
.g-qrbox-big { display: inline-block; width: 300px; height: 300px; margin: 0; }
.g-qrfull { position: fixed; z-index: 900; left: 0; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #0f0a1c; text-align: center; padding: 12px; }
.g-qrfull-box { width: 70vh; height: 70vh; max-width: 90vw; max-height: 90vw; padding: 14px; background: #fff; border-radius: 16px; box-sizing: border-box; }
.g-qrfull-box svg { display: block; width: 100%; height: 100%; }
.g-qrfull p { margin: 14px 0 8px; font-size: 1.3rem; }
.modal-overlay.contacto-panel { position: fixed; z-index: 950; left: 0; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; background: rgba(8, 4, 18, 0.88); padding: 12px; }
.contacto-panel .ct-box { max-width: 420px; width: 100%; padding: 18px; border: 2px solid #8b5cff; border-radius: 20px; background: #1a1030; text-align: center; box-sizing: border-box; }
.contacto-panel .ct-box h3 { margin: 0 0 8px; }
.contacto-panel .ct-addr { margin: 4px 0 10px; color: #ffe9a8; font-weight: 800; font-size: 1.15rem; word-break: break-all; }
.contacto-panel .ct-qr { display: block; width: 170px; height: 170px; margin: 6px auto 10px; padding: 8px; background: #fff; border-radius: 10px; box-sizing: border-box; image-rendering: pixelated; }
.contacto-panel .ct-row { display: flex; flex-wrap: wrap; justify-content: center; }
.contacto-panel .ct-row button, .contacto-panel .ct-btn { margin: 4px; min-height: 46px; padding: 0 20px; border-radius: 23px; font: 800 1rem 'DM Sans', system-ui, sans-serif; cursor: pointer; }
.contacto-panel .ct-row button { border: 2px solid #8b5cff; background: rgba(139, 92, 255, 0.12); color: #e3d9ff; }
.contacto-panel .ct-btn { display: inline-block; line-height: 46px; background: linear-gradient(135deg, #FF3D8B, #FF7A45); color: #fff; text-decoration: none; }
.contacto-panel .ct-row button:focus, .contacto-panel .ct-btn:focus { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 700px) { .g-qrbox-big { width: 240px; height: 240px; } .g-nav a, .g-navbtn { padding: 0 10px; margin-right: 6px; } }
@media (min-width: 1200px) { .g-qrbox-big { width: 360px; height: 360px; } }

/* ---- Fase 23: «« Volver» y migas de pan en todas las páginas internas ---- */
.g-top { display: flex; flex-wrap: wrap; align-items: center; margin: 6px 0 14px; }
.g-back { display: inline-block; min-height: 44px; margin: 0 14px 4px 0; padding: 0 18px; line-height: 40px; border: 2px solid #8b5cff; border-radius: 22px; background: rgba(139, 92, 255, 0.18); color: #fff; font: 800 1rem/40px 'DM Sans', system-ui, sans-serif; text-decoration: none; }
.g-back:focus, .g-back:hover { outline: 3px solid #fff; outline-offset: 2px; }
.g-crumbs { color: #cdbfe6; font-size: 0.95rem; }
.g-crumbs a { color: #e3d9ff; }
.g-crumbs b { color: #fff; }

/* ---- /como-se-juega/: una sección por juego, con Piñita animada solo con CSS (sin JavaScript) ---- */
.g-jump { list-style: none; display: flex; flex-wrap: wrap; margin: 8px 0; padding: 0; }
.g-jump li { margin: 0 8px 8px 0; }
.g-juego { padding: 14px 16px; border-radius: 18px; background: rgba(139, 92, 255, 0.08); border: 1px solid rgba(192, 132, 252, 0.3); }
.g-juego h3 { margin: 14px 0 6px; font-size: 1.15rem; color: #e3d9ff; }
.pa.g-anim { flex: none; display: block; position: relative; width: 150px; height: 257px; margin: 0 24px; overflow: hidden; }
.g-anim .pa-fr { filter: drop-shadow(0 0 10px rgba(255, 61, 139, 0.45)); }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 16px; }
@media (max-width: 700px) { .pa.g-anim { width: 120px; height: 206px; margin: 8px auto 0; } .g-flip .pa.g-anim { margin: 0 auto 8px; } }
@media (min-width: 1200px) { .pa.g-anim { width: 190px; height: 326px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
