.challenge-panel{font:16px Arial,sans-serif;width:min(440px,100%);padding:26px}.challenge-panel h2{font-family:Georgia,serif}.challenge-panel p{line-height:1.55}.challenge-panel .muted{font-size:14px}.challenge-panel .close{min-width:44px;min-height:44px}.challenge-panel .eyebrow{font-size:11px;line-height:1.5}.challenge-panel .primary{font-size:16px;justify-content:center;min-height:48px}.challenge-panel .pill{font-size:14px;min-height:44px}.challenge-panel .setting{font-size:14px}.challenge-panel input[type=range]{min-height:40px}.challenge-panel input[type=checkbox]{width:22px;height:22px}
#challengeButton{font:22px Arial,sans-serif;flex-direction:column;gap:1px}#challengeButton small{font-size:9px;letter-spacing:.4px}#challengeButton svg{width:23px;height:23px}
.goal-label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px;font-size:16px}.challenge-reading{background:#edf0df;border:1px solid #dbe3cf;border-radius:16px;padding:18px;margin-top:18px}.challenge-reading strong{font-size:23px;font-weight:normal}.challenge-reading p{margin:8px 0 0;font-size:14px}progress{appearance:none;-webkit-appearance:none;border:0;background:#d9e1cb;border-radius:10px;overflow:hidden;display:block;width:100%;height:8px;color:#5a8055}progress::-webkit-progress-bar{background:#d9e1cb}progress::-webkit-progress-value{background:#5a8055;border-radius:10px}progress::-moz-progress-bar{background:#5a8055;border-radius:10px}
.challenge-reading progress{margin:14px 0 0}.challenge-actions{display:flex;gap:8px;flex-wrap:wrap}.challenge-actions .primary{margin:14px 0 8px}.challenge-actions .pill{margin-bottom:12px}#challengeReset{background:transparent;border-color:#a8b69c}
#challengeHud{margin-top:10px;font:14px Arial,sans-serif;padding:13px 16px}.challenge-hud-title{display:flex;justify-content:space-between;gap:10px}#challengeTime{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:13px}#challengeHud progress{margin:9px 0 6px;height:6px}#challengeState{display:block;font-size:12px;line-height:1.35}#challengeWins{font-size:14px;color:#5d7655;margin:20px 0 8px}.challenge-panel h3{font:24px Georgia,serif;margin:25px 0 8px}
#challengeCelebration{position:absolute;z-index:8;left:50%;top:43%;transform:translate(-50%,-50%);width:min(390px,calc(100% - 32px));padding:23px 27px;border-radius:22px;background:#f7f5e8f2;box-shadow:0 10px 50px #2d4c3725;border:1px solid #fff;font:22px/1.45 Georgia,serif;text-align:center;pointer-events:none;animation:goal-bloom .7s ease both}@keyframes goal-bloom{from{opacity:0;transform:translate(-50%,-45%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.reduced #challengeCelebration{animation:none}
#decorations{position:absolute;inset:0;pointer-events:none}.meadow-decor{position:absolute;transform:translate(-50%,-100%);width:clamp(70px,15.3dvh,163px);pointer-events:none}.meadow-decor svg{width:100%;display:block}.decor-flowers{width:clamp(33.8px,6.12dvh,65px)}
@media(max-width:700px){#challengeHud{padding:10px 12px}.challenge-panel{padding:22px}.creator-mark{width:48px;height:48px}.header-tools{gap:8px}}
@media(max-height:590px){.header-actions{flex-direction:row;gap:8px}.header-tools{gap:5px}.creator-mark{width:36px;height:36px}.header-actions .round{height:42px;width:42px}.autoscroll{top:112px;left:auto;right:16px;transform:none;width:250px}.hud{top:110px;width:200px}.hud .glass{padding:8px 10px}.hud .meter{margin:10px 0 5px}.hud .stats{margin-top:5px;font-size:11px}.hud .stats b{font-size:15px}#challengeHud{margin-top:5px;padding:8px 10px;font-size:12px}#challengeHud progress{margin:6px 0 4px}#challengeState{font-size:11px}.motion-notice{font-size:10px;padding:5px}#challengeCelebration{font-size:18px;padding:16px 22px}}
@media(max-height:590px) and (max-width:450px){.header-actions{flex-direction:column;gap:6px}.creator-mark{width:32px;height:32px}.autoscroll{top:124px;left:16px;right:auto;transform:none;width:230px}.hud{top:184px}.header-tools .creator-mark{display:none}}
@media(prefers-reduced-motion:reduce){#challengeCelebration{animation:none}}

/* V1.7 goal controls share the existing responsive classroom panel. */
#challengeKind,#animalGoalTarget{display:block;width:100%;box-sizing:border-box;background:#fffdf5;color:#263e30;border:1px solid #afbea5;border-radius:10px;min-height:46px;padding:10px 12px;font:16px Arial,sans-serif;margin-top:8px}
#challengeKind{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2346694b' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:38px}
#challengeKind:disabled,#animalGoalTarget:disabled{opacity:.7}
.goal-animal-stats{display:flex;gap:16px;justify-content:space-between;margin-top:18px}.goal-animal-stats>div{display:flex;flex-direction:column;gap:5px}.goal-animal-stats span{font-size:13px;color:#53674d}.goal-animal-stats strong{font-variant-numeric:tabular-nums}
#challengeHudDetail{font-size:13px;display:block;margin:0 0 6px}#challengeHudDetail[hidden],#challengeAnimalStats[hidden]{display:none}
#challengeInputError{color:#874735;font-size:14px}.goal-timer-link{border-top:1px solid #cbd6c3;margin-top:24px;padding-top:8px}.goal-timer-link h3{font-size:21px}.goal-timer-link p{margin-top:5px}.challenge-panel .duration-fields{margin-top:10px}.challenge-panel .duration-fields input{width:100%;min-width:0;box-sizing:border-box}

.goal-summary{font-size:16px;line-height:1.5;color:#3d5a36;margin:12px 0}.goal-help{font-size:14px;margin:18px 0}.goal-help summary{cursor:pointer;min-height:34px;display:list-item;line-height:34px}.goal-help p{margin-top:5px}
