/* Public site (Pick a Beat brand): home + game pages. Max width 1280, margins 48/32/20, spacing 4·8·12·16·24·32·48·64·96,
   type scale from the brand guide (hero 64/68 → 40/44, section 40/46 → 30/36, card 24/30 → 22/28, body 18/28 → 16/25). */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-size: 16px; line-height: 25px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.meta { font-size: 14px; line-height: 20px; color: var(--tx-lo); }

/* every dropdown on the site: the page's own arrow (a rounded chevron in ivory, lime on hover and focus), never the
   browser's (the user, 2026-10-23, «arregla el estilo de la flecha de todos los dropdowns»). select.input and .selects
   select set only background-color, so the arrow stays. */
select, select.input { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 52px;   /* (the arrow: a thick chevron in a round chip) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='14' fill='%23FAF7F2' fill-opacity='0.14'/%3E%3Cpath d='m9 12 5 5 5-5' fill='none' stroke='%23FAF7F2' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 28px 28px; }
select:hover, select:focus-visible, select.input:hover, select.input:focus-visible {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D2FF4D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
select option { background-color: var(--bg-2); color: var(--tx-hi); }

/* a difficulty wherever one shows (common.js diffTag; docs/SCORING.md §6): a dot in its colour (green, blue, orange, red:
   shared/chart/difficulty.js, set as --c), its name, its level 1–10 in a rounded badge of that colour */
.diff-tag { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; white-space: nowrap; font-weight: 600; }
.diff-tag > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.diff-lv { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--c); color: var(--night); font-size: 12px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.diff-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* header */
.site-top { display: flex; align-items: center; gap: 32px; padding-top: 20px; padding-bottom: 20px; }
.site-top .logo { font-size: 28px; gap: 12px; }
.site-top .logo img { height: 59px; }
/* the header's Party, beside the account (common.js chrome; ./party-panel.js): the account chip's box (its rounded square, its
   fill and edge, its height: ../shared/account/account.css .pab-chipme; the user, 2026-10-26: «hazlo cuadrado como el del
   usuario con las puntas redondas»), its icon in lime; on a phone the icon alone (its word stays for screen readers) */
.party-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 18px 0 14px; border: 1px solid rgba(250, 247, 242, 0.13); border-radius: 10.6px;
  background: #1B1B26; color: var(--ivory); font: 700 16px/1 var(--font); cursor: pointer; white-space: nowrap; }
.party-btn .party-ic { width: 24px; height: 24px; flex: none; color: var(--lime); }
.party-btn .party-n { margin-left: -2px; font-size: 16px; font-weight: 800; color: var(--lime); }
.party-btn:hover { border-color: var(--lime); }
.party-btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.site-top .party-btn + .acct { margin-left: -20px; }   /* (side by side: the header's gap is 32 px) */
.site-nav { margin-left: auto; display: flex; gap: 32px; }
.site-nav a, .foot-nav a { text-decoration: none; font-weight: 600; font-size: 16px; line-height: 20px; color: var(--tx-hi); }
.site-nav a:hover, .foot-nav a:hover { color: var(--lime); }
.btn.outline { min-height: 48px; padding: 0 24px; font-size: 16px; border: 2px solid var(--ivory); color: var(--ivory); }
.btn.outline:hover { border-color: var(--lime); color: var(--lime); }

/* main CTA pill (≥ 48 px) */
.btn-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 28px; border-radius: 999px; background: var(--lime); color: var(--night); font-weight: 700; font-size: 17px; line-height: 20px; text-decoration: none; transition: transform 0.18s var(--ease); }
.btn-cta:hover { transform: translateY(-2px); }
.btn-cta.violet { background: var(--violet); color: var(--night); }
/* the big Play: a lime pill with a night disc and a ring that beats out of it (a game page's Play; the home's Find your
   game, the user, 2026-10-23: «crea un botón con el mismo estilo del de play game de las páginas de los juegos») */
/* (the round icon at the right end, concentric with the pill: as far from the edge as from the top and the bottom — the user,
   2026-10-24: «mueve el botón negro de play para la derecha y que vaya en correlación con el borde del botón»; the word fills
   what is left, centred on a wide button) */
/* its colour: --bp (lime, the main action; .is-violet / .is-pink / .is-cyan / .is-coral where several sit together, so lime stays
   the one that leads: the user, 2026-10-25, «¿cómo podemos balancear mejor todos estos botones? podemos usar colores distintos») */
.btn-play { --bp: var(--lime); --bp-glow: color-mix(in srgb, var(--bp) 28%, transparent); --bp-glow-on: color-mix(in srgb, var(--bp) 40%, transparent);
  position: relative; display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 16px; min-height: 76px; padding: 0 11px 0 36px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--bp); color: var(--night); font: 700 24px/1 var(--font); text-decoration: none; box-shadow: 0 12px 36px var(--bp-glow);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.btn-play-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--night); color: var(--bp); display: grid; place-items: center; flex: none; }
.btn-play.is-violet { --bp: var(--violet); }
.btn-play.is-pink { --bp: var(--pink); }
.btn-play.is-cyan { --bp: var(--cyan); }
.btn-play.is-coral { --bp: var(--coral); }
.btn-play-ico svg { width: 26px; height: 26px; }
.btn-play > :not(.btn-play-ico) { flex: 1 1 auto; text-align: center; }
/* its ring beats like a song (the user, 2026-10-24: «que se sienta como un pulso de un beat de una canción, cuando hago hover haz
   que el botón pulse igual»): at rest a kick on beats 1 and 3 of a 120 BPM bar (a strong one, a softer one), each hitting at
   once and fading fast; on hover the pill and its icon thump on every beat, the ring with them */
.btn-play::after { content: ''; position: absolute; inset: -6px; border-radius: inherit; border: 3px solid var(--bp); opacity: 0; animation: btn-beat 2s linear infinite; pointer-events: none; }
.btn-play:hover { box-shadow: 0 16px 44px var(--bp-glow-on); animation: btn-thump 0.5s linear infinite; }
.btn-play:hover::after { animation: btn-kick 0.5s linear infinite; }
.btn-play:hover .btn-play-ico { animation: btn-thump-ico 0.5s linear infinite; }
.btn-play:focus-visible { outline: 3px solid var(--ivory); outline-offset: 4px; }
.btn-play.is-sm { min-height: 60px; padding: 0 8px 0 26px; font-size: 19px; gap: 12px; }   /* (cards, carousels: «ese botón de play es el que vamos a usar para todo») */
.btn-play.is-sm .btn-play-ico { width: 44px; height: 44px; }
.btn-play.is-sm .btn-play-ico svg { width: 22px; height: 22px; }
/* done until it comes back (a Daily played, a dare cleared: the user, 2026-10-27, «todo lo que sea daily después de completarse
   esos botones cámbiale el status a completado para no poder darle click de nuevo sino hasta el siguiente día»): the Play's shape,
   outlined and still, a check in its circle, nothing to press (today.js doneBadge) */
.btn-play.is-done, .btn-play.is-done:hover { background: transparent; color: var(--bp); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bp) 55%, transparent); cursor: default; animation: none; }
.btn-play.is-done::after { display: none; }
.btn-play.is-done .btn-play-ico, .btn-play.is-done:hover .btn-play-ico { background: var(--bp); color: var(--night); animation: none; }
.btn-play.is-done small { display: block; margin-top: 4px; font: 500 12px/1.2 var(--font-text, inherit); opacity: 0.75; }
@keyframes btn-beat {
  0% { opacity: 0.85; transform: scale(1); animation-timing-function: cubic-bezier(0.1, 0.7, 0.3, 1); } 22% { opacity: 0; transform: scale(1.1, 1.32); }
  49.9% { opacity: 0; transform: scale(1); } 50% { opacity: 0.45; transform: scale(1); animation-timing-function: cubic-bezier(0.1, 0.7, 0.3, 1); } 68% { opacity: 0; transform: scale(1.06, 1.18); } 100% { opacity: 0; } }
@keyframes btn-kick { 0% { opacity: 0.9; transform: scale(1); animation-timing-function: cubic-bezier(0.1, 0.7, 0.3, 1); } 70%, 100% { opacity: 0; transform: scale(1.1, 1.34); } }
@keyframes btn-thump { 0% { transform: translateY(-2px) scale(1.045); animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); } 45%, 100% { transform: translateY(-2px) scale(1); } }
@keyframes btn-thump-ico { 0% { transform: scale(1.14); animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); } 40%, 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .btn-play::after { animation: none; display: none; } .btn-play { transition: none; } .btn-play:hover, .btn-play:hover .btn-play-ico { animation: none; transform: none; } }

/* shared bits (the home's bento layout lives in home.css) */
.sub { font-size: 18px; line-height: 28px; color: var(--tx-mid); margin-top: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ivory); font-weight: 600; font-size: 16px; cursor: pointer; transition: border-color 0.18s var(--ease); }
.pill:hover { border-color: var(--ivory); }
.pill.on { background: var(--lime); border-color: var(--lime); color: var(--night); }

