/* The Challenges page as a phone's feed (the user, 2026-10-26: «me gustaría que en mobile la pantalla de los challenges
   funcione como un feed de instagram también, usa el mismo efecto del home para esto y agrupa las pantallas para que
   funcionen como tal»): a screen each — today's Daily Beat, every game's dare (its own head, the section's), the records
   (sideways, one card at a time, as a post of several pictures) and the week (the Mixtape and your duels) — each swipe
   landing on the next, as the home's games do (slides.js snapFeed; feed.css). Each screen starts under the header, which
   stays on top (common.js --top-h; the page's scroll-padding leaves it its room: site.css). No media query here:
   challenges.html gates this file with its <link media>, and challenges.js reads that same media (slides.js feedOn). */
:root { --ch-top: var(--top-h, 68px); --ch-screen: max(480px, calc(100svh - var(--ch-top) - 12px - var(--tabs-room, 0px))); }
html:has(body.ch-body) { scroll-snap-type: y proximity; }
html.is-feed:has(body.ch-body) { scroll-snap-type: y mandatory; }
.ch-body .site-top { scroll-snap-align: start; }
.ch-body .feed-end { scroll-snap-align: start; scroll-margin-top: 12px; }
.ch-page { gap: 12px; padding-bottom: 12px; }
.ch-screen { min-height: var(--ch-screen); scroll-snap-align: start; scroll-snap-stop: always; scroll-margin-top: 12px; }

/* today's Daily Beat: the screen its picture's, the clock under its tag (the corner is the avatar's), Play at the foot */
.ch-daily.ch-screen { display: flex; }
.ch-daily-in { gap: 12px; }
.ch-daily-top { flex-direction: column; gap: 10px; }
.ch-clock { text-align: left; }
.ch-daily .btn-play, .ch-daily .pill-link { margin-top: auto; }

/* a dare in every game: a screen each over its game's picture, with the section's head (its tag, how many are done, its
   clock) as its own, so each one stands alone */
.ch-dares-sec { display: contents; }
.ch-dares-sec > .ch-sec-head { display: none; }
.ch-dares { display: contents; }
.ch-dare { min-height: var(--ch-screen); padding: 20px 18px; border-radius: 28px; gap: 14px; scroll-snap-align: start; scroll-snap-stop: always; scroll-margin-top: 12px; }
.ch-dare-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 12px; }
.ch-dare-head .tag-chip { grid-column: 1 / -1; justify-self: start; }
.ch-dare-head .meta { margin: 0; color: var(--tx-hi); }
.ch-dare-head .ch-count { font-size: 32px; }
.ch-dare-game { margin-top: auto; }
.ch-dare-t { margin-top: 0; font-size: 34px; line-height: 1.08; }
.ch-dare-foot .btn-play { flex: 1; justify-content: space-between; max-width: 220px; }

/* the records: their head, then the cards sideways, one at a time with the next one peeking, and a dot each */
.ch-rec-sec { display: flex; flex-direction: column; gap: 14px; padding: 20px 0 18px; }
.ch-rec-sec > .ch-sec-head, .ch-rec-sec > .ch-empty { padding: 0 18px; }
.ch-records { flex: 1; display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 18px;
  padding: 0 18px; scrollbar-width: none; }
.ch-records::-webkit-scrollbar { display: none; }
.ch-rec { flex: 0 0 86%; scroll-snap-align: start; padding: 22px 20px; }
.ch-rec h3 { font-size: 30px; }
.ch-rec .ch-score { font-size: 52px; }
.ch-rec .btn-play { margin-top: auto; }
.ch-rec-dots { display: flex; justify-content: center; gap: 8px; }
.ch-rec-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(250, 247, 242, 0.28); transition: background 0.2s, transform 0.2s; }
.ch-rec-dots i.on { background: var(--lime); transform: scale(1.25); }

/* the week: the Mixtape and your duels on one screen */
.ch-week-sec { padding: 0; background: none; }
.ch-week-sec .ch-week { flex: 1; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
.ch-week-sec .t-mix, .ch-week-sec .ch-duels { padding: 20px 18px; }

@media (prefers-reduced-motion: reduce) { .ch-rec-dots i { transition: none; } }

/* two dares a screen (the user, 2026-11-26: «trata de mostrar 2 challenges por slide»): each half the screen over its game's landscape
   cover, the pair snapping together on the first one; the section's head (its tag, the count, the clock) only on the first of each pair */
.ch-dare { min-height: calc((var(--ch-screen) - 12px) / 2); padding: 16px 16px 16px 18px; gap: 10px; }
.ch-dare:nth-child(even) { scroll-snap-align: none; scroll-snap-stop: normal; }
.ch-dare:nth-child(even) .ch-dare-head { display: none; }
.ch-dare-head .ch-count { font-size: 26px; }
.ch-dare-t { font-size: 24px; line-height: 1.1; }
.ch-dare-foot .btn-play { max-width: 180px; }
.ch-dare-art { opacity: .55; }
/* a dare's Play on one line, never two (the user, 2026-11-26: «ese play now en los challenges que no esté en 2 líneas»): the button is as
   wide as its words need; where that and the Beats pill don't fit one row (a long language), it takes the row under it */
.ch-dare-foot .btn-play { flex: 1 0 auto; max-width: none; padding-left: 20px; gap: 10px; }   /* (the room the centred-label padding kept is the words' here, so they share the row with the Beats pill) */
.ch-dare-foot .btn-play > :not(.btn-play-ico) { white-space: nowrap; }
