/* Small public race cards, with details only when requested. */
.contest-goal{position:absolute;z-index:8;top:14px;left:12px;max-width:calc(100% - 96px);padding:7px 10px;color:#fffdeb;font-size:11px;line-height:1.4;pointer-events:none}
/* Keep the overlay footprint stable as individual calls roll through it. */
.live-caption{position:absolute;z-index:9;top:60px;left:12px;max-width:calc(100% - 24px);padding:7px 11px;color:#fffdeb;font-size:12px;line-height:1.5;width:min(310px,calc(100% - 24px));min-height:calc(4.5em + 16px);overflow:hidden;pointer-events:none}
:is(.live-caption,.league-watch-caption) .commentary-line{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:#e8ece6;transition:color 180ms ease}
:is(.live-caption,.league-watch-caption) .commentary-line.is-latest{font-weight:750;color:#fffdeb}
:is(.live-caption,.league-watch-caption) .is-entering{animation:commentary-enter 230ms ease-out both}
:is(.live-caption,.league-watch-caption) .is-leaving{position:absolute;left:11px;right:11px;pointer-events:none;animation:commentary-exit 190ms ease-in both}
@keyframes commentary-enter{from{opacity:.9}to{opacity:1}}
@keyframes commentary-exit{from{opacity:1}to{opacity:0;transform:translateY(-1.15em)}}
@media(prefers-reduced-motion:reduce){
 :is(.live-caption,.league-watch-caption) .commentary-line{transition:none;animation:none}
 :is(.live-caption,.league-watch-caption) .is-leaving{display:none}
}
.app-shell .animal-card>p.athlete-card-note{display:block;font-size:8px;line-height:1.4;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-height:0;margin:4px 0 0;color:#6a7e62}
.app-shell .animal-card:has(.athlete-card-note){height:101px;min-height:101px}
.selected-profile-button{display:flex;align-items:center;justify-content:space-between;width:100%;border:1px solid #dce4d1;border-radius:9px;padding:10px 11px;margin:-2px 0 13px;background:#f0f4e8;color:#3a543a;font-size:10px;gap:8px;text-align:left;cursor:pointer}
.selected-profile-button>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.selected-profile-button>span:last-child{flex-shrink:0;color:#657b59}
.athlete-sheet-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 15px}
.athlete-sheet-heading>div>span{font-size:10px;color:#81906e}
.app-shell .athlete-sheet-heading h2{margin:3px 0 0!important;font-size:22px!important}
.athlete-sheet-rule{font-size:10px;color:#718361;max-width:46%;text-align:right;line-height:1.6;padding-bottom:3px}
.athlete-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:10px 0 18px}
.athlete-tabs:has(>button:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.athlete-tabs:has(>button:nth-child(2):last-child)>button{flex-direction:row;justify-content:center;gap:5px;font-size:13px}
.athlete-tabs:has(>button:nth-child(2):last-child) canvas{width:44px;margin:0}
.athlete-tabs>button{display:flex;flex-direction:column;align-items:center;min-width:0;padding:5px 3px 7px;border:1px solid #e0e7d6;border-radius:11px;background:#f2f5e9;color:#667c59;font-size:10px;cursor:pointer}
.athlete-tabs>button.selected{border-color:#6f8f54;background:#e3ecd5;color:#354e32;box-shadow:inset 0 0 0 1px #6f8f54}
.athlete-tabs canvas{width:100%;height:43px;margin:0 0 3px}
.athlete-identity{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.athlete-identity h3{font-size:23px;color:#334d34;margin:0;letter-spacing:-.5px}
.athlete-identity h3 small{font-size:10px;font-weight:400;color:#879578;margin-left:9px;letter-spacing:0}
.app-shell .athlete-identity p{font-size:11px!important;margin:5px 0 0!important;line-height:1.5!important;color:#798b68}
.athlete-quote{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.athlete-quote small{font-size:9px;color:#8b977c}
.athlete-quote strong{font-size:24px;color:#52703c;font-variant-numeric:tabular-nums}
.athlete-condition{padding:12px 14px;border:1px solid #dde5cf;border-radius:11px;background:#eef3e5;margin:12px 0 17px}
.athlete-condition>strong{font-size:12px;color:#425c37}
.app-shell .athlete-condition>p{font-size:11px!important;line-height:1.65!important;margin:5px 0 0!important;color:#748366}
.athlete-condition.has-cast{background:#f6eee1;border-color:#e8d8bf}
.athlete-facts{display:grid;grid-template-columns:1fr;gap:4px;margin:0 0 8px}
.athlete-facts>div{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:5px;min-width:0;padding:5px 7px;border-radius:7px;background:#f7f9f1}
.athlete-facts>div>strong{font-size:9px;color:#536d43}
.athlete-facts>div>span{font-size:10px;line-height:1.4;color:#687b5d;overflow-wrap:anywhere}
.athlete-facts small{display:block;margin-top:2px;font-size:9px;line-height:1.35;color:#849078}
.athlete-recent-chips{display:flex!important;flex-wrap:wrap;gap:4px;align-items:center}
.athlete-recent-chip{display:inline-flex;align-items:center;gap:3px;padding:2px 5px;border:1px solid #e3e9da;border-radius:5px;background:#fffefa;font-size:9px;white-space:nowrap}
.athlete-recent-chip small,.athlete-recent-empty{font-size:8px;color:#879779}
.athlete-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px;margin:8px 0}
.athlete-stats>div{display:flex;align-items:center;gap:9px;font-size:10px}
.athlete-stats dt{color:#687d58;width:24px;flex-shrink:0}
.athlete-stats dd{display:flex;align-items:center;gap:8px;margin:0;flex:1;min-width:0}
.athlete-stats b{font-size:10px;font-variant-numeric:tabular-nums;width:18px;text-align:right;color:#435e36}
.stat-track{height:5px;border-radius:3px;background:#e1e8d5;flex:1;overflow:hidden}
.stat-track i{display:block;height:100%;border-radius:3px;background:#8da86b}
.athlete-form{border-top:1px solid #e1e7d7;padding-top:15px}
.athlete-form-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.athlete-form-heading strong{font-size:11px;color:#4b643e}
.athlete-form-heading small{font-size:9px;color:#8b977b}
.athlete-form ol{list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;padding:0;margin:13px 0 16px}
.athlete-form li{display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 3px;border-radius:8px;background:#f0f4e7;min-width:0}
.athlete-form li>span{font-size:8px;color:#8d9a7d;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.athlete-form li>strong{font-size:22px;font-weight:600;color:#56703e;line-height:1.3}
.athlete-form li>strong small{font-size:8px;font-weight:400;margin-left:2px}
.athlete-form li>small{font-size:8px;color:#81906f;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-shell .athlete-empty{font-size:11px!important;color:#879779;margin:15px 0!important}
.app-shell .athlete-form-note,.app-shell .athlete-tie-rule,.app-shell .athlete-stat-note{font-size:9px!important;color:#879779;margin:7px 0!important;line-height:1.6!important}
.athlete-compare{border-top:1px solid #e1e7d7;margin-top:10px;padding-top:8px}
.athlete-compare-picker{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:0}
.athlete-compare-picker>span{font-size:9px;color:#536d43;margin-right:2px}
.athlete-compare-picker button{border:1px solid #dce5d1;border-radius:999px;background:#f5f8ef;color:#657a57;padding:6px 9px;font:inherit;font-size:9px;cursor:pointer}
.athlete-compare-picker button[aria-pressed="true"]{border-color:#66834f;background:#e5eddc;color:#3e5735}
.athlete-compare-matrix{display:grid;grid-template-columns:60px minmax(0,1fr) minmax(0,1fr);margin-top:8px;border:1px solid #e1e7d8;border-radius:8px;overflow:hidden;background:#fbfcf7}
.athlete-compare-matrix>div{display:contents}
.athlete-compare-matrix>div>*{min-width:0;padding:6px 7px;border-top:1px solid #e8ecdf;font-size:9px;line-height:1.4;color:#718064;overflow-wrap:anywhere}
.athlete-compare-matrix>div>b{color:#536d43;font-weight:600}
.athlete-compare-matrix .athlete-compare-head>*{border-top:0;background:#f1f5e9;color:#405b37;font-weight:600}
.athlete-compare-matrix .athlete-compare-head strong{font-size:10px}
.athlete-compare-matrix .athlete-compare-head small{display:block;font-size:8px;font-weight:400;color:#879779}
.athlete-compare-matrix .athlete-recent-chips{gap:3px}
.athlete-compare-matrix .athlete-recent-chip{padding:1px 3px;font-size:8px}
.athlete-team-strength{margin-top:10px;padding:10px;border-radius:9px;background:#f0f4e8}
.athlete-team-strength>strong{font-size:9px;color:#536b46}
.athlete-team-strength ul{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:0;margin:8px 0 0}
.athlete-team-strength li{min-width:0;display:flex;flex-direction:column;gap:3px}
.athlete-team-strength li span{font-size:9px;color:#4f6544}
.athlete-team-strength li small{font-size:8px;color:#839073;line-height:1.4}
.athlete-pick{width:100%;display:flex;justify-content:space-between;align-items:center;min-height:44px;border:0;border-radius:11px;background:#314e37;color:#f7faec;padding:12px 14px;font-size:12px;cursor:pointer;margin-top:10px}
.athlete-scoring{margin-top:8px;border-top:1px solid #dce5d6;color:#4c634a;font-size:12px}
.athlete-scoring summary{cursor:pointer;padding:9px 0}
.app-shell .athlete-scoring p{font-size:12px!important;line-height:1.6!important;margin:0 0 8px!important}
.app-shell .live-standings>li{min-width:0}
.app-shell .live-standings>li>span{white-space:nowrap}
.app-shell .live-standings>li>small{font-size:8px;white-space:nowrap;opacity:.8;font-variant-numeric:tabular-nums}
.app-shell .live-standings>li.eliminated{color:#d7ded8;text-decoration:line-through}
.app-shell #scene-result-score{display:block;font-size:10px;color:#d4e4bc;margin-top:4px}
.app-shell #result-mode-detail{font-size:11px;color:#738361;margin:7px 0 12px;line-height:1.7}
@media(max-width:800px){
  .app-shell .contest-goal{top:calc(var(--arena-safe-top) + 108px);left:var(--arena-safe-left);font-size:10px}
  .app-shell .live-caption{top:calc(var(--arena-safe-top) + 152px);left:var(--arena-safe-left);max-width:calc(100% - 24px);font-size:10px}
  .app-shell .scene-replay-caption{max-width:calc(100% - 90px)}
  .app-shell .ticket #animal-roster .animal-card:has(.athlete-card-note){height:90px;min-height:90px}
  .app-shell .ticket #animal-roster .animal-card>p.athlete-card-note{font-size:7px;line-height:1.4;min-height:0;margin-top:4px}
  .app-shell .live-standings:has(small){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 6px}
  .app-shell .live-standings:has(small)>li{display:flex;justify-content:flex-start;gap:4px}
  .app-shell .live-standings:has(small)>li>small{margin-left:auto}
  .app-shell .stage:has(.live-caption:not(.hidden)) .finish-banner{top:calc(var(--arena-safe-top) + 224px)}
  .athlete-tabs{gap:5px}
  .athlete-tabs>button{font-size:9px}
  .athlete-tabs canvas{height:36px}
  .athlete-facts{gap:5px}
  .athlete-facts>div{padding:8px 6px}
  .athlete-facts>div>strong,.athlete-compare-picker>span,.athlete-stats>div,.athlete-stats b{font-size:12px}
  .athlete-facts>div>span{font-size:13px;color:#40583e}
  .athlete-facts small,.athlete-recent-empty,.athlete-form-note,.athlete-recent-chip,.athlete-quote small{font-size:11px;color:#52694d}
  .app-shell .athlete-profile .athlete-form-note,.app-shell .athlete-profile .athlete-stat-note{font-size:11px!important;color:#536b4e}
  .athlete-compare-picker button{min-height:40px;font-size:12px}
  .athlete-compare-matrix>div>*,.athlete-compare-matrix .athlete-compare-head strong{font-size:11px}
  .athlete-scoring summary{min-height:40px;line-height:22px}
  .athlete-compare-matrix{grid-template-columns:48px minmax(0,1fr) minmax(0,1fr)}
  .athlete-team-strength ul{grid-template-columns:1fr}
}
@media(max-width:800px) and (max-height:500px) and (orientation:landscape){
  .app-shell .contest-goal{top:calc(var(--arena-safe-top) + 88px)}
  .app-shell .live-caption{top:calc(var(--arena-safe-top) + 123px);padding:5px 9px;font-size:9px;max-width:calc(100% - 94px)}
  .app-shell .live-standings:has(small){left:220px;right:calc(var(--arena-safe-right) + 122px);grid-template-columns:repeat(3,minmax(0,1fr));padding:4px 6px}
  .app-shell .live-standings:has(small)>li{font-size:8px;gap:3px;padding:1px}
  .app-shell .live-standings:has(small)>li>small{font-size:7px}
  .app-shell .stage:has(.live-caption:not(.hidden)) .finish-banner{top:calc(var(--arena-safe-top) + 190px)}
}
@media(max-width:600px) and (max-height:500px) and (orientation:landscape){
  .app-shell .live-standings:has(small){left:var(--arena-safe-left);right:var(--arena-safe-right);bottom:calc(var(--arena-floor) + 64px)}
}
