/* Gallery and followed goal share the local Clubhouse font. */
.challenge-gallery { --challenge-font:'BOLERO Manrope',sans-serif; --challenge-mint:#a8e5cc; --challenge-white:#f0f2eb; --challenge-muted:#b0c2b8; --challenge-line:#afcbbb26; width:min(1020px,calc(100vw - 40px)); height:min(860px,calc(100dvh - 40px)); max-height:none; max-width:none; margin:auto; padding:0; overflow:hidden; border:1px solid #abcbb33a; border-radius:20px; background:#12251f; color:var(--challenge-white); box-shadow:0 28px 100px #020b0870; font-family:var(--challenge-font); }
.challenge-gallery::backdrop { background:#040e0bb5; backdrop-filter:blur(3px); }
.challenge-gallery * { box-sizing:border-box; }
.challenge-gallery :is(h1,h2,h3,strong,b,button,input,select) { font-family:var(--challenge-font); }
.challenge-gallery [hidden] { display:none!important; }
.challenge-gallery button { cursor:pointer; transition:background 180ms,border-color 180ms,color 180ms; box-shadow:none; transform:none; }
.challenge-gallery button:hover { transform:none; box-shadow:none; }
.challenge-gallery :is(button,input,select):focus-visible { outline:2px solid var(--challenge-mint); outline-offset:3px; }
.challenge-gallery .ui-art { width:20px; height:20px; flex:none; }
.challenge-gallery-main { display:flex; flex-direction:column; height:100%; min-height:0; }
.challenge-hero { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:20px; flex:none; padding:18px 30px 12px; overflow:hidden; background:radial-gradient(ellipse at 90% -10%,#39524640,transparent 65%); }
.challenge-hero-title { position:relative; grid-column:1/-1; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.challenge-hero .section-kicker { color:#d9c18b; font-size:10px; font-weight:700; letter-spacing:.18em; }
.challenge-hero h1 { margin:5px 0 8px; font-size:28px; font-weight:800; letter-spacing:-.045em; line-height:1.1; }
.challenge-gallery .challenge-icon-button { display:grid; place-items:center; width:44px; height:44px; padding:0; background:transparent; color:var(--challenge-muted); border:0; border-radius:8px; flex:none; font-size:18px; }
.challenge-gallery .challenge-icon-button:hover { background:#bce6cf0e; color:var(--challenge-white); }
.challenge-hero-art { position:absolute; top:6px; right:95px; color:#a9c9b519; pointer-events:none; }
.challenge-hero-art .ui-art { width:126px; height:126px; stroke-width:.8; }
.challenge-collection-score { position:relative; grid-column:1; display:flex; align-items:baseline; gap:10px; color:var(--challenge-muted); font-size:13px; }
.challenge-collection-score strong { color:var(--challenge-white); font-size:24px; line-height:1.2; letter-spacing:-.04em; font-weight:800; }
.challenge-collection-score strong span { color:#94aea0; font-size:21px; font-weight:500; }
.challenge-hero-progress { position:relative; grid-column:1/-1; grid-row:3; height:7px; border-radius:4px; background:#89b39920; margin:10px 0 7px; overflow:hidden; }
.challenge-hero-progress i,.challenge-gallery .achievement-progress i { display:block; height:100%; border-radius:inherit; background:var(--challenge-mint); transition:width 400ms ease; }
.challenge-hero-caption { grid-column:2; grid-row:2; align-self:center; display:flex; justify-content:space-between; gap:12px; color:var(--challenge-muted); font-size:11px; }
.challenge-hero-caption span:first-child { color:var(--challenge-mint); font-weight:600; }
.challenge-hero p { grid-column:1/-1; margin:0; max-width:700px; color:#95ad9d; font-size:10px; line-height:1.45; }
.challenge-followed-slot { flex:none; padding:0 30px; }
.challenge-scope-tabs { display:flex; gap:28px; padding:0 30px; flex:none; border-bottom:1px solid var(--challenge-line); margin-bottom:12px; }
.challenge-scope-tabs [role=tab] { display:flex; align-items:center; gap:7px; position:relative; padding:12px 0; min-height:44px; border:0; border-radius:0; background:none; color:var(--challenge-muted); font-size:14px; font-weight:700; }
.challenge-scope-tabs [role=tab] small { font-size:10px; opacity:.7; font-weight:500; }
.challenge-scope-tabs [aria-selected=true] { color:var(--challenge-mint); }
.challenge-scope-tabs [aria-selected=true]::after { content:''; position:absolute; bottom:-1px; left:0; right:0; height:3px; background:var(--challenge-mint); border-radius:2px; }
.challenge-card-tier { display:block; color:#bea778; font-size:9px; margin-bottom:4px; letter-spacing:.04em; }
.challenge-gallery .challenge-primary:disabled { background:#293b31; border-color:#7e9c8740; color:#b2bcae; cursor:not-allowed; }
.challenge-followed-empty { margin:0; padding:0 0 12px; color:#adbcaf; font-size:11px; border-bottom:1px solid var(--challenge-line); }
.challenge-followed { display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:15px; align-items:center; border-left:3px solid var(--challenge-mint); border-radius:0 9px 9px 0; background:#a5e0c40b; padding:15px 18px; transition:background 200ms; }
.challenge-followed-icon { color:var(--challenge-mint); }.challenge-followed-icon .ui-art { width:30px; height:30px; }
.challenge-eyebrow { display:block; font-size:10px; letter-spacing:.12em; font-weight:700; color:var(--challenge-mint); }
.challenge-followed>div>strong { display:block; font-size:18px; line-height:1.3; margin:5px 0; font-weight:700; }
.challenge-followed .challenge-progress-numbers { display:inline; font-size:13px; }
.challenge-followed .achievement-progress { max-width:330px; margin:7px 0; }
.challenge-followed .challenge-remaining { font-size:11px; }
.challenge-followed-actions { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.challenge-followed-actions button { display:flex; align-items:center; gap:8px; border:0; padding:4px 0; color:var(--challenge-mint); background:transparent; font-weight:600; font-size:12px; }
.challenge-followed-actions button:last-child { color:var(--challenge-muted); font-size:11px; font-weight:400; }
.challenge-collection { flex:1; display:flex; flex-direction:column; min-height:0; padding:12px 30px 0; }
.challenge-collection-title { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:7px; flex:none; }
.challenge-collection-title h2 { font-size:18px; font-weight:700; margin:0; letter-spacing:-.025em; }
.challenge-gallery .achievements-count { font-size:11px; color:#95aea0; }
.challenge-controls { display:flex; justify-content:space-between; align-items:center; gap:15px; padding-bottom:8px; border-bottom:1px solid var(--challenge-line); flex:none; }
.challenge-gallery .achievements-status { gap:15px; display:flex; }
.challenge-gallery .achievements-status button { min-height:36px; padding:7px 0; border:0; border-radius:0; background:none; font-weight:600; font-size:12px; color:var(--challenge-muted); position:relative; }
.challenge-gallery .achievements-status button.active { color:var(--challenge-mint); background:none; }
.challenge-gallery .achievements-status button.active:after { content:''; position:absolute; height:2px; background:var(--challenge-mint); left:0; right:0; bottom:0; }
.challenge-selects { display:flex; gap:10px; align-items:center; min-width:0; }
.challenge-gallery :is(.challenge-category,.achievements-sort) { border:0; border-radius:0; background:#12251f; color:#c3d0c7; font-size:11px; font-weight:500; padding:8px 2px; min-width:0; max-width:170px; height:38px; }
.challenge-search-wrap { padding:12px 0 0; flex:none; }
.challenge-gallery .achievements-search { display:block; width:100%; height:40px; padding:10px 13px; border:1px solid #a8e5cc45; border-radius:8px; background:#0e1f19; color:var(--challenge-white); font-size:13px; }
.challenge-gallery .achievements-search::placeholder { color:#91ab9d; }
.challenge-gallery .achievements-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 18px; align-content:start; overflow-y:auto; overflow-x:hidden; padding:10px 5px 28px 0; flex:1; min-height:0; scrollbar-width:thin; scrollbar-color:#6b8a7960 transparent; scroll-padding:10px; }
.challenge-gallery .achievement-group-heading { grid-column:1/-1; padding:11px 0 2px; font-size:11px; font-weight:600; color:#9db5a6; }
.challenge-gallery .achievement-card { position:relative; display:flex; align-items:flex-start; gap:15px; text-align:left; padding:16px 8px; margin:0; color:var(--challenge-white); background:none; border:0; border-bottom:1px solid #afcbbb18; border-radius:0; min-width:0; animation:challenge-appear 160ms ease-out; }
.challenge-gallery .achievement-card:hover { background:#a8e5cc07; }
.challenge-gallery .achievement-card.is-followed { background:#a8e5cc08; }
.challenge-gallery .achievement-card.is-complete { background:transparent; border-radius:0; border:0; border-bottom:1px solid var(--challenge-line); padding:18px 8px; }
.challenge-gallery .achievement-card.is-complete:hover { background:#b1d0b908; }
.challenge-gallery .achievement-icon { flex:none; display:grid; place-items:center; width:58px; height:64px; border:0; border-radius:0; color:var(--challenge-mint); background:none; }
.challenge-gallery .achievement-icon .ui-art { width:46px; height:46px; stroke-width:1.1; }
.challenge-gallery .is-complete .achievement-icon { width:44px; height:44px; }.challenge-gallery .is-complete .achievement-icon .ui-art { width:32px; height:32px; }
.challenge-gallery .is-complete .achievement-icon { color:#7f9d89; background:none; }
.challenge-gallery .achievement-copy { display:block; flex:1; min-width:0; }
.challenge-card-title { display:block; color:var(--challenge-white); font-size:16px; font-weight:700; line-height:1.3; letter-spacing:-.015em; }
.challenge-card-description { display:block; color:var(--challenge-muted); font-size:12px; line-height:1.6; margin:7px 0 10px; }
.challenge-progress-numbers { display:block; color:#91afa0; font-size:13px; font-variant-numeric:tabular-nums; }
.challenge-progress-numbers strong { color:var(--challenge-white); font-weight:700; font-size:17px; }
.challenge-gallery .achievement-progress { display:block; height:7px; border-radius:4px; background:#819c8933; margin:10px 0 3px; overflow:hidden; }
.challenge-remaining,.challenge-binary-state { display:block; color:#9ab5a5; font-size:11px; line-height:1.5; }
.challenge-binary-state { margin-top:12px; }
.challenge-card-arrow { flex:none; color:#90aa9b; align-self:center; opacity:0; transition:opacity 160ms; }
.challenge-gallery .achievement-card:is(:hover,:focus-visible) .challenge-card-arrow { opacity:1; }
.challenge-earned-status { display:flex; align-items:center; gap:4px; color:var(--challenge-mint); font-size:11px; margin:7px 0 4px; }
.challenge-earned-status .ui-art { width:13px; height:13px; }
.challenge-gallery .achievement-earned { display:block; color:#9bb1a3; font-size:11px; line-height:1.6; margin:0; font-weight:400; }
.challenge-follow-tag { display:block; color:var(--challenge-mint); font-size:10px; font-weight:600; margin-top:9px; }
.challenge-gallery .achievement-card.is-goat { grid-column:1/-1; border:1px solid #cbb47748; border-radius:10px; background:radial-gradient(ellipse at 100% 0,#8d783d20,transparent 70%),#242d22; padding:21px; }
.challenge-gallery .is-goat .achievement-icon { color:#e0c384; width:52px; height:52px; }
.challenge-gallery .is-goat .achievement-icon .ui-art { width:42px; height:42px; }
.challenge-mythos { display:block; color:#d4bb7d; font-size:9px; letter-spacing:.18em; font-weight:700; margin-bottom:5px; }
.challenge-gallery .is-goat .challenge-card-title { font-size:21px; }
.challenge-gallery .is-goat .challenge-card-description { max-width:610px; }
.challenge-gallery .achievement-empty { grid-column:1/-1; color:var(--challenge-white); padding:40px 16px; text-align:center; border:0; background:none; }
.achievement-empty small { display:block; font-size:12px; color:var(--challenge-muted); margin-top:9px; }
.challenge-detail-layer { position:absolute; inset:0; z-index:2; }
.challenge-detail-shade { position:absolute; inset:0; width:100%; height:100%; border:0; border-radius:0; background:#050e0cb0; padding:0; }
.challenge-detail { position:absolute; right:0; top:0; height:100%; width:min(440px,100%); overflow:auto; background:#183026; border-left:1px solid #a9cdb43b; padding:22px 27px; box-shadow:-20px 0 60px #030b0940; animation:challenge-drawer-in 220ms ease-out; scrollbar-width:thin; scrollbar-color:#6b8a7960 transparent; }
.challenge-detail-back { display:flex; align-items:center; gap:7px; width:max-content; border:0; background:none; color:var(--challenge-muted); padding:4px 0; min-height:36px; font-size:12px; font-weight:500; margin-bottom:10px; }
.challenge-detail-back .ui-art { width:16px; height:16px; }
.challenge-detail-heading { display:flex; align-items:center; gap:13px; margin:0 0 16px; }
.challenge-detail-heading>div { min-width:0; flex:1; }
.challenge-detail-meta { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.challenge-detail-emblem { display:grid; place-items:center; flex:none; width:51px; height:56px; color:var(--challenge-mint); }
.challenge-detail-emblem .ui-art { width:42px; height:42px; stroke-width:1.2; }
.challenge-detail h2 { font-size:27px; line-height:1.2; font-weight:800; letter-spacing:-.04em; margin:5px 0 0; overflow-wrap:anywhere; }
.challenge-detail>p { color:#b9cbbc; line-height:1.5; font-size:13px; margin:0 0 20px; }
.challenge-tracked-status { display:flex; align-items:center; gap:5px; color:var(--challenge-mint); font-size:10px; }
.challenge-tracked-status::before { content:''; width:5px; height:5px; border-radius:50%; background:currentColor; }
.challenge-detail-earned { display:flex; align-items:center; gap:4px; color:#a8c4b0; font-size:10px; line-height:1.4; margin:7px 0 0; }
.challenge-detail-earned .ui-art { width:13px; height:13px; }
.challenge-detail h3 { font-size:13px; font-weight:700; color:#d0dfd2; margin:0; }
.challenge-detail h3 span { color:var(--challenge-mint); font-weight:600; }
.challenge-detail-progress { padding:15px 0 0; border-top:1px solid var(--challenge-line); margin:0 0 12px; }
.challenge-detail-progress .challenge-progress-numbers { margin-top:12px; }
.challenge-detail-progress .challenge-progress-numbers strong { font-size:25px; }
.challenge-detail-progress .achievement-progress { margin:10px 0 6px; height:7px; }
.challenge-conditions { margin:0; }
.challenge-conditions ul { list-style:none; padding:0; margin:0; }
.challenge-conditions li { display:flex; align-items:center; gap:8px; font-size:13px; line-height:1.4; padding:6px 0; color:#b9cbbd; }
.challenge-conditions li .ui-art { width:15px; height:15px; color:#9bb29f; }
.challenge-conditions li.is-met { color:var(--challenge-white); }.challenge-conditions li.is-met .ui-art { color:var(--challenge-mint); }
.challenge-detail-actions { margin-top:24px; }
.challenge-primary { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; border:1px solid #a8e5cc; border-radius:8px; background:var(--challenge-mint); color:#10271c; padding:14px 17px; font-size:13px; font-weight:700; }
.challenge-primary:hover { background:#c0eedb; }
.challenge-gallery .challenge-primary.is-activated { opacity:1; justify-content:center; gap:9px; background:#254b37; border-color:#a8e5cc40; color:var(--challenge-mint); }
.challenge-unfollow { display:flex; align-items:center; gap:8px; padding:8px 0; min-height:36px; border:0; background:none; color:#b8aaa0; font-size:11px; font-weight:400; }
.challenge-unfollow:hover { color:#ead1bf; background:none; }
.challenge-unfollow .ui-art { width:13px; height:13px; }
.challenge-detail-note { display:block; font-size:11px; line-height:1.5; margin:9px 0 0; color:#9fb6a7; }
.challenge-storage-error { display:block; color:#efbda7; font-size:12px; }.challenge-storage-error:not(:empty) { margin-top:10px; }
.challenge-detail.is-goat { background:radial-gradient(ellipse at 100% 0,#c2a26515,transparent 60%),#202e23; }
.challenge-detail.is-goat :is(.challenge-eyebrow,.challenge-detail-emblem) { color:#ddc184; }
.challenge-gallery.challenge-detail-only { width:min(480px,calc(100vw - 32px)); height:fit-content; max-height:calc(100dvh - 40px); }
.challenge-detail-only .challenge-gallery-main { display:none; }
.challenge-detail-only .challenge-detail-layer { position:relative; }
.challenge-detail-only .challenge-detail { position:relative; width:100%; height:auto; max-height:calc(100dvh - 40px); border:0; box-shadow:none; }
.challenge-detail-only .challenge-detail-shade { display:none; }
[data-followed-indicator]:empty { display:none; }
.followed-challenge-indicator { display:flex; align-items:center; gap:6px; max-width:240px; min-height:32px; border:0; border-radius:5px; background:#a8e5cc09; color:#c3e6d4; font-family:'BOLERO Manrope',sans-serif; font-size:11px; font-weight:600; padding:6px 8px; cursor:pointer; text-align:left; }
.followed-challenge-indicator .ui-art { width:15px; height:15px; flex:none; }
.followed-challenge-indicator span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.followed-challenge-indicator small { flex:none; color:#9cbcab; font-size:10px; }
.followed-challenge-indicator:hover { background:#a8e5cc15; transform:none; box-shadow:none; }
.followed-challenge-indicator:focus-visible { outline:2px solid #a8e5cc; outline-offset:3px; }
@keyframes challenge-appear { from { opacity:.5; } to { opacity:1; } }
@keyframes challenge-drawer-in { from { opacity:.4; transform:translateX(12px); } to { opacity:1; transform:none; } }
@media(max-width:700px) {
  .challenge-scope-tabs { padding:0 23px; gap:24px; }
  .challenge-gallery { width:calc(100vw - 24px); height:calc(100dvh - 24px); border-radius:14px; }
  .challenge-hero { padding:18px 23px 12px; }.challenge-followed-slot { padding:0 23px; }.challenge-collection { padding:14px 23px 0; }
  .challenge-hero h1 { font-size:29px; }.challenge-hero-art { right:60px; }.challenge-hero-art .ui-art { width:98px; height:98px; }
  .challenge-controls { flex-wrap:wrap; gap:3px 12px; padding-bottom:10px; }.challenge-selects { width:100%; justify-content:space-between; }.challenge-selects select { max-width:145px; flex:1; }
  .challenge-gallery .achievements-list { grid-template-columns:minmax(0,1fr); gap:8px; }
  .challenge-gallery .achievement-card { padding:16px 14px; }.challenge-gallery .achievement-card.is-complete { padding:15px 5px; }
  .challenge-followed { grid-template-columns:28px minmax(0,1fr); gap:10px; padding:12px; }.challenge-followed-icon .ui-art { width:24px; height:24px; }
  .challenge-followed-actions { grid-column:2; flex-direction:row; align-items:center; flex-wrap:wrap; gap:14px; }.challenge-followed>div>strong { font-size:16px; }
  .challenge-detail { width:100%; border:0; padding:21px; }.challenge-detail-shade { display:none; }.challenge-detail-back { margin-bottom:16px; }
  .challenge-card-arrow { opacity:1; }
}
@media(max-width:360px) {
  .challenge-scope-tabs { padding:0 16px; gap:22px; }
  .challenge-hero { padding:18px 16px 13px; }.challenge-followed-slot { padding:0 16px; }.challenge-collection { padding:15px 16px 0; }.challenge-hero p { font-size:10px; }
  .challenge-selects { gap:4px; }.challenge-gallery :is(.challenge-category,.achievements-sort) { font-size:10px; max-width:122px; }.challenge-gallery .challenge-icon-button { width:44px; }
  .challenge-followed-empty { font-size:11px; }.challenge-card-title { font-size:15px; }.challenge-gallery .achievement-card { gap:10px; padding:14px 10px; }
}
@media(max-height:700px) and (min-width:701px) { .challenge-hero { padding:20px 30px 14px; }.challenge-hero p { margin-top:8px; }.challenge-collection { padding-top:15px; } }
@media(prefers-reduced-motion:reduce) { .challenge-gallery * { animation:none!important; transition:none!important; } }
@media(max-height:560px) {
  .challenge-detail { padding:15px 21px; }.challenge-detail-back { margin-bottom:12px; }.challenge-detail-heading { margin-bottom:12px; }
  .challenge-detail>p { margin-bottom:12px; }.challenge-detail-progress { padding-top:12px; margin-bottom:7px; }
  .challenge-conditions li { padding:4px 0; }.challenge-detail-actions { margin-top:15px; }
}
