/* Active challenge play (js/challenge-play.js): the buttons the challenge does not allow are grey. */
body.challenge-play .challenge-locked{opacity:.38;filter:grayscale(1);cursor:not-allowed}
body.challenge-play .challenge-locked:active{transform:none}

/* The screen of an active challenge (js/challenge-play-ui.js, docs/CHALLENGES-ACTIVE-V1.md 3.2): a strip under the HUD that says "challenge mode", the two HUD cells that
   are about the task instead of the player's skill and points, and the result card that waits until it has been painted for the challenge.
   The strip's height goes into the board-size formulas (--pad-challenge-h in css/pad-layout.css and the theme formulas). */
.ch-hud{display:none}
body.challenge-play{--pad-challenge-h:calc(24px + var(--pad-gap,5px))}
body.challenge-play .ch-hud{display:block}
body.challenge-play .pad-stat-level>:not(.ch-hud),body.challenge-play .pad-stat-score>:not(.ch-hud){display:none}
.ch-banner-play{display:none}
body.challenge-play .ch-banner-play{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:24px;min-height:24px;flex:0 0 auto;box-sizing:border-box;border:0;border-radius:8px;padding:0 10px;min-width:0;cursor:pointer;
 font:800 11px/1 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--pad-text,#f4f7fa);
 background:linear-gradient(90deg,color-mix(in srgb,var(--pad-accent,#7ac9ff) 40%,transparent),color-mix(in srgb,var(--pad-accent,#7ac9ff) 12%,transparent));box-shadow:inset 3px 0 0 var(--pad-accent,#7ac9ff)}
.ch-banner-play .ch-banner-name{opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:.02em;text-transform:none;font-weight:700}
body.challenge-play:not([data-ch-result]) #victoryOverlay .victory-card{visibility:hidden}
/* The result card of a challenge hides one of the three buttons (restart when a task is done, "next" when the attempt is over). The base grid keeps its
   three columns, so the buttons that are left took the narrow first two and "Következő feladat →" ran out of its button. Two buttons, two columns. */
body.challenge-play[data-ch-result] .victory-actions{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr)}
body.challenge-play[data-ch-result="attempt-over"] .victory-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
body.challenge-play[data-ch-result] .victory-actions button{white-space:normal;line-height:1.15}   /* a longer text (other language, bigger system font) wraps instead of running out */
/* the home screen's way back to a challenge in progress */
.home-challenge-resume[hidden]{display:none}
