/* The Challenges page (challenges.js; the user, 2026-10-25: «debe sentirse retadora y que te inspire a hacer los challenges»):
   the home's bento (home.css tiles, under body.home) with a hot edge — the Challenges tab's pink and its lightning, big digits
   on every clock, a score to beat on every card, one Play per block. */
.ch-page { display: flex; flex-direction: column; gap: 20px; padding-bottom: 96px; }
.ch-label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--tx-mid); }
.ch-score { display: block; font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1.05; color: var(--lime); font-variant-numeric: tabular-nums; }
.ch-holder { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ivory); font-weight: 700; text-decoration: none; }
.ch-holder small { color: var(--tx-mid); font-weight: 600; }
.ch-holder:focus-visible, .ch-dare-game:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 12px; }
.home .tag-chip.pink { background: rgba(255, 79, 184, 0.18); color: #FFA3E0; }

/* ---------- the top: what this page is, the lightning behind it ---------- */
.ch-hero { position: relative; overflow: hidden; isolation: isolate; padding: 40px 36px; border-radius: 32px;
  background: radial-gradient(90% 120% at 100% 0%, rgba(255, 79, 184, 0.34), transparent 60%), radial-gradient(70% 90% at 0% 100%, rgba(164, 123, 255, 0.3), transparent 60%), var(--bg-1); }
.ch-hero-bolt { position: absolute; z-index: -1; right: -24px; top: -36px; width: 280px; height: 280px; color: var(--pink); opacity: 0.2; transform: rotate(12deg); }
.ch-hero-bolt svg, .ch-kicker-ic svg { width: 100%; height: 100%; display: block; }
.ch-kicker { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255, 79, 184, 0.18); color: #FFA3E0; font-weight: 700; font-size: 14px; }
.ch-kicker-ic { width: 18px; height: 18px; }
.ch-hero h1 { margin: 16px 0 10px; font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 6vw, 64px); line-height: 1.04; max-width: 15ch; }
.ch-sub { max-width: 52ch; font-size: 18px; line-height: 27px; color: var(--tx-hi); }
.ch-me { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ch-me:empty { display: none; }
.ch-me .chip svg { width: 18px; height: 18px; }

/* ---------- the main event: today's Daily Beat ---------- */
.ch-daily { position: relative; overflow: hidden; isolation: isolate; display: flex; min-height: 420px; border-radius: 32px; color: var(--ivory);
  background: linear-gradient(135deg, #6D3FF0, #A47BFF 48%, #FF4FB8); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); }
.ch-daily-art { position: absolute; z-index: -2; right: 0; top: 0; width: 48%; height: 100%; object-fit: cover; opacity: 0.92;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); }
/* a card over a game's picture, darker under its words (the user, 2026-10-26: «los fondos de todos los containers que tienen
   una imagen del juego detrás oscurécela más para que el texto se lea mejor»): a night veil over the picture, deepest where
   the words sit */
.ch-daily::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(19, 19, 27, 0.62), rgba(19, 19, 27, 0.72) 45%, rgba(19, 19, 27, 0.88)); }
.ch-daily h2, .ch-dare-t { text-shadow: 0 2px 14px rgba(19, 19, 27, 0.7); }
.ch-daily-in { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; padding: 32px; }
.ch-daily-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; align-self: stretch; }
.ch-clock { text-align: right; }
.ch-clock .ch-label { color: rgba(250, 247, 242, 0.85); }
.ch-clock-n.big-clock { font-size: 44px; line-height: 1.05; color: var(--ivory); text-shadow: 0 3px 14px rgba(19, 19, 27, 0.35); }
.ch-daily-game { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.ch-daily-game img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 12px rgba(19, 19, 27, 0.3); }
.ch-daily h2 { margin: 0; max-width: 12ch; font-family: var(--font-display); font-weight: 600; font-size: clamp(42px, 6.4vw, 72px); line-height: 1; text-shadow: 0 4px 18px rgba(19, 19, 27, 0.3); }
.ch-target { display: grid; gap: 4px; min-width: 280px; max-width: 420px; padding: 16px 20px; border-radius: 24px; background: rgba(19, 19, 27, 0.8); }
.ch-target.is-open p { font-size: 15px; line-height: 21px; color: var(--tx-hi); }
.ch-tries { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.ch-pips { display: inline-flex; gap: 6px; }
.ch-pips i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ivory); }
.ch-pips i.on { background: var(--lime); border-color: var(--lime); }
.ch-top3 { align-self: stretch; max-width: 420px; padding: 12px 14px; border-radius: 20px; background: rgba(19, 19, 27, 0.35); }

/* ---------- a section: its tag, title and clock, how many are done ---------- */
.ch-sec { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 32px; background: var(--bg-1); }
.ch-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ch-sec-head h2 { margin: 10px 0 4px; font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: 1.1; }
.ch-count { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1; color: var(--lime); }

