/* Community pieces of the public site: header account slot, the home's "Today" modules, the Daily Beat page, the account
   page (/me), player profiles (/u/<handle>), challenges (/c/<code>), leaderboards and the legal page.
   Brand: night surfaces, lime for action, violet accents, DynaPuff titles, 24 px cards, pills, 3 px lime focus ring. */
.site-nav a.on { color: var(--lime); }
.acct { display: flex; align-items: center; margin-left: 8px; min-width: 44px; }
.site-top .site-nav { margin-left: auto; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.card:where(:not(.glow)) { background: var(--bg-1); }   /* (:where: a card's own colour, the Daily's violet, still wins) */
.card { border: 1px solid var(--line-subtle); border-radius: var(--r-lg); padding: 24px; }
.kicker { font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: 0.02em; color: var(--lime); }   /* (as written: nothing in capitals, the brand) */
.big-title { font-family: var(--font-display); font-weight: 600; }
.pill-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--lime); color: var(--night);
  font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform 0.18s var(--ease); white-space: nowrap; }
.pill-link:hover { transform: translateY(-2px); }
/* done until the next one (me.js dailyBtn): outlined, still, nothing to press */
.pill-link.is-done, .pill-link.is-done:hover { background: transparent; color: var(--lime); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--lime) 55%, transparent); cursor: default; transform: none; }
.pill-link.is-done svg { width: 18px; height: 18px; fill: currentColor; }
.pill-link.ghost { background: transparent; color: var(--ivory); border: 2px solid var(--line-strong); }
.pill-link.ghost:hover { border-color: var(--lime); color: var(--lime); }
.pill-link.violet { background: var(--violet); }
.pill-link:disabled { opacity: 0.5; cursor: default; transform: none; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 24px 12px; color: var(--tx-lo); }
.empty-state img { width: 64px; opacity: 0.9; }
.empty-state p { max-width: 36ch; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--bg-2); color: var(--tx-mid); font-size: 14px; font-weight: 600; }
.chip.lime { background: var(--lime); color: var(--night); }
.chip.violet { background: rgba(164, 123, 255, 0.18); color: var(--violet-soft); }
.chip.coral { background: rgba(255, 122, 89, 0.18); color: var(--coral); }
.chip.coral.is-cold { background: rgba(255, 122, 89, 0.1); color: rgba(255, 122, 89, 0.8); }
.chip svg { width: 15px; height: 15px; }
.count-down { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ivory); }

/* ---------- home: today on Pick a Beat ---------- */
.live { padding-top: 56px; padding-bottom: 8px; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.daily-card { position: relative; overflow: hidden; background: radial-gradient(55% 80% at 96% 4%, rgba(255, 95, 200, 0.38), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(210, 255, 77, 0.2), transparent 70%), linear-gradient(150deg, #7650E6, #4B2FA8 70%); border: 0; display: flex; flex-direction: column; gap: 12px; color: var(--ivory); }
/* (lights instead of the mascot drawn behind: its eyes sat on the Play button — the user, 2026-10-24: «aquí se montaron los ojos
   sobre el botón, este es uno de los casos que podríamos usar los fondos con los difuminados») */
.daily-card .kicker { color: var(--lime); }
.daily-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 40px; }
.daily-card .meta { color: rgba(250, 247, 242, 0.8); }
.daily-card .pill-link { align-self: flex-start; margin-top: 4px; position: relative; z-index: 1; }
.mini-board { list-style: none; display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.mini-board li { display: grid; grid-template-columns: 28px 32px 1fr auto; gap: 8px; align-items: center; font-size: 15px; }
.mini-board li > span:first-child { color: rgba(250, 247, 242, 0.7); font-weight: 700; }
.mini-board b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-board em { font-style: normal; font-variant-numeric: tabular-nums; color: rgba(250, 247, 242, 0.85); }
.mix-card h3, .spot-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 32px; margin: 6px 0 4px; }
.tasks { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.tasks li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; font-size: 15px; color: var(--tx-mid); }
.tasks li i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: var(--night); }
.tasks li.done i { background: var(--lime); border-color: var(--lime); }
.tasks li.done span { color: var(--tx-lo); text-decoration: line-through; text-decoration-color: rgba(250, 247, 242, 0.3); }
.tasks li em { font-style: normal; font-size: 13px; color: var(--tx-lo); font-variant-numeric: tabular-nums; }
.spot-who { display: flex; align-items: center; gap: 14px; margin: 14px 0 8px; text-decoration: none; color: var(--ivory); }
.spot-who b { font-size: 20px; }
.spot-who small { display: block; color: var(--tx-lo); font-size: 14px; font-weight: 400; }
.people { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.people a { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; text-decoration: none; color: var(--tx-hi); font-weight: 600; }
.people em { font-style: normal; color: var(--tx-lo); font-size: 14px; font-weight: 400; }

/* ---------- boards ---------- */
.board { list-style: none; display: flex; flex-direction: column; }
.board li { display: grid; grid-template-columns: 44px 40px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 8px; border-bottom: 1px solid var(--line-subtle); }
.board li.me { background: var(--tint-accent-low); border-radius: 14px; border-bottom-color: transparent; }
.board .rk { font-weight: 700; color: var(--tx-lo); font-variant-numeric: tabular-nums; }
.board li:nth-child(-n+3) .rk { color: var(--lime); }
.board a.who { color: var(--tx-hi); text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board a.who:hover { color: var(--lime); }
.board .pts { font-variant-numeric: tabular-nums; font-weight: 700; }
.board .acc { font-variant-numeric: tabular-nums; color: var(--tx-lo); font-size: 14px; min-width: 56px; text-align: right; }
.board .gap { padding: 2px 8px; color: var(--tx-faint); text-align: center; display: block; grid-template-columns: none; border: 0; }
.heat { display: inline-flex; gap: 2px; vertical-align: middle; }
.heat i { width: 7px; height: 16px; border-radius: 2px; background: var(--bg-3); }
.heat i.h3 { background: #6BE39A; } .heat i.h2 { background: #FFE27A; } .heat i.h1 { background: #FFB04D; } .heat i.h0 { background: #FF6B6B; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--tx-mid); font: 600 14px var(--font); cursor: pointer; }
.tabs button.on { background: var(--lime); border-color: var(--lime); color: var(--night); }
.selects { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.selects select { min-height: 48px; border-radius: 999px; padding: 0 52px 0 18px; background-color: var(--bg-2); color: var(--tx-hi); border: 1px solid var(--line); font: 600 14px var(--font); }

/* ---------- daily page ---------- */
.daily-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; padding-top: 8px; }
.daily-hero .daily-card { padding: 32px; }
.daily-hero .daily-card h1 { font-family: var(--font-display); font-weight: 600; font-size: 52px; line-height: 58px; }
.tries { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.tries i { width: 16px; height: 16px; border-radius: 50%; background: var(--lime); }
.tries i.used { background: transparent; border: 2px solid rgba(250, 247, 242, 0.45); }
.how { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.how li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--tx-mid); }
.how li b { width: 26px; height: 26px; border-radius: 50%; background: var(--violet); color: var(--night); display: grid; place-items: center; font-size: 14px; }
.daily-play { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 32px; margin-top: 40px; align-items: start; }
.daily-play .phone { width: 376px; height: 720px; }
.archive { display: flex; flex-direction: column; gap: 10px; }
.archive a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--bg-2); text-decoration: none; color: var(--tx-hi); }
.archive a:hover { outline: 1.5px solid var(--lime); }
.archive small { color: var(--tx-lo); }

/* ---------- account / profile ---------- */
.prof-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 8px 0 24px; }
.prof-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 50px; overflow-wrap: anywhere; }
.prof-head .title { color: var(--violet-soft); font-weight: 600; }
.prof-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.prof-chips { margin-top: 8px; }
.prof-actions .is-narrow { display: none; }   /* (the ⋯ menu: a phone's, below) */
/* the bell: Settings › Notifications */
.prof-bell { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: none; color: var(--tx-hi);
  box-shadow: inset 0 0 0 1.5px var(--line); border: 0; cursor: pointer; }
