/* Wrapped shares the app header, Back button and bottom navigation.
   Its stable frame fits the available viewport; only the visuals animate. */
body:has(>#app.wr-page){height:100dvh;overflow:hidden;padding-bottom:0}
#app.wr-page{display:flex;flex-direction:column;box-sizing:border-box;height:var(--wr-height,calc(100dvh - 88px));min-height:0;overflow:hidden;padding:0}
#app.wr-page>.app-title-banner{flex:none}
#app.wr-page>.p-demo-notice{flex:none}
#app .an-page.wr-content{display:flex;flex:1;flex-direction:column;min-height:0;gap:8px;padding:0 16px 0;overflow:hidden}
#app .wr-content .an-back{flex:none;height:40px;min-height:40px;display:flex;align-items:center;margin:0!important;padding:6px 10px;font-size:10px}
#app .wr-picker{flex:none;width:100%;height:40px}
#app .wr-picker>select{width:100%;height:40px;min-height:40px;box-sizing:border-box;margin:0;padding:0 12px;border:1px solid #d6dfeb;border-radius:10px;background-color:#fff;color:#172338;font-family:inherit;font-size:16px;font-weight:800}
.wr-brand{display:flex;flex:none;align-items:center;justify-content:space-between;gap:8px;min-height:56px;padding:10px 14px;background:#111827;border:1px solid #111827;border-radius:12px;color:white;box-sizing:border-box}
.wr-brand strong{font-size:25px;font-weight:950;letter-spacing:-.8px;white-space:nowrap}
.wr-brand em{color:#c8f060;font-style:normal}
.wr-brand>small{font-size:8px;letter-spacing:.08em;color:#aebed4;max-width:66px;text-align:right;line-height:1.4}
.wr-slide{display:flex;flex:1;flex-direction:column;min-height:0;padding:16px;border:1px solid #435779;border-radius:16px;background:linear-gradient(145deg,#263d5e,#1a2b45);overflow:hidden;color:#fff}
#app .wr-slide>h1{font-family:inherit;font-size:23px;font-weight:900;line-height:1.15;color:white;letter-spacing:-.025em;margin:0 0 12px;flex:none}
.wr-slide-body{display:flex;flex:1;flex-direction:column;justify-content:center;gap:10px;min-height:0;overflow:hidden}
.wr-slide-body>*{animation:wr-arrive .5s ease both}
.wr-stat-grid,.wr-chip-count{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.wr-stat{display:flex;flex-direction:column;justify-content:center;min-width:0;gap:5px;border:1px solid #ffffff12;border-radius:10px;background:#ffffff09;padding:10px}
.wr-stat b{font-size:34px;line-height:1;color:#c8f060;font-weight:900}
.wr-stat span{font-size:10px;line-height:1.3;color:#c1cfe1}
.wr-highlight{display:flex;flex-direction:column;gap:6px;background:#c8f060;color:#263c28;padding:12px;border-radius:10px}
.wr-highlight>small,.wr-feature>small{font-size:8px;font-weight:800;letter-spacing:.08em;line-height:1.2}
.wr-highlight>strong{font-size:16px;line-height:1.2}
.wr-highlight strong small,.wr-feature strong small{font-size:9px;font-weight:700;white-space:nowrap}
.wr-graph-note{display:flex;justify-content:space-between;color:#b8c9dd;font-size:8px;flex:none}
.wr-graph{display:block;flex:1;min-height:0;width:100%;max-height:260px}
.wr-graph text{font-family:inherit;font-size:10px;fill:#bfcee2}
.wr-gridline{stroke:#ffffff1a;stroke-width:1;fill:none}
.wr-rank-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;animation:wr-line 1.15s ease both;animation-delay:var(--delay)}
.wr-legend{display:grid;gap:6px;flex:none}
.wr-legend>div{display:flex;align-items:center;justify-content:space-between;gap:8px;border-left:3px solid var(--line);padding-left:8px;font-size:11px;line-height:1.3}
.wr-legend b{color:var(--line);white-space:nowrap}
.wr-movers{display:grid;gap:10px}
.wr-movers article{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #ffffff15;border-radius:9px;background:#ffffff08;padding:10px}
.wr-movers article>span{display:flex;flex-direction:column;gap:5px;min-width:0}
.wr-movers strong{font-size:13px;line-height:1.2}
.wr-movers small{font-size:10px;color:#b8c9dd}
.wr-movers article>b{color:#c8f060;font-size:24px;white-space:nowrap}
.wr-slide .negative{color:#ffb9cc!important}
.wr-cup-hero{display:flex;align-items:center;gap:12px;min-height:0}
.wr-cup-hero svg{width:46%;max-height:190px;min-height:0;flex-shrink:1}
.wr-ring-base{fill:none;stroke:#ffffff12;stroke-width:7}
.wr-ring{fill:none;stroke:#c8f060;stroke-width:7;stroke-dasharray:var(--through) 100;transform:rotate(-90deg);transform-origin:center;animation:wr-ring 1s ease both}
.wr-cup-hero text{fill:#c8f060;font-family:inherit;font-weight:900;font-size:24px}
.wr-cup-hero .wr-ring-label{fill:#becfe2;font-size:6px;font-weight:700;letter-spacing:.05em}
.wr-cup-hero>div{display:flex;flex-direction:column;gap:8px}
.wr-cup-hero small,.wr-cup-hero span{font-size:10px;color:#b8c9dd}
.wr-cup-hero strong{font-size:19px;line-height:1.2}
.wr-chip-count .wr-stat{padding:8px 10px}
.wr-chip-count .wr-stat b{font-size:29px}
.wr-mini-note{font-size:9px;color:#bfcee2;text-align:center}
.wr-feature{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid #ffffff1c;border-radius:11px;background:#ffffff09}
.wr-feature>small{color:#b8c9dd}
.wr-feature>div{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.wr-feature strong{font-size:14px;line-height:1.2;min-width:0}
.wr-feature div>b{display:flex;align-items:baseline;gap:4px;font-size:26px;line-height:1.1;color:#c8f060;white-space:nowrap}
.wr-feature div>b>small{font-size:8px}
.wr-feature>span{font-size:9px;line-height:1.2;color:#c1cfe1}
.wr-lucky{background:#c8f060;color:#263c28}
.wr-lucky>small,.wr-lucky div>b{color:#263c28}
.wr-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;flex:none}
#app .wr-controls>button{box-sizing:border-box;height:36px;min-height:36px;margin:0;border-radius:9px;padding:7px 12px;font-family:inherit;font-size:11px;font-weight:800}
.wr-controls>button:disabled{opacity:.4;cursor:default}
#app .rs-schedule-opponent>:empty{display:none}
@keyframes wr-arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@keyframes wr-line{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes wr-ring{from{stroke-dasharray:0 100}to{stroke-dasharray:var(--through) 100}}
@media(max-height:700px){
 #app .wr-content{gap:6px}
 .wr-brand{min-height:42px;padding:7px 12px}
 .wr-brand strong{font-size:23px}
 .wr-slide{padding:12px}
 #app .wr-slide>h1{font-size:20px;margin-bottom:8px}
 .wr-slide-body{gap:6px}
 .wr-stat-grid,.wr-chip-count{gap:6px}
 .wr-stat{padding:7px;gap:4px}
 .wr-stat b{font-size:25px}
 .wr-stat span{font-size:8px}
 .wr-highlight{padding:8px;gap:4px}
 .wr-highlight>strong{font-size:13px}
 .wr-legend{gap:3px}
 .wr-legend>div{font-size:9px}
 .wr-graph-note{font-size:7px}
 .wr-movers{gap:6px}
 .wr-movers article{padding:7px}
 .wr-movers strong{font-size:11px}
 .wr-movers small{font-size:8px}
 .wr-movers article>span{gap:3px}
 .wr-movers article>b{font-size:20px}
 .wr-cup-hero svg{max-height:120px}
 .wr-cup-hero strong{font-size:15px}
 .wr-cup-hero>div{gap:5px}
 .wr-feature{padding:8px;gap:5px}
 .wr-feature>small{font-size:7px}
 .wr-feature strong{font-size:11px}
 .wr-feature div>b{font-size:21px}
 .wr-feature>span{font-size:8px}
 .wr-chip-count .wr-stat{padding:6px}
 .wr-chip-count .wr-stat b{font-size:22px}
 .wr-mini-note{font-size:8px}
}
@media(prefers-reduced-motion:reduce){.wr-slide-body>*,.wr-rank-line,.wr-ring{animation:none}}
.wr-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;flex:none}
.wr-chip-summary{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid #ffffff12;background:#ffffff09;border-radius:10px}
.wr-chip-summary>b{font-size:29px;line-height:1;color:#c8f060}
.wr-chip-summary>span{font-size:10px;color:#bfcee2;flex:1}
.wr-chip-summary>small{font-size:10px;line-height:1.5;color:#bfcee2}
@media(max-height:650px){
 .wr-chip-summary{padding:5px 8px}
 .wr-chip-summary>b{font-size:23px}
 .wr-chip-summary>span,.wr-chip-summary>small{font-size:8px}
 .wr-slide[data-page=chips] .wr-feature{padding:4px 6px;gap:4px}
 .wr-movers{gap:5px}
 .wr-movers article{padding:4px 7px}
 .wr-movers article>b{line-height:1.2}
}
.wr-toolbar{grid-template-columns:minmax(0,1fr)}
#app .wr-toolbar .an-back{justify-self:start}
.wr-slide-body{justify-content:flex-start}
@media(max-height:650px){
 #app .wr-content{gap:4px}
 .wr-brand{min-height:34px;padding:4px 10px}
 .wr-slide{padding:8px}
 #app .wr-slide>h1{margin-bottom:6px;font-size:18px}
 .wr-feature{padding:5px}
 .wr-stat b{font-size:22px}
 .wr-highlight{padding:5px}
 .wr-movers{gap:3px}
 .wr-movers article{padding:3px 6px}
}
@media(max-height:650px){.wr-toolbar{grid-template-columns:auto minmax(0,1fr)}}
/* V24 Wrapped: shared picker, personal charts and compact highlights. */
#app .wr-picker{height:40px}
#app .wr-picker .r22-gameweek-trigger{height:40px;min-height:40px}
#app .wr-picker .r22-gameweek-options{max-height:min(310px,46dvh);overflow:auto}
#app .wr-picker .r22-gameweek-option.is-locked{cursor:not-allowed;color:#8590a1}
.r22-league-status.locked{background:#e9edf4;color:#748197;border:1px solid #d3dbe7}
.r22-league-status.locked i{background:#8a97aa}
.wr-chip-grid,.wr-luck-grid,.wr-own-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.wr-own-chips:has(> :only-child){grid-template-columns:1fr}
.wr-chip-card{box-sizing:border-box;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:7px;padding:12px;border:1px solid #ffffff20;border-radius:10px;background:#ffffff09;color:#fff}
.wr-chip-card>small{font-size:8px;color:#bfcce0;line-height:1.2}
.wr-chip-card>strong{font-size:13px;line-height:1.2;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.wr-chip-card>div{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:9px}
.wr-chip-card>div>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.wr-chip-card b{color:#c8f060;white-space:nowrap}
.wr-own-chips .wr-chip-card{border-color:#b4db64;background:#a8d76616}
.wr-luck-grid{grid-auto-rows:1fr}
.wr-luck-grid .wr-lucky{background:#c8f060;color:#263c28}
.wr-luck-grid .wr-lucky small,.wr-luck-grid .wr-lucky b{color:#263c28}
.wr-bracket{display:grid;gap:20px}
.wr-branch{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);align-items:center}
.wr-tie{display:grid;border:1px solid #ffffff24;border-radius:9px;overflow:hidden}
.wr-tie span{padding:10px 7px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wr-tie .winner{background:#a8d76618;color:#c8f060}
.wr-tie .eliminated{opacity:.5}
.wr-branch svg{width:100%;overflow:visible}
.wr-branch path{stroke:#c8f060;stroke-width:2;fill:none;stroke-dasharray:1;animation:wr-line .8s both;animation-delay:var(--delay)}
.wr-advancer{padding:10px 8px;border:1px solid #c8f06080;background:#a8d76616;border-radius:9px;font-size:12px;animation:wr-arrive .8s both;animation-delay:var(--delay)}
.wr-advancer small{display:block;font-size:8px;color:#bfcee2;margin-top:6px}
.wr-story> b{display:block;text-align:center;font-size:60px;color:#c8f060;line-height:1.2;margin-bottom:12px}
.wr-story>b>small{display:block;font-size:9px;letter-spacing:.08em;color:#bfcee2}
.wr-story .wr-chip-card>span{font-size:20px;font-weight:900;color:#c8f060}
@media(max-height:650px){
 .wr-chip-grid,.wr-luck-grid,.wr-own-chips{gap:5px}
 .wr-chip-card{padding:6px;gap:4px}
 .wr-chip-card>small{font-size:6px}
 .wr-chip-card>strong{font-size:9px}
 .wr-chip-card>div{font-size:7px}
 .wr-bracket{gap:10px}
 .wr-tie span{padding:6px;font-size:9px}
 .wr-advancer{padding:6px;font-size:9px}
 .wr-advancer small{font-size:7px;margin-top:3px}
 .wr-story>b{font-size:36px;margin-bottom:8px}
}
@media(prefers-reduced-motion:reduce){.wr-branch path,.wr-advancer{animation:none}}
/* V25: one compact toolbar and a readable season review. */
.wr-toolbar{grid-template-columns:auto minmax(0,1fr)}
#app .wr-picker{height:32px}
#app .wr-picker .r22-gameweek-trigger{height:32px;min-height:32px;padding:0 8px;gap:5px}
#app .wr-picker .r22-league-status{font-size:6px}
#app .wr-slide[data-page=luck]>h1{margin-bottom:18px}
.wr-week-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.wr-histogram{width:100%;height:100px;min-height:42px;flex:1}
.wr-histogram text{font-size:8px;fill:#bfcee2}
.wr-hist-bar{transform-origin:center 66px;animation:wr-grow .7s ease both}
.wr-review-list{display:grid;gap:8px}
.wr-review-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px;border:1px solid #ffffff20;border-radius:9px;background:#ffffff08}
.wr-review-row>span{min-width:0;display:grid;gap:4px}
.wr-review-row strong{font-size:12px;line-height:1.2}
.wr-review-row small{font-size:9px;line-height:1.3;color:#bfcee2}
.wr-review-row>b{font-size:14px;white-space:nowrap;color:#c8f060}
.wr-review-bars{display:grid;gap:12px}
.wr-review-bars>div{display:grid;grid-template-columns:1fr auto;gap:5px;font-size:12px}
.wr-review-bars i{grid-column:1/-1;width:var(--width);height:15px;background:#c8f060;border-radius:4px;transform-origin:left;animation:wr-grow .8s both}
.wr-review-bars strong{color:#c8f060}
.wr-season-weeks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.wr-season-weeks article{display:grid;gap:4px;padding:8px;border:1px solid #ffffff24;border-radius:8px;background:#ffffff08;min-width:0}
.wr-season-weeks small{font-size:8px;color:#bfcee2;line-height:1.2}
.wr-season-weeks strong{font-size:14px;line-height:1.1;color:#c8f060}
.wr-season-weeks .l strong,.wr-season-weeks .loss strong{color:#ffb9cc}
.wr-season-weeks .d strong{color:#ffd47c}
.wr-season-weeks span{font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wr-badge-summary{display:flex;gap:8px;border:1px solid #ffffff20;border-radius:9px;padding:9px}
.wr-badge-summary>span{font-size:25px}
.wr-badge-summary>div{display:grid;gap:5px}
.wr-badge-summary strong{font-size:13px}
.wr-badge-summary small{font-size:10px;line-height:1.3;color:#bfcee2}
.wr-final-card{display:grid;gap:10px;border:1px solid #c8f06080;border-radius:12px;padding:12px;background:#111827}
.wr-final-card>strong{font-size:20px;color:#c8f060}
.wr-final-card p{font-size:12px;margin:0;line-height:1.3}
.wr-save-card{min-height:32px!important;height:32px;padding:5px!important;font-size:11px!important}
.wr-slide[data-page=title-race] .wr-legend{grid-template-columns:repeat(2,minmax(0,1fr))}
.wr-slide[data-page=title-race] .wr-legend>div{font-size:9px;gap:3px}
.wr-legend span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@keyframes wr-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(max-height:650px){
 .wr-review-list{gap:5px}.wr-review-row{padding:6px;gap:5px}
 .wr-review-row strong{font-size:9px}.wr-review-row small{font-size:7px}.wr-review-row>b{font-size:10px}
 .wr-review-bars{gap:8px}.wr-review-bars>div{font-size:10px}.wr-review-bars i{height:10px}
 .wr-season-weeks{gap:4px}.wr-season-weeks article{padding:5px;gap:2px}
 .wr-season-weeks small{font-size:6px}.wr-season-weeks strong{font-size:10px}.wr-season-weeks span{font-size:7px}
 .wr-badge-summary{padding:5px;gap:5px}.wr-badge-summary>span{font-size:19px}.wr-badge-summary strong{font-size:10px}.wr-badge-summary small{font-size:8px}
 .wr-final-card{padding:8px;gap:6px}.wr-final-card>strong{font-size:15px}.wr-final-card p{font-size:9px}
 .wr-extremes .wr-review-row{padding:4px 6px}
}
@media(prefers-reduced-motion:reduce){.wr-review-bars i,.wr-hist-bar{animation:none}}
#app .wr-season-weeks .w{background:#a8d76616}
#app .wr-season-weeks .l{background:#ffb9cc12}
#app .wr-season-weeks .d{background:#ffd47c16}
@media(max-height:650px){
 .wr-season-weeks article{padding:3px;gap:1px}
 .wr-season-weeks small,.wr-season-weeks span{line-height:1.2}
 .wr-journey article{grid-template-columns:auto minmax(0,1fr);column-gap:4px}
 .wr-journey small{grid-column:1/-1}
 .wr-journey span{text-align:right}
}
#app .wr-content .an-back{height:32px;min-height:32px;padding:7px 11px!important}
.wr-histogram{flex:none;height:110px;max-height:110px}
@media(max-height:650px){.wr-histogram{height:68px}}
@media(max-height:650px){.wr-histogram{height:48px}}










/* V26: more breathing room without moving the frame or introducing page scroll. */
#app .wr-slide>h1{margin-bottom:20px}
#app .wr-slide[data-page=graph]>h1,#app .wr-slide[data-page=rivals]>h1,#app .wr-slide[data-page=title-race]>h1{margin-bottom:8px}
.wr-slide[data-page=club-contributions] .wr-review-bars{gap:8px}
.wr-slide[data-page=club-contributions] .wr-review-bars i{height:9px}
.wr-road-columns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.wr-road-columns h2{color:#c8f060;font-size:12px;margin:0 0 8px}
.wr-road-columns .wr-review-row{display:grid;gap:5px}
.wr-position-head,.wr-position-list article{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:6px;align-items:center}
.wr-position-head{font-size:10px;color:#bfcee2;text-align:center}
.wr-position-list{display:grid;gap:10px}
.wr-position-list article{padding:12px 8px;background:#ffffff08;border:1px solid #ffffff20;border-radius:9px;font-size:12px}
.wr-position-list b{text-align:center;color:#c8f060;font-size:21px}
.wr-badge-summary{position:relative;padding:8px 40px 8px 8px;align-items:center}
.wr-badge-summary>div{gap:3px}.wr-badge-summary strong{font-size:11px}.wr-badge-summary small{font-size:9px}
.wr-badge-count{position:absolute;right:7px;top:7px;background:#c8f060;color:#172338;border-radius:6px;padding:4px;font-size:14px}
@media(max-height:650px){#app .wr-slide>h1{margin-bottom:12px}.wr-slide[data-page=club-contributions] .wr-review-bars{gap:4px}.wr-slide[data-page=club-contributions] .wr-review-bars>div{gap:2px;font-size:9px}.wr-slide[data-page=club-contributions] .wr-review-bars i{height:5px}.wr-slide[data-page=badges] .wr-stat{padding:4px}.wr-slide[data-page=badges] .wr-stat b{font-size:18px}.wr-badge-summary{padding:4px 30px 4px 4px}.wr-badge-summary small{display:none}.wr-badge-summary strong{font-size:9px}.wr-badge-count{top:4px;right:4px;font-size:10px;padding:3px}.wr-road-columns .wr-review-row{padding:5px}.wr-position-list article{padding:8px 4px;font-size:10px}.wr-position-list b{font-size:16px}}
.wr-slide[data-page=club-contributions] .wr-review-bars{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;row-gap:16px}.wr-slide[data-page=club-contributions] .wr-review-bars>div{min-width:0}.wr-slide[data-page=club-contributions] .wr-review-bars span{font-size:11px}@media(max-height:650px){.wr-slide[data-page=club-contributions] .wr-review-bars{row-gap:10px}.wr-slide[data-page=club-contributions] .wr-review-bars span{font-size:9px}}
.wr-review-row small:empty{display:none}@media(max-height:650px){.wr-road-columns .wr-review-row{display:flex;min-height:27px;box-sizing:border-box}.wr-road-columns .wr-review-row>b{font-size:9px}.wr-road-columns .wr-review-row strong{font-size:8px}}
@media(max-height:650px){.wr-slide[data-page=badges] .wr-stat{flex-direction:row;align-items:center;gap:5px;padding:4px}.wr-slide[data-page=badges] .wr-stat span{font-size:7px}.wr-slide[data-page=badges] .wr-review-list{gap:4px}.wr-badge-summary{min-height:26px;height:26px;box-sizing:border-box;padding:3px 28px 3px 4px}.wr-badge-summary>span{font-size:16px;line-height:1}.wr-badge-summary>div{min-width:0}.wr-badge-summary strong{line-height:1.1;font-size:8px}.wr-badge-count{top:3px;font-size:10px;padding:2px 3px}}
@media(max-height:650px){.wr-slide[data-page=points-story] .wr-slide-body{gap:5px}.wr-position-list{gap:4px}.wr-position-list article{padding:5px 4px;font-size:9px}.wr-position-list b{font-size:14px}.wr-position-head{font-size:8px}.wr-slide[data-page=points-story] .wr-mini-note{font-size:7px;line-height:1.3}}
.wr-badge-summary small{display:none}.wr-badge-summary{min-height:40px;box-sizing:border-box}@media(max-height:650px){.wr-badge-summary{min-height:26px}}
.wr-badge-summary{height:40px;padding:6px 40px 6px 8px}.wr-badge-summary>span{font-size:22px;line-height:1}@media(max-height:650px){.wr-badge-summary{height:26px;min-height:26px;padding:3px 28px 3px 4px}.wr-badge-summary>span{font-size:16px}}