/* footer */
.site-foot { background: var(--night); }
/* the footer, short: no logo, the links centred and small, the languages in one pill (the user, 2026-10-24: «quita el logo,
   centra todos esos links y compáctalos más… bájale unos puntos a la letra… que diga language y que te marque el que esté
   usando ahorita, mételo en un pill») */
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 24px; padding-bottom: 24px; text-align: center; }
.foot-in .logo { display: none; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; align-items: center; color: var(--tx-lo); }
.foot-nav a { font-size: 14px; line-height: 18px; font-weight: 600; }
.foot-nav > span { display: none; }   /* (no dots between the links: wrapped, one hung at a line's end; the gap parts them) */
.foot-nav { column-gap: 18px; }
.foot-break { flex-basis: 100%; height: 0; }   /* (the footer's two lines: common.js chrome()) */
.foot-langs { display: flex; justify-content: center; padding-bottom: 10px; }   /* (off the tab bar's edge on a phone: the user, 2026-10-24) */
.lang-pill { position: relative; }
.lang-pill summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  color: var(--tx-mid); font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; }
.lang-pill summary::-webkit-details-marker { display: none; }
.lang-pill summary svg { width: 18px; height: 18px; }
.lang-pill summary b { color: var(--lime); font-weight: 700; }
.lang-pill summary::after { content: ''; width: 8px; height: 8px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.18s var(--ease); }
.lang-pill[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lang-pill summary:hover, .lang-pill[open] summary { border-color: var(--lime); color: var(--ivory); }
.lang-pill summary:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.lang-menu { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 20; display: grid; grid-template-columns: repeat(3, auto); gap: 2px;
  padding: 8px; border-radius: 20px; background: var(--bg-1); border: 1px solid var(--line-strong); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); }
.lang-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; color: var(--tx-hi); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.lang-menu a:hover { background: rgba(250, 247, 242, 0.06); color: var(--lime); }
.lang-menu a[aria-current] { background: rgba(210, 255, 77, 0.14); color: var(--lime); }
@media (max-width: 600px) { .lang-menu { grid-template-columns: repeat(2, auto); } }
@media (prefers-reduced-motion: reduce) { .lang-pill summary::after { transition: none; } }