.prof-bell:hover { background: var(--bg-3); }
.prof-bell:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stats .st { background: var(--bg-1); border: 1px solid var(--line-subtle); border-radius: 18px; padding: 16px; }
.stats .st b { display: block; font-size: 28px; line-height: 34px; font-variant-numeric: tabular-nums; }
.stats .st span { color: var(--tx-lo); font-size: 14px; }
.stats .st.lime b { color: var(--lime); }
/* the profile's numbers (me.js profile): a brand colour each, night text, its icon in a badge at the corner (play.css .pg-tile) */
.stats-color .st { position: relative; overflow: hidden; border: 0; border-radius: 22px; padding: 18px 18px 16px; color: var(--night); }
.stats-color .st b { padding-right: 44px; }
.stats-color .st span:not(.st-ico) { color: var(--night); opacity: 0.74; font-weight: 600; }
.stats-color .st.is-lime { background: var(--lime); }
.stats-color .st.is-pink { background: var(--pink); }
.stats-color .st.is-violet { background: var(--violet); }
.stats-color .st.is-coral { background: var(--coral); }
.stats-color .st.is-cyan { background: var(--cyan); }
.stats-color .st.is-blue { background: var(--blue); }
.stats-color .st .st-ico { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: rgba(19, 19, 27, 0.13); color: var(--night); opacity: 1; }
.st-ico svg { width: 22px; height: 22px; }
.me-tabs { position: sticky; top: var(--top-h, 0px); z-index: 5; background: var(--bg-0); padding: 12px 0; margin-bottom: 8px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.me-tabs::-webkit-scrollbar { display: none; }
.me-tabs button { flex: none; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ach { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px; border-radius: 18px; background: var(--bg-1); border: 1px solid var(--line-subtle); }
.ach .medal { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); color: var(--tx-faint); }
.ach .medal svg { width: 22px; height: 22px; }
.ach.got .medal { color: var(--night); }
.ach.got.bronze .medal { background: #E3A26B; } .ach.got.silver .medal { background: #D6DCE6; } .ach.got.gold .medal { background: #FFD34D; } .ach.got.platinum .medal { background: linear-gradient(135deg, #D2FF4D, #A47BFF); }
.ach b { display: block; font-size: 16px; }
.ach p { color: var(--tx-lo); font-size: 14px; line-height: 20px; margin-top: 2px; }
.ach .bar { height: 6px; border-radius: 3px; background: var(--bg-3); margin-top: 8px; overflow: hidden; }
.ach .bar i { display: block; height: 100%; background: var(--violet); border-radius: 3px; }
.ach .rar { font-size: 12px; color: var(--tx-faint); margin-top: 6px; }
/* a game's own badge (its config/achievements.json): grey until unlocked */
.ach.has-badge { grid-template-columns: 64px 1fr; align-items: start; }
/* the badge in a circle of its game's colour (--c from common.js achCard: its style's, lime for Pick a Beat's own) */
.ach .ach-badge { width: 64px; height: 64px; padding: 6px; box-sizing: border-box; object-fit: contain; border-radius: 50%;
  background: color-mix(in srgb, var(--c, var(--bg-3)) 30%, var(--bg-2)); border: 2px solid color-mix(in srgb, var(--c, var(--line-strong)) 75%, transparent);
  filter: grayscale(1) opacity(.42); transition: filter .2s; }
.ach.got .ach-badge { filter: none; }
.ach .medal { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c, transparent) 75%, transparent); }
.ach-reward { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg-3); color: var(--tx-lo); }
.ach.got .ach-reward { background: var(--lime); color: var(--night); }
/* /me › Achievements: All · Completed · Uncompleted with their counts (the leaderboard's segmented look: shared/sdk/board.js) */
/* one row: on a narrow phone a button gives up its padding first, then its words go on two lines */
.ach-seg { display: flex; width: fit-content; max-width: 100%; margin: 0 0 8px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.ach-seg button { flex: 0 1 auto; min-height: 48px; padding: 4px 16px; border: 0; border-radius: 999px; background: none; color: var(--tx-lo); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.15; text-align: center; cursor: pointer; }
@media (max-width: 420px) { .ach-seg button { padding: 4px 10px; font-size: 14px; } }
.ach-seg button[aria-pressed="true"] { background: var(--lime); color: var(--night); }
.ach-seg button:not([aria-pressed="true"]):hover { color: var(--tx-hi); }
.ach[hidden], .ach-grid[hidden], .ach-head[hidden] { display: none; }
.ach-none { margin-top: 16px; }
.ach-head { display: flex; align-items: baseline; gap: 10px; }
.ach-head a { color: inherit; text-decoration: none; }
.ach-head a:hover { text-decoration: underline; }
.ach-head small { font-size: 14px; font-weight: 600; color: var(--tx-faint); }
@media (prefers-reduced-motion: reduce) { .ach .ach-badge { transition: none; } }
.ach:not(.got) { opacity: 0.86; }

/* avatar editor */
.av-editor { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.av-editor > * { min-width: 0; }
.av-stage { position: sticky; top: calc(var(--top-h, 0px) + 16px); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px; }
.av-stage .pab-av { width: 240px !important; height: 240px !important; }
.wallet { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--lime); }
.wallet svg { width: 18px; height: 18px; }
.slot-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: thin; }
.slot-tabs button { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--tx-mid); font: 600 14px var(--font); cursor: pointer; text-transform: capitalize; }
.slot-tabs button.on { border-color: var(--lime); color: var(--lime); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 10px; border-radius: 18px; background: var(--bg-1); border: 2px solid var(--line-subtle);
  cursor: pointer; color: var(--tx-hi); font: 600 14px var(--font); text-align: center; }
.item:hover { border-color: var(--line-strong); }
.item.on { border-color: var(--lime); }
.item .pab-av { width: 88px !important; height: 88px !important; }
.item small { color: var(--tx-lo); font-weight: 500; font-size: 12px; line-height: 16px; }
/* not yours yet: still in color (you can try it on), marked with a lock; a picked one gets a dashed lime border */
.item.locked .pab-av { opacity: 0.88; }
.item.locked.on { border-style: dashed; }
.item .lock { position: absolute; z-index: 1; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-3); color: var(--tx-lo); display: grid; place-items: center; }
.item .lock svg { width: 12px; height: 12px; }
/* the shop's price on a tile, as the Beats chip; dimmed while you are short */
.item .price { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--lime); color: var(--night); font-weight: 700; font-size: 12px; line-height: 18px; }
.item .price svg { width: 13px; height: 13px; }
.item .price.is-short { opacity: 0.5; }
/* what you wear: a small On mark */
.item .on-mark { position: absolute; z-index: 1; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 5px; border-radius: 999px;
  background: var(--lime); color: var(--night); font-size: 11px; font-weight: 800; line-height: 16px; }
.item .on-mark svg { width: 12px; height: 12px; }
/* the card is a box; a see-through button over all of it picks it (me.js avatarTab tile), and the marks let taps through */
.item-hit { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.item-hit:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.item .on-mark, .item .lock { pointer-events: none; }
/* picked: its one button where its Yours or price line was (over the pick button), the price inside it; dimmed when short */
.item-do { position: relative; z-index: 2; width: 100%; margin-top: 2px; padding: 4px 10px; flex-wrap: wrap; gap: 0 6px; font-size: 14px; line-height: 17px;
  animation: item-do-in 0.18s var(--ease); }
.item-do svg { width: 15px; height: 15px; }
.item-do-price { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.item-do.is-short { opacity: 0.45; cursor: not-allowed; }
.item-do.is-short:hover { transform: none; }
.item .item-do-note { position: relative; z-index: 2; color: var(--tx-mid); }
.item .item-state { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; color: var(--lime); font-weight: 700; font-size: 13px; }
.item-state svg { width: 14px; height: 14px; }
@keyframes item-do-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .item-do { animation: none; } }
@media (max-width: 600px) {   /* a phone: On as a lime check where the lock goes; the card's button a little tighter */
  .item .on-mark { width: 22px; height: 22px; padding: 0; gap: 0; justify-content: center; font-size: 0; }
  .item .on-mark svg { width: 13px; height: 13px; }
  .item-do { padding: 4px 8px; font-size: 13px; }
}

/* notifications + settings */
.notes { list-style: none; display: flex; flex-direction: column; }
.notes li { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line-subtle); }
.notes li i { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.notes li.new i { background: var(--lime); }
.notes small { color: var(--tx-lo); white-space: nowrap; }
.settings { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-subtle); }
.set-row b { display: block; }
.set-row p { color: var(--tx-lo); font-size: 14px; line-height: 20px; margin-top: 2px; }
.set-row .input, .set-row select { min-height: 48px; font-size: 15px; }
.danger-zone { border: 1px solid rgba(255, 107, 107, 0.35); border-radius: var(--r-lg); padding: 20px; }
.btn-danger.big { min-height: 48px; padding: 0 20px; font-size: 15px; }
.signin-wall { max-width: 560px; margin: 24px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 28px; }
.signin-wall img { width: 96px; }
.signin-wall h1 { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 46px; }
.signin-wall ul { list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--tx-mid); text-align: left; }
.signin-wall li::before { content: '♪'; color: var(--lime); margin-right: 10px; }
.page { padding-top: 8px; padding-bottom: 72px; min-height: calc(100dvh - 240px); }
.sec-title { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 34px; margin: 32px 0 16px; }

/* challenge */
.duel { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.duel-head { display: flex; gap: 20px; align-items: center; }
.duel-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 46px; }