/* a dare in every game: a card each over its game's picture */
.ch-dares { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ch-dare { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 12px; min-height: 240px; padding: 20px; border-radius: 24px; background: var(--bg-2); }
.ch-dare-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.ch-dare::before { content: ''; position: absolute; z-index: -1; inset: 0;   /* (darker: the user, 2026-10-26, as .ch-daily::before) */
  background: linear-gradient(180deg, rgba(19, 19, 27, 0.84), rgba(19, 19, 27, 0.6) 34%, rgba(19, 19, 27, 0.86) 62%, rgba(19, 19, 27, 0.97)); }
.ch-dare-game { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; color: var(--ivory); font-weight: 700; text-decoration: none; }
.ch-dare-game img { width: 32px; height: 32px; border-radius: 9px; }
.ch-dare-t { margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.12; }
.ch-dare .bar { position: relative; height: 8px; margin-bottom: 18px; border-radius: 4px; background: rgba(250, 247, 242, 0.16); }
.ch-dare .bar i { display: block; height: 100%; border-radius: 4px; background: var(--lime); }
.ch-dare .bar em { position: absolute; right: 0; top: 12px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--tx-hi); }
.ch-dare-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ch-dare.is-done .ch-dare-t { opacity: 0.7; }
.ch-dare-head, .ch-rec-dots { display: none; }   /* (the phone's feed only: challenges-feed.css) */

/* records to beat: the score big, the name on it, Beat it in the tab's pink */
.ch-records { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ch-rec { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; border-radius: 24px; background: var(--bg-2);
  box-shadow: inset 0 0 0 1.5px rgba(255, 79, 184, 0.22); }
.ch-rec-game { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--tx-mid); }
.ch-rec-game img { width: 26px; height: 26px; border-radius: 8px; }
.ch-rec h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.1; }
.ch-rec-pills { margin-bottom: 8px; }
.ch-rec .btn-play { margin-top: 8px; }
.ch-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: var(--tx-mid); }

/* the week: the Mixtape (./today.js) beside your duels */
.ch-week { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ch-week > .tile, .ch-duels-slot > .tile { min-height: 100%; }
.ch-duels { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ch-duels h3 { font-size: 28px; line-height: 34px; margin: 4px 0 0; }
.ch-duel-list { list-style: none; align-self: stretch; display: grid; gap: 8px; margin-top: 6px; }
.ch-duel-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 16px; background: rgba(250, 247, 242, 0.05); }
.ch-duel-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-duel-t span, .ch-duel-t small { display: block; font-size: 13px; color: var(--tx-mid); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-st { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--bg-3); color: var(--ivory); white-space: nowrap; }
.ch-duel-list .is-won .ch-st { background: var(--lime); color: var(--night); }
.ch-duel-list .is-lost .ch-st { background: #FF6B81; color: var(--night); }
.ch-duel-list .is-open .ch-st, .ch-duel-list .is-alone .ch-st { background: var(--cyan); color: var(--night); }
.ch-duel-none { color: var(--tx-hi); max-width: 40ch; }

/* ---------- tablet and phone ---------- */
@media (max-width: 860px) {
  .ch-week { grid-template-columns: minmax(0, 1fr); }
  .ch-daily-art { width: 100%; opacity: 0.35; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 600px) {
  .ch-hero { padding: 28px 20px; border-radius: 28px; }
  .ch-sub { font-size: 16px; line-height: 24px; }
  .ch-daily { min-height: 0; border-radius: 28px; }
  .ch-daily-in { padding: 22px 18px; }
  .ch-clock { text-align: left; }
  .ch-clock-n.big-clock { font-size: 36px; }
  .ch-target { min-width: 0; align-self: stretch; }
  .ch-daily .btn-play { align-self: stretch; justify-content: center; }
  .ch-sec { padding: 22px 16px; border-radius: 28px; }
  .ch-sec-head h2 { font-size: 30px; }
  .ch-duel-list li { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .ch-duel-list li > :last-child { grid-column: 2 / -1; justify-self: start; }
}

/* ---------- louder and more Gen Z (the user, 2026-11-26: «revisa todos los challenges para que se vean más llamativos y más genZ
   friendly»): the tags, counts and prizes as stickers — solid colour, a night ring and a hard violet shadow, tilted — and the key words
   of every line in bold white ---------- */
.rich-b { color: var(--ivory); font-weight: 700; }
.ch-page .tag-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 0 0 2px var(--night), 3px 4px 0 2px var(--violet); transform: rotate(-3deg); }
.ch-page .tag-chip.cyan { background: var(--cyan, #4DE1FF); color: var(--night); }
.ch-page .tag-chip.pink { background: var(--pink, #FF4FB8); color: var(--night); }
.ch-page .tag-chip.lime { background: var(--lime); color: var(--night); }
.ch-page .ch-count { display: inline-grid; place-items: center; min-width: 64px; min-height: 44px; padding: 0 12px; border-radius: 16px; background: var(--lime); color: var(--night);
  box-shadow: 0 0 0 2px var(--night), 3px 4px 0 2px var(--pink, #FF4FB8); transform: rotate(4deg); }
.ch-page .beats-note { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--night); color: var(--lime);
  font-weight: 700; box-shadow: 0 0 0 2px var(--lime); transform: rotate(-2deg); }
.ch-page .ch-dare-t { color: var(--ivory); text-shadow: 0 3px 0 var(--night), 0 2px 16px rgba(19,19,27,.8); }
.ch-page .ch-dare-game img, .ch-page .ch-rec-game img { border-radius: 12px; box-shadow: 0 0 0 2px var(--night), 2px 3px 0 2px rgba(250,247,242,.25); }
.ch-dare.is-done .ch-dare-t { opacity: .7; }
.ch-hero h1 { max-width: 18ch; }
@media (prefers-reduced-motion: reduce) { .ch-page .tag-chip, .ch-page .ch-count, .ch-page .beats-note { transform: none; } }
.ch-hero h1.has-ico { max-width: 22ch; }
@media (max-width: 600px) { .ch-hero { padding: 28px 22px; } .ch-hero h1.has-ico { max-width: none; font-size: 34px; line-height: 1.08; } }
