/* Arena Enfermería — LP con estilo de juego. Colores de mobile/src/theme/tokens.js (game),
   ligas de constants/leagues.js. Letra de juego (.st): blanca con contorno grueso y sombra
   sólida, como StrokeText / ButtonLabel de la app. */
@font-face { font-family: 'Lilita One'; src: url('/fonts/lilita-one.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --ink: #1B2350;
  --ink2: #2A3470;
  --muted: #56628A;
  --sky: #EAF1FF;
  --sky2: #D9E6FF;
  --sky3: #C3D6FB;
  --edge: #D3DDF1;
  --line: #E5EBF8;
  --blue: #3D8BFF;
  --blue-dark: #2366D1;
  --gold: #FFC531;
  --gold-light: #FFE07A;
  --gold-dark: #D99A00;
  --gold-ink: #4A3000;
  --ok: #1FC27A;
  --ok-dark: #129659;
  --bad: #FF4B6E;
  --bad-dark: #D62E52;
  --violet: #8B6CF6;
  --violet-dark: #6447D4;
  --a0: #FF5A6E;
  --a1: #3D8BFF;
  --a2: #FFAA1A;
  --a3: #1FC27A;
  --display: 'Lilita One', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
/* Lilita One no tiene las letras del vietnamita: como en la app, Nunito Black. */
html[lang="vi"] { --display: 'Nunito', system-ui, sans-serif; }
html[lang="vi"] h1, html[lang="vi"] h2, html[lang="vi"] h3, html[lang="vi"] .st,
html[lang="vi"] .btn, html[lang="vi"] .brand-name { font-weight: 900; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--body); font-weight: 700; font-size: 17px; line-height: 1.55; color: var(--ink); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .45em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; position: relative; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 60; }
.skip:focus { left: 8px; }

/* Letra de juego con contorno. --sc cambia el color del contorno. */
.st {
  --sc: var(--ink);
  color: #fff;
  text-shadow:
    .07em 0 0 var(--sc), -.07em 0 0 var(--sc), 0 .07em 0 var(--sc), 0 -.07em 0 var(--sc),
    .05em .05em 0 var(--sc), -.05em .05em 0 var(--sc), .05em -.05em 0 var(--sc), -.05em -.05em 0 var(--sc),
    .065em .027em 0 var(--sc), -.065em .027em 0 var(--sc), .065em -.027em 0 var(--sc), -.065em -.027em 0 var(--sc),
    .027em .065em 0 var(--sc), -.027em .065em 0 var(--sc), .027em -.065em 0 var(--sc), -.027em -.065em 0 var(--sc),
    0 .15em 0 var(--sc), .05em .14em 0 var(--sc), -.05em .14em 0 var(--sc);
}
.st-gold { color: var(--gold); }

/* --- Botones 3D (cara + canto) -------------------------------------------- */
.btn {
  --b: var(--blue); --bd: var(--blue-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-size: 1.2rem; line-height: 1; color: #fff; text-decoration: none; cursor: pointer;
  padding: 14px 26px 15px; border: 0; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,0) 55%), var(--b);
  box-shadow: 0 6px 0 var(--bd), 0 10px 18px rgba(27,35,80,.25), inset 0 -3px 0 rgba(0,0,0,.08);
  transition: transform .1s ease, box-shadow .1s ease, filter .15s ease;
  text-shadow: 0 2px 0 var(--bd), 2px 0 0 var(--bd), -2px 0 0 var(--bd), 0 -2px 0 var(--bd), 1.5px 1.5px 0 var(--bd), -1.5px 1.5px 0 var(--bd), 1.5px -1.5px 0 var(--bd), -1.5px -1.5px 0 var(--bd), 0 4px 0 var(--bd);
}
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 8px 0 var(--bd), 0 14px 22px rgba(27,35,80,.25), inset 0 -3px 0 rgba(0,0,0,.08); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--bd), 0 4px 8px rgba(27,35,80,.2); }
.btn-gold { --b: var(--gold); --bd: #C98700; color: var(--gold-ink); text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.btn-blue { --b: var(--blue); --bd: var(--blue-dark); }
.btn-green { --b: var(--ok); --bd: var(--ok-dark); }
.btn-sm { font-size: 1rem; padding: 10px 16px 11px; border-radius: 14px; box-shadow: 0 4px 0 var(--bd); }
.btn-sm:hover { box-shadow: 0 5px 0 var(--bd); }
.btn-xl { font-size: clamp(1.25rem, 2.6vw, 1.6rem); padding: 18px 34px 19px; border-radius: 22px; }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }

.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.stores-center { justify-content: center; }
/* Botones de las tiendas, de juego: cara blanca, contorno y canto tinta. */
.store {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-width: 206px;
  text-decoration: none; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 20px;
  padding: 7px 18px 8px 8px; box-shadow: 0 6px 0 var(--ink), 0 12px 22px rgba(27,35,80,.22);
  transition: transform .12s ease, box-shadow .12s ease;
}
a.store:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink), 0 16px 26px rgba(27,35,80,.25); }
a.store:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.store-logo { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.logo-apple { background: var(--ink); color: #fff; box-shadow: inset 0 -4px 0 rgba(0,0,0,.35); }
.logo-apple svg { width: 26px; height: 26px; margin-top: -3px; }
.logo-play { background: var(--sky); border: 2px solid var(--sky3); box-shadow: inset 0 -3px 0 var(--sky3); }
.logo-play svg { width: 25px; height: 25px; margin-left: 3px; margin-top: -2px; }
.store-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-text small { font-family: var(--body); font-weight: 900; font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 2px; }
.store.is-soon small { color: #C27A00; }
.store-text b { font-family: var(--display); font-weight: 400; font-size: 1.42rem; }
html[lang="vi"] .store-text b { font-weight: 900; }

/* --- Barra de arriba (HUD flotante) --------------------------------------- */
.hud { position: fixed; top: 10px; left: 0; right: 0; z-index: 40; padding: 0 12px; pointer-events: none; }
.hud-in {
  pointer-events: auto; max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 22px; padding: 8px 10px 8px 14px; border: 2px solid var(--edge); border-bottom-width: 5px;
  box-shadow: 0 10px 30px rgba(27,35,80,.18);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 3px 0 rgba(27,35,80,.15)); }
.brand-name { font-family: var(--display); font-size: 1.32rem; line-height: 1; }
.brand-name { font-size: 1.42rem; letter-spacing: .01em; }
.brand-name b { font-weight: inherit; }
.navdrop { position: relative; }
.navdrop summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 900; font-size: .95rem; padding: 8px 11px; border-radius: 12px; user-select: none; }
.navdrop summary::-webkit-details-marker { display: none; }
.navdrop summary:hover, .navdrop[open] summary { background: var(--sky); color: var(--ink); }
.navdrop-caret { font-size: .75rem; transition: transform .2s; }
.navdrop[open] .navdrop-caret { transform: rotate(180deg); }
.navdrop ul { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 12px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 2px solid var(--edge); border-bottom-width: 5px; border-radius: 18px; width: 310px; box-shadow: 0 14px 30px rgba(27,35,80,.18); z-index: 60; }
.mainnav .navdrop a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: var(--ink); }
.navdrop img { width: 28px; height: 28px; flex-shrink: 0; }
.mainnav .navdrop a[aria-current] { background: var(--gold-light); }
.navdrop-all { border-top: 2px dashed var(--line); margin-top: 4px; padding-top: 4px; }
.mainnav .navdrop-all a { color: var(--blue-dark); }
.mainnav { display: flex; gap: 2px; margin-left: auto; }
.mainnav a { text-decoration: none; color: var(--muted); font-weight: 900; font-size: .95rem; padding: 8px 11px; border-radius: 12px; }
.mainnav a:hover { background: var(--sky); color: var(--ink); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 5px; font-weight: 900; font-size: .92rem; padding: 7px 11px; border: 2px solid var(--edge); border-bottom-width: 4px; border-radius: 14px; background: #fff; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 10px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 2px solid var(--edge); border-bottom-width: 5px; border-radius: 16px; min-width: 170px; box-shadow: 0 14px 30px rgba(27,35,80,.18); }
.lang a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 900; }
.lang a:hover { background: var(--sky); }
.lang a[aria-current] { background: var(--gold-light); }
@media (max-width: 1000px) { .mainnav { display: none; } .lang { margin-left: auto; } }

.langbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap; background: var(--ink); color: #fff; padding: 12px 52px 12px 16px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: .95rem; max-width: 640px; margin: 0 auto; }
.langbar[hidden] { display: none; }
.langbar p { margin: 0; }
.langbar-go { color: var(--ink); background: var(--gold); padding: 5px 14px; border-radius: 999px; text-decoration: none; font-weight: 900; box-shadow: 0 3px 0 #C98700; }
.langbar-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.1rem; cursor: pointer; }
.langbar-x::before { content: '✕'; }
/* Aviso de cookies: tarjeta de juego abajo (cara blanca, contorno y canto tinta); Aceptar y Rechazar del mismo tamaño. */
.cookiebar { position: fixed; left: 12px; right: 12px; bottom: 16px; z-index: 46; max-width: 700px; margin: 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px;
  background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; padding: 12px 14px; box-shadow: 0 6px 0 var(--ink), 0 16px 30px rgba(27,35,80,.3); font-size: .92rem; line-height: 1.4; }
.cookiebar[hidden] { display: none; }
.cookiebar img { flex-shrink: 0; }
.cookiebar p { margin: 0; flex: 1 1 260px; }
.cookiebar a { color: var(--blue-dark); font-weight: 800; }
.cookiebar-btns { display: flex; gap: 10px; margin-left: auto; }
.cookiebar-btns .btn { min-width: 112px; }
@media (max-width: 600px) {
  .cookiebar { left: 10px; right: 10px; bottom: 12px; padding: 12px; }
  .cookiebar img { width: 36px; height: 36px; }
  .cookiebar p { flex-basis: calc(100% - 50px); }
  .cookiebar-btns { width: 100%; }
  .cookiebar-btns .btn { flex: 1; min-width: 0; }
}

