:root{--ink:#292b34;--deep:#1b1d27;--cream:#f3dbad;--paper:#ffebbe;--rust:#c85c39;--red:#a83c29;--gold:#e9b54a;--blue:#477a98;--sky:#72afc9;--pine:#53765b;--light:#fff4d0;--muted:#b3b2ae;--bright:#ffcf54;--line:#0e1422;--shadow:#13131b;--pixel:3px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#10131c;color:var(--cream)}html{overflow-y:scroll}body{font-family:'Courier New',Courier,monospace;font-weight:700;-webkit-tap-highlight-color:transparent}button,input,select{font:inherit}button{touch-action:manipulation}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px dashed #fff4c0;outline-offset:2px}button:disabled{opacity:.5;cursor:not-allowed}button:enabled{cursor:pointer}button:active:enabled{transform:translateY(2px)}.ambient{position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 55% 8%,#5f372c55,transparent 47%),repeating-linear-gradient(90deg,#141924,#141924 22px,#171d29 22px,#171d29 25px);z-index:-1}.game-shell{position:relative;width:min(100%,460px);min-height:100dvh;margin:0 auto;padding:0 0 calc(84px + env(safe-area-inset-bottom));background:var(--deep);border-inline:4px solid #0c1018;box-shadow:0 0 0 4px #38465c,0 0 50px #0009;overflow:hidden}.masthead{height:78px;display:flex;justify-content:space-between;align-items:center;padding:7px 12px;background:linear-gradient(180deg,#343647,#252635);position:relative;z-index:8;border:0;border-bottom:5px solid #e9b54a}.content{padding:0 10px 14px;min-height:calc(100dvh - 160px)}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,460px);height:calc(75px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:6px 7px calc(7px + env(safe-area-inset-bottom));background:#242939;border-top:4px solid var(--gold);z-index:12}.nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px 1px;background:#326381;color:#fce6ad;border:3px solid #0e1726;box-shadow:inset 0 0 0 2px #79a6be,2px 2px 0 #101520;font-size:clamp(9px,2.8vw,12px);font-weight:900;letter-spacing:-.045em}.nav-item.selected{background:linear-gradient(#d3633a,#a93424);box-shadow:inset 0 0 0 2px #ffbd51,2px 2px 0 #0e1118;color:#fff0bf}.nav-icon{font-family:system-ui;font-size:23px;line-height:24px;text-shadow:2px 2px #1c2637}.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 1px 8px}.section-title{margin:0;color:var(--paper);font:900 21px Impact,'Arial Black',sans-serif;letter-spacing:.06em;text-shadow:2px 2px #9c3c29}.section-note{font-size:11px;color:#d3c39d;font-weight:500;line-height:1.45}.pixel-btn{border:3px solid #0e1422;box-shadow:inset 0 0 0 2px #f3c979,3px 3px 0 #0e111c;border-radius:0;background:#ad422b;color:#fff0c2;padding:9px 12px;text-shadow:1px 1px #521b17;font-weight:900}.pixel-btn.blue{background:#346986;box-shadow:inset 0 0 0 2px #94c8e0,3px 3px 0 #10131b}.pixel-btn.gold{background:#d99b31;color:#1e2533}.pixel-btn.green{background:#4d7856;box-shadow:inset 0 0 0 2px #b0d2a1,3px 3px 0 #10131b}.pixel-btn.mini{padding:5px 8px;font-size:11px}.pixel-btn.active{background:#d19c42}.gym-stage{position:relative;overflow:hidden;background:#986442;border:4px solid #131829;box-shadow:inset 0 0 0 3px #deb07a,3px 3px 0 #080c13;aspect-ratio:256/280;touch-action:none;user-select:none}.gym-stage canvas{display:block;width:100%;height:100%;image-rendering:pixelated;image-rendering:crisp-edges}.stage-overlay{position:absolute;inset:0;pointer-events:none}.stage-prompt{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);min-width:46%;max-width:83%;font-size:clamp(13px,4vw,17px);text-align:center;white-space:nowrap;color:#fff0c0;text-shadow:2px 2px #6e2619;border:3px solid #101421;box-shadow:inset 0 0 0 2px #ffd365,3px 3px #0e1422;background:#b9432a;padding:8px 10px;font-weight:900;pointer-events:none}.stage-prompt.challenge{background:#d79926;color:#171923;box-shadow:inset 0 0 0 2px #fff3ac,3px 3px #0e1422;text-shadow:none}.meter{height:13px;border:2px solid #101723;background:#59687d;margin-top:5px;position:relative;overflow:hidden}.meter>i{display:block;height:100%;background:linear-gradient(90deg,#e7a93c,#fcd56b);box-shadow:inset 0 -3px #b76727;transition:width 180ms}.big-subnav{display:flex;gap:5px;margin:8px 0;overflow:auto;padding-bottom:4px}.big-subnav button{white-space:nowrap;flex-shrink:0}.pane{margin:9px 0;background:#2c303d;border:3px solid #141821;box-shadow:inset 0 0 0 2px #586073;padding:10px}.pane-title{font:900 16px Impact,'Arial Black',sans-serif;letter-spacing:.05em;margin:0 0 6px}.tiny{font-size:10px;line-height:1.45;color:#cfc0a3}.flex-row{display:flex;justify-content:space-between;align-items:center;gap:8px}.shop-card{display:flex;gap:10px;align-items:center;padding:10px 8px;background:#3d4658;border:3px solid #101824;box-shadow:inset 0 0 0 2px #6a8091;margin:7px 0}.shop-card.locked{opacity:.73}.shop-icon{width:55px;height:57px;background:#213d58;border:3px solid #142031;display:flex;align-items:center;justify-content:center;font-size:31px;flex-shrink:0}.shop-body{flex:1;min-width:0}.shop-name{font-size:13px;color:#ffe1a0}.shop-desc{font-size:11px;color:#cbd5dd;line-height:1.4;margin-top:3px}.shop-extra{font-size:10px;color:#f7c371;margin-top:4px}.shop-actions{display:grid;gap:4px;justify-items:end}.shop-actions .pixel-btn{font-size:11px;white-space:nowrap;min-width:72px;padding:7px 6px}.small-tag{font-size:10px;border:2px solid #a9a9a2;padding:3px 5px;white-space:nowrap}.small-tag.highlight{border-color:#f6c14b;color:#ffdf84}.small-tag.good{border-color:#7cbb86;color:#b0efb0}.choice-row{display:flex;gap:5px;flex-wrap:wrap}.choice-row .pixel-btn{flex:1;font-size:10px;padding:7px 5px}.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.stat-tile{background:#212b3c;padding:10px 7px;border:2px solid #5d7891;min-width:0}.stat-tile .label{display:block;font-size:10px;color:#dacba5}.stat-tile strong{display:block;margin-top:4px;font-size:16px;color:#ffdc7d}.progress-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px dashed #747487;font-size:12px}.progress-row:last-child{border-bottom:0}.progress-row b{color:#ffdf9e}.progress-row .tiny{font-weight:400}.event-card{background:#403d49;border:3px solid #121a25;box-shadow:inset 0 0 0 2px #a16c43;margin:10px 0;padding:11px}.event-card.featured{background:#3a394e;box-shadow:inset 0 0 0 2px #e3b44a}.event-header{display:flex;align-items:start;justify-content:space-between;gap:6px}.event-title{font:900 17px Impact,'Arial Black',sans-serif;color:#ffe9ba;letter-spacing:.04em}.event-card p{font-size:11px;color:#ddd0b8;line-height:1.4;margin:5px 0 9px}.event-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.event-actions button{font-size:11px;padding:7px}.rank-table{width:100%;border-collapse:collapse;font-size:11px}.rank-table td,.rank-table th{padding:7px 5px;border-bottom:1px solid #536075;text-align:left}.rank-table th{color:#f2c05c}.rank-table td:last-child,.rank-table th:last-child{text-align:right}.rank-table .self{background:#485a5b;color:#ceffc9}.avatar-preview{width:100%;max-width:172px;aspect-ratio:1;display:block;background:#9c6540;border:3px solid #1b1b28;image-rendering:pixelated}.form-row{display:grid;grid-template-columns:95px minmax(0,1fr);gap:8px;align-items:center;margin:8px 0;font-size:11px}.form-row input,.form-row select{width:100%;min-width:0;padding:8px;background:#f6dbad;border:3px solid #343948;color:#242b38;font-weight:800}.form-row input{border-radius:0}.split{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hint-banner{border:3px dashed #cc9751;padding:10px;margin:9px 0;background:#4c342b;color:#fff0c9;font-size:11px;line-height:1.5}.toast{position:fixed;left:50%;bottom:calc(88px + env(safe-area-inset-bottom));transform:translateX(-50%) translateY(10px);width:min(390px,94vw);text-align:center;background:#173a32;border:3px solid #f3c45e;box-shadow:4px 4px 0 #070b12;padding:10px 12px;font-size:12px;color:#f7e8be;pointer-events:none;opacity:0;z-index:40;transition:opacity .16s,transform .16s}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.modal-host{position:fixed;inset:0;z-index:30;background:#10111bcc;display:flex;align-items:center;justify-content:center;padding:15px;overflow-y:auto}.hidden{display:none!important}.modal{background:#303646;border:4px solid #151821;box-shadow:inset 0 0 0 3px #d09b52,7px 7px 0 #0b0e15;color:#ffeac1;width:min(100%,440px);max-height:min(92dvh,860px);overflow-y:auto;padding:16px;margin:auto}.modal h2{font:900 23px Impact,'Arial Black',sans-serif;letter-spacing:.05em;margin:0 0 8px;color:#ffdc89}.modal p{font-size:12px;line-height:1.55;color:#ead9bd}.modal-actions{display:flex;gap:8px;margin-top:14px}.modal-actions button{flex:1}.modal .big-number{font-size:32px;color:#f4c65c;text-shadow:3px 3px #74311d}.result-box{background:#1e2a3a;border:3px solid #a68950;padding:12px;margin:10px 0;text-align:center}.achievement{padding:7px;background:#354c39;color:#e2ffd8;border:2px solid #75a482;margin:6px 0;font-size:12px}.file-row{display:flex;gap:6px;flex-wrap:wrap}.file-row button{flex:1}.warning{color:#ffbf81}.reduced-motion *, .reduced-motion *:before, .reduced-motion *:after{animation:none!important;transition:none!important}@media (max-width:360px){.masthead{height:69px;padding:5px 8px}.section-title{font-size:18px}.content{padding:0 7px 12px}}@media (max-height:710px){.masthead{height:64px}.content{padding-bottom:5px}.gym-stage{max-height:53dvh;aspect-ratio:auto;height:53dvh}.stage-prompt{padding:6px}.bottom-nav{height:calc(65px + env(safe-area-inset-bottom))}.nav-icon{font-size:19px;line-height:18px}}@media (min-width:900px){.game-shell{margin:20px auto;min-height:calc(100dvh - 40px)}.bottom-nav{bottom:0}}@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Generated-image asset presentation. All illustrated content lives in assets/. */
.asset-holder{display:inline-flex;position:relative;align-items:center;justify-content:center;vertical-align:middle;flex:0 0 auto;width:32px;height:32px;line-height:1;pointer-events:none;image-rendering:pixelated;image-rendering:crisp-edges}
.asset-holder img{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;image-rendering:crisp-edges;user-select:none;pointer-events:none}
.asset-holder img[hidden]{display:none!important}
.asset-holder.asset-missing::after{content:"Art unavailable";font:7px/1.15 'Courier New',monospace;color:#f3dbad;text-align:center;overflow-wrap:anywhere}
.brand-art{width:min(100%,205px);height:60px;justify-content:flex-start}
.nav-icon{width:32px;height:27px;font-size:0;text-shadow:none}
.inline-icon{width:14px;height:14px;margin-right:2px}
.item-art{width:45px;height:45px}
.pinned-art{width:40px;height:40px}
.event-art{width:27px;height:27px;margin-right:3px}
.unlock-art{width:104px;height:112px}
.big-number .item-art{width:92px;height:92px}
.art-status{position:absolute;top:40%;left:50%;transform:translate(-50%,-50%);max-width:85%;padding:10px 12px;background:#292b34;color:#f3dbad;border:2px solid #e9b54a;text-align:center;font-size:12px;line-height:1.5;pointer-events:none}
.art-status:empty,.art-status[hidden]{display:none}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:360px){.brand-art{height:52px}.pinned-art{width:32px;height:32px}.nav-icon{width:28px;height:24px}}
@media(max-height:710px){.brand-art{height:49px}.nav-icon{width:27px;height:24px}}

/* The lift cue has its own footer, leaving the athlete's feet and equipment clear. */
.gym-stage{aspect-ratio:auto;height:auto;max-height:none;background:#292b34}
.scene-viewport{position:relative;width:100%;aspect-ratio:256/280;overflow:hidden}
.scene-viewport canvas{width:100%;height:100%;display:block}
.stage-prompt{position:relative;inset:auto;left:auto;bottom:auto;transform:none;display:block;min-height:36px;margin:5px auto 8px;padding:7px 11px;pointer-events:auto;max-width:94%}
.stage-prompt:disabled{opacity:1;cursor:default}
.stage-prompt:active:enabled{transform:translateY(2px)}
@media(max-height:710px){.scene-viewport{width:min(100%,calc(49dvh * 256 / 280));margin-inline:auto}.gym-stage{height:auto;max-height:none}.stage-prompt{min-height:32px;margin:4px auto 6px;padding:5px 9px}}

#stageCanvas:focus-visible{outline:3px solid var(--gold,#e9b54a);outline-offset:-3px}

/* Animation pass: continuous workout tempo, clear challenges, and bounded arcade feedback. */
.gym-stage{--challenge-accent:#e9b54a;--challenge-ink:#202432;isolation:isolate}
.gym-stage[data-motion="form"],.gym-stage[data-motion="event"]{--challenge-accent:#87d8ed;--challenge-ink:#173043}
.gym-stage.is-challenge{border-color:var(--challenge-accent);box-shadow:inset 0 0 0 2px #151e2c,3px 3px 0 #080c13}
.gym-stage.outcome-success{border-color:#a2e1a1}
.gym-stage.outcome-miss{border-color:#81aac5}
.scene-viewport{isolation:isolate}
.stage-overlay{z-index:2;pointer-events:none}
.challenge-vignette{position:absolute;inset:0;z-index:0;opacity:0;pointer-events:none;background:linear-gradient(to bottom,#10131c96 0 24%,transparent 24% 79%,#10131c52 79% 100%);transition:opacity 160ms steps(3,end)}
.is-challenge .challenge-vignette{opacity:1}
.tempo-readout{position:absolute;z-index:3;top:8px;right:8px;display:flex;align-items:center;gap:7px;min-height:27px;max-width:calc(100% - 16px);padding:4px 6px;background:#1b2331f5;border:2px solid #7894a8;box-shadow:2px 2px 0 #10141e;color:#d4e1e7;font-size:10px;line-height:1;white-space:nowrap}
#tempoLabel{font-size:9px;letter-spacing:.05em}
#tempoValue{font-size:12px;color:#fff0ba;font-variant-numeric:tabular-nums;min-width:2.3em;text-align:right}
.tempo-bars{display:flex;align-items:flex-end;gap:3px;height:13px;padding-left:2px}
.tempo-bars>i{display:block;width:4px;height:6px;background:#87abbc;opacity:.25}
.tempo-bars>i:nth-child(2){height:9px}
.tempo-bars>i:nth-child(3){height:13px}
.tempo-bars>i:first-child,.tempo-bars>i.on,.tempo-bars>i.active,.tempo-bars>i.lit{opacity:1}
.gym-stage[data-motion="tap"] .tempo-readout{border-color:#e9b54a}
.gym-stage[data-motion="tap"] .tempo-bars>i{background:#e9b54a}
.gym-stage[data-motion="tap"] .tempo-bars>i:nth-child(2){opacity:1}
.gym-stage.is-challenge .tempo-readout{border-color:var(--challenge-accent);background:#17212bf5;color:#eaf7ff}
.gym-stage.is-challenge .tempo-bars>i{background:var(--challenge-accent);opacity:1}
.challenge-panel{position:absolute;z-index:4;top:44px;left:9px;right:9px;padding:9px 11px 8px;background:#171e2bf5;border:3px solid var(--challenge-accent);box-shadow:3px 3px 0 #0c1120;color:#fff0c5;pointer-events:none;animation:gainz-challenge-enter 220ms steps(4,end) both}
.challenge-panel[hidden]{display:none!important}
.challenge-eyebrow{font-size:9px;line-height:1.2;letter-spacing:.12em;color:var(--challenge-accent);text-transform:uppercase}
.challenge-panel .challenge-title,#stageCounter.challenge-title{position:static;inset:auto;left:auto;top:auto;transform:none;display:block;margin:3px 0 4px;padding:0;border:0;background:none;box-shadow:none;font-size:clamp(18px,5.4vw,25px);line-height:1.05;letter-spacing:.035em;color:#fff3ce;white-space:normal;text-shadow:2px 2px 0 #080d18}
.challenge-instruction{font-size:clamp(11px,3.3vw,14px);line-height:1.28;color:#edf7ff;margin:0 0 7px;font-weight:900}
.challenge-steps{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;margin:6px 0;height:10px}
.challenge-steps:empty{display:none}
.challenge-steps>i{display:block;height:10px;background:#344253;border:1px solid #8294a3;box-shadow:inset 0 -2px 0 #253140}
.challenge-steps>i.done{background:var(--challenge-accent);border-color:#fff1c4;box-shadow:inset 0 -2px 0 #9e772e;animation:gainz-step-pop 160ms steps(3,end) both}
.challenge-clock{height:8px;overflow:hidden;margin-top:7px;background:#3c485b;border:1px solid #8799ac}
.challenge-clock>i{display:block;height:100%;width:100%;background:var(--challenge-accent);transform-origin:left center;transition:width 80ms linear;box-shadow:inset 0 -2px 0 #0004}
.challenge-reward{display:flex;align-items:center;gap:4px;margin-top:5px;font-size:10px;line-height:1.2;color:#ffe5a0;min-height:14px}
.challenge-reward .asset-holder{width:15px;height:15px}
.stage-footer{padding:8px 10px 7px;background:#1c2635;border-top:3px solid #425469;position:relative;z-index:3}
.stage-footer .stage-prompt{position:relative;inset:auto;left:auto;bottom:auto;transform:none;display:block;width:100%;min-width:0;max-width:none;min-height:44px;margin:0;padding:9px 10px;line-height:1.15;font-size:clamp(14px,4.2vw,19px);letter-spacing:.045em;pointer-events:auto}
.stage-footer .stage-prompt.challenge{background:var(--challenge-accent);color:#162332;text-shadow:none;box-shadow:inset 0 0 0 2px #fff2bd,3px 3px 0 #090e18}
.stage-footer .stage-prompt.swipe-cue{background:#213b50;color:#cef2ff;border-color:#101a2a;box-shadow:inset 0 0 0 2px #78bdd3,3px 3px 0 #0c1120;text-shadow:1px 1px #111b2a;cursor:default}
.stage-footer .stage-prompt:disabled{opacity:1}
.stage-footer .stage-prompt:active:enabled{transform:translateY(2px)}
#tempoHint{display:block;min-height:13px;margin:6px 0 0;text-align:center;font-size:10px;line-height:1.3;color:#c7d4dc;letter-spacing:.01em}
.gym-stage.input-pop .stage-prompt:not(.swipe-cue){animation:gainz-input-pop 170ms steps(3,end) both}
.gym-stage.input-pop .challenge-title{animation:gainz-counter-pop 180ms steps(3,end) both}
.rep-feedback{position:absolute;z-index:6;left:50%;top:67%;transform:translateX(-50%);max-width:90%;padding:5px 9px;background:#17212ef2;border:2px solid #ffe28d;box-shadow:2px 2px 0 #0c111c;color:#fff4bc;text-align:center;font-size:clamp(15px,4.4vw,20px);line-height:1.2;text-shadow:2px 2px #12212a;pointer-events:none;opacity:0;visibility:hidden;white-space:nowrap}
.rep-feedback.show{opacity:1;visibility:visible;animation:gainz-rep-reward 460ms steps(5,end) both}
.outcome-banner{position:absolute;z-index:7;left:50%;top:48%;transform:translateX(-50%);width:87%;padding:12px 10px;border:3px solid #a2e1a1;background:#193b32f5;box-shadow:4px 4px 0 #0a1420;text-align:center;color:#f3ffe5;font-size:clamp(16px,4.8vw,22px);line-height:1.2;font-weight:900;opacity:0;visibility:hidden;pointer-events:none}
.outcome-banner.show{opacity:1;visibility:visible;animation:gainz-outcome-enter 300ms steps(4,end) both}
.outcome-banner.success{border-color:#b6ed9c;background:#1b3d32f5;color:#f0ffce}
.outcome-banner.miss{border-color:#85bdd7;background:#253b53f5;color:#e7f3ff;font-size:clamp(14px,4.2vw,18px)}
.outcome-banner small,.outcome-banner span{display:block;margin-top:5px;font-size:12px;line-height:1.3;font-weight:700}
.screen-enter{animation:gainz-screen-enter 160ms steps(3,end) both}
.modal{animation:gainz-modal-enter 190ms steps(4,end) both;transform-origin:center}
.modal .unlock-art,.modal .big-number .item-art{animation:gainz-award-pop 380ms steps(5,end) both;transform-origin:50% 75%}
.nav-item.selected .nav-icon{animation:gainz-nav-select 170ms steps(3,end) both}
.asset-holder.asset-ready>img{animation:gainz-asset-reveal 120ms steps(2,end) both}
.purchase-pop{animation:gainz-purchase-receipt 360ms steps(4,end) both}
@keyframes gainz-challenge-enter{0%{opacity:0;transform:translateY(-5px)}35%{opacity:1}100%{opacity:1;transform:translateY(0)}}
@keyframes gainz-input-pop{0%{filter:brightness(1.12);transform:translateY(2px)}100%{filter:brightness(1);transform:translateY(0)}}
@keyframes gainz-counter-pop{0%{color:#fff;transform:translateY(-2px)}100%{color:#fff3ce;transform:translateY(0)}}
@keyframes gainz-step-pop{0%{transform:scaleY(.55)}100%{transform:scaleY(1)}}
@keyframes gainz-rep-reward{0%{opacity:0;transform:translate(-50%,5px)}18%{opacity:1;transform:translate(-50%,0)}74%{opacity:1}100%{opacity:1;transform:translate(-50%,-8px)}}
@keyframes gainz-outcome-enter{0%{opacity:0;transform:translate(-50%,7px) scale(.97)}33%{opacity:1;transform:translate(-50%,-2px) scale(1.015)}100%{opacity:1;transform:translate(-50%,0) scale(1)}}
@keyframes gainz-screen-enter{0%{opacity:.45;transform:translateY(3px)}100%{opacity:1;transform:translateY(0)}}
@keyframes gainz-modal-enter{0%{opacity:.35;transform:translateY(7px) scale(.985)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes gainz-award-pop{0%{transform:scale(.88)}45%{transform:scale(1.06)}100%{transform:scale(1)}}
@keyframes gainz-nav-select{0%{transform:translateY(0)}45%{transform:translateY(-2px)}100%{transform:translateY(0)}}
@keyframes gainz-asset-reveal{0%{opacity:0}100%{opacity:1}}
@keyframes gainz-purchase-receipt{0%{outline:3px solid #ffe296;outline-offset:0}100%{outline:0 solid transparent;outline-offset:3px}}

@media(max-width:360px){
 .tempo-readout{top:6px;right:6px;gap:5px;padding:3px 5px;min-height:25px}
 .challenge-panel{top:38px;left:6px;right:6px;padding:7px 8px 6px}
 .challenge-eyebrow{font-size:8px}.challenge-title,#stageCounter.challenge-title{font-size:19px}
 .challenge-instruction{font-size:11px;margin-bottom:5px}.challenge-reward{font-size:9px}
 .challenge-steps{gap:3px;height:8px;margin:5px 0}.challenge-steps>i{height:8px}
 .stage-footer{padding:6px 7px}.stage-footer .stage-prompt{min-height:42px;padding:8px;font-size:15px}
 #tempoHint{font-size:9px}.outcome-banner{padding:10px 8px}
}
@media(max-height:710px){
 .tempo-readout{top:5px;right:5px;min-height:23px;padding:3px 5px;font-size:9px}
 #tempoLabel{font-size:8px}#tempoValue{font-size:10px}.tempo-bars{height:10px}
 .tempo-bars>i:nth-child(3){height:10px}.tempo-bars>i:nth-child(2){height:7px}.tempo-bars>i:first-child{height:4px}
 .challenge-panel{top:32px;left:6px;right:6px;padding:6px 8px}
 .challenge-panel .challenge-title,#stageCounter.challenge-title{font-size:17px;margin:2px 0 3px}
 .challenge-eyebrow{font-size:8px}.challenge-instruction{font-size:10px;line-height:1.15;margin-bottom:4px}
 .challenge-steps{height:7px;gap:3px;margin:4px 0}.challenge-steps>i{height:7px}.challenge-clock{height:6px;margin-top:4px}
 .challenge-reward{font-size:8px;margin-top:4px;min-height:11px}.challenge-reward .asset-holder{width:12px;height:12px}
 .stage-footer{padding:5px 7px}.stage-footer .stage-prompt{min-height:44px;padding:8px;font-size:15px}
 #tempoHint{font-size:9px;min-height:11px;margin-top:4px}.outcome-banner{padding:8px;font-size:16px}
 .outcome-banner small,.outcome-banner span{font-size:10px}.rep-feedback{font-size:15px;padding:4px 7px}
}
.reduced-motion .gym-stage .stage-prompt:active,.reduced-motion button:active{transform:none!important}
.reduced-motion .rep-feedback.show,.reduced-motion .outcome-banner.show{opacity:1;visibility:visible;transform:translateX(-50%)}
@media(prefers-reduced-motion:reduce){
 button:active{transform:none!important}
 .rep-feedback.show,.outcome-banner.show{opacity:1;visibility:visible;transform:translateX(-50%)}
}

/* Reward and readiness accents share the same short, stepped arcade cadence. */
.modal .big-number{animation:gainz-award-pop 380ms steps(5,end) both;transform-origin:50% 75%}
.modal .big-number .item-art{animation:none}

.tempo-bars>i:nth-child(4){height:10px}.tempo-bars>i:nth-child(5){height:13px}
.tempo-bars[data-level="2"]>i:nth-child(-n+2),.tempo-bars[data-level="3"]>i:nth-child(-n+3),.tempo-bars[data-level="4"]>i:nth-child(-n+4),.tempo-bars[data-level="5"]>i{opacity:1}
.rep-feedback small{display:block;margin-top:2px;font-size:10px;line-height:1.3;white-space:normal}
