/* HOP's Challenge (challenge.js, v114): bright, warm and cheerful, in light and dark. */
:root{
  --ch-sun:#ffcf4d; --ch-coral:#ff7a59; --ch-pink:#ff5c8a; --ch-sky:#3fb6e8; --ch-mint:#2fbf8f; --ch-ink:#1d2340;
  --ch-card:#fffaf0; --ch-soft:#fff3d6; --ch-line:#f3dca6; --ch-text:#24304a; --ch-muted:#6a6f86;
}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){ --ch-card:#262033; --ch-soft:#332a40; --ch-line:#4a3e5c; --ch-text:#f3eefc; --ch-muted:#b8b0c9; } }
:root[data-theme="dark"]{ --ch-card:#262033; --ch-soft:#332a40; --ch-line:#4a3e5c; --ch-text:#f3eefc; --ch-muted:#b8b0c9; }

/* ---------- the banner on Today ---------- */
.hop-home-head:has(.ch-banner){ gap:8px; }
.ch-banner{ flex:0 1 auto; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:1px; padding:7px 12px 8px; border:0; border-radius:16px; cursor:pointer;
  font:inherit; text-align:left; color:#fff; background:linear-gradient(120deg, var(--ch-coral), var(--ch-pink) 55%, #b45cff); box-shadow:0 6px 16px rgba(255,92,138,.32); }
.ch-banner.is-chance{ background:linear-gradient(120deg, #ff9a3c, var(--ch-coral) 60%, var(--ch-pink)); }
.ch-banner.is-done{ background:linear-gradient(120deg, var(--ch-mint), var(--ch-sky)); box-shadow:0 6px 16px rgba(47,191,143,.3); }
.ch-banner:focus-visible{ outline:3px solid var(--accent-500); outline-offset:2px; }
.ch-banner:active{ transform:scale(.97); }
.ch-b-k{ font-size:10.5px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; opacity:.92; white-space:nowrap; }
.ch-b-d{ font-family:var(--font-display, system-ui); font-size:17px; font-weight:900; line-height:1.1; white-space:nowrap; }
.ch-b-dots{ display:flex; flex-wrap:wrap; gap:3px; margin-top:3px; max-width:120px; }
.ch-b-dots i{ width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.38); }
.ch-b-dots i.is-nailed{ background:#fff; }
.ch-b-dots i.is-missed{ background:var(--ch-sun); }
.ch-b-dots i.is-today{ background:transparent; box-shadow:inset 0 0 0 1.5px #fff; }
.ch-b-bar{ display:block; width:100px; height:5px; margin-top:4px; border-radius:3px; background:rgba(255,255,255,.35); overflow:hidden; }
.ch-b-bar i{ display:block; height:100%; background:#fff; }
@media (max-width:400px){ .hop-home-head:has(.ch-banner) .hop-home-logo{ height:54px; max-width:112px; } .ch-banner{ padding:6px 10px 7px; } .ch-b-d{ font-size:15.5px; } }
@media (max-width:350px){ .ch-b-dots, .ch-b-bar{ display:none; } }

/* ---------- the forms ---------- */
.sheet:has(> .ch-form){ background:linear-gradient(180deg, #ffe8a8 0, #ffd3c2 120px, var(--ch-card) 320px); padding-left:18px; padding-right:18px; }
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .sheet:has(> .ch-form){ background:linear-gradient(180deg, #4a3a1c 0, #4a2633 130px, var(--ch-card) 330px); } }
:root[data-theme="dark"] .sheet:has(> .ch-form){ background:linear-gradient(180deg, #4a3a1c 0, #4a2633 130px, var(--ch-card) 330px); }
.ch-form{ display:flex; flex-direction:column; color:var(--ch-text); }
.ch-top{ display:flex; align-items:center; gap:12px; margin:-4px 0 6px; }
.ch-top.is-party{ justify-content:center; }
.ch-jj{ position:relative; flex:none; width:132px; height:118px; display:grid; place-items:center; border-radius:24px; overflow:hidden;
  background:radial-gradient(circle at 50% 45%, #ffffff 0, #fff4cf 55%, #ffd76e 100%); box-shadow:0 8px 20px rgba(255,140,60,.25); }
.ch-top.is-party .ch-jj{ width:180px; height:150px; }
.ch-top.is-small .ch-jj{ width:104px; height:92px; }
.ch-jj img{ height:100%; width:auto; max-width:100%; object-fit:contain; transform-origin:50% 85%; animation:chDance 2.4s ease-in-out infinite; }
.ch-sp{ position:absolute; font-size:20px; line-height:1; color:#ff7a59; opacity:0; animation:chSpark 2.4s ease-in-out infinite; }
.ch-sp1{ left:10px; top:10px; } .ch-sp2{ right:12px; top:14px; color:#3fb6e8; animation-delay:.5s; } .ch-sp3{ left:22px; bottom:12px; color:#ff5c8a; animation-delay:1s; }
.ch-jj.is-mini{ width:64px; height:58px; border-radius:16px; box-shadow:none; }
.ch-jj.is-mini .ch-sp{ display:none; }
@keyframes chDance{ 0%,100%{ transform:translateY(0) rotate(0) } 20%{ transform:translateY(-8px) rotate(-3deg) } 40%{ transform:translateY(0) rotate(2deg) } 60%{ transform:translateY(-7px) rotate(3deg) } 80%{ transform:translateY(0) rotate(-2deg) } }
@keyframes chSpark{ 0%,100%{ opacity:0; transform:translateY(6px) scale(.8) } 30%,60%{ opacity:1; transform:translateY(-6px) scale(1.1) } }
.ch-say{ font-size:14.5px; line-height:1.45; color:var(--ch-text); background:rgba(255,255,255,.75); border-radius:16px 16px 16px 4px; padding:10px 12px; box-shadow:0 2px 8px rgba(0,0,0,.06); }
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .ch-say{ background:rgba(0,0,0,.28); } }
:root[data-theme="dark"] .ch-say{ background:rgba(0,0,0,.28); }
.ch-kick{ margin:8px 0 0; font-size:12.5px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; color:#e0563a; }
.ch-big{ margin:2px 0 6px; font-family:var(--font-display, system-ui); font-weight:900; font-size:clamp(30px, 9vw, 40px); line-height:1.02; letter-spacing:-.01em;
  background:linear-gradient(90deg, #ff6a3d, #ff3d7f 50%, #8a4dff); -webkit-background-clip:text; background-clip:text; color:transparent; }
.ch-big.is-mid{ font-size:clamp(24px, 7vw, 30px); }
.ch-lead{ margin:0 0 12px; font-size:16.5px; line-height:1.5; }
.ch-rules{ list-style:none; margin:4px 0 14px; padding:0; display:flex; flex-direction:column; gap:8px; }
.ch-rules li{ display:flex; gap:12px; align-items:flex-start; background:var(--ch-card); border:1.5px solid var(--ch-line); border-radius:16px; padding:11px 12px; font-size:15px; line-height:1.4; }
.ch-rules b{ color:var(--ch-text); }
.ch-ri{ flex:none; width:34px; height:34px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-weight:900; font-size:16px; color:#fff; }
.ch-ri1{ background:var(--ch-mint); } .ch-ri2{ background:var(--ch-sky); } .ch-ri3{ background:var(--ch-pink); } .ch-ri4{ background:#ff9a3c; }
.ch-pick{ background:var(--ch-card); border:1.5px solid var(--ch-line); border-radius:20px; padding:14px; margin-bottom:14px; text-align:center; }
.ch-pick-h{ font-size:13px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; color:var(--ch-muted); }
.ch-n{ display:flex; align-items:baseline; justify-content:center; gap:6px; margin:2px 0 8px; }
.ch-n b{ font-family:var(--font-display, system-ui); font-size:52px; font-weight:900; line-height:1; color:#ff5c8a; }
.ch-n span{ font-size:18px; font-weight:800; color:var(--ch-muted); }
.ch-qs{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-bottom:10px; }
.ch-q{ min-width:46px; min-height:40px; border-radius:999px; border:1.5px solid var(--ch-line); background:var(--ch-soft); color:var(--ch-text); font:inherit; font-weight:800; font-size:15px; cursor:pointer; }
.ch-q.is-on{ background:linear-gradient(120deg, var(--ch-coral), var(--ch-pink)); border-color:transparent; color:#fff; }
.ch-pick input[type=range]{ width:100%; accent-color:#ff5c8a; }
.ch-ends{ margin:6px 0 0; font-size:14px; color:var(--ch-muted); }
.ch-go{ min-height:58px; border:0; border-radius:20px; cursor:pointer; font:inherit; font-size:19px; font-weight:900; color:#fff; letter-spacing:.01em;
  background:linear-gradient(120deg, #ff8a3c, #ff3d7f 60%, #8a4dff); box-shadow:0 10px 24px rgba(255,61,127,.32); margin:4px 0 6px; }
.ch-go:active{ transform:scale(.98); }
.ch-go:focus-visible, .ch-q:focus-visible{ outline:3px solid var(--accent-500); outline-offset:2px; }

/* progress form */
.ch-dots{ list-style:none; margin:8px 0 10px; padding:0; display:flex; flex-wrap:wrap; gap:6px; }
.ch-dot{ width:16px; height:16px; border-radius:50%; background:var(--ch-soft); border:1.5px solid var(--ch-line); display:flex; align-items:center; justify-content:center; color:#fff; font-size:11px; font-weight:800; }
.ch-dots.is-big .ch-dot{ width:34px; height:34px; color:var(--ch-muted); font-size:13px; }
.ch-dot.is-nailed{ background:var(--ch-mint); border-color:var(--ch-mint); color:#fff !important; }
.ch-dot.is-missed{ background:var(--ch-sun); border-color:#f0b400; color:#5a4100 !important; }
.ch-dot.is-today{ border:2.5px solid #ff5c8a; color:#ff5c8a !important; animation:chPulse 1.8s ease-in-out infinite; }
.ch-dot.is-waiting{ border:2px dashed #ff9a3c; }
@keyframes chPulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(255,92,138,.35) } 50%{ box-shadow:0 0 0 6px rgba(255,92,138,0) } }
.ch-status{ margin:0 0 10px; font-size:16px; font-weight:700; line-height:1.45; }
.ch-status span{ display:block; font-weight:500; font-size:14.5px; color:var(--ch-muted); }
.ch-sec{ margin:14px 0 4px; font-size:13px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; color:#e0563a; }
.ch-hint{ margin:0 0 8px; font-size:14px; color:var(--ch-muted); }
.ch-phs{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.ch-ph{ display:inline-flex; align-items:center; gap:4px; padding:7px 6px 7px 12px; border-radius:999px; background:linear-gradient(120deg, #fff1c9, #ffe0ea); color:#3a2a40; font-size:14.5px; font-weight:700; }
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .ch-ph{ background:linear-gradient(120deg, #4a3d1c, #4a2638); color:#fff; } }
:root[data-theme="dark"] .ch-ph{ background:linear-gradient(120deg, #4a3d1c, #4a2638); color:#fff; }
.ch-ph button{ border:0; background:rgba(0,0,0,.08); color:inherit; width:24px; height:24px; border-radius:50%; cursor:pointer; font-size:15px; line-height:1; }
.ch-addrow{ display:flex; gap:8px; align-items:stretch; }
.ch-addrow input, .ch-addrow textarea{ flex:1; min-width:0; font:inherit; font-size:16px; padding:10px 12px; border-radius:14px; border:1.5px solid var(--ch-line); background:var(--ch-card); color:var(--ch-text); resize:vertical; }
.ch-addrow button{ flex:none; border:0; border-radius:14px; padding:0 14px; font:inherit; font-weight:800; color:#fff; background:linear-gradient(120deg, var(--ch-coral), var(--ch-pink)); cursor:pointer; min-height:44px; }
.ch-addrow.is-note{ flex-direction:column; }
.ch-addrow.is-note button{ align-self:flex-end; }
.ch-notes{ list-style:none; margin:10px 0 6px; padding:0; display:flex; flex-direction:column; gap:6px; }
.ch-notes li{ background:var(--ch-card); border:1px solid var(--ch-line); border-radius:12px; padding:9px 11px; font-size:14.5px; line-height:1.45; display:flex; flex-direction:column; gap:2px; }
.ch-notes i{ font-style:normal; font-size:12px; font-weight:800; color:var(--ch-muted); text-transform:uppercase; letter-spacing:.05em; }
.ch-det{ margin:8px 0 12px; }
.ch-det > summary{ cursor:pointer; font-weight:800; color:var(--ch-muted); padding:8px 2px; }
.ch-end{ margin:8px auto 0; font:inherit; font-size:14px; color:var(--ch-muted); background:none; border:0; text-decoration:underline; text-underline-offset:3px; cursor:pointer; padding:8px; }

/* result */
.ch-res .ch-lead{ margin-top:2px; }
.ch-slips{ list-style:none; margin:0 0 10px; padding:0; display:flex; flex-direction:column; gap:6px; }
.ch-slips li{ display:flex; justify-content:space-between; gap:10px; padding:9px 12px; border-radius:12px; background:var(--ch-card); border:1px solid var(--ch-line); font-size:15px; }
.ch-slips span{ color:var(--ch-muted); }
.ch-phrase{ margin:4px 0 12px; font-family:Georgia, "Times New Roman", serif; font-style:italic; font-size:18px; text-align:center; color:var(--ch-text); }
.ch-res.is-completed .ch-big{ text-align:center; font-size:clamp(34px, 10vw, 46px); }
.ch-res.is-completed .ch-kick, .ch-res.is-nailed .ch-kick{ text-align:center; }
.ch-res.is-nailed .ch-big, .ch-res.is-nailed .ch-lead, .ch-res.is-completed .ch-lead{ text-align:center; }
.ch-res.is-nailed .ch-dots, .ch-res.is-completed .ch-dots{ justify-content:center; }

/* ---------- the check-in line ---------- */
.ch-ci{ display:flex; flex-direction:column; gap:2px; margin:-4px 0 16px; padding:10px 14px; border-radius:16px; color:#fff;
  background:linear-gradient(120deg, var(--ch-coral), var(--ch-pink) 60%, #a45cff); }
.ch-ci-k{ font-size:11.5px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; opacity:.92; }
.ch-ci-t{ font-size:15.5px; font-weight:700; line-height:1.4; }

/* ---------- entry points ---------- */
.ch-cta{ display:flex; align-items:center; gap:12px; width:100%; text-align:left; font:inherit; cursor:pointer; color:#fff; border:0; border-radius:20px; padding:10px 14px 10px 10px; margin:4px 0 12px;
  background:linear-gradient(120deg, #ff8a3c, #ff3d7f 60%, #8a4dff); box-shadow:0 8px 20px rgba(255,61,127,.25); }
.ch-cta b{ display:block; font-size:17px; font-weight:900; }
.ch-cta i{ display:block; font-style:normal; font-size:13.5px; opacity:.95; line-height:1.35; }
.ch-cta .ch-jj{ background:rgba(255,255,255,.9); }
.anchor-chal{ display:inline-flex; align-items:center; gap:5px; margin-top:6px; padding:5px 10px; border-radius:999px; font-size:13px; font-weight:800; color:#fff;
  background:linear-gradient(120deg, var(--ch-coral), var(--ch-pink)); }

/* ---------- Your challenges ---------- */
.ch-main{ display:flex; flex-direction:column; gap:12px; padding-top:14px; }
.ch-small{ margin:0; font-size:14px; line-height:1.5; color:var(--text-muted); }
.ch-card{ background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:14px; display:flex; flex-direction:column; gap:6px; box-shadow:var(--shadow-sm); }
.ch-card.is-completed{ border-color:color-mix(in srgb, var(--ch-mint) 50%, var(--border)); }
.ch-card-h{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; flex-wrap:wrap; }
.ch-card-h b{ font-size:16.5px; }
.ch-tag{ font-size:12px; font-weight:800; border-radius:999px; padding:3px 9px; background:var(--surface-2); color:var(--text-muted); }
.ch-tag.is-completed{ background:rgba(47,191,143,.15); color:#1f8f69; }
.ch-tag.is-active{ background:rgba(255,92,138,.14); color:#d43e6e; }
.ch-tag.is-ended{ background:rgba(255,154,60,.16); color:#b8641a; }
.ch-card .ch-dots{ margin:2px 0; }
.ch-card .ch-dot:not(.is-nailed):not(.is-missed):not(.is-today){ background:var(--surface-2); border-color:var(--border); }
.ch-tbl{ width:100%; border-collapse:collapse; font-size:14.5px; }
.ch-tbl th{ text-align:left; vertical-align:top; padding:7px 10px 7px 0; width:28%; font-weight:700; color:var(--text-muted); font-size:13.5px; }
.ch-tbl td{ padding:7px 0; line-height:1.45; border-top:1px solid var(--border); }
.ch-tbl tr:first-child td{ border-top:0; }
.ch-tbl.is-pat{ background:var(--surface); border:1px solid var(--border); border-radius:14px; }
.ch-tbl.is-pat th, .ch-tbl.is-pat td{ padding:9px 12px; }
.ch-h2{ margin:16px 0 0; font-size:19px; color:var(--accent-600); }

@media (prefers-reduced-motion:reduce){ .ch-jj img, .ch-sp, .ch-dot.is-today{ animation:none !important; } .ch-sp{ opacity:1; } }