/* ---------- game page ---------- */
.site-top .back { margin-left: auto; }
.play-main { max-width: 1280px; margin: 0 auto; padding: 8px 48px 96px; display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 48px; align-items: start; }
.stage { position: sticky; top: calc(var(--top-h) + 24px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone { width: 376px; height: 760px; border-radius: 44px; overflow: hidden; background: #000; box-shadow: 0 0 0 7px var(--bg-2), 0 0 0 8px var(--line), 0 30px 70px rgba(0, 0, 0, 0.6); }
.phone iframe { width: 100%; height: 100%; border: 0; display: block; }
.phone .cover { position: relative; width: 100%; height: 100%; display: grid; place-items: center; text-align: center; cursor: pointer; background: var(--violet-deep); overflow: hidden; }
.phone .cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
/* a game's picture on its page: whole and centered, over a blurred copy of itself (the picture is landscape, the phone is not) */
.phone .cover > img.bg { opacity: 1; filter: blur(22px) brightness(0.5) saturate(1.2); transform: scale(1.2); }
.phone .cover .art { display: block; width: 86%; max-width: 420px; height: auto; margin: 0 auto 28px; border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.phone .cover > div { position: relative; }
.phone .cover b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: 40px; color: var(--ivory); margin-bottom: 24px; }
.play-btn { width: 88px; height: 88px; border-radius: 50%; border: 0; background: var(--lime); color: var(--night); font-size: 30px; cursor: pointer; transition: transform 0.18s var(--ease); }
.phone .cover:hover .play-btn { transform: scale(1.06); }
.info h1 { font-size: 64px; line-height: 68px; color: var(--ivory); }
.info .tagline { font-size: 22px; line-height: 30px; color: var(--lime); margin-top: 12px; font-weight: 600; }
.info .desc { font-size: 18px; line-height: 28px; color: var(--tx-mid); margin-top: 16px; max-width: 62ch; }
.block { margin-top: 32px; }
.block h2 { font-size: 24px; line-height: 30px; margin-bottom: 12px; }
.howto { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.howto li { color: var(--tx-mid); padding-left: 24px; position: relative; }
.howto li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.songs { display: flex; flex-wrap: wrap; gap: 8px; }
.songs span { padding: 8px 14px; border-radius: 999px; background: var(--bg-2); font-size: 14px; color: var(--tx-mid); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
.fbk { padding: 24px; display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.fbk .input { font-size: 15px; padding: 12px 14px; }
.stars { display: flex; gap: 4px; }
.stars button { background: none; border: 0; font-size: 30px; color: var(--bg-3); cursor: pointer; line-height: 1; padding: 2px; }
.stars button.on { color: var(--lime); }
.thanks { color: var(--lime); font-weight: 600; }
.mobile-only { display: none; }

/* ---------- tablet / phone: message and CTA first, then art and cards in one column ---------- */
@media (max-width: 1100px) {
  .wrap { padding: 0 32px; }
}
@media (max-width: 900px) {
  /* the menu goes to a second row of pills under the logo (it was hidden: no way to the leaderboards on a phone) */
  .site-top { flex-wrap: wrap; row-gap: 12px; }
  .site-top .acct, .site-top .btn.outline { margin-left: auto; }
  .site-top .party-btn { margin-left: auto; }   /* (the Party and the account together at the right) */
  .site-top .party-btn + .acct { margin-left: 12px; }
  .site-nav { order: 3; flex: 1 0 100%; margin-left: 0; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; white-space: nowrap; }
  .site-nav a.on { border-color: var(--lime); color: var(--lime); }
  .play-main { grid-template-columns: 1fr; gap: 24px; padding: 8px 32px 64px; }
  .stage { position: static; }
  .phone { display: none; }
  .mobile-only { display: flex; }
}
@media (max-width: 600px) {
  body { font-size: 16px; line-height: 25px; }
  .wrap { padding: 0 20px; }
  .site-top { gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .site-top .logo { font-size: 22px; }
  .site-top .logo img { height: 45px; }
  .btn.outline { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .sub { font-size: 16px; line-height: 25px; }
  .pill { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .play-main { padding: 8px 20px 48px; }
  .info h1 { font-size: 40px; line-height: 44px; }
  .info .tagline { font-size: 18px; line-height: 26px; }
  .info .desc { font-size: 16px; line-height: 25px; }
}

/* ---------- a phone: an app's chrome (the user, 2026-10-24, from an iPhone: «ordena todo el UI de móvil que se ve crowded,
   hazlo más mobile») — a slim bar on top (the logo, the account chip) and the menu as a tab bar at the bottom (common.js
   tabBar): fixed, over the home indicator's room, the page you are on in lime. --tabs-room is what it takes from the
   bottom of the screen (0 where there is none): the home's feed, the games' feed and the bottom bars leave it free ---------- */
:root { --tabs-h: 64px; --tabs-room: 0px; }
.site-tabs { display: none; }
@media (max-width: 600px) {
  html.has-tabs { --tabs-room: calc(var(--tabs-h) + var(--tabs-lift, 0px) + env(safe-area-inset-bottom, 0px)); scroll-padding-bottom: var(--tabs-room); }
  html.has-tabs body { padding-bottom: var(--tabs-room); }
  .site-top { padding-top: 10px; padding-bottom: 10px; min-height: 64px; }
  .site-top .logo { font-size: 20px; gap: 10px; }
  .site-top .logo img { height: 38px; }
  html.has-tabs .site-top .site-nav { display: none; }   /* (the tab bar is the menu) */
  .party-btn { width: 48px; min-height: 48px; padding: 0; justify-content: center; }
  .party-btn .party-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    height: var(--tabs-room); padding: 0 max(2px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + var(--tabs-lift, 0px)) max(2px, env(safe-area-inset-left, 0px));
    background: rgba(19, 19, 27, 0.94); border-top: 1px solid var(--line); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
    transition: transform 0.28s var(--ease), visibility 0s; }
  .site-tabs > a, .site-tabs > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; height: var(--tabs-h);
    padding: 0 1px; border: 0; border-radius: 16px; background: none; color: var(--tx-mid); font: 600 11px/14px var(--font); text-decoration: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent; }
  .st-ico { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; transition: background 0.18s var(--ease), color 0.18s var(--ease); }
  .st-ico svg { width: 26px; height: 26px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }
  /* each tab its colour: the icon's own, the pill and the word when it is the page you are on */
  .site-tabs > [data-tab="home"] { --tc: #D2FF4D; }
  .site-tabs > [data-tab="games"] { --tc: #C3A8FF; }
  .site-tabs > [data-tab="challenges"] { --tc: #FF7FD0; }
  .site-tabs > [data-tab="boards"] { --tc: #6FE7FF; }
  .st-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-tabs > .on { color: var(--tc, var(--lime)); }
  .site-tabs > .on .st-ico { background: color-mix(in srgb, var(--tc, var(--lime)) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc, var(--lime)) 35%, transparent); }
  .site-tabs > .on .st-ico svg { animation: st-pop 0.32s cubic-bezier(0.3, 1.6, 0.5, 1); }
  .site-tabs > :not(.on) .st-ico svg { opacity: 0.82; }
  @keyframes st-pop { from { transform: scale(0.82); } }
  .site-tabs > a:active .st-ico, .site-tabs > button:active .st-ico { background: rgba(250, 247, 242, 0.1); }
  .site-tabs > :focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
  .st-dot { position: absolute; top: 2px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); border: 2px solid var(--night); }
  /* over everything that opens on the page (the stage, a sheet): out of the way */
  html:has(dialog[open]) .site-tabs { visibility: hidden; }
  /* what sits at the bottom of the screen goes up over the bar: the friends button, a toast, the ask to install (not the
     iPhone's sheet: its arrow points at Safari's own bar), the cookie choice */
  html.has-tabs .pab-ov .ov-btn.br, html.has-tabs .pab-ov .ov-btn.bl { bottom: calc(var(--tabs-room) + 12px); }
  html.has-tabs .toast { bottom: calc(var(--tabs-room) + 16px); }
  html.has-tabs .install-card:not(.is-ios) { bottom: calc(var(--tabs-room) + 12px); }
  html.has-tabs body #pab-consent { bottom: calc(var(--tabs-room) + 8px); }
}
@media (max-width: 600px) and (prefers-reduced-motion: reduce) { .site-tabs, .st-ico { transition: none; } .site-tabs > .on .st-ico svg { animation: none; } }
@media (max-width: 374px) {   /* (a small phone, 320–360 px: Leaderboards, Classements… still whole) */
  .site-tabs > a, .site-tabs > button { font-size: 10px; letter-spacing: -0.02em; }
  .st-ico { width: 44px; }
}

/* the ⋯ (More) button and its menu (common.js moreMenu) */
.more { position: relative; flex: none; }
.more-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--ivory); background: transparent; border: 2px solid var(--line-strong); }
.more-btn svg { width: 22px; height: 22px; }
.more-btn:hover, .more-btn[aria-expanded="true"] { border-color: var(--lime); color: var(--lime); }
.more-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 220px; padding: 6px; border-radius: 20px; background: var(--surface-panel, #1B1B26);
  border: 1px solid var(--line-strong); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); display: grid; gap: 2px; animation: more-in 0.16s var(--ease); }
.more-menu[hidden] { display: none; }
.more-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: none; color: var(--tx-hi);
  font: 600 16px/20px var(--font); text-align: left; text-decoration: none; cursor: pointer; }
.more-item:hover, .more-item:focus-visible { background: var(--bg-2); }
.more-item:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
.more-item.is-violet { color: var(--violet-soft, var(--violet)); }
@keyframes more-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .more-menu { animation: none; } }

/* "Coming soon" (switched in the admin): listed, not playable */
.soon-tag { display: inline-flex; align-items: center; margin-top: 8px; padding: 6px 14px; border-radius: 999px; background: var(--violet); color: var(--night); font-weight: 700; font-size: 14px; }
.phone.soon { position: relative; display: grid; place-items: center; overflow: hidden; }
.phone.soon img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.6) brightness(0.7); }
.phone.soon .soon-tag { position: absolute; font-size: 18px; padding: 10px 20px; }
.soon-note { color: var(--tx-mid); margin-top: 12px; }

/* glowing cards: the night card with two soft lights of the palette in opposite corners (the user, 2026-10-24, of the
   Scoring rules hero: «me encantan estos fondos con esos gradientes… aplícalos a otras partes de la página… incluso usando
   otras combinaciones de colores que hagan buen contraste y balance»). Pairs: violet + lime (the default), cyan + pink,
   pink + violet, lime + cyan, marigold + violet; each light low enough that ivory text on it stays easy to read. */
.glow { --g1: rgba(164, 123, 255, 0.34); --g2: rgba(210, 255, 77, 0.14);
  --glow: radial-gradient(55% 90% at 92% 10%, var(--g1), transparent 70%), radial-gradient(45% 70% at 0% 100%, var(--g2), transparent 70%), var(--bg-1);
  background: var(--glow); }   /* (a card whose own rule sets a background takes var(--glow) back: .lb-race-card) */
.glow.g-cyan { --g1: rgba(77, 227, 255, 0.24); --g2: rgba(255, 95, 200, 0.16); }
.glow.g-pink { --g1: rgba(255, 95, 200, 0.24); --g2: rgba(164, 123, 255, 0.2); }
.glow.g-lime { --g1: rgba(210, 255, 77, 0.18); --g2: rgba(77, 227, 255, 0.16); }
.glow.g-gold { --g1: rgba(255, 210, 63, 0.2); --g2: rgba(164, 123, 255, 0.22); }
.glow.g-coral { --g1: rgba(255, 122, 89, 0.26); --g2: rgba(164, 123, 255, 0.2); }

/* a gameplay clip's sound and pause buttons, up in its corner (frontend/site/clip.js: the home's hero, a game's page) */
.vid-ctl { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; gap: 8px; }
/* the header, always in sight (the user, 2026-10-26: «deja el top bar siempre visible»; common.js chrome()): stuck to the
   top, and once the page scrolls under it (html.top-stuck) on a night bar across the whole width, so it never sits on the
   words being read (the user, 2026-10-24: «cuidado con la lectura de los textos y el icono del usuario»). The bar is its
   ::before (a filter on the header itself would hold the fixed things inside it, as the account's menu); its sides are a
   shadow, which never widens the page. --top-h (its height, common.js) is the room the page's scrolling leaves it */
:root { --top-h: 0px; }
html { scroll-padding-top: var(--top-h); }
.site-top { position: sticky; top: 0; z-index: 70; }
.site-top::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.2s ease-out;
  background: rgba(19, 19, 27, 0.94); box-shadow: 0 0 0 100vmax rgba(19, 19, 27, 0.94); clip-path: inset(0 -100vmax);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html.top-stuck .site-top::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .site-top::before { transition: none; } }
.vid-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; color: var(--ivory);
  background: rgba(19, 19, 27, 0.72); border: 1.5px solid rgba(250, 247, 242, 0.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background 0.18s var(--ease), color 0.18s var(--ease); }
.vid-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vid-btn .i-fill { fill: currentColor; stroke: none; }
.vid-btn[data-state="off"] .i-on, .vid-btn[data-state="on"] .i-off { display: none; }
.vid-btn[data-vid="sound"][data-state="on"] { background: var(--lime); color: var(--night); border-color: var(--lime); }
.vid-btn:hover { background: rgba(19, 19, 27, 0.9); }
.vid-btn[data-vid="sound"][data-state="on"]:hover { background: var(--lime); }
.vid-btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
/* a clip's loading cover, over it until it plays (clip.js; the user, 2026-10-24, on a slow connection: «haz una imagen en
   HTML que parezca una imagen con blur… un efecto de puntos que empiecen desde arriba a la izquierda hasta abajo a la
   derecha… y agrega una barra de carga en el centro»): its first frame as a tiny picture, blurred (--lqip, in the HTML;
   whole, as the clip shows it: --clip-fit, over a darker fill), that gives way to the real poster once it is in; a grid
   of dots that a wave runs through from the middle out, the dots rising in turn as it passes (the user, 2026-10-26: «que
   haga un efecto de wave desde el centro hacia afuera, que los puntos se levanten en secuencia haciendo una onda»): a ring,
   .cc-band's mask, grows from the centre (--cc-r, a registered property, so it animates), and the dots inside it,
   .cc-lit, are bigger, brighter and a pixel and a half higher than their grid; and a short bar with what has come in (.cc-fill,
   scaleX; a glint before the clip's length is known). States (data-cc): wait (on its way), rest (nothing loading: the
   picture until the poster is in), stall (a pause while it plays: the bar alone), done (gone). Under the clip's buttons. */
.clip-cover { position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: inherit; pointer-events: none; transition: opacity 0.3s var(--ease); }
.clip-cover[hidden] { display: none; }
.clip-cover[data-cc="done"] { opacity: 0; }
.cc-pic, .cc-dots, .cc-band, .cc-lit { position: absolute; inset: 0; }
.cc-pic { inset: -40px; filter: blur(16px); transition: opacity 0.45s var(--ease);
  background: var(--lqip) var(--clip-focus, center) / var(--clip-fit, cover) no-repeat, linear-gradient(rgba(11, 11, 17, 0.5), rgba(11, 11, 17, 0.5)), var(--lqip) center / cover no-repeat; }
.clip-cover.has-poster .cc-pic, .clip-cover[data-cc="stall"] .cc-pic { opacity: 0; }
.cc-dots { opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0s 0.3s;
  background: radial-gradient(circle, rgba(250, 247, 242, 0.16) 0 1px, transparent 1.6px) 0 0 / 8px 8px, linear-gradient(rgba(19, 19, 27, 0.22), rgba(19, 19, 27, 0.22)); }
.clip-cover[data-cc="wait"] .cc-dots { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease); }
@property --cc-r { syntax: '<length-percentage>'; inherits: false; initial-value: 0%; }
.cc-band { --cc-r: 0%; animation: cc-wave 2.2s infinite;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent calc(var(--cc-r) - 16%), rgba(0, 0, 0, 0.5) calc(var(--cc-r) - 7%), #000 var(--cc-r), rgba(0, 0, 0, 0.5) calc(var(--cc-r) + 5%), transparent calc(var(--cc-r) + 11%));
  mask-image: radial-gradient(circle at 50% 50%, transparent calc(var(--cc-r) - 16%), rgba(0, 0, 0, 0.5) calc(var(--cc-r) - 7%), #000 var(--cc-r), rgba(0, 0, 0, 0.5) calc(var(--cc-r) + 5%), transparent calc(var(--cc-r) + 11%)); }
/* (the dots as they rise: on the same grid, bigger, brighter, 1.5 px up) */
.cc-lit { background: radial-gradient(circle, rgba(250, 247, 242, 0.95) 0 1.5px, transparent 2.1px) 0 -1.5px / 8px 8px; }
.clip-cover:not([data-cc="wait"]) .cc-band { animation-play-state: paused; }
@keyframes cc-wave { 0% { --cc-r: 0%; animation-timing-function: cubic-bezier(0.3, 0, 0.45, 1); } 85%, 100% { --cc-r: 85%; } }
.cc-bar { position: absolute; left: 50%; top: 50%; width: min(44%, 160px); height: 6px; border-radius: 3px; overflow: hidden; transform: translate(-50%, -50%);
  background: linear-gradient(rgba(250, 247, 242, 0.25), rgba(250, 247, 242, 0.25)), rgba(19, 19, 27, 0.45);   /* (ivory over a little night: seen on a light frame too) */
  box-shadow: 0 0 0 1px rgba(19, 19, 27, 0.3), 0 2px 10px rgba(19, 19, 27, 0.35); opacity: 0; transition: opacity 0.3s var(--ease); }
.clip-cover[data-cc="wait"] .cc-bar, .clip-cover[data-cc="stall"] .cc-bar { opacity: 1; }
.cc-fill { position: absolute; inset: 0; background: var(--lime); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.35s var(--ease); }
.cc-glint { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, rgba(210, 255, 77, 0), var(--lime), rgba(210, 255, 77, 0));
  animation: cc-glint 1.3s ease-in-out infinite; }
.cc-bar.is-known .cc-glint { display: none; }
.clip-cover:not([data-cc="wait"]) .cc-glint { animation-play-state: paused; }
@keyframes cc-glint { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) {
  .cc-dots, .cc-glint { display: none; }   /* (no sweep, no glint: the picture and the bar) */
  .cc-fill { transition: none; }
}
/* a game's guides, under its page (lib/seo.js gameGuides) */
.game-guides { max-width: 1280px; padding: 0 48px 72px; }
.game-guides h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 30px; margin-bottom: 12px; }
.game-guides ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.game-guides li { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font-size: 15px; line-height: 21px; }
.game-guides a { color: var(--tx-hi); text-decoration: none; }
.game-guides a:hover { color: var(--lime); }
@media (max-width: 1023px) { .game-guides { padding: 0 32px 56px; } }
@media (max-width: 600px) { .game-guides { padding: 0 16px 48px; } }
/* the guides as pills (backend/lib/home.js guidesBlock): a panel on the home, under the cards on the games page */
.guide-pills ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0 12px 12px; margin: 0; }
.guide-pills li a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--tx-hi); text-decoration: none; font-size: 15px; line-height: 20px; }
.guide-pills li a:hover { border-color: var(--lime); color: var(--lime); }
.guide-pills li a:focus-visible, .guide-pills h2 a:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.guide-pills h2 a { color: inherit; text-decoration: none; }
.gp-guides { max-width: 1280px; padding: 8px 48px 72px; }
.gp-guides h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 30px; margin-bottom: 12px; }
.gp-guides ul { padding: 0; }
@media (max-width: 1023px) { .gp-guides { padding: 8px 32px 56px; } }
@media (max-width: 600px) { .gp-guides { padding: 8px 16px 48px; } .guide-pills ul { gap: 8px; } .guide-pills li a { padding: 0 16px; font-size: 14px; } }

