[data-page="challenges"] [hidden] { display:none!important; }
.challenge-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:0 0 16px; }
.challenge-picker .challenge-choice {
  display:grid; place-items:initial; align-content:start; gap:3px; min-width:0; padding:12px 16px; white-space:normal;
}
.challenge-choice strong { color:var(--fg); font:800 1.65rem/1.05 var(--heading); }
.challenge-choice span { color:var(--muted); font-size:.9375rem; font-weight:500; }
.challenge-picker a[aria-current] { border-color:#956071; background:#362531; }
.challenge-picker a[aria-current]::after { display:none; }
.adept-workspace { margin-bottom:34px; }
.adept-intro {
  display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:12px;
  border-top:3px solid var(--accent);
}
.adept-intro h2 { margin:4px 0 6px; font-size:clamp(2.6rem,6vw,4rem); }
.adept-roles span { margin-left:3px; color:var(--muted); font-size:.875rem; }
.adept-layout { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:12px; margin-top:12px; }
.adept-roster, .adept-character { min-width:0; }
.adept-heading { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.adept-heading h3, .adept-identity h3 { font-size:clamp(1.8rem,4vw,2.5rem); }
.adept-heading p { font-size:.87rem; margin-top:5px; }
.adept-heading progress { width:min(145px,100%); }
.adept-filters { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; margin-bottom:9px; }
.adept-filters input, .adept-filters select {
  width:100%; min-width:0; border:1px solid #594360; background:#150f19; color:var(--fg); border-radius:7px; padding:7px 9px;
}
.adept-list {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(87px,1fr)); align-items:start; gap:6px;
  max-height:440px; overflow:auto; padding:4px;
}
.adept-card { position:relative; display:grid; align-content:start; gap:4px; text-align:left; padding:4px; min-width:0; font-size:.875rem; line-height:1.18; overflow-wrap:anywhere; }
.adept-card[aria-pressed="true"] { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent) inset; }
.adept-card img { display:block; width:100%; height:76px; object-fit:contain; border-radius:4px; background:#322433; }
.adept-card[data-earned="true"] img { background:#2d3835; }
.adept-card-name { min-height:2.36em; padding:2px; }
.adept-check { position:absolute; top:7px; right:7px; border-radius:50%; width:20px; height:20px; display:grid; place-items:center; background:var(--success); color:#151f19; font-weight:800; }
.adept-empty { grid-column:1/-1; }
.adept-identity { display:flex; gap:13px; align-items:center; margin-bottom:12px; }
.adept-identity img { width:min(28%,108px); height:120px; object-fit:contain; background:radial-gradient(ellipse,#563443,#261b2b); border:1px solid #543e59; border-radius:8px; }
.adept-identity h3 { overflow-wrap:anywhere; }
.adept-achievement { margin-top:5px; }
.adept-earned { color:var(--success); }
.adept-perks { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; list-style:none; margin:7px 0 12px; padding:0; }
.adept-perks li { display:grid; justify-items:center; align-content:start; gap:3px; border:1px solid #4c3652; background:#2b2030; border-radius:7px; padding:4px; text-align:center; font-size:.875rem; overflow-wrap:anywhere; }
.adept-perks img { width:100%; height:48px; object-fit:contain; }
.adept-attempt { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.adept-attempt button { padding:7px 10px; font-size:.9rem; }
.adept-timer { margin-top:7px; color:var(--accent); font-weight:700; font-variant-numeric:tabular-nums; }
.adept-status:not(:empty) { margin-top:8px; color:var(--accent); font-size:.86rem; }
.adept-help { margin-top:12px; }
.adept-help summary { cursor:pointer; font-weight:700; }
.adept-help p { margin-top:7px; }
#random-challenges .workspace { margin-top:0; }
#random-challenges h2#section-title { font-size:clamp(2.2rem,4.5vw,3.1rem); }
@media(max-width:760px) { .adept-layout { grid-template-columns:1fr; } .adept-character { grid-row:1; } .adept-list { max-height:330px; } }
@media(max-width:480px) { .challenge-picker .challenge-choice { padding:9px; } .challenge-choice strong { font-size:1.4rem; } }
