:root{font-family:Arial,Helvetica,sans-serif;color:#49301e;background:#fff;font-synthesis:none;--teal:#087d99;--line:#c8e5e8;--muted:#536e76;--wash:#f2fbfc}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #12b9d1;outline-offset:3px}[hidden]{display:none!important}
.app-shell{width:min(100%,480px);margin:auto;padding:0 18px}header{padding:24px 4px 18px}.brand{display:inline-flex;align-items:center;gap:10px;color:#503019;text-decoration:none}.brand img{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);object-fit:cover}.brand h1{font-size:25px;font-weight:800;letter-spacing:-1.3px;margin:0}main{margin:0 0 16px}.playground{border:1px solid var(--teal);border-radius:20px;box-shadow:0 10px 35px #08677b12;overflow:hidden;background:#fffdf8}.counter-panel{padding:20px 22px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.session-heading{justify-content:flex-end}.badge{font-size:10px;color:var(--teal);background:#dff5f7;border-radius:20px;padding:6px 9px;white-space:nowrap}.counter-label{text-align:center;font-size:12px;color:var(--muted);margin:25px 0 8px}.earnings{font-size:clamp(36px,14vw,64px);line-height:1.1;font-weight:700;letter-spacing:-3px;text-align:center;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.elapsed{text-align:center;color:var(--muted);font-size:11px;margin:10px 0 20px}.elapsed span:first-child{font-variant-numeric:tabular-nums;letter-spacing:1px;margin-right:5px}.rate-button{border:0;border-top:1px solid var(--line);background:transparent;width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px;color:var(--teal);font-size:12px;text-align:left}.primary{border:1px solid var(--teal);background:var(--teal);color:#fff;border-radius:9px;width:100%;min-height:46px;padding:12px;font-weight:600;font-size:14px}.primary:hover{background:#06667f}.rewards-panel{background:var(--wash);border-top:1px solid var(--line);padding:18px 22px 14px}h2{font-size:13px;margin:0;font-weight:600}.section-heading>span:not(.eyebrow):not(.badge){font-size:10px;color:var(--muted)}.next-reward{display:flex;align-items:center;gap:12px;margin:15px 0 12px}.reward-emoji{font-size:36px;line-height:1.2}.next-reward h3{font-size:14px;margin:0 0 5px;font-weight:600}.next-reward p{font-size:11px;margin:0;color:var(--muted)}#milestone-price{margin-left:auto;font-size:13px;color:var(--teal)}progress{display:block;width:100%;height:7px;border:0;border-radius:10px;overflow:hidden;background:#cbe9ef;accent-color:var(--teal)}progress::-webkit-progress-bar{background:#cbe9ef;border-radius:10px}progress::-webkit-progress-value{background:var(--teal);border-radius:10px}progress::-moz-progress-bar{background:var(--teal);border-radius:10px}.collected-heading{margin-top:22px}.earned-items{display:flex;gap:9px;overflow-x:auto;min-height:67px;align-items:center;padding:8px 0}.earned-item{display:flex;flex-direction:column;align-items:center;flex:0 0 52px;gap:4px;font-size:36px}.earned-item small{font-size:9px;color:var(--muted)}.goal-button{width:100%;border:1px dashed #93c7d1;border-radius:9px;background:transparent;color:var(--teal);min-height:44px;display:flex;align-items:center;gap:8px;padding:9px 11px;text-align:left;font-size:11px}.goal-button span:nth-child(2){flex:1;overflow-wrap:anywhere}.goal-button span:first-child{font-size:19px}#goal-progress{margin-top:10px}.utility-bar{display:flex;justify-content:space-between;align-items:center;padding:3px 15px;border-top:1px solid var(--line);gap:4px}.utility-bar button,.utility-bar a{border:0;background:transparent;color:var(--muted);font-size:11px;min-height:44px;padding:8px 5px;text-decoration:none;display:flex;align-items:center}.utility-bar a{color:var(--teal)}.copyright{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:11px;color:#6a8b92;padding:12px 4px max(22px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}.copyright a{color:var(--muted);text-underline-offset:3px;min-height:28px;display:flex;align-items:center}
dialog{width:min(420px,calc(100% - 28px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid var(--teal);border-radius:18px;padding:22px;background:#fffdf8;color:#49301e;box-shadow:0 15px 60px #123c4740}dialog::backdrop{background:#123c4766}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-heading h2{font-size:18px;line-height:1.3}.close{border:0;background:transparent;color:var(--muted);font-size:26px;min-width:44px;min-height:44px}dialog p{font-size:13px;color:var(--muted);line-height:1.5}dialog label{display:block;font-size:12px;margin:15px 0 7px}dialog input,dialog select{min-height:44px;width:100%;min-width:0;border:1px solid #b7dfe4;border-radius:8px;background:#fff;color:#49301e;padding:10px;font-size:16px}.field-row{display:grid;grid-template-columns:1.5fr 1fr;gap:12px}.field-row>div{min-width:0}dialog .field-note{font-size:11px;line-height:1.6;margin:16px 0}.error{color:#a12b25}.text-button{display:block;margin:8px auto 0;border:0;background:transparent;min-height:44px;color:var(--teal);font-size:12px}
@media(max-width:360px){.app-shell{padding:0 12px}.counter-panel,.rewards-panel{padding-left:16px;padding-right:16px}.badge{font-size:9px}}
@media(max-height:740px){header{padding-top:10px;padding-bottom:8px}.counter-panel{padding-top:12px;padding-bottom:12px}.counter-label{margin:10px 0 4px}.earnings{font-size:46px}.elapsed{margin:6px 0}.rewards-panel{padding-top:12px;padding-bottom:12px}.next-reward{margin:8px 0}.collected-heading{margin-top:12px}.earned-items{min-height:55px;padding:5px 0}.goal-button{padding:6px 10px}.utility-bar{padding-top:0;padding-bottom:0}.copyright{padding-bottom:max(12px,env(safe-area-inset-bottom))}}
.brand-title{font-size:25px;font-weight:800;letter-spacing:-1.3px}.policy-shell{width:min(100%,760px)}.privacy-policy{line-height:1.7;padding:0 4px 16px;overflow-wrap:anywhere}.privacy-policy h1{font-size:32px;letter-spacing:-1px;line-height:1.2;margin:18px 0}.privacy-policy h2{font-size:18px;margin:26px 0 8px}.privacy-policy p{font-size:14px;margin:10px 0}.privacy-policy a{color:var(--teal);text-underline-offset:3px}

.head-start-note{text-align:center;color:var(--muted);font-size:10px;margin:6px 0 0}.head-start-control{border-top:1px solid var(--line);padding-top:8px;margin-top:16px}.head-start-control label{margin:8px 0}.head-start-control output{font-size:14px;font-weight:600;color:var(--teal)}.head-start-control .field-note{margin:0 0 4px}.head-start-control input[type=range]{padding:0;border:0;background:transparent;accent-color:var(--teal);cursor:pointer;min-height:44px}.range-labels{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}

/* Two poses per character, cropped in CSS from the approved concept sheet. */
.cheering-squad{display:flex;justify-content:center;align-items:flex-end;gap:18px;height:82px;padding-top:8px;overflow:hidden;background:#fff}
.cheer-character{display:block;flex:0 0 64px;width:64px;height:68px;background-image:url('assets/cheering-office-poses.png');background-repeat:no-repeat;background-size:307.2px 204.8px;background-position:-80px var(--row);--row:0px}
.cheer-two{--row:-67.2px;animation-delay:-.18s!important}.cheer-three{--row:-134.4px;animation-delay:-.36s!important}
.is-running .cheer-character{animation:office-cheer .6s steps(1,end) infinite}
.is-running.is-celebrating .cheer-character{animation-duration:.32s}
@keyframes office-cheer{0%,100%{background-position-x:-80px}50%{background-position-x:-154.4px}}
@media(max-height:740px){
  .counter-panel{padding-top:8px;padding-bottom:8px}.counter-label{margin-top:6px}.earnings{font-size:40px}.elapsed{margin:4px 0}.rewards-panel{padding-top:8px;padding-bottom:8px}.collected-heading{margin-top:8px}.earned-items{min-height:44px;padding:3px 0}.next-reward{margin:6px 0}.cheering-squad{height:74px;padding-top:4px}main{margin-bottom:6px}
}
@media(prefers-reduced-motion:reduce){.cheering-squad .cheer-character{animation:none!important;background-position-x:-80px}}
/* Foreground cheering squad straddles the card's bottom edge. */
main:has(>.cheering-squad){position:relative;margin-bottom:30px;isolation:isolate}
main:has(>.cheering-squad) .playground{padding-bottom:76px}
.cheering-squad{position:absolute;inset:auto 0 28px;height:102px;padding:0;gap:8px;overflow:visible;background:transparent;pointer-events:none;z-index:999;mix-blend-mode:multiply}
.cheer-character{flex-basis:96px;width:96px;height:102px;background-size:460.8px 307.2px;background-position-x:-120px}
.cheer-two{--row:-100.8px}.cheer-three{--row:-201.6px}
@keyframes office-cheer{0%,100%{background-position-x:-120px}50%{background-position-x:-231.6px}}
@media(max-width:360px){.cheering-squad{gap:0}}
@media(prefers-reduced-motion:reduce){.cheering-squad .cheer-character{background-position-x:-120px}}
/* Overlay the existing card content only while the clock is running. */
main:has(>.cheering-squad) .playground{padding-bottom:0}
.cheering-squad{opacity:0;visibility:hidden;transform:translateY(48px);transition:transform .28s ease-out,opacity .2s ease-out,visibility 0s .28s}
.cheering-squad.is-running{opacity:1;visibility:visible;transform:translateY(0);transition-delay:0s}
@media(prefers-reduced-motion:reduce){.cheering-squad{transform:none;transition:none}}
.cheer-two,.cheer-three{animation-delay:0s!important}
/* Mask the decorative emphasis strokes in the middle character's raised-arm frame. */
.cheer-two{position:relative}
.cheer-two::before,.cheer-two::after{content:"";position:absolute;top:7px;width:18px;height:17px;background:#fff;opacity:0;pointer-events:none}
.cheer-two::before{left:0}.cheer-two::after{right:4px}
.is-running .cheer-two::before,.is-running .cheer-two::after{animation:mask-cheer-marks .6s steps(1,end) infinite}
@keyframes mask-cheer-marks{0%,49.9%{opacity:0}50%,100%{opacity:1}}

.reward-emoji,.earned-item>span{font-size:36px;line-height:1.2}
/* Keep the sound control beside the session status at the top of the card. */
.session-heading{justify-content:space-between}
.sound-control{border:0;background:transparent;color:var(--muted);font-size:10px;min-height:28px;padding:4px 0;text-align:left}
.sound-control[aria-pressed="true"]{color:var(--teal);font-weight:600}
.app-icon{display:grid;place-items:center;width:44px;height:44px;font-size:34px;line-height:1;border-radius:50%;border:1px solid var(--line);background:#fffdf8}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.topbar .audio-controls{width:min(150px,42%);flex-shrink:0}
.app-shell{height:min(100dvh,852px);min-height:0;display:flex;flex-direction:column;overflow:hidden}
.app-shell.policy-shell{height:auto;min-height:100dvh;overflow:visible}
main{flex:1}
.earnings{font-size:clamp(36px,14vw,64px);line-height:1.1;font-weight:700;margin:18px 0 22px}
/* Reserve the emoji, price, padding, and scrollbar before any reward is earned. */
.earned-items{height:84px;min-height:84px;flex-shrink:0;overflow-y:hidden}
.collected-heading{display:none}
.earned-items{align-items:center}
.earned-item{line-height:1.2}
.earned-item small{line-height:12px}

.confetti-layer{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:20;contain:strict}
.confetti-piece{position:absolute;left:var(--x);top:-18px;width:8px;height:12px;border-radius:2px;animation:confetti-fall var(--duration) var(--delay) linear both;will-change:transform,opacity}
.confetti-piece:nth-child(3n){width:7px;height:7px;border-radius:50%}
@keyframes confetti-fall{0%{transform:translate3d(0,-18px,0) rotate(0);opacity:0}8%{opacity:1}85%{opacity:1}100%{transform:translate3d(var(--drift),calc(100dvh + 36px),0) rotate(var(--spin));opacity:0}}
@media(prefers-reduced-motion:reduce){.confetti-layer{display:none}.confetti-piece{animation:none}}

/* Use comfortably readable controls and supporting copy throughout the app. */
body{font-size:16px}
.badge,.sound-control{font-size:14px}
.session-heading .badge{display:none}
.session-heading{justify-content:flex-start}
.audio-controls{display:grid;grid-template-columns:repeat(2,1fr);width:100%;align-items:stretch;gap:0}
.audio-controls button{border:1px solid #8fcbd4;border-right:0;background:#fff;color:var(--teal);box-shadow:inset 0 -2px 0 #d7eef1;color:var(--muted);font-size:11px;font-weight:700;min-height:34px;padding:5px 3px;cursor:pointer;transition:background .15s ease,color .15s ease,box-shadow .15s ease}
.audio-controls button:first-child{border-radius:7px 0 0 7px}.audio-controls button:last-child{border-right:1px solid var(--line);border-radius:0 7px 7px 0}
.audio-controls button:hover{background:#e8f8fa;color:var(--teal)}
.audio-controls button[aria-pressed="true"]{background:var(--teal);color:#fff;box-shadow:inset 0 -2px 0 #06677d}
.audio-controls button:disabled{opacity:.45}
.sound-control{font-size:23px;line-height:1;padding:2px 0}
.sound-control{width:42px;height:42px;display:grid;place-items:center}
.sound-icon{display:block;width:36px;height:36px}
.is-running.is-celebrating .cheer-character{animation-duration:.6s}
.counter-label{font-size:17px}.elapsed{font-size:15px}.rate-button{font-size:17px}.primary{font-size:18px}
h2{font-size:18px}.section-heading>span:not(.eyebrow):not(.badge){font-size:14px}
.next-reward h3{font-size:20px}.next-reward p{font-size:16px}#milestone-price{font-size:17px}
.goal-button{font-size:16px}.utility-bar button,.utility-bar a{font-size:15px}.copyright{font-size:14px}
.head-start-note{font-size:14px}.range-labels{font-size:14px}
dialog label{font-size:16px}dialog .field-note{font-size:14px}.text-button{font-size:16px}
@media(max-width:600px){
  .audio-controls button{font-size:13px}
  .badge{font-size:16px}.counter-label{font-size:20px}.elapsed{font-size:18px}.rate-button{font-size:20px}.primary{font-size:21px}
  h2{font-size:21px}.section-heading>span:not(.eyebrow):not(.badge){font-size:16px}
  .next-reward h3{font-size:23px}.next-reward p{font-size:18px}#milestone-price{font-size:20px}
  .goal-button{font-size:19px}.utility-bar button,.utility-bar a{font-size:17px}.copyright{font-size:16px}
  .head-start-note{font-size:16px}.range-labels{font-size:16px}
  dialog label{font-size:18px}dialog .field-note{font-size:16px}.text-button{font-size:18px}
}
.animated-footer{display:grid;grid-template-columns:1fr 1fr;gap:6px;align-items:center;font-size:12px}
.animated-footer>a{justify-self:end;text-align:right}
.animated-footer{position:relative;z-index:2}
.animated-footer .cheering-squad{position:absolute;inset:auto 0 calc(100% - 36px);width:100%;height:112px;gap:0;justify-content:space-around;align-items:center;z-index:3;overflow:visible}
.animated-footer .cheer-character{transform:scale(1.15);flex-shrink:0;margin:0}
.animated-footer .cheering-squad{mix-blend-mode:normal}
.animated-footer .cheer-character{background-image:url('assets/cheering-office-focused.png')}
.animated-footer .cheer-two::before,.animated-footer .cheer-two::after{display:none}
/* Respect the product setting to keep animation active even when the OS asks for reduced motion. */
@media(prefers-reduced-motion:reduce){
  .is-running .cheer-character{animation:office-cheer .6s steps(1,end) infinite!important}
  .is-running.is-celebrating .cheer-character{animation-duration:.6s!important}
  .cheering-squad{transform:translateY(0)!important;transition:none!important}
  .is-running .cheer-two::before,.is-running .cheer-two::after{animation:mask-cheer-marks .6s steps(1,end) infinite!important}
  .confetti-layer{display:block!important}.confetti-piece{animation:confetti-fall var(--duration) var(--delay) linear both!important}
}
.footer-links{justify-self:end}
.footer-links{display:flex;align-items:center;gap:12px}.star-rating{display:flex;gap:4px}.star-rating label{margin:0}.star-rating input{position:absolute;opacity:0}.star-rating span{font-size:32px;color:#c8e5e8;cursor:pointer}.star-rating label:has(input:checked) span,.star-rating label:has(input:checked)~label span{color:#ffbd45}.star-rating label:hover span,.star-rating label:has(~label:hover) span{color:#ffbd45}textarea{width:100%;border:1px solid #b7dfe4;border-radius:8px;padding:10px;font:inherit;resize:vertical}