/* an admin's preview of a hidden game (play.js) */
.preview-note { display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--warn, #FFC94D); color: var(--warn, #FFC94D); font-size: 13px; line-height: 18px; }

/* the ask to install the app (install.js): a small card at the bottom, once the consent banner is gone */
.install-card { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; max-width: 440px; margin: 0 auto; display: grid; grid-template-columns: 48px 1fr 32px; gap: 12px; align-items: start; padding: 16px; border-radius: 24px; background: var(--surface-panel, #1B1B26); border: 1px solid var(--line); color: var(--tx-hi); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.install-card img { width: 48px; height: 48px; border-radius: 12px; }
.install-card b { display: block; font-size: 16px; line-height: 22px; }
.install-card p { margin: 4px 0 12px; font-size: 14px; line-height: 20px; color: var(--tx-mid); }
.install-card .install-ios { margin-bottom: 0; color: var(--tx-hi); }
.install-card .pill { min-height: 44px; }
.install-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--tx-mid); font-size: 22px; line-height: 1; cursor: pointer; }
.install-x:focus-visible { outline: 3px solid var(--lime); }
/* an iPhone or iPad: the sheet many apps show (install.js iosSheet) — the why, the two steps with their icons, and an arrow
   at the browser's Share button: down to the toolbar on an iPhone, up to the top right on an iPad */
.install-card.is-ios { max-width: 420px; bottom: calc(22px + env(safe-area-inset-bottom)); padding: 18px 16px 16px; border-color: var(--line-strong); }
.install-card.is-ios p { margin: 4px 0 10px; }
body:has(.install-card.is-ios) .pab-ov .ov-btn { visibility: hidden; }   /* the friends button waits under the sheet's corner */
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: step; }
.install-steps li { counter-increment: step; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; border-radius: 12px; background: var(--bg-2); font-size: 14px; font-weight: 600; color: var(--tx-hi); }
.install-steps li::before { content: counter(step); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--night); font-size: 12px; font-weight: 800; }
.install-steps svg { color: var(--cyan); }
.install-arrow { position: absolute; left: 50%; bottom: -14px; width: 28px; height: 28px; margin-left: -14px; background: var(--surface-panel, #1B1B26); border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); transform: rotate(45deg); animation: install-nudge 1.2s ease-in-out infinite; }
@keyframes install-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }
.install-card.is-ipad { left: auto; right: 16px; top: calc(16px + env(safe-area-inset-top)); bottom: auto; margin: 0; }
.install-card.is-ipad .install-arrow { left: auto; right: 34px; top: -14px; bottom: auto; transform: rotate(225deg); }
@media (prefers-reduced-motion: reduce) { .install-arrow { animation: none; } }
/* a page in Pick a Beat's popup over a game (../shared/sdk/page.js, ?popup=1): the page alone, room at the top for the
   popup's ✕ */
.is-popup .site-top, .is-popup .site-foot { display: none; }
.is-popup body { padding-top: 64px; }

/* Share a game (share-game.js; the user, 2026-11-25: a share button beside every Play, its link the game's page): a round
   48 px button, the share mark, ghost on the dark */
.share-game { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid var(--line, rgba(250,247,242,.18)); background: rgba(250,247,242,.06); color: var(--ivory, #FAF7F2); cursor: pointer; }
.share-game svg { width: 21px; height: 21px; }
.share-game:hover { border-color: var(--ivory, #FAF7F2); background: rgba(250,247,242,.12); }
.share-game:focus-visible { outline: 3px solid var(--lime, #D2FF4D); outline-offset: 2px; }
.share-game.is-lg { width: 64px; height: 64px; }
.share-game.is-lg svg { width: 26px; height: 26px; }

/* The console in the header, before Games: a bright pill (common.js chrome; the user, 2026-11-25: «más llamativo») — lime to
   violet, Night words, a soft glow that breathes (still with reduced motion) */
.site-nav a.nav-console { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px; border: 0;
  background: linear-gradient(100deg, var(--lime, #D2FF4D) 0%, #B9F06A 45%, var(--violet, #A47BFF) 100%); color: var(--night, #13131B); font-weight: 700;
  box-shadow: 0 0 0 1px rgba(210,255,77,.35), 0 6px 22px rgba(164,123,255,.35); }
.site-nav a.nav-console svg { width: 22px; height: 22px; flex: none; }
.site-nav a.nav-console:hover { color: var(--night, #13131B); filter: brightness(1.06); box-shadow: 0 0 0 2px var(--lime, #D2FF4D), 0 8px 28px rgba(164,123,255,.5); }
.site-nav a.nav-console:focus-visible { outline: 3px solid var(--ivory, #FAF7F2); outline-offset: 3px; }
.site-nav a.nav-console.on { color: var(--night, #13131B); box-shadow: 0 0 0 2px var(--ivory, #FAF7F2); }
@media (prefers-reduced-motion: no-preference) {
  .site-nav a.nav-console { animation: nav-console-glow 2.6s ease-in-out infinite; }
  @keyframes nav-console-glow { 50% { box-shadow: 0 0 0 1px rgba(210,255,77,.5), 0 6px 30px rgba(164,123,255,.6); } }
}
@media (max-width: 900px) { .site-nav a.nav-console { min-height: 40px; border: 0; padding: 0 14px 0 10px; } }

/* Share's popup (share-game.js shareGame; the user, 2026-11-25: «un pop para compartir en otras redes, las más famosas pero
   también la opción para copiar el enlace»): the game, a grid of networks in their own colours on hover, the link and Copy */
.share-pop { margin: auto; border: 0; border-radius: 24px; padding: 20px; width: min(440px, calc(100vw - 32px)); background: var(--bg-1, #1B1B26); color: var(--ivory, #FAF7F2);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 1px rgba(250,247,242,.08); font-family: var(--font, 'Outfit', system-ui, sans-serif); }
.share-pop::backdrop { background: rgba(5,5,9,.66); backdrop-filter: blur(4px); }
.share-pop-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.share-pop-pic { width: 56px; height: 56px; flex: none; border-radius: 14px; object-fit: cover; }
.share-pop-w { flex: 1; min-width: 0; }
.share-pop-w h2 { margin: 0; font: 600 22px/1.15 var(--font-display, 'DynaPuff', system-ui, sans-serif); }
.share-pop-w p { margin: 2px 0 0; color: var(--tx-mid, rgba(250,247,242,.75)); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-pop-x { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(250,247,242,.08); color: inherit; cursor: pointer; }
.share-pop-x svg { width: 20px; height: 20px; }
.share-nets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
.share-net { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 4px 0; border: 0; background: none; color: inherit; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.share-net > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-net-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(250,247,242,.08); border: 1.5px solid rgba(250,247,242,.18);
  transition: background .18s, color .18s, transform .18s, border-color .18s; }
.share-net-ic svg { width: 24px; height: 24px; }
.share-net:hover .share-net-ic, .share-net:focus-visible .share-net-ic { background: var(--b, var(--lime, #D2FF4D)); color: var(--fg, var(--night, #13131B)); border-color: transparent; transform: translateY(-2px); }
.share-net:focus-visible { outline: none; }
.share-net:focus-visible .share-net-ic { outline: 3px solid var(--lime, #D2FF4D); outline-offset: 2px; }
.share-net.is-x { --b: #FAF7F2; } .share-net.is-whatsapp { --b: #25D366; } .share-net.is-facebook { --b: #1877F2; --fg: #FAF7F2; }
.share-net.is-telegram { --b: #29A9EB; --fg: #FAF7F2; } .share-net.is-reddit { --b: #FF4500; --fg: #FAF7F2; } .share-net.is-tiktok { --b: #FE2C55; --fg: #FAF7F2; }
.share-net.is-instagram { --b: #E1306C; --fg: #FAF7F2; } .share-net.is-threads { --b: #FAF7F2; } .share-net.is-more { --b: #A47BFF; --fg: #13131B; }
.share-link { display: flex; gap: 8px; margin-top: 18px; }
.share-url { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(250,247,242,.18); background: rgba(250,247,242,.05); color: inherit; font-family: inherit; font-size: 14px; font-weight: 500; }
.share-copy { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; }
.share-copy .share-net-ic { width: auto; height: auto; background: none; border: 0; }
.share-copy .share-net-ic svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .share-net-ic { transition: none; } .share-net:hover .share-net-ic { transform: none; } }
@media (max-width: 420px) { .share-link { flex-direction: column; } .share-copy { justify-content: center; } }
/* (on top of Share's popup, big: the game's share image, what a friend sees when the link arrives; the close X over its corner) */
.share-pop-art { position: relative; margin: -8px -8px 14px; border-radius: 16px; overflow: hidden; aspect-ratio: 1200 / 630; background: rgba(250,247,242,.06); }
.share-pop-art > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.share-pop-art .share-pop-x { position: absolute; top: 8px; right: 8px; background: rgba(19,19,27,.72); backdrop-filter: blur(6px); }
.share-pop-head:has(.share-pop-w:only-child) { margin-bottom: 14px; }
/* (the card that will be posted, as a chat shows a link: the share image, the site, the name, its line) */
.share-card { margin: 0 0 16px; border-radius: 16px; overflow: hidden; background: rgba(250,247,242,.06); border: 1px solid rgba(250,247,242,.12); }
.share-card-pic { aspect-ratio: 1200 / 630; overflow: hidden; }
.share-card-pic > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.share-card figcaption { display: grid; gap: 2px; padding: 10px 14px 12px; }
.share-card small { color: var(--tx-lo, rgba(250,247,242,.55)); font-size: 12px; text-transform: lowercase; }
.share-card b { font-size: 16px; line-height: 1.25; }
.share-card span { color: var(--tx-mid, rgba(250,247,242,.75)); font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.share-pop-head { margin-bottom: 12px; }
.share-pop { max-height: calc(100dvh - 32px); overflow-y: auto; }
/* (a phone on its side: the card at the left, the title, the networks and the link at its right — nothing to scroll) */
@media (orientation: landscape) and (max-height: 500px) {
  .share-pop { width: min(780px, calc(100vw - 32px)); padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "card head" "card nets" "card link"; column-gap: 18px; align-items: start; }
  .share-pop[open] { display: grid; }
  .share-pop-head { grid-area: head; margin-bottom: 6px; }
  .share-card { grid-area: card; margin: 0; align-self: center; }
  .share-nets { grid-area: nets; gap: 6px 4px; }
  .share-net-ic { width: 44px; height: 44px; }
  .share-net-ic svg { width: 21px; height: 21px; }
  .share-net { font-size: 12px; gap: 4px; padding: 0; }
  .share-link { grid-area: link; margin-top: 10px; flex-direction: row; }
  .share-pop-w h2 { font-size: 20px; }
  .share-pop-x { width: 44px; height: 44px; }
}

/* the header's Party button where the Party Room pill is (the user, 2026-11-25: «este botón lo podemos quitar»); how many are in
   your party shows on the pill. A phone keeps it: there the tab bar is the menu and the header has no pill */
@media (min-width: 601px) { .site-top .party-btn { display: none; } }
/* (the party's pill inside it: the people icon and how many are in your party, in Night so it reads on the moving colours) */
.site-nav a.nav-console .nav-console-n { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px 0 7px; margin-left: 2px; border-radius: 999px; background: var(--night, #13131B); color: var(--lime, #D2FF4D); font-size: 13px; font-weight: 800; line-height: 1; }
.site-nav a.nav-console .nav-console-n svg { width: 16px; height: 16px; }
.site-nav a.nav-console .nav-console-n[hidden] { display: none; }

/* the Party Room pill, alive (the user, 2026-11-25: «anima un gradiente aquí para que se vea súper llamativo y al hacer hover que
   pulse como el botón de Play»): lime, cyan and violet flowing across it; on hover the Play button's thump and its ring kicking out
   (site.css btn-thump, btn-kick); still with reduced motion */
.site-nav a.nav-console { position: relative; isolation: isolate; background: linear-gradient(100deg, #D2FF4D 0%, #8FF5C8 25%, #A47BFF 50%, #FF7AD9 70%, #D2FF4D 100%); background-size: 200% 100%; --bp: #D2FF4D; }
.site-nav a.nav-console::after { content: ''; position: absolute; inset: -5px; border-radius: inherit; border: 3px solid var(--bp); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .site-nav a.nav-console { animation: nav-console-flow 4s linear infinite, nav-console-glow 2.6s ease-in-out infinite; }
  .site-nav a.nav-console:hover { animation: nav-console-flow 1.6s linear infinite, btn-thump 0.5s linear infinite; filter: none; }
  .site-nav a.nav-console:hover::after { animation: btn-kick 0.5s linear infinite; }
  .site-nav a.nav-console:hover svg { animation: btn-thump-ico 0.5s linear infinite; }
  @keyframes nav-console-flow { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
}
/* (Games, Challenges and Leaderboards level with the taller Party Room pill: the user, 2026-11-25, «alinea los botones») */
.site-nav { align-items: center; }

/* Every Play button flows the Party Room's colours on hover (the user, 2026-11-26: «a todos los botones de play colócale la animación
   con el gradiente»), with its thump and ring as before; still with reduced motion */
.btn-play:hover { background: linear-gradient(100deg, #D2FF4D 0%, #8FF5C8 25%, #A47BFF 50%, #FF7AD9 70%, #D2FF4D 100%); background-size: 200% 100%; color: var(--night, #13131B); }
@media (prefers-reduced-motion: no-preference) {
  .btn-play:hover { animation: nav-console-flow 1.6s linear infinite, btn-thump 0.5s linear infinite; }
}

/* Join with a code in the header, beside the Party Room pill (common.js chrome): an outline pill */
.site-nav a.nav-join { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(250, 247, 242, 0.35); color: var(--ivory, #FAF7F2); font-weight: 700; white-space: nowrap; }
.site-nav a.nav-join:hover { border-color: var(--lime, #D2FF4D); color: var(--lime, #D2FF4D); }
.site-nav a.nav-join:focus-visible { outline: 3px solid var(--lime, #D2FF4D); outline-offset: 3px; }
@media (max-width: 900px) { .site-nav a.nav-join { min-height: 40px; } }

/* (the header's Party as a pill too, with the account and the inbox: the user, 2026-11-26) */
.party-btn { border-radius: 999px; }
/* (the header's links closer together: the user, 2026-11-26, «pega un poco más los botones»; a phone keeps its own row) */
@media (min-width: 901px) { .site-nav { gap: 18px; } }
/* (no label in the header ever breaks onto two lines: the user, 2026-11-26, «trata de que eso no pase»; on a narrower computer
   the links tighten instead) */
.site-nav a, .site-nav a.nav-console, .site-nav a.nav-join { white-space: nowrap; flex-shrink: 0; }
@media (min-width: 901px) and (max-width: 1240px) {
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 15px; }
  .site-nav a.nav-console, .site-nav a.nav-join { padding-inline: 12px; }
  .site-top .logo span { font-size: 24px; }
}
@media (min-width: 901px) and (max-width: 1240px) { .site-top .pab-chip-name { display: none; } .site-top .pab-chipme { padding-right: 6px; } }
/* Every Play's word in DynaPuff, centred on the whole pill: the left side pads by the ▶ circle's width so the word sits in the
   middle (the user, 2026-11-26: «centra la palabra play y usa la otra tipografía») */
.btn-play { font-family: var(--font-display); font-weight: 600; padding-left: calc(11px + 54px + 16px); }
.btn-play.is-sm { padding-left: calc(8px + 44px + 12px); }

/* The beat wave (./beat-wave.js; the user, 2026-11-26: «pásale ese efecto a todos los botones de play incluyendo el de la
   consola», with Start a party, the header's Party Room and the gameplay box's pill). While a button waves (.is-waving) its fill
   moves to a layer behind its words (.pab-wave-fill) that swells and wobbles on every beat with the gradient flowing, and a wavy
   ring (.pab-wave-ring) ripples out of it in a new colour each beat; the words stay crisp. Mouse only; not with reduced motion. */
.pab-wave { position: relative; isolation: isolate; }
.pab-wave-fill { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, #D2FF4D 0%, #8FF5C8 25%, #A47BFF 50%, #FF7AD9 70%, #D2FF4D 100%) var(--bp, #D2FF4D); background-size: 200% 100%; }
.pab-wave-ring { position: absolute; inset: -5px; z-index: -2; border-radius: inherit; border: 3px solid var(--ring, #D2FF4D); opacity: 0; pointer-events: none; }
.arcade-stage-cta .pab-wave-fill, .arcade-intro .arcade-console-start .pab-wave-fill { inset: -2px; border: 2px solid var(--night, #13131B); box-shadow: 3px 4px 0 var(--night, #13131B); }
@media (prefers-reduced-motion: no-preference) {
  .pab-wave.is-waving { background: transparent !important; border-color: transparent !important; box-shadow: none !important; filter: none !important; animation: pab-thump-big 0.5s linear infinite !important; }
  .pab-wave.is-waving::after { animation: none !important; opacity: 0 !important; }
  .pab-wave.is-waving > .pab-wave-fill { opacity: 1; filter: url(#pab-wave-pulse); animation: nav-console-flow 1.6s linear infinite; }
  .pab-wave.is-waving > .pab-wave-ring { filter: url(#pab-wave-ring); animation: pab-ring 0.5s linear infinite; }
  /* (the swell is a scale of its own, so a pill placed with transform — the gameplay box's — keeps its place) */
  @keyframes pab-thump-big { 0% { scale: 1.14 1.2; animation-timing-function: ease-out; } 30% { scale: 1.11 1.15; animation-timing-function: cubic-bezier(.5, 0, .6, 1); } 85%, 100% { scale: 1; } }
  @keyframes pab-ring { 0% { opacity: .95; transform: scale(1); animation-timing-function: linear; } 100% { opacity: 0; transform: scale(1.15, 1.7); } }
}

/* (the beat wave's ring is drawn over the page, fixed and on top, so no box that clips its insides cuts it — the console's feature
   card: the user, 2026-11-26, «haz que las ondas pasen por delante del container»; beat-wave.js places one per beat) */
.pab-wave-ring { position: fixed; inset: auto; z-index: 2147483000; margin: -5px 0 0 -5px; box-sizing: content-box; padding: 2px; }
@media (prefers-reduced-motion: no-preference) {
  body > .pab-wave-ring { filter: url(#pab-wave-ring); animation: pab-ring 0.5s linear forwards; }
}

/* (the roll-out: the gradient layer keeps its wave and fades over 0.45 s while beat-wave.js eases the swell back and lets the wave
   die down — the user, 2026-11-26, «re-escalarse bien smooth y que la onda se vaya apagando») */
.pab-wave > .pab-wave-fill { transition: opacity .45s ease; }
@media (prefers-reduced-motion: no-preference) { .pab-wave > .pab-wave-fill { filter: url(#pab-wave-pulse); } }

/* (a smoother start: the beat loop waits 0.2 s while beat-wave.js grows the pill into its first swell; the gradient layer fades in
   over that time — the user, 2026-11-26, «el inicio del hover que sea un poco más smooth») */
@media (prefers-reduced-motion: no-preference) {
  .pab-wave.is-waving { animation: pab-thump-big 0.5s linear 0.2s infinite !important; }
  .pab-wave.is-waving > .pab-wave-fill { transition: opacity .2s ease; }
}
.pab-wave { transform-origin: 50% 50%; }   /* (every waving button swells from its middle) */

/* (a softer pulse: each beat rises from rest into the swell over 60 ms, a little smaller, holds and settles — the user,
   2026-11-26, «el pulso del beat también suavízalo un poquito») */
@media (prefers-reduced-motion: no-preference) {
  .pab-wave.is-waving { animation: pab-thump-big 0.5s linear 0.12s infinite !important; }
  @keyframes pab-thump-big {
    0% { scale: 1; animation-timing-function: cubic-bezier(.3, 0, .3, 1); }
    12% { scale: 1.1 1.14; animation-timing-function: ease-out; }
    40% { scale: 1.08 1.11; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
    90%, 100% { scale: 1; }
  }
}
/* (the Party Room's buttons in DynaPuff, like Play: the header pill, the welcome card's button and the gameplay box's pill — the
   user, 2026-11-26, «prueba cambiar la tipografía de esos 2 botones por la otra») */
.site-nav a.nav-console, .arcade-intro .arcade-console-start, .arcade-stage-cta { font-family: var(--font-display); font-weight: 600; }
/* (Play's dark ▶ circle wobbles with the same wave as its pill: the circle is drawn on a layer behind the ▶ that carries the pulse
   filter, so the ▶ stays crisp — the user, 2026-11-26, «quiero que ese container negro se distorsione como el container de afuera,
   usa la misma fórmula») */
.pab-wave .btn-play-ico { position: relative; isolation: isolate; background: transparent; }
.pab-wave .btn-play-ico::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--night, #13131B); }
@media (prefers-reduced-motion: no-preference) { .pab-wave .btn-play-ico::before { filter: url(#pab-wave-pulse); } }
.pab-wave.is-waving .btn-play-ico { animation: none !important; }   /* (the ▶ circle no longer thumps on its own; it only wobbles with the pill: the user, 2026-11-26) */

/* The header's links pop on hover, cartoon style: Join with a code, Games, Challenges, Leaderboards (the user, 2026-11-26:
   «hazle pop a esos botones»); mouse only, not with reduced motion */
.site-nav a:not(.nav-console) { display: inline-flex; align-items: center; transition: transform .22s cubic-bezier(.34, 1.8, .5, 1), color .15s, border-color .15s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .site-nav a:not(.nav-console):hover { transform: translateY(-3px) scale(1.1) rotate(-2deg); color: var(--lime, #D2FF4D); }
  .site-nav a:not(.nav-console):nth-child(even):hover { transform: translateY(-3px) scale(1.1) rotate(2deg); }
  .site-nav a:not(.nav-console):active { transform: translateY(1px) scale(.94, .9); transition-duration: .06s; }
}

/* The inbox and the account pop on hover like the header links (the user, 2026-11-26: «pop a esos 2»); the avatar keeps its dance */
.site-top .pab-inbox-btn, .site-top .pab-chipme { transition: transform .22s cubic-bezier(.34, 1.8, .5, 1), border-color .15s, color .15s; }
.site-top .pab-inbox-btn:hover { border-color: var(--lime, #D2FF4D); color: var(--lime, #D2FF4D); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .site-top .pab-inbox-btn:hover { transform: translateY(-3px) scale(1.12) rotate(-4deg); }
  .site-top .pab-chipme:hover { transform: translateY(-3px) scale(1.1); }
  .site-top :is(.pab-inbox-btn, .pab-chipme):active { transform: translateY(1px) scale(.92, .88); transition-duration: .06s; }
}
/* One scrollbar on every page, the quiet dark one (the user, 2026-11-26: «tenemos 2 tipos de scroll bar en mobile, me gusta más el que
   es más disimulado y más oscuro»): a thin rounded thumb on no track, no arrows — never the browser's light default */
html { scrollbar-color: rgba(250,247,242,.2) transparent; }
* { scrollbar-width: thin; scrollbar-color: rgba(250,247,242,.2) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; background: transparent; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(250,247,242,.2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(250,247,242,.32); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
/* the header's Party button in the console's new look (the user, 2026-11-26: «este sigue siendo el viejo»): dark, round-ended,
   the soft lip under it; on a phone a 48 px circle */
.site-top .party-btn { border-radius: 999px; border-color: rgba(250,247,242,.14); background: #232331; box-shadow: inset 0 -3px 0 rgba(0,0,0,.38), inset 0 1px 0 rgba(250,247,242,.08); }
.site-top .party-btn:active { box-shadow: inset 0 1px 0 rgba(0,0,0,.4); }
/* The phone's tab bar in the new look (common.js tabBar): five round icon buttons — dark, the soft lip — no words under them (kept for
   screen readers and tooltips); the page you are on ringed in its colour; Party in the middle, a bigger lime-ringed button standing
   up out of the bar */
@media (max-width: 600px) {
  /* the buttons stand a little higher, clear of the iPhone's home bar where a tap is hard to land (the user, 2026-11-26: «sube un poco
     más estos botones porque es difícil darle tap en iPhone») */
  :root { --tabs-lift: 14px; }
  .site-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
  /* the end buttons in from the screen's edges and the five spread evenly, easier for a thumb (the user, 2026-11-26: «los de los extremos
     mételos un poco más hacia adentro y reacomoda los márgenes entre ellos»): a wider side margin and the same gap between every two buttons, Party's bigger one too */
  .site-tabs { grid-template-columns: repeat(5, auto); justify-content: space-between; padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }
  .site-tabs > a, .site-tabs > button { gap: 0; }
  .site-tabs .st-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-tabs .st-ico { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(250,247,242,.12); background: #232331;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.38), inset 0 1px 0 rgba(250,247,242,.08); transition: scale .22s cubic-bezier(.2,1.8,.4,1), box-shadow .18s, border-color .18s; }
  .site-tabs .st-ico svg { width: 24px; height: 24px; }
  .site-tabs > .on .st-ico { background: #232331; border-color: var(--tc, var(--lime)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc, var(--lime)) 35%, transparent), inset 0 -3px 0 rgba(0,0,0,.38); }
  .site-tabs > :not(.on) .st-ico svg { opacity: 1; }
  .site-tabs > a:active .st-ico, .site-tabs > button:active .st-ico { scale: .92; box-shadow: inset 0 1px 0 rgba(0,0,0,.4); background: #232331; }
  .site-tabs > [data-tab="party"] { --tc: #D2FF4D; }
  .site-tabs > [data-tab="party"] .st-ico { width: 62px; height: 62px; translate: 0 -14px; border: 2px solid var(--lime); background: radial-gradient(circle at 50% 30%, #2C2C3C, #15151E 72%);
    box-shadow: 0 0 0 4px rgba(210,255,77,.14), 0 10px 24px rgba(0,0,0,.45), inset 0 -3px 0 rgba(0,0,0,.4); }
  .site-tabs > [data-tab="party"] .st-ico svg { width: 30px; height: 30px; }
  .site-tabs > [data-tab="party"].on .st-ico { box-shadow: 0 0 0 4px rgba(210,255,77,.3), 0 10px 24px rgba(0,0,0,.45), inset 0 -3px 0 rgba(0,0,0,.4); }
  .site-tabs .st-dot { top: -2px; right: -2px; }
}
/* The phone's tab bar, continued (the user, 2026-11-26: «quiero que el anillo de Party sea el del gradiente animado»; «que no se refresque
   el menú de abajo, que quede sticky y que las páginas entren animadas; marca el botón de la sección donde estés con el color del icono»):
   - Party ringed by the Play button's flowing colours (lime, mint, violet, pink) turning round it;
   - the page you are on: its button tinted and ringed in its icon's colour, with a soft glow. */
@media (max-width: 600px) {
  .site-tabs > [data-tab="party"] .st-ico { isolation: isolate; border: 0; }
  .site-tabs > [data-tab="party"] .st-ico::before { content: ''; position: absolute; inset: -3px; z-index: -1; border-radius: 50%; padding: 3px;
    background: conic-gradient(from 0deg, #D2FF4D, #8FF5C8, #A47BFF, #FF7AD9, #D2FF4D);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
  .site-tabs > [data-tab="party"] .st-ico::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #2C2C3C, #15151E 72%); }
  .site-tabs > .on:not([data-tab="party"]) .st-ico { background: color-mix(in srgb, var(--tc, var(--lime)) 20%, #232331); border-color: var(--tc, var(--lime));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc, var(--lime)) 28%, transparent), 0 0 18px color-mix(in srgb, var(--tc, var(--lime)) 32%, transparent), inset 0 -3px 0 rgba(0,0,0,.38); }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .site-tabs > [data-tab="party"] .st-ico::before { animation: st-party-ring 3s linear infinite; }
  @keyframes st-party-ring { to { rotate: 360deg; } }
}
/* Pages change without the header and the tab bar redrawing: the browser keeps them in place while the page between them comes in
   (cross-document view transitions; a browser without them simply loads the page) — from a little below, squashed, settling */
@view-transition { navigation: auto; }
/* (named only while a page change runs — html.pab-vt, common.js: a named element cuts what the glass behind the bar and the header can
   see, so they would not blur the page) */
html.pab-vt .site-tabs { view-transition-name: pab-tabs; }
html.pab-vt .site-top { view-transition-name: pab-top; }
::view-transition-group(pab-tabs), ::view-transition-group(pab-top) { animation: none; }
::view-transition-old(pab-tabs), ::view-transition-new(pab-tabs), ::view-transition-old(pab-top), ::view-transition-new(pab-top) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { animation: pab-page-out .16s ease-in both; }
::view-transition-new(root) { animation: pab-vt-fade .2s ease-out both; }   /* (the page's own content comes in once it is ready: html.pab-ready main, below) */
@keyframes pab-vt-fade { from { opacity: 0; } }
@keyframes pab-page-out { to { opacity: 0; transform: translateY(-6px) scale(.99); } }
@keyframes pab-page-in { from { opacity: 0; transform: translateY(22px) scale(.985, .97); } 65% { opacity: 1; transform: translateY(-3px) scale(1.003, 1.006); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
/* the page you are on: its button ringed in its icon's colour, nothing more — no glow, no halo, no tint (the user, 2026-11-26: «marca
   solo el anillo sin el glow») */
@media (max-width: 600px) {
  .site-tabs > .on:not([data-tab="party"]) .st-ico { background: #232331; border: 2px solid var(--tc, var(--lime)); box-shadow: inset 0 -3px 0 rgba(0,0,0,.38), inset 0 1px 0 rgba(250,247,242,.08); }
}
/* No page ever scrolls sideways (the user, 2026-11-26: «la pantalla de Challenges está generando un scroll horizontal»): a decoration
   that reaches past the edge — the leaderboard's stage lights (4 px each side), the Challenges hero's bolt — is clipped at the
   window's edge; clip, not hidden, so nothing becomes a scroll box and sticky headers keep working */
html, body { overflow-x: clip; }
/* the page's last line clear of the tab bar — and of Party standing 14 px up out of it — with air to spare (the user, 2026-11-26: «sube
   un poco más el contenido de las páginas para que no toque el borde con los botones») */
@media (max-width: 600px) {
  html.has-tabs body:not(.console-page) { padding-bottom: calc(var(--tabs-room) + 40px); }   /* (not the console: an app, it never scrolls) */
  html.has-tabs { scroll-padding-bottom: calc(var(--tabs-room) + 40px); }
}
/* Party sits beside the avatar again (the user, 2026-11-26: «arrima ese botón a la derecha un poco»): the inbox's hidden envelope now
   stands between them, so «Party + avatar» no longer matched and both split the free space */
@media (max-width: 600px) { .site-top .party-btn ~ .acct { margin-left: 12px; } }

/* a tablet or a narrow window (the menu on its own row under the logo): the logo with air above it, never cut at the window's top,
   and the account at the right (the user, 2026-11-26: «está cortando el logo un poquito arriba y está dejando el botón del profile
   en el medio en vez de a la derecha») */
@media (min-width: 601px) and (max-width: 1099px) {
  .site-top.site-top { padding-top: 12px; }
  .site-top .acct { margin-left: auto; }
}
/* fades to black at the top and the bottom of a phone's screen (the user, 2026-11-26: «coloca aquí unos fade a negro tanto arriba como
   abajo»): the page scrolling under the header fades into the night behind it, and into the tab bar above it */
@media (max-width: 600px) {
  .site-top { isolation: isolate; }
  .site-top::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 0; bottom: -28px; pointer-events: none;
    background: linear-gradient(to bottom, var(--night, #13131B) 0%, var(--night, #13131B) 62%, rgba(19,19,27,0) 100%); }
  .site-tabs::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 44px; pointer-events: none;
    background: linear-gradient(to top, rgba(19,19,27,.96), rgba(19,19,27,0)); }
}
/* the header in the tab bar's glass (the user, 2026-11-26: «este efecto de glass que hace la barra de abajo colócaselo a la de arriba
   también»): the same translucent night and blur, with the fade below it */
@media (max-width: 600px) {
  .site-top::before { bottom: 0; background: rgba(19,19,27,.78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
  .site-top::after { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 100%; height: 24px; pointer-events: none; background: linear-gradient(to bottom, rgba(19,19,27,.7), rgba(19,19,27,0)); }
}
@media (max-width: 600px) {
  /* (the glass on the header itself: a layer inside an isolated header could not see the page behind to blur it) */
  .site-top { isolation: auto; background: rgba(19,19,27,.78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
  .site-top::before { content: none; }
}
/* the glass's edge feathered, never a hard line (the user, 2026-11-26: «trata de que no se vea tan dura esa transición de color o del
   gradiente»): the bar and the header keep no background or blur of their own; a layer behind them carries the tint and the blur and is
   masked off in eased steps over its last 44 px (the tab bar's top, the header's bottom), so the page melts into the glass */
@media (max-width: 600px) {
  .site-tabs { background: none; border-top: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-tabs::before { z-index: -1; top: -44px; bottom: 0; height: auto; background: rgba(19,19,27,.9);
    -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
    --feather: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.08) 8px, rgba(0,0,0,.25) 16px, rgba(0,0,0,.5) 24px, rgba(0,0,0,.75) 32px, rgba(0,0,0,.93) 40px, #000 44px);
    -webkit-mask-image: var(--feather); mask-image: var(--feather); }
  .site-top { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-top::before { content: ''; z-index: -1; top: 0; bottom: -44px; background: rgba(19,19,27,.86);
    -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
    --feather: linear-gradient(to top, transparent 0, rgba(0,0,0,.08) 8px, rgba(0,0,0,.25) 16px, rgba(0,0,0,.5) 24px, rgba(0,0,0,.75) 32px, rgba(0,0,0,.93) 40px, #000 44px);
    -webkit-mask-image: var(--feather); mask-image: var(--feather); }
  .site-top::after { content: none; }
}
/* the tab bar's pop (common.js tabBar): squashed under the finger, then a bouncy pop on the tap and as the page it opens arrives */
@media (prefers-reduced-motion: no-preference) {
  .site-tabs > :active .st-ico { scale: .88; transition-duration: .08s; }
  .site-tabs .st-ico.is-pop { animation: st-pop .5s cubic-bezier(.2,.9,.3,1); }
}
@keyframes st-pop { 0% { transform: scale(.86); } 40% { transform: scale(1.18) rotate(-6deg); } 65% { transform: scale(.95) rotate(3deg); } 85% { transform: scale(1.03); } 100% { transform: none; } }
/* a page's icon beside its title (common.js titleIcon): the tab bar's two-tone icon in its round dark button, sized with the title */
h1.has-ico { display: flex; align-items: center; gap: .22em; }
h1.has-ico > span:not(.page-ico) { min-width: 0; }
.page-ico { flex: none; display: inline-grid; place-items: center; width: clamp(44px, 1.05em, 64px); height: clamp(44px, 1.05em, 64px); border-radius: 50%;
  border: 1px solid rgba(250,247,242,.12); background: #232331; box-shadow: inset 0 -3px 0 rgba(0,0,0,.38), inset 0 1px 0 rgba(250,247,242,.08); }
.page-ico svg { width: 56%; height: 56%; }
.ch-hero h1.has-ico { align-items: flex-start; }
.ch-hero h1.has-ico .page-ico { margin-top: .02em; }
/* the header on one line on every page of a phone, as on the home (the user, 2026-11-26: «el sign in también está abajo en las páginas
   internas pero no está así en el home»): the home's compact logo and Sign in everywhere, and no wrap */
@media (max-width: 600px) {
  .site-top { flex-wrap: nowrap; column-gap: 8px; }
  .site-top .logo { font-size: 18px; gap: 6px; min-width: 0; }
  .site-top .logo img { width: 30px; height: 34px; object-fit: contain; }
  .site-top .pab-signin { flex: none; min-height: 44px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
}
/* an iPhone zooms the whole page into a text field whose letters are under 16 px, and the layout breaks (the user, 2026-11-26:
   «cuando le doy al search la página hace un zoom que rompe la estructura»): on iOS every field's text is 16 px (iOS only:
   -webkit-touch-callout is its own), so focusing one never zooms */
@supports (-webkit-touch-callout: none) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea { font-size: 16px !important; }
}
/* Share in the site's new round look (the tab bar's and the clip buttons': dark, the soft lip, a lime ring on hover) — on the home's
   cards and everywhere else it shows (the user, 2026-11-26: «trae el ícono nuevo de compartir») */
.share-game { border: 1px solid rgba(250,247,242,.14); background: #232331; color: var(--ivory, #FAF7F2);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.38), inset 0 1px 0 rgba(250,247,242,.08), 0 6px 16px rgba(0,0,0,.3); transition: scale .22s cubic-bezier(.2,1.8,.4,1), border-color .15s; }
.share-game:hover { background: #2C2C3C; border-color: var(--lime, #D2FF4D); }
.share-game:active { scale: .92; box-shadow: inset 0 1px 0 rgba(0,0,0,.4); }
.share-game svg { width: 22px; height: 22px; }

/* a slide's clip buttons (clip.js clipHtml slide): sound on top, Share at the bottom right, in the tab bar's round look */
.vid-ctl.is-slide .vid-btn { width: 48px; height: 48px; border: 1px solid rgba(250,247,242,.14); background: #232331; color: var(--ivory);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.38), inset 0 1px 0 rgba(250,247,242,.08), 0 6px 16px rgba(0,0,0,.35); transition: scale .22s cubic-bezier(.2,1.8,.4,1); }
.vid-ctl.is-slide .vid-btn:active { scale: .92; box-shadow: inset 0 1px 0 rgba(0,0,0,.4); }
.vid-ctl.is-slide .vid-btn[data-vid="sound"][data-state="on"] { background: #232331; color: var(--lime); border-color: var(--lime); box-shadow: 0 0 0 2px rgba(210,255,77,.35), inset 0 -3px 0 rgba(0,0,0,.38); }
.vid-ctl.is-slide .vid-share svg { width: 24px; height: 24px; }
.vid-ctl-b { top: auto; bottom: 14px; }
@media (hover: hover) { .vid-ctl.is-slide .vid-btn:hover { background: #2C2C3C; border-color: var(--lime); } }

/* the player's name in a take's line: bold and white, on every page that shows it (activity.js; the user, 2026-11-27) */
.live-words b { color: #FAF7F2; font-weight: 700; }

/* A page's content waits until its first screen is ready, then comes in whole (common.js adds html.pab-ready; the user, 2026-11-27: «siento que todavía en las páginas cuando salto de una a otra se siente esa sensación de carga de contenido de browser, me gustaría que precargara el contenido antes de mostrarlo para poderlo animar bien»).
   Never on the console (its own boot) or in a game's popup; and if the script never runs, it shows on its own after 1.8 s. */
html:not(.pab-ready) body:not(.console-page) > :is(main, section, .site-foot) { opacity: 0; animation: pab-unhold 0s linear 1.8s forwards; }
@keyframes pab-unhold { to { opacity: 1; } }
html.pab-ready body:not(.console-page) > :is(main, section, .site-foot) { animation: pab-page-in .44s cubic-bezier(.2,.9,.3,1) both; }
@media (prefers-reduced-motion: reduce) {
  html:not(.pab-ready) body:not(.console-page) > :is(main, section, .site-foot) { animation-delay: .8s; }
  html.pab-ready body:not(.console-page) > :is(main, section, .site-foot) { animation: pab-vt-fade .18s ease-out both; }
}