/* the game's box art on its page */
.box-art { display: block; width: min(320px, 100%); height: auto; margin-top: 24px; border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); transform: rotate(-1.5deg); }

/* legal */
.legal { max-width: 760px; }
.legal h1 { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 50px; margin-bottom: 8px; }
.legal h2 { font-size: 26px; line-height: 32px; margin: 40px 0 12px; scroll-margin-top: 24px; }
.legal h3 { font-size: 18px; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--tx-mid); font-size: 16px; line-height: 26px; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal .note { background: rgba(255, 201, 77, 0.12); border: 1px solid rgba(255, 201, 77, 0.4); color: var(--ivory); border-radius: 16px; padding: 14px 16px; margin: 16px 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .live-grid { grid-template-columns: 1fr 1fr; }
  .live-grid .daily-card { grid-column: 1 / 3; }
  .daily-play { grid-template-columns: 1fr; }
  .daily-play .stage-wrap { display: none; }
}
@media (max-width: 900px) {
  .site-top .site-nav { margin-left: 0; }   /* a row of pills under the logo (site.css) */
  .acct { margin-left: auto; }
  .daily-hero { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .av-editor { grid-template-columns: minmax(0, 1fr); }
  .av-stage { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .av-stage .pab-av { width: 180px !important; height: 180px !important; }
  .prof-head { grid-template-columns: auto minmax(0, 1fr); }
  .prof-actions { grid-column: 1 / 3; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .live { padding-top: 40px; }
  .live-grid { grid-template-columns: 1fr; gap: 16px; }
  .live-grid .daily-card { grid-column: auto; }
  .card { padding: 20px; }
  .daily-card h3 { font-size: 28px; line-height: 34px; }
  .daily-hero .daily-card { padding: 24px 20px; }
  .daily-hero .daily-card h1 { font-size: 36px; line-height: 42px; }
  .prof-head { gap: 14px; }
  .prof-head h1 { font-size: 30px; line-height: 36px; }
  .prof-head .pab-av { width: 72px !important; height: 72px !important; }
  .board li { grid-template-columns: 34px 32px minmax(0, 1fr) auto; gap: 8px; padding: 10px 4px; }
  .board .acc { display: none; }
  .items { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .item .pab-av { width: 72px !important; height: 72px !important; }
  .set-row { grid-template-columns: 1fr; }
  .duel-head h1, .signin-wall h1, .legal h1 { font-size: 30px; line-height: 36px; }
  .pill-link { min-height: 48px; }
}

/* The Pick a Beat level (rewards phase 2): the badge, the Beats and the bar to the next level */
.level-card { margin-bottom: 24px; display: grid; gap: 12px; }
.level-top { display: flex; align-items: center; gap: 20px; }
.level-badge { flex: none; width: 88px; height: 88px; border-radius: 24px; background: var(--lime); color: var(--night); display: grid; place-content: center; text-align: center; }
.level-badge span { font-size: 13px; font-weight: 700; }
.level-badge b { font-family: var(--font-display); font-size: 40px; line-height: 40px; }
.level-main { flex: 1; min-width: 0; display: grid; gap: 8px; }
.level-beats { margin: 0; font-size: 18px; }
.level-beats b { font-family: var(--font-display); font-size: 28px; color: var(--lime); }
.level-beats { display: flex; align-items: baseline; gap: 6px; }
.level-star { align-self: center; display: inline-flex; color: #FFD23F; }
.level-star svg { width: 24px; height: 24px; }
.level-bar { height: 12px; border-radius: 999px; background: rgba(250, 247, 242, 0.1); overflow: hidden; }
/* a game's stars on the level card: its name, then a gold star and the count */
.level-card .chip.level-game { background: rgba(250, 247, 242, 0.08); color: var(--tx-hi); gap: 8px; }
.level-game-stars { display: inline-flex; align-items: center; gap: 3px; color: #FFD23F; font-weight: 700; font-variant-numeric: tabular-nums; }
.level-game-stars svg { width: 14px; height: 14px; }
.level-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--lime)); transition: width 0.8s ease; }
.level-card .meta { margin: 0; }
.level-how { margin: 0; font-size: 14px; }
.level-card .chip-row a.chip { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .level-bar i { transition: none; } }

/* guides (backend/lib/guides.js): long reads, one accent per card */
.guide { max-width: 760px; }
.guide [class*="acc-"] { --acc: var(--lime); }
.guide .acc-cyan { --acc: var(--cyan); } .guide .acc-pink { --acc: var(--pink); } .guide .acc-purple { --acc: var(--violet); }
.guide .acc-orange { --acc: #FF9A4D; } .guide .acc-green { --acc: var(--hue-green); } .guide .acc-yellow { --acc: var(--warn); }
.guide h1 { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 46px; margin: 4px 0 10px; }
.guide h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 32px; margin: 44px 0 12px; }
.guide h3 { font-size: 17px; line-height: 22px; margin: 0 0 6px; }
.guide p, .guide li, .guide dd { color: var(--tx-mid); font-size: 17px; line-height: 27px; }
.guide p + p { margin-top: 12px; }
.guide a:not(.btn-cta) { color: var(--tx-hi); text-decoration: underline; text-underline-offset: 3px; }
.guide a:not(.btn-cta):hover { color: var(--lime); }
.g-crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--tx-lo); margin-bottom: 18px; }
.g-kicker { color: var(--acc) !important; font-weight: 700; font-size: 15px !important; }
.g-sub { color: var(--tx-hi) !important; font-size: 19px !important; line-height: 28px !important; margin-bottom: 18px; }
.g-play { margin: 24px 0 8px; } .g-play.end { margin-top: 48px; text-align: center; }
.g-cards, .g-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.g-cards li, .g-steps li { background: var(--surface-1, rgba(255,255,255,0.04)); border: 1px solid var(--line); border-radius: 24px; padding: 18px 20px; }
.g-cards li { border-top: 3px solid var(--acc); }
.g-cards h3 { color: var(--acc); }
.g-steps { counter-reset: step; }
.g-steps li { counter-increment: step; }
.g-steps h3::before { content: counter(step) ". "; color: var(--lime); }
.g-table { overflow-x: auto; }
.g-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; line-height: 23px; }
.g-table th, .g-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--tx-mid); }
.g-table thead th { color: var(--tx-hi); }
.g-table thead th:nth-child(2) { color: var(--lime); }
.g-table tbody th { color: var(--tx-hi); }
.g-faq dt { color: var(--tx-hi); font-weight: 700; font-size: 17px; margin-top: 16px; }
.g-faq dd { margin: 4px 0 0; }
.g-more ul, .g-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.g-more li { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font-size: 15px; line-height: 21px; }
.g-list li { border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: 16px; padding: 14px 16px; }
.g-list a { display: block; font-weight: 700; text-decoration: none !important; }
.g-list a span { display: block; color: var(--acc); font-size: 13px; margin-bottom: 2px; }
.g-list p { font-size: 15px; line-height: 22px; margin-top: 6px; }
.g-hubs-top { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.g-hubs-top a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 700; text-decoration: none !important; }
/* every game, the home and the console, on every guide (backend/lib/guides.js siteNav) */
.g-games { margin-top: 48px; }
.g-games h2 a { color: inherit; text-decoration: none !important; }
.g-games ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.g-games li a { display: flex; align-items: center; gap: 10px; min-height: 56px; border: 1px solid var(--line); border-radius: 16px; padding: 8px 12px; font-weight: 700; font-size: 15px; line-height: 20px; text-decoration: none !important; }
.g-games li img { width: 40px; height: 40px; border-radius: 10px; flex: none; object-fit: cover; }
.g-site { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.g-site a { display: inline-flex; align-items: center; min-height: 48px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; font-size: 15px; font-weight: 700; text-decoration: none !important; }
.g-note { font-size: 13px !important; line-height: 19px !important; color: var(--tx-lo) !important; margin-top: 40px; }
@media (max-width: 640px) { .guide h1 { font-size: 30px; line-height: 36px; } }

/* friends (me.js › Friends) */
.friends-tab { display: grid; gap: 16px; }
.friends-tab .card { margin: 0; }
.friend-list { list-style: none; padding: 0; margin: 8px 0 0; }
.friend-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.friend-row a { color: var(--tx-hi); font-weight: 600; text-decoration: none; }
.friend-row small { display: block; color: var(--tx-lo); font-size: 13px; }
.friend-acts { display: flex; gap: 8px; }
@media (max-width: 560px) {   /* a phone: the buttons go under the name, side by side */
  .friend-row { grid-template-columns: 40px 1fr; row-gap: 8px; }
  .friend-acts { grid-column: 2 / -1; flex-wrap: wrap; }
}
.friend-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.friend-add input { flex: 1 1 180px; min-height: 48px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-input); color: var(--tx-hi); font: inherit; }