/* --- Fondos de juego ------------------------------------------------------ */
.rays {
  position: absolute; left: 50%; top: 50%; width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax; z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.11) 0 9deg, rgba(255,255,255,0) 9deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.6) 22%, transparent 48%);
  mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.6) 22%, transparent 48%);
  animation: spin 120s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; display: block; z-index: 2; pointer-events: none; }
@media (max-width: 640px) { .wave { height: 40px; } }

.sec { position: relative; padding: 96px 0 140px; overflow: hidden; }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto 46px; position: relative; z-index: 1; }
.sec-head p { font-size: 1.15rem; margin: 0; }
.sec-head.left { text-align: left; margin-left: 0; }
.title { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
@media (max-width: 640px) { .sec { padding: 64px 0 100px; } .sec-head { margin-bottom: 32px; } }

/* --- Portada --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 130px 0 150px;
  background: radial-gradient(120% 90% at 70% 35%, #64B0FF 0%, #3D8BFF 30%, #2F6FE0 58%, #3B3AC4 100%);
}
.hero-in { position: relative; z-index: 3; display: grid; grid-template-columns: 1.08fr .92fr; gap: 30px; align-items: center; }
.stickers { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.sticker {
  display: inline-block; font-weight: 900; font-size: .85rem; text-transform: uppercase; letter-spacing: .07em;
  padding: 7px 14px; border-radius: 12px; color: var(--ink); background: #fff; border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink); transform: rotate(-3deg);
}
.sticker.s0 { background: var(--gold); }
.sticker.s1 { background: #fff; transform: rotate(2deg); }
.sticker.s2 { background: #7CF0B8; transform: rotate(-1.5deg); }
.hero-title { font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: 1.02; margin-bottom: .35em; }
.hero-title .st { display: inline; }
.hero-lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 560px; color: #EAF2FF; text-shadow: 0 2px 0 rgba(27,35,80,.25); }
.hero-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 28px; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 440px; }
.hero-glow { position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,240,170,.85) 0%, rgba(255,214,90,.35) 40%, rgba(255,214,90,0) 68%); animation: glow 3.5s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.08); opacity: .85; } }
.hero-mascot { position: relative; width: min(470px, 100%); z-index: 2; filter: drop-shadow(0 22px 22px rgba(20,20,90,.35)); animation: bob 3.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.hero-floor { position: absolute; bottom: 4%; width: 55%; height: 34px; border-radius: 50%; background: rgba(20,20,90,.28); filter: blur(6px); animation: floor 3.6s ease-in-out infinite; }
@keyframes floor { 50% { transform: scale(.86); opacity: .7; } }
.bubble {
  position: relative; display: inline-block; background: #fff; color: var(--ink); font-family: var(--display); font-size: 1.3rem; line-height: 1.1;
  padding: 10px 16px; border-radius: 18px; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); margin: 0;
}
.bubble::after { content: ''; position: absolute; left: 26px; bottom: -14px; width: 20px; height: 20px; background: #fff; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg) skew(8deg, 8deg); }
.bubble-hero { position: absolute; top: 4%; left: 2%; z-index: 4; transform: rotate(-6deg); animation: pop 3s var(--spring) infinite; }
@keyframes pop { 0%, 70%, 100% { transform: rotate(-6deg) scale(1); } 78% { transform: rotate(-6deg) scale(1.12); } }
.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float { position: absolute; width: 64px; height: 64px; filter: drop-shadow(0 8px 10px rgba(20,20,90,.3)); animation: drift 6s ease-in-out infinite; }
.f0 { left: 4%; top: 22%; animation-duration: 6.5s; }
.f1 { left: 46%; top: 16%; width: 56px; animation-duration: 7.5s; animation-delay: -2s; }
.f2 { right: 4%; top: 18%; animation-duration: 5.5s; animation-delay: -1s; }
.f3 { left: 9%; bottom: 5%; width: 52px; animation-duration: 6.8s; animation-delay: -3s; }
.f4 { right: 2%; bottom: 26%; animation-duration: 7.2s; }
.f5 { left: 2%; bottom: 18%; width: 54px; animation-duration: 6s; animation-delay: -4s; }
.f6 { left: 30%; top: 9%; width: 46px; animation-duration: 5.2s; animation-delay: -1.5s; }
.f7 { right: 9%; bottom: 6%; width: 50px; animation-duration: 6.4s; animation-delay: -2.5s; }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-22px) rotate(8deg); } }
/* Cifras: tarjetas de premio con lo que cuentan en abanico. */
.hero-stats { list-style: none; margin: 44px auto 0; padding: 0 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; position: relative; z-index: 3; }
.stat {
  --c1: var(--blue); --c2: var(--blue-dark); --tilt: -2deg;
  width: 172px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 12px 14px; border-radius: 24px; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.32), rgba(255,255,255,0) 55%), linear-gradient(160deg, var(--c1), var(--c2));
  border: 3px solid rgba(255,255,255,.6);
  box-shadow: 0 6px 0 var(--c2), 0 18px 28px rgba(20,25,90,.32);
  transform: rotate(var(--tilt)); transition: transform .3s var(--spring);
}
.stat:nth-child(even) { --tilt: 2deg; }
.stat:hover { transform: translateY(-6px) rotate(0deg) scale(1.05); }
.stat-fan { display: flex; justify-content: center; align-items: flex-start; height: 60px; padding-top: 4px; }
.stat-item, .stat-lang { margin: 0 -8px; transform: translateY(var(--fy)) rotate(var(--fr)); transition: transform .3s var(--spring); }
.stat:hover .stat-item, .stat:hover .stat-lang { transform: translateY(calc(var(--fy) - 4px)) rotate(calc(var(--fr) * 1.4)); }
.stat-item { width: 48px; height: 48px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); }
.stat-item.big { width: 60px; height: 60px; margin-top: -8px; position: relative; z-index: 1; }
.stat-lang { width: 40px; height: 40px; margin: 4px -4px 0; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--c2); border: 3px solid var(--c2); font-family: var(--display); font-size: .95rem; box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.stat-txt { display: flex; align-items: baseline; gap: 6px; }
.stat-txt b { --sc: var(--c2); font-size: 2.3rem; line-height: 1.1; color: #fff; }
.stat-txt span { font-weight: 900; font-size: 1.02rem; }
.tone-green { --c1: #17B889; --c2: #0C8A64; }
.tone-night { --c1: #3A4590; --c2: #1B2350; }
@media (max-width: 640px) {
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 168px)); gap: 18px 14px; }
  .stat { width: auto; }
}
@media (max-width: 900px) {
  .hero { padding: 104px 0 110px; text-align: center; }
  .hero-in { grid-template-columns: 1fr; gap: 0; }
  .hero-art { order: -1; min-height: 0; margin-bottom: 4px; }
  .hero-mascot { width: 230px; }
  .bubble-hero { top: 0; left: calc(50% - 175px); font-size: 1.05rem; }
  .stickers { justify-content: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { align-items: center; }
  .stores { justify-content: center; }
  .float { width: 44px !important; height: 44px; }
  .f1, .f3, .f6, .f7 { display: none; }
}

/* --- Partida de prueba ---------------------------------------------------- */
.sec-demo { background: #FFD24A; background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 22px, rgba(255,255,255,0) 22px 44px); }
.sec-demo .title { --sc: #9A5B00; }
.sec-demo .sec-head p { color: #6B4300; }
.game {
  position: relative; max-width: 620px; margin: 0 auto; background: #fff; border-radius: 30px; padding: 16px 18px 22px;
  border: 4px solid var(--ink); box-shadow: 0 10px 0 var(--ink), 0 30px 60px rgba(107,67,0,.35);
}
.game-hud { display: flex; align-items: center; gap: 12px; }
.hud-lives { display: flex; gap: 2px; }
.heart { width: 32px; height: 32px; transition: transform .3s var(--spring), filter .3s, opacity .3s; }
.heart.lost { filter: grayscale(1); opacity: .35; transform: scale(.8); }
.heart.breaking { animation: heartbreak .6s ease; }
@keyframes heartbreak { 30% { transform: scale(1.35) rotate(-12deg); } 60% { transform: scale(.7) rotate(10deg); } }
.hud-prog { flex: 1; display: flex; align-items: center; gap: 8px; }
.hud-bar { flex: 1; height: 16px; background: var(--sky); border-radius: 999px; border: 2px solid var(--edge); overflow: hidden; }
.hud-bar span { display: block; height: 100%; width: 0; background: linear-gradient(180deg, #5CE0A0, var(--ok)); border-radius: 999px; transition: width .5s var(--spring); }
.hud-prog b { font-weight: 900; font-size: .95rem; color: var(--muted); min-width: 34px; text-align: right; }
.hud-score { display: flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 12px 3px 4px; }
.hud-score img { width: 28px; height: 28px; }
.hud-score b { font-family: var(--display); font-weight: 400; font-size: 1.2rem; min-width: 2.4ch; text-align: right; }
html[lang="vi"] .hud-score b { font-weight: 900; }
.hud-score.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.25); } }
.game-timer { height: 8px; margin: 12px 0 4px; background: var(--line); border-radius: 999px; overflow: hidden; }
.game-timer span { display: block; height: 100%; width: 100%; background: var(--ok); border-radius: 999px; transform-origin: left; }
.game-timer.warn span { background: var(--a2); }
.game-timer.danger span { background: var(--bad); animation: blink .5s steps(2) infinite; }
@keyframes blink { 50% { opacity: .45; } }
.game-stage { min-height: 420px; position: relative; }
.screen { animation: screenIn .45s var(--spring); }
@keyframes screenIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.screen-intro, .screen-result { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 6px 4px; }
.screen-intro h3, .screen-result h3 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 8px 0 14px; }
.intro-mascot { width: 140px; animation: bob 3.2s ease-in-out infinite; }
.rules { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rules li { display: flex; align-items: center; gap: 8px; background: var(--sky); border: 2px solid var(--sky3); border-bottom-width: 4px; padding: 6px 14px 6px 8px; border-radius: 14px; font-weight: 900; }
.rules img { width: 34px; height: 34px; }
.real-q { display: flex; align-items: center; gap: 6px; margin: 18px 0 0; font-size: .9rem; color: var(--muted); }
.real-q img { width: 22px; height: 22px; }

.q-topic { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 900; font-size: .85rem; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--c); box-shadow: 0 3px 0 var(--dk); margin: 6px 0 12px; }
.q-topic img { width: 30px; height: 30px; background: rgba(255,255,255,.9); border-radius: 50%; padding: 2px; }
.q-text { font-weight: 900; font-size: clamp(1.15rem, 2.6vw, 1.35rem); line-height: 1.32; margin: 0 0 16px; }
.answers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.answer {
  --ac: var(--a0);
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; font-weight: 900; font-size: 1.05rem; color: var(--ink);
  background: #fff; cursor: pointer; border: 3px solid var(--edge); border-bottom: 6px solid var(--edge); border-radius: 18px; padding: 9px 12px;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}
li:nth-child(2) > .answer { --ac: var(--a1); }
li:nth-child(3) > .answer { --ac: var(--a2); }
li:nth-child(4) > .answer { --ac: var(--a3); }
.answer:hover:not([disabled]) { border-color: var(--ac); transform: translateY(-2px); }
.answer:active:not([disabled]) { transform: translateY(4px); border-bottom-width: 3px; margin-top: 3px; }
.answer .letter { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--ac); font-family: 'Lilita One', 'Nunito', sans-serif; font-size: 1.2rem; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.answer .mark { margin-left: auto; font-size: 1.3rem; }
.answer[disabled] { cursor: default; }
.answer.is-right { background: var(--ok); border-color: var(--ok-dark); color: #fff; animation: right .5s var(--spring); }
.answer.is-right .letter { background: #fff; color: var(--ok-dark); }
.answer.is-wrong { background: var(--bad); border-color: var(--bad-dark); color: #fff; animation: shake .45s ease; }
.answer.is-wrong .letter { background: #fff; color: var(--bad-dark); }
.answer.is-dim { opacity: .45; }
@keyframes right { 40% { transform: scale(1.04); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.feedback { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; animation: screenIn .4s var(--spring); }
.feedback img { width: 84px; flex-shrink: 0; }
.fb-bubble { position: relative; flex: 1; background: var(--sky); border: 3px solid var(--sky3); border-radius: 20px; padding: 12px 14px; font-size: .97rem; font-weight: 700; color: var(--ink2); }
.fb-bubble::before { content: ''; position: absolute; left: -12px; top: 22px; width: 18px; height: 18px; background: var(--sky); border-left: 3px solid var(--sky3); border-bottom: 3px solid var(--sky3); transform: rotate(45deg); }
.fb-bubble strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin-bottom: 2px; }
html[lang="vi"] .fb-bubble strong { font-weight: 900; }
.feedback.ok .fb-bubble { background: #E3F8EE; border-color: #9EE3C2; }
.feedback.ok .fb-bubble::before { background: #E3F8EE; border-color: #9EE3C2; }
.feedback.ok strong { color: var(--ok-dark); }
.feedback.bad .fb-bubble { background: #FFE8EC; border-color: #FFB7C5; }
.feedback.bad .fb-bubble::before { background: #FFE8EC; border-color: #FFB7C5; }
.feedback.bad strong { color: var(--bad-dark); }
.fb-next { display: flex; justify-content: flex-end; margin-top: 14px; }
.plus { position: absolute; pointer-events: none; font-family: var(--display); font-size: 2rem; color: var(--gold); z-index: 5; animation: plus 1.1s ease-out forwards; }
@keyframes plus { from { opacity: 0; transform: translateY(10px) scale(.6); } 20% { opacity: 1; transform: translateY(-10px) scale(1.15); } to { opacity: 0; transform: translateY(-70px) scale(1); } }
.result-stars { display: flex; gap: 6px; margin: 4px 0 2px; }
.result-stars img { width: 64px; height: 64px; filter: grayscale(1) opacity(.3); transform: scale(.7); }
.result-stars img.lit { filter: none; animation: star .6s var(--spring) forwards; }
.result-stars img:nth-child(2) { width: 82px; height: 82px; margin-top: -14px; }
@keyframes star { from { transform: scale(0) rotate(-40deg); } to { transform: scale(1) rotate(0); } }
.result-mascot { width: 170px; }
.result-score { font-family: var(--display); font-size: 1.5rem; margin: 0 0 4px; }
html[lang="vi"] .result-score { font-weight: 900; }
.result-points { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 16px 4px 6px; font-weight: 900; margin-bottom: 14px; }
.result-points img { width: 28px; height: 28px; }
.result-more { color: var(--muted); max-width: 440px; margin: 0 0 16px; }
.result-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }

/* --- Modos de juego ------------------------------------------------------- */
.sec-modes { background: #EEF4FF; background-image: radial-gradient(#C9D9F7 2px, transparent 2.5px); background-size: 26px 26px; }
.sec-modes .title, .sec-topics .title, .sec-faq .title { --sc: var(--ink); }
.sec-modes .sec-head p, .sec-topics .sec-head p { color: var(--muted); }
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 86px 28px; padding-top: 50px; }
.mode {
  --c1: var(--blue); --c2: var(--blue-dark);
  position: relative; border-radius: 28px; padding: 82px 26px 24px; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 50%), linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: 0 8px 0 var(--c2), 0 22px 40px rgba(27,35,80,.18);
  transition: transform .25s var(--spring);
}
.mode:hover { transform: translateY(-6px) rotate(-.6deg); }
.mode-art { position: absolute; top: -46px; left: 20px; width: 126px; height: 126px; filter: drop-shadow(0 10px 10px rgba(0,0,0,.25)); transition: transform .3s var(--spring); }
.mode:hover .mode-art { transform: scale(1.1) rotate(-6deg); }
.mode h3 { font-size: clamp(1.6rem, 3vw, 2rem); --sc: var(--c2); }
.mode p { color: rgba(255,255,255,.95); font-size: 1.05rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.45); border-radius: 999px; padding: 3px 12px; font-size: .85rem; font-weight: 900; }
.tone-blue { --c1: #4D97FF; --c2: #2366D1; }
.tone-red { --c1: #FF6A7F; --c2: #D62E52; }
.tone-violet { --c1: #9C80FF; --c2: #6447D4; }
.tone-gold { --c1: #FFD24A; --c2: #D99A00; color: var(--gold-ink); }
.tone-gold p { color: #5A3B00; }
.tone-gold .chips li { background: rgba(255,255,255,.45); border-color: rgba(255,255,255,.7); }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; gap: 80px; } }

/* --- Minijuegos (arcade) -------------------------------------------------- */
.sec-arcade { background: radial-gradient(110% 80% at 50% 20%, #8A4FF0 0%, #5B3FD9 55%, #3A2A9E 100%); color: #fff; }
.sec-arcade .title { --sc: #2A1A7A; }
.sec-arcade .sec-head p { color: #E5DCFF; }
.arcade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; z-index: 1; }
.cabinet { background: #fff; color: var(--ink); border-radius: 26px; padding: 12px 12px 20px; border: 4px solid #2A1A7A; box-shadow: 0 9px 0 #2A1A7A, 0 24px 40px rgba(20,10,70,.45); transition: transform .25s var(--spring); }
.cabinet:hover { transform: translateY(-8px) rotate(.8deg); }
.cabinet:nth-child(2):hover { transform: translateY(-8px) rotate(-.8deg); }
.screenshot { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: #222; margin-bottom: 14px; border: 3px solid #2A1A7A; }
.screenshot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cabinet:hover .screenshot img { transform: scale(1.06); }
.cabinet:nth-child(2) .screenshot img { image-rendering: pixelated; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--gold); color: var(--gold-ink); font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 10px; border: 2px solid var(--gold-ink); transform: rotate(-4deg); }
.cabinet h3 { font-size: 1.6rem; padding: 0 8px; --sc: #2A1A7A; }
.cabinet p { padding: 0 8px; margin: 0; color: var(--muted); }
.arcade-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 34px auto 0; font-weight: 900; font-size: 1.1rem; position: relative; z-index: 1; }
.arcade-note img { width: 44px; height: 44px; }
@media (max-width: 900px) { .arcade { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* --- Temas (cartas) ------------------------------------------------------- */
.sec-topics { background: #fff; background-image: radial-gradient(#E5EBF8 2px, transparent 2.5px); background-size: 26px 26px; }
.topics { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.topic {
  position: relative; text-align: center; color: #fff; border-radius: 24px; padding: 18px 14px 18px;
  background: radial-gradient(100% 70% at 50% 0%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%), var(--c);
  box-shadow: 0 7px 0 var(--dk), 0 18px 30px rgba(27,35,80,.14); transition: transform .25s var(--spring);
}
.topic::before { content: ''; position: absolute; inset: 7px; border-radius: 18px; border: 2px dashed rgba(255,255,255,.45); pointer-events: none; }
.topic:hover { transform: translateY(-8px) rotate(-1.5deg) scale(1.02); }
.topic:nth-child(even):hover { transform: translateY(-8px) rotate(1.5deg) scale(1.02); }
.topic img { width: 104px; height: 104px; margin: 0 auto 6px; filter: drop-shadow(0 8px 8px rgba(0,0,0,.25)); transition: transform .3s var(--spring); }
.topic:hover img { transform: scale(1.12) rotate(6deg); }
.topic h3 { font-size: 1.22rem; --sc: var(--dk); }
.topic p { font-size: .9rem; margin: 0; color: rgba(255,255,255,.95); }
.topic-cta { display: inline-block; margin-top: 10px; font-weight: 900; font-size: .85rem; color: var(--ink); background: #fff; border-radius: 999px; padding: 4px 12px; box-shadow: 0 3px 0 var(--dk); }
.topic:hover .topic-cta { background: var(--gold-light); }
@media (max-width: 960px) { .topics { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 420px) { .topic { padding: 14px 10px; } .topic img { width: 78px; height: 78px; } .topic h3 { font-size: 1.05rem; } .topic p { font-size: .82rem; } }
.levels { margin: 50px auto 0; max-width: 900px; text-align: center; }
.levels h3 { font-size: 1.6rem; }
.levels ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lv { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 3px solid var(--edge); border-bottom-width: 7px; border-radius: 20px; padding: 14px 12px; }
.lv-stars { font-size: 1.5rem; letter-spacing: 2px; color: var(--gold); -webkit-text-stroke: 1px #C98700; }
.lv b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
html[lang="vi"] .lv b { font-weight: 900; }
.lv span:last-child { color: var(--muted); font-size: .92rem; }
@media (max-width: 640px) { .levels ol { grid-template-columns: 1fr; } }

/* --- Ligas (mapa de niveles) ---------------------------------------------- */
.sec-leagues { background: linear-gradient(180deg, #8EC5FF 0%, #BFE0FF 55%, #EAF5FF 100%); }
.sec-leagues .title { --sc: #1D4FA8; }
.sec-leagues .sec-head p { color: #1D3D7A; }
.clouds span { position: absolute; background: #fff; border-radius: 999px; opacity: .85; animation: cloud 40s linear infinite; }
.clouds span::before, .clouds span::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.clouds span:nth-child(1) { width: 160px; height: 46px; top: 12%; left: -10%; }
.clouds span:nth-child(2) { width: 220px; height: 58px; top: 30%; left: 60%; animation-duration: 55s; animation-delay: -20s; }
.clouds span:nth-child(3) { width: 130px; height: 38px; top: 70%; left: 20%; animation-duration: 48s; animation-delay: -35s; }
.clouds span::before { width: 70px; height: 70px; top: -32px; left: 24px; }
.clouds span::after { width: 54px; height: 54px; top: -24px; right: 28px; }
@keyframes cloud { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }
.map { position: relative; margin: 0 auto 40px; }
.map-path { position: absolute; left: 0; top: 0; width: 100%; height: 320px; z-index: 0; overflow: visible; }
.map-path path { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; stroke-dasharray: 2 26; filter: drop-shadow(0 4px 0 rgba(29,79,168,.25)); }
.nodes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); height: 320px; position: relative; z-index: 1; }
.node { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.node:nth-child(odd) { transform: translateY(70px); }
.node:nth-child(even) { transform: translateY(-70px); }
.js .node.rv:nth-child(odd):not(.in) { transform: translateY(100px) scale(.6); }
.js .node.rv:nth-child(even):not(.in) { transform: translateY(-40px) scale(.6); }
.node-badge { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #fff, #EEF4FF); border: 6px solid var(--c); box-shadow: 0 7px 0 var(--dk), 0 16px 24px rgba(29,79,168,.25); transition: transform .3s var(--spring); }
.node:hover .node-badge { transform: scale(1.1) rotate(-5deg); }
.node-badge img { width: 84px; height: 84px; }
.node-name { margin-top: 10px; font-family: var(--display); font-size: 1.05rem; color: #fff; background: var(--c); padding: 4px 12px; border-radius: 12px; box-shadow: 0 4px 0 var(--dk); white-space: nowrap; }
html[lang="vi"] .node-name { font-weight: 900; }
.you { position: absolute; left: -10px; top: -96px; display: flex; align-items: flex-end; }
.you-mascot { width: 80px; height: 80px; animation: bob 3s ease-in-out infinite; }
.bubble-sm { font-size: .95rem; padding: 6px 10px; border-width: 2px; box-shadow: 0 3px 0 var(--ink); margin-bottom: 52px; white-space: nowrap; }
.bubble-sm::after { left: 8px; bottom: -9px; width: 12px; height: 12px; border-width: 2px; }
.crown { position: absolute; top: -40px; width: 60px; height: 60px; animation: bob 2.6s ease-in-out infinite; }
.league-facts { list-style: none; padding: 0; margin: 60px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; z-index: 1; }
.fact { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 22px; padding: 14px 16px; border: 3px solid #fff; box-shadow: 0 7px 0 #A8CCF5, 0 14px 24px rgba(29,79,168,.15); }
.fact img { width: 64px; height: 64px; flex-shrink: 0; }
.fact b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.2rem; line-height: 1.15; }
html[lang="vi"] .fact b { font-weight: 900; }
.fact span { color: var(--muted); font-size: .93rem; }
@media (max-width: 900px) {
  .map-path { display: none; }
  /* En teléfono: camino vertical a la izquierda, cada liga con su nombre al lado. */
  .nodes { grid-template-columns: 1fr; height: auto; gap: 22px; max-width: 360px; margin: 0 auto; padding: 0; position: relative; }
  .nodes::before { content: ''; position: absolute; left: 46px; top: 40px; bottom: 40px; width: 0; border-left: 10px dotted #fff; transform: translateX(-50%); }
  .node, .node:nth-child(odd), .node:nth-child(even) { flex-direction: row; gap: 14px; justify-content: flex-start; transform: none; }
  .js .node.rv:not(.in), .js .node.rv:nth-child(odd):not(.in), .js .node.rv:nth-child(even):not(.in) { transform: translateX(-40px) scale(.8); }
  .node-badge { width: 92px; height: 92px; border-width: 5px; flex-shrink: 0; }
  .node-badge img { width: 68px; height: 68px; }
  .node-name { margin-top: 0; font-size: 1.15rem; }
  .you { position: static; order: 3; margin-left: auto; flex-direction: column-reverse; align-items: center; }
  .you-mascot { width: 64px; height: 64px; }
  .bubble-sm { margin-bottom: 8px; font-size: .85rem; }
  .bubble-sm::after { left: 50%; margin-left: -6px; }
  .crown { top: -30px; left: 28px; width: 48px; height: 48px; }
  .league-facts { grid-template-columns: 1fr; margin-top: 40px; }
}

/* --- Comunidad (noche) ---------------------------------------------------- */
.sec-night { background: radial-gradient(90% 70% at 70% 30%, #3B3A9E 0%, #232A6B 50%, #1B2350 100%); color: #fff; }
.stars { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 120px 90px, #FFE07A 50%, transparent 51%), radial-gradient(2px 2px at 220px 160px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 80px 200px, #fff 50%, transparent 51%); background-size: 260px 240px; opacity: .55; animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .3; } }
.sec-night .title { --sc: #0B1033; }
.sec-night .sec-head p { color: #C9D2EE; }
.community-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.14); border-radius: 20px; padding: 12px 16px; }
.perks img { width: 60px; height: 60px; flex-shrink: 0; }
.perks h3 { font-size: 1.25rem; margin-bottom: 2px; }
.perks p { margin: 0; color: #C9D2EE; font-size: .95rem; }
.phone-wrap { position: relative; display: flex; justify-content: center; padding: 30px 0; }
/* Copia del chat de la app (ChatScreen + MessageBubble + ChatComposer). */
.phone { position: relative; z-index: 1; width: 100%; max-width: 390px; background: #E8ECF4; color: var(--ink); border-radius: 38px; overflow: hidden; border: 7px solid #0B1033; box-shadow: 0 10px 0 #0B1033, 0 40px 80px rgba(0,0,0,.45); }
.chat-band { background: linear-gradient(180deg, #2F7BF2, #2366D1); padding: 14px 0 0; text-align: center; }
.chat-title { font-family: var(--display); font-size: 1.5rem; margin: 0 0 8px; }
.chat-tabs { display: flex; gap: 3px; }
.chat-tab { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px; height: 44px; padding: 0 4px; font-family: var(--display); font-size: .9rem; color: rgba(255,255,255,.88); background: rgba(15,52,119,.3); box-shadow: inset 0 -3px 0 rgba(15,52,119,.35); white-space: nowrap; overflow: hidden; }
html[lang="vi"] .chat-tab, html[lang="vi"] .chat-title { font-weight: 900; }
.chat-tab img { width: 22px; height: 22px; opacity: .85; flex-shrink: 0; }
.chat-tab.on { background: #E8ECF4; color: var(--ink); box-shadow: none; }
.chat-tab.on img { width: 26px; height: 26px; opacity: 1; }
.chat-body { padding: 14px 8px 8px; display: grid; gap: 14px; min-height: 430px; align-content: start; }
.cm { display: flex; align-items: flex-start; gap: 4px; }
.cm.me { flex-direction: row-reverse; }
.cm.has-likes { margin-bottom: 8px; }
.cm-avatar { position: relative; width: 58px; height: 58px; flex-shrink: 0; }
.cm-photo { position: absolute; object-fit: cover; background: #2366D1; }
.frame-free .cm-photo { width: 74%; height: 74%; left: 12%; top: 16%; }
.frame-pro .cm-photo { width: 77%; height: 77%; left: 11.5%; top: 11.5%; }
.cm-initial { display: grid; place-items: center; color: #fff; font-family: var(--display); font-size: 1.35rem; }
.cm-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.cm-flag { position: absolute; right: 1px; bottom: -2px; font-size: 1rem; line-height: 1; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.cm-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex: 1; padding-top: 3px; }
.cm.me .cm-col { align-items: flex-end; }
.cm-name { display: flex; align-items: center; gap: 4px; margin: 0 2px 4px; max-width: 100%; }
.cm-name img { width: 18px; height: 18px; flex-shrink: 0; }
.cm-name b { font-family: var(--display); font-weight: 400; font-size: .95rem; color: #2B3253; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[lang="vi"] .cm-name b { font-weight: 900; }
.cm-name img[src*="hombre"], .cm-name img[src*="mujer"] { width: 14px; height: 14px; margin-left: 2px; }
.cm-name .cm-premium { width: 45px; height: 15px; }
.cm-line { display: flex; align-items: flex-end; gap: 3px; max-width: 100%; }
.cm-bubble { position: relative; background: #fff; border: 1.5px solid #D9DFEA; border-radius: 12px; padding: 8px 12px 9px; max-width: 245px; font-weight: 800; font-size: .92rem; line-height: 1.38; color: #2B3253; }
.cm.me .cm-bubble { background: #D6E0FB; border-color: #B7C5EE; }
.cm-bubble p { margin: 0; }
.cm-dash { display: block; border-top: 1.5px dashed rgba(122,132,163,.45); margin: 7px 0 6px; }
.cm-tr small { display: block; text-align: right; margin-top: 4px; font-weight: 600; font-size: .74rem; color: #7A84A3; }
.cm-translate { position: relative; width: 30px; height: 30px; display: grid; place-items: center; color: #8F9ABA; margin-bottom: -4px; flex-shrink: 0; }
.cm-translate svg { width: 21px; height: 21px; }
.cm-spin { display: none; position: absolute; width: 18px; height: 18px; border: 2.5px solid #D3DAE8; border-top-color: #8F9ABA; border-radius: 50%; animation: spin .8s linear infinite; }
.cm-likes { position: absolute; right: 10px; bottom: -12px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; background: #fff; border: 1.5px solid #D9DFEA; font-weight: 900; font-size: .72rem; color: #D62E52; line-height: 1.4; }
.cm-likes svg { width: 12px; height: 12px; }
.chat-composer { display: flex; gap: 10px; align-items: center; padding: 10px 10px 12px; border-top: 3px solid #20165C; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.08) 0 10px, rgba(255,255,255,0) 10px 20px), linear-gradient(180deg, #3B2A96, #2C1F78); }
.chat-field { flex: 1; min-width: 0; height: 44px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 8px 0 12px; color: #8F9ABA; font-weight: 800; font-size: .92rem; white-space: nowrap; overflow: hidden; }
.chat-smiley { width: 26px; height: 26px; flex-shrink: 0; }
.chat-send { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, #5C9DFF, #3D8BFF); box-shadow: 0 4px 0 #1B52AE; }
.chat-send svg { width: 22px; height: 22px; margin-left: 3px; }
/* Todo el chat ocupa su lugar desde el inicio (solo cambia la opacidad): nada se mueve al llegar un mensaje. */
.js .phone .cm { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease-out; }
.js .phone .cm.show { opacity: 1; transform: none; }
.cm-tr p, .cm-tr small { transition: opacity .3s ease; }
.js .phone .cm.translating .cm-tr p, .js .phone .cm.translating .cm-tr small { opacity: 0; }
.js .phone .cm.translating .cm-translate svg { opacity: 0; }
.js .phone .cm.translating .cm-spin { display: block; }
.flags { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.flag { position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; background: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.25); animation: drift 6s ease-in-out infinite; }
.fl0 { left: 0; top: 6%; } .fl1 { right: 0; top: 0; animation-delay: -1s; } .fl2 { left: -4%; top: 44%; animation-delay: -2s; } .fl3 { right: -3%; top: 38%; animation-delay: -3s; }
.fl4 { left: 4%; bottom: 6%; animation-delay: -4s; } .fl5 { right: 4%; bottom: 2%; animation-delay: -5s; } .fl6 { left: 40%; top: -4%; width: 42px; height: 42px; font-size: 1.3rem; animation-delay: -1.5s; }
.fl7 { left: 44%; bottom: -3%; width: 42px; height: 42px; font-size: 1.3rem; animation-delay: -2.5s; } .fl8 { left: -8%; top: 74%; width: 40px; height: 40px; font-size: 1.2rem; } .fl9 { right: -8%; top: 68%; width: 40px; height: 40px; font-size: 1.2rem; animation-delay: -3.5s; }
@media (max-width: 900px) { .community-in { grid-template-columns: 1fr; gap: 20px; } .fl8, .fl9 { display: none; } .flag { width: 42px; height: 42px; font-size: 1.3rem; } }

/* --- Juego limpio --------------------------------------------------------- */
.sec-fair { background: #FFF4D6; }
.sec-fair .title { --sc: #B86E00; }
.sec-fair .sec-head p { color: #6B4300; }
.fair { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 40px; }
.badge-card { text-align: center; background: #fff; border-radius: 28px; padding: 22px 22px 26px; border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink); transition: transform .25s var(--spring); }
.badge-card.b0 { transform: rotate(-2.5deg); } .badge-card.b1 { transform: rotate(1.5deg); } .badge-card.b2 { transform: rotate(-1deg); }
.badge-card:hover { transform: rotate(0) scale(1.04); }
.badge-card img { width: 130px; height: 130px; margin: -54px auto 6px; filter: drop-shadow(0 10px 10px rgba(0,0,0,.2)); }
.badge-card h3 { font-size: 1.7rem; }
.b0 h3 { --sc: var(--bad-dark); } .b1 h3 { --sc: var(--ok-dark); } .b2 h3 { --sc: var(--violet-dark); }
.badge-card p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .fair { grid-template-columns: 1fr; gap: 60px; max-width: 440px; margin: 0 auto; } }

/* --- Preguntas frecuentes ------------------------------------------------- */
.sec-faq { background: #fff; }
.faq { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 3px solid var(--edge); border-bottom-width: 7px; border-radius: 22px; transition: border-color .2s; }
.faq-item[open] { border-color: var(--sky3); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 54px 14px 14px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary img { width: 36px; height: 36px; flex-shrink: 0; transition: transform .3s var(--spring); }
.faq-item[open] summary img { transform: rotate(-12deg) scale(1.1); }
.faq-item summary::after { content: '+'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 11px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; box-shadow: 0 3px 0 var(--blue-dark); }
.faq-item[open] summary::after { content: '–'; background: var(--gold); color: var(--gold-ink); box-shadow: 0 3px 0 #C98700; }
.faq-item summary h3 { margin: 0; font-family: var(--body); font-weight: 900; font-size: 1.06rem; line-height: 1.35; }
.faq-a { padding: 0 20px 18px 62px; color: var(--muted); }
.faq-a p:last-child { margin: 0; }
.sec-faq .center { margin-top: 30px; }
@media (max-width: 560px) { .faq-a { padding-left: 18px; } }

/* --- Llamado final -------------------------------------------------------- */
.sec-cta { background: radial-gradient(90% 90% at 50% 40%, #FFE07A 0%, #FFC531 50%, #F0A20F 100%); }
.cta-in { display: flex; align-items: center; justify-content: center; gap: 40px; position: relative; z-index: 1; }
.cta-mascot { width: 300px; filter: drop-shadow(0 18px 20px rgba(120,70,0,.35)); animation: bob 3.4s ease-in-out infinite; }
.cta-copy .title { --sc: #9A5B00; }
.cta-copy p { color: #5A3B00; font-size: 1.2rem; max-width: 520px; }
@media (max-width: 800px) { .cta-in { flex-direction: column; text-align: center; gap: 10px; } .cta-mascot { width: 200px; } .cta-copy .stores { justify-content: center; } }

/* --- Pie ------------------------------------------------------------------ */
.footer { background: var(--ink); color: #C9D2EE; padding: 40px 0 26px; font-weight: 700; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-in { display: grid; grid-template-columns: 1.2fr 1.15fr 1fr 1.15fr .75fr; gap: 26px; }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer .brand-name { text-shadow: none; }
.footer-brand p { max-width: 320px; font-size: .95rem; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: .95rem; }
.footer .footer-h { font-family: var(--body); font-weight: 900; line-height: 1.1; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 4px; }
.footer-col a { overflow-wrap: anywhere; }
.footer-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: #fff; text-align: left; cursor: pointer; }
.footer-link:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
/* Redes: botones de juego (cara blanca, logo a color, canto), de 48 px para el dedo. */
.social { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.footer a.soc { width: 48px; height: 48px; display: grid; place-items: center; background: #fff; border-radius: 15px; text-decoration: none;
  box-shadow: 0 5px 0 #A9BCEB, 0 10px 18px rgba(0,0,0,.28), inset 0 -3px 0 rgba(27,35,80,.08); transition: transform .15s var(--spring), box-shadow .15s; }
.soc svg { width: 26px; height: 26px; display: block; }
.footer a.soc:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #A9BCEB, 0 14px 22px rgba(0,0,0,.32), inset 0 -3px 0 rgba(27,35,80,.08); }
.footer a.soc:active { transform: translateY(4px); box-shadow: 0 1px 0 #A9BCEB, 0 3px 6px rgba(0,0,0,.25); }
@media (max-width: 860px) { .footer-in { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
/* Teléfono: Temas y Ayuda a todo lo ancho (nombres y correo sin cortarse), Legal e Idioma lado a lado,
   y enlaces más altos para tocarlos con el dedo. */
@media (max-width: 600px) {
  .footer { padding-top: 34px; }
  .footer-in { grid-auto-flow: row dense; gap: 26px 18px; }
  .fc-topics, .fc-help { grid-column: 1 / -1; }
  .footer-col { gap: 0; }
  .footer-col a, .footer-col .footer-link { padding: 7px 0; }
  .footer .footer-h { margin-bottom: 2px; }
  .footer-brand p { max-width: none; }
  .footer-bottom { flex-direction: column; gap: 6px; margin-top: 26px; }
}

/* --- Aparición al hacer scroll -------------------------------------------- */
.js .rv { opacity: 0; transform: translateY(34px) scale(.96); transition: opacity .5s ease var(--d, 0ms), transform .7s var(--spring) var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .badge-card.rv.in.b0 { transform: rotate(-2.5deg); } .js .badge-card.rv.in.b1 { transform: rotate(1.5deg); } .js .badge-card.rv.in.b2 { transform: rotate(-1deg); }
.js .node.rv.in:nth-child(odd) { transform: translateY(70px); } .js .node.rv.in:nth-child(even) { transform: translateY(-70px); }
@media (max-width: 900px) { .js .node.rv.in:nth-child(odd), .js .node.rv.in:nth-child(even) { transform: none; } }

/* --- Páginas de texto ----------------------------------------------------- */
.doc-hero { position: relative; overflow: hidden; color: #fff; padding: 128px 0 100px; background: radial-gradient(120% 100% at 75% 30%, #64B0FF 0%, #3D8BFF 35%, #2F6FE0 65%, #3B3AC4 100%); }
.doc-hero-in { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.doc-hero .sticker { margin-bottom: 14px; transform: rotate(-2deg); }
.doc-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
.doc-hero .lead { font-size: 1.15rem; max-width: 700px; color: #EAF2FF; margin-bottom: .6em; }
.doc-hero .updated { font-size: .9rem; color: #CFE0FF; margin: 0; }
.doc-hero-art { width: 150px; flex-shrink: 0; filter: drop-shadow(0 14px 16px rgba(20,20,90,.35)); animation: bob 3.6s ease-in-out infinite; }
@media (max-width: 640px) { .doc-hero { padding: 108px 0 70px; } .doc-hero-art { display: none; } }
.doc-bg { background: #EEF4FF; background-image: radial-gradient(#D6E2F8 2px, transparent 2.5px); background-size: 26px 26px; }
.doc-wrap { max-width: 920px; padding-top: 34px; padding-bottom: 80px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
/* Puntos clave («En pocas palabras»): tarjeta blanca con la franja del color del tema
   (--c/--dk en .doc-wrap; azul en las páginas sin tema) y puntos numerados. */
.summary { position: relative; overflow: hidden; padding: 20px 22px 20px 27px; background: #fff; border: 1px solid var(--edge); border-radius: 18px; box-shadow: 0 12px 30px -22px rgba(27,35,80,.45); }
.summary::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, var(--blue)); }
.summary h2 { font-family: var(--body); font-weight: 900; font-size: .78rem; line-height: 1.3; letter-spacing: .09em; text-transform: uppercase; color: var(--dk, var(--blue-dark)); margin: 0 0 14px; }
.summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: key; }
.summary li { counter-increment: key; position: relative; padding-left: 36px; font-weight: 600; font-size: 1rem; line-height: 1.55; color: #2A3155; }
.summary li::before { content: counter(key); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .76rem; font-weight: 900; line-height: 1; color: var(--dk, var(--blue-dark)); background: color-mix(in srgb, var(--c, var(--blue)) 15%, #fff); }
.summary li strong, .summary li b { font-weight: 800; color: var(--ink); }
/* Índice plegable y numerado (cerrado en el teléfono). */
.toc { background: #fff; border: 1px solid var(--edge); border-radius: 18px; }
.toc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 15px 20px; font-weight: 900; font-size: .98rem; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.toc[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.toc-n { font-size: .74rem; font-weight: 900; color: var(--muted); background: var(--sky); border-radius: 999px; padding: 1px 8px; }
.toc ol { list-style: none; margin: 0; padding: 0 20px 10px; counter-reset: toc; columns: 2; column-gap: 32px; }
.toc li { counter-increment: toc; break-inside: avoid; }
.toc a { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink2); font-weight: 700; font-size: .93rem; line-height: 1.4; }
.toc a::before { content: counter(toc, decimal-leading-zero); flex-shrink: 0; min-width: 1.4em; font-weight: 900; font-size: .8rem; line-height: 1.75; color: var(--dk, var(--blue-dark)); }
.toc a:hover { color: var(--blue-dark); }
@media (max-width: 760px) { .toc ol { columns: 1; } }
.doc { padding: 10px 32px 28px; font-weight: 600; background: #fff; border: 3px solid var(--edge); border-bottom-width: 7px; border-radius: 26px; }
.doc section { padding-top: 24px; }
.doc section + section { border-top: 2px dashed var(--line); }
.doc h2 { font-size: 1.55rem; color: var(--ink); }
.doc h3 { font-family: var(--body); font-weight: 900; font-size: 1.08rem; margin: 1.1em 0 .4em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc strong { font-weight: 900; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 2px solid var(--line); vertical-align: top; }
/* Tablas de las guías en el teléfono: las palabras largas se parten y, si aun así no cabe, la tabla se desliza sola sin mover la página. */
.doc .tbl { overflow-x: auto; margin: 0 0 1em; }
.doc .tbl table { margin: 0; }
.doc th, .doc td { overflow-wrap: break-word; hyphens: auto; }
/* Tablas de 3 columnas o más en el teléfono: una tarjeta por fila; el nombre de la columna va
   arriba de cada dato, en chico. Con datos cortos (.tbl-tiles), en dos columnas. */
@media (max-width: 560px) {
  .doc .tbl-cards thead { display: none; }
  .doc .tbl-cards table, .doc .tbl-cards td { display: block; width: 100%; }
  .doc .tbl-cards tbody { display: grid; gap: 10px; }
  .doc .tbl-cards tr { display: block; padding: 12px 14px 10px; background: #F7F9FE; border: 1px solid var(--edge); border-radius: 14px; }
  .doc .tbl-cards td { padding: 4px 0 6px; border: 0; background: none !important; line-height: 1.45; }
  .doc .tbl-cards td:first-child { font-weight: 900; font-size: 1rem; color: var(--ink); white-space: normal; padding: 0 0 8px; margin-bottom: 6px; border-bottom: 1px solid var(--edge); }
  .doc .tbl-cards td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 1px; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1.35; color: var(--muted); }
  .doc .tbl-tiles tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .doc .tbl-tiles td:first-child { grid-column: 1 / -1; }
  .doc .tbl-tiles td[data-label] { font-weight: 800; color: var(--ink); }
}
.doc th { font-weight: 900; background: var(--sky); }
.table-scroll { overflow-x: auto; }
@media (max-width: 640px) { .doc { padding: 6px 18px 20px; } }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 11px 14px 11px 58px; background: var(--sky); border: 2px solid var(--sky3); border-bottom-width: 5px; border-radius: 18px; margin-bottom: 10px !important; }
.steps li::before { content: counter(step); position: absolute; left: 12px; top: 9px; width: 34px; height: 34px; border-radius: 11px; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: 'Lilita One', 'Nunito', sans-serif; font-size: 1.1rem; box-shadow: 0 3px 0 var(--blue-dark); }
.note { background: #FFF6E0; border: 2px solid #F6D894; border-radius: 16px; padding: 12px 16px; }
.related h2 { font-size: 1.2rem; }
.related div { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { text-decoration: none; font-weight: 900; color: var(--ink); background: #fff; border: 2px solid var(--edge); border-bottom-width: 5px; border-radius: 999px; padding: 6px 14px; }
.chip:hover { background: var(--gold-light); }
.contact { display: flex; gap: 20px; align-items: center; padding: 24px; background: linear-gradient(160deg, #4D97FF, #2366D1); color: #fff; border-radius: 26px; box-shadow: 0 8px 0 #1A4FA8; }
.contact-mascot { width: 120px; flex-shrink: 0; animation: bob 3.2s ease-in-out infinite; }
.contact h2 { font-size: 1.8rem; }
.contact p { color: #EAF2FF; }
.contact a:not(.btn) { color: #fff; }
@media (max-width: 560px) { .contact { flex-direction: column; text-align: center; } }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quick-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px; text-decoration: none; color: var(--ink); background: #fff; border: 3px solid var(--edge); border-bottom-width: 7px; border-radius: 22px; transition: transform .2s var(--spring); }
.quick-item:hover { transform: translateY(-4px); }
.quick-item img { width: 60px; height: 60px; }
.quick-item b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
html[lang="vi"] .quick-item b { font-weight: 900; }
.quick-item span { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .quick { grid-template-columns: 1fr; } .quick-item { display: grid; grid-template-columns: 60px 1fr; text-align: left; column-gap: 12px; } .quick-item img { grid-row: span 2; } }
.support-faq h2 { font-size: 1.8rem; }

/* --- Raíz (elegir idioma) y 404 ------------------------------------------- */
.chooser { min-height: 100vh; display: grid; place-items: center; padding: 90px 16px 24px; position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #64B0FF 0%, #3D8BFF 35%, #2F6FE0 65%, #3B3AC4 100%); }
.chooser-in { position: relative; z-index: 1; width: 100%; max-width: 460px; padding: 26px 22px; text-align: center; background: #fff; border-radius: 30px; border: 4px solid var(--ink); box-shadow: 0 10px 0 var(--ink); }
.chooser-in > img { width: 130px; margin: -86px auto 4px; animation: bob 3.2s ease-in-out infinite; }
.chooser-in > h1 { font-size: 2rem; }
.chooser-in ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.chooser-in li a { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: center; text-align: left; text-decoration: none; color: var(--ink); font-weight: 900; padding: 10px 14px; border: 3px solid var(--edge); border-bottom-width: 6px; border-radius: 18px; }
.chooser-in li a img { grid-row: span 2; }
.chooser-in li a small { color: var(--muted); font-weight: 700; font-size: .8rem; }
.chooser-in li a:hover { background: var(--sky); }
.notfound > div { padding: 14px 0; border-top: 2px dashed var(--line); }
.notfound h2 { font-size: 1.3rem; }

/* --- Teléfonos chicos ----------------------------------------------------- */
@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .hud { padding: 0 8px; top: 8px; }
  .hud-in { gap: 8px; padding: 6px 6px 6px 10px; }
  .brand { gap: 6px; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 1.05rem; }
  .lang summary { padding: 6px 8px; font-size: .85rem; }
  .hud-play { padding: 9px 11px 10px; font-size: .92rem; }
  .store { min-width: 0; }
  .game { padding: 12px 12px 18px; border-radius: 24px; }
  .answer { font-size: .98rem; padding: 8px 10px; }
  .doc { padding: 6px 14px 18px; }
  .doc th, .doc td { padding: 8px 6px; }
}
@media (max-width: 340px) { .hud .brand-name { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---- Páginas por tema (preguntas de muestra) ---- */
.topic-link { color: inherit; text-decoration: none; }
.topic-link::after { content: ''; position: absolute; inset: 0; border-radius: 24px; }
.topic-link:focus-visible { outline: none; }
.topic:has(.topic-link:focus-visible) { outline: 4px solid var(--gold); outline-offset: 4px; }
.topic-hero { background: radial-gradient(120% 100% at 75% 30%, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 55%), linear-gradient(160deg, var(--c), var(--dk)); }
.topic-hero .doc-hero-art { width: 170px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; font-weight: 800; margin-bottom: 12px; color: rgba(255,255,255,.85); }
.crumbs a { color: #fff; }
.tq-intro { text-align: center; }
.tq-intro .title { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .2em; }
.tq-intro p { color: var(--muted); font-weight: 700; margin: 0 auto; max-width: 620px; }
.tq { padding: 20px 24px 22px; background: #fff; border: 3px solid var(--edge); border-bottom-width: 7px; border-radius: 26px; }
.tq-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tq-n { font-family: var(--display); font-size: 1.15rem; color: var(--blue-dark); }
html[lang="vi"] .tq-n { font-weight: 900; }
.tq-lv { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: .9rem; background: var(--sky); border-radius: 999px; padding: 3px 12px; }
.tq-lv .lv-stars { font-size: 1rem; letter-spacing: 1px; }
.tq-stem { font-family: var(--body); font-weight: 900; font-size: 1.15rem; line-height: 1.35; margin: 0 0 12px; }
.tq-choices { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.tq-choices li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 16px; font-weight: 700; }
.tq-choices b { flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--sky2); font-weight: 900; }
.tq:has(.tq-ans[open]) .tq-choices li[data-ok] { background: #E3F8EE; border-color: var(--ok); }
.tq:has(.tq-ans[open]) .tq-choices li[data-ok] b { background: var(--ok); color: #fff; }
.tq-ans summary { display: inline-block; cursor: pointer; list-style: none; font-weight: 900; color: var(--gold-ink); background: var(--gold); border-radius: 999px; padding: 8px 18px; box-shadow: 0 4px 0 var(--gold-dark); }
.tq-ans summary::-webkit-details-marker { display: none; }
.tq-ans[open] summary { display: none; }
.tq-ans p { margin: 0 0 .5em; font-weight: 600; }
.tq-ok { display: flex; align-items: center; gap: 8px; color: var(--ok-dark); }
.tq-ok img { width: 26px; height: 26px; }
.tq-more .stores { margin-top: 12px; }
.contact a.store { color: var(--ink); }
.tq-note { font-size: .88rem; color: var(--muted); margin: 0; text-align: center; }
/* Guía de estudio en las páginas por tema (farmacología, urgencias) */
/* Guías de estudio: lectura larga. Renglón de ~66 caracteres centrado en la
   tarjeta, letra más grande y aire entre líneas, párrafos y secciones. */
.guide { --measure: 66ch; padding: 14px max(32px, calc((100% - var(--measure)) / 2)) 36px; font-size: 18px; line-height: 1.75; color: #2A3155; }
.guide .guide-by { margin: 22px 0 0; font-size: .85rem; color: var(--muted); font-weight: 700; line-height: 1.5; }
.guide section { padding-top: 38px; padding-bottom: 6px; }
.guide section + section { border-top: 2px solid #EDF1FA; }
.guide h2 { font-size: 1.6rem; line-height: 1.2; margin-bottom: .7em; color: var(--ink); }
.guide h3 { font-size: 1.05rem; margin: 1.6em 0 .5em; color: var(--ink); }
.guide p { margin: 0 0 1.15em; }
.guide ul, .guide ol { margin: 0 0 1.3em; padding-left: 1.25em; }
.guide li { margin-bottom: .7em; padding-left: .2em; }
.guide li::marker { color: var(--blue); }
.guide strong { font-weight: 800; color: var(--ink); }
.guide table { font-size: .9rem; line-height: 1.55; margin: .4em 0 1.5em; }
.guide th, .guide td { padding: 11px 12px; border-bottom: 1px solid #E3E9F5; }
.guide th { background: #EEF4FF; font-weight: 900; color: var(--ink); }
.guide td:first-child { font-weight: 800; color: var(--ink); white-space: nowrap; }
.guide tbody tr:nth-child(even) td { background: #FAFBFE; }
.guide .note { line-height: 1.6; margin-bottom: 1.3em; }
.guide .faq { margin-bottom: 1.2em; }
.guide .faq-item summary h3 { margin: 0; font-size: 1rem; }
.guide .faq-a { font-size: .95rem; line-height: 1.65; }
.guide .guide-src { font-size: .88rem; line-height: 1.55; color: var(--muted); }
.guide .guide-src li { margin-bottom: .45em; }
.guide .guide-note { font-size: .85rem; line-height: 1.55; color: var(--muted); margin: 0; }
@media (max-width: 640px) {
  .guide { padding: 6px 20px 24px; font-size: 17px; line-height: 1.7; }
  .guide h2 { font-size: 1.4rem; }
  .guide section { padding-top: 30px; }
}
@media (max-width: 480px) { .guide td:first-child { white-space: normal; } }
@media (max-width: 640px) { .tq { padding: 16px 16px 18px; } .topic-hero .doc-hero-art { width: 110px; } .tq-more { flex-direction: column; text-align: center; } .tq-more .stores { justify-content: center; } }

/* --- Aviso de Android («Avísame»): el botón de Google Play y su ventana ---------------- */
button.store { font: inherit; text-align: left; cursor: pointer; }
.store.is-notify { transition: transform .12s ease, box-shadow .12s ease; }
.store.is-notify:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink), 0 16px 26px rgba(27,35,80,.25); }
.store.is-notify:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.store.is-notify:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.store-badge { position: absolute; top: -13px; right: -8px; background: var(--gold); color: var(--gold-ink); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px 3px;
  font-family: var(--body); font-weight: 900; font-size: .72rem; line-height: 1.2; box-shadow: 0 3px 0 var(--ink); transform: rotate(4deg); white-space: nowrap; }
html[lang="vi"] .store-badge { font-weight: 900; }
dialog.wl { border: 0; padding: 0; background: transparent; width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: visible; color: var(--ink); }
dialog.wl::backdrop { background: rgba(27,35,80,.62); }
.wl-card { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 24px; padding: 22px 22px 24px; box-shadow: 0 8px 0 var(--ink), 0 22px 40px rgba(27,35,80,.35);
  text-align: center; max-height: calc(100dvh - 24px); overflow-y: auto; }
.wl-card img { display: block; margin: 0 auto 6px; }
.wl-card h2 { font-size: 1.6rem; margin: 0 0 8px; }
.wl-card p { margin: 0 0 14px; font-size: .98rem; line-height: 1.45; }
.wl-x { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--sky2); color: var(--ink); font-size: 1.05rem; cursor: pointer; }
.wl-x::before { content: '✕'; }
.wl-label { display: block; text-align: left; font-weight: 900; font-size: .88rem; margin: 4px 0 6px; }
.wl-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--sky); color: var(--ink); }
.wl-input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; background: #fff; }
.wl-consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: .86rem; line-height: 1.4; margin: 14px 0; cursor: pointer; }
.wl-consent input { flex-shrink: 0; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); }
.wl-consent a { color: var(--blue-dark); font-weight: 800; }
.wl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-error { margin: 0 0 12px !important; padding: 9px 12px; border-radius: 12px; background: #FFE4EA; color: #9B1535; font-weight: 800; font-size: .9rem !important; text-align: left; }
.wl-error[hidden], .wl-form[hidden], .wl-done[hidden] { display: none; }
.wl-submit { width: 100%; }
.wl-submit[disabled] { opacity: .7; cursor: progress; transform: none; }

/* --- Blog (solo es, pt y en) ------------------------------------------------ */
/* ---- Tarjetas del blog (portada, categorías, «Sigue leyendo», «Del blog» y guías) ----
   Borde fino, sombra suave y la etiqueta en el color del tema (--c/--dk en la tarjeta).
   En el teléfono, las normales son renglones con miniatura; la destacada sigue grande. */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.post-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--edge); border-radius: 18px; overflow: hidden; box-shadow: 0 12px 30px -24px rgba(27,35,80,.55); transition: transform .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -24px rgba(27,35,80,.55); }
.post-card[hidden] { display: none; }
.post-card-img { background: var(--sky); }
.post-card-img > img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-card-art { display: grid; place-items: center; aspect-ratio: 1200 / 630; background: radial-gradient(120% 100% at 75% 30%, rgba(255,255,255,.3), rgba(255,255,255,0) 55%), linear-gradient(160deg, var(--c), var(--dk)); }
.post-card-art img { width: 84px; height: 84px; filter: drop-shadow(0 8px 10px rgba(20,20,90,.3)); }
.post-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-family: var(--body); font-weight: 900; font-size: 1.12rem; line-height: 1.3; letter-spacing: -.005em; margin: 0; }
.post-link { color: inherit; text-decoration: none; }
.post-link::after { content: ''; position: absolute; inset: 0; }
.post-link:focus-visible { outline: none; }
.post-card:has(.post-link:focus-visible) { outline: 4px solid var(--gold); outline-offset: 3px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ptag { display: inline-block; font-size: .72rem; font-weight: 900; letter-spacing: .03em; color: var(--dk, var(--blue-dark)); background: color-mix(in srgb, var(--c, var(--blue)) 13%, #fff); border-radius: 999px; padding: 3px 10px; }
.ptag-new { color: #fff; background: var(--dk, var(--blue-dark)); }
.ptag-draft { color: #9B1535; background: #FFE4EA; }
.post-desc { margin: 0; font-size: .93rem; line-height: 1.5; color: var(--muted); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { margin: auto 0 0; padding-top: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.post-more { text-align: center; margin: 22px 0 0; }
.sec-blog { background: #EEF4FF; background-image: radial-gradient(#D6E2F8 2px, transparent 2.5px); background-size: 26px 26px; }
.sec-blog .sec-head p { color: var(--muted); }

/* Destacada: imagen y texto lado a lado en escritorio. */
.post-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.post-feature .post-card-img { height: 100%; }
.post-feature .post-card-img > img, .post-feature .post-card-art { height: 100%; }
.post-feature .post-card-body { padding: 28px 30px; justify-content: center; gap: 12px; }
.post-feature h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.2; letter-spacing: -.01em; }
.post-feature .post-desc { font-size: 1rem; -webkit-line-clamp: 4; }
.post-feature .post-meta { margin-top: 4px; }

/* Portada y categorías del blog */
.blog-index { padding-top: 26px; padding-bottom: 80px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.blog-h { font-family: var(--body); font-weight: 900; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin: 0 0 18px; }
.blog-sub { margin: -10px 0 18px; color: var(--muted); font-weight: 600; font-size: .98rem; line-height: 1.5; }
.cat-bar { margin: 0 -20px; }
.cat-bar-in { display: flex; gap: 8px; overflow-x: auto; padding: 2px 20px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-bar-in::-webkit-scrollbar { display: none; }
.cat-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--edge); color: var(--ink2); font-weight: 800; font-size: .92rem; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.cat-chip span { font-size: .74rem; font-weight: 900; color: var(--muted); background: var(--sky); border-radius: 999px; padding: 1px 7px; }
.cat-chip:hover { border-color: var(--sky3); }
.cat-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-chip.on span { background: rgba(255,255,255,.18); color: #fff; }
.guide-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guide-tile { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--edge); border-radius: 16px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: .93rem; line-height: 1.3; transition: transform .15s, box-shadow .15s; }
.guide-tile::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.guide-tile:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -22px rgba(27,35,80,.55); }
.guide-tile img { width: 44px; height: 44px; flex-shrink: 0; }
.post-rss { text-align: center; margin: 0; font-size: .88rem; font-weight: 800; }
.post-rss a { color: var(--muted); }
@media (min-width: 761px) { .cat-bar { margin: 0; } .cat-bar-in { flex-wrap: wrap; overflow: visible; padding: 0; } }
@media (max-width: 960px) { .guide-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .post-feature { display: flex; }
  .post-feature .post-card-body { padding: 18px 18px 20px; gap: 10px; }
  .post-feature .post-desc { -webkit-line-clamp: 3; }
}
@media (max-width: 560px) {
  .blog-index { padding-top: 18px; gap: 30px; }
  .blog-h { font-size: 1.25rem; margin-bottom: 14px; }
  .post-grid { gap: 12px; }
  .post-card:not(.post-feature) { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: stretch; border-radius: 16px; }
  .post-card:not(.post-feature) .post-card-img > img, .post-card:not(.post-feature) .post-card-art { height: 100%; aspect-ratio: auto; object-position: 100% 50%; min-height: 104px; }
  .post-card:not(.post-feature) .post-card-art img { width: 52px; height: 52px; }
  .post-card:not(.post-feature) .post-card-body { padding: 12px 14px; gap: 6px; }
  .post-card:not(.post-feature) h3 { font-size: 1rem; line-height: 1.3; }
  .post-card:not(.post-feature) .post-desc { display: none; }
  .post-card:not(.post-feature) .post-meta { font-size: .76rem; padding-top: 0; }
  .guide-tiles { gap: 10px; }
  .guide-tile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; font-size: .88rem; }
  .guide-tile img { width: 40px; height: 40px; }
}
@media (max-width: 400px) { .cat-bar { margin: 0 -16px; } .cat-bar-in { padding: 2px 16px 6px; } }

.draft-banner { margin: 0; padding: 12px 16px; background: #FFE4EA; border: 3px solid #FFB3C4; border-radius: 18px; color: #9B1535; font-weight: 900; text-align: center; }

.post-hero .sticker { text-decoration: none; color: var(--ink); }
.post-hero .ptag-draft { margin-left: 8px; }
.post .guide-by a { color: var(--blue-dark); font-weight: 800; }
.post-cover { margin: 22px 0 6px; }
.post-cover img, .post-fig img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--edge); background: var(--sky); }
.post-cover figcaption, .post-fig figcaption { margin-top: 8px; font-size: .8rem; line-height: 1.45; color: var(--muted); font-weight: 700; }
.post-cover figcaption a, .post-fig figcaption a { color: inherit; }
.post-fig { margin: 1.6em 0; }
.post-intro > p:first-child { font-size: 1.1em; font-weight: 600; line-height: 1.6; color: var(--ink); margin-top: 1.5em; }
.post h2 { scroll-margin-top: 90px; }
.post code { font-size: .92em; background: var(--sky); border-radius: 6px; padding: 1px 6px; }
.post hr { border: 0; border-top: 2px dashed var(--line); margin: 2em 0; }
.callout { margin: 0 0 1.3em; padding: 14px 18px; background: #FFF7E3; border: 0; border-left: 4px solid #F2B200; border-radius: 4px 14px 14px 4px; }
.callout p { margin: 0; font-size: .95em; line-height: 1.6; }
.callout p + p { margin-top: .45em; }

.app-line { display: flex; align-items: center; gap: 14px; margin: 1.6em 0; padding: 14px 16px; background: linear-gradient(160deg, #EAF4FF, #DCEBFF); border: 3px solid var(--sky3); border-bottom-width: 6px; border-radius: 20px; }
.app-line-mascot { width: 56px; height: 56px; flex-shrink: 0; }
.app-line p { margin: 0; flex: 1; text-align: left; font-size: .95rem; line-height: 1.45; font-weight: 800; color: var(--ink); }
.app-line .btn { flex-shrink: 0; text-decoration: none; }
@media (max-width: 560px) { .app-line { flex-wrap: wrap; } .app-line p { flex-basis: calc(100% - 72px); } .app-line .btn { width: 100%; text-align: center; } }

.post-pillar { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 20px 22px 20px 27px; background: #fff; border: 1px solid var(--edge); border-radius: 18px; box-shadow: 0 12px 30px -22px rgba(27,35,80,.45); }
.post-pillar::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.post-pillar > img { width: 68px; height: 68px; flex-shrink: 0; }
.post-pillar h2 { font-family: var(--body); font-weight: 900; font-size: 1.1rem; line-height: 1.3; margin-bottom: .3em; }
.post-pillar p { margin: 0 0 14px; font-weight: 600; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.post-pillar .btn { text-decoration: none; }
@media (max-width: 560px) { .post-pillar { align-items: flex-start; gap: 14px; padding: 18px 18px 18px 23px; } .post-pillar > img { width: 48px; height: 48px; } }

.post-app .app-points { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; text-align: left; }
.post-app .app-points li { position: relative; padding-left: 26px; font-weight: 700; color: #fff; }
.post-app .app-points li::before { content: '✓'; position: absolute; left: 0; top: 0; font-weight: 900; color: var(--gold); }
.post-app h2 { color: #fff; }

.post-related h2, .post-topic-list h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: .6em; }
.post-topic-list { margin-top: 6px; }

/* ---- Blog y guías: lectura (rediseño 2026-11-12) ----
   El encabezado con rayos y el bloque final de la app son el juego; el texto, sobrio:
   fondo liso, títulos en Nunito con la rayita del color del tema y, en el teléfono,
   el artículo a todo el ancho (sin tarjeta dentro de otra tarjeta). */
.guide .faq { gap: 10px; }
.guide .faq-item { border: 1px solid var(--edge); border-radius: 14px; }
.guide .faq-item[open] { border-color: var(--sky3); background: #FAFBFF; }
.guide .faq-item summary { padding: 15px 50px 15px 18px; }
.guide .faq-item summary img { display: none; }
.guide .faq-item summary::after, .guide .faq-item[open] summary::after { content: ''; right: 20px; width: 8px; height: 8px; border-radius: 0; background: none; box-shadow: none; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.guide .faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.guide .faq-a { padding: 0 18px 16px; color: #3A4468; }

.post-bg { background: #F3F6FC; }
.post-hero .crumbs [aria-current], .post-hero .crumbs > span[aria-hidden]:nth-last-child(2) { display: none; }
.post { border: 1px solid var(--edge); border-radius: 22px; box-shadow: 0 14px 34px -26px rgba(27,35,80,.5); }
.post .guide-by { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; line-height: 1.45; }
.post .guide-by img { width: 40px; height: 40px; flex-shrink: 0; padding: 4px; border-radius: 50%; background: var(--sky); }
.post .guide-by > span { display: flex; flex-direction: column; }
.post .guide-by a { white-space: nowrap; }
.post-app + .post-related { margin-top: 12px; }
.post section + section { border-top: 0; }
.post section { padding-top: 42px; }
.post h2 { font-family: var(--body); font-weight: 900; font-size: 1.62rem; line-height: 1.22; letter-spacing: -.01em; }
.post h2::before { content: ''; display: block; width: 32px; height: 4px; border-radius: 4px; margin-bottom: 14px; background: var(--c, var(--blue)); }
.post h3 { font-weight: 900; font-size: 1.12rem; line-height: 1.35; }
.post li { margin-bottom: .5em; }
.post li::marker { color: var(--c, var(--blue)); font-weight: 900; }
.app-line { border-width: 2px; border-bottom-width: 4px; }
@media (max-width: 640px) {
  .post-bg .doc-wrap { padding-top: 18px; gap: 16px; }
  .post-hero .lead { font-size: 1.02rem; line-height: 1.5; }
  .post { margin: 0 -20px; padding: 2px 20px 30px; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; font-size: 17px; line-height: 1.68; }
  .post h2 { font-size: 1.36rem; }
  .post section { padding-top: 34px; }
  .post .guide-by { margin-top: 22px; font-size: .82rem; }
  .summary { padding: 18px 18px 18px 23px; }
}
@media (max-width: 400px) { .post { margin: 0 -16px; padding: 2px 16px 26px; } }
