/* Greeny: verde, blanco, rojo y amarillo. Claro y oscuro segun el sistema. */
:root {
  --bg: #f3f7ec;
  --card: #ffffff;
  --ink: #1e2a1f;
  --muted: #5d6c5e;
  --line: #d9e2d4;
  --green: #2fa63b;
  --green-dk: #1d7a2a;
  --green-lt: #e3f4df;
  --red: #c9343a;
  --yellow: #f7c91e;
  --on-yellow: #1e2a1f;
  --points: #7a5900;
  --shadow: 0 2px 0 #d3ddcb;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a14;
    --card: #1f2b22;
    --ink: #eef4ea;
    --muted: #a3b1a4;
    --line: #3a4a3e;
    --green-lt: #2a4a30;
    --red: #ff8085;
    --points: #f7c91e;
    --shadow: 0 2px 0 #0a0f0b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 48px; outline: none; }
a { color: var(--green-dk); }
@media (prefers-color-scheme: dark) { a { color: #6fd67b; } }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: 1.3rem; margin-top: 36px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* cabecera */
.top { background: var(--green); border-bottom: 5px solid var(--green-dk); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.5rem; }
.brand-badge { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; }
.brand-badge img { width: 38px; height: 38px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a, .nav button { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 999px; font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { background: var(--green-dk); }
.nav .cta { background: var(--yellow); color: var(--on-yellow); }
.nav .cta:hover { background: #ffd94a; }
#nav-user { display: contents; }

.foot { border-top: 1px solid var(--line); padding: 18px 0; color: var(--muted); font-size: .875rem; }
.foot-row { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }

/* piezas */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.grid { display: grid; gap: 14px; }
.grid.games { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.stack { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.grid > *, .stack > * { min-width: 0; }
.row { display: flex; align-items: center; gap: 14px; }
.row > .grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; background: var(--green); color: #fff; }
.btn:hover { background: var(--green-dk); }
.btn.alt { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.alt:hover { box-shadow: inset 0 0 0 2px var(--green); background: var(--card); }
.btn.danger { background: none; color: var(--red); box-shadow: inset 0 0 0 2px var(--line); }
.btn.discord { background: #5865f2; }
.btn.discord:hover { background: #4752c4; }
.btn.github { background: #24292f; color: #fff; }
.btn.github:hover { background: #3a4048; }
.btn.download { background: var(--green); color: #fff; }
.btn.download:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .6; cursor: progress; }

.pill { display: inline-block; padding: 2px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.pill.ok { background: var(--green); color: #fff; }
.pill.no { background: var(--line); color: var(--ink); }
.pill.pts { background: var(--yellow); color: var(--on-yellow); }

.bar { height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--green); border-radius: 6px; }

.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; flex: none; overflow: hidden; }
.avatar.big { width: 96px; height: 96px; font-size: 2.4rem; }
.avatar.tiny { width: 36px; height: 36px; font-size: 1rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.icon { width: 56px; height: 56px; border-radius: 12px; background: var(--line); flex: none; display: grid; place-items: center; overflow: hidden; color: var(--muted); font-weight: 700; }
.icon img { width: 100%; height: 100%; object-fit: cover; }
.icon.done { background: var(--green); color: #fff; }
.locked .ach-name { color: var(--muted); }

.cover { aspect-ratio: 1; width: 100%; border-radius: 12px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 3rem; font-weight: 700; overflow: hidden; margin-bottom: 12px; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.small { width: 84px; margin: 0; font-size: 2rem; flex: none; }
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { box-shadow: 0 0 0 4px var(--yellow); }
a.card.row { display: flex; }

/* portada */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.hero img { width: min(240px, 34vw); height: auto; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 620px) { .hero { grid-template-columns: 1fr; } .hero img { justify-self: center; order: -1; width: 150px; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat b { display: block; font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .875rem; }

/* formularios */
form.stack { max-width: 460px; }
label { display: grid; gap: 4px; font-weight: 600; }
label .hint { font-weight: 400; color: var(--muted); font-size: .875rem; }
input, select { font: inherit; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); color: var(--ink); width: 100%; }
input:focus, select:focus { border-color: var(--green); outline: none; }
input.code { font-size: 1.6rem; letter-spacing: .3em; text-transform: uppercase; text-align: center; font-variant-numeric: tabular-nums; max-width: 260px; }
.msg { padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.msg.err { background: color-mix(in srgb, var(--red) 15%, var(--card)); color: var(--red); }
.msg.ok { background: var(--green-lt); color: var(--ink); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .875rem; max-width: 460px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.loading { color: var(--muted); }
.steps { margin: 0; padding-left: 1.2em; }
.steps li { margin-bottom: 6px; }

@media (prefers-reduced-motion: no-preference) {
  a.card, .btn { transition: box-shadow .12s, background-color .12s; }
}

/* contraseña con boton para verla */
.pw { display: flex; gap: 8px; }
.pw input { flex: 1; min-width: 0; }
.peek { font: inherit; font-weight: 600; padding: 0 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; min-width: 84px; }
.peek:hover { border-color: var(--green); }
.nav a, .nav button { display: inline-flex; align-items: center; gap: 6px; }
.nav img { width: 22px; height: 22px; }
.brand-badge img { width: 40px; height: 40px; }

/* lista de logros en Publicar */
h3 { font-size: 1.05rem; margin: 0 0 8px; }
.ach-list { overflow-x: auto; }
.ach-list table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.ach-list th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px 10px 4px 0; }
.ach-list td { padding: 5px 10px 5px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.ach-list .icon { width: 36px; height: 36px; border-radius: 8px; font-size: .8rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--green-lt); padding: 2px 6px; border-radius: 6px; }

/* logros que todavia no tienes: icono en gris */
.locked .icon img { filter: grayscale(1); opacity: .7; }
.btn.mini { padding: 5px 12px; font-size: .82rem; }
.cover-preview { display: flex; align-items: center; gap: 14px; }

/* nivel y medallas del perfil */
.pill.lvl { font-size: 1rem; padding: 5px 16px; }
.level .bar { height: 14px; }
/* copiar el enlace del perfil, junto al @usuario */
.link-copy { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; margin-left: 2px; vertical-align: -6px;
  border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; transition: color .15s ease, background .15s ease; }
.link-copy:hover, .link-copy:focus-visible { color: var(--ink); background: rgba(255, 255, 255, .08); }
.link-copy.done { color: #4ade80; }
.link-copy.done::after { content: "✓"; position: absolute; margin: -22px 0 0 18px; font-size: .75rem; font-weight: 800; }

/* seguidores / siguiendo */
.stat-btn { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.stat-btn:hover, .stat-btn[aria-expanded="true"] { border-color: var(--green); }
.follow-box { margin-top: 12px; }
a.stat-btn { text-decoration: none; }
.player-search { width: 100%; }
@media (max-width: 720px) { .follow-list.latest .follow-item:nth-child(n+4) { display: none; } }
.feed-row .avatar { width: 36px; height: 36px; }
.feed-who { color: var(--ink); font-weight: 600; }
.follow-box[hidden] { display: none; }
.follow-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.follow-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: inherit; background: rgba(255, 255, 255, .04); }
.follow-item:hover { background: rgba(255, 255, 255, .09); }

/* ultimos logros del perfil, en casillas */
.ach-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.ach-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px; text-decoration: none; color: inherit; min-width: 0; transition: transform .18s ease; }
.ach-tile:hover { transform: translateY(-3px); }
.ach-tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ach-tile-top .icon { width: 64px; height: 64px; }
.ach-tile-name { line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ach-tile-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; }
@media (max-width: 720px) { .ach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ach-tile-top .icon { width: 52px; height: 52px; } }

/* medallas del perfil: una fila, como en la app */
.badge-strip { display: flex; gap: 6px; overflow: hidden; padding: 4px 2px; }
.badge-mini { flex: 0 0 88px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.badge-mini img { width: 64px; height: 64px; transition: transform .16s ease; }
.badge-mini.earned:hover img { transform: scale(1.08) rotate(-3deg); }
.badge-mini:not(.earned) { opacity: .45; }
.badge-mini-name { font-size: .74rem; line-height: 1.2; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge-mini.earned .badge-mini-name { color: var(--ink); font-weight: 600; }
.badge-strip[hidden], .badge-box .badges[hidden] { display: none !important; }
.badge-strip { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.badge-box-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.badge-box .badges { margin-top: 4px; }
@media (max-width: 720px) { .badge-mini { flex-basis: 72px; } .badge-mini img { width: 52px; height: 52px; } }
.badges { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.badge { display: flex; gap: 14px; align-items: center; }
.badge:not(.earned) strong { color: var(--muted); }
.medal { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 1.6rem; color: #fff;
         background: var(--line); box-shadow: inset 0 0 0 3px var(--ink); }
.badge:not(.earned) .medal { box-shadow: none; }
.earned .medal.achievements { background: var(--green); }
.earned .medal.platinums { background: var(--yellow); color: var(--on-yellow); }
.earned .medal.games { background: #2b8fd9; }
.earned .medal.points { background: #e5484d; }
@media (max-width: 620px) { .level .row { flex-wrap: wrap; } .level .grow { flex-basis: 100%; order: 3; } }

/* iconos de logros con marco */
.icon { border: 3px solid var(--green-dk); border-radius: 14px; }
.icon:not(.done) { border-color: var(--line); }
.locked .icon { border-color: var(--line); }

/* estado de los juegos */
/* estado del juego: el color de su icono (gris, amarillo, azul, verde), transparente y con borde */
.pill.st-sin_empezar, .pill.st-prueba, .pill.st-jugable, .pill.st-perfecto { border: 1px solid; font-weight: 700; padding-left: 4px; }
.pill.st-sin_empezar { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: var(--ink); }
.pill.st-prueba { background: rgba(247, 201, 30, .16); border-color: rgba(247, 201, 30, .55); color: #ffe169; }
.pill.st-jugable { background: rgba(59, 130, 246, .2); border-color: rgba(96, 165, 250, .6); color: #a5cdff; }
.pill.st-perfecto { background: rgba(67, 208, 88, .18); border-color: rgba(67, 208, 88, .6); color: #8ff09c; }
/* frases sugeridas (Desarrollador) */
.preset-row { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; align-items: center; }
@media (max-width: 620px) { .preset-row { grid-template-columns: 1fr; } }
.btn.small { padding: 4px 12px; font-size: .85rem; }
/* medalla del logro: chip suave con un punto metalico; los puntos, en texto dorado sin relleno */
.pill.tier-bronce, .pill.tier-plata, .pill.tier-oro {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 7px; vertical-align: 1px;
  font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  background: var(--tier-bg); border: 1px solid var(--tier-line); color: var(--tier-ink); }
.pill.tier-bronce::before, .pill.tier-plata::before, .pill.tier-oro::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--tier-dot); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 0 6px var(--tier-line); }
.pill.tier-bronce { --tier-bg: rgba(205, 127, 50, .14); --tier-line: rgba(224, 146, 80, .5); --tier-ink: #f2b483; --tier-dot: radial-gradient(circle at 35% 30%, #f6c08f, #b56a2c 70%); }
.pill.tier-plata  { --tier-bg: rgba(210, 220, 230, .1); --tier-line: rgba(210, 220, 230, .42); --tier-ink: #dde5ec; --tier-dot: radial-gradient(circle at 35% 30%, #ffffff, #9aa5b1 70%); }
.pill.tier-oro    { --tier-bg: rgba(247, 201, 30, .12); --tier-line: rgba(247, 201, 30, .5); --tier-ink: #ffd84d; --tier-dot: radial-gradient(circle at 35% 30%, #fff3a8, #d9a400 70%); }
.pill.points { background: none; padding: 2px; color: #f7c91e; font-weight: 800; font-size: .8rem; letter-spacing: 0; vertical-align: 1px; }
.tier-select { padding: 4px 8px; border-radius: 999px; font-weight: 700; border: 0; }
.tier-select.tier-bronce { background: #b56a2c; color: #fff; }
.tier-select.tier-plata { background: #b4bcc6; color: #1e2a1f; }
.tier-select.tier-oro { background: var(--yellow); color: var(--on-yellow); }
.icon.tier-bronce { border-color: #b56a2c; }
.icon.tier-plata { border-color: #b4bcc6; }
.icon.tier-oro { border-color: var(--yellow); }
.locked .icon.tier-bronce, .locked .icon.tier-plata, .locked .icon.tier-oro { border-color: var(--line); }

/* ---- recursos nuevos ---- */
.avatar-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; max-width: 860px; }
.avatar-option { padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; line-height: 0; outline-offset: 3px; }
.avatar-option img { width: 100%; height: auto; border-radius: 50%; box-shadow: 0 0 0 3px transparent; transition: box-shadow .12s; }
.avatar-option:hover img { box-shadow: 0 0 0 3px var(--line); }
.avatar-option.on img { box-shadow: 0 0 0 4px var(--yellow); }
.medal-img { width: 64px; height: 64px; flex: none; }
.stat.with-icon { display: flex; align-items: center; gap: 12px; }
.stat.with-icon img { flex: none; }
/* perfil (6 casillas): icono y numero arriba, la etiqueta debajo a lo ancho, para que palabras largas
   como "achievements" o "seguidores" no se salgan ni se partan */
.stats:not(.three) .stat.with-icon { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; row-gap: 4px; padding: 14px; min-width: 0; }
.stats:not(.three) .stat.with-icon > div { display: contents; }
.stats:not(.three) .stat.with-icon img { width: 38px; height: 38px; }
.stats:not(.three) .stat.with-icon b { min-width: 0; }
.stats:not(.three) .stat.with-icon span { grid-column: 1 / -1; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill.with-icon { display: inline-flex; align-items: center; gap: 5px; }
.hero-logo { width: min(300px, 70vw); height: auto; margin-bottom: 6px; }
.hero .hero-mascot { width: min(260px, 34vw); height: auto; }
.cover img, .icon img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Desarrollador: pestañas y ancho de escritorio ---- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 20px; border-bottom: 2px solid var(--line); padding-bottom: 12px; }
.tab { border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 9px 20px; border-radius: 999px; background: var(--card); color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--green); color: #fff; box-shadow: none; }
.dev form.stack { max-width: none; }
.dev form.stack > label, .dev form.stack > .msg, .dev form.stack > .cover-preview { max-width: 520px; }
.dev .ach-list { overflow-x: auto; }
.dev .ach-list table { min-width: 640px; }
.dev .ach-list td, .dev .ach-list th { white-space: nowrap; padding-right: 18px; }
.dev .ach-list td:nth-child(3) { white-space: normal; min-width: 180px; }

/* ---- ranking y banderas ---- */
.flag { vertical-align: middle; }
.rank-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 14px 0 18px; position: relative; z-index: 30; }
.rank-filters select { max-width: 280px; }
.rank-row { text-decoration: none; color: inherit; gap: 14px; }
.rank-row:hover { box-shadow: inset 0 0 0 2px var(--green); }
.rank-row.me { box-shadow: inset 0 0 0 3px var(--yellow); }
.rank-pos { font-weight: 800; font-size: 1.25rem; min-width: 3ch; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
.rank-pos.top1 { color: #c79a00; } .rank-pos.top2 { color: #7d8894; } .rank-pos.top3 { color: #b56a2c; }
.rank-pts { font-size: 1.3rem; font-variant-numeric: tabular-nums; }

/* ---- animaciones: pocas y cortas; se apagan si el sistema pide menos movimiento ---- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
  main.wrap > * { animation: rise .32s ease-out both; }
  main.wrap > *:nth-child(2) { animation-delay: .04s; }
  main.wrap > *:nth-child(3) { animation-delay: .08s; }
  main.wrap > *:nth-child(4) { animation-delay: .12s; }
  main.wrap > *:nth-child(n+5) { animation-delay: .16s; }
  .dev-panel:not([hidden]) { animation: rise .22s ease-out both; }
  .card { transition: transform .16s ease, box-shadow .16s ease; }
  a.card:hover, .rank-row:hover { transform: translateY(-2px); }
  .btn, .tab { transition: transform .1s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease; }
  .btn:active, .tab:active { transform: scale(.96); }
  .bar > i { transform-origin: left center; animation: grow .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: .15s; }
  .hero .hero-mascot { animation: pop .5s ease-out both; animation-delay: .1s; }
  .medal-img, .icon, .avatar { transition: transform .16s ease; }
  .badge.earned:hover .medal-img, .card:hover > .icon { transform: scale(1.08) rotate(-3deg); }
  .avatar-option:hover img { transform: scale(1.06); }
  .avatar-option img { transition: transform .12s ease, box-shadow .12s ease; }
  .pill.ok, .rank-pos { transition: color .15s ease; }
}

/* ============================================================================
 * Tema oscuro en verde: fondo en degradado, barra flotante y tarjetas de cristal.
 * Va al final para mandar sobre lo de arriba; los colores salen de las variables.
 * ========================================================================== */
:root {
  --bg: #07140d;
  --card: rgba(255, 255, 255, .06);
  --card-solid: #12241a;
  --ink: #f2f7f1;
  --muted: #a9bcab;
  --line: rgba(255, 255, 255, .13);
  --green: #35c24a;
  --green-dk: #1f8f33;
  --green-lt: rgba(53, 194, 74, .18);
  --red: #ff8085;
  --points: #f7c91e;
  --shadow: 0 10px 30px rgba(0, 0, 0, .28);
  --radius: 20px;
  color-scheme: dark;
}
html { background: #07140d; }
body {
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(46, 160, 78, .55) 0%, transparent 62%),
    radial-gradient(900px 560px at 100% 4%, rgba(18, 120, 110, .45) 0%, transparent 58%),
    radial-gradient(800px 600px at 50% 110%, rgba(247, 201, 30, .08) 0%, transparent 60%),
    linear-gradient(180deg, #0c2a18 0%, #081a10 45%, #050e09 100%);
  background-attachment: fixed;
}
a { color: #7fe08a; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }

/* barra flotante */
.top { background: transparent; border: 0; position: sticky; top: 0; z-index: 20; padding-top: 14px; }
.top-row { background: rgba(8, 24, 15, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px 8px 12px; min-height: 60px; box-shadow: 0 12px 34px rgba(0, 0, 0, .35); }
.brand { font-weight: 800; letter-spacing: -.02em; }
.brand-badge { background: transparent; width: 42px; height: 42px; }
.brand-badge img { width: 42px; height: 42px; }
.nav a, .nav button, .user-menu summary { color: var(--ink); font-weight: 700; }
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); }
.nav .cta { background: linear-gradient(180deg, #ffd84a, #f2b90c); color: #1e2a1f; }
.nav .cta:hover { background: linear-gradient(180deg, #ffe169, #f7c91e); }

/* menu del usuario */
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, .08); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover, .user-menu[open] summary { background: rgba(255, 255, 255, .16); }
.user-menu .avatar.tiny { width: 30px; height: 30px; font-size: .9rem; }
.user-menu .caret { font-size: .8rem; opacity: .8; }
.user-menu[open] .caret { transform: rotate(180deg); }
.user-menu-list { position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; display: grid; gap: 2px; padding: 8px; border-radius: 16px;
  background: #10231a; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.user-menu-list a, .user-menu-list button { text-align: left; padding: 10px 12px; border-radius: 10px; width: 100%; }

/* tarjetas, botones y campos */
.card { border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn { background: linear-gradient(180deg, #43d058, #27a23a); box-shadow: 0 6px 18px rgba(39, 162, 58, .35); }
.btn:hover { background: linear-gradient(180deg, #55dc69, #2fb344); }
.btn.alt { background: rgba(255, 255, 255, .06); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.alt:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn.danger { box-shadow: inset 0 0 0 1.5px rgba(255, 128, 133, .5); }
.btn.discord { background: #5865f2; box-shadow: 0 6px 18px rgba(88, 101, 242, .35); }
input, select, textarea { background: rgba(0, 0, 0, .32) !important; color: var(--ink) !important; border: 1.5px solid var(--line) !important; border-radius: 12px !important; }
input:focus, select:focus, textarea:focus { border-color: var(--green) !important; }
select option { background: #10231a; color: var(--ink); }
code { background: rgba(255, 255, 255, .1); color: #c8f5cf; }
.tab { background: rgba(255, 255, 255, .06); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.tab.on { background: linear-gradient(180deg, #43d058, #27a23a); }
.tabs { border-bottom-color: var(--line); }
.foot { border-top-color: var(--line); }
.pill.no { background: rgba(255, 255, 255, .14); color: var(--ink); }
.bar { background: rgba(255, 255, 255, .12); }
.bar > i { background: linear-gradient(90deg, #2fb344, #9be15d); }
.avatar { background: #1f8f33; }
.icon, .cover { background: rgba(255, 255, 255, .08); }
.rank-row.me { box-shadow: inset 0 0 0 2px var(--yellow); }
.msg.err { color: #ffb3b6; }
.hero .lead, .muted { color: var(--muted); }
.user-menu-list a:hover, .user-menu-list button:hover { background: rgba(255, 255, 255, .1); }

/* entrar y crear cuenta */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: stretch; margin-top: 10px; }
.auth-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 40px 36px; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(520px 380px at 20% 0%, rgba(155, 225, 93, .85) 0%, transparent 62%), radial-gradient(520px 420px at 95% 30%, rgba(247, 201, 30, .55) 0%, transparent 60%),
              linear-gradient(180deg, #2fb344 0%, #136b3a 48%, #06160d 100%);
  border: 1px solid var(--line); }
.auth-hero > img:first-child { width: 200px; height: auto; margin-bottom: 14px; }
.auth-title { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.02; letter-spacing: -.03em; margin: 0 0 12px; }
.auth-lead { color: rgba(255, 255, 255, .88); font-size: 1.08rem; margin: 0 0 22px; max-width: 34ch; }
.auth-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 380px; }
.auth-steps li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .12); font-weight: 600; }
.auth-steps li.on { background: rgba(53, 194, 74, .3); border-color: rgba(127, 224, 138, .7); }
.auth-steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); font-size: .85rem; font-weight: 800; flex: none; }
.auth-steps li.on span { background: var(--green); }
.auth-mascot { position: absolute; right: 18px; top: 18px; width: 130px; height: auto; }
.auth-form { padding: 32px 30px; border-radius: 28px; align-self: center; }
.auth-form h1 { font-size: 2rem; }
.auth-form form.stack { max-width: none; }
.auth-form .btn { width: 100%; padding: 13px 18px; }
.auth-form .or { max-width: none; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; } .auth-hero { min-height: 0; padding: 28px 24px; } .auth-mascot { width: 92px; } }
@media (max-width: 620px) { .top-row { border-radius: 22px; } }

/* ---- contribuir ---- */
textarea { font: inherit; padding: 10px 12px; width: 100%; resize: vertical; min-height: 96px; }
.lead { font-size: 1.1rem; max-width: 62ch; }
.contrib { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; margin-top: 18px; }
.contrib-card { padding: 26px 26px; }
.contrib-list { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 6px; }
.btn.donate { width: 100%; padding: 13px 18px; background: linear-gradient(180deg, #ffd84a, #f2b90c); color: #1e2a1f; box-shadow: 0 6px 18px rgba(242, 185, 12, .3); }
.btn.donate:hover { background: linear-gradient(180deg, #ffe169, #f7c91e); }
.donor-note { margin-top: 18px; align-items: flex-start; }
.donor-note img { flex: none; }
.team-now { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); margin-bottom: 12px; }
.team-now img { border-radius: 50%; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.role { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .18); }
.role .pill { margin-left: 8px; }
.role.hot { border-color: rgba(247, 201, 30, .7); background: rgba(247, 201, 30, .08); }
.badge.donor { border-color: rgba(247, 201, 30, .6); }
.nav .nav-help { color: #ffe169; }
.lang-toggle { border: 1px solid var(--line) !important; font-size: .85rem !important; padding: 6px 10px !important; letter-spacing: .04em; }
@media (max-width: 820px) { .contrib { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .roles { grid-template-columns: 1fr; } }

/* ---- banderas ---- */
.flag { vertical-align: -4px; border-radius: 4px; }
h1 .flag { vertical-align: -3px; }
.field { display: grid; gap: 4px; }
.field-label { font-weight: 600; }
.flag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; max-width: 860px; margin-top: 6px; }
.flag-opt { display: grid; justify-items: center; gap: 2px; padding: 8px 4px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.flag-opt:hover { border-color: var(--green); color: var(--ink); }
.flag-opt.on { border-color: var(--yellow); background: rgba(247, 201, 30, .12); color: var(--ink); }
.flag-opt.none { grid-column: span 2; }
.flag-none { font-size: 1.4rem; line-height: 36px; }
.flag-drop { position: relative; }
.flag-drop summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(0, 0, 0, .32); font-weight: 600; }
.flag-drop summary::-webkit-details-marker { display: none; }
.flag-drop[open] summary { border-color: var(--green); }
.flag-drop-list { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: min(640px, 92vw); max-height: 360px; overflow: auto; padding: 12px; border-radius: 16px; background: #10231a; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.flag-drop-list .flag-grid { margin: 0; }

/* ver mas */
.more-btn { display: block; margin: 12px auto 0; }

/* comentarios */
.reviews { display: grid; gap: 10px; }
.review { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.review .who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; text-decoration: none; color: var(--ink); }
.review .who:hover strong { text-decoration: underline; }
.review .body { margin: 6px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.review .acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.like { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.like[aria-pressed="true"] { background: rgba(67, 208, 88, .22); border-color: #43d058; }
.like:disabled { cursor: default; opacity: .75; }
.review-form textarea { width: 100%; min-height: 90px; resize: vertical; }
.donor-mini { width: 20px; height: 20px; vertical-align: middle; }

/* celular: barra solida pegada arriba y menu desplegable */
.menu-toggle { display: none; }
@media (max-width: 1080px) {
  .top { padding-top: 0; }
  .top > .top-row { border-radius: 0; border-width: 0 0 1px; max-width: none; margin: 0; padding: 8px 16px; min-height: 56px;
    background: #0b2114; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .brand-badge, .brand-badge img { width: 36px; height: 36px; }
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px;
    border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .06); cursor: pointer; }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .top .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0 6px; }
  .top.open .nav { display: flex; }
  .top .nav a, .top .nav button, .top .nav .user-menu summary { justify-content: flex-start; padding: 12px 14px; border-radius: 12px; }
  .top .nav .lang-toggle { align-self: flex-start; }
  .user-menu-list { position: static; margin-top: 4px; box-shadow: none; }
  main.wrap { padding-top: 18px; }
  .row { flex-wrap: wrap; }
  .row > .right { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .badges { grid-template-columns: 1fr; }
}

/* captcha y discord */
.captcha { min-height: 65px; }
.captcha:empty { min-height: 0; }
.nav .nav-discord { color: #b9c0ff; }
.discord-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-links { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.foot-links [hidden] { display: none; }
.nav [hidden], .foot [hidden] { display: none !important; }

/* ---------- celular: menu alineado y portada centrada ---------- */
@media (max-width: 1080px) {
  /* todas las filas del menu empiezan en la misma linea y ocupan el ancho */
  .top .nav { gap: 4px; padding: 10px 0 12px; }
  .top .nav > a, .top .nav > button, .top .nav #nav-user > a, .top .nav .user-menu summary {
    display: flex; width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; margin: 0;
    font-size: 1.05rem; text-align: left; justify-content: flex-start; }
  .top .nav .lang-toggle { align-self: stretch; border: 0 !important; background: rgba(255, 255, 255, .06);
    font-size: 1.05rem !important; padding: 12px 14px !important; letter-spacing: 0; }
  .lang-toggle .long { display: inline !important; }
  .lang-toggle .short { display: none; }
  .top .nav .cta { justify-content: center; margin-top: 6px; }
  .top .nav .user-menu { width: 100%; }
  .top .nav .user-menu summary { background: rgba(255, 255, 255, .08); }
  .top .nav .user-menu .caret { margin-left: auto; }
  .top .nav .user-menu-list { position: static; border: 0; background: none; padding: 2px 0 0 12px; margin: 0; min-width: 0; }
  .top .nav .user-menu-list a, .top .nav .user-menu-list button { padding: 11px 14px; }
  /* el menu abierto no tapa la pantalla entera: si es largo, se desplaza */
  .top.open .nav { max-height: calc(100vh - 72px); overflow-y: auto; }

  /* portada: todo centrado y sin la mascota repetida (el logo ya la lleva) */
  .hero { text-align: center; gap: 8px; }
  .hero .hero-mascot { display: none; }
  .hero-logo { display: block; margin: 0 auto 8px; width: min(280px, 80vw); }
  .hero .lead { margin-left: auto; margin-right: auto; font-size: 1.05rem; }
  .hero .actions { justify-content: center; }
  .hero .actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
}
.lang-toggle .long { display: none; }

/* ---------- celular: cada pagina ---------- */
@media (max-width: 1080px) {
  .top .nav #nav-user > a.cta { justify-content: center; }
  /* juegos: dos columnas con la caratula arriba, mas compactas */
  .grid.games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid.games .card { padding: 10px; }
  .grid.games .cover { margin-bottom: 8px; border-radius: 10px; }
  .grid.games .pill { font-size: .72rem; }
  /* numeros de la portada: tres en una fila */
  .stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stats.three .stat { padding: 12px 8px; text-align: center; }
  .stats.three .stat b { font-size: 1.35rem; }
  .stats.three .stat span { font-size: .75rem; }
  .stats.three .stat.with-icon { flex-direction: column; gap: 6px; }
  .stats.three .stat.with-icon img { width: 34px; height: 34px; }
  /* cabecera de un juego: caratula y titulo juntos */
  .game-head { flex-wrap: nowrap; align-items: flex-start; gap: 14px; }
  .game-head .cover.small { width: 72px; }
  .game-head h1 { font-size: 1.5rem; line-height: 1.15; }
  .game-head .grow { flex: 1 1 0; min-width: 0; }
  /* logros: el estado y el porcentaje pasan a una linea propia debajo del texto */
  .ach-row { flex-wrap: wrap; }
  .ach-row > .grow { flex: 1 1 0; min-width: 0; }
  .ach-row > .right { flex: 1 1 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px;
    margin: 2px 0 0 0; padding-left: 74px; text-align: left; }
  /* perfil: todo centrado y el boton a lo ancho */
  .profile-head { flex-direction: column; text-align: center; gap: 10px; }
  .profile-head .grow { width: 100%; }
  .profile-head > .btn { width: 100%; justify-content: center; text-align: center; box-sizing: border-box; }
  /* recientes: la fecha mas pequena para dejar sitio al nombre */
  .card.row > .nowrap { font-size: .72rem; }
}
@media (max-width: 1080px) { .game-head p > .muted.small { display: none; } }

/* ---------- animaciones ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--rv-delay, 0ms); }
  .rv.in { opacity: 1; transform: none; }
  .bar.rv > i { transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .8, .2, 1) .15s; }
  .bar.rv.in > i { transform: scaleX(1); }
  .bar.rv { opacity: 1; transform: none; }
  /* la mascota de la portada flota despacio (solo en computadora) */
  @media (min-width: 1081px) {
    .hero .hero-mascot { animation: float 5s ease-in-out infinite; }
    .hero { position: relative; }
    .hero::after { content: ""; position: absolute; right: 2%; top: 50%; width: 320px; height: 320px; transform: translateY(-50%); z-index: -1;
      background: radial-gradient(circle, rgba(67, 208, 88, .28), transparent 65%); animation: glow 5s ease-in-out infinite; pointer-events: none; }
  }
  .live-dot::after { animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
  .bell-count { animation: pop .4s ease-out; }
  .btn { position: relative; overflow: hidden; }
  .btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
    transform: translateX(-120%); transition: transform .6s ease; pointer-events: none; }
  .btn:hover::after { transform: translateX(120%); }
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
@keyframes glow { 0%, 100% { opacity: .7; transform: translateY(-50%) scale(1); } 50% { opacity: 1; transform: translateY(-50%) scale(1.08); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- en vivo ---------- */
.live { display: flex; align-items: center; gap: 16px; }
.live-dot { position: relative; width: 14px; height: 14px; border-radius: 50%; background: #4ade80; flex: none; box-shadow: 0 0 0 5px rgba(74, 222, 128, .18); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #4ade80; }
.live b { font-size: 2rem; line-height: 1; display: block; letter-spacing: -.02em; }
.live span { color: var(--muted); font-size: .92rem; }
.live .live-sub { display: block; margin-top: 4px; font-size: .82rem; }
.home-top { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; margin-top: 18px; }
@media (max-width: 1080px) { .home-top { grid-template-columns: 1fr; } }

/* ---------- preguntas frecuentes ---------- */
.faq { margin-top: 28px; }
.faq h2 { margin-top: 0; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); margin-top: 10px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(255, 255, 255, .04); }
.faq-plus { color: var(--yellow); font-size: 1.3rem; line-height: 1; transition: transform .2s ease; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* ---------- como funciona y textos legales ---------- */
.how-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 8px; }
.how-part { text-align: center; }
.how-part img { width: 96px; height: 96px; }
.how-part h3 { margin: 8px 0 4px; }
.how-step { display: flex; gap: 16px; align-items: flex-start; margin-top: 10px; }
.how-step h3 { margin: 2px 0 6px; }
.how-step p { margin: 0 0 6px; }
.how-num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(180deg, #43d058, #27a23a); color: #fff; }
.how-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal h2 { font-size: 1.15rem; margin: 22px 0 6px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 1080px) { .how-parts { grid-template-columns: 1fr; } .how-part { display: grid; grid-template-columns: 72px 1fr; text-align: left; gap: 4px 14px; align-items: center; }
  .how-part img { width: 72px; height: 72px; grid-row: span 2; } .how-part h3 { margin: 0; } .how-part p { margin: 0; } }

/* ---------- pie de pagina ---------- */
.foot { margin-top: 56px; padding: 0 0 28px; border: 0; background: none; }
.foot-card { border: 1px solid var(--line); border-radius: 26px; padding: 32px 32px 22px;
  background: linear-gradient(160deg, rgba(67, 208, 88, .08), rgba(255, 255, 255, .02) 45%, rgba(18, 120, 110, .08)); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.foot-brand img { width: 38px; height: 38px; }
.foot-about { color: var(--muted); font-size: .92rem; margin: 12px 0 0; max-width: 38ch; }
.foot-col h4 { margin: 4px 0 12px; font-size: .95rem; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0; font-size: .92rem; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; }
.foot-legal { color: var(--muted); font-size: .8rem; max-width: 70ch; margin: 0; opacity: .85; }
.foot-social { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.foot-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); background: rgba(255, 255, 255, .05); transition: background .15s, color .15s; }
.foot-social a:hover { color: var(--ink); background: rgba(255, 255, 255, .12); }
.foot-social svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 1080px) { .foot-card { padding: 24px 20px 18px; border-radius: 20px; } .foot-bottom { flex-direction: column; align-items: flex-start; } }

/* ---------- avisos (campana) ---------- */
.bell { position: relative; display: inline-flex !important; align-items: center; justify-content: center; }
.bell svg { width: 22px; height: 22px; fill: currentColor; }
.bell-count { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff;
  font-size: .7rem; font-weight: 800; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px #0b2114; }
.notif { display: flex; gap: 14px; align-items: center; cursor: pointer; text-decoration: none; color: inherit; }
.notif:hover { background: rgba(255, 255, 255, .07); }
.notif.unread { border-color: rgba(67, 208, 88, .55); }
.notif.unread::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #43d058; flex: none; }
.notif-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); overflow: hidden; }
.notif-icon img { width: 40px; height: 40px; object-fit: contain; }
.notif-icon svg { width: 24px; height: 24px; fill: #ff6b8a; }

/* ---------- idioma ---------- */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); font-weight: 700; font-size: .85rem; color: var(--ink); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu .lang-long { display: none; }
.lang-list { position: absolute; right: 0; top: calc(100% + 10px); min-width: 170px; display: grid; gap: 2px; padding: 8px; border-radius: 14px;
  background: #10231a; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); z-index: 50; }
.lang-list button { text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.lang-list button:hover, .lang-list button[aria-current="true"] { background: rgba(255, 255, 255, .1); }
.lang-list button[aria-current="true"]::after { content: " ✓"; color: #43d058; }
.avatar:has(img) { background: transparent; }
.user-menu .avatar.tiny { width: 30px; height: 30px; }
@media (max-width: 1080px) {
  .top .nav .lang-menu { width: 100%; }
  .top .nav .lang-menu summary { display: flex; width: 100%; box-sizing: border-box; border: 0; padding: 12px 14px; border-radius: 12px; font-size: 1.05rem; background: rgba(255, 255, 255, .06); }
  .lang-menu .lang-short { display: none; }
  .lang-menu .lang-long { display: inline; }
  .lang-menu summary .caret { margin-left: auto; }
  .lang-list { position: static; background: none; border: 0; box-shadow: none; padding: 2px 0 0; min-width: 0; }
  .lang-list button { text-align: right; padding: 11px 14px; }
  /* submenu del usuario: a la derecha */
  .top .nav .user-menu-list { padding: 2px 0 0; }
  .top .nav .user-menu-list a, .top .nav .user-menu-list button { text-align: right; justify-content: flex-end; }
  .top .nav .bell { justify-content: flex-start; width: 100%; padding: 12px 14px; border-radius: 12px; gap: 10px; }
  .top .nav .bell::after { content: attr(data-label); font-size: 1.05rem; }
  .bell-count { position: static; margin-left: auto; order: 3; }
}
a.card.notif { display: flex; }
@media (max-width: 1080px) {
  .top .nav .lang-list button, .top .nav .user-menu-list a, .top .nav .user-menu-list button { display: flex; width: 100%; justify-content: flex-end; text-align: right; box-sizing: border-box; }
}
.faq-more { margin: 14px 0 0; text-align: right; }
.foot-brand img { border-radius: 50%; }
.lvl-pts { display: inline-flex; align-items: center; gap: 6px; }
.lvl-pts img { width: 18px; height: 18px; }
.like img { width: 20px; height: 20px; }
.lvl-tags { display: inline-flex; align-items: center; gap: 8px; }
.pill.hearts { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(180deg, #ff8fa6, #e53e5c); color: #fff; font-weight: 800; }
.pill.hearts img { width: 18px; height: 18px; }
@media (max-width: 1080px) { .level .lvl-tags { justify-content: center; width: 100%; } }
.pill.tag-friend { background: rgba(67, 208, 88, .2); color: #8ff09c; font-size: .72rem; }
.pill.tag-mine { background: rgba(247, 201, 30, .2); color: #ffe169; font-size: .72rem; }
.status-filter { margin: 14px 0 18px; }
.status-filter .tab { display: inline-flex; align-items: center; gap: 7px; }
.status-filter .tab img { width: 18px; height: 18px; }
.tab-count { font-size: .75rem; opacity: .75; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 1px 7px; }
.grid.games > [hidden] { display: none; }
@media (max-width: 720px) {
  .status-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .status-filter .tab { justify-content: center; padding: 8px 6px; font-size: .85rem; gap: 6px; min-width: 0; white-space: nowrap; }
  .status-filter .tab[data-st=""], .status-filter .tab[data-v=""] { grid-column: 1 / -1; }
  .status-filter .tab img { width: 16px; height: 16px; }
  .status-filter .tab-count { padding: 0 5px; }
}

/* filtro por estado: cada boton activo toma el color de su icono, como las etiquetas */
.status-filter .tab.on { box-shadow: inset 0 0 0 1.5px currentColor; }
.status-filter .tab[data-st=""].on { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.status-filter .tab[data-st="sin_empezar"].on { background: rgba(255, 255, 255, .12); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.status-filter .tab[data-st="prueba"].on { background: rgba(247, 201, 30, .18); color: #ffe169; box-shadow: inset 0 0 0 1.5px rgba(247, 201, 30, .65); }
.status-filter .tab[data-st="jugable"].on { background: rgba(59, 130, 246, .22); color: #a5cdff; box-shadow: inset 0 0 0 1.5px rgba(96, 165, 250, .7); }
.status-filter .tab[data-st="perfecto"].on { background: rgba(67, 208, 88, .2); color: #8ff09c; box-shadow: inset 0 0 0 1.5px rgba(67, 208, 88, .7); }

/* pagina de un juego: caratula del alto del titulo y su descripcion; comentario a lo ancho */
.game-head { align-items: center; gap: 18px; }
.game-head .cover.small { width: 128px; border-radius: 18px; }
form.stack.review-form { max-width: none; width: 100%; box-sizing: border-box; }
@media (max-width: 1080px) { .game-head .cover.small { width: 88px; border-radius: 14px; } .game-head { align-items: flex-start; } }

/* ojo para ver la contraseña, dentro del campo a la derecha */
.pw { position: relative; display: block !important; }
.pw input { width: 100%; box-sizing: border-box; padding-right: 48px; }
.pw .peek { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; min-width: 0; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; box-shadow: none; }
.pw .peek:hover { color: var(--ink); background: rgba(255, 255, 255, .08); border: 0; }
.pw .peek:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.pw .peek[aria-pressed="true"] { color: #8ff09c; }
.pw .peek svg { width: 22px; height: 22px; fill: currentColor; }

/* cabecera del perfil: foto | nombre y frase | datos y boton */
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(220px, 300px); gap: 22px; align-items: center; }
.profile-main h1 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-caption { margin: 10px 0 0; font-size: 1.1rem; }
.profile-side { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.side-row { display: grid; gap: 2px; }
.side-label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.side-value { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.side-btn, .profile-side > .btn { width: 100%; box-sizing: border-box; justify-content: center; text-align: center; margin-top: 4px; }
/* tocar tu foto = cambiarla */
.avatar-edit { position: relative; display: block; border-radius: 50%; line-height: 0; }
.avatar-edit .avatar { transition: filter .15s ease; }
.avatar-edit:hover .avatar { filter: brightness(.75); }
.avatar-edit-badge { position: absolute; right: 0; bottom: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #43d058, #27a23a); border: 3px solid #13241a; color: #fff; }
.avatar-edit-badge svg { width: 16px; height: 16px; fill: currentColor; }
.flash { animation: flash 1.6s ease-out 1; border-radius: 16px; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(67, 208, 88, .0); } 20% { box-shadow: 0 0 0 6px rgba(67, 208, 88, .45); } 100% { box-shadow: 0 0 0 0 rgba(67, 208, 88, 0); } }
/* corazones: el mismo tamaño que la etiqueta de nivel */
.pill.hearts { font-size: 1rem; padding: 5px 14px; gap: 7px; }
.pill.hearts img { width: 20px; height: 20px; }
@media (max-width: 1080px) {
  .profile-head { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
  .profile-main h1 { justify-content: center; }
  .profile-side { width: 100%; box-sizing: border-box; text-align: left; }
}
.profile-head .avatar.big { width: 120px; height: 120px; font-size: 3rem; }
@media (max-width: 1080px) { .profile-head .avatar.big { width: 104px; height: 104px; } }
.bell img { width: 24px; height: 24px; display: block; }

/* celular: el logo con la mascota al lado, en vez de logo y mascota por separado */
.hero-logo-mobile { display: none; }
@media (max-width: 1080px) {
  .hero .hero-logo { display: none; }
  .hero .hero-logo-mobile { display: block; width: min(380px, 92vw); height: auto; margin: 4px auto 10px; }
}
/* la foto del menu de arriba, mas grande */
.user-menu .avatar.tiny { width: 36px; height: 36px; }
.user-menu summary { padding: 4px 12px 4px 4px; }

/* medalla de donador: medalla, titulo y texto centrados, en su propio recuadro */
.donor-note { display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-top: 18px;
  padding: 18px 16px; border-radius: 16px; background: rgba(247, 201, 30, .07); border: 1px solid rgba(247, 201, 30, .28); }
.donor-note img { width: 84px; height: 84px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.donor-title { display: block; font-size: 1.05rem; color: #ffe169; }

/* celular: todo el menu alineado a la derecha */
@media (max-width: 1080px) {
  .top .nav > a, .top .nav > button, .top .nav #nav-user > a:not(.cta), .top .nav .lang-menu summary, .top .nav .user-menu summary {
    justify-content: flex-end; text-align: right; }
  .top .nav .lang-menu summary .caret, .top .nav .user-menu summary .caret { margin-left: 0; margin-right: auto; order: -1; }
  .top .nav .bell { justify-content: flex-end; flex-direction: row; }
  .top .nav .bell img { order: 1; }
  .top .nav .bell::after { order: 2; }
  .top .nav .bell .bell-count { order: 3; margin: 0 0 0 2px; }
}

/* interruptor (avisos en Ajustes) */
.pref-row { align-items: center; cursor: pointer; }
input.switch { appearance: none; -webkit-appearance: none; flex: none; width: 52px; height: 30px; border-radius: 999px; position: relative; cursor: pointer;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px var(--line); transition: background .2s ease; margin: 0; }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #e8efe9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .2s ease; }
input.switch:checked { background: linear-gradient(180deg, #43d058, #27a23a); box-shadow: none; }
input.switch:checked::after { transform: translateX(22px); background: #fff; }
input.switch:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* celular: el menu es un panel estrecho a la derecha, no de lado a lado */
@media (max-width: 1080px) {
  .top > .top-row { position: relative; }
  .top .nav { position: absolute; right: 12px; top: calc(100% + 6px); width: max-content; min-width: 230px; max-width: calc(100vw - 24px);
    box-sizing: border-box; padding: 8px !important; border-radius: 18px; background: #10231a; border: 1px solid var(--line);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .55); z-index: 60; flex-basis: auto !important; }
  .top.open .nav { max-height: calc(100vh - 90px); }
  .top .nav .user-menu, .top .nav .lang-menu { width: 100%; }
}

/* celular: campana y foto en la barra, al lado del menu */
.nav-quick { display: none; }
@media (max-width: 1080px) {
  .nav-quick { display: flex; align-items: center; gap: 8px; margin-left: auto; margin-right: 8px; }
  .nav-quick .bell { width: 44px; height: 44px; padding: 0; border-radius: 12px; justify-content: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
  .nav-quick .bell::after { content: none; }
  .nav-quick .bell img { width: 24px; height: 24px; }
  .nav-quick .bell-count { position: absolute; top: -4px; right: -4px; margin: 0; }
  .nav-quick .quick-me { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
  .nav-quick .quick-me .avatar.tiny { width: 34px; height: 34px; }
  .top .nav .bell { display: none !important; } /* ya esta en la barra */
}

/* idioma abreviado en la barra (solo celular) y Salir junto a Editar perfil */
.only-mobile { display: none !important; }
.side-actions { display: flex; gap: 8px; }
.side-actions .side-btn { flex: 1; margin-top: 4px; }
@media (max-width: 1080px) {
  .only-mobile { display: inline-flex !important; }
  /* en el menu ya no van tu nombre ni el idioma: estan arriba o en tu perfil */
  .top .nav .user-menu, .top .nav > .lang-menu { display: none !important; }
  .nav-quick .lang-quick { position: relative; width: auto !important; }
  .nav-quick .lang-quick summary { display: grid !important; place-items: center; width: 44px !important; height: 44px; padding: 0 !important; border-radius: 12px !important;
    background: rgba(255, 255, 255, .06) !important; border: 1px solid var(--line) !important; font-size: .9rem !important; }
  .nav-quick .lang-quick .lang-long, .nav-quick .lang-quick .caret { display: none !important; }
  .nav-quick .lang-quick .lang-short { display: inline !important; }
  .nav-quick .lang-quick .lang-list { position: absolute !important; right: 0; top: calc(100% + 8px); min-width: 150px !important; padding: 8px !important;
    background: #10231a !important; border: 1px solid var(--line) !important; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5) !important; z-index: 70; }
  .nav-quick .lang-quick .lang-list button { text-align: left !important; justify-content: flex-start !important; display: block; width: 100%; }
}

/* Desarrollador: en computadora va dentro del menu de tu perfil; en celular sigue en el menu */
.nav .only-mobile-link { display: none !important; }
@media (max-width: 1080px) { .top .nav .only-mobile-link { display: flex !important; } }
.feed { display: grid; gap: 8px; }
.feed-row { display: flex; align-items: center; gap: 12px; }


/* boton de Discord en la portada, con su icono */
.btn.discord, .btn.github, .btn.download { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.btn.discord svg, .btn.github svg, .btn.download svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
/* catalogo: version y logros en una sola fila */
.game-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; flex-wrap: wrap; }

/* portada: "¿Nuevo por aqui?" a lo ancho con los botones a la derecha */
.home-welcome { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.home-welcome .grow { flex: 1 1 220px; min-width: 0; }
.home-welcome .actions { margin: 0 0 0 auto; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .home-welcome .actions { width: 100%; }
  .home-welcome .actions .btn { flex: 1 1 100%; justify-content: center; }
}
/* portada: estante de juegos disponibles */
.shelf { margin-top: 18px; padding: 22px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.shelf-head h2 { margin: 0; }
.btn.small { padding: 8px 16px; font-size: .9rem; }
.shelf-row .shelf-item { flex: 0 0 180px; }
.shelf-item { display: flex; flex-direction: column; gap: 6px; padding: 10px; text-decoration: none; color: inherit; transition: transform .18s ease, border-color .18s ease; }
.shelf-item:hover { transform: translateY(-3px); }
.shelf-item .cover { margin: 0; }
.shelf-name { font-size: .95rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.shelf-sub { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--accent, #4ade80); font-weight: 600; }

@media (max-width: 720px) {
  .shelf { padding: 16px; }
  .shelf-row .shelf-item { flex-basis: 150px; }
}

/* Greeny en accion: videos y tira de capturas */
.showcase { margin-top: 22px; }
.showcase h2 { margin-top: 0; }
.showcase-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.showcase-video { margin: 0; }
.showcase-video video { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; display: block; background: #000; }
.showcase-video figcaption { margin-top: 6px; text-align: center; }
.showcase-row { margin-top: 16px; }
.showcase-shot { flex: 0 0 300px; border-radius: 10px; overflow: hidden; transition: transform .18s ease; }
.showcase-shot:hover { transform: translateY(-3px); }
.showcase-shot img { width: 100%; height: auto; display: block; }
.how-shot { width: 100%; max-width: 640px; height: auto; border-radius: 10px; margin: 8px 0 4px; display: block; }
@media (max-width: 720px) {
  .showcase-videos { grid-template-columns: 1fr; }
  .showcase-shot { flex-basis: 240px; }
}

/* cintas que se mueven solas (juegos disponibles y capturas): las mueve el JS y se pueden
   arrastrar con el dedo o el raton; sin barra visible */
.belt { overflow-x: auto; overflow-y: hidden; padding: 4px 0 6px; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.belt::-webkit-scrollbar { display: none; }
.belt:active { cursor: grabbing; }
.belt-track { display: flex; gap: 12px; width: max-content; }
.belt img { -webkit-user-drag: none; user-select: none; }

/* barras de progreso sin animacion: se apaga en Ajustes */
.no-bar-anim .bar > i { animation: none !important; }

/* reportar un logro: enlace discreto bajo el porcentaje */
.report-btn { background: none; border: 0; padding: 0; margin-top: 4px; color: var(--muted); font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; }
.report-btn:hover { color: var(--text, #fff); }
.report-btn:disabled { text-decoration: none; cursor: default; }

/* interruptores con el mismo dibujo que en la app */
input.switch { width: 62px; height: 30px; border-radius: 0; background: url("../img/toggle_off.png") center / contain no-repeat; box-shadow: none; border: 0; }
input.switch::after { display: none; }
input.switch:checked { background: url("../img/toggle_on.png") center / contain no-repeat; }
/* dispositivos vinculados y mi puesto en el perfil */
.device-icon { flex: none; width: 44px; height: 44px; object-fit: contain; }
.standing { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.standing-tile { display: flex; align-items: center; gap: 12px; padding: 14px; }
.standing-tile > div { display: flex; flex-direction: column; min-width: 0; }
.standing-tile strong { font-size: 1.15rem; }
.standing-devices { display: flex; gap: 8px; margin-top: 4px; }
@media (max-width: 900px) { .standing { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review .acts .btn.mini { margin-left: 6px; }

/* la cuadricula de banderas dentro de un campo no puede ensanchar la tarjeta: se reparte en el ancho que haya */
.field { min-width: 0; }
.field > * { min-width: 0; }
.flag-grid { width: 100%; min-width: 0; box-sizing: border-box; grid-template-columns: repeat(auto-fill, minmax(min(64px, 100%), 1fr)); }

/* nombre largo en la cuadricula: al pasar el raton se corre para leerlo entero */
.marquee > span { display: inline-block; }
a.card:hover .marquee, a.card:focus-visible .marquee { text-overflow: clip; }
a.card:hover .marquee > span, a.card:focus-visible .marquee > span { animation: marquee 6s ease-in-out infinite alternate; }
@keyframes marquee { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(min(0px, calc(var(--mw, 180px) - 100%))); } }

/* Como funciona: cada parte se abre y se cierra */
.how-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 14px; overflow: hidden; }
.how-section > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.how-section > summary::-webkit-details-marker { display: none; }
.how-section > summary:hover { background: rgba(255, 255, 255, .04); }
.how-section > summary img { flex: none; }
.how-section > summary strong { font-size: 1.1rem; }
.how-section[open] .faq-plus { transform: rotate(45deg); }
.how-section-body { padding: 0 20px 18px; }
.how-section-body .card { box-shadow: none; }
.how-section > summary .grow { flex: 1; min-width: 0; }