/* friends: the dot on the avatar and your status (me.js › Friends) */
.friend-av { position: relative; display: inline-flex; width: 40px; height: 40px; }
.fr-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #6b6872; flex: none; }
.friend-av .fr-dot { position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border: 2px solid var(--surface-panel, #1B1B26); }
.fr-dot.on { background: #6BE39A; } .fr-dot.play { background: var(--lime); box-shadow: 0 0 8px rgba(210, 255, 77, 0.6); } .fr-dot.busy { background: #FF5F6B; } .fr-dot.off { background: #6b6872; }
.status-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.status-pick button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--tx-hi); font: inherit; font-weight: 600; cursor: pointer; }
.status-pick button[aria-checked="true"] { border-color: var(--lime); background: rgba(210, 255, 77, 0.1); }
.card h2 .count { color: var(--tx-lo); font-size: 0.8em; margin-left: 4px; }
.card h2 .online-n { margin-left: 12px; font-family: var(--font-ui, inherit); font-size: 14px; font-weight: 600; color: #6BE39A; }

/* ---------- leaderboards (leaderboards.js): the race, the podium, the board ---------- */
/* (a board to race on, the user, 2026-10-23: «que se sienta competitivo y que incite a los players a beat the score») */
.lb-page { display: flex; flex-direction: column; gap: 24px; }
/* the title, its words, then the game and the board to show, all on the left (over the board; the podium has the right:
   the user, 2026-10-25, «mueve eso para la izquierda») */
.lb-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.lb-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 56px; line-height: 60px; }
.lb-head .muted { max-width: 52ch; margin-top: 6px; }
.lb-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lb-controls .selects, .lb-controls .tabs { margin: 0; }
.lb-tabs button { min-height: 48px; padding: 0 20px; font-size: 15px; }

/* the podium: the top three on steps of silver, gold and bronze, hopping in turn, the first crowned, confetti falling
   (leaderboards.js paintPodium); still with reduced motion */
.lb-podium { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; width: 100%; max-width: 560px; margin: 0 auto 8px; padding-top: 40px; }
/* where it stands: over the race in the right-hand column from 1024 px; under that, first on the page (before the board) */
.lb-left, .lb-side { display: contents; }
.lb-left .lb-head { order: -2; }
.lb-side .lb-podium { order: -1; }
@media (min-width: 1024px) { .lb-left, .lb-side { display: grid; gap: 24px; align-content: start; min-width: 0; } .lb-left .lb-head, .lb-side .lb-podium { order: 0; } .lb-side .lb-podium { padding-top: 34px; } }
.lb-podium[hidden] { display: none; }
/* the avatar stands on its step (no gap: it hops on the step itself) and its name lies at the step's foot (the user, 2026-10-26:
   «pasa el nombre para abajo y que los avatares brinquen sobre la plataforma») */
.lb-spot { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 0; color: var(--ivory); text-decoration: none; }
.lb-spot-av { position: relative; z-index: 1; display: block; width: 92px; margin-bottom: -2px; animation: lb-hop 1.4s linear var(--hop) infinite; transform-origin: 50% 100%; }
.lb-spot.is-1 .lb-spot-av { width: 112px; }
.lb-spot-av > :not(.lb-crown, .lb-spot-arm) { display: block; width: 100% !important; height: auto !important; }
/* the first's arm over its crown (leaderboards.js: the body, the crown, the arm, in that order) */
.lb-spot-arm { position: absolute; left: 0; top: 0; z-index: 3; width: 100%; line-height: 0; pointer-events: none; }
.lb-spot-arm .pab-av { display: block; width: 100% !important; height: auto !important; }
.lb-spot-av svg { display: block; width: 100%; height: auto; }
/* a cartoon hop (the user, 2026-10-25: «haz el brinco de los avatares más cartoon»): squash to wind up, stretch on the way up, round at the top, stretch falling, squash on landing, a little rebound */
@keyframes lb-hop { 0%, 72%, 100% { transform: translateY(0) scale(1, 1); } 10% { transform: translateY(0) scale(1.16, 0.82); animation-timing-function: cubic-bezier(.2, .7, .3, 1); } 24% { transform: translateY(-30px) scale(0.88, 1.16); animation-timing-function: cubic-bezier(.3, .2, .5, 1); } 34% { transform: translateY(-38px) scale(1.03, 0.97); animation-timing-function: cubic-bezier(.5, 0, .8, .3); } 46% { transform: translateY(-4px) scale(0.9, 1.12); } 52% { transform: translateY(0) scale(1.2, 0.78); animation-timing-function: cubic-bezier(.2, .8, .3, 1); } 62% { transform: translateY(-3px) scale(0.95, 1.06); } }
/* the crown worn on the head (the user, 2026-10-26: «coloca la corona dentro de la cabeza y indiferentemente si tiene cabello o
   no la corona va siempre en la misma posición»): its foot just inside the body's top, a fixed spot in the avatar's box (the
   body's top sits at 20 % of it: avatar.js BOX_BARE), over any hair */
.lb-crown { position: absolute; left: 50%; top: calc(27% - 36px); translate: -50% 0; z-index: 2; width: 44px; height: 36px; color: #FFD34D; rotate: -10deg; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45)); }
.lb-crown svg { width: 100%; height: 100%; }
.lb-spot-name { display: block; max-width: calc(100% - 8px); margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(19, 19, 27, 0.86); color: var(--ivory);
  box-shadow: 0 4px 12px rgba(19, 19, 27, 0.28); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 15px; line-height: 1.2; }
.lb-step { width: 100%; display: grid; grid-template-rows: auto auto auto; align-content: start; justify-items: center; gap: 2px; padding: 14px 8px 0; border-radius: 22px 22px 8px 8px; color: var(--night);
  box-shadow: inset 0 -8px 0 rgba(19, 19, 27, 0.16), 0 10px 24px rgba(0, 0, 0, 0.3); }
.lb-step b { font: 600 52px/1 var(--font-display); }
.lb-step-val { display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 8px); margin-top: 6px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: rgba(19, 19, 27, 0.86); color: var(--ivory); box-shadow: 0 4px 12px rgba(19, 19, 27, 0.28); white-space: nowrap; zoom: 0.75; }   /* (under the name, a quarter smaller) */
.lb-step-val i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none; background: rgba(255, 211, 77, 0.18); color: #FFD34D; }
.lb-step-val.is-xp i { background: rgba(164, 123, 255, 0.22); color: #C9B0FF; }
.lb-step-val.is-board i { background: rgba(210, 255, 77, 0.18); color: var(--lime); }
.lb-step-val i svg { width: 14px; height: 14px; }
.lb-step-val strong { font: 600 17px/1 var(--font-display); }
.lb-step-val small { overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 600; color: rgba(250, 247, 242, 0.7); }
.lb-spot.is-1 .lb-step { height: 192px; background: linear-gradient(180deg, #FFE27A, #FFC93C); }
.lb-spot.is-2 .lb-step { height: 166px; background: linear-gradient(180deg, #F2F4F8, #C9D0DC); }
.lb-spot.is-3 .lb-step { height: 142px; background: linear-gradient(180deg, #F3BE90, #D9894F); }
.lb-spot.is-3 .lb-step b { font-size: 46px; }
.lb-spot.is-me .lb-step { box-shadow: inset 0 0 0 3px var(--lime), inset 0 -8px 0 rgba(19, 19, 27, 0.16), 0 10px 24px rgba(0, 0, 0, 0.3); }
.lb-spot.is-me .lb-spot-name { color: var(--lime); }
.lb-spot.is-empty { opacity: 0.32; }
.lb-spot:hover .lb-spot-name { text-decoration: underline; }
.lb-spot:focus-visible { outline: 3px solid var(--lime); outline-offset: 6px; border-radius: 22px; }
.lb-lights { position: absolute; inset: -16px -24px 0; z-index: 0; overflow: hidden; pointer-events: none; }   /* (kept to the podium: never over the menu or the controls) */
.lb-lights i { position: absolute; left: 50%; bottom: 12%; width: 54%; height: 105%; margin-left: -27%; transform-origin: 50% 100%; rotate: var(--a);
  background: linear-gradient(0deg, var(--c) 0%, color-mix(in srgb, var(--c) 55%, transparent) 40%, transparent 92%); clip-path: polygon(0 0, 100% 0, 53% 100%, 47% 100%);
  opacity: 0.42; mix-blend-mode: screen; filter: blur(4px); animation: lb-sweep var(--d) ease-in-out var(--at) infinite alternate; }
@keyframes lb-sweep { from { rotate: calc(var(--a) - var(--s)); } to { rotate: calc(var(--a) + var(--s)); } }
.lb-confetti { position: absolute; inset: -10px 0 30% 0; overflow: hidden; pointer-events: none; }
.lb-confetti i { position: absolute; top: -16px; left: var(--x); width: 8px; height: 14px; border-radius: 2px; background: var(--c); animation: lb-fall var(--d) linear var(--at) infinite; }
@keyframes lb-fall { from { transform: translate(0, -10px) rotate(0); opacity: 1; } 80% { opacity: 1; } to { transform: translate(var(--sw), 240px) rotate(600deg); opacity: 0; } }
@media (max-width: 600px) {
  .lb-podium { gap: 8px; margin-top: 24px; padding-top: 34px; }
  .lb-spot-av { width: 68px; } .lb-spot.is-1 .lb-spot-av { width: 84px; }
  .lb-crown { width: 34px; height: 28px; top: calc(27% - 28px); }
  .lb-spot-name { font-size: 12px; padding: 4px 8px; margin-top: 4px; }
  .lb-step b, .lb-spot.is-3 .lb-step b { font-size: 32px; } .lb-step-val { padding: 4px 8px 4px 5px; gap: 4px; } .lb-step-val i { width: 18px; height: 18px; } .lb-step-val i svg { width: 12px; height: 12px; } .lb-step-val strong { font-size: 14px; } .lb-step-val small { font-size: 10px; }
  .lb-spot.is-1 .lb-step { height: 144px; } .lb-spot.is-2 .lb-step { height: 126px; } .lb-spot.is-3 .lb-step { height: 110px; }
}
@media (prefers-reduced-motion: reduce) { .lb-spot-av, .lb-lights i { animation: none; } .lb-confetti { display: none; } }

/* the race: my place, the one to pass and by how much, who is on my heels, the next level, one Play */
.lb-race-card { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 32px;
  padding: 28px 32px; border-radius: var(--r-lg); color: var(--ivory); background: radial-gradient(55% 80% at 96% 4%, rgba(255, 95, 200, 0.38), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(210, 255, 77, 0.2), transparent 70%), linear-gradient(150deg, #7650E6, #4B2FA8 70%); }
.lb-race-card.is-top { background: linear-gradient(135deg, #2F3A10, #13131B 75%); box-shadow: inset 0 0 0 2px var(--lime); }
.lb-race-card.is-guest { grid-template-columns: minmax(0, 1fr) auto; border: 1px solid var(--line-subtle); }
.lb-race-card.is-guest:where(:not(.glow)) { background: var(--bg-1); }
.lb-race-card.is-guest.glow { background: var(--glow); }
.lb-race-me { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.lb-place b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 64px; line-height: 64px; color: var(--lime); }
.lb-place span { font-size: 14px; color: rgba(250, 247, 242, 0.8); font-weight: 600; }
.lb-move { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.lb-move.is-up { background: var(--lime); color: var(--night); }
.lb-move.is-up::before { content: "\25B2"; font-size: 10px; }
.lb-move.is-down { background: rgba(255, 122, 89, 0.2); color: #FFB4A1; }
.lb-move.is-down::before { content: "\25BC"; font-size: 10px; }
.lb-race-main { display: grid; gap: 8px; min-width: 0; position: relative; z-index: 1; }
.lb-kicker { font-size: 14px; font-weight: 700; color: var(--lime); }
.lb-race-line { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 34px; }
.lb-race-card .muted { color: rgba(250, 247, 242, 0.78); }
.lb-race-card.is-guest .muted { color: var(--tx-lo); }
.lb-pass { font-weight: 700; font-size: 16px; }
.lb-vs { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 10px; max-width: 520px; margin: 4px 0; }
.lb-vs-av { display: block; line-height: 0; }
.lb-vs-track { height: 14px; border-radius: 999px; background: rgba(19, 19, 27, 0.45); overflow: hidden; }
.lb-vs-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--lime), #F1FFB8); transition: width 1s cubic-bezier(0.3, 0.7, 0.4, 1) 0.2s; }
.lb-vs-track i.is-in { width: calc(var(--to, 0.5) * 100%); }
.lb-race-go { display: grid; gap: 14px; justify-items: end; position: relative; z-index: 1; }
.lb-level { display: grid; grid-template-columns: auto minmax(120px, 180px); align-items: center; gap: 6px 10px; }
.lb-level-badge { grid-row: span 2; display: grid; place-items: center; min-width: 56px; height: 56px; padding: 0 8px; border-radius: 18px; background: var(--lime); color: var(--night); font-weight: 800; font-size: 15px; }
.lb-level .level-bar { height: 10px; background: rgba(19, 19, 27, 0.45); }
.lb-level .meta { color: rgba(250, 247, 242, 0.8); }

/* the site's boards (frontend/shared/sdk/board.js: game page, Daily Beat, challenges, /leaderboards) on their column's left edge,
   like the headings over them */
#page .pab-lb { margin-inline: 0; }
#page .pab-lb .pab-lb-chips { justify-content: flex-start; }
#page .pab-lb .pab-lb-foot { justify-content: space-between; }
#page .pab-lb .pab-lb-note { text-align: left; }

/* the board (the platform's one board, frontend/shared/sdk/board.js: every player on one screen, a tap for their page), then
   the race; side by side from 1024 px, the race a column of its own */
.lb-main { display: grid; gap: 24px; align-items: start; }
.lb-board { padding: 20px 16px 16px; border-radius: var(--r-lg); border: 1px solid var(--line-subtle); }
.lb-board:where(:not(.glow)) { background: var(--bg-1); }
.lb-board .pab-lb { max-width: none; }
.lb-race:empty { display: none; }
@media (min-width: 1024px) {
  .lb-main { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); }
  .lb-main .lb-race-card { grid-template-columns: minmax(0, 1fr); padding: 28px; }
  .lb-main .lb-race-go { justify-items: start; }
}
@media (prefers-reduced-motion: reduce) { .lb-vs-track i { transition: none; } }

@media (max-width: 900px) {
  .lb-race-card { grid-template-columns: minmax(0, 1fr); }
  .lb-race-go { justify-items: start; }
}
@media (max-width: 600px) {
  .lb-head h1 { font-size: 40px; line-height: 44px; }
  .lb-controls { width: 100%; }
  .lb-controls .selects, .lb-controls .selects select { width: 100%; }
  .lb-race-card { padding: 22px 20px; gap: 16px; }
  .lb-race-card.is-guest { grid-template-columns: minmax(0, 1fr); }
  .lb-place b { font-size: 52px; line-height: 52px; }
  .lb-race-line { font-size: 22px; line-height: 28px; }
}

/* ---------- Notifications (/me › Settings, ./notifications.js): this device's state, then what to hear about ---------- */
.chip.warn { background: rgba(255, 201, 77, 0.16); color: var(--warn); }
.notif-card { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.notif-lead { color: var(--tx-mid); line-height: 22px; }
/* rows: an icon, the words, a switch; the whole row toggles it */
.notif-master, .notif-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 56px; cursor: pointer; }
.notif-master { padding: 14px 16px; border-radius: 20px; background: var(--bg-3); }
.notif-master b, .notif-row b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.notif-master p, .notif-row p { color: var(--tx-lo); font-size: 14px; line-height: 20px; margin-top: 2px; }
.notif-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--tx-mid); }
.notif-master .notif-ic { background: rgba(210, 255, 77, 0.14); color: var(--lime); }
.notif-under { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
.notif-what { margin-top: 8px; }
.notif-what p { margin-top: 2px; }
.notif-list { display: flex; flex-direction: column; }
.notif-row { padding: 8px 0; border-bottom: 1px solid var(--line-subtle); }
.notif-row:last-child { border-bottom: 0; }
.notif-master.is-locked, .notif-row.is-locked { cursor: default; }
.notif-row.is-locked b, .notif-row.is-locked .notif-ic { opacity: 0.55; }
/* a switch: a checkbox with role="switch", drawn as a pill (the brand's lime when on) */
.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 52px; height: 32px; margin: 0; border-radius: 999px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: background 0.18s ease, box-shadow 0.18s ease; }
.switch::before { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--tx-mid); transition: transform 0.18s ease, background 0.18s ease; }
.switch:checked { background: var(--lime); box-shadow: none; }
.switch:checked::before { transform: translateX(20px); background: var(--night); }
.switch:disabled { opacity: 0.45; cursor: default; }
.switch:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .switch, .switch::before { transition: none; } }

/* ---------- /me on a phone, as an app's profile (the user, 2026-10-24, of /me on an iPhone: «ordena todo el UI de móvil que se
   ve crowded, hazlo más mobile»): the avatar, the name and the chips in one block; Daily Beat the one lime button with the ⋯
   menu beside it; the sections one row of tabs that scrolls sideways (edge to edge, it stays on top); the cards tighter ---------- */
@media (max-width: 600px) {
  .page { padding-bottom: 40px; }
  .prof-head { grid-template-columns: 72px minmax(0, 1fr); gap: 4px 14px; padding: 4px 0 12px; }
  .prof-head h1 { font-size: 24px; line-height: 30px; }
  .prof-head .title { font-size: 14px; line-height: 20px; }
  .prof-chips { margin-top: 6px; gap: 6px; }
  .prof-head .chip { min-height: 28px; padding: 0 10px; font-size: 13px; }
  .prof-head .chip svg { width: 13px; height: 13px; }
  .prof-actions { grid-column: 1 / -1; flex-wrap: nowrap; justify-content: flex-start; margin-top: 10px; }
  .prof-actions .is-wide { display: none; }
  .prof-actions .is-narrow { display: block; }
  .prof-actions .prof-daily { flex: 1; }
  .me-tabs { flex-wrap: nowrap; gap: 6px; margin: 0 -20px 12px; padding: 8px 20px; scroll-snap-type: x proximity; scroll-padding-inline: 20px; overscroll-behavior-x: contain; }
  .me-tabs button { min-height: 48px; padding: 0 16px; font-size: 15px; scroll-snap-align: start; }
  .card { padding: 18px; }
  .sec-title { font-size: 24px; line-height: 30px; margin: 24px 0 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
  .stats .st { padding: 12px 14px; border-radius: 16px; }
  .stats .st b { font-size: 24px; line-height: 30px; }
  .stats-color .st b { padding-right: 34px; }
  .stats-color .st .st-ico { top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 11px; }
  .st-ico svg { width: 18px; height: 18px; }
  .stats .st span { font-size: 13px; line-height: 18px; }
  .level-card { margin-bottom: 16px; gap: 10px; }
  .level-top { gap: 14px; }
  .level-badge { width: 68px; height: 68px; border-radius: 20px; }
  .level-badge b { font-size: 32px; line-height: 32px; }
  .level-beats b { font-size: 24px; }
  .empty-state { padding: 16px 8px; }
  .friends-tab { gap: 12px; }
  .settings { gap: 8px; }
  .set-row { gap: 10px; padding: 14px 0; }
  .notes li { padding: 12px 2px; }
  .ach-grid { gap: 8px; }
  .av-editor { gap: 16px; }
  .av-stage { padding: 16px; gap: 10px; }
  .av-stage .pab-av { width: 150px !important; height: 150px !important; }
  .slot-tabs { margin: 0 -20px 8px; padding: 0 20px 4px; scrollbar-width: none; }
  .slot-tabs::-webkit-scrollbar { display: none; }
  .slot-tabs button { min-height: 48px; }
  /* the leaderboards' controls in two rows: the game, then the boards (a row that scrolls when a game brings its own);
     everyone / friends are the board's own chips */
  .lb-board { padding: 14px 8px 12px; }
  .lb-page { gap: 16px; }
  .lb-head { gap: 14px; }
  .lb-head h1 { font-size: 34px; line-height: 40px; }
  .lb-controls { flex-wrap: wrap; gap: 8px; }
  .lb-controls .lb-tabs { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .lb-controls .lb-tabs::-webkit-scrollbar { display: none; }
  .lb-tabs button { flex: none; min-height: 48px; padding: 0 14px; font-size: 14px; }
}

/* ---------- a player's page (profile-view.js; the user, 2026-10-25: «quiero un rediseño completo de perfil… más llamativo…
   un background que puedan personalizar en el header… más grande su avatar… más colores e íconos… que se vea imponente») ---------- */
.pv-stage { position: relative; isolation: isolate; margin: 0 0 20px; border-radius: 28px; overflow: hidden; min-height: 300px; display: flex; align-items: center; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.pv-bg { position: absolute; inset: 0; z-index: -1; background: var(--pv-bg); }
.pv-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 19, 27, 0) 25%, rgba(19, 19, 27, 0.82) 100%); }
.pv-in { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; padding: 44px 32px 56px; }   /* (in the middle of its background, a little under the truss — the user, 2026-10-25: «sube un poco más ese contenido») */
.pv-av { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45)); }
.pv-who h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; color: #FAF7F2; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45); overflow-wrap: anywhere; }
.pv-sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.pv-sub > span { padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.pv-lvl { background: #D2FF4D; color: #13131B; font-weight: 800 !important; }
.pv-title { background: #A47BFF; color: #13131B; }
.pv-since { background: rgba(19, 19, 27, 0.6); color: #FAF7F2; font-weight: 600 !important; }
.pv-tops { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pv-top { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(19, 19, 27, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-align: left; }
.pv-top b { display: block; font-size: 14px; color: #FAF7F2; }
.pv-top small { display: block; font-size: 12px; color: rgba(250, 247, 242, 0.75); }
.pv-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.pv-cta { display: inline-flex; align-items: center; gap: 8px; }
.pv-cta svg { width: 20px; height: 20px; }
.pv-medal { width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: grid; place-items: center; color: #13131B; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.pv-medal svg { width: 55%; height: 55%; }
.pv-hon .pv-medal, .pv-top .pv-medal { color: #13131B; display: grid; }   /* (the rows' text colour and .pv-hon span's block are not the medal's: its icon stays in the middle) */
.pv-duel-t .pv-diff, .pv-rec-t .pv-diff { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--d); color: #13131B; font-size: 12px; font-weight: 800; vertical-align: 1px; }
.pv-medal.is-t0 { background: linear-gradient(135deg, #E9AA76, #A8693E); }
.pv-medal.is-t1 { background: linear-gradient(135deg, #F4F7FC, #A9B3C6); }
.pv-medal.is-t2 { background: linear-gradient(135deg, #FFE08A, #E0A422); }
.pv-medal.is-t3 { background: conic-gradient(from 210deg, #A9F0FF, #D2FF4D, #A47BFF, #FF5FA8, #A9F0FF); box-shadow: 0 0 18px rgba(169, 240, 255, 0.6); }
.pv-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.pv-tile { position: relative; padding: 16px 18px; border-radius: 24px; color: #13131B; overflow: hidden; }
.pv-tile b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pv-tile > span:last-child { font-weight: 700; font-size: 14px; }
.pv-ti { position: absolute; right: 14px; top: 14px; width: 28px; height: 28px; opacity: 0.55; }
.pv-ti svg { width: 100%; height: 100%; }
.pv-tile.is-lime { background: #D2FF4D; }
.pv-tile.is-violet { background: #A47BFF; }
.pv-tile.is-coral { background: #FF8A3D; }
.pv-tile.is-cyan { background: #36D6CF; }
.pv-rival { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; margin: 0 0 20px; border-radius: 24px;
  background: linear-gradient(90deg, rgba(210, 255, 77, 0.16), rgba(164, 123, 255, 0.2)); box-shadow: inset 0 0 0 1px rgba(250, 247, 242, 0.08); }
.pv-rival-faces { display: flex; align-items: center; gap: 8px; }
.pv-vs { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: #D2FF4D; }
.pv-rival-t b { display: block; font-size: 20px; }
.pv-rival-t span { color: var(--tx-mid); font-size: 14px; }
.pv-sec { margin: 0 0 8px; }
.pv-sec .sec-title { display: flex; align-items: center; gap: 10px; }
.pv-sec .sec-title > span { width: 24px; height: 24px; color: #D2FF4D; }
.pv-sec .sec-title svg { width: 100%; height: 100%; }
.pv-duels, .pv-recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pv-duel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 4px 0 0 var(--c, transparent); }
.pv-duel.is-won { --c: #D2FF4D; }
.pv-duel.is-lost { --c: #FF6B81; }
.pv-duel.is-open { --c: #36D6CF; }
.pv-duel.is-tied { --c: #A47BFF; }
.pv-duel-line { display: block; font-size: 16px; font-weight: 700; color: inherit; text-decoration: none; }
.pv-duel-line:hover { text-decoration: underline; }
.pv-duel-line:focus-visible { outline: 3px solid #D2FF4D; outline-offset: 2px; border-radius: 6px; }
.pv-duel-t span, .pv-duel-t small { display: block; font-size: 13px; color: var(--tx-mid); }
.pv-duel-q { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); font-weight: 800; }
.pv-chip { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--c); color: #13131B; white-space: nowrap; }
.pv-game:focus-visible { outline: 3px solid #D2FF4D; outline-offset: 3px; border-radius: 12px; }
.pv-rec { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 20px; background: var(--bg-2); }
.pv-rec.is-first { background: linear-gradient(90deg, rgba(242, 193, 78, 0.24), var(--bg-2)); box-shadow: inset 0 0 0 1px rgba(242, 193, 78, 0.4); }
.pv-rank { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 18px; }
.pv-rank > span { width: 22px; height: 22px; color: #F2C14E; }
.pv-rank svg { width: 100%; height: 100%; }
.pv-rec-t b { display: block; font-size: 16px; }
.pv-rec-t span, .pv-rec-t small { display: block; font-size: 13px; color: var(--tx-mid); }
.pv-pts { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 18px; }
.pv-hons { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pv-hon { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: var(--bg-2); }
.pv-hon b { display: block; font-size: 16px; }
.pv-hon span { display: block; font-size: 13px; color: var(--tx-mid); }
.pv-hon small { font-size: 12px; color: #D2FF4D; }
.pv-hon.is-locked .pv-medal { filter: grayscale(1) brightness(0.55); }
.pv-bar { display: block; height: 6px; margin-top: 8px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.pv-bar > i { display: block; height: 100%; background: #D2FF4D; border-radius: inherit; }
/* the achievements' title and its dropdown: Latest, then each game with how many (profile-view.js achievementsBox) */
.pv-ach-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pv-ach-head .sec-title { margin: 0; }
.pv-ach-pick { min-height: 48px; padding: 0 46px 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); background-color: var(--bg-2); color: var(--tx-hi);
  font: 600 16px 'Outfit', sans-serif; max-width: 100%; }
.pv-ach-pick:focus-visible { outline: 3px solid #D2FF4D; outline-offset: 3px; }
.pv-ach-head + .ach-grid { margin-top: 16px; }
/* Your games: each a card in its game's colour, its icon, its numbers as chips with icons (profile-view.js gameCard) */
.pv-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pv-game { position: relative; display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 16px; padding: 16px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c, var(--violet)) 30%, transparent), transparent 60%), var(--bg-2);
  border: 1px solid color-mix(in srgb, var(--c, var(--violet)) 35%, transparent); color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; }
.pv-game:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c, var(--violet)) 70%, transparent); }
.pv-game-ico { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--violet)) 40%, var(--bg-3));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); font: 600 28px 'DynaPuff', sans-serif; color: var(--ivory); }
.pv-game-ico img { width: 100%; height: 100%; object-fit: cover; }
.pv-game-txt { display: grid; gap: 8px; min-width: 0; }
.pv-game b { font: 600 18px 'DynaPuff', sans-serif; }
.pv-game-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-game-stats span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(19, 19, 27, 0.45); font-size: 13px; font-weight: 600; color: var(--tx-hi); }
.pv-game i { display: inline-grid; width: 14px; height: 14px; color: var(--c, var(--violet)); }
.pv-game i svg { width: 14px; height: 14px; }
.pv-game small { display: inline-flex; align-items: center; gap: 6px; color: var(--tx-mid); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .pv-game { transition: none; } .pv-game:hover { transform: none; } }
.pv-pick { margin: 0 0 20px; display: grid; gap: 12px; }
.pv-pick-prev { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px; min-height: 120px; border-radius: 24px; background: var(--pv-bg); color: #FAF7F2; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.pv-pick-prev > span:first-of-type { width: 28px; height: 28px; }
.pv-pick-prev svg { width: 100%; height: 100%; }
.pv-pick-prev b { font-size: 18px; }
.pv-pick-acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.pv-pick-acts .pill-link { text-shadow: none; display: inline-flex; align-items: center; gap: 6px; }
.pv-pick-acts svg { width: 18px; height: 18px; }
.pv-swatches { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.pv-swatch { position: relative; min-height: 56px; border: 0; border-radius: 16px; background: var(--pv-bg); cursor: pointer; display: flex; align-items: flex-end; padding: 6px 8px; color: #FAF7F2; font: 700 12px/1.2 'Outfit', system-ui, sans-serif; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.pv-swatch[aria-checked="true"] { box-shadow: 0 0 0 3px #D2FF4D; }
.pv-swatch:focus-visible { outline: 3px solid #D2FF4D; outline-offset: 3px; }
@media (max-width: 760px) {
  .pv-in { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 88px 16px 20px; gap: 16px; }
  .pv-sub, .pv-tops, .pv-acts { justify-content: center; }
  .pv-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv-tile b { font-size: 30px; }
  .pv-rival { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .pv-duel { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pv-duel .btn { grid-column: 2 / -1; justify-self: start; }
  .pv-rec { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .pv-rec .pv-beat { grid-column: 2 / -1; justify-self: start; }
  .pv-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .pv-top { backdrop-filter: none; -webkit-backdrop-filter: none; } }
/* ---------- the animated backgrounds (profile-view.js FX): over the picture, under the stage's shade; with reduced motion
   they go and the picture stays ---------- */
.pv-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.pv-pick-prev { overflow: hidden; isolation: isolate; }
.pv-pick-prev > :not(.pv-fx) { position: relative; z-index: 1; }
/* Candy: each bubble's column rises at its own speed (pv-rise: from under the bottom to over the top), the bubble sways in it */
.pv-fx-bubbles { background: radial-gradient(70% 60% at 50% 115%, rgba(164, 123, 255, 0.32), transparent 70%), #241536; }
.pv-fx-bubbles i { position: absolute; top: 0; bottom: 0; left: var(--x); width: 0; animation: pv-rise var(--d) linear var(--at) infinite; will-change: transform; }
.pv-fx-bubbles b { position: absolute; top: 0; left: calc(var(--s) / -2); width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); filter: blur(2px); opacity: 0.92;
  animation: pv-sway var(--sw) ease-in-out var(--at) infinite alternate; }
@keyframes pv-rise { from { transform: translateY(100%); } to { transform: translateY(calc(var(--s) * -1)); } }
@keyframes pv-sway { from { translate: calc(var(--w) * -1) 0; } to { translate: var(--w) 0; } }
/* Concert: five heads under the banner, their beams rising and sweeping (pv-sweep) — big, so the banner shows their top
   half — and the floor's PARs pulsing (pv-kick) */
.pv-fx-lights { background: radial-gradient(90% 60% at 50% 100%, rgba(164, 123, 255, 0.22), transparent 70%), linear-gradient(0deg, #140E28, #0E0B1A 55%, #07060D); }
.pv-beam { position: absolute; bottom: -150%; left: var(--x); width: 56%; height: 330%; margin-left: -28%; transform-origin: 50% 100%; rotate: var(--a);
  background: linear-gradient(0deg, var(--c) 0%, var(--c) 45%, transparent 96%); clip-path: polygon(0 0, 100% 0, 52% 100%, 48% 100%);
  opacity: 0.5; mix-blend-mode: screen; filter: blur(5px); animation: pv-sweep var(--d) ease-in-out var(--at) infinite alternate; }
@keyframes pv-sweep { from { rotate: calc(var(--a) - var(--sweep)); } to { rotate: calc(var(--a) + var(--sweep)); } }
.pv-par { position: absolute; bottom: -40px; left: var(--x); width: 160px; height: 100px; margin-left: -80px; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent);
  mix-blend-mode: screen; opacity: 0.3; animation: pv-kick var(--d) ease-out var(--at) infinite; }
@keyframes pv-kick { 0% { opacity: 0.85; } 55%, 100% { opacity: 0.22; } }
@media (prefers-reduced-motion: reduce) { .pv-fx { display: none; } }
.notif-master.notif-sound { margin-top: 10px; }   /* (the sounds' switch, under the push one: notifications.js) */

/* a guide's Play under its subtitle: one tap from a search to a game, full width on a phone (lib/guides.js) */
.g-play.top { margin: 16px 0 24px; }
@media (max-width: 767px) { .g-play.top .btn-cta { display: flex; width: 100%; justify-content: center; } }
/* the leaderboards' controls on one row on a phone: the game picker takes what is left, Stars / XP beside it */
@media (max-width: 900px) {
  .lb-controls { flex-wrap: nowrap; width: 100%; gap: 8px; }
  .lb-controls .selects { flex: 1 1 auto; min-width: 0; width: auto; }
  .lb-controls .selects select { width: 100%; min-width: 0; text-overflow: ellipsis; }
  .lb-controls .lb-tabs { flex: none; overflow: visible; }
  .lb-controls .lb-tabs button { padding: 0 16px; }
}
/* the site's tabs in the new look, like the home's filters (the user, 2026-11-26: «estos tabs que sean los nuevos»): each a dark chip
   with its line; the picked one the lime sticker, lifted and tilted, its night ring and violet shadow */
.tabs { gap: 8px; padding: 6px 10px 10px 4px; margin: -6px 0 6px -4px; }
.tabs button { min-height: 48px; padding: 0 18px; border: 1px solid var(--line); background: var(--bg-1); color: var(--tx-mid); font: 650 14px/1.2 var(--font);
  transition: transform .22s cubic-bezier(.34, 1.8, .5, 1), box-shadow .18s, background .15s, color .15s, border-color .15s; }
.tabs button.on, .tabs button[aria-selected="true"] { border-color: var(--night); background: var(--lime); color: var(--night); box-shadow: 0 0 0 2px var(--night), 3px 5px 0 2px var(--violet); transform: translate(-2px, -3px) rotate(-3deg); }
.tabs button.on:nth-child(even), .tabs button[aria-selected="true"]:nth-child(even) { transform: translate(-2px, -3px) rotate(3deg); }
@media (hover: hover) { .tabs button:not(.on):hover { border-color: rgba(210,255,77,.6); color: var(--tx-hi); } }
@media (prefers-reduced-motion: reduce) { .tabs button { transition: none; } .tabs button.on, .tabs button.on:nth-child(even) { transform: none; } }
.lb-controls .tabs { padding: 6px 10px 10px 4px; margin: -6px 0 -10px -4px; }
@media (max-width: 900px) { .lb-controls .lb-tabs { overflow: visible; } }
/* the tabs move like the home's filters (the user, 2026-11-26: «recuerda animar los botones como los demás»): a mouse over one makes it
   hop up tilted in violet with the lime shadow, a press squashes it, and the one just picked pops into its sticker (.pab-stick-pop,
   common.js: the page draws the tabs again on a pick, so a transition alone would never be seen) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tabs button:not(.on):hover { border-color: var(--night); background: var(--violet); color: var(--night); box-shadow: 0 0 0 2px var(--night), 3px 5px 0 2px var(--lime); transform: translate(-2px, -4px) rotate(-3deg) scale(1.04); }
  .tabs button:not(.on):nth-child(even):hover { transform: translate(-2px, -4px) rotate(3deg) scale(1.04); }
}
@media (prefers-reduced-motion: no-preference) {
  .tabs button:active { transform: translate(1px, 2px) scale(.96, .92); box-shadow: 0 0 0 2px var(--night), 0 0 0 2px var(--lime); transition-duration: .06s; }
  .tabs button.on.pab-stick-pop { animation: pab-stick-l .46s cubic-bezier(.2,.9,.3,1); }
  .tabs button.on.pab-stick-pop:nth-child(even) { animation-name: pab-stick-r; }
}
@keyframes pab-stick-l { 0% { transform: translate(1px, 2px) scale(.96, .92); } 55% { transform: translate(-3px, -7px) rotate(-6deg) scale(1.1); } 80% { transform: translate(-2px, -2px) rotate(-2deg) scale(.99); } 100% { transform: translate(-2px, -3px) rotate(-3deg); } }
@keyframes pab-stick-r { 0% { transform: translate(1px, 2px) scale(.96, .92); } 55% { transform: translate(-3px, -7px) rotate(6deg) scale(1.1); } 80% { transform: translate(-2px, -2px) rotate(2deg) scale(.99); } 100% { transform: translate(-2px, -3px) rotate(3deg); } }
/* the leaderboards' tabs wrap: a game's own boards (Tour of Italy · pairs of scissors…) go on the line below, never off the side (the
   user, 2026-11-26: «ese tab de Tour Italy debería estar debajo»); a press on the picked one only squashes it (no second ring) */
/* (the tabs flow in the controls' own row: the game, Stars and XP on the first line, a game's boards wrapping under them) */
@media (max-width: 900px) { .lb-controls { flex-wrap: wrap; row-gap: 12px; } .lb-controls .selects { flex: 1 1 150px; min-width: 0; width: auto; } .lb-controls .lb-tabs { display: contents; } .lb-controls .lb-tabs button { flex: none; } }
.lb-controls .lb-tabs button { max-width: 100%; white-space: normal; text-align: center; }
@media (prefers-reduced-motion: no-preference) { .tabs button.on:active { box-shadow: 0 0 0 2px var(--night), 3px 5px 0 2px var(--violet); } }
.lb-sub b { color: var(--ivory, #FAF7F2); font-weight: 700; }
/* the leaderboards' three pickers, one under the other on a phone, side by side on a computer: the game, its song and level, the board */
.lb-controls .selects { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; flex: 1 1 100%; margin: 0; }
.lb-controls .selects select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.lb-controls .selects select:disabled { opacity: .45; cursor: default; }
@media (min-width: 901px) { .lb-controls .selects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* the podium's value stacked: its board's icon on top, the score under it, no word (the picker says which board) — room for a song's
   big points (the user, 2026-11-26: «en el podio puedes colocar el icono arriba y debajo el score porque los points van a ser números más grandes») */
.lb-step-val { flex-direction: column; gap: 4px; padding: 8px 12px 9px; border-radius: 18px; }
.lb-step-val i { width: 30px; height: 30px; }
.lb-step-val i svg { width: 18px; height: 18px; }
.lb-step-val.is-points i { background: rgba(255, 79, 184, 0.22); color: #FF8FD3; }
.lb-step-val strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) { .lb-step-val { padding: 6px 8px 7px; gap: 3px; } .lb-step-val i { width: 24px; height: 24px; } .lb-step-val i svg { width: 14px; height: 14px; } .lb-step-val strong { font-size: 13px; } }
/* (the steps a little taller for the stacked value: the number, the name and the value never overlap, even on the third) */
.lb-spot.is-1 .lb-step { height: 212px; } .lb-spot.is-2 .lb-step { height: 190px; } .lb-spot.is-3 .lb-step { height: 170px; }
@media (max-width: 600px) { .lb-spot.is-1 .lb-step { height: 166px; } .lb-spot.is-2 .lb-step { height: 150px; } .lb-spot.is-3 .lb-step { height: 136px; } }
/* the song's four levels as tabs under the pickers (sticker tabs, the site's own), a level the song lacks dimmed */
.lb-controls .lb-diffs { flex: 1 1 100%; flex-wrap: nowrap; gap: 8px; margin: 2px 0 0 -4px; }
.lb-controls .lb-diffs[hidden] { display: none; }
.lb-controls .lb-diffs button { flex: 1 1 0; min-width: 0; padding: 0 8px; white-space: nowrap; }
.lb-controls .lb-diffs button:disabled { opacity: .35; cursor: default; }
/* a level's number beside its name on the level tabs: a small round badge */
.lb-controls .lb-diffs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.lb-lv { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: rgba(250,247,242,.12); color: var(--ivory); font: 700 12px/1 var(--font); font-variant-numeric: tabular-nums; }
.lb-diffs button.on .lb-lv { background: var(--night); color: var(--lime); }
@media (max-width: 400px) { .lb-controls .lb-diffs button { padding: 0 6px; gap: 4px; font-size: 13px; } .lb-lv { min-width: 20px; height: 20px; font-size: 11px; } }

/* the gap to the next player, a pill with its unit (leaderboards.js gapLine; the user, 2026-11-26) */
.lb-gap-pill { display: inline-flex; align-items: center; margin: 0 .12em; padding: 2px 14px 4px; border-radius: 999px; background: var(--lime); color: var(--night);
  font-size: .8em; line-height: 1.25; vertical-align: .08em; white-space: nowrap; }
/* in the smaller lines (how many more to pass, who is behind you, XP to the next level) the pill is the line's size, quieter */
.lb-pass .lb-gap-pill, .lb-race-main .muted .lb-gap-pill, .meta .lb-gap-pill { font-size: .95em; padding: 1px 10px 2px; }
.lb-race-main .muted .lb-gap-pill, .meta .lb-gap-pill { background: rgba(250, 247, 242, .14); color: var(--ivory); }

/* a setting in its own card: line icon, words, the switch on the right (me.js settings › Emails) */
.set-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 10px; padding: 16px 18px 16px 16px;
  border-radius: 22px; background: var(--bg-3); cursor: pointer; }
.set-card b { display: block; font-size: 16px; line-height: 22px; }
.set-card p { margin-top: 2px; color: var(--tx-lo); font-size: 14px; line-height: 20px; }
.set-card.is-locked { cursor: default; }
.set-card.is-locked .notif-ic, .set-card.is-locked .switch { opacity: .55; }
.sec-title + .set-card { margin-top: 4px; }
/* Pick a Beat's painted badges (common.js achCard): a rounded tile like the home's Daily Beat and Challenges, ringed in its tier; still greyed until won */
.ach.is-art .ach-badge { padding: 0; border: 0; border-radius: 18px; object-fit: cover; box-shadow: 0 0 0 2px var(--tier, rgba(250,247,242,.16)), 0 6px 16px rgba(0,0,0,.35); }
.ach.is-art.bronze { --tier: #E3A26B; } .ach.is-art.silver { --tier: #D6DCE6; } .ach.is-art.gold { --tier: #FFD34D; } .ach.is-art.platinum { --tier: #A47BFF; }
/* the push switch's card roomier, the devices it reaches inside it, Send a test on the right under it (notifications.js) */
.notif-master { gap: 14px; min-height: 84px; padding: 18px 18px 18px 16px; border-radius: 24px; }
.notif-master b { font-size: 17px; line-height: 22px; }
.notif-master p { font-size: 14px; line-height: 21px; margin-top: 4px; }
.notif-master .notif-devices { margin-top: 2px; color: var(--tx-mid, #C9C4D8); font-weight: 600; }
.notif-under { justify-content: flex-end; margin-top: 10px; }
